2009-03-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-03-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2
3         * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
4         WM_HELP message for the associated window, don't call
5         NativeWindow.WndProc *at all*, since this could send a WM_*
6         key-related to Control.WndProc. Also, return the keypress message, in
7         case it needs to be preprocessed for any menu.
8         Fixes #478476.
9
10 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
11
12         * DataGridView.cs: When removing the first displayed row and moving 
13         the current cell up one we must invalidate the first displayed row 
14         index before calculating the row heights, etc.
15         [Fixes bug #483202]
16
17 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
18
19         * DataGridView.cs: Fix three column bugs:
20            - Rows should be cleared (but not removed) if columns become 0.
21            - The current cell should get moved
22            - ColumnCount increase was adding too many columns.
23
24 2009-03-07  Ivan N. Zlatev  <contact@i-nz.net>
25
26         * DataGridView.cs: Fix RowCount decrease which wasn't working well 
27         in both scenarions - with and without editing row.
28
29 2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>
30
31         * DataGridView.cs: Be compatible with MS in that the scroll to 
32         selection has a synchronous effect. The trick here is that in 
33         order to avoid unnecessary calculations each time a row/column 
34         is added/removed we recalculate the whole grid size just before 
35         just before the scroll to selection.
36         [Fixes bug #482478]
37
38 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
39
40         * RichTextBox.cs: LoadFile(string path) should pass by default
41         RichTextBoxStreamType.RichText, without caring about the detection or
42         extension of the file.
43
44 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
45
46         * RichTextBox.cs: When calling LoadFile, remove the extra EOL
47         introduced by StreamReader, since it will convert the EOF to an EOL.
48         Fixes #479646.
49
50 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
51
52         * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
53         preferred size twice.
54
55 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
56
57         * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
58         string if we aren't on a ToolStripDropDownMenu.
59
60 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
61
62         * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
63         code from Item to Button.  Patch from Alex Shulgin.
64
65 2009-03-05  Jonathan Pobst  <monkey@jpobst.com>
66
67         * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
68         * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
69         not a ToolStripDropDown.
70         * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
71
72 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
73
74         * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
75
76           Based on a patch by Tom Hindle <tom_hindle@sil.org>
77           [Fixes bug #482133]
78
79 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
80
81         * DataGridView.cs, DataGridViewElement.cs: 
82            - Always calls OnDataGridViewChanged() if the new DGV is 
83            not the same/null as the current one.
84            - Do not throw NREs when setting TopLeftHeaderCell to null
85            - Unset the DGV for TopLeftHeaderCell when replacing it
86           Based on a patch by Tom Hindle <tom_hindle@sil.org>
87           [Fixes bug #481681]
88
89 2009-03-04  Jonathan Pobst  <monkey@jpobst.com>
90
91         * ToolStripDropDown.cs: When dismissing control due to ESC, don't
92         hit a NRE if we are a ContextMenuStrip and do not have a parent.
93         [Fixes bug #478616]
94
95 2009-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
96
97         * ListView.cs: When removing items from a ListViewItemCollection
98         contained in ListView (not in ListViewGroup), before actually removing
99         the items remove them also from their -if any- associated groups. If
100         the item is present in ListViewGroup.Items but not in ListView.Items,
101         then don't remove it - this is *exactly* what .net seems to do.
102         Fixes the remaining bits of #478689.
103
104 2009-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
105
106         * ListView.cs: In our MouseDown handler in ItemControl use the item in
107         the very specific *real* position where the mouse was pressed, using
108         GetItemAtDisplayIndex for that purpose, instead of directly accessing
109         Items - this is specially useful when groups with Details view is
110         used. This is what we do in other places when using groups.
111         Fixes part of #478689.
112
113 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
114
115         * MaskedTextBox.cs: Properly replace selection when a new valid key
116         is pressed - even when IsOverwriteMode is false. This is what .net
117         does.
118
119 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
120
121         * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
122         true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace, 
123         since Set will keep the previous value in case of error (just what we
124         need), but still call MaskedTextProvider.Clear if
125         RejectOnFirstFailure is false - match .net.
126
127 2009-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
128
129         * MaskedTextBox.cs: When setting Text use the very precise algorithm
130         that .net uses: iterate over every char of the new value, trying to
131         use every char, and use a normal call to MaskedTextProvider.Replace
132         call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
133         in case of error in both cases, as well.
134         Fixes #477408.
135
136 2009-02-25  Neville Gao  <nevillegao@gmail.com>
137
138         * ColorDialog.cs: Added UIA Framwork Property:
139         UIASelectedSmallColorControl.
140
141 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
142
143         * MaskedTextBox.cs: Forgot to update the call of the new method
144         introduces in the previous patch.
145
146 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
147
148         * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
149         key. Also create a new method to avoid code duplication between
150         OnKeyDown and OnKeyPress.
151         Fixes #477388.
152
153 2009-02-24  Ivan N. Zlatev  <contact@i-nz.net>
154
155         * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected 
156         or deselected.
157         [Fixes bug #479124]
158
159 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
160
161         * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
162         actually inversed, so put it the right way. Also, don't automatically
163         look for the next editable item after adding a new one, but way for
164         the next insertion (this is what .net does) - this is not needed when
165         MaskedTextProvider.InsertAt is called however, since it already looks for the
166         next editable position.
167         Fixes the remaining bits of #477383.
168
169 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
170
171         * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
172         MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
173         property after the text was modified, adjust the testPosition value
174         depending on what method was called.
175         Fixes part of #477383.
176
177 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
178
179         * ListView.cs: For EnsureVisible, adjust the view port bounds based on
180         the existence of the column headers, as well as using this information
181         to adjust the vscrollbar value, so items never get hidden by the
182         column headers.
183         Fixes #478498.
184
185 2009-02-23  Ivan N. Zlatev  <contact@i-nz.net>
186
187         * DataGridView.cs: Make the ScrollBars property work properly.
188
189 2009-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
190
191         * TextBox.cs: Some code lifting for AutoComplete's support. First,
192         when handling non-navigation keys, save the original Text typed by the
193         user, and don't motify it BEFORE. This was a design mistake, since the
194         re-assignation happens only when navigating the append/suggest list,
195         not while creating the matches. Also, process the Delete key just like 
196         the backspace one. Finally, when handling WM_CHAR, ignore both Escape
197         and Enter keys.
198         Fixes some missing bits of #469967.
199
200 2009-02-22  Ivan N. Zlatev  <contact@i-nz.net>
201
202         * DataGridView.cs: Fix row removal in the data-bound scenario.
203
204 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
205
206         * DataGridViewCell.cs: Use strict equality comparison in order to 
207         prevent superfluous CellValueChanged events.
208
209 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
210
211         * DataGridView.cs: Do not reset the columns when the data list changes, 
212         but only the rows. Fixes multiple bugs related to sorting, custom 
213         column styles being reset and more.
214
215 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
216
217         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
218         drawing the image.
219
220 2009-02-18  Andrés G. Aragoneses  <aaragoneses@novell.com>
221
222         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
223
224 2009-02-17  Andrés G. Aragoneses  <aaragoneses@novell.com>
225
226         * ToolBarButton.cs: Event for Enabled property (needed to fix
227           UIA #474197).
228
229 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
230
231         * TextBox.cs: When handling WndProc with autocomplete activated,
232         event if the new text is not causing any change in the look up
233         algorithm, save it as we normally do when numbers and letters.
234         Fixes #469967.
235
236 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
237
238         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
239         Invalidate the proper bounds in the TreeView, not only resetting the
240         width.
241         Fixes #475542.
242
243 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
244
245         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
246         BackColor property. This is what .net does in both 1.1 and 2.0.
247         * TreeView.cs: When selected_node is not the same as highlighted_node,
248         we need to handle the back color in a different way, trying to use the
249         node's BackColor if it's not Color.Empty.
250         Fixes #464200.
251
252 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
253
254         * TreeView.cs: When canceling selection in our MouseUp handler,
255         invalidate also the previous selected node bounds.
256         Fixes #464191.
257
258 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
259
260         * DataGridView.cs: End or if end fails then cancel the current edit 
261         operation before clearing the data source.
262
263 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
264
265         * DataGridView.cs: Data-bind only after the handle is created.
266         [Fixes bug #473680]
267
268 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
269
270         * TreeView.cs: When handling the MouseMove event, check if
271         focused_node and selected_node fields are null - usually they are non
272         null, since we have always a selected node, but canceling selection by
273         handling BeforeSelect event leaves the two of them as null.
274         Fixes #470451.
275
276 2009-02-06  Neville Gao  <nevillegao@gmail.com>
277
278         * TabControl.cs: Control enabled to support accessibility.
279         [Fixes Bug #472428]
280
281 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
282
283         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
284            - Use ArrayList.Insert instead of the Item property so that the item 
285            is actually inserted and not an existing item replaced.
286            - Call DataGridView.OnRowsAddedInternal and drop internal from 
287            OnRowsAdded for binary compitability. This also fixes several 
288            redrawing issues.
289         [Fixes bug #472968]
290
291 2009-02-05  Andrés G. Aragoneses  <aaragoneses@novell.com>
292
293         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
294           the value.
295
296 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
297
298         * ToolBarButton.cs: Add another event (OnUIATextChanged).
299
300 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
301
302         * ToolBarButton: Fix typo in previous commit (r125704).
303
304 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
305
306         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
307         when a button gets focus, firing the events from the ToolBar.
308         r: jpobst
309
310 2009-02-04  Mario Carrion  <mcarrion@novell.com>
311
312         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
313         Width.
314         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
315         ColumnHeader to raise ColumnWidthChanged.
316         [Fixes Bug #467086]
317
318 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
319
320         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
321         code in the row collection code, so that the completion happens before 
322         the CollectionChanged event, also better encapsulation.
323         [Fixes bug #471987]
324
325 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
326
327         * DataGridView.cs: When editing is finished do not remove the editing 
328         row, because it has already become a real one. Instead add a new one.
329         [Fixes bug #471754]
330
331 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
332
333         * TreeView.cs: When drawing the node's image, check that the index
334         specified by the node is valid for the ImageList.
335         Fixes #471094.
336
337 2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>
338
339         * ToolBar.cs: Add new UIAPerformClick method to be called by
340         UIAutomationWinforms when someone calls Invoke() on the
341         ToolBarButtonProvider. r: jpobst
342
343 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
344
345         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
346         MapNotify/UnmapNotify events - we are already firing those events in
347         the proper places, so we avoid this way to send the same message two
348         times. I'm leaving the handling code in case we could break something
349         in the future, as this change seems dangerous (but needed).
350         Fixes #467546.
351
352 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
353
354         * DataGridView.cs: Complete incomplete rows when they are added to 
355         the grid.
356         [Fixes bug #471068]
357
358 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
359
360         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
361         binding is cleared prior to setting it to null. Fixes a regression 
362         causing exceptions when the DataSource is set to null and then set 
363         again to a data source.
364
365 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
366
367         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
368            - Make Image/Bitmap cells work.
369            - Handle images with size greater than the cell.
370            - Default to MiddleCenter alignment for image cells.
371         [Fixes bug #471101]
372
373 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
374
375         * UpDownBase.cs: Force Height to PreferredHeight.
376
377 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
378
379         * XplatUIX11.cs: We should use utf8 handling clipboard transference
380         with other x11 applications, and use utf16 when handling clipboard
381         data in the class library. Update the related points as well.
382         Fixes #468683.
383
384 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
385
386         * DataGridViewCell.cs: Format strings according to the supplied 
387         CellStyle.Format.
388         [Fixes bug #470384]
389
390 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
391
392         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
393         addition or removal. Fixes multiple crashes in OnMouseMove.
394
395 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
396
397         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
398
399 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
400
401         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
402         current context.
403         [Fixes bug #469239]
404
405 2009-01-26  Andreia Gaita  <avidigal@novell.com>
406
407         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
408         won't be disabled by default.
409         Fixes #468690
410
411 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
412
413         * DataGridView.cs: Do not clear the rows if we are not databound.
414
415 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
416
417         * DataGridView.cs: Do not be too smart about selecting the first cell 
418         when the first row is added as this is not what MS does. Fixes the 
419         failing unit tests.
420
421 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
422
423         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
424         take into account the fact that OpenTreeNodeEnumerator needs to call
425         MoveNext/MovePrevious to actually put the passed node as the one
426         retrieved in Current. This way this property should work as really
427         expected in .net.
428         Fixes part of #467225.
429
430 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
431
432         * TreeView.cs: When calculating the scrollbars, don't use
433         TreeNode.Bounds, since it still can have the values of the previous
434         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
435         could not have been updated as well-, and use the actual number of
436         visible number of nodes to compute the height needed to contain all
437         the nodes. Also reset the value of vbar to 0 when disabled - this way
438         we make sure that, when re-enabled, it will update the visible area of
439         the treeview, even if the previous value before disabling it is the
440         same as now. Finally don't do anything for the vbar.ValueChanged
441         handler - for the case wheer we manually set the value but don't the
442         vbar is disabled already.
443         Fixes part of #467225.
444
445 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
446
447         * ToolStrip.cs: Switch from foreach to for, in case the collection
448         somehow changes while enumerating it.
449
450 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
451
452         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
453         editing control.
454
455 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
456
457         * DataGridView.cs: Fix new row adding/editing in the non-databound 
458         scenario.
459
460 2009-01-21  Mike Gorse  <mgorse@novell.com>
461
462         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
463           use them.
464           Added UIAValueParamChangedEvent.
465
466 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
467
468         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
469         of trying to set as top node the highest parent of the previous top
470         node. Moving to the bottom of the TreeView after a call to CollapseAll
471         is exactly what .net does. This should avoid some nasty issue when
472         CollapseAll is called and we don't need the vertical scroll bar.
473
474 2009-01-21  Mario Carrion <mcarrion@novell.com>
475
476         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
477         and UIATopMostChanged.
478
479 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
480
481         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
482         UIAEnabledChanged, and UIATextChanged events.
483
484         * Form.cs: Add UIAMenuChanged event.
485
486         * Menu.cs:
487         * MenuAPI.cs: Note which internal APIs are being used by UIA.
488
489 2009-01-21  Neville Gao  <nevillegao@gmail.com>
490
491         * ToolBar.cs: Control enabled to support accessibility.
492         [Fixes Bug #455950]
493
494 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
495
496         * TreeView.cs: When handling mouse up event, check whether
497         highlighted_node is null or not - usually it should be non-null
498         alwaays, since the mouse down handler sets it, but some externa
499         operations, such TreeNodeCollection.Clear, could set it to null.
500         Fixes #438650.
501
502 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
503
504         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
505         item is disabled.
506
507 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
508
509         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
510         [Fixes bug #467285]
511
512 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
513
514         * MonthCalendar.cs: When handling the selection changes using the
515         mouse, don't set SelectionRange if the selection range didn't actually
516         change. This matters because, even if we set the range to the same
517         previous range, an extra DateChanged event is fired. Just to be clear:
518         SelectionRage property doesn't check whether the new value is
519         different to the previous one (by ref equals doesn't work here).
520         Fixes other bits of #364914.
521
522 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
523
524         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
525         selection using the keyboard, since we are already firing this event
526         when setting SelectionRange. Also don't set SelectionRange if the
527         previous and the new value are the same (the property, just as .net
528         does, doesn't check whether the previous value and the new one are the
529         same). This saves us from firing OnDateChanged event if the selection
530         range didn't change actually.
531         Fixes the remaining bits of #364914.
532
533 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
534
535         * ListBox.cs: When removing an item and the last item is selected,
536         remove it from the selection, and if selection mode is One try to
537         select the new last item.
538         Fixes #465422.
539
540 2009-01-16  Mike Gorse  <mgorse@novell.com>
541
542         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
543
544 2009-01-16  Mario Carrion <mcarrion@novell.com>
545
546         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
547         when changing Text. 
548
549 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
550
551         * X11Structs.cs:
552         * XplatUIX11.cs: Properly encode/decode the unicode strings we
553         store/retrieve in the Clipboard. Also, since we try to convert the
554         data to different formats, separate the source and the result of
555         it, so we can always fallback to the original and don't mix wrong
556         conversions.
557
558 2009-01-16  Mike Gorse  <mgorse@novell.com>
559
560         * TextControl.cs: Add UIASelectionChanged event.
561
562 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
563
564         * DataGridView.cs: Forward the first key events to the editing control.
565         [Fixes bug #457307]
566
567 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
568
569         * Application.cs: Oops, launch the copied handler of PreRun instead of
570         the global one (gendarme would bark otherwise). (Improving r123375)
571
572 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
573
574         * XplatUI.cs:
575         * Application.cs: Move the PreRun event fire to the end of the XplatUI
576         static ctor (we don't move the PreRun event to this class because its
577         usage would cause the call to the static ctor). This way we can get
578         a11y support for dialogs that run without App.Run.
579
580 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
581
582         * ListView.cs: New internal property to know the inner array's length of
583         the location of items, in order to avoid a try-catch strategy for the
584         case when this array has not been resized yet (for reference, look at
585         r123288). r: jpobst
586
587 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
588
589         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
590         reflection calls. This requires UIAutomationWinforms r123213.
591
592 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
593
594         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
595         handlers and fire the DateSelected event until MouseUp is reached,
596         like .net does, instead of firing it for each mouse event.
597         Fixes part of #364914.
598
599 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
600
601         * TreeView.cs: When the selection gets canceled using the BeforeSelect
602         event, invalidate the previous highlighted_node bounds, to show the
603         user that the item was *not* selected.
604         Fixes #464191.
605
606 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
607
608         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
609         well as -in DropDown and Simple modes- writing in the textbox should
610         try to set the requested item as the top one, but navigating with the
611         keyboard and handling mouse selection don't need that behaviour. Also,
612         when resetting selected_index handling key press events, reset
613         ComboListBox.HighlightIndex. 
614         Fixes the remaining bits of #464188.
615
616 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
617
618         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
619         there are no cells:
620            - CurrentCellAddress should be -1, -1 and not 0, 0.
621            - Be tolerant and fall back to clearing the current cell if either 
622            column or row is -1 in MoveCurrentCell.
623            - Misc. more -1 checks.
624
625 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
626
627         * DataGridView.cs: Preserve the column index. Fixes a regression 
628         introduced by the data binding position tracking code.
629
630 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
631
632         * DataGridView.cs: If the bottom of the row matches the client height 
633         do not regard the row as partially visible. Fixes the weird scrolling 
634         when there is no scrollbar.
635
636 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
637
638         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
639
640 2009-01-09  Mario Carrion  <mcarrion@novell.com>
641
642         * MessageBox.cs: Fixed internal UIAIconRectangle property.
643
644 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
645
646         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
647
648 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
649
650         * DataGridView.cs: Track the Position in the CurrencyManager.
651
652 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
653
654         * DataGridView.cs: Implement data-bound new item editing/addition.
655         * DataGridViewRowCollection.cs: Make it possible for us to internally 
656         remove the edit row.
657         [Fixes bugs #457107, #457308, #325240]
658
659 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
660
661         * CurrencyManager.cs: Even if Position is set to a greater value than the 
662         list count reset it to position of the last item.
663
664 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
665
666         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
667         Fix that in order to make CancelNew to work.
668
669 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
670
671         * BindingSource.cs: When adding a new item try to delegate to the internal 
672         list first before throwing an exception.
673
674 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
675
676         * ComboBox.cs: When setting the text and adjusting the top_item, do it
677         *only* if the current item is *not* visible already.
678         Fixes part of #464188.
679
680 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
681
682         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
683         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
684         Fix that.
685         [Fixes bug #464493]
686
687 2009-01-08  Brad Taylor  <brad@getcoded.net>
688
689         * ComboBox.cs: Expose a few private fields as internal UIA properties.
690
691 2009-01-07  Mario Carrion <mcarrion@novell.com>
692         
693         * DataGrid.cs: CWL removed.
694
695 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
696
697         * RadioButton.cs: When setting Checked, we should first update the
698         check state of the current RadioButton, as well as invalidating it,
699         and after that actually update the siblings. This is done to match
700         .net.
701         Fixes the remaining bits of #463028.
702
703 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
704
705         * RadioButton.cs: Setting Checked to false should set TabStop to stop
706         as well. Also, when we get the focus and no other RadioButton is
707         selected in the parent control, we should mark ourselves as Checked.
708         Fixes part of #463028.
709
710 2009-01-05  Mario Carrion <mcarrion@novell.com>
711
712         * DataGrid.cs: UIA suppport. internal events: 
713         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
714         UIASelectionChanged, UIACollectionChanged. Internal properties: 
715         UIARowHeight, UIACellsArea, UIACaptionArea, 
716         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
717         UIAVScrollBar and UIAHScrollBar.
718
719 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
720
721         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
722         of the buttons are set to Overflow = Always.
723         [Fixes bug #463013]
724
725 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
726
727         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
728         based on whether the binding source is availble or not. Fixes #463008.
729
730 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
731
732         * DataGridViewCell.cs: We should return a value even if we are not bound 
733         to a DataGridView.
734
735 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
736
737         * CurrencyManager.cs, DataGrid.cs: 
738            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
739            concept of "rows".
740            - Add two more internal properties AllowRemove and AllowEdit.
741         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
742         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
743         CurrencyManager data source.
744
745 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
746
747         * DataGridView.cs: Fix crashes caused by assigning negative values to 
748         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
749         the column/row heights/widths.
750         [Fixes bug #462684]
751
752 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
753
754         * DataGridView.cs: Non-autogenerated columns that have a data property 
755         set that exists in the current datasource should be set to be data-bound.
756
757 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
758
759         * DataGridView.cs: Fix column sorting for columns containing null 
760         values. A "null" value is not always "null" (e.g could be String.Empty) 
761         and thus parsing numeric types throwed an exception for "null" values.
762
763 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
764
765         * DataGridView.cs: Detach the editing control when the edit is 
766         finished.
767
768 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
769
770         * DataGridView.cs: Multiple fixes to handle last column/row removal 
771         and cell movement after that instead of throwing exceptions.
772
773 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
774
775         * DataGridViewCellCollection.cs: When cells are removed the column 
776         indices become invalid if the cell is not the last one and have to 
777         be refreshed.
778
779 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
780
781         * DataGridView.cs: Return false in CommitEdit if there was an error.
782
783 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
784
785         * DataGridView.cs: Remove a leftover Console.WriteLine.
786
787 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
788
789         * DataGridViewRow.cs: Access the indexer of the data manager directly 
790         instead of the internal list.
791
792 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
793
794         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
795         Rewrite the value getting, setting, parsing, formatting logic:
796            - If data-bound value get/set should actually get and set from the 
797              data source.
798            - Make proper usage of TypeConverters for value parsing/formatting.
799            - Raise DataError if setting the new value fails.
800            - Get rid off the internal valueType field and get/set the ValueType 
801            property instead.
802         [Fixes bug #462051]
803
804 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
805
806         * DataGridView.cs: Rewrite the DataBinding layer:
807            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
808            specific code.
809            - Get rid off the per DataSource type column autogeneration code.
810            - Use the CurrencyManager for everything that is DataBinding related.
811
812 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
813
814         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
815
816 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
817
818         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
819         DataManager to fetch the CurrencyManager for the DataGridView and to 
820         spare this logic for the other components to follow.
821
822 2008-12-31  Mario Carrion  <mcarrion@novell.com>
823
824         * MessageBox.cs: UIA support: new properties: UIAMessage, 
825         UIAMessageRectangle and UIAIconRectangle.
826
827 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
828
829         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
830         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
831
832 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
833
834         * DataGridView.cs: Do not autogenerate duplicate column for a 
835         data member that has already problematically been assigned one.
836         [Fixes bug #457305]
837
838 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
839
840         * ProfessionalColorTable.cs: Better detection of user's theme.
841         [Fixes bug #462766]
842
843 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
844
845         * DataGridView.cs: In the case where there are no autogenerated 
846         columns and the user adds columns problematically we must generate 
847         the rows after the very first column is added.
848
849 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
850
851         * DateTimePicker.cs: When increasing/decreasing the value of month
852         with ShowUpDown set to true, moving from december to january, and
853         moving from january to december should adjust the year to the next and
854         the previous year, respectively.
855         Fixes the remaining bits of #459674.
856
857 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
858
859         * DataGridView.cs: If a new cell is selected edit mode should be 
860         immediately enabled only if EditOnEnter is set. Whether the mouse 
861         or not was used to select the cell is irrelevant.
862
863 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
864
865         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
866         recursive rebinding.
867
868 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
869
870         * DateTimePicker.cs: Handle the "MMMM" month format.
871         Fixes #459674.
872
873 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
874
875         * DataGridView.cs: 
876            - Make ReBind private and refactor various calls to call ReBind 
877            instead of ClearBinding/DoBinding
878            - Rebind when the column collection changes
879         * DataGridViewColumnCollection.cs: 
880            - Leave the rebinding on change to be handled by the DataGridView.
881
882 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
883
884         * DataGridView.cs: Add a ReBind convenience method.
885         * DataGridViewColumnCollection.cs: Rebind when a column is added.
886         [Fixes bug #462019]
887
888 2008-12-23  Neville Gao  <nevillegao@gmail.com>
889
890         * StatusBar.cs: Modified argument variable.
891         * SplitContainer.cs: Control enabled to support accessibility.
892         [Fixes Bug #455950]
893
894 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
895
896         * ToolStripMenuItem.cs: Guard against an NRE.
897         [Fixes bug #457110]
898
899 2008-12-22  Mario Carrion  <mcarrion@novell.com>
900
901         * Control.cs: AccessibleXXXX properties don't return 
902         AccessibleObject.XXXX, instead a local referece is returned.
903
904 2008-12-22  Neville Gao  <nevillegao@gmail.com>
905
906         * PrintPreviewControl.cs: Added internal properties to support
907         accessibility.
908         [Fixes Bug #459699]
909
910 2008-12-19  Mario Carrion  <mcarrion@novell.com>
911
912         * Control.cs: Reverted r121561. 
913
914 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
915
916         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
917         it has been moved to the bridge.
918
919 2008-12-18  Brad Taylor  <brad@getcoded.net>
920
921         * DateTimePicker.cs: Add a few UIA specific events, and a couple
922         internal methods useful for UIA.
923
924 2008-12-18  Mario Carrion <mcarrion@novell.com>
925
926         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
927         [Fixes Bug #455752]
928
929 2008-12-17  Mike Gorse  <mgorse@novell.com>
930
931         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
932           item's Focused property is set.
933
934 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
935
936         * TreeView.cs:
937         * TreeNode.cs:
938         * TreeNodeCollection.cs: Add events for UIA support:
939         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
940         UIACollectionChanged.
941
942 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
943
944         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
945           SubItemStyle member field. 
946
947         Contributed under MIT/X11 license.
948
949 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
950
951         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
952         y coord, since it's useless in this case, and we need to rely only on
953         the number of rows and ItemHeight to compute this value.
954         Fixes part of #257471.
955
956 2008-12-15  Mike Gorse  <mgorse@novell.com>
957
958         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
959
960 2008-12-15  Mario Carrion  <mcarrion@novell.com>
961
962         * Control.cs: Accessibility properties instantiate AccessibilityObject when
963         needed.
964         [Fixes Bug #459223]
965
966 2008-12-15  Brad Taylor  <brad@getcoded.net>
967
968         * ToolStripItem.cs: Add a UIA specific event for listening for when a
969         ToolStripItem becomes selected or deselected.
970
971 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
972
973         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
974         .net does. Use the date in the point of the mouse move coords as the
975         new range as well, if the left button of the mouse is being pressed.
976         Fixes #364914.
977
978 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
979
980         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
981         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
982         effectively repaint the control.
983         Fixes the remaining bits of #417961.
984
985 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
986
987         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
988         range to contain only dates within the new possible range.
989         Fixes part of #417961.
990
991 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
992
993         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
994         length of the text, but the end position, so we need to substract 1 to
995         have a valid value. Also, in the same InputText method, don't use
996         SelectionLength as the length of the text, since the selected text
997         could actually be empty, but we need to set the value anyway.
998         Fixes #457370.
999
1000 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1001
1002         * TextBox.cs: Don't do any auto complete task if the custom source is
1003         null or empty. Also avoid duplication of code.
1004         Fixes #457743.
1005
1006 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
1007
1008         * DataGridView.cs: Refresh column sizes when new rows are added.
1009         [Fixes bug #457050]
1010
1011 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1012         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1013         Split to create a line - we are already doing this, by _adding_ a new
1014         one when rtf_cursor_x is 0 (this field gets this value just after we
1015         receive the newline param as true). This avoids having a proportional number
1016         of empty lines in the end of the rich text box.
1017         Fixes #396664.
1018
1019 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1020
1021         * RichTextBox.cs: When saving the contents as a plain text, don't add
1022         a new line for every Line structure, since the data in Document
1023         already contains the new line characters. This avoids duplicated new
1024         lines using the Save methods.
1025         Fixes #445618.
1026
1027 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1028
1029         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1030         framework.  Fixes bug #457678.
1031
1032 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1033
1034         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
1035         where datasource is null.
1036         [Fixes exception reported in bug 441240]
1037
1038 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1039
1040         * DataGridView.cs: EndEdit validation fixes.
1041
1042 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1043
1044         * DataGridView.cs: This is the cool patch that adds support for 
1045         actually updating the data in the databinding backend after editing. 
1046         With bonus firing and handling the DataError event.
1047
1048 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1049
1050         * Line.cs: When calculating the text tags's Shift value, store it as
1051         pixels instead of points. This way we can actually handle different
1052         fonts in the same RichTextBox, as well as the right size of the caret.
1053         Fixes part of #351938.
1054
1055 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1056
1057         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
1058         casted to CheckState causing InvalidCastExceptions.
1059
1060 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1061
1062         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
1063         to not depend on the item being clicked.
1064
1065 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1066
1067         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
1068         longer throws a NotImplementedException.
1069
1070 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1071
1072         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
1073         IDataGridViewEditingControl for editing.
1074
1075 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1076
1077         * DataGridViewComboBoxCell.cs: Implement data binding support.
1078
1079 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1080
1081         * DataGridView.cs: Use the CurrencyManager to update the data source 
1082         binding position instead of casting the data sourcde to BindingSource.
1083         This enables position updating for other type of data sources.
1084
1085 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1086
1087         * ComboBox.cs: Update the SelectedIndex before updating the Text 
1088         in OnDisplayMemberChanged.
1089
1090 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
1091
1092         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1093         [Fixes bug #457112]
1094
1095 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1096
1097         * DataGridView.cs: Sorting fixes:
1098            - Be strict when sorting is enabled.
1099            - If there is a data source delegate the sorting request.
1100
1101 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1102
1103         * Binding.cs: When converting the data also try with the destination 
1104         type typeconverter. This indirectly adds support for Nullable types 
1105         in our databinding layer.
1106
1107 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1108
1109         * DataGridView.cs: When cell editing is finished focus back the 
1110         DataGridView. Fixes keyboard navigation post-editing.
1111
1112 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1113
1114         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
1115         setting to after EndEdit is called for the old cell.
1116
1117 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1118
1119         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1120
1121 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1122
1123         * XplatUIX11.cs: Send WM_HELP only to the focused window.
1124
1125 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1126
1127         * CurrencyManager.cs: Fix exceptions when resetting the data source 
1128         for the same time (e.g. in ComboBox): 
1129            - Do not set the list position if we are still transferring data
1130            - When resetting the list firstly push the data then update the 
1131            binding.
1132         * Binding.cs: Check BindingManager.Position == -1 instead of 
1133         BindingManager.Current == null in order to avoid unexpected 
1134         exceptions.
1135
1136 2008-12-05  Brad Taylor  <brad@getcoded.net>
1137
1138         * MonthCalendar.cs: Add UIA specific events so that we can know when
1139         the selection changes, and when MaxSelectedCount changes.
1140
1141 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1142
1143         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
1144         used for anything.
1145
1146 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1147
1148         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
1149         to the control being drawn for the first time by:
1150            - Implement DisplayedRowsCount to not rely on the control being
1151            already painted. Also added support for the partial row flag.
1152            - Fix scrolling to take into account partial rows and scroll to
1153            them.
1154         [Fixes bug #456527]
1155
1156 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1157
1158         * DataGridView.cs: Do not reset the CurrentCell when the handle is
1159         created if the user has already set it.
1160
1161 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1162
1163         * DataGridView.cs: Fix CurrentCell to actually select the cell.
1164
1165 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1166
1167         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
1168         text and then let the underneath users of IDataObject interpret and
1169         parse by themselves. 
1170         Fixes #439251.
1171
1172 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1173
1174         * DataGridView.cs: Fix my previous commit to actually update what it 
1175         was supposed to.
1176
1177 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1178
1179         * DataGridView.cs: Ensure that when a row is removed the all the 
1180         current row/column/cell get updated. Fixes multiple exceptions.
1181
1182 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1183
1184         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
1185         is used.
1186         [Fixes bug #443560]
1187
1188 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1189
1190         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
1191         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
1192         new state.
1193         [Fixes issue 1 in bug #443560]
1194
1195 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1196
1197         * DataGridView.cs: Invalidate after the current row/column seletion 
1198         chagnes.
1199         [Fixes bug #438434]
1200
1201 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1202
1203         * DataGridView.cs: Refresh the data if the data list is reset, etc.
1204
1205 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1206
1207         * DataGridView.cs: Handle datasource state changes:
1208            - IBindingList - list changes
1209            - BindingSource - list changed and datasource changes
1210
1211 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1212
1213         * DataGridView.cs: Select the first cell when databound. 
1214         Visually select when CurrentCell is set.
1215
1216 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1217
1218         * DataGridView.cs: Set the current cell before raising CellClick.
1219
1220 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1221
1222         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
1223         CellLeave events as this is already done in SetCurrentCellAddressCore.
1224
1225 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1226
1227         * DataGridView.cs: Set the minimum size for the columns to be the 
1228         width of their header, so that the columns don't get squashed 
1229         all together.
1230
1231 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1232
1233         * DataGridView.cs: After the data is bound PerformLayout, so that 
1234         the columns get autosized.
1235
1236 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1237
1238         * DataGridView.cs: Move all currentCell setting code into 
1239         one central place - SetCurrentCellAddressCore. That way the 
1240         current cell is properly updated when programatically set.
1241         Fire RowEnter/Leave events.
1242
1243 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1244
1245         * DataGridView.cs: Update the CurrencyManager.Position, so that 
1246         when a BindingSource is used BindingSource.Current will be correct.
1247
1248 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1249
1250         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
1251            - No caption text is drawn because Color.Empty is used.
1252            - Fix top and height off by 1.
1253
1254 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1255
1256         * DataGridViewRow.cs: Implement DataBoundItem.
1257
1258 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1259
1260         * BindingSource.cs: Return null for Current if there is no data present.
1261
1262 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1263
1264         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
1265         menus using the arrow keys. Also when handling the left arrow key, don't 
1266         assign the current menu to the parent one, if the parent is null.
1267         Fixes #446392.
1268
1269 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
1270
1271         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
1272         #413501.
1273
1274 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1275
1276         * Scrollbar.cs:
1277         * ScrollableControl.cs: Simplify the code to manually set the size of
1278         the thum area, avoiding duplication of code, and also preserving the
1279         right value for different code paths - this can happen when size
1280         changes are made to the scrollbar after setting LargeChange, Maximum
1281         or related properties for the ScrollBar.
1282
1283 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1284
1285         * ScrollableControl.cs: When scrolling, don't invalidate the entire
1286         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
1287         what .Net does: copy the visible area, and only invalidate the part of
1288         the area that wasn't visible before scrolling.
1289         Fixes #441738.
1290
1291 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
1292
1293         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
1294         can clear ourselves when it is raised, we don't have a newrowindex
1295         if we don't have any columns.
1296         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
1297         re-index after each delete so the NewRow will have the correct index.
1298         [Fixes bug #448005]
1299
1300 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
1301
1302         * Form.cs: Don't change min/max size if it is empty.
1303         [Fixes bug #447873]
1304
1305 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1306
1307         * ScrollBar.cs:
1308         * ScrollableControl.cs: When the manual thumb size is used, the
1309         maximum allowed value should depend on that thumb size, instead of
1310         LargeChange (using the maximum - LargeChange + 1 value). But
1311         LargeChange should be used normally when incrementing/decrementing.
1312         Fixes the remaining part of #441546.
1313
1314 2008-11-23  Andreia Gaita  <avidigal@novell.com>
1315
1316         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
1317         until an about:blank has been loaded (according to spec). Fix 
1318         ScrollbarsEnabled to set when a document is loaded (since we use js 
1319         for it). Fix url so it reflects the current loading document and not 
1320         the previous one. Send StatusChanged events.
1321
1322 2008-11-23  Andreia Gaita  <avidigal@novell.com>
1323
1324         * Application.cs: If a message comes in for an embedded control
1325         (like webbrowser) when we're capturing the keyboard, release the
1326         capture and continue.
1327         [fixes #429462]
1328
1329 2008-11-22  Andreia Gaita  <avidigal@novell.com>
1330
1331         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
1332
1333 2008-11-21  Andreia Gaita  <avidigal@novell.com>
1334
1335         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
1336         
1337 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1338
1339         * ScrollBar.cs:
1340         * ScrollableControl.cs: Set manually the thumb size for the
1341         ScrollableControl scrollbars, so any further changes to the underneath
1342         scrollbars respect the original size.
1343         Fixes part of #441546.
1344
1345 2008-11-21  Geoff Norton  <gnorton@novell.com>
1346
1347         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
1348         PlatformID.MacOSX now exists.
1349
1350 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1351
1352         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
1353         Having something internal abstract isn't very nice for people who want
1354         to inherit from this class.
1355
1356 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1357
1358         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
1359         invalid value.  Just return null for the Image, and use the ImageList's
1360         ImageSize for calculations.
1361
1362 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1363
1364         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
1365         through DroppedDown so the proper events get called and state gets reset.
1366         [Fixes bug #446805]
1367
1368 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
1369
1370         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
1371         the collection is modified.
1372
1373 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
1374
1375         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
1376         aren't always correct, and fixing them for every case is not worth the
1377         negligible benefit they provide.
1378         [Fixes bug #445713]
1379
1380 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
1381
1382         * DataGridView.cs: We should never add actual cells to the RowTemplate.
1383         Internally, use RowTemplateFull to give us a new row with cells.
1384         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
1385         * DataGridViewRowCollection.cs: Use RowTemplateFull.
1386
1387 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1388
1389         * XplatUIX11.cs: Forms without borders should be able to change its
1390         size - specially they should be able to be maximized, adding the
1391         respective MotifFunctions.Resize bit when setting window properties as
1392         well as *not* marking the Hwnd as size fixed.
1393         Fixes #444347.
1394
1395 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
1396
1397         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
1398         an alpha value.
1399         [Fixes bug #444348]
1400
1401 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
1402
1403         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
1404         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
1405         AutoSizeColumnModeChanged.
1406         [Fixes bug #443609]
1407
1408 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
1409
1410         * DataGridViewRowCollection.cs: Guard against the user deleting the
1411         NewRow.  Add an internal delete so we can still delete it.
1412         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
1413         [Fixes bug #442181]
1414
1415 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
1416
1417         * TextControl.cs: Add some order of operation to our math so
1418         we don't end up with a negative height for our invalidate rect.
1419         [Fixes bug #381889]
1420
1421 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
1422
1423         * Control.cs: When our enabled changes, notify our implicit children
1424         controls as well as our regular controls.
1425         [Fixes bug #441523]
1426
1427 2008-11-08  Andreia Gaita <shana@jitted.com> 
1428
1429         * HtmlElement.cs: Small code cleanup
1430
1431 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1432
1433         * BindingNavigator.cs: MoveFirstItem should be enabled only if
1434         position is larger than 0, not only different than 0. Also Position
1435         and Count items should be enabled if the BindingSource is non null and
1436         non empty.
1437         Fixes #439961.
1438
1439 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
1440
1441         * TabControl.cs: Don't raise SelectedIndexChanged until we have
1442         actually modified the tab collection, so TabCount will be correct.
1443         [Fixes bug #441896]
1444
1445 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1446
1447         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
1448         NonSerialized to fix serialization of ListViewItem.
1449
1450 2008-11-04  Mike Gorse  <mgorse@novell.com>
1451
1452         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
1453           focus change, and always call in SetFocusedItem.
1454         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
1455
1456 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
1457
1458         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
1459         mode.  Based on a patch by John Mortlock.
1460         [Fixes bug #436790]
1461
1462 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1463
1464         * ListView.cs: Use the UsingGroups property where needed, instead of
1465         duplicating the check in other places.
1466
1467 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1468
1469         * ListView.cs: When calculating layout, refresh the count of items
1470         belonging to the default item, insteas of doing it only one time. This
1471         was already working fine for icon views, not not for details.
1472         Fixes #438948.
1473
1474 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1475
1476         * ListView.cs:
1477         * ListViewItem.cs:
1478         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
1479         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
1480         does.
1481         Fixes #437933.
1482
1483 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1484
1485         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
1486
1487 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1488
1489         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
1490         #441280, patch by Mike Gorse <mgorse@novell.com>.
1491
1492 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1493
1494         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
1495         if there is no scrollbar.
1496         [Fixes bug #440885]
1497
1498 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1499
1500         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
1501         patch from Andy Hume that fixes many issues with ProgressBar.
1502         [See bug #440220]
1503
1504 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1505
1506         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
1507         [Fixes bug #438866]
1508
1509 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1510
1511         * UpDownBase.cs:
1512         * DomainUpDown.cs:
1513         * NumericUpDown.cs: Internal events added to UpDownBase:
1514         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
1515         <ngao@novell.com>.
1516
1517 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1518
1519         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
1520
1521 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1522
1523         * ListView.cs:
1524         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
1525         Application.EnableVisualStyles hasn't been called.
1526         Fixes part of #437933.
1527
1528 2008-10-31  Andreia Gaita  <shana@jitted.com>
1529
1530         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
1531           if the container is not focused already, we need to specifically set
1532           focus to the first available control, or to the form itself if there
1533           are no controls.
1534
1535 2008-10-31  Andreia Gaita  <shana@jitted.com>
1536
1537         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
1538         WM_ACTIVATE have been processed before returning, so it is guaranteed that
1539         once it returns and the form is visible, it is actually on the screen on X11
1540
1541         * ContainerControl.cs: Only send focus to the control if the top container
1542           is already focused. This is so that, when a form is first shown, all
1543           the enter/leave events are done first before any focus stuff comes in.
1544           If a control has no top container, there's an extra check on Control.Focus
1545           to make sure it gets focused in this particular case.
1546
1547         * Control.cs: Force focus if the control is active but did not receive
1548           focus after being set as active.
1549
1550         * MdiClient.cs: Dispose the form when closing
1551
1552         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
1553           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
1554           if the window is a top Form.
1555           Reset all hwnd properties when the window has been destroyed so that
1556           we don't land in any codepaths that might try to do something with it.
1557           Added a bunch of debugging messages. If TRACE is defined, all X calls
1558           are logged through DebugHelper. Set a few missing EntryPoint attributes.
1559
1560 2008-10-29  Mario Carrion <mcarrion@novell.com>
1561
1562         * ListViewItem.cs: Control enabled to support Accessibility:
1563         - Internal events: UIATextChanged, UIASubItemTextChanged.
1564         - Internal event UIATextChanged in ListViewSubItem that triggers
1565         UIASubItemTextChanged.
1566         * ListView.cs: Control enabled to support Accessibility:
1567         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
1568         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
1569         - Internal event UIACollectionChanged in ColumnHeaderCollection.
1570         - Internal event UIACollectionChanged in ListViewItemCollection.
1571         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
1572         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
1573         - Internal methods: UIAGetHeaderBounds.
1574
1575 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1576
1577         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
1578         the event from the respective scrollbars.
1579         Fixes #436709.
1580
1581 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1582
1583         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
1584         textbox to know whether any navigation key will be handled or not. If
1585         not, don't pass the message to the textbox, and use it here instead. 
1586         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
1587         is more precise- than the previous AutoCompleteMatches one.
1588         This should the keyboard navigation in ComboBox when using auto
1589         complete modes.
1590
1591 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
1592
1593         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
1594         [Fixes bug #436730]
1595
1596 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
1597
1598         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
1599         overridden methods will get called.
1600         * ToolStripItem.cs: Raise Click before MouseUp.
1601         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
1602         the item's location into account.
1603         [Fixes bug #437683]
1604
1605 2008-10-24  Neville Gao  <nevillegao@gmail.com>
1606
1607         * NumericUpDown.cs: Control enabled to support accessibility.
1608         [Fiexes bug #438135]
1609
1610 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1611
1612         * TextBox.cs: Check that we actually have items no navigate, select
1613         text when pressing enter, as well as handle direction keys only if
1614         mode is different to Suggest or the suggest listbox is visible.
1615
1616 2008-10-23  Andreia Gaita  <shana@jitted.com>
1617
1618         * WebBrowser.cs: Use the new ContentStream property to retrieve
1619           a stream encoded from the document content
1620
1621 2008-10-23  Andreia Gaita  <shana@jitted.com>
1622
1623         * HtmlDocument.cs,
1624           HtmlElement.cs,
1625           HtmlWindow.cs: Fix GetHashcode for null objects
1626
1627 2008-10-22  Andreia Gaita  <shana@jitted.com>
1628
1629         * HtmlDocument.cs,
1630           HtmlElement.cs,
1631           HtmlWindow.cs: Fix equality operators (fixes #428173)
1632
1633 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
1634
1635         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
1636         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
1637         [Fixes bug #436772]
1638
1639 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
1640
1641         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
1642         same item with the mouse as was already selected.
1643         [Fixes bug #436789]
1644
1645 2008-10-21  Brad Taylor  <brad@getcoded.net>
1646         
1647         * TextControl.cs: Break out code to get the visible range into
1648           GetVisibleLineIndexes to be used in UIA code.
1649         
1650         * Line.cs:
1651         * TextControl.cs:
1652         * TextBoxBase.cs: Add comments indicating that the method or property
1653           is used via reflection from UIA code.
1654
1655 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1656
1657         * ListViewItem.cs: Match .net serialization.
1658         Fixes remaining part of #417520.
1659
1660 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
1661
1662         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
1663
1664 2008-10-20  Mario Carrion <mcarrion@novell.com>
1665
1666         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
1667         added: UIAToolTipRectangle.
1668
1669 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1670
1671         * ListViewItem.cs: When deserializing enumerate over the data, instead
1672         of accessing the data directly. This way we handle much better the
1673         cases were we lack information.
1674         Fixes #417520.
1675
1676 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1677
1678         * ListView.cs: When removing an item from a main ListView.Items
1679         collection (and not a ListViewGroupCollection.Items one), remove it
1680         also from the group, as .net does. Patch by Mario Carrion (mario at
1681         novell dot com).
1682         Fixes #436653.
1683
1684 2008-10-19  Andreia Gaita  <avidigal@novell.com>
1685
1686         * Form.cs: Forms that get closed without a handle being created are
1687         disposed in 2.0. Fixes failing FormTest.FormClose and
1688         FormTest.FormClose2 on windows.
1689
1690 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1691
1692         * ListView.cs: If both scrollbars are visible, the vertical one
1693         shouldn't extend too far down.
1694         Fixes #435771.
1695
1696 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
1697
1698         * DataGridView.cs: Add the ability to resize columns and rows with
1699         the mouse.  Also support double-clicking to autoresize.
1700         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
1701         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
1702         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
1703         isn't shown on autoresize.
1704         [Fixes bug #420193]
1705
1706 2008-10-17  Mario Carrion <mcarrion@novell.com>
1707
1708         * ComboBox.cs: Remove UIAListbox.
1709
1710 2008-10-17  Mario Carrion <mcarrion@novell.com>
1711
1712         * ComboBox.cs, ListBox.cs: Using added/removed item in 
1713           OnUIACollectionChangedEvent instead of index.
1714
1715 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
1716
1717         * ComboBox.cs: When we are sorting the items, if the item's type
1718         doesn't support IComparer, use a default one that compares based
1719         off the item's visible text.
1720         [Fixes bug #436328]
1721
1722 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1723
1724         * ColumnHeader.cs: Invalidate ListView.header_control when setting
1725         ImageIndex/ImageKey.
1726         * ThemeWin32Classic.cs: When drawing the column header, draw a image
1727         for the column if available, and make the required adjustments to the
1728         text location.
1729         Fixes #435105.
1730
1731 2008-10-17  Neville Gao  <nevillegao@gmail.com>
1732
1733         * StatusBarPanel.cs: Control enabled to support accessibility.
1734         [Fixes bug #435988]
1735
1736 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1737
1738         * DataGridView.cs: When a user begins an edit in the 'new row',
1739         make that a real row, and add a new 'new row'.  If the user
1740         cancels the edit, remove the new 'new row' and reset everything.
1741         Also, ensure UserAddedRow and UserRemovedRow events are raised.
1742         [Fixes bug #430954]
1743
1744 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
1745
1746         * TableLayoutSettings.cs: Fix NREs when deserializing and 
1747         panel is not yet set.
1748         [Fixes bug #436199]
1749
1750 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1751
1752         * DataGridView.cs: Invalidate after deleting a row.
1753
1754 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1755
1756         * DataGridView.cs: Handle Enter and Escape keys.
1757           - Move call to EndEdit to MoveCurrentCell.
1758           - Remove call to EndEdit from navigation key routines.
1759           - Fire CellLeave and CellEnter.
1760
1761 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1762
1763         * DataGridViewCell.cs: Some fixes to the new cell border
1764         painting code.
1765
1766 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1767
1768         * ThemeEngine.cs: Enable visualstyles rendering by default
1769         (on platforms that support it).
1770
1771 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
1772
1773         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
1774         MainForm.OnLoad has completed unless DoEvents is forced.
1775         [Fixes bug #412536]
1776
1777 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
1778
1779         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
1780
1781 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
1782
1783         * Control.cs: Make our implementation of DrawToBitmap better 
1784         match WmPaint.  [Fixes bug #435579]
1785
1786 2008-10-14  Andreia Gaita  <avidigal@novell.com>
1787
1788         * WebBrowser.cs: Use DocumentElement as the document's root for the
1789         whole content. Should fix DocumentText and DocumentStream problems.
1790
1791 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
1792
1793         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
1794         these will get called in DGV.OnCollectionChanged.  Make sure 
1795         OnCollectionChanged always gets called.
1796         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
1797         from every row.  Call this in OnCollectionChanged.
1798         [Fixes bug #433669]
1799
1800 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1801
1802         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
1803         textbox if auto complete is used, since we need to navigate over it.
1804         And in this case don't pass this messages to the base impl. Also hide
1805         the auto complete list box when displaying the drop down listbox.
1806         * TextBox.cs: new internal members to expose some of the auto complete
1807         functionality to combobox.
1808
1809 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
1810
1811         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
1812         MainForm.OnLoad has completed.
1813         [Fixes bug #412536]
1814
1815 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1816
1817         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
1818         Append support to this controls. We need it to apply new patches.
1819
1820 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1821
1822         * Control.cs: When updating z order in child controls, send to back
1823         the implicit controls. Also, do it explicitly, instead of making
1824         GetAllControls return the implicit controls in a specific order, and
1825         thus avoid depending on that, which could change in the future.
1826         Fixes #434304.
1827
1828 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1829
1830         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
1831         call to StartDrag, since we must fire DragDrop/DragLeave *before*
1832         that, as .net does - instead of firing DragDrop/DragLeave *after* the
1833         call to Control.DoDragDrop has completed. This is needed since at the
1834         point of returning, we have sent related dnd ClientMessages, but we
1835         need to wait for them to fire the wmf respective ones.
1836         Fixes #325076.
1837
1838 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
1839
1840         * LinkLabel.cs: Recreate link pieces when change Padding.
1841
1842 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
1843
1844         * LinkLabel.cs: Take Padding into account when recreate link pieces.
1845         [Fixes bug #412530]
1846
1847 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
1848
1849         * Control.cs: Implement internal property PaddingClientRectangle, it will be
1850         useful for drawing controls that must take care about Padding property.
1851
1852 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
1853
1854         * BindingSource.cs: Make item_type internal so we can access it in DGV.
1855         * DataGridView.cs: Add support for autogenerating columns from a
1856         BindingSource.
1857
1858 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1859
1860         * DataGridView.cs: Comment out an exception that is getting thrown
1861         too often currently.
1862
1863 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1864
1865         * DataGridView.cs: Always rebind to the datasource, as things may
1866         have changed in it that we aren't capturing yet.
1867
1868 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1869
1870         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
1871         drawing mode.  If we are top aligned, give ourselves some top padding.
1872
1873 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1874
1875         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
1876         events on the control under the mouse pointer, instead of firing them
1877         on the window generating the dnd operation. To achieve this re-use the
1878         code used to get the window under the pointer when getting MouseMove
1879         events.
1880         Fixes #381876.
1881
1882 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1883
1884         * X11Dnd.cs: Don't check that that the window sending the dnd events
1885         is the owner of the selection. Although Gtk+ sets it that way, it's
1886         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
1887         So, just as Gtk+ does, we set our window sending the dnd events as the
1888         owner of the selection, but don't check it when receiving them. This
1889         should fix interoperability with Qt/Kde.
1890         Fixes #324251.
1891
1892 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
1893
1894         * DataGridView.cs: Make sure we take the vertical scrollbar into
1895         account when autosizing columns.
1896
1897 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
1898
1899         * DataGridView.cs: Handle sorting datetimes.
1900
1901 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
1902
1903         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
1904         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
1905         compilation warnings.
1906
1907 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1908
1909         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
1910         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
1911         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
1912         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
1913         compilation warnings.
1914
1915 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1916
1917         * DataGridView.cs, DataGridViewCell.cs, 
1918         DataGridViewCellValidatingEventArgs.cs, 
1919         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
1920         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
1921         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
1922
1923 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1924
1925         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
1926         Cleanup compilation warnings.
1927
1928 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1929
1930         * XplatUIWin32.cs: Cleanup compilation warnings.
1931
1932 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1933
1934         * PropertyGrid.cs: Cleanup compilation warnings.
1935
1936 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1937
1938         * DataGridViewRow.cs: Only clear the row background if we
1939         are going to paint a new background.
1940
1941 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1942
1943         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
1944         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
1945         use PaintBorder instead.        
1946
1947 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1948
1949         * DataGridView.cs: When CellBorderStyle is set, update the
1950         AdvancedCellBorderStyle to match.
1951
1952 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1953
1954         * DataGridViewCell.cs: Add helper methods to convert Alignment
1955         to TextFormatFlags and align rectangles.
1956         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
1957         * DataGridViewImageCell.cs: Use Alignment when painting the image.
1958
1959 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
1960
1961         * ToolTip.cs: Display tooltips only for controls on the active form.
1962         [Fixes bug #428115]
1963
1964 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1965
1966         * DataGridView.cs: Make OnCellValueNeeded internal.
1967         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
1968         user can supply their own value if they choose.
1969
1970 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1971
1972         * DataGridViewColumnHeaderCell.cs: Create a new style object
1973         so the DefaultCellStyle doesn't get changed.
1974
1975 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1976
1977         * ToolStripItem.cs: Check to make sure the owner is actually
1978         changing in InternalOwner before doing any work.  Fixes some
1979         failing tests.
1980
1981 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1982
1983         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
1984         * DataGridView.cs: Use a column header's inherited style instead
1985         of just using the default.
1986
1987 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1988
1989         * SplitContainer.cs: Raise SplitterMoved when the splitter is
1990         moved through code.
1991
1992 2008-10-01  Mario Carrion <mcarrion@novell.com>
1993
1994         * ScrollBar.cs: Internal property added: UIAThumbPosition.
1995
1996 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1997
1998         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
1999
2000 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2001
2002         * ToolStripItem.cs: When the user sets Owner, we need to remove
2003         it from its previous owner and then add it to the new owner's
2004         item collection.  Also, create InternalOwner, so we can set the owner
2005         that doesn't do this new stuff.
2006         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2007
2008 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2009
2010         * ToolStripItem.cs: When our parent changes, recalculate our text
2011         size, since we may be getting our Font from our parent.  When our
2012         owner's Font changes, recalculate ourselves as we may be using
2013         that font.
2014
2015 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
2016
2017         * MenuAPI.cs: Select the first option of a popup when opening the popup via
2018         return key. [Fixes bug #413792].
2019
2020 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2021
2022         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2023         ambient properties.  (Get their value from their parents if
2024         values haven't been set.)
2025
2026 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2027
2028         * ToolStripSystemRenderer.cs: Call overridden methods' bases
2029         after our logic, so users can do painting by handling the events.
2030         Currently, we draw over any user painting.
2031
2032 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2033
2034         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2035         after our logic, so users can do painting by handling the events.
2036         Currently, we draw over any user painting.
2037
2038 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
2039
2040         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2041
2042 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2043
2044         * TreeNode.cs, TreeView.cs: Move logic that determines the node
2045         image to draw to TreeNode.  Give Index/Keys put on the node
2046         precedence over the global one for the TreeView.
2047
2048 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2049
2050         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2051
2052 2008-09-29  Mario Carrion <mcarrion@novell.com>
2053
2054         * ListBox.cs: Index fixed.
2055
2056 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2057
2058         * TabControl.cs: When expanding the tab -because it's selected now-,
2059         using Right alignment, instead of adding some selected delta value to
2060         the X origin, substract it, so it gets a location adjacent to the panel, 
2061         instead of be more separated.
2062         Fixes #409170.
2063
2064 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
2065
2066         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2067         own copies of them.
2068
2069 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2070
2071         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2072         as well as the other static fields, to avoid using their previous
2073         values my mistake when handling the dnd events. This should avoid
2074         handling any status event after the drop has been finalized/cancelled.
2075
2076 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2077
2078         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2079         operation, instead of waiting until we get any movement - this will
2080         help us to have the data available in case no movement was detected
2081         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2082         Finally add a windows.forms-only fallback to fire the mentioned events
2083         if no movement at all was detected, just like .net does.
2084         Fixes #381876.
2085
2086 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
2087
2088         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2089         return early if the text is empty because the icon doesn't get
2090         drawn then.  [Fixes bug #428113]
2091
2092 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2093
2094         * FileDialog.cs: Implement basic support for sorting by columns in
2095         Details view. Patch by Eric Petit.
2096         Fixes #428006.
2097
2098 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2099
2100         * ThemeWin32Classis.cs: When drawing gridlines take into account the
2101         case where ListView.ItemSize hasn't been computed, and provide a
2102         fallback as well. This prevents a division by 0.
2103
2104 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2105
2106         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2107         correctly draw tooltip backgrounds.
2108
2109 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2110
2111         * ImageList.cs: Change CopyTo implementation to ensure clones are
2112         created of our images.
2113         [Fixes bug #409169]
2114
2115 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2116
2117         * Control.cs: When setting fonts, we need to ensure we change our
2118         reference to the new font object, even if it represents the same
2119         font as before.  If we don't, the original font can get disposed
2120         and we will still try to use it.
2121         [Fixes bug #386450]
2122
2123 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2124
2125         * FileDialog.cs: Take into account Tile view when selecting the view
2126         (2.0 profile).
2127
2128 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2129
2130         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
2131         the item bounds, since we can't iterate over them in virtual mode.
2132         Also fix wrong calculation of the gridlines when using scrolling.
2133         Fixes #400390.
2134
2135 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2136
2137         * XplatUIX11.cs: When handling EnterNotify events, take into account
2138         both the public and implicit controls when trying to detect the
2139         grab/ungrab process. This should fix ListView selection in Details
2140         view.
2141
2142 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2143
2144         * TreeView.cs: Redraw the whole node area when the selected node changes.
2145         Things like state images were not getting redrawn because the invalid
2146         rectangle was too small.
2147         [Fixes bug #428211]
2148
2149 2008-09-23  Mario Carrion  <mcarrion@novell.com>
2150
2151         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
2152         [Fixes bug #428993]
2153
2154 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2155
2156         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
2157         [Fixes bug #428114]
2158
2159 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2160
2161         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
2162         [Fixes bug #427884]
2163
2164 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2165
2166         * StatusBar.cs: Add tooltip support.
2167         [Fixes bug #428113]
2168
2169 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2170
2171         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
2172         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
2173         hlaustralia.com.au).
2174         Fixes #425360.
2175
2176 2008-09-23  Neville Gao  <nevillegao@gmail.com>
2177
2178         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
2179         [Fixes bug #419079]
2180
2181 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
2182
2183         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
2184         [Fixes bug #428107]
2185
2186 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2187
2188         * ListView.cs: Don't do anything when EnsureVisible is called inside a
2189         BeginUpdate/EndUpdate block.
2190         Fixes #425049.
2191
2192 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2193
2194         * ListViewItem.cs: The semantics for the public .ctor of
2195         ListViewSubItemCollection need us to already have a Text value for the
2196         item, which in our implementation have as available *after* adding the
2197         first sub item. So create an internal .ctor that satisfies our needs
2198         and let the public .ctor have the same semantics as .net.
2199         Fixes #427561.
2200
2201 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2202
2203         * ListControl.cs: Changes in Formatting related values should call
2204         RefreshItems, as .net does.
2205         * ComboBox.cs:
2206         * ListBox.cs: In the respective overrides of RefreshItems calculate
2207         layout as well as refreshing - again, this is what .net does.
2208         Fixes #426168.
2209
2210 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2211
2212         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
2213         since we are already doing that when we change the value of the
2214         scrollbar or force the call to ScrollWindow in the same method. This
2215         way we don't cause a Invalidate call for all the listbox bounds for
2216         methods calling UpdateTopItem with an already updated top item. This
2217         was happening specially calling EnsureVisible with already visible
2218         items.
2219
2220 2008-09-18  Mike Gorse <mgorse@novell.com>
2221
2222         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
2223           XplatUIStructs.cs: Added KeyFilter
2224         [Fixes bug #427039]
2225
2226 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2227
2228         * RelatedPropertyManager.cs: The properties returned by
2229         GetItemProperties should be that ones of the *actual* object returned
2230         by the property, not the property type - this is very special when the
2231         property exposes a type, but the returned object actually is a child
2232         class and implements more functionality and properties.
2233
2234 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2235
2236         * Binding.cs: Don't look for the property in the data source if the
2237         passed string is empty.
2238
2239 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2240
2241         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
2242         fix unused variable warnings.
2243
2244 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2245
2246         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
2247         [Fixes bug #427073]
2248
2249 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2250
2251         * XplatUIX11.cs: 
2252          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
2253          leads to the window manager overriding our border style and zorder. 
2254          - Allow the activation of non-modal forms, which are children of a 
2255          modal form.
2256         [Fixes bug #423417]
2257
2258 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2259
2260         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
2261         ask the window manager to do the work instead of changing the property 
2262         directly.
2263         [Fixes bug #423417]
2264
2265 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2266
2267         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
2268         AddNew to fix some navigation for empty datasets. [Fixes #323053]
2269
2270 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2271
2272         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
2273         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
2274         border and fixes some drawing issues when resize form.
2275
2276 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2277
2278         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
2279         
2280         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
2281         AcceptButton.
2282
2283 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2284
2285         * TextBoxBase.cs: For standard textbox the scrollbars are always 
2286         visible if Multiline is true.
2287         [Fixes bug #426896]
2288
2289 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
2290
2291         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
2292         patch.
2293         
2294 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
2295
2296         [Fixes most od DBNull and HeadersVisible problems]
2297         
2298         * DataGrid.cs:
2299         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
2300         returns the value that we need.
2301         - Fixed FromPixelToColumn method that return zero for first     column and for
2302         row header cell, now it returns -1 for row header cell.
2303         - Fixed HitTest to check row header cell in column header area, it now
2304         returns HitTestType.None. [Fixes #322864]
2305         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
2306         checks for RowHeadersVisible and other things.
2307         - If an exception occurs when setting CurrentCell and user type 'yes' in
2308         message dialog, invalidade current and new cell and set setting_current_cell
2309         to false to prevent future errors. [Partially fixes #323050]
2310
2311         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
2312         value (SetColumnValueAtRow), it must be done by grid to properly show 
2313         messages. [Fixes #323050]
2314
2315         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
2316         better draw column and row header. Also dont draw anything when column
2317         headers is not visible.
2318
2319 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2320
2321         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
2322         logic.
2323
2324 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2325
2326         * TreeView.cs: Don't start editing a node on right click, only
2327         left click.
2328
2329 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2330
2331         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
2332         disabled over a year ago.
2333         * Form.cs: Wrap calling Load in a try/catch because it can happen
2334         before the catch-all one in NativeWindow.
2335         [Fixes bug #425414]
2336
2337 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2338
2339         * ToolStripDropDownMenu.cs: Calculate the connected area better
2340         to take into account when the drop down is not directly under the
2341         owner item.
2342         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
2343
2344 2008-09-16  Mario Carrion <mcarrion@novell.com>
2345
2346         * ScrollBar.cs: New event added: UIAValueChanged, generated when
2347           LargeChange, SmallChange, Maximum or Minimum values are changed.
2348         [Fixes bug #426464]
2349
2350 2008-09-16  Mario Carrion <mcarrion@novell.com>
2351
2352         * ErrorProvider.cs: Component enabled to support accessibility.
2353         * Application.cs: Updated to Initialize UIA in ErrorProvider.
2354         [Fixes bug #426459]
2355
2356 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2357
2358         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
2359         so we don't highlight on first focus.
2360         [Fixes bug #360869]
2361
2362 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2363
2364         * TextControl.cs: Correctly calculate the height of the area we 
2365         need to invalidate when we have started scrolling and viewport_y
2366         is used.  [Fixes bug #387608]
2367
2368 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2369
2370         * TextControl.cs: When getting the SelectedText, don't add in
2371         NewLine characters, as they are already contained in the lines.
2372         [Fixes bug #388115]
2373
2374 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2375
2376         * TextBoxBase.cs: Replace the buggy Lines setter with one that
2377         simply concats the lines and send it to the Text setter.
2378         [Fixes issue #2 and #3 of 388115]
2379
2380 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2381
2382         * Binding.cs: The default value of DataSourceNullValue should be
2383         Convert.DBNull actually. Also, the NullValue should only be used *if*
2384         itself is not null, and use the null/Convert.DBNull value instead.
2385
2386 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2387
2388         * TextControl.cs: Add a method to convert a string newline to the
2389         newline enum.
2390         * TextBoxBase.cs: When the user hits enter, insert a native newline.
2391         [Fixes part 1 of bug #388115]
2392
2393 2008-09-15  Mario Carrion <mcarrion@novell.com>
2394
2395         * ToolTip.cs: UnPopup event set to internal to match public API.
2396
2397 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2398
2399         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
2400         have to remove the Ctrl in order for the focus moving code to kick in.
2401         [Fixes bug #426170]
2402
2403 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2404
2405         * CheckedListBox.cs: Return the real item index from Add.  It may not be
2406         the last item if the list is sorted.  The user can change the NewValue in
2407         the ItemCheck event, we need to use that value if so.
2408         * ListBox.cs: Return the real item index from a sorted Add.
2409         [Fixes bug #426166]
2410
2411 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
2412
2413         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
2414         happen that the icons from the theme is missing or the particular size 
2415         unavailable.
2416         [Fixes bug #424981]
2417
2418 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2419
2420         * Binding.cs: When assigning null or DBNull depending on value/ref type,
2421         use IsValueType instead to get the precise desired value.
2422         Fixes #424276.
2423
2424 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2425
2426         * TreeNodeCollection.cs: When adding a new node to an opened node,
2427         we have to invalidate everything below the parent node because
2428         every node scoots down and we have to repaint them.
2429         [Fixes bug #411386]
2430
2431 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2432
2433         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
2434         property into account when drawing.
2435         [Fixes bug #416064]
2436
2437 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2438
2439         * ListBox.cs: When calling Items.Clear(), call
2440         SelectedIndexCollection.ClearCore instead of normal Clear method, to
2441         not fire any Selected*Changed event - this is done to match .net and
2442         don't have invalid values when changing the DataSourceProperty.
2443         Fixes #424273.
2444
2445 2008-09-12  Mario Carrion  <mcarrion@novell.com>
2446
2447         * HelpProvider.cs: Control enabled to support accessibility.
2448         * Application.cs: Updated to Initialize UIA in HelpProvider.
2449         [Fixes bug #425988]
2450
2451 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2452
2453         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
2454         make the dialog TopMost as well.
2455         [Fixes bug #425984]
2456
2457 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2458
2459         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
2460         clipboard data better.
2461         [Fixes bug #414446]
2462
2463 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2464
2465         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
2466         TextChanged and SelectionChanged events fire in the same order as .Net.
2467         [Fixes bug #425725]
2468
2469 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2470
2471         * DataGridView.cs: When sorting a column, if it only contains numbers,
2472         do a numeric sort instead of a string sort.
2473         [Fixes bug #425849]
2474
2475 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2476
2477         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
2478         against NRE's when the settings have a null panel.
2479         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
2480         the panel gets set.
2481         [Fixes bug #425647]
2482
2483 2008-09-11  Mario Carrion  <mcarrion@novell.com>
2484
2485         * ToolTip.cs: Control enabled to support accessibility.
2486         * Application.cs: Updated to Initialize UIA in ToolTip.
2487         [Fixes bug #425277]
2488
2489 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2490
2491         * Control.cs: Make the custom Enumerator internal to fix build.
2492
2493 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2494
2495         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
2496         already in edit mode, begin edit mode.  Generally edit mode isn't
2497         started until the second click, but CheckBoxes are special.
2498
2499 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2500
2501         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
2502         since that can be set to anything.  Always add them to the Control's
2503         parent.  [Fixes bug #416058]
2504
2505 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2506
2507         * ListView.cs: Use a custom enumerator for ListViewItemCollection
2508         so items can be deleted in a foreach.
2509         [Fixes bug #425342]
2510
2511 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2512
2513         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
2514         Store the user set explicit height so that the row can be AutoSized
2515         and then when AutoSize is turned off, it can get its original size back.
2516         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
2517         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
2518         rows' heights back to their explicit values.
2519         [Fixes bug #415780]
2520
2521 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2522
2523         * DateTimePicker.cs: When getting focus, select the checkbox if we are
2524         already showing it. Also, don't change its value when pressing space
2525         if the checkbox is not visible (ShowCheckBox as false). Finally, the
2526         checkbox should remain selected as long as Checked is false, and the
2527         other parts are disabled.
2528         Fixes #424267.
2529         
2530 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2531
2532         * MessageBox.cs: Handle shortcut keys to dialog buttons.
2533         [Fixes bug #425425]
2534
2535 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2536
2537         * Binding.cs: When the value retrieved from the control property is
2538         null, don't return Convert.DBNull for Nullable instances, since they
2539         can *actually* get a null value.
2540         Fixes #424265.
2541
2542 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
2543
2544         * Control.cs: Add an internal field to force doublebuffering regardless
2545         of what the public mechanisms are set to.  This is because MS's native
2546         controls are doublebuffered even though their .Net bits are set to false.
2547         * ProgressBar.cs: Set force_double_buffer to true.
2548         [Fixes bug #406595]
2549
2550 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
2551
2552         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
2553         the cell template.
2554         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
2555         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
2556         without EditingControls, paint background selection for types without
2557         EditingControls, reset the EditingCellValueChanged flag when the
2558         cell's value is committed.
2559         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
2560         have EditingControls, remove a double call to a cell's OnContentClickInternal,
2561         don't do cell changing logic in OnMouseDown if the cell didn't change.
2562         [Fixes bug #420351]
2563
2564 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2565
2566         * DateTimePicker.cs: Fix the edition of am/pm specifier.
2567
2568 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
2569
2570         * TextControl.cs: Add "&" to the list of valid characters in a URL.
2571
2572 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2573
2574         * DateTimePicker.cs: Before incrementing or decrementing any part in
2575         the textbox, end any current edit. Also when ending the current edit
2576         use the editing_part_index field instead of the current selected
2577         value, since they can be out of synch, and we really need to work on
2578         the *real* current edit part. Finally when PartData.Selected changes,
2579         always try to end any ongoing edit.
2580         This should fix some small errors handling mouse navigation and
2581         increase/decrease operations.
2582
2583 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2584
2585         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
2586         respectively) should handled different, since the 12 hours format
2587         needs the value typed by the user to be adjusted depending on the
2588         a.m/p.m value, so it is preserved, and only changed when the value
2589         reaches the 12 value (when it changes from a.m to p.m).
2590         Fixes part of #416555.
2591
2592 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2593
2594         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
2595         * ToolStripDropDownItem.cs: Don't fire events and such again if
2596         ShowDropDown is called on an already dropped down item.
2597         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
2598         subitems, the user may add some in the DropDownOpening event.
2599         [Fixes bug #417877]
2600
2601 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2602
2603         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
2604         [Fixes bug #424270]
2605
2606 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2607
2608         * MdiClient.cs: When looking for menustrips on a child form to merge,
2609         look inside ToolStripContainers.
2610         [Fixes bug #424264]
2611
2612 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
2613
2614         * ErrorProvider.cs: Unbreak my previous commit.
2615
2616 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
2617
2618         * ErrorProvider.cs: Icon should always be 16x16.
2619         [Fixes bug #424380]
2620
2621 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
2622
2623         * GridEntry.cs: Invalidate the child items cache when the property 
2624         value changes.
2625
2626 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
2627
2628         * GridEntry.cs, PropertyGridView.cs: 
2629            - Update the ReadOnly detection and rendering to finally hopefully 
2630            match the one of MSFT.
2631            - Niceify and move the debug CWLS.
2632         [Fixes bug #409028]
2633
2634 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2635
2636         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
2637         since we are already calling Invalidate for the entire control when
2638         needed - and call Redraw() when size changes, since we need to paint
2639         there by ourselved and not anymore from the mentioned method. 
2640         This should improve the layout process. Also clean some not needed calls 
2641         here and there.
2642
2643 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
2644
2645         * MenuAPI.cs: Add a null check to the Alt-F4 code.
2646         [Fixes bug #420309]
2647
2648 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
2649
2650         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
2651         [Fixes bug #423040]
2652
2653 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
2654
2655         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
2656         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
2657         on item expansion. Improves performance and fixes bug #417955.
2658         [Fixes bug #417955]
2659
2660 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
2661
2662         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
2663         fix the build.
2664
2665 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2666
2667         * TextControl.cs: Add "_" to the list of valid characters in a URL.
2668         [Fixes bug #423408]
2669
2670 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2671
2672         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
2673         region gets set.
2674         [Fixes bug #414166]
2675
2676 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2677
2678         * FontDialog.cs: When storing our font size from the starting font,
2679         use SizeInPoints instead of Size in case Size is a different unit
2680         from Points.
2681         [Fixes bug #416489]
2682
2683 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2684
2685         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
2686         don't use it for anything else, check if a directory is highlighted.
2687         If it is, navigate into it.
2688         [Fixes bug #422087]
2689
2690 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2691
2692         * Binding.cs: When acquiring a BindingManagerBase for the first time,
2693         check that the specified property actually exists in the data source,
2694         and throw an ArgumentException if that's not the case - this is only
2695         done for this scenario, since for later cases (such Position changes)
2696         we throw different exceptions (match .Net).
2697
2698 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
2699
2700         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
2701           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
2702           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
2703           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
2704           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
2705           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
2706           properties.
2707           [Fixes bug #418684]
2708
2709 2008-09-03  Neville Gao  <nevillegao@gmail.com>
2710
2711         * StatusBar.cs: Control enabled to support accessibility.
2712         [Fixes bug #419079]
2713
2714 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2715
2716         * Binding.cs: When connecting the event handler for the "Changed"
2717         event for the property, only do it for PropertyManager, and not for
2718         CurrencyManager - this is exactly what does .Net, totally ignoring any
2719         change in the property of the elements of a list.
2720         Fixes the tests.
2721
2722 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
2723
2724         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
2725         to Windows when creating a window, as we fake MDI stuffs.
2726         [Fixes bug #421858]
2727
2728 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
2729
2730         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
2731         change takes effect.
2732
2733 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
2734
2735         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
2736         [Fixes bug #419001]
2737
2738 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
2739
2740         * DataGridView.cs: Raise CellContentClick event.
2741         [Fixes part of bug #420351]
2742
2743 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2744
2745         * ScrollBar.cs: Control enabled to support accessibility.
2746         [Fixes bug #416759]
2747
2748 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2749
2750         * ComboBox.cs: Control enabled to support accessibility.
2751         [Fixes bug #416663]
2752
2753 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2754
2755         * ListBox.cs: Control enabled to support accessibility.
2756         [Fixes bug #416640]
2757
2758 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
2759
2760         * ComboBox.cs: Don't suppress the TextChanged event when changing
2761         the SelectedIndex.
2762         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
2763         and re-raise it.
2764         [Fixes bug #420673]
2765
2766 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
2767
2768         * ErrorProvider.cs: Fix a regression NRE when setting properties
2769         for a control before it has a parent.
2770         [Fixes bug #420305]
2771
2772 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2773
2774         * Binding.cs: Use the BindingManagerBase.Current value to obtain
2775         connect the property "Changed" event, instead of using the data
2776         sources - this is useful when the property specifies actually a
2777         multiple objects path.
2778         Fixes part of #417973.
2779
2780 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2781
2782         * RelatedPropertyManager.cs: PropertyManager instances associated to a
2783         nested properties should return not the properties of the data source
2784         itself, but the properties of the type of a specific property in the
2785         data source - match .net.
2786
2787 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
2788
2789         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
2790         AddRange overloads into AddItems method, and added missing NULL check.
2791         Added extra argument check to RemoveAt for compatibility with MS. 
2792         Modified IList implementation of Add, Contains, IndexOf and Remove to
2793         throw an ArgumentException if item is not an int. Modified IList.Insert
2794         to throw a NotSupportException instead of an Exception. Implemented
2795         ICollection.
2796         (ObjectCollection): To avoid duplication, use AddItems method from
2797         AddRange overloads. On 1.0 profile, first perform NULL check on items
2798         in AddItems.
2799
2800 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
2801
2802         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
2803          #419087.
2804
2805 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
2806
2807         * X11Keyboard.cs : comment out some Console.WriteLine().
2808
2809 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
2810
2811         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
2812           even if premises are not filled. Also XLookupString() was not
2813           receiving correct input, which blocked precise input handling
2814           on non-XIM mode.
2815
2816 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2817
2818         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
2819         type of delegate, instead of EventHandler - this was causing a type
2820         cast exception in all apps handling this event.
2821         Fixes #417876.
2822
2823 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
2824
2825         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
2826         ShowDropDown to give the user a chance to dynamically add
2827         drop down items.  [Step 1 of fixing bug #417877]
2828
2829 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2830
2831         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
2832         had any mouse motion since the call to StartDrag, to match the dnd
2833         behaviour of .net.
2834         Fixes part of #381876.
2835
2836 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2837
2838         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
2839         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
2840         Also, if we are actually moving into a different window after
2841         grabbing, generate a LeaveNotify event for the previous window, since
2842         we need to fire the leave events until the grab ends, not when
2843         actually moving outside of the control.
2844
2845 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2846
2847         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
2848         events only for client windows was wrong - we need to compare the
2849         client window against the window receiving the EnterNotify event, not
2850         against zero (since client window is never Zero, btw).
2851         This prevents having unnecessary handling of EnterNotify events for
2852         non-client windows when a gran begins.
2853
2854 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2855
2856         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
2857         MouseMove/MotionNotify events at all (which should only happen after
2858         MouseUp/ButtonRelease, as .Net does).
2859         This avoids firing an extra and unnecessary MouseMove event just after
2860         every MouseDown event.
2861
2862 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2863
2864         * LinkLabel.cs: Always clear any previous links when LinkArea
2865         is set.  [Fixes bug #410709]
2866
2867 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2868
2869         * ToolStripProfessionalRenderer.cs: Revert last change.
2870         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
2871         for ToolStripDropDownBackground.
2872
2873 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2874
2875         * ToolStripProfessionalRenderer.cs: Use Window color for the 
2876         background of dropdowns to match .Net when the user is not
2877         using the default white.  [Fixes bug #418108]
2878
2879 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
2880
2881         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
2882           it caused timer registration twice. Fixed bug #418107.
2883
2884 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2885
2886         [Correction: This is the actual change to X11Dnd issue, not the
2887         previous one, which was actually a different issue.]
2888
2889         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
2890         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2891         when the pointer is actually in motion, but only when the pointer
2892         seems to stop (as .net does).
2893         Fixes part of #381876.
2894
2895
2896 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
2897
2898         * ListBox.cs: Fix CopyTo implementation.
2899         [Fixes bug #409169]
2900
2901 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
2902
2903         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
2904         drawing a ComboBox's background.  Fixes bad disabled rendering when
2905         the control is not at 0,0.
2906         [Fixes bug #416063]
2907
2908 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
2909
2910         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
2911         ComponentModel layer, which will properly prioritize the attributes.
2912         Avoids wrong prioritization of duplicate attributes when retrieving 
2913         the converter and editor.
2914         [Fixes bug #417729]
2915
2916 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2917
2918         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
2919         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2920         when the pointer is actually in motion, but only when the pointer
2921         seems to stop (as .net does).
2922         Fixes part of #381876.
2923
2924 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
2925
2926         * GridEntry.cs: Perform stricter check for the ParentEntry's 
2927         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
2928         implementation.
2929         [Fixes bug #417567]
2930
2931 2008-08-14  Geoff Norton  <gnorton@novell.com>
2932
2933         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
2934         Fixes #396983.  Properly fix ActiveWindow trackin and do not
2935         prematurely show POPUP windows.
2936
2937 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2938
2939         * XplatUIX11.cs: Handle the obscured regions while scrolling using
2940         GraphicsExpose event, processing it just after we copy the scrolled
2941         area. This ensures that the next calls to ScrollWindow will copy
2942         regions already updated, and the scrolling will be smooth. Also remove
2943         the code that was trying to detect the obscured regions, since we are
2944         not using it anymore (too slow).
2945
2946 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2947
2948         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
2949         MultiExtended mode, by separating some logic between the ctrl/shift
2950         handling. Also ignore any MouseMove events generated together with
2951         MouseDown events - we are only interested in the real motion event.
2952         Fixes part of #414963.
2953
2954 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
2955
2956         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
2957         is selected.  [Fixes bug #414143]
2958
2959 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
2960
2961         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
2962         and not the parent one (the propertyowner). Fixes the behavior of 
2963         GetConverter/GetEditor.
2964         [Fixes bug #415452]
2965
2966 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
2967
2968         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
2969         [Fixes part of bug #415452]
2970
2971 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
2972
2973         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
2974         GridEntry, not the current.
2975         [Fixes bug #413896]
2976
2977 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
2978
2979         * TextBoxBase.cs: De-internalize max_length field.
2980         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
2981         share the same logic.
2982         [Fixes bug #414454]
2983
2984 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2985
2986         * ListBox.cs: Selection changes made in the MouseDown handler should
2987         use the *Core versions of selection in SelectedIndices collection,
2988         since the SelectedIndexChanged/SelectedValueChanged events are fired
2989         until we get a MouseUp event, and thus we need to separate the logic
2990         from the events, as done in the keyboard navigation. Also, fire those
2991         selection events from keyboard navigation in SelectionMode.None, even
2992         if we don't have a selection, as .Net does.
2993
2994 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
2995
2996         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
2997         last change introduced when an item is clicked but isn't on a toolstrip.
2998
2999 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3000
3001         * ListBindingHelper.cs: When looking for an object's properties, check
3002         if it implements ICustomTypeDescriptor, in which case we should
3003         resolve the propertu based on its GetProperties method, not in its
3004         actual properties. This is what .Net seems to do.
3005         Fixes a UsingWebBrowser problem during initialization.
3006
3007 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3008
3009         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3010         sitting on a MenuStrip.
3011
3012 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3013
3014         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3015         no children with the keyboard, we need to release the keyboard capture.
3016         [Fixes bug #413567]
3017
3018 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3019
3020         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3021         no children with the keyboard, we need to release the keyboard capture.
3022         [Fixes bug #413567]
3023
3024 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3025
3026         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3027         the GTK+-based implementation of VisualStyles.
3028         * ThemeWin32Classic.cs: Exposed various layout values for use in the
3029         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3030         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3031         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3032         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3033         TrackBarHorizontalTrackHeight.
3034
3035 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3036
3037         * TabControl.cs: Added hot style handling for the scroll buttons.
3038         right_slider_state, left_slider_state are now of type PushButtonState to
3039         allow for a hot state. Added tracking of the mouse button being held down
3040         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3041         LeftScrollButtonArea.
3042         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3043         TabControlGetRightScrollRect.
3044
3045 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3046
3047         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
3048         runtime errors.
3049
3050 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3051
3052         * Form.cs: Ensure that we reset the shown_raised flag after 
3053         the form is closed, so that we raise the show events the next 
3054         time the form is shown.
3055         [Fixes bug #413141]
3056
3057 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3058
3059         * Form.cs: Ensure closing events are raised only once.
3060         [Fixes bug #413143]
3061
3062 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3063
3064         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
3065         so that we can successfully generate the LParam in-place instead of 
3066         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
3067         navigation for menus.
3068
3069 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3070
3071         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
3072         'navigating'. Fixes bug #411356.
3073
3074 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3075
3076         [Fixed remaining issues of #406773 (#1)]
3077         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3078
3079         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3080         MainMenu (already done) and ContextMenu creation.
3081
3082         * ContextMenu.cs: Create tracker on construction. 
3083
3084 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3085
3086         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3087         possible to instantiate MenuTracker without GrabControl.
3088
3089 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3090
3091         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3092
3093         * MainMenu.cs: Set GrabControl on SetForm using current form.
3094
3095 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3096
3097         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3098
3099 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3100
3101         * MenuAPI.cs: Check if menu is activated before deactivate it in 
3102         ProcessShortcut.
3103
3104 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3105
3106         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
3107         ColumnStyle.cs: 
3108         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3109          - One style instance can only participate in a single style collection.
3110          - Styles can request their owner to layout whenever their properties 
3111          change.
3112          [Fixes bugs #412583 and #412582]
3113
3114 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
3115
3116         * X11Keyboard.cs: Implement the generation of the LParam for 
3117         all keyboard messages.
3118         [Fixes bug #378728]
3119
3120 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
3121
3122         * ListBox.cs: Don't let the user set TopIndex so high that it
3123         scrolls up far enough to show empty items.
3124         [Fixes bug #412728]
3125
3126 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3127
3128         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
3129         (I'm an idiot and forgot to commit the actual changes, as well as
3130         specify the right file, which is this one, not ListView.cs).
3131
3132 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3133
3134         * ListView.cs: Don't draw ListViewSubItem instances from
3135         DrawListViewItem - we need to reuse the main item's drawing for the
3136         first sub item in case owner draw is true, but wants the system to
3137         do the default draw for the first sub item, without incurring in a
3138         recursion problem.
3139         Fixes #410880.
3140
3141 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
3142
3143         * ToolStripButton.cs: Update Checked for CheckOnClick before
3144         raising the Click event.  [Fixes bug #412505]
3145
3146 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
3147
3148         * Form.cs: Remove some seems leftover code for non-TopLevel's 
3149         CreateParams, which is breaking ClientSize sizing, because it 
3150         removes the border window styles.
3151
3152 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
3153
3154         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
3155         changes.
3156
3157 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
3158
3159         * WebBrowser.cs: Removed debug output.
3160
3161 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
3162
3163         * FileDialog.cs: Apply patch from Ernesto to clean up some
3164         dialog messages.
3165
3166 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3167
3168         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
3169         that the change has an immediate effect.
3170
3171 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3172
3173         * ScrollableControl.cs: Update PerformLayout calls to include 
3174         provide the name of the property that changed.
3175
3176 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3177
3178         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
3179         location. Fixes drawing of border and cell borders if scrollable.
3180
3181 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3182
3183         * ScrollableControl.cs: Perform layouting after the AutoScroll 
3184         properties have changed, so that the changes have immediate 
3185         effect.
3186         [Fixes bug #409090]
3187
3188 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3189
3190         * XplatUIX11.cs: Non Client area is actually Client such in the 
3191         case of NotifyIcon, so double check WholeWindow == ClientWindow 
3192         when adding an expose.
3193         [Fixes bugs #324237 and #357022]
3194
3195 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3196
3197         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
3198         repaint the cell borders.
3199
3200 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3201
3202         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
3203         disposal to avoid unexpected ObjectDisposedExceptions.
3204
3205 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
3206
3207         * TableLayoutPanel.cs: Layout on Row/Column count change.
3208
3209 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
3210
3211         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
3212         bug #409351.
3213         * PictureBox.cs: When ImageLocation is set to null or an empty string,
3214         only set image to null if it was previously initialized from an url
3215         (or using ImageLocation). In ImageLocation, load specified image
3216         asynchronously if WaitOnLoad is false. Added support for local file
3217         paths to LoadAsync, and added missing argument check.
3218
3219 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3220
3221         * DateTimePicker.cs: 
3222         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
3223         order to set the value as required (which means: when selection
3224         changes for a part being edited, and not before that if not needed).
3225         Also use an enum to describe which part are we using, and use the
3226         selection as a property in PartData, in order to notify the
3227         DateTimePicker owner that we need to end the current edit.
3228         Fixes #383462.
3229
3230 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
3231
3232         * PropertyGridTextBox.cs: Validation should be performed only if we 
3233         are focused. We can lose focus for example if the Return key is used 
3234         to set the entry and there is an error. When the message box is 
3235         displayed we would have validate on click in the message box.
3236
3237 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
3238
3239         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
3240         in order to determine that we are expandable is wrong. There was a bug, 
3241         now fixed, in TypeDescriptor that was causing the wrong converter to be 
3242         returned which caused GetPropertiesSupported == false in most cases.
3243         [Fixes bug #409027]
3244
3245 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
3246
3247         * ImageList.cs: Fix ICollection.CopyTo implementation for
3248         ImageListCollection.  [Fixes bug #409169]
3249
3250 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3251
3252         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
3253         WorkingArea so that menus can appear on the second monitor
3254         when one has dual monitors.
3255
3256 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3257
3258         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
3259         Fixes build.
3260
3261 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3262
3263         * TextBox.cs: Implement navigation support for auto complete in
3264         TextBox, as well as refactor the code to show the auto complete window
3265         when receiving a WM_CHAR message, instead of TextChanged, since
3266         autocomplete itself should be able to set the Text a lot of times and
3267         finally only typing should show it, not changes from code.
3268
3269 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3270
3271         * TabControl.cs: When expanding the selected tab, don't adjust the
3272         width if alignment is Right, since it has a different offset than 0,
3273         as opposed to the other alignments.
3274         Fixes the selected tab not being painted at all with alignment = Right
3275         and using FillToRight size mode.
3276
3277 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3278
3279         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
3280
3281 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3282
3283         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
3284         values from the textbox to the boundary values.  [Fixes bug #409026]
3285
3286 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3287
3288         * TreeNodeCollection.cs: We were copying one too many elements when
3289         doing our array copy.  Fixes a crash when RemoveAt is called.
3290         [Fixes bug #408999]
3291
3292 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3293
3294         * TabControl.cs: When doing the layout and need to call FillRow -using
3295         FillToRight size mode-, use the overload receiving a bool param
3296         indicating whether we need to do a vertical or horizontal calculation.
3297         Fixes part of #399583.
3298
3299 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3300
3301         * TextBox.cs: When painting, use the value returned by
3302         GetLastVisibleItem instead of using the cached last_item field, since
3303         there could be a desynchronization between the layout and the
3304         painting. Fixes a AOOR exception in auto complete mode.
3305
3306 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
3307
3308         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
3309         NonClientAreaEnabled until our VisualStyles is modified to allow it.
3310
3311 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
3312
3313         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
3314
3315 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3316
3317         * TextBox.cs: When focus is lost, if the auto complete listbox is
3318         visible, hide it.
3319
3320 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
3321
3322         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
3323         tracking size for tool windows.
3324         * Theme.cs, ThemeWin32Classic.cs : Extracted
3325         ManagedWindowSpacingAfterLastTitleButton.
3326
3327 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
3328
3329         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
3330         They are bit-rotted and have always been listed as "unsupported".
3331
3332 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
3333
3334         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
3335
3336 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
3337
3338         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
3339
3340 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3341
3342         * ListBox.cs: Make sure last_item_visible gets reset before we try
3343         to do a layout due to scrollbars appearing or disappearing.
3344         [Fixes bug #408139]
3345
3346 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3347
3348         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
3349         for different window themes.  [Fixes bug #339140]
3350
3351 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3352
3353         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
3354         in ManagedWindowBorderWidth.
3355
3356 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3357
3358         * InternalWindowManager.cs: Change MouseMove to take a point, so
3359         we can use the same point later on.
3360         * MdiWindowManager.cs: Store point sent to MouseMove so we can
3361         later reset to it.  On Windows, the Cursor.Position had already
3362         changed by the time we were resetting to it.
3363         [Fixes bug #363239]
3364
3365 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3366
3367         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
3368         are inactive.
3369         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
3370         user requested it.
3371         [Fixes bug #398686]
3372
3373 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3374
3375         * MdiWindowManager.cs: Double-clicking on the title bar should not
3376         maximize a MDI form if MaximizeBox = false.
3377
3378 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3379
3380         * ThemeVisualStyles.cs: Fixed a warning.
3381
3382 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3383
3384         * ThemeVisualStyles.cs: Fixed warnings and formatted.
3385
3386 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3387
3388         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
3389         implementation produces a better result.
3390
3391 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3392
3393         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
3394         windows.
3395
3396 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3397
3398         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
3399         cannot be used from the ThemeEngine constructor.
3400         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
3401         Application.VisualStylesEnabled because it does not work on X11.
3402
3403 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
3404
3405         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
3406         that we did not always check for, as well as fixes to the IList
3407         implementations.  [Fixes bug #402703]
3408
3409 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3410
3411         * IDeviceContext.cs: Added Dispose.
3412
3413 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3414
3415         * Control.cs: Added OnSizeInitializedOrChanged.
3416         * Form.cs: OnLoadInternal: Added a call to
3417         Control.OnSizeInitializedOrChanged.
3418         * InternalWindowManager.cs:
3419          * HandleTitleBarMouseMove: No longer invalidates the parent window.
3420          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
3421          * TitleButton: Added Entered.
3422          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
3423         * MdiWindowManager.cs:
3424          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
3425          move over the maximized title buttons causes a change.
3426          * IsActive: Can now be called before the window is added to a MDI parent.
3427         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
3428         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3429         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
3430         * ThemeWin32Classic.cs:
3431          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
3432          * DrawTitleButton takes a new form parameter.
3433          * Added ManagedWindowTitleButtonHasHotElementStyle,
3434          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3435
3436 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3437
3438         * ThemeEngine.cs: ThemeVisualStyles is now selected if
3439         Application.EnableVisualStyles has been called, even if the current system
3440         configuration does not support rendering with Visual Styles.
3441         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
3442         Styles should not be used.
3443
3444 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
3445
3446         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
3447         ComboBox in FormsTest.
3448
3449 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
3450
3451         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
3452         for fixed toolwindows.
3453
3454 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
3455
3456         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
3457
3458 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3459
3460         * Control.cs: CreateControl just returns if the Control is diposed 
3461         and doesn't throw ObjectDisposedException.
3462         [Fixes bug #406566]
3463
3464 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3465
3466         * Control.cs: Do not create the control if the parent isn't created 
3467         yet, e.g in the case of a parented form on which .Show is called.
3468         It will be created when the parent is made visible/created.
3469         Improves #402446.
3470
3471 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3472
3473         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
3474         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
3475         [Fixes bug #406786]
3476
3477 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3478
3479         * Form.cs: When disposed set owner to null. Improves #402446.
3480
3481 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3482
3483         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
3484         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
3485         if not.
3486         * Form.cs: Take the Padding into account for the PreferredSize.
3487         [Fixes bug #402849]
3488
3489 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3490
3491         * TabControl.cs: Since we don't support more than one direction in
3492         TabControl rows alignment (this is, the row becomes the
3493         bottom row when selected), make Direction return always 1. This way
3494         the layout doesn't get confused about a bad calculation.
3495         Fixes #399582.
3496
3497 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3498
3499         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
3500         so that the wparam is properly set.
3501         Fixes form moving in the test case in bug 402446.
3502
3503 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
3504
3505         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
3506         the full tree instead of nothing.  [Improves bug #406584]
3507
3508 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
3509
3510         * ThemeWin32Classic.cs: Adjusted minimized window painting.
3511
3512 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
3513
3514         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
3515         children.
3516
3517 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
3518
3519         * TreeView.cs: Add a null check when using CollapseAll on an
3520         empty tree.  [Fixes bug #406449]
3521
3522 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3523
3524         * Form.cs: Make OnMenuComplete internal so we can call it.
3525         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
3526         [Fixes bug #399321]
3527
3528 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3529
3530         * TabControl.cs: Handle Up and Down keys when TabControl is in
3531         vertical alignment.
3532         [Fixes bug #399585]
3533
3534 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3535
3536         * TabControl.cs: Invalidate when we remove a tab.  Guard against
3537         an AOORE when trying to remove a tabpage that is not owned by the
3538         parent control.
3539         [Fixes bug #399927]
3540
3541 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3542
3543         * ScrollBar.cs: Change the LargeChange calculation to be correct.
3544         Ensure we are using LargeChange instead of large_change so we our
3545         calculations are correct.
3546         [Fixes bug #403122]
3547
3548 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3549
3550         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
3551         we need to ensure the ColumnCount/RowCount gets set.
3552         [Fixes bug #404851]
3553
3554 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3555
3556         * ListBox.cs: When handling item navigation, if selection mode is
3557         None, call EnsureVisible, since scrolling is normally handled by
3558         selection, that we are not calling in this case.
3559         Fixes #398345.
3560
3561 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
3562
3563         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
3564         a null check to our focus walking code.  [Fixes bug #394332]
3565
3566 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
3567
3568         * ComboBox.cs: Case missed in bug 379596 "Support item
3569         navigation by entering text": On _close_ drop-down select
3570         the first item matching the text in the textbox.  [Fixes bug #397265]
3571
3572 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
3573
3574         * DataGridView.cs: Fix a crash when sorting by column headers, 
3575         mentioned in bug #404841.  Remove some dead switch cases.
3576
3577 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3578
3579         * ComboBox.cs:
3580         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
3581         uses the AutoComplete support in the internal TextBox. Also TextBox
3582         can store a reference to ComboBox, in case AutoCompleteSource is set
3583         to ListItems (this is, ComboBox's items, and we don't want to pass an
3584         additional collection).
3585
3586 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3587
3588         * ListViewItem.cs: Restore the initial value of bounds rect to
3589         Rectangle.Empty, and is this value for Layout detection in virtual
3590         mode. Fixes the tests.
3591
3592 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
3593
3594         * XPlatUI.cs: Remove references to "new" X11 backend.
3595
3596 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
3597
3598         * Control.cs: Add an internal virtual OnDragDropEnd method 
3599         to allow controls such as ListBox, which depend on a sequence 
3600         of MouseDown+Move+End events, to handle the lack of a MouseUp 
3601         when a DnD operation is started in MouseDown.
3602         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
3603         get a MouseUp, so reset our state whenever a DnD operation ends.
3604
3605 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
3606
3607         * PropertyGrid.cs: Clear the root griditem first thing when 
3608         new object/s is/are selected. Fixes some rare cases where 
3609         the View will get a paint request and won't know that the 
3610         grid is in the process of repopulating.
3611
3612 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3613
3614         * XplatUIX11.cs, InternalWindowManager.cs: 
3615         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
3616         doesn't automagically update the FormBorderStyle, so we must 
3617         double check the CreateParams explicitly to determine if the 
3618         window is a toolwindow.
3619         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
3620         instead of doing custom checks.
3621
3622         Fixes toolwindows for the test case in bug #402446
3623
3624 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3625
3626         * Control.cs: Visibility of the control should be false 
3627         when the handle is destroyed in WmDestroy and not immediately 
3628         in Dispose(). This is effectively where the disposing process 
3629         ends even though the control is marked as Disposed immediately 
3630         after calling Dispose().
3631         [Fixes bug #402446]
3632
3633 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3634
3635         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
3636         when the textbox gets focus.
3637         [Fixes bug #402704]
3638
3639 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3640
3641         * PropertyGridTextBox.cs, PropertyGridView.cs: 
3642          - Alt + Down should show the drop down editor.
3643          - Focus the editor when showing it
3644         [Fixes bug #402710]
3645
3646 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
3647
3648         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
3649         that are not the first panel.
3650         * StatusBar.cs: Ensure that the X coordinate of panels is always
3651         stored.  Fix IList implementation of StatusBarPanelCollection to
3652         call the regular methods.
3653         [Fixes bug #403599, #402165]
3654
3655 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
3656
3657         * ThemeWin32Classic.cs: Fix position calculation for centered
3658         text on status bar panels.  [Fixes bug #402165]
3659
3660 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
3661
3662         * Splitter.cs: Fix Splitter to:
3663          - Work for arbitrary splitter size
3664          - Handle MinSize and MinExtra properly
3665          - Get rid of absolute positioning during drag and use relative
3666          - Multiple other fixes 
3667          [Fixes bug #338966]
3668
3669 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
3670
3671         * Cursor.cs: Show shouldn't hide the cursor.
3672
3673 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3674
3675         * ListViewItem.cs: When invalidating, add some extra space to bounds,
3676         since focus rectangle and selection can add some space and need to
3677         take into account those small offsets - specially in Details view.
3678         * ListView.cs: Instead of invalidate using item Bounds directly, call
3679         item.Invalidate, to have the code centralized.
3680         Fixes focused/selection garbage when selecting and deselecting items
3681         that are close.
3682
3683 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3684
3685         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
3686         mode we can check whether we have to force a Layout or not, and can
3687         cache based on this, instead of avoiding caching all the the time. Do
3688         this check in GetBounds and TextBounds.
3689         Fixes selection in Details view.
3690
3691 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3692
3693         * ListView.cs: Make HeaderControl internal, thus the theme engine can
3694         get its *real* height instead of trying to infere it.
3695         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
3696         get the position of them, since it's in general a bad idea in general,
3697         and because we can't do that in virtual mode. Instead get the first
3698         visible item as well as item height, and draw them.
3699         Fixes #400390.
3700
3701 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
3702
3703         * ToolStripSplitButton.cs: We can't add in extra width if
3704         the button is not AutoSize.  [Fixes bug #401279]
3705
3706 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
3707
3708         * PaddingConverter.cs: 
3709          - Implement conversion to InstanceDescriptor
3710          - Handle "All" in CreateInstance by using the supplied 
3711          ITypeDescriptorContext.
3712          [Fixes bugs #396076 and #396078]
3713
3714          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
3715          Code contributed under MIT/X11 license.
3716
3717 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
3718
3719         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
3720         ButtonBase.cs:
3721         Add Category attributes.
3722         Code is contributed under the MIT/X11 license.
3723
3724 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
3725
3726         * Form.cs: 
3727          - Fix a NRE when unparenting a form.
3728          - Do not recreate or destroy a parented form when 
3729         unparenting. 
3730
3731 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3732
3733         * TextBox.cs: Implement basic support for AutComplete with custom
3734         sources.
3735
3736 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
3737
3738         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
3739         DropDownButtonBounds should be from the origin of the button, not the
3740         ToolStrip.  [Fixes bug #401279]
3741
3742 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
3743
3744         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
3745           running gtk_init_check.  This prevents GAIL from loading
3746           unnecessarily, which was breaking UIA support.  Initial fix for bug
3747           #375987.
3748         * Application.cs: Add UIA support to Winforms.  New static constructor
3749           uses reflection to initialize UIAutomationWinforms assembly.  Added
3750           PreRun event so UIA can initialize before the mainloop starts, and
3751           FormAdded event so UIA can provide a11y support for new Forms in an
3752           Application.
3753
3754 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
3755
3756         * DataGridView.cs: When binding to a dataset, subscribe to table
3757         and column change events.  Unsubscribe to these when we clear bindings.
3758         [Fixes bug #399601]
3759
3760 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
3761
3762         [DataGrid drawing refactory]
3763
3764         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
3765
3766         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
3767         must be handle by Theme, now it call DataGridPaintColumnHeader.
3768
3769         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
3770         test cases must be also fixed because it checks for wrong size.
3771
3772         * ThemeWin32Classic.cs: 
3773                 - Draw the bottom line of grid caption.
3774                 - Prevent to draw caption text when it is empty.
3775                 - Use CPDrawBorder3D for 3D efects to simplify code.
3776                 - Uses 3D (when not flat) to paint corner shared between row and column
3777                 header.
3778                 - Fix header drawing issues on win32, now borders are drawing.
3779                 - Fix column header paint issues to mimic win32.
3780                 - Adjust header drawing for last column, like first one it must be draw
3781                 different.
3782                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
3783                 not an character.
3784                 - DataGridPaintColumnHeader created to draw column headers, it also
3785                 paint stuff right on Win32.
3786                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
3787                 class.
3788
3789         * Theme.cs: 
3790                 - DataGridPaintRowHeaderStar method added.
3791                 - DataGridPaintColumnHeader method added.
3792
3793 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
3794
3795         * Control.cs: Don't reset to Dock style layout if DockStyle is
3796         set to none.  [Fixes bug #399316]
3797
3798 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
3799
3800         * Win32DnD.cs: Fix the check for control not equal null.
3801         Fixes bug #341420 and #381886. 
3802
3803 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
3804
3805         * DataGridViewRowCollection.cs: Update the indexes of rows after
3806         one has been removed.
3807         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
3808         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
3809         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
3810         rows for the Rows collection, or deleting rows from the bound DataSet.
3811
3812 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
3813
3814         * DataGridView.cs: Listen to a DataSet's changed event even
3815         when autogeneratecolumns is false.  Refactor the changed event's
3816         add row code to use the same as the existing add row code.
3817         [Fixes bug #399601]
3818
3819 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3820
3821         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
3822         much any time the caret moves and there is text, not just when
3823         the selection changes as one would think.
3824         * RichTextBox.cs: Override RaiseSelectionChanged and fire
3825         SelectionChanged.
3826         [Fixes bug #397271]
3827
3828 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3829
3830         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
3831         instead of trying to duplicate the code.
3832         * ListBox.cs: Make method internal so we can send keyboard events.
3833         [Fixes bug #398344]
3834         
3835 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3836
3837         * TextBoxBase.cs: When pasting and checking the max length,
3838         subtract the selected text length (the text we will be replacing) from
3839         the document length.
3840         * TextControl.cs: Ensure every character insertion is reflected in
3841         charcount, so max length will work properly.
3842         [Fixes bug #398605]
3843
3844 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3845
3846         * ListBox.cs: Ensure scrollbars are updated when a single
3847         column listbox with an already set top-index is created.
3848         [Fixes bug #398342]
3849
3850 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3851
3852         * FontDialog.cs: Typing in the font/style textboxes should search
3853         the list boxes case-insensitively.  [Fixes bug #398343]
3854
3855 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
3856
3857         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
3858         widths of icon and buttons instead of hard coded values.
3859
3860 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3861
3862         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
3863         as well as generating a SelectedIndexChanged event, just like .Net does
3864         -surprise-.
3865         Fixes #398345.
3866
3867 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3868
3869         * ListBox.cs: When navigating items visually, use FocusedItem as the
3870         reference point instead of SelectedIndex, since even in
3871         SelectionMode.None we need to support navigation, and in that case we
3872         just can't use SelectedIndex.
3873         Fixes part of #398345.
3874
3875 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
3876
3877         * Control.cs: Make a SetBoundsInternal that avoids the new
3878         SetBounds code.
3879         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
3880         SetBoundsInternal instead of SetBoundsCoreInternal.
3881
3882 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
3883
3884         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
3885         SetBounds for the scrollbars.
3886
3887 2008-06-10  Andreia Gaita <avidigal@novell.com> 
3888
3889         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
3890           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
3891           OnMouseMove, OnMouseOver, OnMouseUp
3892         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
3893           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
3894         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
3895           to the WebControl object to pass to new collection objects
3896         * HtmlHistory.cs: Implement support for individual window histories.
3897         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
3898           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
3899           GotFocus, LostFocus, OnLoad, OnUnload
3900         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
3901           ContextMenu
3902         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
3903           security level changes and context menu event support.
3904
3905 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3906
3907         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
3908         as happens with Esc, patch my Andy Hume.
3909         Fixes #396294.
3910
3911 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3912
3913         * MdiWindowManager.cs: DrawMaximizedButtons now uses
3914         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
3915         * Theme.cs: Made MenuButtonSize platform dependent. Added
3916         ManagedWindowButtonSize.
3917         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
3918         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
3919
3920 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3921
3922         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
3923         Added support for rendering with VisualStyles.
3924
3925 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3926
3927         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3928         support for rendering the border with VisualStyles.
3929
3930 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3931
3932         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
3933         the icon is not shown.
3934         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
3935         its own logic.
3936
3937 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3938
3939         * InternalWindowManager.cs: Draw minimized windows even if they don't have
3940         borders.
3941
3942 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
3943
3944         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
3945
3946 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
3947
3948         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
3949         [Fixes bug #397943]
3950
3951 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3952
3953         * ComboBox.cs: When snaping height -because of IntegralHeight set to
3954         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
3955         if the requested height leaves the listbox area with *less* than the
3956         required are to see one item. We were setting it to PreferredHeight
3957         even for values matching the height for a single item.
3958         Fixes #396297.
3959
3960 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
3961
3962         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
3963
3964 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
3965
3966         * DataGridViewCell.cs: Use property instead of field.
3967
3968 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3969
3970         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
3971         null checks.
3972
3973 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3974
3975         * Theme.cs: Added #region around the managed window code. Made the managed
3976         window methods abstract.
3977         * ThemeWin32Classic.cs: Added #region around the managed window code.
3978
3979 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3980
3981         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
3982         if it has borders.
3983         * ThemeWin32Classic.cs: Removed HasBorders checks in
3984         DrawManagedWindowDecorations.
3985
3986 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3987
3988         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3989         Extracted ManagedWindowGetTitleBarIconArea.
3990
3991 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3992
3993         * DataGridViewCellStyle.cs: Don't clone the font.
3994
3995 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3996
3997         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
3998
3999 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4000
4001         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4002         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4003         in 64 bit machines.
4004
4005 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4006
4007         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4008         Use Format/FormatProvider before trying converters.
4009         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4010         are 'set'.  Change constructor to not use ApplyStyle since it wants
4011         everything applied.  Clone the Font.
4012         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4013         ApplyStyle the rest.
4014
4015 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4016
4017         * ListView.cs: We need to calculate the scrollbars even if the handle
4018         hasn't been created - this is needed when methods using scrollbars
4019         info, such EnsureVisible, are called before control has been created.
4020         Fixes #397272.
4021
4022 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
4023
4024         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4025         only if the elements are defined. 
4026
4027 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4028
4029         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4030         section. Also, when setting bounds, snap height as well as save the
4031         requested height if Dock has any value affecting the height: Left,
4032         Right and Bottom - important if using IntegralHeight as true.
4033
4034 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4035
4036         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4037         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
4038         instead of doing that only in our SetBoundsCore override, since the 
4039         bounds cached can be the same as saved one and we could not get the
4040         new height applied.
4041         Fixes #396297.
4042
4043 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4044
4045         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4046         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4047         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4048         ToolWindowCaptionButtonSize.
4049         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4050
4051 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4052
4053         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4054         hard coded values.
4055         * Theme.cs: Made DoubleClickTime plaform dependent.
4056
4057 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4058
4059         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4060         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4061         ToolWindowCaptionHeight.
4062
4063 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4064
4065         * InternalWindowManager.cs: The adjustment to ensure positive client area
4066         sizes is now platform dependent (disabled on Windows).
4067         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4068         RequiresPositiveClientAreaSize.
4069
4070 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4071
4072         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4073
4074 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4075
4076         * InternalWindowManager.cs: Changed IconicSize to use
4077         SystemInformation.MinimizedWindowSize.
4078         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4079         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4080
4081 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4082
4083         * ComboBox.cs: If the combobox is anchored both on top and bottom,
4084         adjust height if IntegralHeight is true when calling SetBoundsCore (as
4085         likely the height was modified even if Height wasn't specified in
4086         BoundsSpecified parameter).
4087         Fixes part of #396297.
4088
4089 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
4090
4091         * InternalWindowsManager.cs: Changed minimum window size while resizing to
4092         SystemInformation.MinWindowTrackSize.
4093         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4094         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4095
4096 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4097
4098         * MenuItem.cs: Fixed Dispose.
4099
4100 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4101
4102         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4103         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4104         EnteredHeaderCell, PressedHeaderCell: Added.
4105         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4106         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4107         theme a chance to override default painting.
4108         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4109         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4110         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4111         ListView and DataGridView header rendering.
4112         
4113 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4114
4115         * RichTextBox.cs: GetPositionFromCharIndex should return the 
4116         visual position of the character relative to the viewport.
4117         [Fixes part of bug #396664]
4118
4119 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4120
4121         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
4122         and not just for the existance of an UITypeEditor. In some cases 
4123         there is an editor associated just to do PaintValue, but which 
4124         doesn't actually support editing.
4125         [Fixes bug #396632]
4126
4127 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4128
4129         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
4130         if needed, instead of 0 - this should help us in the corner case where
4131         we have more than one item but we are only partially showing 1 item.
4132         Fixes part of #374713.
4133
4134 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4135
4136         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
4137         control, return immediately if the any parent control's handle hasn't
4138         been created or isn't visible, as well as avoiding creating the parent
4139         Form if the handle hasn't been previously created.
4140         Fixes tests.
4141
4142 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4143
4144         * TableLayoutPanel.cs: Use border sizes when calculating the
4145         panel's preferred size.  [Fixes part of bug #396433]
4146
4147 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4148
4149         * SplitContainer.cs:
4150          - Fix SplitterDistance to update only if needed. 
4151          - Make it force min and max validation.
4152          - Handle properly mouse moves outside the resizeable area.
4153          [Fixes bug #396232]
4154
4155 2008-06-02  Andreia Gaita <avidigal@novell.com> 
4156
4157         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
4158           (which also suppresses all popup dialogs). Throw NotSupported
4159           exceptions for activex getters/setters.
4160         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
4161           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
4162           StatusText, Version, GoSearch
4163         * HtmlDocument.cs: Add DocType support
4164
4165 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
4166
4167         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
4168         [Fixes bug 396124]
4169
4170 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4171
4172         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
4173
4174 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4175
4176         * TableLayoutPanel.cs: When calculating preferred size, use the
4177         actual number of columns and rows, not what the user set them to.
4178         [Fixes bug #396141]
4179
4180 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
4181
4182         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
4183         394311.
4184
4185 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4186
4187         * XplatUIX11.cs: When detecting areas obscured in a control by other
4188         toplevel windows while scrolling, return if the control hasn't a 
4189         container form.
4190         Fixes some tests.
4191
4192 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4193
4194         * XplatUIX11.cs: Properly detect the visible area of a control being
4195         scrolled (obscured by other winforms controls and any X toplevel
4196         windows), to mark as invalid the requested area to be scrolled that
4197         isn't visible and thus can't be copied.
4198         Fixes #324513.
4199
4200 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4201
4202         * ListBox.cs: Compute the precise amount to vertically scroll when
4203         using DrawMode.OwnerDrawVariable.
4204         Patch by jkeymer (j.keymer@gmx.net).
4205
4206 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4207
4208         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
4209         to avoid setting an invalid value for the verticall scrollbar 
4210         when navigating items. And, duh, also remove my silly debug messages
4211         from previous commits.
4212         Fixes #374713.
4213
4214 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4215
4216         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
4217         make it MS compatible.
4218
4219 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4220
4221         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
4222          - Allow the editing of entries even if their parent is read-only.
4223          - Do not render expandable properties read-only.
4224          - Refactor expansion checks form PropertyGrid into PropertyGrid.
4225
4226 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
4227
4228         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4229         support for the hover style.
4230
4231 2008-05-29  Andreia Gaita <avidigal@novell.com> 
4232
4233         * ContainerControl.cs: Check for null dead-end when traversing the tree
4234           of parent controls.
4235         
4236           [Fixes #394332, patch by Ernesto Carrea]
4237
4238 2008-05-29  Geoff Norton  <gnorton@novell.com>
4239
4240         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
4241         constant that it is.  Fixes #393981
4242
4243 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4244
4245         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
4246         that the user probably doesn't want to set this.
4247
4248 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4249
4250         * ThemeWin32Classic.cs: Don't let the text size be bigger than
4251         the control size for CheckBox/RadioBox.
4252         [Fixes part of bug #394645]
4253
4254 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4255
4256         * PropertyGrid.cs: Update the state of the sorting buttons in 
4257         the toolbar if PropertySort is set programatically.
4258
4259 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4260
4261         * GridItemCollection.cs: Add multiple items with conflicting names 
4262         support and also preserve name ordering.
4263         [Fixes #395345]
4264
4265 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4266
4267         * GridItemCollection.cs: Revert my multiple items with same 
4268         name patch.
4269
4270 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4271
4272         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
4273         or middle ones.
4274         Fixes part of #393908.
4275
4276 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
4277
4278         * ToolStripDrowDown.cs: When using the Show () methods that have a
4279         Control parameter, set the menu owner to that Control.
4280         [Fixes bug #394345]
4281
4282 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
4283
4284         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
4285         [Fixes bug #362756]
4286
4287 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4288
4289         * GridItemCollection.cs: Refactor to support multiple items with the 
4290         same name.
4291         [Fixes bug #394314]
4292
4293 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
4294
4295         * Control.cs: The 2.0 check for illegal cross thread calls in 
4296         Control.Handle were throwing an exception when we were getting
4297         the Handle in order to invoke correctly.  Created a private
4298         version that does not contain this check.
4299         [Fixes bug #394531]
4300
4301 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4302
4303         * PropertyGrid.cs: Respect DefaultTabType.
4304
4305 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4306
4307         * ListView.cs: SPACE selects an item.
4308         [Fixes bug #393023]
4309
4310 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4311
4312         * ListView.cs: Reset the search string whenever the items are 
4313         modified.
4314         [Fixes bug #393020]
4315
4316 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4317
4318         * ListControl.cs: For the first added item PositionChanged is fired
4319         _before_ ItemChanged, which leave us in a temporary invalid state - so
4320         we need to set the selected index from ItemChanged handler *if* we
4321         know that the first item has just been added *and* the items have been
4322         actually added to the ListControl.
4323         Fixes #369048.
4324
4325 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4326
4327         * TabControl.cs: Only clicks with the left button should be
4328         handled.
4329         Fixes #393908.
4330
4331 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4332
4333         * ComboBox.cs: 
4334         * FIleDialog.cs:
4335         * TextBox.cs: Expose an internal method in TextBox to restore the
4336         original context menu, and call it from ComboBox to re-use it in the
4337         combobox containing the file name in FileDialog.cs.
4338         Fixes part of #393775.
4339
4340 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
4341
4342         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
4343         style.
4344
4345 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
4346
4347         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
4348         down button style.
4349
4350 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4351
4352         * ComboBox.cs: Minor correction to previous patch: PageDown should
4353         also *try* to move by one item if the computed offset is negative,
4354         just like the PageUp case.
4355
4356 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4357
4358         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
4359         should be done for at least 1 item, and not stay at the same item.
4360         Fixes part of #374713.
4361
4362 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
4363
4364         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
4365         directories.  [Fixes bug #393931]
4366
4367 2008-05-22  Andreia Gaita <avidigal@novell.com> 
4368
4369         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
4370           Don't fire events until the initial about:blank page has finished
4371           loading. Clean up events.
4372
4373 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
4374
4375         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
4376           FocusIn() too. This should fix the issue on switching
4377           scim keyboards.
4378
4379 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
4380
4381         * X11Keyboard.cs : set XIM font size to somewhat reasonable
4382           number (ideally the input textbox size, but that could be
4383           too messy).
4384
4385 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
4386
4387         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
4388         the ToolStripItem's TextChanged.  [Fixes bug #393597]
4389
4390 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4391
4392         * TabControl.cs: When invalidating in SelectedIndex and we need to
4393         inflate to take into account the border of the tabs, make sure that
4394         the invalidated rect doesn't overflow the control bounds, since that
4395         would avoid updating at all.
4396
4397 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4398
4399         * TabControl.cs: Don't substract scroller width from the row width,
4400         since we need to take into account the total width of the control when
4401         calculating the position of the tabs. This avoids showing scroller
4402         when it is actually not needed.
4403         Fixes part of #322325.
4404
4405 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4406
4407         * ThemeVisualStyles.cs: Added support for TextBoxBase.
4408
4409 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4410
4411         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4412         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
4413
4414 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4415
4416         * DataGridView.cs: Only paint the top left header cell if there
4417         are columns.
4418
4419 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4420
4421         * DataGridView.cs: When binding to a BindingSource, get the underlying
4422         list to bind to.  [Fixes bug #345483]
4423
4424 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4425
4426         * DataGridView.cs: Do not bind to collection properties.
4427         [Fixes bug #337470]
4428
4429 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4430
4431         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
4432
4433 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4434
4435         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
4436         thumb style.
4437
4438 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4439
4440         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
4441
4442 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4443
4444         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
4445         background.
4446
4447 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4448
4449         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
4450
4451 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4452
4453         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
4454         checked styles.
4455
4456 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4457
4458         * TabControl.cs: Extended to handle the hot style.
4459
4460 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4461
4462         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
4463         Extended UpDownBase code to handle hot and disabled styles.
4464
4465 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4466
4467         * DataGridView.cs: Handle databinding to generic list type things.
4468         [Fixes bug #325239]
4469
4470 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4471
4472         * DataGridViewCellCollection.cs: Add a method to find the cell
4473         with the given DataPropertyName.
4474         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
4475         * DataGridViewColumnCollection.cs: Add a method to clear all
4476         autogenerated columns.
4477         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
4478         columns.
4479         [Fixes bug #348082]
4480
4481 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4482
4483         * DataGridView.cs: Don't try to update the RowTemplate with
4484         a null CellTemplate.
4485
4486 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4487
4488         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
4489         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
4490         * DataGridView.cs: Lots of fixes/enhancements to databinding to
4491         a DataSet.
4492
4493 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4494
4495         * Control.cs: Remove invalidating implicit child controls when
4496         control is invalidated.  It was causing too many redraws on
4497         controls with implicit scrollbars.
4498         * ListView.cs: Listen to the Invalidated event and invalidate
4499         child controls.
4500
4501 2008-05-20  Andreia Gaita <avidigal@novell.com> 
4502
4503         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
4504         * HtmlDocument.cs: Check for nulls
4505
4506 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4507
4508         * Control.cs: In ControlCollection.RemoveInternal, remove the
4509         internal control before calling PerformLayout and OnControlRemoved,
4510         which was leaving us in an invalid state and causing a X error (bad
4511         match). Observe that Remove () call has the same order.
4512         Fixes an X error changing ComboBoxStyle.DropDownStyle.
4513
4514 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4515
4516         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
4517         being fired if ControlStyles.UserPaint style is activated.
4518         Fixes #371905.
4519
4520 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4521
4522         * GridEntry.cs: Don't be so strict when setting the value - 
4523         do not check if what we set is what we get.
4524         [Fixes bug #389245]
4525
4526 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4527
4528         * XplatUIX11.cs: If there are no timers timeout should be 0
4529         [Fixes bug #363522]
4530
4531 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
4532
4533         * Control.cs: As a followup to invalidating implicit children when
4534         a control is invalidated, only invalidate them if they are in the
4535         clip rectangle.
4536
4537 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4538
4539         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
4540
4541 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4542
4543         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
4544
4545 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4546
4547         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
4548         * XplatUIWin32.cs: Made Win32DeleteObject public.
4549
4550 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4551
4552         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
4553         PropertyDescriptor.ShouldSerializeValue.
4554         [Fixes bug #391924]
4555
4556 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4557
4558         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
4559         in the classic theme.
4560
4561 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4562
4563         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
4564         ThumbPressed.
4565         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
4566         ScrollBarHasPressedThumbStyle.
4567
4568 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4569
4570         * TextRenderer.cs: Included some methods in the 1.1 profile.
4571
4572 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
4573
4574         * Control.cs: When we make a control visible, it may have been
4575         previously visible and while it wasn't visible, the z-order of
4576         things may have been shuffled, so the control needs to have its
4577         z-order updated just in case.  [Fixes bug #391518]
4578
4579 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4580
4581         * ThemeVisualStyles.cs: Added support for GroupBox.
4582
4583 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4584
4585         * GroupBoxRenderer.cs: Included in the 1.1 profile.
4586
4587 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
4588
4589         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
4590           bug #389996; XSelectInput() behaved as mouse handler robber,
4591           so remove extra call to it.
4592
4593 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4594
4595         * Control.cs: Simplify ControlCollection.Contains method.
4596
4597 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4598
4599         * DataGridViewRow.cs: Implement GetPreferredSize.
4600
4601 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4602
4603         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
4604
4605 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4606
4607         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
4608         painting and edit control fixes.
4609
4610 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4611
4612         * DataGridView.cs, DataGridViewCell.cs: Work around some external
4613         checks to make sure we are in an actual row/col for top left header cell.
4614         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
4615
4616 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4617
4618         * Control.cs: Use long instead of int when handling WParam from
4619         mousewheel scrolling.  Int was overflowing on Win64.
4620
4621 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4622
4623         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
4624         flow panel without scrolling first, and then calculate the 
4625         scrolling based on the new layout.  [Fixes bug #390149]
4626
4627 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4628
4629         * ListBox.cs: Invalidate after scrolling up when selected index
4630         changes.  [Fixes bug #390151]
4631
4632 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4633
4634         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
4635         set, default height to 150. I tried first with DefaultSize, but this
4636         is not generating a SetBoundsCore call before handle creation time, so
4637         we can take it into account. This is just what .net does.
4638
4639 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
4640
4641         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
4642         as it broke some stuff.  Calberto is filing a bug for eno to
4643         work with.
4644
4645 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4646
4647         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
4648         to 0 is the current value is -1, and if style is not Simple, just
4649         return, like .net does.
4650         Fixes part of #374713.
4651
4652 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
4653
4654         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
4655         progress bar stuffs, use doubles instead of ints to prevent
4656         overflow.  [Fixes bug #389798]
4657
4658 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
4659
4660         * XplatUIX11.cs, X11Keyboard.cs :
4661           Significant refactoring on XIM support. Now IM engine UI
4662           should show up, at mostly-correct preedit position.
4663           - Eliminated use of FocusWindow, as it is never mapped
4664             and hence blocks correct preedit position. XIC is now
4665             created per window, and it must be destroyed too when
4666             the window is destroyed.
4667           - WM_QUIT messages should not be filtered even when hwnd
4668             is zombie. Filtering it could cause endless loop.
4669           - Preedit position must move only when the window is alive.
4670           - Make it IDisposable and make sure to release XIM/XICs.
4671
4672 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
4673
4674         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
4675           XplatUIX11.cs, XplatUIWin32.cs :
4676           fix for bug #325033 and #387693;
4677           - WM_QUIT should not be sent when no running application
4678             exists.
4679           - SetTimer/KillTimer (especially on win32) should be
4680             invoked for the window that the timer is/will_be attached.
4681           - There could be unattached timers to a window when it's
4682             started. For those timers, hold pending timers and when
4683             a window is mapped, attach them to it.
4684           - WaitForHwndMessage() could run into loop when
4685             WM_SHOWWINDOW is handled before this method is called.
4686             So, strictly check wm_showwindow state.
4687           - Tick handler should not be invoked while one Tick handler
4688             call is still running (introduced Busy state).
4689
4690 2008-05-13  Andreia Gaita <avidigal@novell.com> 
4691
4692         * WebBrowserBase.cs: Override Internal alternative methods for
4693           SetBoundsCore and OnResize instead of the protected ones.
4694         * Control.cs: Move SetBoundsCore and OnResize implementations to
4695           SetBoundsCoreInternal and OnResizeInternal, so they can be
4696           overriden internally (WebBrowserBase needs to catch them but can't
4697           override the protected methods without api compat problems)
4698
4699 2008-05-13  Andreia Gaita <avidigal@novell.com> 
4700
4701         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
4702
4703 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4704
4705         * Binding.cs:
4706         * ListView.cs: Remove debug messages.
4707
4708 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4709
4710         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
4711         area is empty. Also calculate scrollbars in Simple mode based in area
4712         height and total number of items, not in MaxDropDownItems.
4713         Fixes part of #371991.
4714
4715 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4716
4717         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
4718
4719 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4720
4721         * BindingSource.cs: GetListSortDescription is not public.
4722
4723 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4724
4725         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
4726
4727 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4728
4729         * HtmlElement.cs: Fix parameter names to match MS.
4730         * HtmlWindowCollection.cs: Should not be sealed.
4731
4732 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4733
4734         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
4735         button, because the thumb button will not get drawn if the scrollbar
4736         is disabled.  [Fixes bug #389262]
4737
4738 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4739
4740         * ListBox.cs: Handle End key for multi-column listboxen.
4741         [Fixes bug #389266]
4742
4743 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4744
4745         * ListBox.cs: Fix algorithm to determine which column our item is in.
4746         [Fixes bug #389265]
4747
4748 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4749
4750         * ListBox.cs: Invalidate when the listbox is resized.
4751         [Fixes bug #389256]
4752
4753 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4754
4755         * ListBox.cs: There is always at least one row in the ListBox (if
4756         we are doing these calculations.)  [Fixes bug #389253]
4757
4758 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4759
4760         * ListBox.cs: There is always at least one column in the ListBox.
4761         [Fixes bug #389250]
4762
4763 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4764
4765         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
4766         ensure in Simple mode that the height is exactly the requested one.
4767         Also add the ComboBoxListControl to the controls collection in Simple
4768         mode even if handle hasn't been created.
4769         Fixes part of #371991.
4770
4771 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4772
4773         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
4774         our ComboBox owner instead of giving it back to the previous control (
4775         as done in other controls). Also remove the empty override of Select
4776         method, since we want to be selected *and* give focus to our owner.
4777         This should let the user do keys-navigation in Simple mode. 
4778
4779 2008-05-10  Geoff Norton  <gnorton@novell.com>
4780
4781         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
4782         problems with rapid scrolling of treeviews. Fixes #381084
4783
4784 2008-05-10  Geoff Norton  <gnorton@novell.com>
4785
4786         * XplatUICarbon.cs: Deactivate the active window before
4787         activating the desired window.  Completes fixing #386504
4788
4789 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4790
4791         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
4792         SmallChange to the item size width plus the padding, to match .net.
4793
4794 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4795
4796         * FileDialog.cs: Apply the custom filter typed by the user in the file
4797         name combobox as much as possible while navigating in the file dialog.
4798         Fixes #385261.
4799
4800 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4801
4802         * Binding.cs: Actually use NullValue if the retrieved value of
4803         data source is null or DBNull. Makes a test pass.
4804
4805 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
4806
4807         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
4808         * MimeIcon.cs: Provide a way to get icons from resources.
4809
4810 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4811
4812         * Binding.cs: When the value retrieved from the control to be assigned
4813         to the data source is null, actually use the 2.0 DataSourceNullValue
4814         value. Make pass a data binding test.
4815
4816 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4817
4818         * Control.cs: We need to invalidate implicit children even when
4819         invalidate is called with invalidatechildren = false.  (Implicit
4820         children are really part of the parent.)
4821         * ListView.cs: Double-buffer internal child controls for less
4822         flicker.
4823         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
4824         owner ListView subitems for greatly increased performance.
4825         [Fixes bug #388477]
4826
4827 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
4828
4829         * FileDialog.cs: When the user types a wildcard character in the
4830         filename combobox, update the contents of the folder using the text as
4831         a filter.
4832         Fixes part of #385261.
4833
4834 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4835
4836         * ListBox.cs: Various fixes for MultiColumn listboxen.
4837         [Fixes bug #388114]
4838
4839 2008-05-08  Andreia Gaita <avidigal@novell.com> 
4840
4841         * HtmlElement.cs: Implement Style property
4842
4843 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4844
4845         * ListBox.cs: Respect checkboxes when measuring item size.
4846         * ThemeWin32Classis.cs: When drawing list items, don't draw
4847         text outside of the item's bounds to prevent overlapping.
4848         (.Net actually overlaps, but that's just silly.)
4849         [Fixes bug #388117]
4850
4851 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
4852
4853         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
4854         Gert Driesen. Fixes bug #324830. 
4855
4856 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
4857
4858         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
4859         method implemented.
4860
4861 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4862
4863         * BindingSource.cs: When calling IsSynchronized, return the value of
4864         the related IList list.
4865
4866 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4867
4868         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
4869         make a test pass.
4870
4871 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
4872
4873         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
4874         navigation to scroll the grid if the current cell is not visible.
4875
4876 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4877
4878         * HtmlElement.cs: Implement TabIndex
4879
4880 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
4881
4882         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
4883         properties, even when there are no items.
4884         [Fixes bug #387611]
4885
4886 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
4887
4888         * NativeWindow.cs: Add support for multiple handles per window.
4889         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
4890         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
4891         directly - use FromHandle instead.
4892         [Fixes bug #374660]
4893
4894 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4895
4896         * HtmlElement.cs: Implement InnerHTML setter
4897
4898 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4899
4900         * HtmlDocument.cs: Implement Focused
4901
4902 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4903
4904         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
4905         methods, as well as add messages to the exceptions.
4906
4907 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4908
4909         * BindingSource.cs: Setting DataSource should only reset DataMember if
4910         the previous value was null (make pass a not working test).
4911
4912 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4913
4914         * BindingSource.cs: When EndInit call is postponed and is called until
4915         DataSource.EndInit is called, remove the handler for data source.
4916
4917 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4918
4919         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
4920
4921 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4922
4923         * ToolStripManager.cs: Store references to toolstrips as
4924         weak references so they do not prevent forms from getting collected.
4925         [Fixes bug #386483]
4926
4927 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4928
4929         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
4930         on .Net.  So do the same thing in WndProc.
4931
4932 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4933
4934         * TrackBar.cs: Commit patch from Andy Hume that corrects
4935         the clickable areas to better match .Net.
4936         [Fixes bug #387074]
4937
4938 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4939
4940         * TrackBar.cs: Commit patch from Andy Hume that adds the
4941         ResizeRedraw control flag so the track bar repaints itself
4942         when it is resized.  [Fixes bug #387072]
4943
4944 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4945
4946         * TrackBar.cs: Commit patch from Andy Hume that adds better
4947         support for keyboard navigation when the TrackBar is vertical.
4948         [Fixes bug #387071]
4949
4950 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4951
4952         * BindingSource.cs: Implement ISupportInitializeNotification support.
4953
4954 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
4955
4956         * ThemeVisualStyles.cs: Added support for ToolBar.
4957
4958 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
4959
4960         * ToolBar.cs: Made the Vertical property internal.
4961
4962 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4963
4964         * ThemeVisualStyles.cs: Added support for TrackBar.
4965
4966 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4967
4968         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
4969         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
4970         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
4971         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
4972         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
4973         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
4974
4975 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4976
4977         * ThemeVisualStyles.cs: Added support for UpDownBase.
4978
4979 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4980
4981         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
4982         Extracted Theme.UpDownBaseDrawButton.
4983
4984 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
4985
4986         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
4987         removed from the static toolstrips collection in ToolStripManager
4988         when they are disposed.  Provides a workaround for bug #386483.
4989
4990 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
4991
4992         * GridEntry.cs: Read-only properties with Editor with 
4993         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
4994         [Fixes bug #384184]
4995
4996 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
4997
4998         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
4999         the menu key and there are no items on the menu.
5000         [Fixes bug #386644]
5001
5002 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
5003
5004         * Control.cs: Avoid calling ToString on a string.
5005         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5006         * GroupBox.cs: In FlatStyle property throw, not just create, the 
5007         exception. Avoid calling ToString on a string.
5008         * ProgressBar.cs: Avoid calling ToString on a string. 
5009         * ScrollBar.cs: Avoid calling ToString on a string. 
5010         [All issues were found using Gendarme]
5011
5012 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5013
5014         * NotifyIcon.cs: Prevent click events to be trigger after double click 
5015         events. Fixes remaining issues of bug #324832.
5016
5017 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5018
5019         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5020         to mimic win32 behavior. Partially fixes bug #324832.
5021
5022 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5023
5024         * BindingSource.cs: Implement Find methods.
5025
5026 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5027
5028         * BindingSource.cs: Implement Sort, ApplySort overloads, and
5029         RemoveSort methods.
5030
5031 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5032
5033         * ListBindingHelper.cs: When calling GetListItemProperties and the
5034         passed object is ITypedList, return the result of
5035         ITypedList.GetItemProperties instead.
5036
5037 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5038
5039         * LinkLabel.cs: Set default value of name on constructor of Link class
5040         only for 2.0 profile.
5041
5042 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5043
5044         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5045         Fixes remaining issues of bug #346154.
5046
5047 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5048
5049         * LinkLabel.cs: Set a default value for name on internal contructor of
5050         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5051
5052 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5053
5054         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5055         and refer all instances to owner.links. Partially fixes #346154.
5056
5057 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5058
5059         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
5060         length equal zero. Also called CreateLinkPieces in constructor. It fixes
5061         the LinkLabel test 'TestLinkArea'.
5062
5063 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5064
5065         * Form.cs: Remove menu before close form to prevent form to be not gaced.
5066         [Fixes #386460]
5067
5068 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5069
5070         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5071         [Fixes #386463]
5072
5073 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5074
5075         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5076         [Fixed bug #357004]
5077
5078 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5079
5080         * MenuAPI.cs: Remove unused ProcessCmdKey method.
5081
5082 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5083
5084         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
5085         [Fixes bug #375398]
5086
5087 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5088
5089         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5090         of bug #367492.
5091
5092 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5093
5094         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5095         sometimes we open a conext menu on mouse down of some controls and the mouse
5096         up is dispatched to menu and dont need to. It fix remaining issues of 
5097         #363711 and other problems related to menu mouse click events.
5098
5099 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5100
5101         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5102         some var names to better fit changes, now we have month_menu and today_menu
5103         vars. Fixes bug #363711.
5104
5105 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5106
5107         * MonthCalendar.cs: Handle every right mouse click to open context menu,
5108         right now the default month menu but it will be change to have "Go to today"
5109         menu.
5110
5111 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5112
5113         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5114
5115 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5116
5117         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5118
5119 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5120
5121         * ThemeVisualStyles.cs: Added support for TreeView.
5122
5123 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5124
5125         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5126         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
5127
5128 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5129
5130         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
5131
5132 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5133
5134         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
5135         Implement 2.0 SP1 stuffs.
5136
5137 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5138
5139         * FileDialog.cs: Implement 2.0 SP1 stuffs.
5140
5141 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5142
5143         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
5144         Implement CanEnableIme property. (2.0 SP1)
5145
5146 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5147
5148         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
5149         from the 2.0 API.
5150
5151 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5152
5153         * Control.cs: Provide an internal way for a control to override
5154         the setting of Height.
5155         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
5156         set height using new method.
5157
5158 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5159
5160         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
5161
5162 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5163
5164         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5165         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
5166
5167 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5168
5169         * ThemeVisualStyles.cs: Added support for StatusBar.
5170
5171 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5172
5173         * DataObject.cs: Add the other IDataObject interface.
5174
5175 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5176
5177         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
5178         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
5179
5180 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5181
5182         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
5183         * ListView.cs: Hide non-public API.
5184         * MaskedTextBox.cs: Remove extra attribute.
5185
5186 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5187
5188         * DataGridViewImageCell.cs: Use formatted value instead of value
5189         to calculate preferred size.
5190
5191 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5192
5193         * ListBox.cs: Move some initialization around so that selected_indices
5194         is not accessed before it is created.
5195
5196 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5197
5198         * InputLanguageCollection.cs: Implement the collection better.
5199         [Fixes bug #385506]
5200
5201 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5202
5203         * ToolStripDropDownItem.cs: Get the correct event object for
5204         DropDownItemClicked.
5205         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
5206         [Fixes bug #385475]
5207
5208 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5209
5210         * DataGridViewRowCollection.cs: We don't currently support shared 
5211         rows.  Should fix test failures caused by previous commit.
5212
5213 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5214
5215         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
5216         datagridview gets set.  Only paint cells in visible columns.
5217         * DataGridViewCell.cs: Draw border after cell content.
5218         * DataGridView.cs: Invalidate after setting some properties.  Only
5219         use visible columns.  Fit hit test bug with areas in the col/row header
5220         area but not in a row or col.  Implement UpdateCell/Row methods.
5221
5222 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5223
5224         * DataGridViewElement.cs: Don't throw NIEX.
5225         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
5226         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
5227         * DataGridViewCheckBoxColumn.cs: Implement ToString.
5228         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
5229         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
5230         if the user filled in the formatting Value, use it.
5231
5232 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5233
5234         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
5235         to a string.
5236
5237 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5238
5239         * BindingSource.cs: Some corrections to Filter property, as well as
5240         setting it for our list when resetting it.
5241
5242 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
5243
5244         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
5245         than the maximum.  Fixes reopened bug #384182.
5246
5247 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5248
5249         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
5250         Fixes remaining issues of #367490.
5251
5252 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5253
5254         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
5255         SystemInformation.WorkingArea to get max_screen value.
5256
5257 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5258
5259         * BindingSource.cs: Implement Filter and RemoveFilter.
5260
5261 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5262
5263         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
5264
5265 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5266
5267         * X11Dnd.cs: When trying to convert data and we know we started the
5268         dnd loop, don't try to use the cached data if the loop is not running,
5269         which means that the data has been resetted.
5270         Fixes #378191.
5271
5272 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5273
5274         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
5275         win32 behavior.
5276
5277 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5278
5279         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
5280         it to drawn off screen edge. Fixes bug #367490.
5281
5282 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5283
5284         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
5285         menu position to have only one assignment of Location var.
5286
5287 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5288
5289         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
5290         for this patch. Fixes bug #384115.
5291
5292 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5293
5294         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
5295         the same.  If LargeChange is zero, set a minimum size for the scroll
5296         thumb grip.  [Fixes bug #384182]
5297
5298 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5299
5300         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
5301         [Fixes bug #384181]
5302
5303 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5304
5305         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
5306
5307 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5308
5309         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
5310         patch from Ernesto).
5311
5312 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5313
5314         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
5315
5316 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5317
5318         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
5319
5320 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5321
5322         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
5323
5324 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5325
5326         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
5327
5328 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
5329
5330         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
5331
5332 2008-04-27  Andreia Gaita <avidigal@novell.com> 
5333
5334         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
5335           supposed to return a reference to an mshtml interface, which we
5336           don't support).
5337         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
5338           reference to an mshtml interface, which we don't support). Code
5339           formatting cleanup.
5340         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
5341           DomDocument getter (it's supposed to return a reference to an
5342           mshtml interface, which we don't support). Code formatting cleanup.
5343
5344 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5345
5346         * ListView.cs: Ouch, forgot to commit.
5347
5348 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5349
5350         * ListView.cs: 
5351         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
5352
5353 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5354
5355         * ListView.cs: When calculating box selection for virtual mode, don't
5356         look for intersection with item's text, but item bounds, since that
5357         would mean read ListViewItem's text for _every_ item, and that's
5358         something we just can't do in virtual mode (items are only requested
5359         when drawn).
5360
5361 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
5362
5363         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
5364         partial support for managed windows (based on the patch from Ernesto).
5365
5366 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5367
5368         * ListView.cs: When doing a key search use FindItemWithText method
5369         instead of doing the search by ourselves, this way we avoid
5370         duplicating the code and also we handle the special case for virtual
5371         mode. To achieve that make our private overload of FindItemWithText
5372         internal and also have a 'roundtrip' parameter.
5373
5374 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5375
5376         * ListView.cs: When doing the layout don't request the
5377         ListViewItem instance if we are in virtual mode (since we can't request it
5378         until the item is actully drawn).
5379
5380 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5381
5382         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
5383         from Ernesto).
5384
5385 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5386
5387         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
5388         the patch from Ernesto).
5389
5390 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5391
5392         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
5393         * ThemeVisualStyles.cs: Added.
5394
5395 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5396
5397         * IDeviceContext.cs: Added a missing using.
5398
5399 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5400
5401         * ButtonBase.cs: Made IsDefault protected internal.
5402         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
5403
5404 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5405
5406         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
5407         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
5408         RadioButtonRenderer.cs: Included in the 1.1 profile.
5409         * IDeviceContext.cs: Added.
5410         * TextRenderer.cs: Included a member in the 1.1 profile.
5411
5412 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5413
5414         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
5415
5416 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5417
5418         * ErrorProvider.cs: Make the error icons come after the control
5419         they refer to.  It isn't the way the MS does it, but its better
5420         than what we were doing.  See bug #368587.
5421
5422 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5423
5424         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
5425         from Eric Albright that lazy loads the input language as ensures
5426         everything gets properly initialized.  Fixes bug #373871.
5427
5428 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5429
5430         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
5431         implicit mnemonics.  [Fixes bug #383000]
5432
5433 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5434
5435         * X11Dnd.cs: When canceling the operation, automatically restore the
5436         default cursor - normally the default cursor is restored when the
5437         mouse buttons are released, but we should be able to restore it even
5438         if the buttons are still pressed (for example, when pressing ESC to
5439         cancel).
5440         Fixes #381894.
5441
5442 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5443
5444         * X11Dnd.cs: When starting a new drad and drop operation, set control
5445         field to null, just as the other fields, to avoid calling any
5446         operation on a previous control. Also, when calling DndLeave on a
5447         control, set it to null, thus we don't fire that event multiple times
5448         for that control.
5449         Fixes #209264.
5450
5451 2008-04-23  Geoff Norton  <gnorton@novell.com>
5452
5453         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
5454         the whole_window object.  Fixes #377084.
5455
5456 2008-04-23  Andreia Gaita <avidigal@novell.com> 
5457
5458         * HtmlElement.cs: Implement RaiseEvent (event injection into the
5459           embedded browser)
5460
5461 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
5462
5463         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
5464
5465 2008-04-23  Andreia Gaita <avidigal@novell.com> 
5466
5467         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
5468           invocation
5469
5470 2008-04-23  Andreia Gaita <avidigal@novell.com> 
5471
5472         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
5473           attaching/detaching
5474
5475 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5476
5477         * X11Dnd.cs: When the drop was cancelled, or could just not be
5478         performed, return DragDropEffect.None always (match .net).
5479
5480 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5481
5482         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
5483
5484 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5485
5486         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
5487
5488 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5489
5490         * DataGridView.cs: Add support for error icon tool tips.
5491         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
5492         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
5493
5494 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
5495
5496         * X11Structs.cs: Add mouse button masks enum.
5497         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
5498         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
5499         form resize/move operation instead of for each step of it.
5500         [Fixes bug #346529 for the x11 backend]
5501
5502 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5503
5504         * DataGridView*: Implement support for drawing error icons.
5505
5506 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5507
5508         * TreeView.cs: Make vbar and hbar internal.
5509         * TreeNode.cs: If collapsing the node removes one of the TreeView's
5510         scrollbars, invalidate the whole thing.
5511         [Fixes bug #382001]
5512
5513 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5514
5515         * TreeView.cs: Calling Sort() sets Sorted = true.
5516         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
5517         if the nodes need to be sorted.
5518         [Fixes bug #382028]
5519
5520 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
5521
5522         * Form.cs: Fire SizeChanged for both when the form is minimized and 
5523         restored.
5524         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
5525         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
5526
5527 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5528
5529         * ComboBox.cs: If the combobox is disabled, draw a disabled
5530         background before painting anything else.
5531         [Fixes bug #381729]
5532
5533 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5534
5535         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
5536         forget to send a Leave event to the target window - just as .net does
5537         when cancelling dnd operations.
5538
5539 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5540
5541         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
5542         soon as possible - this happens when we send the drop message to the
5543         target window. This way we avoid firing any DragOver _after_ drop finished.
5544         Fixes #378179.
5545
5546 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5547
5548         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
5549         * Form.cs: Handle form minimization as a special state, where size doesn't 
5550         change, but we have to fire SizeChanged.
5551         [Fixes bug #325122 for the win32 and x11 backends]
5552
5553 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5554
5555         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
5556         if the handle is disabled.
5557         [Fixes bug #371751]
5558
5559 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5560
5561         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
5562         for forms with FormBorderStyle.None.
5563         [Fixes bug #349571]
5564
5565 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5566
5567         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
5568         WM_EXITSIZEMOVE.
5569         [Fixes bug #346529 for the X11 backend]
5570
5571 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5572
5573         * XplatUIX11.cs: 
5574           - Send a mouse Enter message after say dragging the mouse with a 
5575           button down and then release it in another client.
5576           - Reset the cursor to prevent X11 from remembering it and setting it 
5577           before the control gets WM_SETCURSOR.
5578           - Qeueue a mouse move after a mouse enter like win32.
5579           [Fixes bug #323234]
5580
5581 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5582
5583         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
5584         It's sent when the form gets moved, resized, closed.
5585         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
5586         [Fixes bug #359193 for X11]
5587
5588 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5589
5590         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
5591         the build.
5592
5593 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5594
5595         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
5596         group. Fixes the 1.1 build.
5597
5598 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5599
5600         * ListView.cs: Use display indexes for selection in Details view, as
5601         well as do the proper layout based on display indexes for that view
5602         too.
5603
5604 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5605
5606         * ListView.cs: Focused item information is now stored as a display
5607         index, and display indexes are used all over the place for selection,
5608         instead of ListViewItem.Index values, which doesn't give us enough
5609         information to modify the selection in groups mode, and was broken.
5610
5611 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
5612
5613         * Control.cs: Do not fire MouseDown if validation of the control has 
5614         failed.
5615         * Form.cs: Validate the form before closing.
5616         [Fixes bugs #330501 and #353310]
5617
5618 2008-04-18  Andreia Gaita <avidigal@novell.com> 
5619
5620         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
5621           CreateWebBrowserSiteBase implementations
5622         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
5623           Style and TabIndex setters
5624
5625 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5626
5627         * ListViewGroup.cs: When returning the actual item count, return the
5628         proper count for default group.
5629         Fix the tests.
5630
5631 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5632
5633         * ListView.cs:
5634         * ListViewGroup.cs: When calculating groups layout, get the actual
5635         number of items per group, since groups added to the group BUT not
5636         added to the ListView are just ignored, and can cause some nasty
5637         exceptions because of the lack of synchronization. Also for
5638         ListViewGroup don't use lazy initialization for items, since we 
5639         the common scenario is to use it always - and it helps us to  refactor
5640         and clean the .ctor overloads.
5641
5642 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5643
5644         * ListView.cs: When adding an item to a ListViewItemCollection
5645         belonging to a group (ListViewGroup.Items), don't generate a redraw if
5646         the added item hasn't beeen previously added to the ListView instance
5647         refered by the group, since it will be ignored. This should avoid some 
5648         really nasty flickering.
5649
5650 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5651
5652         * ListView.cs: When accessing an item in a specific display
5653         position, use the helper method GetItemAtDisplayIndex, instead of
5654         direct access to the reordered_items_indices array. When doing layout
5655         for groups set the correct Items index for the display position (since
5656         in groups mode items don't have the same position as in Items
5657         collection).
5658         * ListViewGroup.cs: Add a field to store the starting item number,
5659         which is later used when calculating the layout.
5660
5661         Fixes #360805.
5662
5663 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
5664
5665         * Application.cs: Fixed ProductVersion to fallback to the assembly
5666         version. Fixes regression for bug #325413.
5667
5668 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5669
5670         * ListView.cs: New helper method to retrieve an item in a _specific
5671         display_ position (the items can be displayed in a different order
5672         than one of Items collection).
5673         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
5674         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
5675         specific display position (again remember that items can be sorted
5676         different than Items).
5677
5678 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5679
5680         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
5681         list and update it when the collection changes.  We were recreating
5682         this several times per row paint and for every pixel the mouse moved
5683         across the grid.
5684         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
5685         changes.
5686
5687 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5688
5689         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
5690         list to use generics.
5691         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
5692         and remove unneccessay casts.
5693
5694 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5695
5696         * DataGridViewBand.cs: Add internal way to set displayed variable.
5697         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
5698         * DataGridView.cs: Make sure we always keep track of Displayed
5699         rows and columns, and only draw things that are displayed.
5700
5701 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
5702
5703         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
5704           whether the key events are filtered or not. Introduced
5705           PreFilter() process for this purpose. This fixes atokx3/iiimx
5706           shift state issue.
5707
5708 2008-04-16  Andreia Gaita <avidigal@novell.com> 
5709
5710         * HtmlHistory.cs: Implement Length property
5711
5712 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
5713
5714         * DataGridView.cs: Call EndEdit when a sort is performed so we take
5715         away the edit textbox.  Refactor to reuse column sort code.
5716
5717 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
5718
5719         * MenuAPI.cs: Remove the code that save and restore capture status of 
5720         grab_control, this fixes some Menu and Context menu bugs but maybe it can
5721         cause some others, I cant figure the possible problems of this patch but
5722         right now remove the code looks to be better than keep it. This patch fixes
5723         bugs #357638, #378721 and #379570.
5724
5725 2008-04-12  Andreia Gaita <avidigal@novell.com> 
5726
5727         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
5728         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
5729         add missing properties and event handlers.
5730         
5731 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
5732
5733         * ListBox.cs: Make sure the LargeChange we are setting is at least
5734         zero, to prevent an IOORE.  [Fixes bug #379531]
5735
5736 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
5737
5738         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
5739         in DropDownList mode, for each key-press select the next item 
5740         starting with that letter.
5741         For other modes, when no item selected, on arrow-up/-down and open 
5742         drop-down select the first item matching the text in the textbox.
5743
5744 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
5745
5746         * X11Keyboard.cs : Control.FromHandle() could return null
5747           in MoveCurrentCaretPos().
5748
5749 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5750
5751         * ListView.cs: When changing the size in VirtualMode, also Reset the
5752         selection.
5753         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
5754         changing selection info for VirtualMode.
5755         Fixes #372618.
5756
5757 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5758
5759         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
5760         view, don't use LineLimit for the first item - use NoWrap *always*
5761         instead, since ListView.LabelWrap is not used for this view.
5762         Fixes #378054.
5763
5764 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5765
5766         * Binding.cs: Call UpdateIsBinding when setting control - probably
5767         Binding is already usable and we don't need to wait to check the
5768         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
5769         Created, just like 2.0 does.
5770         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
5771
5772 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5773
5774         * Binding.cs: Just realized we don't need to have a handler for
5775         BindingContextChanged, since this info should be now consumed directly
5776         in the BindingManagerBase. And also, the manager.IsBindingSuspended
5777         state info is checked directly, instead of caching it.
5778
5779         * CurrencyManager.cs: IsSuspended should return always false if Count
5780         == 0.
5781
5782 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5783
5784         * Binding.cs: When calling PushData, return if manager.Count == 0,
5785         since we just don't have data to be read. Also, when setting the
5786         Control for binding, hook up some events to refresh the IsBinding
5787         state when BindingContext change or control gets created; use
5788         Control.IsHandleCreated instead of Control.Created check to set
5789         IsBinding state - we *actually* need to modify IsBinding when control
5790         is created, but we don't have any Created event, only HandleCreated.
5791         Fixes part of #349364.
5792
5793 2008-04-11  Geoff Norton  <gnorton@novell.com>
5794
5795         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
5796         warping a null Caret.
5797
5798 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5799
5800         * DataGridView.cs: Implement row/column autosizing methods. Implement
5801         autosorting.
5802         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
5803         * DataGridViewRowCollection.cs: Add an internal sorting method.
5804
5805 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5806
5807         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
5808         value in ListView drawing code.
5809
5810 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5811
5812         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
5813         is clicked.  Respect the user setting Cancel in FileOk.
5814
5815 2008-04-11  Geoff Norton  <gnorton@novell.com>
5816
5817         * ListView.cs: Avoid setting and resetting control Width/Heights and
5818         calculate the final value and set it once.  Prevents a feedback loop
5819         on the mac.
5820
5821 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5822
5823         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
5824         [Fixes bug #378869]
5825
5826 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
5827
5828         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
5829           Add some on-the-spot code, but it seems we don't need it.
5830
5831 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5832
5833         * Form.cs: Add method for DataGridView to trigger focus cues
5834         even when it handles the tab keypress.
5835
5836 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5837
5838         * DataGridView.cs: More keyboard handling, tab, esc.
5839         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
5840         when at the beginning or end of the text in the text box.
5841
5842 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5843
5844         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
5845
5846 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5847
5848         * DataGridView.cs: Some fixups for showing and adding the edit control.
5849         * DataGridViewButtonColumn.cs: Implement ToString.
5850         * DataGridViewCell.cs: Size and position the control simultaneously.
5851         * DataGridViewTextBoxCell.cs: Use base to position control.
5852
5853 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5854
5855         * DataGridViewCell.cs: Fix up some formatting and painting code.
5856         * DataGridViewImageCell.cs: Implement some NIEX methods.
5857
5858 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5859
5860         * ToolStripItemCollection.cs: What moving an item from one owner
5861         to another, remove from source owner before adding to destination.
5862         [Fixes bug #378109]
5863
5864 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5865
5866         * PictureBox.cs: Call Load when ImageLocation is set.
5867         [Fixes bug #378308]
5868
5869 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
5870
5871         * X11Keyboard.cs, XplatUIX11.cs :
5872           Implement over-the-spot mode (with some odd offsets).
5873           - set preedit position when caret is set.
5874           - Wrap XMoveResizeWindow() to move preedit position.
5875
5876 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5877
5878         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
5879         array lenght.
5880
5881 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5882
5883         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
5884         and ScanTableIndex public, it fix compilations errors when compiling
5885         WinForms to generate keyboard layout resources.
5886
5887 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5888
5889         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
5890         different element count than scan table. It prevents some errors in non
5891         standard keyboards.
5892
5893 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
5894
5895         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
5896
5897 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
5898
5899         * DataGridView.cs: Call OnContentClick.
5900         * DataGridViewCell.cs: Do a null check on ValueType instead
5901         of valueType.
5902         * DataGridViewCheckBoxCell.cs: Implement.
5903
5904 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5905
5906         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
5907
5908 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5909
5910         * X11Keyboard.cs : Check XGetIMValues() return value in
5911           case it does not return input styles in some environment.
5912
5913 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5914
5915         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
5916
5917 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5918
5919         * BindingContext.cs: Stub UpdateBinding method.
5920
5921 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
5922
5923         * X11Structs.cs : added couple of structs for XIM support.
5924         * X11Keyboard.cs :
5925           Release XIM in case it failed to create XIC. 
5926           Use consts for XNblah string.
5927           Add support for IM style customization and XIC creation
5928           for preedit-position and preedit-callback.
5929           Right now use MONO_WINFORMS_XIM_STYLE environment variable
5930           (list of: over-the-spot | on-the-spot | root). Only root
5931           mode works so far.
5932
5933           (redoing r99172 with fix.)
5934
5935 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5936
5937         * TreeView.cs: Center the checkbox a little better.
5938
5939 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5940
5941         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
5942         Apply very nice patch from Ernesto Carrea that simplifies our
5943         scrollbar drawing.  [From bug #376146]
5944
5945 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5946
5947         * TreeView.cs: Correct the location of the root node checkbox when
5948         ShowRootLines = false.  Don't draw the root lines for the root node
5949         when ShowRootLines = false.  [Fixes bug #377535]
5950
5951 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
5952
5953         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
5954         Fixed line endings.
5955         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
5956         line endings.
5957         * MaskedTextBox.cs: Added missing attribute. Code formatting.
5958         * PageSetupDialog.cs: Added missing attribute. Code formatting.
5959         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
5960         * ImeMode.cs: Added missing field.
5961         * HtmlWindow.cs: Code formatting. Fixed line endings.
5962         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
5963         warnings.
5964         * HtmlHistory.cs: Code formatting. Fixed line endings.
5965         * HtmlDocument.cs: Code formatting. Fixed line endings.
5966         * ToolStripPanel.cs: Added missing IList implementation.
5967         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
5968
5969 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
5970
5971         * BindingContext.cs: Changed argument names to fix corcompare errors.
5972         * DataGridView.cs: Removed extra explicit interface implementation
5973         of IDropTarget. Code formatting.
5974         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
5975         * ComboBox.cs: Changed argument names to fix corcompare errors.
5976         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
5977         errors.
5978         * GridColumnStylesCollection.cs: Changed argument names to fix
5979         corcompare errors. Removed extra tabs.
5980         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
5981         errors.
5982         * Control.cs: Changed argument names to fix corcompare errors. Code
5983         formatting. Removed extra explicit IList implementation.
5984         * TextBox.cs: Changed argument names to fix corcompare errors. Code
5985         formatting. Use string.Empty instead of "".
5986         * GridItemCollection.cs: Changed argument names to fix corcompare
5987         errors. Code formatting.
5988         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
5989         corcompare errors. Code formatting.
5990         * ImageList.cs: Changed argument names to fix corcompare errors.
5991         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
5992         * DataGridViewRowCollection.cs: Changed argument names to fix
5993         corcompare errors. Code formatting.
5994         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
5995         * DataGridViewSelectedCellCollection.cs: Changed argument names to
5996         fix corcompare errors. Code formatting.
5997         * DataGridViewComboBoxCell.cs: Changed argument names to fix
5998         corcompare errors. Code formatting.
5999         * LinkLabel.cs: Changed argument names to fix corcompare errors.
6000         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6001         formatting.
6002         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6003         Code formatting.
6004         * BindingSource.cs: Changed argument names to fix corcompare errors.
6005         Removed extra explicit interface implementations.
6006         * DataGridViewSelectedRowCollection.cs: Changed argument names to
6007         fix corcompare errors. Code formatting.
6008         * ToolStripItemCollection.cs: Removed extra explicit interface
6009         implementation of IList.ReadOnly.
6010         * DataGridViewColumnCollection.cs: Changed argument names to fix
6011         corcompare errors. Code formatting.
6012         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6013         * ListView.cs:  Changed argument names to fix corcompare errors.
6014         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6015         errors.
6016         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6017         errors.
6018         * ListBindingHelper.cs: Changed argument names to fix corcompare
6019         errors.
6020         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6021         fix corcompare errors. Code formatting.
6022         * ToolStripPanel.cs: Removed extra explicit implementation of
6023         IDropTarget interface.
6024         * ListBox.cs: Changed argument names to fix corcompare errors. Code
6025         formatting. Removed extra tabs and spaces.
6026         * DataGridViewCellCollection.cs: Changed argument names to fix
6027         corcompare errors.
6028         * Help.cs: Changed argument names to fix corcompare errors. Code
6029         formatting.
6030         * TabControl.cs: Changed argument names to fix corcompare errors.
6031         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6032         errors.
6033         * TableLayoutSettings.cs: Changed argument names to fix corcompare
6034         errors.
6035
6036 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6037
6038         * ListBindingHelper.cs: When returning properties, only return those
6039         that are browsable. Also, don't do a linear search of the properties,
6040         but use the indexer of the PropertyDescriptorCollection class.
6041
6042 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6043
6044         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6045         Dictionary containing the related (child) currency managers. Also,
6046         when setting DataSource, add datasource to our List if it is not a list.
6047
6048 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6049
6050         * PropertyGridTextBox.cs: Fix background color of the buttons.
6051         * PropertyGridView.cs: Make the entry less jumpy.
6052
6053 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6054
6055         * PropertyGrid.cs: Fix unused variable warnings.
6056
6057 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6058
6059         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
6060         double-click. It expanded it once in the mouse down and then 
6061         again in the double-click handler.
6062
6063 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6064         
6065         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
6066         TypeConverter and UITypeEditors.
6067
6068 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6069
6070         * Control.cs: Visibility should be set synchronously, 
6071         so we must also redraw once it is and not rely on layouting or 
6072         other code to repaint.
6073         [Fixes bug #339898]
6074
6075 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
6076
6077         * DataGridViewCell.cs: Respect DataGridView.GridColor.
6078
6079 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6080
6081         * Control.cs: Invalidate when the alpha channel is less than 255,
6082         not only when control is transparent.
6083
6084 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6085
6086         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6087         Implement some painting convenience methods that threw NIEX.
6088
6089 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6090
6091         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6092         * DataGridViewLinkCell.cs: Implement.
6093
6094 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6095
6096         * GridEntry.cs: Report the conversion exception error description.
6097         [Fixes bug #375792]
6098
6099 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6100
6101         * PropertyGridView.cs: Do not scroll to item on resize.
6102         [Fixes bug #375789]
6103
6104 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6105
6106         * BindingContext.cs: When retrieving a BindingManagerBase, if the
6107         dataSource parameter is ICurrencyManagerProvider, then return
6108         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6109         instead of creating a new one.
6110
6111 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6112
6113         * BindingSource.cs: Implement support for Type instances as
6114         DataSource.
6115
6116 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6117
6118         * DataGridView.cs: Minor cleanups and call CellMouseUp.
6119         * DataGridViewCell.cs: Make some painting routines internally virtual.
6120         * DataGridViewButtonCell.cs: Implement.
6121
6122 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6123
6124         * Control.cs: We always need to invalidate our children with
6125         transparent backgrounds when we are invalidated.
6126         [Fixes bug #376081]
6127
6128 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6129
6130         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
6131         and CancelCurrentEdit on CurrencyManager respectively. Implement
6132         support for ICancelAddNew too.
6133
6134 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6135
6136         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
6137         call EndNew/CancelNew if list is ICancelAddNew.
6138
6139 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6140
6141         * DataGridView.cs: Guard against an exception while painting
6142         if there are no rows.
6143
6144 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6145
6146         * DataGridView.cs: Implement a bunch of keyboard commands.
6147
6148 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
6149
6150         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
6151         isn't set, don't call OnPaint.  [Fixes bug #375300]
6152
6153 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6154
6155         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
6156         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
6157         hookup the remaining events related to CurrencyManager, and fire
6158         OnListChanged also for the Clear () method.
6159
6160 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6161
6162         * BindingSource.cs: Use Current and Position implementations in
6163         CurrencyManager instead of using our own routines, since we need 
6164         to be in synch with it. Count should NEVER return a -1 value, and 
6165         also report ListChanged events for both simple IList data 
6166         sources (manually) as well for IBindingList ones (by hooking up an
6167         event handler for it).
6168
6169 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6170
6171         * BindingSource.cs: Make one .ctor call the another, to avoid
6172         duplicate code. Add the CurrencyManager property, and also for AddNew
6173         throw the proper exceptions and show better error messages.
6174
6175 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6176
6177         * ComboBox.cs: Only adjust selectedindex if Handle has been
6178         created.  Fixes failing test.
6179
6180 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6181
6182         * ComboBox.cs: Adjust selectedindex if we insert a new item
6183         above the current selectedindex in a sorted ComboBox.
6184         [Fixes bug #374654]
6185
6186 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6187
6188         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
6189         [Fixes bug #374712]
6190
6191 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6192
6193         * DataGridViewTextBoxCell.cs: Implement stuffs.
6194
6195 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6196
6197         * TreeView.cs: Create the scrollbars even earlier to be
6198         double dog certain they are created before they are accessed.
6199
6200 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6201
6202         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
6203
6204 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6205
6206         * ScrollBar.cs: Create an internal safe Value setter so we
6207         won't crash if we try to set a value outside the min and max.
6208         * TextBoxBase.cs: Use safe value setter to guard against a
6209         potential NRE that is being reported by Reflector.
6210
6211 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6212
6213         * TreeView.cs: Create the scrollbars earlier in the constructor
6214         to attempt to guard against an NRE in SetTop in Reflector.
6215
6216 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6217
6218         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
6219         DataGridViewRowCollection.cs: Do not scroll column and row headers,
6220         show messagebox on data format error, use column display index
6221         correctly, make sure HitTest supports new layout stuff,
6222         make sure scrollbars support new layout stuff.
6223
6224 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6225
6226         * XplatUIX11.cs : Patch by Doug Rintoul.
6227           For some IM engines, keypress events need to delay call
6228           to XPending() and XNextEvent() in the loop so that it
6229           does not mess the orders in XIM commit callback.
6230           Some KeyRelease events such as shift keys need to be
6231           processed both in the IM engine and winforms driver
6232           itself since winforms holds its own state check.
6233
6234           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
6235
6236 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6237
6238         * X11Keyboard.cs, XplatUIX11.cs :
6239           add primitive support for XIM input support (preedit-
6240           nothing and status-nothing). It requires precise event
6241           capturing (XSelectInput/"filterEvents") and different
6242           call to XFilterEvent against root window.
6243           Get composed string and send dummy WM_IME_COMPOSITION.
6244           Free XIM and XIC instances in finalizer.
6245
6246           (This first patch does not include suggested changes
6247            by Doug Rintoul. It will follow.)
6248
6249 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6250
6251         * DataGridView.cs: When binding to a property, if the property
6252         doesn't have a setter, set the column to readonly.
6253         [Fixes bug #343965]
6254
6255 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6256
6257         * ComboBox.cs: Guard against NRE if an arrow key is hit while
6258         we aren't dropped down.  Support Home/End in DropDownList mode.
6259         [Fixes bug #371990]
6260
6261 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6262
6263         * TreeNodeCollection.cs: Don't increment count until we've
6264         saved our index to return.
6265         [Fixes bug #373603]
6266
6267 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6268
6269         * Label.cs: Add padding to the label's AutoSize calculation.
6270         [Fixes bug #373792]
6271
6272 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6273
6274         * ListBindingHelper.cs: Actually implement GetListName method.
6275
6276 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6277
6278         * BindingSource.cs: Throw the propert expceptions for some methods, as
6279         well as detect the list item type for Add method if DataSource is null.
6280
6281 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6282
6283         * DataGridViewCell.cs: I don't know why I commented this out,
6284         putting it back for now.
6285
6286 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6287
6288         * DataGridViewCell.cs: Remove storage for owning column, just
6289         use column index.
6290         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
6291         * DataGridViewColumnHeaderCell.cs: If the header text has been
6292         explicitly set, return it.
6293         [Fixes bug #325979]
6294
6295 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6296
6297         * DataGridViewRowCollection.cs: Disable row sharing when
6298         using data binding.  Its a great feature, but lets work on
6299         getting DGV usable first before we worry about optimizations.
6300
6301 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6302
6303         * BindingSource.cs: When resetting our internal list, compute list
6304         item type information to be used for indirect list access. Also
6305         implement/tune some properties and methods related to the list access
6306         too.
6307         * ListBindingHelper.cs: Add a stub for GetListName method, used from
6308         BindingSource.
6309
6310 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6311
6312         * DataGridView.cs: If RowCount is increased while ColumnCount
6313         is zero, add a column.  [Fixes bug #331649]
6314
6315 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6316
6317         * DataGridViewRowCollection.cs: When adding new rows for
6318         databinding, make sure they are place before the add row.
6319         [Fixes bug #343961]
6320
6321 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6322
6323         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
6324         instead of Index order.
6325
6326 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6327
6328         * DataGridView.cs: If columns are added by increasing ColumnCount,
6329         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
6330         [Fixes bug #325588]
6331
6332 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6333
6334         * DataGridView.cs: Turn off and on the "new row" when 
6335         AllowUserToAddRows is toggled.  When the handle is created,
6336         set current cell and selected cell/row/col.
6337
6338 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6339
6340         * ComboBox.cs: When navigating the drop down by keyboard, we
6341         need to scroll the list box if our selection moves out of the
6342         currently shown items.  [Fixes bug #371990]
6343
6344 2008-03-24  Luke Page <luke.a.page@gmail.com>
6345
6346         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
6347         on the control. Also now handles unicode compatibility characters and
6348         stores the unicode compatibility length on the stack. Fixes Bugs
6349         #355198 and #366436.
6350
6351 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6352
6353         * BindingSource..cs: Take into account DataMember when re-creating the
6354         List property, and also create a specific kind of list as needed.
6355
6356 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6357
6358         * ListBindingHelper.cs: Add a new case for GetList () method - when we
6359         get an empty IEnumerable, try to detect whether the datamember is
6360         valid or not for that type, if true, return null, and throw exception
6361         otherwise.
6362
6363 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
6364
6365         * ComboBox.cs: Alt-Down should drop down the list, Esc should
6366         retract it.  [Fixes bug #371989]
6367
6368 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
6369
6370         * PropertyGrid.cs: Initialize the sorting button as pushed.
6371
6372 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
6373
6374         * PropertyGrid.cs: 
6375          - Visually select the PropertyTab.
6376          - Filter Properties by Attributes properly.
6377
6378 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6379
6380         * MenuItem.cs: Remove menu item from parent when disposed.
6381         [Fixes bug #372845]
6382
6383 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6384
6385         * ToolBar.cs: Don't reset layout_type if Dock = None.
6386
6387 2008-03-21  Andreia Gaita <avidigal@novell.com> 
6388
6389         * UserControl.cs: Select the first available control when we get focus.
6390           Fixes #372616
6391
6392 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6393
6394         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
6395         the content if we are in edit mode.  [Fixes bug #343964]
6396
6397 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6398
6399         * DataGridViewCell.cs: Fix border painting for column headers.
6400
6401 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6402
6403         * BindingSource.cs: When setting or resetting data source,
6404         use ListBindingHelper.GetList () method, since it will get the list in
6405         case datasource is IListSource.
6406
6407 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
6408
6409         * DataGridViewCell.cs: Implement lots more stuffs.
6410
6411 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6412
6413         * PropertyGridView.cs, GridEntry.cs: Implement support for 
6414         UITypeEditor.IsDropDownResizable.
6415
6416 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
6417
6418         * DataGridViewCell.cs: Remove unused variables, improve how
6419         several of the property getters work.
6420         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
6421         get its size from the parent row/col.
6422
6423 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6424
6425         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
6426         user alters manually the PropertyTabs collection via the 
6427         PropertyTabs property.
6428
6429 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6430
6431         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
6432         new tests for them to be sure to be compatible with .net.
6433
6434 2008-03-20  Andreia Gaita <avidigal@novell.com> 
6435
6436         * WebBrowserBase.cs: Fix attributes, add events
6437         * WebBrowser.cs: Fix Padding signature
6438
6439 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6440
6441         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
6442
6443 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
6444
6445         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
6446         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
6447         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
6448         passes the new suite of tests for it.
6449
6450 2008-03-18  Andreia Gaita <avidigal@novell.com> 
6451
6452         * WebBrowser.cs: Add missing attributes, missing Padding and
6453           DefaultSize properties, remove extraneous getters
6454
6455 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6456
6457         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
6458         method overloads.
6459
6460 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6461
6462         * ComboBox.cs: Move resetting the selected index to keypress
6463         instead of textchanged.  Changing the text programmatically
6464         should not trigger resetting the selected index.  Fixes test.
6465
6466 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6467
6468         * ComboBox.cs: When the user types into the textbox, reset
6469         the selected index to -1.  [Fixes bug #371672]
6470
6471 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6472
6473         * FileDialog.cs: Support Control-A for selecting everything
6474         in an OpenFileDialog.  [Fixes bug #371564]
6475
6476 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
6477
6478         * DataGridView.cs: When row/column visible/height properties
6479         change, invalidate.  Take the NIEX out of InvalidateRow/Column
6480         etc.  We don't support them yet, but we can just invalidate
6481         everything until we do support them.  (Added MonoTODO).  Set
6482         proper control styles.
6483         * DataGridViewRow.cs: Don't call PaintHeader if row headers
6484         are turned off. 
6485
6486 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6487
6488         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
6489
6490 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
6491
6492         * DataGridViewRow.cs: Only paint the white background in
6493         cell bounds, the row bounds extends past the cells if the 
6494         grid width isn't as wide as the DGV.
6495
6496 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
6497
6498         * DataGridView*: Completely revamp the drawing to match the
6499         public API.  Our grids now look better, and call all the
6500         appropriate methods and event to allow users to override
6501         the painting and do their own.
6502
6503 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6504
6505         * ListBindingHelper.cs: Implement 2.0 GetList methods.
6506
6507 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6508
6509         * DataGridView.cs: Implement BorderStyle.
6510
6511 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6512
6513         * FileDialog.cs: Apply patch from Andy Hume: Any time we
6514         are comparing attributes, make sure we only look at the
6515         one we are interested.  These calls were failing if there
6516         were more than one attribute.
6517         [Fixes bug #370385]
6518
6519 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6520
6521         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
6522
6523 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6524
6525         * PageSetupDialog.cs: Stub EnableMetric.
6526         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
6527         * PrintPreviewDialog.cs: Add ProcessDialogKey,
6528         ProcessTabKey.
6529
6530 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6531
6532         * MonthCalendar.cs: Remove unused variable.
6533
6534 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6535
6536         * DataGridView*.cs: corcompare stuffs.
6537
6538 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6539
6540         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
6541         The savings aren't worth the extra code to fix the optimization.
6542         [Fixes bug #368585]
6543
6544 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6545
6546         * ToolBar.cs: Always call base.Dock in the Dock override so that
6547         Control's layout_type gets reset correctly.
6548         [Fixes bug #368882]
6549
6550 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
6551
6552         * X11Dnd.cs: End DnD operation also for the middle mouse button.
6553
6554 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6555
6556         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
6557         at the same time we do explicit ones, because we have to give all
6558         other controls on the container a chance to handle explicit ones
6559         first.  If no one has an explicit mnemonic, then we can let the
6560         MenuStrip have a shot at implicit mnemonics.
6561         * MenuStrip.cs: Create an implicit mnemonic function.
6562         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
6563         mnemonics for MenuStrips.
6564         [Fixes bug #368493]
6565
6566 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6567
6568         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
6569         DataGridColumnStyle.cs: corcompare stuffs.
6570
6571 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6572
6573         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
6574         Details - This is needed after we added the bits to use any available
6575         column also for List and SmallIcon view. 
6576
6577 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6578
6579         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
6580         at the proper place, not only when changing SelectedIndex and changing
6581         the selection using keys/mouse, as .net does.
6582
6583 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6584
6585         * ControlBindingsCollection.cs: Implement last 2.0
6586         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
6587         in the new 2.0 Add methods.
6588
6589 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6590
6591         * ListBox.cs: When calling SelectedIndexCollection.Clear,
6592         return if no items are previously selected - this is done to avoid 
6593         firing OnSelectedIndexChanged without need to do so. Also,
6594         when creating handle ensure that the focused item is visible (as
6595         .net does).
6596
6597 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6598
6599         * ListBox.cs: Rewrote/refactored most of selection code. We require
6600         the following things in selection: a) keep selection sorted (both
6601         indices and items), b) SelectedIndices automatically detect the
6602         selection mode, c) SelectedIndex should be the first selected item
6603         index, d) Need to Focus/adjust scroll bar when selecting a new item,
6604         not only for SelectedIndex, which is specially important in Multi*
6605         selection modes. To achieve this we are moving the selection core to
6606         SelectedIndexCollection and make depend all selection modifications on
6607         it.
6608         Fixes #366438.
6609
6610 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6611
6612         * ToolStrip.cs: Enable implicit mnemonics for drop down
6613         menu strips.  [Fixes part of bug #367692]
6614
6615 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6616
6617         corcompare - fix parameter names [stragglers].
6618         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
6619         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
6620         TabControl.cs.
6621
6622 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6623
6624         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
6625         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
6626         mnemonic, let the ToolStripManager have it even if it doesn't
6627         have a matching mnemonic.
6628         [Fixes bug #367499]
6629
6630 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6631
6632         corcompare - fix warning about implicit implementation
6633         * ToolStrip.cs: Add IToolStripData interface.
6634         * IToolStripData.cs: Add.
6635
6636 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6637
6638         corcompare - fix warning about implicit implementation
6639         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
6640         * IBounds.cs: Add.
6641
6642 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6643
6644         corcompare - fix parameter names [N-Z].
6645         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
6646         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
6647         PropertyManager.cs, RichTextBox.cs,
6648         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
6649         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
6650         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
6651         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
6652         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
6653         ToolStripContentPanel.cs, ToolStripDropDown.cs,
6654         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
6655         ToolStripPanel.cs, ToolStripSeparator.cs,
6656         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
6657         UICuesEventHandler.cs, UpDownBase.cs.
6658
6659 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6660
6661         corcompare - fix parameter names [G-M].
6662         GridColumnStylesCollection.cs, GridItemCollection.cs,
6663         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
6664         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
6665         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
6666         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
6667         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
6668
6669 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6670
6671         corcompare - fix parameter names [A-F].
6672         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
6673         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
6674         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
6675         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
6676         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
6677         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
6678         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
6679
6680 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
6681
6682         * GridEntry.cs: Do not convert not only if the types match, 
6683         but also if the property type is assigneable from the value's
6684         type.
6685         [Fixes bug #366566]
6686
6687 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
6688
6689         * PropertyGridView.cs: 
6690          - Subscribe to the listbox only once and not everytime.
6691          - Update the textbox even if SetValue fails.
6692          - Close the listbox before calling TrySetValue just in case.
6693          [Fixes bug #366569]
6694
6695 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
6696
6697         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
6698
6699 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6700
6701         * ListView.cs: Implement support for custom column width based on
6702         Columns collection (we were previously using this collection only
6703         with Details view).
6704         Fixes #364484.
6705
6706 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6707
6708         * ListViewItem.cs: For Tile view, always set bounds for the first
6709         subitem (which is the main one), and also don't let Width be larger
6710         than ListView.TileSize.Width. Improve code readibility also.
6711         * ThemeWin32Classic.cs: When painting the ListViewItem instances
6712         in Tile view, _always_ use the NoWrap flag.
6713         Fixes #360798.
6714
6715 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
6716
6717         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
6718         in case.
6719         * GridEntry.cs: For MS compitability make all child properties 
6720         readonly if the parent is readonly. Ugh.
6721         [Fixes bug #365945 and #365944]
6722
6723 2008-02-29  Andreia Gaita <avidigal@novell.com> 
6724
6725         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
6726           relative to the history
6727
6728 2008-02-29  Andreia Gaita <avidigal@novell.com>
6729
6730         * HtmlElement.cs: More handlers for mouse and key events
6731
6732 2008-02-28  Andreia Gaita <avidigal@novell.com>
6733
6734         * WebBrowserBase.cs: MouseClick sig changed.
6735         * HtmlHistory.cs: Implement history navigation
6736         * HtmlElement.cs: Add event handlers, and connect them.
6737
6738 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
6739
6740         * GridEntry.cs: 
6741          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
6742            so that DisplayNameAttribute doesn't get ignored.
6743          - Check for ParenthesizeNameAttribute and parenthesize the Label.
6744          - Add support for PasswordPropertyTextAttribute
6745         * PropertyGridView.cs: Check if an entry is a password.
6746         [Fixes bugs #365589, #365586, #365588]
6747
6748 2008-02-28  Andreia Gaita <avidigal@novell.com>
6749
6750         * PropertyGridView.cs: Revert the message filtering change, as we
6751         need it to block after all. Remove block parameter, unnecessary.
6752
6753 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
6754
6755         * UserControl.cs: Better implementation of GetPreferredSize.
6756         First step to fixing bug #361441.
6757
6758 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6759
6760         * Binding.cs: Actually implement data binding support for 
6761         classes implementing IBindableComponent.
6762         * ControlBindingsCollection.cs: Likewise.
6763
6764 2008-02-26  Andreia Gaita  <avidigal@novell.com>
6765
6766         * PropertyGridView.cs: Use a message filter to check when to 
6767         close the dropdown
6768
6769 2008-02-26  Andreia Gaita  <avidigal@novell.com>
6770
6771         * Application.cs: Change the message_filters loop so a filter 
6772         can be removed while looping.
6773
6774 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
6775
6776         * GridEntry.cs: Optimization in ToggleValue so that it caches
6777         the current value.
6778         * PropertyGridView.cs: An optimization so that the property isn't 
6779         re-read twice for each StandardValue added to the drop-down menu.
6780         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
6781         license.
6782         [Fixes bug #362755]
6783
6784 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
6785
6786         * Application.cs: Apply patch from Justin Cherniak to match
6787         MS better for ProductName, ProductVersion, and CompanyName.
6788         [Fixes bug #361709]
6789
6790 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6791
6792         * Binding.cs: Actually implement 2.0 NullValue property. Also
6793         when changing the formatting related properties, only update the state
6794         if formatting_enabled is true (we don't mind otherwise).
6795
6796 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
6797
6798         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
6799         [Fixes bug #364486]
6800
6801 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
6802
6803         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
6804         of GetType on the current value as it uses reflection to 
6805         determine the type. This fixes the case where the new value is 
6806         null. 
6807
6808 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
6809
6810         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
6811         past the view.
6812
6813 2008-02-24  Luke Page  <luke.a.page@gmail.com>
6814
6815         * Line.cs, TextControl.cs: Implement offset x and y so that a
6816         document doesn't have to begin  at (0,0) on the viewpoint.
6817         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
6818         bars and switches the text alignment (and therefore is now
6819         implemented for textbox). Fixes #321383.
6820
6821 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6822
6823         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
6824         properties. Also when changing FormattingEnabled update the control
6825         property -as .Net does-.
6826
6827 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
6828
6829         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
6830         * Binding.cs: Add stubs for the overloads of the Add method in
6831         CBCollection.
6832
6833 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6834
6835         * Binding.cs: PullData () returns a false value if we got an exception.
6836         Also when validating the control and we get an error, instead of
6837         setting the value of the previous one, cancel the event (tested in 1.1
6838         and 2.0).
6839
6840 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
6841
6842         * TreeView.cs: Make selected_node and highlighted_node internal.
6843         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
6844         to null when Nodes.Clear is called.
6845         [Fixes bug #363884]
6846
6847 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6848
6849         * FontDialog.cs: Ensure that when the Font is set in code,
6850         all the gui pieces are updated accordingly.
6851         [Fixes bug #361020]
6852
6853 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6854
6855         * TextRenderer.cs: Respect proposed size for MeasureString.
6856         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
6857         autosize, use a proposed width to force wrapping for long text.
6858         [Fixes bug #360981]
6859
6860 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6861
6862         * TreeView.cs: Factor in checkboxes = false and state images in
6863         to HitTest.  [Fixes bug #363360]
6864
6865 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6866
6867         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
6868         when drawing the selected range.
6869         [Fixes bug #363648]
6870
6871 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6872
6873         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
6874         ResizeRedraw control styles.
6875         [Fixes bug #363555]
6876
6877 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6878
6879         * TreeView.cs: StateImages are basically custom checkboxes, so
6880         factor their size the same as real checkboxes when determining
6881         what got clicked.
6882         [Fixes bug #363367]
6883
6884 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6885
6886         * MessageBox.cs: Make the message box wider if the form caption
6887         is longer than the text in the form.
6888         [Fixes bug #361137]
6889
6890 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
6891
6892         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
6893
6894 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6895
6896         * TreeNode.cs: Guard against an NRE when the parent's
6897         StateImageList hasn't been set.
6898         [Fixes bug #363353]
6899
6900 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6901
6902         * SplitContainer.cs: Add SupportsTransparentBackColor and
6903         OptimizedDoubleBuffering control styles.
6904         [Fixes bug #363303]
6905
6906 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6907
6908         * Application.cs: For the app data paths and the registry key paths,
6909         ensure they are created before returning them to the user.
6910         [Fixes bug #361709]
6911
6912 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6913
6914         * Application.cs: Guard against an NRE in CompanyName and
6915         ProductName.
6916
6917 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6918
6919         * Application.cs: For CompanyName, ProductName, and ProductVersion,
6920         make sure we handle all three cases correctly: attribute is present,
6921         attribute is present but is an empty string, and attribute is not
6922         present.
6923
6924 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
6925
6926         * PropertyGridView.cs: 
6927          - Fix a NRE that caused a test failure
6928          - Another performance improvement - cache the standard values
6929          listbox.
6930
6931 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6932
6933         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
6934         code paths.
6935
6936 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
6937
6938         * PropertyGridView.cs: Fix a big performance bug.
6939
6940 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6941
6942         * SelectionRange.cs: Apply patch from Andy Hume to make
6943         constructor behavior more accurate.  [Fixes bug #362117]
6944
6945 2008-02-19  Andreia Gaita <avidigal@novell.com> 
6946
6947         * Control.cs: Added a new flag is_disposing to track if the
6948         window is currently in the process of being disposed of.
6949         This is used so that, when firing visibility changes triggered
6950         by unparenting controls during Dispose, the control doesn't
6951         get created again.      
6952
6953 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6954
6955         * ComboBox.cs: Set height to preferred height when the handle
6956         is created.  [Fixes bug #360862]
6957
6958 2008-02-18  Andreia Gaita <avidigal@novell.com>
6959
6960         * XplatUIX11.cs: Create FosterParent with border width at 0.
6961         With the previous value of 4, everytime a control got reparented
6962         from parent = null, it's location would be shifted right and 
6963         down by 4, since these coordinates would be offset by the 
6964         FosterParent's border width.
6965
6966 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
6967
6968         * Control.cs: During diposing firstly remove ourselfes from
6969         the parent and *then* destroy our handle, because removing
6970         ourselfes from the parent controls collection causes 
6971         VisibilityChange, etc events, which require a handle and end
6972         up recreating the control.
6973
6974 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
6975
6976         * GridEntry.cs: Set expanded state before notifying that the
6977         expansion has taken place.
6978         * PropertyGridView.cs:
6979          - Set the propertygridtextbox text to the selected 
6980          StandardValue before proceeding to setting it.
6981          - Scrolling bugfixes.
6982
6983 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6984
6985         * GridEntry.cs:
6986          - Fix ValueText to not return null.
6987          - Fix conversion error reporting to actually happen.
6988         * PropertyGridView.cs: Set entry only if the text has changed.
6989         [Fixes bug #362116]
6990
6991 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6992
6993         * GridEntry.cs: 
6994          - Fix handling of a null current value.
6995          - Swallow editor exceptions.
6996         [Fixes bug #362114]
6997
6998 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6999
7000         * PropertyGrid.cs: Clear current items first thing before 
7001         repopulating subitems.
7002         * GridEntry.cs: 
7003          - Handle null StandardValuesCollection.
7004          - Mark as not editable if there is no PropertyDescriptor and
7005          if the Converter cannot convert from string.
7006         [Part of fix for bugs #360666 and #358332]
7007
7008 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7009         * MaskedTextBox.cs: Now skips non editable characters after a
7010         character has been entered and we are progressing to the next
7011         position in the MaskedTextBox.
7012
7013 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7014         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7015         that it changes the selection rather than just repositioning the
7016         cursor. Fixes Bug #360873.
7017
7018 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7019         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7020         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7021         correctly. See #359330
7022
7023 2008-02-15  Andreia Gaita <avidigal@novell.com>
7024
7025         * XplatUIX11.cs: If the handle is null when posting a message, use the
7026         current thread queue to post instead. Fixes #332409
7027
7028         * SendKeys.cs: Slight optimization
7029
7030 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
7031
7032         * PropertyGrid.cs, PropertyGridView.cs:
7033         Fix multiple scrolling and sizing issues.
7034         [Fixes bug #359199]
7035
7036 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7037
7038         * PropertyGridView.cs: Ensure that drop down editors are shown
7039         in the WorkingArea of the screen.
7040         [Fixes bug #359807]
7041
7042 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7043
7044         * GridEntry.cs: Fail silently when UITypeEditor is missing.
7045         [Fixes bug #360666]
7046
7047 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7048
7049         * Binding.cs: Implement 2.0 DataSourceNullValue property.
7050
7051 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7052
7053         * PropertyGridView.cs:
7054          - Clear the controls in the drop down form after it is hidden.
7055          - Fix Width sizing of the dropdown editors to match MSFT.
7056
7057 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7058
7059         * PropertyGridView.cs: 
7060          - Fix height for drawing the grid entry
7061          text value, so that it clips multiline text properly.
7062          - Fix unfocusing to match MSFT.
7063
7064 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7065
7066         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7067         Fixes a bug where on repopulation after value changed items become
7068         expandable.
7069
7070 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7071
7072         * Binding.cs: For the 2.0 profile, look for a 
7073         'PropertyChanged' event in the target control, and add checks for
7074         DataSourceUpdateMode property to change -or not- the data source
7075         from validation/control property change.
7076
7077 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
7078
7079         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7080           not compare struct with null in 2.0).
7081
7082 2008-02-10  Luke Page <luke.a.page@gmail.com>
7083
7084         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7085         updates the provider and if not using a provider, uses the internal document
7086         class implementation of password char. Also when showing text, uses display string
7087         from the provider, instead of the actual text.
7088
7089 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7090
7091         * Binding.cs: Ooooops, forgot to take into account the data_source
7092         and binding_member_info null case (it was breaking the Binding tests).
7093
7094 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7095
7096         * Binding.cs: Implement support for data source changes exposed by
7097         'PropertyNameChanged' events, and update the control property as
7098         needed.
7099
7100 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7101
7102         * Binding.cs: Implement 2.0 WriteValue method.
7103
7104 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7105
7106         Commit patch from James Purcell for better AutoScale implementation:
7107
7108         * ScaleControl should call GetScaledBounds with the control's total size rather
7109         than client size.  GetScaledBounds should handle ignoring the borders in its
7110         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
7111         (for the most part they just call the base code now since that is fixed).
7112         * Added ScaleChildrenInternal to allow controls to disable scaling of children
7113         without having to override ScaleChildren (since none of .NET's controls do). 
7114         This is required for most controls in Mono that have scrollbars to prevent the
7115         scrollbars from being moved/resized.
7116         * Nested ContainerControls can have a different scale mode than their parent. 
7117         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7118         designer produce different results both of which look incorrect).
7119         * Default AutoScaleMode for ContainerControl should be Inherit.
7120         * Simplified workaround for ComboBox scaling issue.
7121         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
7122         1.0 style auto scaling should scale the whole control's size instead of
7123         ignoring the borders (except for Form) and the rounding is done differently to
7124         preserve control alignment.
7125         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7126         GetAutoScaleSize.
7127         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
7128         * CurrentAutoScaleDimensions should round the estimated character width instead
7129         of truncating.
7130         * ListBox's GetScaledBounds should always use the height it was set to instead
7131         of the height that was passed in.  This prevents rounding errors from
7132         accumulating quickly with IntegralHeight.
7133         [Bug #359098]
7134
7135 2008-02-08  Andreia Gaita <avidigal@novell.com>
7136
7137         * Form.cs: Add a null check (darn it). 
7138
7139 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7140
7141         * MdiClient.cs: Make sure the requesting form actually owns the
7142         control menu items before removing them.  Also, use
7143         Suspend/ResumeLayout when adding or removing items so we only
7144         layout once.
7145         [Fixes bug #359887]
7146
7147 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7148
7149         * Control.cs: Guard against an NRE in ShowFocusCues.
7150         [Fixes bug #359830]
7151
7152 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7153
7154         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
7155         property, as well as stubbing DataSourceUpdateMode.
7156
7157 2008-02-08  Andreia Gaita <avidigal@novell.com>
7158
7159         * Form.cs: When closing forms, get focus back to the active control of the
7160         active form. [Fixes #341314, corner case]
7161         
7162 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7163
7164         * MdiClient.cs: After we move the scrollbars, invalidate the NC
7165         area, so any old scrollbar artifacts are cleaned up.
7166         [Fixes bug #336305]
7167
7168 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7169
7170         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
7171         for our menus, display that control box menu instead of the 1.1
7172         menu one.
7173
7174 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7175
7176         * MdiControlStrip.cs: Add property to access the mdi form tied to
7177         each toolstripitem.
7178         * MdiClient.cs: Be smarter about removing and adding toolstripitems
7179         to the implicitly merged menu.  Every time we clicked the form, items
7180         were getting removed and the re-added, causing the form to jump around
7181         as the menu resized.
7182
7183 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7184
7185         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
7186         was being reset by the implicit menu merge for menustrips.
7187         [Fixes bug #336296]
7188
7189 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7190
7191         * Form.cs: Don't do the previous change when WindowState = Normal,
7192         or it messes up where the window is placed.  Fixes test failure.
7193
7194 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7195
7196         * Form.cs: When becoming visible, if we are an MDI child, call
7197         SetWindowState with a dummy old_state so that changes will actually
7198         be made.
7199         [Fixes the 2nd part of bug #325473]
7200
7201 2008-02-07  Andreia Gaita <avidigal@novell.com>
7202
7203         * Control.cs: Reset properties to their pre parent-change values in case
7204         the new parent == null (in which case we're basically removing the control, 
7205         and don't want any events fired due to fake property changes)
7206         [Fixes #355850]
7207
7208 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
7209
7210         * PropertyGridView.cs: 
7211          - Refactor SetValue to allow setting the value
7212         when a custom editor is used, but the entry is not editable.
7213          - Remove the custom editor control on CloseDropDown.
7214         [Fixes #359196]
7215
7216 2008-02-06  Andreia Gaita <avidigal@novell.com>
7217
7218         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
7219         reflection only on 1.1, this property is public on system.drawing on 2.0.
7220         Fixed #359247
7221
7222 2008-02-06  Andreia Gaita  <avidigal@novell.com>
7223         
7224         * WebBrowser.cs: Do a normal page refresh by default.
7225
7226 2008-02-05  Andreia Gaita  <avidigal@novell.com>
7227
7228         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
7229         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
7230         platforms. Fixes #359036
7231         
7232         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
7233         platform-specific flags.
7234
7235 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7236
7237         * Binding.cs: Add 2.0 BindableComponent property - just return control
7238         by now.
7239
7240 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
7241
7242         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
7243         Jonathan for this patch. Fixes #358442.
7244
7245 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
7246
7247         * Form.cs: If we change the active MDI child form, let the others
7248         know they need to repaint their title bar so it will appear inactive.
7249         [Fixes part 1 of bug #325473]
7250
7251 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
7252
7253          * PropertyGridView.cs: Do not trucate custom editors' width
7254          and align them to the left.
7255          [Fixes #358353 and #358349]
7256
7257 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7258
7259         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
7260         Also fix the arguments passed to CollectionChangeEventArgs in the
7261         related methods.
7262
7263 2008-02-04  Geoff Norton  <gnorton@novell.com>
7264
7265         * Hwnd.cs: The conversion to Quartz coordinates happens in
7266         System.Drawing.  Removing this translation from here.
7267
7268 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
7269
7270          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
7271          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
7272          GridItemCollection.cs:
7273          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
7274
7275 2008-02-04  Geoff Norton  <gnorton@novell.com>
7276
7277         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
7278         SYSKEYUP if any other key has been pressed in the mean time.
7279         Fixes #324404
7280
7281 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7282
7283         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
7284         when the item in current position is different than 0. Also, save the
7285         item index in the beginning of the operation, instead of getting the
7286         index of the item when the event is actually performed. Lastly clean
7287         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
7288         triggered.
7289         [Fixes #357873]
7290
7291 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7292
7293         * Form.cs: Alt-Minus for MDI children system menu should work
7294         with both the minus keys on the keyboard.
7295         [Fixes bug #336295]
7296
7297 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7298
7299         * Control.cs: Don't invalidate on region change.  The WM should
7300         take care of this automagically.  Keeps us out of an infinite
7301         paint loop if someone changes the Region in the OnPaint.
7302         [Fixes bug #358327]
7303
7304 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
7305
7306          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
7307
7308 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7309
7310         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
7311         down the MonthCalendar only on F4, not Alt+F4.
7312         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
7313         [Fixes bug #358340]
7314
7315 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7316
7317         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
7318         if its part of a DateTimePicker, else, use the back color.
7319         [Fixes bug #358339]
7320
7321 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7322
7323         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
7324         [Fixes bug #358342]
7325
7326 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7327
7328         * CurrencyManager.cs: When we get a ListChanged event from our source,
7329         always fire our own ListChanged event, as .Net does.
7330
7331 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7332
7333         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
7334         #358379.
7335
7336 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7337
7338         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
7339         property. Removed if for richtext property that was always true.
7340         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
7341
7342 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7343
7344         * TextBoxBase.cs - commited patch from James Purcell that
7345         correctly sets the FixedHeight control style when the MultiLine
7346         property is changed on a TextBox control. Fixes bug 358229.
7347
7348 2008-02-02  Luke Page  <luke.a.page@gmail.com>
7349
7350         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
7351         Fixes bug 351938 - caret is positioned correctly when drawn
7352         and when calculating textual position of caret, no longer
7353         has a NRE in certain situations.
7354         
7355 2008-02-01  Geoff Norton  <gnorton@novell.com>
7356
7357         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
7358         get that region removed from the paint event.
7359         * XplatUICarbon.cs: Remove the window mapping after disposing of 
7360         window.  Prevents a crash with handle reuse.  Optimize exposes
7361         only onto visible windows (rare; but possible).
7362
7363 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7364
7365         * UpDownBase.cs: Make sure the internal textbox calls the base's
7366         OnMouseDown and OnMouseUp so the textbox will function correctly.
7367         There were notes saying it doesn't chain up, but its an internal
7368         class, so our implementation may differ.
7369         [Fixes bug #357482]
7370
7371 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7372
7373         * ListBox.cs: Fix a logic error and don't process MouseDown
7374         for mouse buttons other than Left.
7375
7376 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7377
7378         * Control.cs: Remove HeightInternal.
7379         * ListBox.cs: Commit patch from James Purcell that correctly
7380         calculates heights for ListBoxen.
7381         [Fixes bug #357152]
7382
7383 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7384
7385         * Label.cs: Apply patch from James Purcell that corrects the 
7386         signature of the AutoSize property.
7387         [Fixes bug #357605]
7388
7389 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7390
7391         * ListBox.cs: Don't throw [Mouse]Click events for buttons
7392         other than the left mouse button.
7393
7394 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
7395
7396         * Control.cs: Remove my awesome optimization as it caused some
7397         regressions with control ordering.  :(
7398         [Fixes bug #357467]
7399
7400 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
7401
7402          * PropertyGridView.cs: Fix a NRE on double click when there is no
7403          selected object.
7404
7405 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7406
7407         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
7408
7409 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
7410
7411         * ListBox.cs: Call MouseClick and MouseDoubleClick.
7412         [Fixes bug #357146]
7413
7414 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7415
7416         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
7417         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
7418         instead of Hwnd.bmp_g.
7419
7420 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7421
7422         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
7423         Use the Hwnd one instead.
7424
7425 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7426
7427         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
7428
7429 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7430
7431         * Form.cs: corcompare for RestoreBounds.
7432
7433 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7434
7435         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
7436
7437 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7438
7439         * Form.cs: Handle Alt-Minus for MDI children forms.
7440         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
7441         Add mnemonics to the control menu.
7442         [Fixes bug #336295]
7443
7444 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7445
7446         * Binding.cs: Initial implementation bits of FormattingEnabled
7447         property and BindingComplete event (2.0). 
7448         * BindingCompleteEventArgs.cs: Internal methods for setting error text
7449         and exception.
7450
7451 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
7452
7453         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
7454         table.Location.  [Fixes bug #354672]
7455
7456 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
7457
7458         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
7459         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
7460
7461 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7462
7463         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
7464         of doing all the re-bound work, just invalidate and call SetControlText 
7465         to set the updated text of selected item to our textbox.
7466         Fixes #333750.
7467
7468 2008-01-28  Andreia Gaita <avidigal@novell.com>
7469
7470         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
7471         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
7472         missing properties and methods. Add Load, Unload, Error, GotFocus, 
7473         LostFocus, Resize, Scroll events (only load and unload are connected)
7474
7475 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
7476
7477         * AccessibleObject.cs: Modified argument names to match MS.
7478         * Button.cs: Modified argument names to match MS.
7479         * BindingContext.cs: Modified argument names to match MS.
7480         * BindingMemberInfo.cs: Modified argument names to match MS.
7481         * ButtonBase.cs: Modified argument names to match MS.
7482         * ComboBox.cs: Modified argument names to match MS.
7483         * Control.cs: Modified argument names to match MS.
7484         * CheckedListBox.cs: Modified argument names to match MS.
7485         * CommonDialog.cs: Modified argument names to match MS.
7486         * DataGrid.cs: Modified argument names to match MS.
7487         * CursorConverter.cs: Modified argument names to match MS.
7488         * ControlPaint.cs: Modified argument names to match MS.
7489         * CheckBox.cs: Modified argument names to match MS.
7490         * ControlBindingsCollection.cs: Modified argument names to match MS.
7491         * BindingSource.cs: Modified argument names to match MS.
7492         * DataFormats.cs: Modified argument names to match MS.
7493         * ContainerControl.cs: Modified argument names to match MS.
7494         * CurrencyManager.cs: Modified argument names to match MS.
7495         * Application.cs: Modified argument names to match MS.
7496         * ContextMenuStrip.cs: Modified argument names to match MS.
7497         * ContextMenu.cs: Modified argument names to match MS.
7498         * BindingManagerBase.cs: Modified argument names to match MS.
7499         * WindowsFormsSection.cs: Fixed line ending.    
7500
7501 2008-01-27  Andreia Gaita <avidigal@novell.com>
7502
7503         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
7504         detecting that the dropdown toolwindow is hidden. EndLoop outside the
7505         while.
7506
7507 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
7508
7509         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
7510         MS. Code formatting.
7511
7512 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7513
7514         * Binding.cs: Don't avoid the Format event if the control 
7515         property type is object. Also, if the value retrieved by 
7516         the data source is null _and_ the control proeprty type 
7517         is object, return Convert.DBNull (match .Net).
7518         Fixes part of #324286.
7519
7520 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7521
7522         * ListControl.cs: Since we are getting two BinginContextChanged events
7523         for the same binding context instance (when the control is added to
7524         form, and when the form is actually shown), take it into account only the
7525         first time for a given binding context instance.
7526         Fixes part of #324286.
7527
7528 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
7529
7530          * PropertryGridView.cs: Ops.
7531
7532 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
7533
7534          * PropertyGridView.cs: Close dropdown form if the owner form is
7535          moved or minimized.
7536          [Fixes bug #322446]
7537
7538 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
7539
7540          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
7541          RootGridEntry.cs, CategoryGridEntry.cs:
7542          PropertyGrid rewrite.
7543          - Rewrite all of the control logic in PropertyGrid.
7544          - Rewrite all of the ComponentModel logic in GridEntry.
7545          - Rewrite all UI work in PropertyGridView.
7546          - Many bugfixes, etc.
7547
7548 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
7549
7550         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
7551         when all contained controls are autosize or dock-fill.  Also take into
7552         account when the total percentage of column/row sizes is not 100%.
7553         [Fixes bug #354672]
7554
7555 2008-01-24  Andreia Gaita <avidigal@novell.com>
7556
7557         * HtmlDocument.cs:
7558         - Save a reference to the IDocument in the instance and
7559           use that one instead of going to WebHost.Document; the document that the 
7560           WebHost returns might not be the right one (in case of frames).
7561         - Use the hashcode returned from the IDocument interface.
7562         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
7563           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
7564           LinkColor, Url, VisitedColor, Window
7565
7566         * HtmlElement.cs: 
7567         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
7568           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
7569           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
7570           SetAttribute, Equals, equality operators.
7571         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
7572           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
7573         
7574         * HtmlElementCollection.cs: Change implementation to use a generic
7575         collection. Implemented Enumerator and CopyTo
7576
7577         * HtmlHistory.cs: Add constructor, no implementation yet.
7578
7579         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
7580         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
7581         Equals, equality operators.
7582
7583         * HtmlWindowCollection.cs: Implemented. 
7584
7585         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
7586         has been deprecated).
7587
7588         * WebBrowserBase.cs: Use Completed event to track document loading
7589         (Navigated has been deprecated)
7590
7591 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
7592
7593         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
7594         level MenuItems do not respect tabs.
7595         [Fixes bug #355196]
7596
7597 2008-01-23  Geoff Norton  <gnorton@novell.com>
7598
7599         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
7600         FormWindowState.  Finished fixing Fullscreen windows on Carbon
7601
7602 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7603
7604         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
7605         be used as grab_control. Also save status of capture before show ContextMenu
7606         and restore it after close.
7607
7608 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7609
7610         * Control.cs: Internal FindRootParent method added to return high control
7611         in parent tree.
7612
7613 2008-01-23  Geoff Norton  <gnorton@novell.com>
7614
7615         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
7616         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
7617         it work again.  Handle HITTEST events.
7618
7619 2008-01-23  Geoff Norton  <gnorton@novell.com>
7620
7621         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
7622         a crash in certain cases.  Support for fullscreen windows in certain cases.
7623
7624 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
7625
7626         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
7627         [Fixes bug #355703]
7628
7629 2008-01-23  Geoff Norton  <gnorton@novell.com>
7630         
7631         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
7632
7633 2008-01-23  Geoff Norton  <gnorton@novell.com>
7634
7635         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
7636
7637 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7638
7639         * SplitContainer.cs: Remove unused declarations.
7640         * Binding.cs: Remove unused declarations.
7641
7642 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7643
7644         * Form.cs: Remove unused declaration of 'active' in Activate method.
7645         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
7646         prevent compilation warnings.
7647         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
7648         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
7649         * Bindings.cs: Remove unused formatting_enabled declaration.
7650         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
7651         warnings.
7652         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
7653         warnings.
7654         * PropertyGridView.cs: Remove usused 'ex' declaration.
7655         * DataGridView.cs: Remove unused declarations.
7656
7657 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7658
7659         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
7660         
7661         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
7662         to Control class, it makes possible to grab menu to controls that can't 
7663         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
7664         WmMouseMove removed since it was used only to track menu events.
7665
7666         * Control.cs:
7667         - Moved all active_tracker stuff from Form.
7668         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
7669         can call this method instead of reimplement all necessary code handle for
7670         menu tracker.
7671         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
7672         and WmMouseMove).
7673         
7674         * MenuAPI.cs: 
7675         - Remove special handle to ToolStripOverflow, now we can grab menu to 
7676         controls that can't reach Form using parent tree.
7677         - Change type of grab_control from Form to Control.
7678
7679 2008-01-22  Geoff Norton  <gnorton@novell.com>
7680
7681         * TextBoxBase.cs: Split up the sizing of controls and placing of 
7682         controls.  Fixes a bug where scrollbars in Reflector could be sized
7683         wrong and have non-working thumbers.
7684
7685 2008-01-23  Geoff Norton  <gnorton@novell.com>
7686
7687         * XplatUI.cs: Refactor environment variables to default support to the
7688         Carbon driver on the Mac.
7689
7690 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7691
7692         * Label.cs: Uses new LabelPainter for drawing operations.
7693         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
7694         * Theme.cs: DrawLabel and LabelDefaultSize removed.
7695
7696 2008-01-22  Geoff Norton  <gnorton@novell.com>
7697
7698         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
7699
7700 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7701
7702         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
7703         through the normal flat button code and don't draw the checkbox glyph.
7704         * Theme.cs: Button->ButtonBase signature change.
7705         [Fixes bug #324755]
7706
7707 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
7708
7709         * LinkLabel.cs: Uses new class LinkLabelPainter.
7710
7711 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
7712
7713         * MessageBox.cs: Adjust right border space, we don't need to add 
7714         "space_border*2" two times.
7715
7716 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7717
7718         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
7719         becomes a wrapper around Padding.
7720         [Fixes a part of bug #354676]
7721
7722 2008-01-22 Geoff Norton  <gnorton@novell.com>
7723
7724         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
7725         acquired.  Also ensure the buffer is large enough to grab the header
7726         we need on linux boxes.
7727
7728 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7729
7730         * Control.cs: Implement a custom enumerator so people can delete
7731         from the Controls collection while in a foreach.
7732         [Fixes bug #355074]
7733
7734 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7735
7736          * PropertyGridView.cs: Fix focusing behavior:
7737          - Tab should focus the grid text box.
7738          - Clicking on the labels shouldn't focus the grid text box.
7739
7740 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7741
7742          * PropertyGridView.cs: IsValueTypeGridItem should return true 
7743          for Arrays as well.
7744
7745 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7746
7747          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
7748           - Renamed GridEntry.SelectedObjects to TargetObjects to better
7749           reflect the property name role.
7750           - PropertyGrid.GetTarget is not required as the target is known
7751           (TargetObjects).
7752           - Setting values will handle value types as a special case now and
7753           populate them up in the chain.
7754           [Fixes #354990]
7755
7756 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
7757
7758         * Hwnd.cs: Create a public property for the Graphics we keep around.
7759
7760 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
7761
7762          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
7763          when the current object selection changes. 
7764          Fixes failing test SelectedObject_Null2.B5.
7765
7766 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
7767
7768          * PropertyGrid.cs: Process Browsable properties with 
7769          DesignerSerializationVisibilityAttribute.Content as being expandable.
7770          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
7771          will not be expandable. We should be nested components-friendly now.
7772
7773 2008-01-21  Andreia Gaita <avidigal@novell.com>
7774
7775         * WebBrowserBase.cs: Check if control was loaded properly, 
7776         don't bind if it wasn't.
7777
7778         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
7779         GetElementFromPoint, equality operators, OpenNew, Write.
7780         Remove extra set_Body
7781
7782 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
7783
7784         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
7785         that makes our AutoScale* stuff more tolerant to different orders
7786         of being set.  [Fixes bug #354669]
7787
7788 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
7789
7790          * PropertyGridView.cs, PropertyGridTextBox.cs: 
7791          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
7792          [Fixes #339005 and #348209]
7793
7794 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
7795
7796          * PropertyGridView.cs: Hide the grid text box before adjusting it
7797          for the newly selected GridItem.
7798          [Fixes #338999]
7799
7800 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
7801
7802         * Form.cs: Give MDI children the opportunity to cancel the parent form
7803         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
7804         properly for both the parent and child.
7805         * Application.cs: Signature of internal method changed, pass the previous
7806         default of false.
7807         [Fixes bug #354286]
7808
7809 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
7810
7811         * PropertyGridView.cs: Set the property value only if it has changed.
7812         [Fixes bug #338997]
7813
7814 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
7815
7816         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
7817         If the mouse hasn't actually moved, ignore these messages so the currently
7818         highlighted menuitem isn't reset to the one under the mouse.
7819         [Fixes bug #333668]
7820
7821 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
7822
7823         * PropertyGridView.cs: When the property changes Invalidate the GridItem
7824         in order for the properties with UITypeEditor.GetPaintValueSupported == true
7825         to reflect the change visually.
7826         [Fixes bug #338998]
7827
7828 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
7829
7830         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
7831         to 2.0 button drawing.
7832         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
7833         the button text is tall enough for one line.  LineLimit says it will
7834         always draw at least one line, but it is a lie.
7835         [Fixes bug #324941]
7836
7837 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
7838
7839         * XplatUIStructs.cs, X11Keyboard.cs :
7840           added some more VK_* keys to be handled.
7841
7842 2008-01-16  Andreia Gaita <avidigal@novell.com>
7843
7844         * Control.cs: Check if there is a container before setting or getting
7845         the validation flag.
7846
7847 2008-01-16  Andreia Gaita <avidigal@novell.com>
7848
7849         * ContainerControl.cs: Add flag to track if a control cancels validation, 
7850         so we don't fire click events.
7851
7852         * Control.cs: 
7853         - (HandleClick) Check if validation was cancelled before  firing the click
7854         events (doubleclicks are fired, but not clicks)
7855         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
7856         ContainerControl.set_ActiveControl, but in the case of non-selectable
7857         controls, like a Label, activecontrol is not set. 
7858
7859         * ButtonBase.cs: Only fire clicks if validation passes.
7860         
7861         Fixes #353310
7862
7863 2008-01-16  Geoff Norton  <gnorton@novell.com>
7864
7865         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
7866         trunk
7867
7868 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
7869
7870         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
7871         SelectedPath, just display the default dialog instead of crashing.
7872         [Fixes bug #348989]
7873
7874 2008-01-16  Geoff Norton  <gnorton@novell.com>
7875
7876         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
7877         AddExpose instead of trusting apples compositing manager which doesn't
7878         work for our use case.  Remove some dead code causing warnings and 
7879         redecorate some other code to prevent warnings.
7880
7881 2008-01-16  Geoff Norton  <gnorton@novell.com>
7882
7883         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
7884         carbon signals us to redraw.  Fixes another portion of the flickering bug
7885
7886 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7887
7888         * Form.cs: Prevent the MdiParent property to be set when value is the same
7889         as value already set. Fixes bug #328019.
7890
7891 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7892
7893         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
7894         it prevents NRE when closing mdi child windows. Fixes bug #325211.
7895
7896 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7897
7898         * InternalWindowManager.cs: Invalidade close button after mouse up when 
7899         mdi form is prevented to close.
7900
7901 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7902
7903         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
7904         thanks to Andy Hume. Fixes bug #325433.
7905
7906 2008-01-16  Andreia Gaita <avidigal@novell.com>
7907
7908         * LinkLabel.cs: Reset focused_index when resellecting the control.
7909         Fixes #323190
7910
7911 2008-01-15  Geoff Norton  <gnorton@novell.com>
7912
7913         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
7914         messages.
7915
7916 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
7917
7918         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
7919         of truncate.
7920
7921 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
7922
7923         * ContainerControl.cs: Setting AutoScaleMode to anything should set
7924         Form.AutoScale to false.
7925         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
7926         AutoScaleBaseSize should be changed on Font change unless it has been
7927         explicitly set.
7928         [Fixes bug #353827]
7929
7930 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
7931
7932         * MenuAPI.cs: On instance of MenuTracker check if source control is
7933         ToolStripOverflow and use properly method to find form.
7934         [Fixes bug #338511]
7935
7936 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
7937
7938         [Fixes bug #323241 Transparent toolbar support]
7939
7940         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
7941         is flat.
7942
7943         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
7944         defined in control style to mimic win32 behavior.
7945
7946         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
7947         it will be transparent.
7948
7949 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
7950
7951         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
7952         CreateParams for ToolBar controls.
7953
7954 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7955
7956         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
7957         FixedToolWindow, SizeableToolWindow, or None for border styles have
7958         different minimum sizes than regular forms.  Implemented to fix
7959         regression in PDN with toolbox being too wide.
7960
7961 2008-01-14  Andreia Gaita <avidigal@novell.com>
7962
7963         * HtmlElementCollection.cs: Implemented
7964
7965         * HtmlElement.cs: Implemented:
7966           - All
7967           - InnerHtml
7968           - InnerText
7969           - Id
7970           - Name
7971           - FirstChild
7972
7973         * HtmlDocument.cs: Implemented GetElementsByTagName.
7974
7975 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7976
7977         * Screen.cs: Stub BitsPerPixel to always return 32.
7978
7979 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7980
7981         * Form.cs: Implement RestoreBounds.
7982
7983 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7984
7985         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
7986         Sebastien and his fabulous magical problem-finding machine:
7987         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
7988         respect the value set.
7989
7990 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
7991
7992         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
7993         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
7994
7995 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7996
7997         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
7998         messages (to match .Net), we need to remove the capture ourselves.
7999
8000 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
8001
8002         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8003         will process the message and close our window.
8004         [Fixes bug #324328]
8005
8006 2008-01-10  Geoff Norton  <gnorton@novell.com>
8007
8008         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
8009         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
8010         window manager.
8011
8012 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8013
8014         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
8015         failing test.
8016
8017 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8018
8019         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
8020         Linux doesn't care, having a minimum matches MS and keeps the window
8021         from becoming too small to use window decorations.
8022         [Fixes bug #338996]
8023
8024 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8025
8026         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8027         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
8028         control.  [Fixes bug #325419]
8029
8030 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8031
8032         * ComboBox.cs: Guard against an NRE if the user open a new form from a
8033         SelectedIndexChanged event.  This closes the combobox dropdown, and we
8034         were trying to dispose it.  [Fixes bug #352830]
8035
8036 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8037
8038         * Control.cs, Form.cs: Implement the necessary semantics for
8039         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
8040         to determine if a focus rectangle should be drawn.
8041         * PropertyGrid.cs: Fix property visibility to match override.
8042         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8043
8044 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8045
8046         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8047         [Fixes bug #323552]
8048
8049 2008-01-09  Geoff Norton  <gnorton@novell.com>
8050         
8051         * XplatUICarbon.cs: Scroll windows in the correct direction.
8052
8053 2008-01-09  Geoff Norton  <gnorton@novell.com>
8054
8055         * XplatUICarbon.cs: Track all created utility windows so we can hide them
8056         when the app is deactivated or spaces is enabled.
8057
8058 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8059
8060         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8061         extra separation pixel for the label rect origin if SmallImageList is
8062         null, and thus we don't need that separation between icon and label
8063         rects.
8064         Patch by Ernesto Carrea.
8065         Fixes # 340195.
8066
8067 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
8068
8069         * StatusStrip.cs: Invalidate after completing a layout.  The base
8070         OnLayout does this, but we don't call the base.
8071         * ToolStripItem.cs: Revert the previous change to invalidate after
8072         the item moves.
8073         [Fixes bug #351341 better.]
8074
8075 2008-01-07  Geoff Norton  <gnorton@novell.com>
8076
8077         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
8078         not a notification to exit the application.  Listen for WM_QUIT
8079         instead.
8080
8081 2008-01-07  Andreia Gaita <avidigal@novell.com>
8082
8083         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8084
8085 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
8086
8087         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8088         so it can repaint at the correct location.
8089         [Fixes bug #351341]
8090
8091 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8092
8093         * ListControl.cs: SelectedValue should return a null value if
8094         SelectedIndex is -1. Also, when setting it, it should throw an
8095         ArgumentNullException if the value is null, as well as taking
8096         into account the String.Empty value, instead of ignoring it (we have
8097         tests for that now).
8098         Fixes part of #324286.
8099
8100 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
8101
8102         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8103         SelectionStart is updated after pressing enter.  Fixes bug #351918.
8104
8105 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8106
8107         * TextControl.cs: Revert a piece r92316 that prevented the fix
8108         from working when there were multiple tags in the text box.
8109         Fixes bug #351881.
8110
8111 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8112
8113         * TextControl.cs: Apply patch from Luke Page that prevents an
8114         NRE when determining the beginning of a paragraph.
8115         Fixes bug #351886.
8116
8117 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8118
8119         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8120         caret gets moved with clicking away from a selected block of
8121         text.  Fixes bug #351885.
8122
8123 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8124
8125         * TextControl.cs: Apply patch from Luke Page that takes line
8126         alignment into account for mouse selection, so that center and
8127         right aligned text can be selected.
8128         Fixes bug #351881.
8129
8130 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8131
8132         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
8133         issues after loading an RTF file by using the correct line feeds.
8134         Fixes bug #351841.
8135
8136 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8137
8138         * TextControl.cs: When deleting multiple line selections, we need
8139         to invalidate every line beginning at the first line of the selection.
8140         Patch from Luke Page fixes bug #351791.
8141
8142 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8143
8144         * ListControl.cs: When getting a CurrencyManager.PositionChanged
8145         event, don't set SelectedIndex if the number of items is 1. This is
8146         because, for the first item, PositionChanged is fired _before_
8147         ItemChanged (the place where we actually populate the items), and
8148         leave us in a temporary invalid state (since items collection is
8149         empty).
8150         Fixes #349655.
8151
8152 2008-01-04  Geoff Norton  <gnorton@novell.com>
8153
8154         * XplatUICarbon.cs:  Create native toolwindows instead of
8155         the managed drawing ones.
8156
8157 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8158
8159         * LineTag.cs: If the line doesn't have any characters, return
8160         0 for GetCharIndex.  Fixes an AOORE exception after certain
8161         caret movements.  Fixes bug #351683.  Patch by Luke Page.
8162
8163 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8164
8165         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
8166         is hit when there is selected text, only the selected text gets
8167         deleted, not the character in front of the selection as well.
8168         Fixes bug #351578.
8169
8170 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8171
8172         * ComboBox.cs: When the values are displayed, calculate the
8173         ComboListBox scrollbar's LargeChange based on the visible area's
8174         height and  the actuall ItemHeight, instead of calculating it
8175         based on MaxDropItems value, since it's not used by our _current_ 
8176         2.0 profile.
8177         Fixes #332366.
8178
8179 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8180
8181         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8182         Patch from Luke Page that fixes issues with font colors and styles
8183         not showing up in a readonly RichTextBox.  Fixes bug #324354.
8184
8185 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8186
8187         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
8188         from Luke Page.  This one fixes bug #349926.
8189
8190 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8191
8192         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
8193         an item in the IBindingList source changes with
8194         ListChangedType.ItemAdded. Ignore for now firing the event for other
8195         changes, since we want to have tests for those cases as well.
8196
8197 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8198
8199         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
8200         created.
8201
8202 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8203
8204         * TextBoxTextRenderer.cs: Implement a cache for measuring each
8205         character.  This is effective because the typical usage of a
8206         TextBox is with a limited amount of fonts and characters, and
8207         the current implementation of TextBox measures everything one
8208         character at a time.  Another second or two speedup for bug #347238.
8209
8210 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8211
8212         * Control.cs: Rewrite the Font getter to only query the parent's
8213         Font property once instead of twice.  Since this operation is
8214         recursive, the queries were growing exponentially as the control
8215         tree got deeper.  Another second or two speedup for bug #347238.
8216
8217 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8218
8219         * Control.cs: Avoid setting a parent (and more importantly, updating
8220         the zorder of all its children) if the parent is already correct in
8221         WmShowWindow.  Decreases the startup time of the test case on bug
8222         #347238 from 35 seconds to 11 seconds.
8223
8224 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8225
8226         * X11Dnd.cs: When the dnd operation has started and we are 
8227         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
8228         This is done to match .Net, which doesn't send those messages after
8229         dnd operation was completed/cancelled.
8230         Fixes #349922.
8231
8232 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8233
8234         * ToolStrip.cs: Previous change should be != null, not == null.
8235         Thanks Gert!
8236
8237 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8238
8239         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
8240         user may have moved the mouse off the current item during the event.
8241
8242 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8243
8244         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
8245         calling GetItemAt for every MouseMove event by also taking into
8246         account whether any mouse button is pressed (probably dragging); 
8247         if so, we can call GetItemAt, and if not, try to not call it 
8248         (GetItemAt can be quite expensive when used with a large number of items).
8249
8250 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8251
8252         * ListView.cs: Implement -finally- support for dnd, by calling
8253         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
8254         authors list ;-).
8255         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
8256         simple calculation of distances for all the items in the owner
8257         listview.
8258
8259 2007-12-21  Geoff Norton  <gnorton@novell.com>
8260
8261         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
8262         for windows that are originally created as invisible.  Fixes missing
8263         main window in paint-mono.
8264
8265 2007-12-21  Geoff Norton  <gnorton@novell.com>
8266
8267         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
8268         subclass handler for com.novell.mwfview subclassing HIView.  Implement
8269         Pasteboard and Dnd methods.
8270
8271 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8272
8273         * ListBox.cs: When we got focus, give focus to first item if there
8274         wasn't any pervious focused item. Also update navigation to depend on
8275         SelectedIndex rather than FocusedItem, just as .Net does.
8276         Fixes #349174.
8277
8278 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8279
8280         * ListBox.cs: Both FindString and FindStringExact methods must do an
8281         case insensitive search, should allow the last valid index to be
8282         passed in the overload taking an initial index, and should also
8283         continue searching from the top back to the specified index when it
8284         reaches the bottom.
8285
8286 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8287
8288         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
8289         redraw issue, and allows RichTextBox to draw colored text even while
8290         disabled or readonly.
8291
8292 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8293
8294         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
8295         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
8296         and doesn't grey text in a disabled RichTextBox.
8297
8298 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8299
8300         * RichTextBox.cs: Apply patch from Luke Page that adds better support
8301         for many RTF commands: quad alignment, separate formatting for blocks
8302         inside groups, and ParDef support.  Makes the test case from bug #324589
8303         look much better.
8304
8305 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8306
8307         * LineTag.cs: Fix an error in the new Draw method that caused
8308         a crash when rendering the document on bug #324589.
8309
8310 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8311
8312         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
8313         TextControl.cs: Apply patch from Luke Page that adds support
8314         for URL links in RichTextBox.
8315         [Fixes enhancement #342516]
8316
8317 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
8318
8319         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
8320         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
8321
8322 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8323
8324         * ListBox.cs: When a key gets pressed, try to find a string
8325         if the key is a character or a digit.
8326         Fixes #343971.
8327
8328 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8329
8330         * TableLayoutPanel.cs: Remove some unused variables.
8331
8332 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8333
8334         * DateTimePicker.cs: Commit patch from Luke Page that ensures
8335         we don't end up at an invalid date when we click the up/down
8336         spinner to change the month or year.  Fixes bug #348682.
8337
8338 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8339
8340         * Application.cs: Calling Exit in 2.0 should chain to the
8341         Exit (CancelEventArgs) version so it can be cancelled.
8342         * Form.cs: Create a flag to allow raising the Closing
8343         events to be skipped.  We raise them once in Application.Exit
8344         and don't want to raise them again when the Form is actually
8345         closed.  [Fixes bug #349073]
8346
8347 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
8348
8349         * ToolStripDropDown.cs: Guard against an NRE when there
8350         hasn't been a mainform set in the application context.
8351         [Fixes bug #349108]
8352
8353 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8354
8355         * ListBox.cs: When SetBoundsCore gets called, besides
8356         calling UpdateScrollBars, update the value of
8357         last_visible_index, since we could need to show more items
8358         than before, and we need to let the paint routines know that.
8359         Fixes #344445.
8360
8361 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8362
8363         * ListView.cs: Add DesignerSerializationVisibility attribute to
8364         InsertionMark property.
8365         * ListViewItem.cs: Add same attribute to Position property.
8366
8367 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8368
8369         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
8370         is 2.0 only.
8371
8372 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
8373
8374         * ThemeWin32Classic.cs: Don't draw the background on a
8375         flat button if there is a background image.
8376         [Fixes bug #348649]
8377
8378 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8379
8380         * ListBox.cs: If we remove the item currently selected,
8381         remove it not only from SelectedItems, but also
8382         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
8383         the items count decreased and focused_item has bigger value than that.
8384
8385 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
8386
8387         * Control.cs: Perform our layout after we resize ourselves
8388         if we had to adjust our AutoSize.  Missed commit for bug
8389         #346246.
8390
8391 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
8392
8393         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
8394         we can provide an implementation of AutoSize.
8395         [Fixes bug #346246]
8396
8397 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8398
8399         * ListBox.cs: Add the internal overload Sort (bool paint),
8400         to indicate whether we actually need a paint or we will
8401         call Refresh ourselves. This way we don't request a paint
8402         _before_ having an updated and valid layout.
8403         Fixes #347233.
8404
8405 2007-12-12  Andreia Gaita <avidigal@novell.com>
8406
8407         * XPlatUIX11.cs: Send paint messages when updating a systray icon
8408         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
8409         properly invalidated. 
8410         Fixes #324237
8411
8412 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8413
8414         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
8415         don't simply assign it to our internal group field, but instead 
8416         use our Group property, which should do all the neccessary work
8417         required to support groups. Fixes an issue reported to me (mail) by a 
8418         guy using this new feature.
8419
8420 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
8421
8422         * Control.cs: Use Scale instead of ScaleControl to ensure the
8423         whole hierarchy gets scaled.
8424         [Fixes bug #347282]
8425
8426 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
8427
8428         * DateTimePicker.cs: Don't set the internal MonthCalendar's
8429         Parent property.  Doing this causes the control to be hosted by
8430         the Form instead of being a popup window.
8431         [Fixes bug #347665]
8432
8433 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
8434
8435         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
8436         at an index higher than Count, just use Add instead of Insert.
8437         [Fixes bug #347669]
8438
8439 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
8440
8441         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
8442         DrawPictureBox, this is handled by Control.PaintBackground.
8443         [Fixes bug #347276]
8444
8445 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
8446
8447         * MenuAPI.cs: When process menu keys return true by default only if menu is
8448         active. Fixes bug #342892.
8449
8450 2007-12-09  Andreia Gaita <avidigal@novell.com>
8451
8452         * Control.cs: check if windows are actually mapped before
8453         trying to zorder. Fixes #342509, #346955
8454
8455 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8456
8457         * ListView.cs:
8458         * ListViewInsertionMark.cs:
8459         * ThemeWin32Classic.cs: Implement the drawing side of the
8460         new 2.0 ListView.InsertionMark property.
8461
8462 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
8463
8464         * CurrencyManager.cs: Silence some debug spew.
8465
8466 2007-12-07  Geoff Norton  <gnorton@novell.com>
8467         
8468         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
8469         masks for our children as well as siblings to avoid having to query
8470         Quartz for this information.
8471         * XplatUICarbon.cs: Implement a delegate based system to pass
8472         information to System.Drawing.  Implement Async methods.  Remove
8473         the hack for the resize thumb and imlpement a transparent Grow Box.
8474         Rework the messaging system to proplery create window's and messages,
8475         fixes TabControl.
8476
8477 2007-12-06  Andreia Gaita <avidigal@novell.com>
8478
8479         * X11Keyboard.cs: Use Xutf8LookupString to support international 
8480         characters under alternate codepages. Patch from #340878
8481
8482 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8483
8484         * ListView.cs: When doing layout computations, set position in the
8485         ListView instances (we cache the position just as .Net does).
8486         * ListViewItem.cs: New internal setter method for Position. Also set
8487         position field as also available in 1.1, since we are going to use it
8488         now in the common case.
8489
8490 2007-12-06  Andreia Gaita <avidigal@novell.com>
8491
8492         * Control.cs: When removing controls, get the actual container
8493         to notify about active control changes. Fixes 341314.
8494
8495 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8496
8497         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
8498
8499 2007-12-05  Andreia Gaita <avidigal@novell.com>
8500
8501         * Control.cs: When updating the zorder, ignore windows that are not
8502         mapped. Fixes #342509
8503
8504 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8505
8506         * ListViewItem.cs: Actually implement serialization on this class.
8507
8508 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
8509
8510         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
8511         LinkCollection. Spaces to tabs, and removed extra tabs.
8512
8513 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8514
8515         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
8516           tests to fail (hopefully).
8517
8518 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8519
8520         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
8521         the image margin so custom renderers can correctly place it.
8522
8523 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8524
8525         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
8526         so custom renderers can correctly place it.
8527
8528 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8529
8530         * Application.cs: Let WM_CHAR messages flow through to controls
8531         hosted in Strips.  [Fixes bug #343972]
8532
8533 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
8534
8535         * ToolStripManager.cs: Guard against an NRE I ran into.
8536
8537 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
8538
8539         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
8540         a Link is manually added to the Links collection, we need to set
8541         its owner, so it can invalidate properly.
8542         [Fixes bug #344012]
8543
8544 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8545
8546         * ListView.cs: When changing ListViewItem.Position (which calls
8547         ListView.ChangeItemLocation), invalidate not only the area
8548         corresponding to the main item, but also to the area occupied
8549         by the items being moved.
8550
8551 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8552
8553         * ListView.cs: When changing the position of a given item,
8554         don't use item bounds, but item areas (which includes the item spacing
8555         between them). Also, use first/last position if the requested
8556         position is outside bounds (as .Net does). Invalidate the previous and
8557         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
8558         in a specific position, instead of directly accessing Items collection
8559         (this is done to get the right item - remember an Item can have a
8560         different position in the grid than in the Items collection).
8561
8562 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8563
8564         * MessageBox.cs: Calculate text area instead of just top left, this rect 
8565         area will be used in DrawString. Fixes bug #343364.
8566
8567 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8568
8569         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
8570         screen width. Partially fixes bug #343364.
8571
8572 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8573
8574         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
8575         code inside recalculate, it makes code more simple.
8576
8577 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
8578
8579         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
8580         between update or add icon. Fixes bug #324344.
8581
8582 2007-11-21  Andreia Gaita <avidigal@novell.com>
8583
8584         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
8585         window manager, since that stretches the drawing area to include
8586         the window decorations, and they get hidden. Reverts r84444 and fixes
8587         #335849 and #342790 (mdi and pdn3 regression)
8588
8589 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8590
8591         * ListView.cs: When setting focused item, try to give focus to the
8592         previous one _only_ if the previous one remains valid. 
8593         Fixes #342504.
8594
8595 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
8596
8597         * Application.cs: Revert r89650, as it broke a common case to fix
8598         an obscure case.  Fixes bug #342606.
8599
8600 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
8601
8602         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
8603
8604 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
8605
8606         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
8607         alignment. [Fixes #324228]
8608
8609 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
8610
8611         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
8612         [Fixes bug #342123]
8613
8614 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
8615
8616         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
8617         it prevent problems when empty captions. [Fixes #342141]
8618
8619 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
8620
8621         * Label.cs: Use Size instead of None.  Fixes bug #342077.
8622
8623 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8624
8625         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
8626
8627 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
8628
8629         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
8630         but there isn't a MdiContainer.
8631         [Fixes bug #342358]
8632
8633 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
8634
8635         * TextControl.cs: Don't recalculate document if the recalc_start and
8636         recalc_end hasn't changed.
8637         [Fixes bug #342505]
8638
8639 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
8640
8641         * DataGridViewTextBoxCell.cs: Removed CWL.
8642
8643 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8644
8645         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
8646
8647 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
8648
8649         * TextControl.cs: Missed some code for bug 341534 to trigger a
8650         recalculation when the font changes.
8651
8652 2007-11-16  Andreia Gaita <avidigal@novell.com>
8653
8654         * Control.cs: When updating the zorder, check if the child to update is
8655         the same control that is set to always be on top (i.e., scrollbars), and 
8656         just put it on top directly. Fixes BadMatch error on pdn3
8657
8658 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8659
8660         * ListView.cs: Throw the needed exceptions for FindNearestItem.
8661
8662 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
8663
8664         * Control.cs: Don't perform a new layout when a label changes its text,
8665         cause label handles its own autosizing.
8666         [Fixes bug #342077]
8667
8668 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8669
8670         * ListView.cs: Implement 2.0 FindNearestItem methods.
8671
8672 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
8673
8674         * ToolStripPanel.cs: Make Join at least add the control to the panel,
8675         even if the rest of what Join does isn't supported.  Add some more
8676         support for vertical toolbars.
8677         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
8678         [Fixes the application breaking parts of bug #341998]
8679
8680 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
8681
8682         * ToolStripItem.cs: When determining if we have a check/image margin,
8683         we need to look at ShowCheckMargin as well as ShowImageMargin.
8684
8685 2007-11-15  Geoff Norton  <gnorton@novell.com>
8686
8687         * XplatUIOSX.cs: Rename to...
8688         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
8689         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
8690
8691 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
8692
8693         * KeysConverter.cs: The default values should be an array of Keys, not
8694         strings.  Also, the array has more values for 2.0.
8695         [Fixes bug #341851]
8696
8697 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8698
8699         * Application.cs: Change ExecutablePath to use 
8700         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
8701         [Fixes bug #323552]
8702
8703 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8704
8705         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
8706         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
8707         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
8708         be ignored.  Create a new GetLineEnding that can specify which types of
8709         line endings to look for.  On Insert, only create new lines for \n and \r\n.
8710         [Fixes bug #324274]
8711
8712 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8713
8714         * TextBoxBase.cs: As we loop through each line changing the font, tell
8715         the document that the line needs to be recalculated.  Fixes bug #341534.
8716
8717 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
8718         [Another round of refactoring]
8719         * Line.cs: Add DeleteCharacters.
8720         * LineTag.cs: Add Delete.
8721         * TextBoxBase.cs: Update to use new methods.
8722         * TextControl.cs: Refactor the Delete* methods.
8723
8724 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
8725
8726         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
8727         the patch. [Fixes #324856]
8728
8729 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8730
8731         * ListView.cs:
8732         * ListViewItem.cs: Add an initial implementation of
8733         2.0 ListViewItem.Position getter.
8734
8735 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8736
8737         * ListView.cs: Add a reordered_items_indices array, to allow us
8738         to have a different sorting than that of Items (the sorting in Items
8739         could not match the actual sorting in screen). This is needed to
8740         implement a pair of 2.0 features.
8741         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
8742         actual position in the ListView grid, since it could have a position
8743         different than its Index (position in ListViewItemCollection). 
8744
8745 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
8746
8747         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
8748         not draw partial lines.
8749         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
8750         LineLimit flag from the base is preserved.
8751         Fixes the windows part of bug #338965.
8752
8753 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
8754
8755         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
8756         so that it can be canceled in KeyPress.
8757         Fixes bug #340078.
8758
8759 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8760
8761         * ListView.cs: In ItemControl, reset mouse-handling related
8762         fields even if we dont' have items (we still should reset them when
8763         we had items but then called Items.Clear). Partially based in a patch
8764         by George Giolfan.
8765         Fixes #338399.
8766
8767 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
8768
8769         * Application.cs: In ProductVersion first try AssemblyFileVersion
8770         before falling back to assembly version. Fixes bug #339787.
8771
8772 2007-11-08  Andreia Gaita <avidigal@novell.com>
8773
8774         * HtmlElement.cs: Implement InnerText setter.
8775         * WebBrowserBase.cs: Implement Navigated event support.
8776         Add flag to track when the browser "document" is ready to be retrieved.
8777         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
8778         Make sure browser document is ready before retrieving it.
8779         Clean up cached objects (document) when moving to a new page through
8780         any of the navigation methods.
8781         Use the new Mono.WebBrowser.INavigation interface to control navigation.
8782         Implement OnNavigated event.
8783
8784 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
8785
8786         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
8787         DrawLinkLabel, this is handled by OnPaintBackground.
8788         Fixes bug #339565, part II.
8789
8790 2007-11-07  Andreia Gaita <avidigal@novell.com>
8791
8792         * Control.cs: Revert r88915. Selecting text on a textbox depends on
8793         getting a Select call on click, so this call needs to be here for now.
8794         Unfixes #325809
8795
8796 2007-11-07  Geoff Norton  <gnorton@novell.com>
8797
8798         * OSXStructs.cs: Add the kEventClassApplication constants.
8799         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
8800         application is deactivated otherwise Menu overlays linger on top of
8801         other application windows.
8802
8803 2007-11-07  Geoff Norton  <gnorton@novell.com>
8804
8805         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
8806         dont support cursors yet anyways.  This allows Reflector to run.
8807
8808 2007-11-07  Geoff Norton  <gnorton@novell.com>
8809
8810         * XplatUIOSX.cs: Implement DragSize.
8811
8812 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8813
8814         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
8815         ItemControl, request the focus, as .Net does. This is needed after 
8816         Control does not request focus anymore when it receives a
8817         WM_LBUTTONDOWN.
8818
8819 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
8820
8821         * Label.cs: Make DrawImage internal so it can be called from Theme code.
8822         Remove the DrawImage call from OnPaint.
8823         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
8824         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
8825         but before we draw the text for DrawLabel and DrawLinkLabel.
8826         Fixes bug #339565.
8827
8828 2007-11-05  Andreia Gaita <avidigal@novell.com>
8829
8830         * Control.cs: Remove select call on click. Fixes #325809
8831
8832 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8833
8834         * ListViewItem.cs: Add 2.0 Position property getter.
8835
8836 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8837
8838         * ListView.cs: Add 2.0 BackgroundImageTiled property.
8839         Also, to make it work properly, change item's BackColor and
8840         BackgroundImageLayout as needed.
8841         * ThemeWin32Classic.cs: Don't fill any background rectangle 
8842         in ListView.ItemControl when drawing items; just let the Control
8843         base implementation fill it.
8844
8845 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8846
8847         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
8848         as well as adding a custom 'dummy' Converter, as .net does.
8849
8850 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8851
8852         * PropertyGridView.cs: When clicking drop-down button,
8853         select an index in the listbox only if our standard values collection 
8854         has one or more items.
8855
8856 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8857
8858         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
8859         property.
8860
8861 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8862
8863         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
8864         the value is not changed. This ensure a pushed button remains in that
8865         state when clicked again. When switching the value of PropertySort
8866         between Categorized and CategorizedAlphabetical, do not update the
8867         grid items and do not fire a PropertyChangedEvent. When clicking the
8868         sorting buttons, do not modify the PropertySort value when switching
8869         between Categorized and CategorizedAlphabetical but only update the
8870         button state.
8871
8872 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8873
8874         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
8875         formatting.
8876         * PropertyGrid.cs: Also put Categorized button in pushed state when
8877         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
8878         for help description label.
8879
8880 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8881
8882         * ListView.cs: When calculating the biggest item for a given column,
8883         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
8884         the item's width.
8885
8886 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
8887
8888         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
8889         value for PropertySort on 1.0 profile. PropertySortChanged event
8890         should only be fired on 2.0 profile. Fixed NullReferenceException
8891         in UpdateSortLayout when PropertyGrid contains no items.
8892
8893 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
8894
8895         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
8896         [Fixes bug #338554]
8897
8898 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8899
8900         * ListViewItem.cs: Implement 2.0 IndentCount property.
8901
8902 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8903
8904         * X11Dnd.cs: When sending status in a dnd operation, compare current
8905         effect with the 'allowed' field instead of 'drag_data.Allowed', since
8906         the later is only created when a Winforms application is both the
8907         source and the target, but not when we are the target only.
8908         Fixes part of #324251.
8909
8910 2007-11-01  Geoff Norton  <gnorton@novell.com>
8911
8912         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
8913         order of Z-Order.
8914         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
8915         children out of the drawing view on mac.
8916         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
8917         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
8918         
8919 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
8920
8921         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
8922         on the non-hosted-control part of it shouldn't do anything.
8923         Fixes part of bug #327498.
8924
8925 2007-11-01  Andreia Gaita <avidigal@novell.com>
8926
8927         * WebBrowserBase.cs: revert previous change, resize can be called anytime
8928
8929 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
8930
8931         * Application.cs: When a toolstrip has the keyboard input loop, let messages
8932         it does not use flow through to controls that are hosted in menus.
8933         Same with mouse clicks.
8934         * Form.cs: Don't close all menus on click if the click is on a
8935         control hosted in a menu.
8936         Fixes part of bug #327498, and part of bug #325969.
8937
8938 2007-10-31  Andreia Gaita <avidigal@novell.com>
8939
8940         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
8941
8942 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
8943
8944         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
8945         Addresses an issue raised in bug #336218.
8946
8947 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
8948
8949         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
8950         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
8951
8952 2007-10-30  Andreia Gaita <avidigal@novell.com>
8953
8954         * ContainerControl.cs: Check if the active control is a
8955         child of a removed control and update active_control accordingly.
8956         Fixes #329718
8957
8958 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8959
8960         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
8961         or the MaxDate.  Fixed bug #337693.
8962
8963 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8964
8965         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
8966         after calling SetWindowLong for a form, to force an immediate NC refresh.
8967         Fixes first part of bug #325150.
8968
8969 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8970
8971         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
8972         simple.  Fixes the last part of bug #322668.
8973
8974 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8975
8976         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
8977         needs to be TopMost as well, or else the MessageBox is under the form.
8978         Patch by George fixes bug #325300.
8979
8980 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8981
8982         * X11Dnd.cs: When starting a new drag operation, reset the static
8983         'dropped' field to false (previously the implementation didn't reset
8984         it and got confused after the first drag).
8985         Fixes #325071.
8986
8987 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8988
8989         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
8990         items instead of re-creating them all. For this purpose we now cache
8991         both CategoryGridEntry items and the GridEntries for the main object's
8992         properties.
8993         * GridItem.cs: Make SetParent method abstract.
8994         * GridEntry.cs: Override the SetParent method (already there, but now
8995         we override it).
8996         Fixes #324866.
8997
8998 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8999
9000         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9001         depending on its depth (as .Net does). Update the needed values in
9002         MouseDown handler. Also draw the plus/minus rect after the label,
9003         so we don't draw on top of it.
9004
9005 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
9006
9007         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9008         processed by forms or controls when menu is active. [Fixes #333548]
9009
9010 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9011
9012         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9013         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
9014         focus on mouse over.
9015
9016 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9017
9018         * TextControl.cs: Code cleaning, simplifying.
9019
9020 2007-10-24  Geoff Norton  <gnorton@novell.com>
9021
9022         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9023         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9024
9025 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9026
9027         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9028         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
9029
9030 2007-10-24  Andreia Gaita <avidigal@novell.com>
9031
9032         * SendKeys.cs: apply jpobst's patch to bug #332409
9033
9034 2007-10-23  Andreia Gaita <avidigal@novell.com>
9035
9036         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
9037         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9038         for some reason
9039
9040 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9041
9042         * PropertyGridView.cs: If a property has an UIEditor available,
9043         make the drop-down/editor button available only if the property
9044         is _not_ read only.
9045
9046 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9047
9048         * PropertyGridView.cs: Don't make the grid item textbox 
9049         editable when a drop-down control is available, but 
9050         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9051         true. The same bur the color of the grid item value's label.
9052
9053 2007-10-22  Geoff Norton  <gnorton@novell.com>
9054
9055         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9056         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9057         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
9058         driver.  Padd the bottom of all real windows so the resize thumb doesn't
9059         obscure scroll/status bars.
9060
9061 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
9062
9063         * WindowsFormsSection.cs: Implement.
9064
9065 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9066
9067         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
9068         closed see #325434 patch.
9069
9070 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9071
9072         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9073         see #325434 patch.
9074
9075 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9076
9077         * PropertyGridView.cs: When showing the textbox for a grid item,
9078         have two local variables to store the read-only and non-editable
9079         status of a grid item (we were previously using just one variable
9080         to do this, when actually they are slightly different).
9081         Fixes part of #325023.
9082
9083 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9084
9085         * PropertyGridView.cs: When showing a drop-down list, try to get the
9086         values using TypeConverter.ConvertTo (to convert to a string). Fixes
9087         part of #325023.
9088
9089 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9090
9091         * PropertyGrid.cs: When updating a property and populating sub grid
9092         items, remove the previous ones, and invalidate the specific area.
9093         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9094         area behind a grid item.
9095         * GridItemCollection.cs: Add an internal Clear method, to allow us to
9096         clean the items if needed (specially for controls implementing 
9097         ICustomTypeDescriptor and returning a variable number of properties).
9098         Fixes #324865.
9099
9100 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
9101
9102         * TextControl.cs: Clean up and document the Insert function.
9103
9104 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9105
9106         * TextControl.cs: Make sure we know our start point for updating the view
9107         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
9108         update the view.
9109
9110 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9111
9112         * ListView: Couple of corcompare fixes.
9113
9114 2007-10-17  Geoff Norton  <gnorton@novell.com>
9115
9116         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
9117         the title caption of real window.
9118
9119 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9120
9121         * ErrorProvider.cs: Add the error provider's internal window to a 
9122         containercontrol when the parent changes.  [Fixes bug #329714]
9123
9124 2007-10-17  Geoff Norton  <gnorton@novell.com>
9125
9126         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
9127         When we make a new window; restore the old active window - fixes dialogs.
9128
9129 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9130
9131         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
9132         when modifying a property, and if found then invalidate as
9133         requested.
9134         Fixes part of #324865.
9135
9136 2007-10-17  Geoff Norton  <gnorton@novell.com>
9137
9138         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
9139         highly experimental.  Fixed coordinate translation.  Fixed window locations.
9140         Initial support for clipping. Implemented NC areas and menus.  Support for
9141         launching from command line from Will Johansson (wjohansson@atacomm.com).
9142         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
9143         wjohansson@atacomm.com)
9144         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
9145         Hwnds now track the existence of all of their children for Mac clipping.
9146     * XplatUI.cs: Re-enabled the native driver on the Mac.
9147
9148 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9149
9150         * Line.cs: Move the InsertString function to here.
9151         * TextControl.cs: Cleanup some duplicate code, move some InsertString
9152         functionality to Line.
9153
9154 2007-10-17  Geoff Norton  <gnorton@novell.com>
9155
9156         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
9157
9158 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
9159
9160         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
9161         always setting value to true.
9162         * Form.cs: When changing AcceptButton, notify new and original button.
9163
9164 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
9165
9166         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
9167         a custom control that implements IButtonControl instead of an actual
9168         button.  [Fixes bug #334244]
9169
9170 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9171
9172         * Form.cs: Change SelectActiveControl to internal, we need to call it in
9173         MdiWindowManager.
9174         
9175         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
9176         active control when activate a new mdi window.
9177         
9178         [Fixes bug #330495]
9179
9180 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9181
9182         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
9183         is already added.
9184         [Fixes bug #333617]
9185
9186 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9187
9188         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
9189         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
9190         so we always recalculate the whole document instead of just the new part.
9191         [Fixes bug #325082]
9192
9193 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9194
9195         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
9196         when the mouse was to the left of the first character in the line.
9197
9198 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9199
9200         * TextBox.cs, TextBoxBase.cs: When setting the document's password
9201         character, use the property instead of the variable so that the
9202         UseSystemPasswordChar property is taken into account.
9203         [Fixes bug #333748]
9204
9205 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9206
9207         * FolderBrowserDialog.cs: When a node is right clicked and the "New
9208         folder" contex menu appears, actually add the new folder to it, even
9209         if the node is not currently selected. Still use SelectedNode in case 
9210         there wasn't found a node under the pointer.
9211         Fixes #325452.
9212
9213 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9214
9215         * ListViewItem.cs: When retrieving the focused state, the index check
9216         should be done only when ListView is in virtualmode, as it is an
9217         expensive check for normal mode.
9218
9219 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9220
9221         * ListViewItem.cs: Make the focus state information be stored
9222         in the ListView, not in the items. This is done to match the MS
9223         behaviour for items that are not yet part of a ListView control;
9224         besides that, since just one item can be focused at the same time,
9225         we save a little space in our items.
9226         Fixes part of #331643.
9227
9228 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9229
9230         * ComboBox.cs: When focus is lost, deselect the text. When setting
9231         text of control, select all text. Do not hide selection when control
9232         does not have focus. Fixes bug #333663.
9233
9234 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9235
9236         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
9237         instead of ArgumentException when SelectionLength is set to negative
9238         value. Added same check to SelectionStart. Code formatting.
9239
9240 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9241
9242         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
9243         or SelectionStart. Code formatting.
9244
9245 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9246
9247         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
9248         indicating that there was not a previous drag-and-drop operation going
9249         on.
9250         Fixes part of #325071.
9251
9252 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9253
9254         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
9255         AllowedEffect, don't let the drop operation happen. 
9256         Fixes #32580.
9257
9258 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9259
9260         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
9261
9262 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9263
9264         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
9265         is called.
9266
9267 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9268
9269         * Line.cs: Add a method that finds the tag that contains an x-coord.
9270         * LineTag.cs: Add a method that finds the character at an x-coord using
9271         a binary search, the old way was a linear search.
9272         * TextControl.cs: Change FindCursor to use the above new methods.
9273
9274 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9275
9276         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
9277         value different than AllowedEffect). This should be possible to
9278         indicate that dragging is not possible in some control/area.
9279
9280 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
9281
9282         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
9283         descent internally when font changes instead of outside code being responsible
9284         for setting it.
9285         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
9286         instead of accessing internal variables.
9287
9288 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
9289
9290         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
9291         remove special treatment for ArrangeIcons since it is already arranged.
9292
9293 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9294
9295         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
9296         the Win32 backend uses Color.
9297         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9298         Refactor to store a Color instead of a Brush for Color.
9299
9300 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9301
9302         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
9303         away.  I didn't realize I needed this when I refactored these earlier.
9304
9305 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9306
9307         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
9308         store a Color structure and use the ResPool for back color instead of
9309         holding onto brushes.
9310
9311 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9312
9313         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
9314         [Fixes bug #325592]
9315
9316 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9317
9318         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
9319         to recalculate its size.  Fixes a part of bug #331052.
9320
9321 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9322
9323         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
9324         button.  Fixes a part of bug #331052.
9325
9326 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9327
9328         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
9329         the CreateParams.
9330         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
9331         decorations.
9332         [Fixes bug #330986]
9333
9334 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9335
9336         * TextBoxTextRenderer.cs: Don't make this a static class, as static
9337         doesn't exist in 1.1.  (Thanks jb!)
9338
9339 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9340
9341         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
9342         class to allow us to use different backends on different platforms.
9343         Linux uses the current [Draw|Measure]String backend.  Windows uses
9344         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
9345         of GDI+.  This leads to better looking text and more accurate measurements
9346         on Windows, fixing many of the reported issues.
9347         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
9348
9349 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9350
9351         * FolderBrowserDialog.cs: When running on Windows,
9352         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
9353         since we must match both "C:" and "C:\" forms. A little hackish, but
9354         works.
9355         Fixes #325247.
9356
9357 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9358
9359         * ListView.cs: When calling EndEdit (after editing an item),
9360         create a new instance of LabelEditEventArgs to keep clean the fields
9361         in case we get a new call to BeginEdit; also do Application.DoEvents
9362         to have focus in synch. This is a fix similar to TreeView's #325244.
9363
9364 2007-10-07  Andreia Gaita <avidigal@novell.com>
9365
9366         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
9367         * WebBrowserBase.cs: Added dialog support, calling the
9368           WebBrowserDialogs classes for each specific dialog type.
9369
9370 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9371
9372         * ListView.cs: When the last item is focused and is removed,
9373         move the focus to the previous item (in Items order). This is what MS
9374         does.
9375         Fixes #330415.
9376
9377 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9378
9379         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
9380         instead of the opposite (RemoveAt call Remove). This is a better
9381         approach since we don't need to to a pair of traversals when using
9382         RemoveAt.
9383
9384 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9385
9386         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
9387         check that the node actually has nodes, and if not, move to the
9388         parent node instead. 
9389         Fixes #325265.
9390
9391 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9392
9393         * TreeView.cs: Move the previous change to the general case (to
9394         call Application.DoEvents in cases where the method was called by
9395         different places).
9396
9397 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9398
9399         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
9400         call Application.DoEvents. This is neccessary when we get a call to
9401         BeginEdit from an AfterLabelEdit handler, because the focus always
9402         goes to the TreeView, even if we try to give it to our
9403         LabelEditTextBox. The call do Application.DoEvents seems to
9404         synchronize the focus, basically.
9405         Fixes #325244.
9406
9407 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9408
9409         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
9410         should be false. This also removes some nasty recursive paths. Fixes
9411         part of #325244.
9412
9413 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
9414
9415         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
9416         state to normal. Also resize window when cascading. Fixes #325433. 
9417
9418 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
9419
9420         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
9421         DefaultForeColor, as drawing empty colored lines isn't very useful.
9422         [Fixes the not drawn lines part of bug #324358]
9423
9424 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
9425
9426         * TextControl.cs: Move Line and LineTag classes into separate files to
9427         make things easier to find.
9428         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
9429         * RichTextBox.cs: Capitalize LineTag.Length property access.
9430         - This is purely an organizational/formatting change, no logic changed. -
9431
9432 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9433
9434         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
9435         text is empty.
9436
9437 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9438
9439         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
9440         text is empty.
9441
9442 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9443
9444         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
9445         prevent calling of OnBackColorChanged. Fixes #325321.
9446
9447 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9448
9449         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
9450         because control can be disabled because owner is disabled.
9451
9452 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
9453
9454         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
9455         string.Empty, test failed from previous change.
9456
9457 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
9458
9459         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
9460         is null, not String.Empty.  See bug #323038.
9461
9462 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
9463
9464         * TextControl.cs: Change the margins to match MS a little better.
9465         Still not perfect for X11 due to some DrawString differences, but
9466         is still an improvement over the old stuff.
9467         Partially fixes #324467.
9468
9469 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9470
9471         * FolderBrowserDialog.cs: When using MyComputer as 
9472         RootFolder, let absolute paths be considered as valid ones. Also, use
9473         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
9474         for Windows compatibility.
9475         Partially fixes #325247.
9476
9477 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9478
9479         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
9480         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
9481         method, since it causes the dialog to not select folders directly
9482         under the root path (when setting SelectedPath property).
9483
9484 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9485
9486         * TreeNode.cs: When calling Expand/Collapse and need to call 
9487         ExpandBelow/CollapseBelow respectively, take into account
9488         partially visible nodes (previously Expanding/Collapsing
9489         a partially visible node in the bottom was not updating its +- sign).
9490
9491 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9492
9493         * TreeView.cs: When calling Expand on a TreeNode, and we need to
9494         expand nodes below (ExpandBelow), scroll the entire Viewport
9495         area if the node is above it and not visible (instead of scrolling
9496         the area from node's Bottom, which applies only when the node is
9497         visible).
9498         Fixes #325266.
9499
9500 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9501
9502         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
9503         node in the bottom area (as .Net does). This is done to preserve the
9504         scroll position when ExpandAll is called before handle is created for
9505         the 1.1 profile (bottom area, as opposed to top area in 2.0).
9506         Fixes #324103.
9507
9508 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9509
9510         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
9511         bottom area if we are in fact not using the vertical scroll bar.
9512         Fixes #324824.
9513
9514 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
9515
9516         * Control.cs: Comment out a double buffering optimization that doesn't
9517         take into account invalidates created in OnPaint, causing the control
9518         to never be redrawn.  It would take quite a bit of work to work around
9519         this, but I left it commented with an explanation for later possible
9520         optimization.
9521         [Fixes bug #328681]
9522
9523 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
9524
9525         * Control.cs: Ask parent to perform a layout if control is AutoSize and
9526         the text changes.
9527         * RadioButton.cs: Implement GetPreferredSizeCore.
9528         [Fixes bug #328672]
9529
9530 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
9531
9532         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
9533         corcompare stuffs.
9534
9535 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
9536
9537         * Application.cs: Move the sync context stuff to Run instead of RunLoop
9538         so that it doesn't get uninstalled on modal forms.
9539         * Control.cs: Install a sync context when a control is created.
9540         * WindowsFormsSyncronizationContext.cs: Create a private static control
9541         to invoke on.  This is easier than trying to find a created control we
9542         can use.
9543         [Fixes bug #327608]
9544
9545 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
9546
9547         * Application.cs: Install a WindowsFormsSynchronizationContext in the
9548         run loop, and uninstall it when done.
9549         * WindowsFormsSynchronizationContext.cs: Implement.
9550         [Fixes the common case in bug #327608]
9551
9552 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
9553
9554         * DataGridViewCellCollection.cs: Added argument checks for indexers.
9555         Use case-insensitive lookup of column name in indexer. Code
9556         formatting.
9557
9558 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9559
9560         * TreeNode.cs: When collapsing or expanding a node, check whether its
9561         change will affect the visible area (we were previously doing a
9562         IsVisible check, but that check is not enough since children nodes
9563         could be still visible). Fixes part of #325266.
9564
9565 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
9566
9567         * TreeView.cs: Always select the first node when the TreeView gets
9568         focus if there is no currently selected node.
9569         [Fixes bug #324279]
9570
9571 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
9572
9573         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
9574         node being selected is null.
9575         [Patch from Yves Bastide fixes bug #326858]
9576
9577 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9578
9579         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
9580         whether all the parent nodes are expanded.
9581         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
9582         call RecalculateVisibleOrder if all previous nodes are expanded.
9583         Before that we were doing a IsVisible check, but sometimes the node
9584         is not in the visible area, but _should_already be ready, because of
9585         all previous nodes are expanded. Fixes #325259.
9586
9587 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9588
9589         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
9590         portion of the item is clicked.
9591
9592 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9593
9594         * TextControl.cs: Do not tell the system to move the cursor if the
9595         textbox isn't focused.  Fixes part of bug #322668.
9596
9597 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9598
9599         * ComboBox.cs: When there are no items, do not show the dropdown if
9600         the down arrow is clicked.  Fixes part of bug #322668.
9601
9602 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9603
9604         * ToolStripComboBox.cs: Manually set the size of this control in the
9605         constructor, as it doesn't seem to be the same as DefaultSize.
9606         Fixes a failing monobuild test.
9607
9608 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
9609
9610         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
9611         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
9612
9613 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
9614
9615         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
9616         Desktop.  This lets it work for people who have moved their desktops
9617         from the default location on windows.  For people who have not, both
9618         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
9619
9620 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9621
9622         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
9623         but when the base constructor sets this, the control is null.  Set it
9624         again in the constructor.  Fixes a failing monobuild test.
9625
9626 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9627
9628         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
9629         get called.
9630         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
9631         called.
9632
9633 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9634
9635         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
9636         will handle it themselves.
9637         * ToolStripItem.cs: When deciding what the text of a tooltip should
9638         be, use the Text property instead of the text field.
9639         * ToolStripTextBox.cs: Handle tooltips.
9640         [Fixes bugs #325417 and #325973]
9641
9642 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9643
9644         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
9645         left click.  Fixes the easy part of bug #325969.
9646
9647 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9648
9649         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
9650         bug #325406, but set a minimum for StatusStrip to 22 to keep
9651         bug #325390 fixed.  I think this minimum would have been figured
9652         up automatically if the grip was actually a ToolStripItem, but it
9653         currently is not.
9654
9655 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9656
9657         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
9658         as this is apparently the actual value used by .Net. Also apply
9659         ItemPadding in Details view only, and decrease the general width padding,
9660         to have only the needed. This should fix #324340 in Windows too.
9661
9662 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9663
9664         * ListViewItem.cs: Don't Invalidate item if parent is inside
9665         a BeginUpdate/EndUpdate block. This prevents to have differences
9666         between the ListView and items state, as well as avoid some exceptions
9667         there.
9668         * ListView.cs: Make 'updating' field internal.
9669
9670 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9671
9672         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
9673         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
9674         size if appropriate.
9675         Fixes reopened bug #325414.
9676
9677 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9678
9679         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
9680         * ToolStripItem.cs: Invalidate before and after our new autosize when
9681         text changes.
9682         Fixes reopened bug #325390.
9683
9684 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9685
9686         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
9687         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
9688         #325044.
9689
9690 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9691
9692         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
9693
9694 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9695
9696         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
9697         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
9698         #82734.
9699
9700 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
9701
9702         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
9703         item to select when the ToolStrip is selected.
9704         * ToolStripControlHost: Realign the control when the bounds or visibility
9705         change.
9706         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
9707         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
9708         preferred height.
9709         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
9710         base.OnPaint.  Was causing text not to be drawn.
9711
9712 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
9713
9714         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
9715
9716 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9717
9718         * TreeView.cs: When creating the label edit text box,
9719         set is initially to Visible = false. This is done to
9720         prevent a confusion in the layout which makes it to lose
9721         focus when shown the first time. Fixes part of #82592.
9722
9723 2007-09-13 Andreia Gaita <avidigal@novell.com>
9724
9725         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
9726
9727 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9728
9729         * ToolStrip.cs: Take Margin into account when calculating preferred
9730         size.  Also, allow preferred size to get smaller than the explicit
9731         size.
9732         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
9733         First step towards fixing bug #82747.
9734
9735 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9736
9737         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
9738         full row select background over the plus/minus glyph.  Also, turn
9739         off the focus rectangle for full row select since MS doesn't seem
9740         to ever paint it.  [Fixes bug #81839]
9741
9742 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9743
9744         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
9745         This was causing keyboard opened dropdowns to lose focus.
9746         [Fixes bug #82803]
9747
9748 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9749
9750         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
9751         ClientRectangle instead.  [Fixes bug #82838]
9752
9753 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9754
9755         * SplitContainer.cs: We can't reset Visible on every layout because
9756         someone may have set Visible = false explicitly on a SplitterPanel.
9757         Make sure when we switch orientation the SplitterDistance does not
9758         change.  Fixes two failing tests.
9759
9760 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9761
9762         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
9763         TextRenderer, since the latter is only available in 2.0.
9764
9765 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
9766
9767         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
9768         * SplitContainer.cs: Implement FixedPanel layouting.
9769
9770 2007-09-12  Andreia Gaita  <avidigal@novell.com>
9771
9772         * WebBrowserBase.cs: setup shutdown routine
9773
9774 2007-09-12  Andreia Gaita  <avidigal@novell.com>
9775
9776         * Application.cs: Let keyboard events that are targetted 
9777                 to non-mwf windows hosted inside mwf (as in, webbrowser),
9778                 propagate properly. Fixes keyboard handling on the webbrowser.
9779
9780 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9781
9782         * ListView.cs: When handling MouseUp event and we are 
9783         highligting a node with the mouse right button, don't trigger
9784         Before/AfterSelecting event, since we are not actually selecting
9785         the node.
9786
9787 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9788
9789         * TreeView.cs: When editing a node, modify the edit text box
9790         depending on the text length (as you are typing), like MS does.
9791
9792 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
9793
9794         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
9795         Override GetPreferredSizeCore to perform calculations.  Remove custom
9796         autosize logic.  [Fixes bug #82739]
9797
9798 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
9799
9800         * TextBoxBase.cs: Modified should default to false.
9801
9802 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9803
9804         * Control.cs: Update the anchoring distances even when layout is supspended.
9805         Patch provided by George fixes bug #82805.
9806
9807 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9808
9809         * Control.cs: Provide a setter for ExplicitHeight.
9810         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
9811         remove the hacks in here for requested_height.
9812         [Fixes bug #82749]
9813
9814 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9815
9816         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
9817         Maximum to lower that its current Value caused an ArgumentException by setting
9818         the Value to the new Maximum.
9819
9820 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9821
9822         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
9823         handle moves to the closest tick when it is being dragged.
9824         [Fixes bug #82751]
9825
9826 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9827
9828         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
9829         can't let them count as real items when calculating where to merge in the
9830         user's items.  [Fixed bug #82786]
9831
9832 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9833
9834         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
9835         who want to add a menu item directly onto a toolstrip.
9836         [Fixes bug #82775, part II]
9837
9838 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9839
9840         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
9841         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
9842         don't set it to available.
9843         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
9844         [Fixes bug #82727, part II]
9845
9846 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9847
9848         * StatusStrip.cs: Change item placement to None if not visible.
9849         * ToolStripItem.cs: Invalidate when InternalVisible changes.
9850         These should have been committed to fix 82723, but I missed them.
9851
9852 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9853
9854         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
9855         Click, and that it is only called once.
9856         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
9857         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
9858         dropped down.
9859         [Fixes bug #82775]
9860
9861 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9862
9863         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
9864         to match .Net.
9865         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
9866         instead of 8, just like above. Partially fixes #82734.
9867
9868 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9869
9870         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
9871         fixes #82734.
9872
9873         * ListView.cs: Remove extra space between rows in Details view (match
9874         .Net). 
9875         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
9876         the DefaultFont.
9877
9878 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
9879
9880         * Application.cs: Modified ProductVersion to return value of
9881         AssemblyInformationVersion if available, and fallback to assembly
9882         version. Fixes bug #82746. Code formatting.
9883         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
9884         instead.
9885
9886 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9887
9888         * Control.cs: When updating ZOrder for a child control,
9889         take into account the implicit ones (we need it in our controls
9890         using them). Fixes #82642.
9891
9892 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
9893
9894         * ToolStripItem.cs: Add support for animated images.
9895         [Fixes bug #82726]
9896
9897 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
9898
9899         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
9900         visible.  [Fixes bug #82727]
9901
9902 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9903
9904         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
9905         so we repaint using the new size.  [Fixes bug #82723]
9906
9907 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9908
9909         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
9910         option.  [Fixes bug #81779]
9911
9912 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9913
9914         * TreeView.cs: Override HandleClick because the StandardClick style is
9915         set to false.  According to MSDN (and testing), the click events should
9916         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
9917
9918 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9919
9920         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
9921         the border will disappear.  Fixes reopened #82653.
9922
9923 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9924
9925         * Control.cs: If the control is autosize, and its preferred size changes
9926         when it lays out its children, tell its parent so it can be re-layed out.
9927         Fixing some of the fallout from r85433.
9928
9929 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9930
9931         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
9932         and CheckBox share some code.
9933
9934 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9935
9936         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
9937         the TrackBar, not every mouse move.  [Fixed bug #82718]
9938
9939 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9940
9941         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
9942         under 2.0 rendering.  [Fixes bug #82657]
9943
9944 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9945
9946         * TreeView.cs: If we found a TreeNode to display a context menu, but
9947         it doesn't have one to show, let the TreeView display its menu
9948         instead.  [Fixes bug #82680]
9949
9950 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9951
9952         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
9953         OnPaintInternal instead.  Give the internal TextBox a Border property
9954         so it can draw itself more correctly.  [Fixes bug #82653]
9955
9956 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
9957
9958         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
9959
9960 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9961
9962         * ComboBox.cs: Adjust combobox button state to reflect current state when
9963         back to enabled = true. Fixes first issue of #82654.
9964
9965 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9966
9967         * Control.cs: Fix last patch regression, prevent forms to update zorder when
9968         setting visible property.
9969
9970 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9971
9972         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
9973         fix zorder for controls initially created as non visible. Fixes #82667.
9974
9975 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
9976
9977         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
9978         mimic win32 look. Fixes #82656.
9979
9980 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
9981
9982         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
9983         Stubs for new net 3.5 classes.
9984
9985 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9986
9987         * ListViewItem.cs: In ListViewItemCollection operations calculate
9988         Layout for owner as well as invalidate it. Fixes part of #82642.
9989
9990 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
9991
9992         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
9993         when returning Enabled.  [Fixes bug #82651]
9994
9995 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
9996
9997         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
9998
9999 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10000
10001         * ListView.cs: Put item padding info in a single place
10002         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10003         columns again.
10004         * ThemeWin32Classic.cs:
10005         * Theme.cs: Likewise.
10006
10007 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10008
10009         * ListView.cs: When a ListViewSubItem instance is invalidated,
10010         invoke Invalidate on parent ListViewItem, not parent ListView.
10011         Fixes #81570.
10012
10013 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10014
10015         * ListView.cs, ListViewItem.cs: corcompare stuffs.
10016
10017 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10018
10019         * BindingMemberInfo.cs: Implement == and != operators.
10020
10021 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10022
10023         * HtmlElementEventArgs.cs: Implement properties.
10024
10025 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10026
10027         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10028
10029 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10030
10031         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10032         Add (string,string,string) to implement the imagekey.  It turns out, we
10033         use the requested imagekey whereas .Net does not.  So I broke ours to match
10034         theirs.  :(
10035
10036 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10037
10038         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10039
10040 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10041
10042         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10043
10044 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
10045
10046         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10047         up-to-date. Fixes bug #82618.
10048
10049 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
10050
10051         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10052         reflect document changes. Fixes #82367.
10053
10054 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10055
10056         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10057         as well as add new ones. This should make work the BackgroundImage
10058         property for ListView again.
10059
10060 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10061
10062         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10063         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10064         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10065
10066 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10067
10068         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10069         IsKeyLocked.
10070
10071 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10072
10073         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10074         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10075
10076 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10077
10078         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
10079         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10080
10081 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10082
10083         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10084
10085 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10086
10087         * GridEntry.cs: Implement GetService.
10088
10089 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
10090
10091         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10092         for label editting, make sure we focus back on the TreeView.
10093         [Fixes bug #82590]
10094
10095 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10096
10097         * ListView.cs: Add some 2.0 overrides.
10098
10099 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10100
10101         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10102         because getter dont returns right value before handle creation. Thanks 
10103         to George. Fixes #82569.  
10104
10105 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10106
10107         * Theme.cs: Revert last patch, it causes error under win32. 
10108
10109 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10110
10111         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
10112         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
10113         logical Desktop rather than the physical file system location. Fixes #82603. 
10114
10115 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
10116
10117         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10118         for the patch. Fixes #82568.
10119
10120 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10121
10122         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10123         methods.
10124
10125 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10126
10127         * ListViewInsertionMark.cs: New stubbed class.
10128
10129 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10130
10131         * FolderBrowserDialog.cs: When adding folder, immediately create the
10132         directory with temporary name and rename the directory when editing
10133         finishes. This matches MS. Ensure the node for the new folder is 
10134         selected and LabelEdit is disabled, when editing is either finished
10135         or cancelled.
10136
10137 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10138
10139         * TreeView.cs: When editing label of node, ensure node is visible.
10140
10141 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
10142
10143         * PropertyGridView.cs: Set the value only if it has changed.
10144
10145 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10146
10147         * ListView.cs: Some more code refactoring to add support sorting
10148         with groups (now for Details view). Remove unused code also.
10149
10150 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10151
10152         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
10153         Not a big fan of reacting immediately to a field in an EventArg, but that's
10154         the way it's done.  (This is part of the previous commit that got left out.)
10155
10156 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10157
10158         * FolderBrowserDialog.cs: Removed need for separate description field.
10159         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
10160         has focus when dialog box is displayed again, regardless of what
10161         button was pressed the previous time. Set RootFolder and SelectedPath
10162         each time dialog box is displayed. This ensures the treeview is
10163         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
10164         when it does not have focus. Added support for more special folders.
10165
10166 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10167
10168         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
10169         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
10170         it resets the edit_args.
10171         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
10172         [Fixes bug #82577]
10173
10174 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
10175
10176         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
10177         button to match MS. Provide more meaningful exception message for
10178         invalid RootFolder value. Use zero-length string when SelectedPath
10179         is set to null. Allow non-rooted paths in SelectedPath, but ignore
10180         them in FolderBrowserTreeView. Allow folders to be created in
10181         RootFolder. Fixes bug #82576.
10182
10183 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10184
10185         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
10186         since we need to take into account the group headers and the margin
10187         between them.
10188         * ListViewGroup.cs: Add a rows field to store the number of rows per
10189         group.
10190
10191 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10192
10193         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
10194           Anyways, let's just follow the lead.
10195
10196 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10197
10198         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
10199         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
10200         controls in GetPreferredSizeCore.
10201         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
10202         [Fixes bug #82488]
10203
10204 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10205
10206         * PrintDialog.cs: Need to instantiate the form variable here too.
10207
10208 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10209
10210         * ListView.cs: Do some reorganization to support sorting in groups,
10211         by doing the layout sequentially in ListView.Items. Also add support
10212         for the Default Group, which should be available for items with no
10213         group assigned.
10214         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
10215         for storing layout info also.
10216         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
10217         collection, as well as providing internal members to do a traversal
10218         including the default group (needed when doing layout/drawing).
10219         * ThemeWin32Classic.cs: When drawing group headers use internal
10220         ListViewGroupCollection members to take into account the default
10221         group.
10222
10223 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
10224
10225         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
10226
10227 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10228
10229         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
10230         been created.  If handle is created, we want arror keys.  If we are editing
10231         a node, we want things like enter, esc, home, end, page up, page down.
10232         Allows Esc to work for FolderBrowserDialog.
10233
10234 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10235
10236         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
10237         they close when ESC is pressed.  Thanks Andy!
10238
10239 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10240
10241         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
10242         This way we can tell if this is a CommonDialog provided with mono, or one
10243         that is being implemented outside by a developer.  If it is an external one,
10244         the developer is responsible for showing their own form.  We were showing
10245         our blank form after the developer showed his.
10246         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
10247         PageSetupDialog.cs: Instantiate form variable in our constructor.
10248         [Fixes bug #82531]
10249
10250 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10251
10252         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
10253         and always return true.  [Fixes bug #81616]
10254
10255 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10256
10257         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
10258         TextBox.  [Fixes bug #82549]
10259
10260 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
10261
10262         * FileDialog.cs: When Save/Open is clicked and no filename is selected
10263         or entered then do not close the dialog. Fixes bug #82539. Removed
10264         CWLs.
10265
10266 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
10267
10268         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
10269         code to this method. It is calling every time filter changes. This method
10270         will help to fix the bug #80887.
10271
10272 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10273
10274         * CheckBox.cs: Implement AutoSize calculation.
10275
10276 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10277
10278         * CheckBox.cs: Use new 2.0 rendering for 2.0.
10279         * Theme.cs: Method declarations for 2.0 rendering path.
10280         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
10281
10282 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10283
10284         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
10285
10286 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10287
10288         * ListViewGroupCollection.cs: Implement AddRange the right way, to
10289         only call Redraw on the parent one time.
10290
10291 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10292
10293         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
10294           GetClipboardContent.
10295         * DataGridViewCell.cs: Implemented GetClipboardContent,
10296           GetEditedFormattedValue, GetFormattedValue.
10297         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
10298
10299 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
10300
10301         * TableLayoutStyleCollection.cs: corcompare fix.
10302
10303 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10304
10305         * DataObject.cs: Implemented retrieval of convertible / not convertible
10306           objects.
10307
10308 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
10309
10310         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
10311         ourselves.  This ensures the entire old bounds are repainted, in case our new
10312         size is smaller.  [Fixes bug #82518]
10313
10314 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
10315
10316         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
10317         flag to make fast handle of mouse events, without this the mouse move is
10318         handled in some manner, whether it is a mouse move or not. Fixes #81588.
10319
10320 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10321
10322         * ListView.cs: When doing layout calculations don't use a ref
10323         param to keep the current item; instead use its Index value (this 
10324         is specially important when doing the layout with Groups
10325         and Items being sparse). Also don't take into account items added to
10326         the Group but not yet added to the main ListView.Items collection.
10327
10328 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10329
10330         * ListViewGroupCollection.cs: Forgot to mimic an issue
10331         in the indexer (don't assign the ListView owner for new values).
10332
10333 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10334
10335         * ListViewGroupCollection.cs: Make the string indexer use
10336         the int based indexer to re-use code, instead of duplicate the code.
10337         Also Redraw as needed and take into account null values.
10338
10339 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
10340
10341         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
10342         [Fixes bug #82481]
10343
10344 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
10345
10346         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
10347         when other buttons are clicked or navigated to.
10348
10349 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10350
10351         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
10352           it's XplatUIX11 that attaches them.
10353
10354 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10355
10356         * DataGridView.cs: If a column has been added, recreate the editing row.
10357           Fixes #82226.
10358
10359 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10360
10361         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
10362           of the tag to draw. Makes disappearing text show up again.
10363
10364 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10365
10366         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
10367           Contents. Fixes #82487.
10368
10369 2007-08-19  Andreia Gaita  <avidigal@novell.com>
10370
10371         * Added HtmlElement.cs, HtmlElementCollection.cs, 
10372           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
10373           
10374 2007-08-19  Andreia Gaita  <avidigal@novell.com>
10375
10376         * BindingSource.cs: Implement this, dispose and getenumerator.
10377         * DataGridViewRowCollection.cs: Move the InvalidOperationException
10378         out of AddInternal, throw it only on public Add calls. The 
10379         UsingWebBrowser sample was blowing up with this when setting the
10380         DataSource after adding DataBindings, so it's likely that .net
10381         only throws this exception when Add is called directly. 
10382         
10383         * ToolStripControlHost.cs: Return the hosted control's text
10384         property, and not the ToolStripItem one (it would always return
10385         the initial value).
10386         
10387         * HtmlDocument.cs: Implement GetElementById and All
10388         * WebBrowser.cs: Remove exception on set_DocumentStream.        
10389
10390 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10391
10392         * Form.cs: Fix the max and min value for opacity (0~1).
10393
10394 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10395
10396         [Fixes #80118]
10397         * DataGridTableStyle.cs: Default header font is now null, on getter it 
10398         returns datagrid font when is null. On setter permits null.
10399
10400         * DataGrid.cs:
10401         - When ResetHeaderFont set header font to null.
10402         - On EndInit set grid_style.DataGrid.
10403
10404 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10405
10406         * TabControl.cs: Fix regression in default padding x.
10407
10408 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10409
10410         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
10411
10412 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10413
10414         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
10415         not 2. Fixes #82229.
10416
10417 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10418
10419         * TabControl.cs: Fix tab size when image height is less than text height.
10420         Partially fixes #81837.
10421
10422 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10423
10424         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
10425         "alt + tab". It works only for Win32, for X11 theres no way to remove window
10426         from taskbar and keep it on "alt_tab". Fixes #81722.
10427
10428 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10429
10430         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
10431         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
10432         Fixes #80877 and #79418.
10433
10434 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10435
10436         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
10437         between position and one of the screen borders. Fixes #82349.
10438
10439 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10440
10441         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
10442         the MessageBox in the taskbar. Fixes #82457.
10443
10444 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10445
10446         * MessageBox.cs: Fix form size when icon is set and text height is bigger
10447         than icon. Fixes #82468.
10448
10449 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10450
10451         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
10452         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
10453           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
10454           Refactored HandleNCCalcSize somewhat to avoid code duplication.
10455         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
10456           FormBorderStyle to decide if we're calculating a new size from the
10457           client size or not. CreateParams: Don't fake tool windows, only the X11
10458           backend manages toolwindows manually.
10459
10460 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10461
10462         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
10463         ObjectDisposedException.
10464
10465 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10466
10467         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
10468         in OnLoad should not have any effect.  [Fixes bug #82470]
10469
10470 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10471
10472         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
10473         paint for controls that create their own ToolTipWindow instead of
10474         going through ToolTip.
10475
10476 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10477
10478         * ToolTip.cs: Make Hide internal instead of public to match MS API.
10479
10480 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10481
10482         * ListViewGroupCollection.cs: Use generic List instead of an
10483         ArrayList, since this collection is 2.0 only.
10484
10485 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
10486
10487         * ToolTip.cs (Hide): Made public to make the build work (should
10488         this not be public?).
10489
10490 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10491
10492         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
10493         ToolTipWindow.
10494         * ToolTip.cs: Add an internal Visible property to facilitate transition.
10495
10496 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10497
10498         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
10499         PopupEventHandler.cs: Make these internal for 1.1.
10500         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
10501         use ToolTipWindow internals.
10502         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
10503         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
10504
10505 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10506
10507         * X11Dnd.cs: Add a null check.
10508
10509 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10510
10511         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
10512           nothing else succeeds. Fixes #82453.
10513
10514 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10515
10516         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
10517           rectangle if we're painting to another window than the one the paint
10518           message was generated on. Simplify the code somewhat, which makes
10519           PaintEventEnd also simpler.
10520
10521 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10522
10523         * Control.cs: When changing parent of a form, let the form decide whether
10524           XplatUI.SetParent should be called or not.
10525         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
10526           recreating the handle. If the new parent's handle isn't created, don't
10527           recreate our handle, just destroy it. CreateParams: Check if the
10528           parent's handle is created before fetching it.
10529
10530 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10531
10532         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
10533           Update calls to PaintEventStart/End to take a Message argument.
10534         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
10535           take a Message argument.
10536         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
10537           Message argument, and handle the case where we don't paint to the window
10538           for which the paint message was generated.
10539
10540 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10541
10542         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
10543           Marshal.GetLastWin32Error. Plug nasty memory leak in
10544           PaintEventStart/End, we were creating a DC we weren't releasing.
10545
10546 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10547
10548         * ListView.cs: Add Groups support in Details view. Also have a small
10549         method to do the layout of the group header. Don't use a separate
10550         method to do the groups calculation in Icons view, since our methods
10551         are now a little simpler.
10552         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
10553         `Bounds'.
10554         * ThemeWin32Classic.cs: Likewise.
10555
10556 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
10557
10558         * Application.cs: Add FilterMessage method and rework our message loop
10559         logic to use it.
10560
10561 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
10562
10563         * Application.cs: Add some methods and stub a few methods that are
10564         pretty much never used.
10565
10566 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
10567
10568         * TreeNode.cs: Add some serialization methods.
10569
10570 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10571
10572         * ListView.cs: In ListViewItemCollection have a 
10573         'is_main_collection' field to not modify ListViewItem.ListView
10574         when using it as ListViewGroup.Items (and not ListView.Items)
10575         and also don't modify selection state (.Net behaviour). 
10576         Instead, set group for items contained in a ListViewGroup.Items collection.
10577         * ListViewItem.cs: Simplify some code in Group setter.
10578         * ListViewGroup.cs: use the new .ctor to pass the current instance
10579         to the ItemsCollection.
10580         * ListViewGroup.cs: Set the ListView property for ListViewGroup
10581         instances when adding/removing. Also make Remove use RemoveAt, which
10582         should perform better.
10583
10584 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10585
10586         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
10587         that crept into the 1.1 profile.
10588
10589 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10590
10591         * ToolBarButton.cs: Implement ImageKey.
10592
10593 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10594
10595         * ToolBar.cs: Implement ScaleControl/ScaleCore.
10596
10597 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10598
10599         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
10600           created, it might have gotten destroyed since we last checked. Fixes
10601           #82405.
10602
10603 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
10604
10605         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
10606         tooltip will hide when mouse is moved off the control.
10607         [Fixes bug #82407]
10608
10609 2007-08-11 Andreia Gaita <avidigal@novell.com>
10610
10611         * WebBrowserBase.cs, WebBrowser.cs: add implementation
10612         using Mono.Mozilla for loading and navigating webcontrol
10613         with xulrunner.
10614         The initial implementation was done on 
10615         /trunk/mozembed/tests/browser , and copied here.
10616
10617 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
10618
10619         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
10620         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
10621
10622 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10623
10624         * DataGridView.cs: Add support for an editing row. Fixes #82226.
10625           RowTemplateFull: throw an exception if a column doesn't have a template.
10626         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
10627           add the row just before it.
10628         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
10629           selected.
10630         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
10631           DataGridView field to be able to reach the grid's editing row.
10632
10633 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10634
10635         * ToolTip.cs: If the control's handle hasn't been created when it has a
10636         tooltip set on it, don't check to see if we need to show the tooltip.  This
10637         check was causing the control's handle to be created.
10638         [Fixes bug #82399]
10639
10640 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10641
10642         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
10643                                         1.1             2.0
10644         Handle Not Created      -1              0
10645         Handle Created          0               0
10646         [Fixes bug #82371]
10647
10648 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10649
10650         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
10651         [Fixes bug #82348]
10652
10653 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
10654
10655         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
10656         * ToolTip.cs: Implement some properties and owner draw.
10657
10658 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10659
10660         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
10661           show them again, since setting visibility causes a paint, causing an
10662           endless loop (instead use a temporary and set it all when it's known if
10663           they should be shown or not). Fixes #79265.
10664
10665 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10666
10667         * DataGridView.cs: Only do a full column/row selection if a header was
10668           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
10669           isn't pressed, deselect everything before selecting something.
10670
10671 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10672
10673         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
10674           behaviour according to bug #81075 - they are returned in the order they
10675           are selected. Fix HitTest to check if the point is within any of the
10676           headers. Allow for row/column selection when in ColumnHeader or
10677           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
10678           the row and column to call when their selected state changes, and
10679           updated selected_[rows|columns] whenever SetSelected* is called.
10680         * DataGridViewBand.cs: Initialize isRow correctly. Call
10681           SetSelected[Row|Column]CoreInternal when the selected state changes, and
10682           add a SelectedInternal to avoid StackOverflows.
10683         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
10684           ReadOnly no matter what.
10685         * DataGridViewSelectedColumnCollection.cs,
10686           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
10687           the items in reverse order (just as MS does...)
10688
10689 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
10690
10691         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
10692         itself, not part of a mnemonic.  [Fixes bug #82378]
10693
10694 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10695
10696         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
10697         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
10698           the DGV, the column, the row, or the cell itself is readonly.
10699
10700 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
10701
10702         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
10703         OSVersion.Platform.
10704         * FileDialog.cs: Same.
10705         * TextRendered.cs: Same.
10706         * FolderBrowserDialog.cs: Same.
10707         * TextBoxBase.cs: Same.
10708         * Application.cs: Same.
10709         * Cursors.cs: Same.
10710         * ThemeClearLooks.cs: Same.
10711
10712 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
10713
10714         * XplatUI.cs: Added RunningOnUnix property to be used by controls
10715         instead of duplicating these checks everywhere.
10716         * FileDialog.cs: Use case-insensitive comparison for populating the
10717         DirComboBox when not running on unix. Fixes bug #82385.
10718         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
10719         "Look in".
10720
10721 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10722
10723         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
10724           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
10725           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
10726           cell and column selection with ctrl and shift pressed. Call the correct
10727           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
10728           the corresponding virtual method (PaintBackground to paint background,
10729           etc).
10730         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
10731           either the column, row or the cell itself is selected.
10732         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
10733           OnRowsAdded.
10734         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
10735           here. When the row is selected, don't select all cells. Each cell now
10736           queries the row to see if the row is selected.
10737
10738 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10739
10740         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
10741           SelectionMode.
10742
10743 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10744
10745         * ListView.cs: In ListViewItemsCollection check that owner is
10746         not null before trying to access it (this happens quite often
10747         using Groups). Also don't duplicate calls by calling CollectionChanged
10748         method.
10749
10750 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10751
10752         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
10753         when we are dismissed to clear keyboard mnemonics.
10754         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
10755         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
10756         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
10757         was activated by keyboard or the OS tells us to always draw them.
10758         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
10759         [Fixes bugs #82376, #82377]
10760
10761 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10762
10763         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
10764         shot at having it because Alt was pressed.
10765         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
10766         the first real menu item.
10767         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
10768         a mnemonic if Text is null.
10769         [Fixes bug #82374]
10770
10771 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10772
10773         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
10774         search do check whether the item is already contained in the
10775         collection or not; instead check if the owner of the item is the same
10776         as ours. Also, remove a redundant check in the same method. 
10777
10778 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10779
10780         * Control.cs: Allow the clip region to be set back to null.
10781         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
10782         [Fixes button still showing up in bug #82370 when Show Through is turned off]
10783
10784 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10785
10786         * GridEntry.cs: Add a null check.
10787         * PropertyGrid.cs: When checking for existing grid entries, ignore category
10788           entries. Fixes #82297.
10789
10790 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
10791
10792         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
10793         for 2.0.
10794
10795 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
10796
10797         * ListBox.cs: Implement ScaleControl.
10798
10799 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10800
10801         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
10802           have a menu strip.
10803         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
10804           parent has a menu strip. Fixes #81689.
10805
10806 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10807
10808         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
10809           moments, so apply some fuzzy logic to determine if the mouse is still
10810           inside a control or not. Fixes #82288 (for the third time).
10811
10812 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10813
10814         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
10815           Don't create the child if it has been disposed already (may happen if
10816           the user closes the form the Load event).
10817
10818 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10819
10820         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
10821           #82288.
10822
10823 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10824
10825         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
10826           might call us after we've been destroyed, in which case our own private
10827           parent field is null. Fixes #82326.
10828
10829 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
10830
10831         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
10832         check for setting the dropdown's owner.
10833
10834 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
10835
10836         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
10837         before removing system menu items.
10838
10839 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
10840
10841         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
10842         folding.
10843         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
10844         folding.
10845         * ToolStrip.cs: Add a null check to mnemonics.
10846         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
10847         no ConnectedArea.
10848         [Fixes most of bug #81689]
10849
10850 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10851
10852         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
10853
10854 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10855
10856         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
10857
10858 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10859
10860         * DataGridViewCell.cs: EditType: returns
10861           DataGridViewTextBoxEditingControl always.
10862
10863 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
10864
10865         * TextRenderer.cs: Remove the LineLimit string format flag from the
10866         DrawString fallback method so that things like buttons that aren't
10867         tall enough to draw a full line will still draw part of the text.
10868         [Fixes part of bug #82272]
10869
10870 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10871
10872         * DataGridView.cs: Implemented AutoResizeColumn(s).
10873         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
10874           according to the Alignment.
10875         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
10876           Implement alignment and padding when painting.
10877         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
10878           exists.
10879         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
10880           way.
10881         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
10882           a column is added.
10883
10884 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10885
10886         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
10887         which is internal.
10888
10889 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10890
10891         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
10892         hide GetPreferredSize from public API.
10893         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
10894         * ToolStripItem.cs: Stub out drag and drop methods and events.
10895         * ToolStripManager.cs: Stub out Save/LoadSettings.
10896         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
10897         * ToolStripPanel.cs: Fix corcompare error.
10898         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
10899         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
10900         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
10901
10902 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10903
10904         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
10905         bounds height instead of PreferredHeight.  Puts things back the way 
10906         they were for height while still fixing the width.  Fixes broken unit
10907         tests.
10908
10909 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10910
10911         * Binding.cs: Implement 2.0 constructors and add a null check.
10912
10913 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10914
10915         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
10916           and fix row index (off by one).
10917
10918 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10919
10920         * PropertyGridView.cs: Remove debug output.
10921
10922 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10923
10924         * Control.cs: We need to reset the is_created flags when the handle is
10925           destroyed. Fixes #82187.
10926         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
10927           client coordinates if the window doesn't have a parent.
10928           Win32GetParent returns the parent or the owner, and for top-level
10929           windows with no parent (but with an owner) we were calculating the
10930           location from the location of the owner.
10931         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
10932           form has been disposed.
10933         * MdiClient.cs: Add a null-check.
10934
10935 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
10936
10937         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
10938         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
10939         so we can provide an implementation that returns the current width
10940         and preferred height.  Allows anchor = right to work with TextBox 2.0.
10941         [Fixes bug #82233]
10942
10943 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10944
10945         * ListView.cs: Add support for navigating items in Groups mode, by
10946         creating a big matrix containing all rows and cols of all groups. When
10947         are in other mode than Details, pressing Up should have a similar
10948         behaviour as that one of Down (moving to the next available column if
10949         current one doesn't have an item in the requested row). Also, don't
10950         proceed to use groups if ShowGroups is false.
10951         * ListViewGroup.cs: Add an internal int field to store the starting
10952         row of the group (used by the big matrix used for navigating the
10953         ListView).
10954         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
10955         false.
10956
10957 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
10958
10959         * ToolStripDropDown.cs: When we do Show, start with the 
10960         DefaultDropDownDirection, but if our popup menu is going to off-screen,
10961         modify the direction to keep it on screen.  [Fixes bug #82210]
10962
10963 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
10964
10965         * FileDialog.cs: Accept any FilterIndex value, and store it
10966         unmodified. When FilterIndex is less than 1, or greater than number
10967         of filters, then default to first filter. Only add filter extension to
10968         file if user did not specifiy an extension. When type of dialog is
10969         OpenFileDialog and DefaultExt is set, then only use filter extension
10970         if: CheckFileExists is true and no file wih the default extension
10971         exists, or CheckFileExists is false, and user specified file does not
10972         exist. When CheckFileExists is true, then add first extension of 
10973         selected filter that matches existing file. Perform checks for
10974         existing file, overwrite and create after extension has been added to
10975         file name. When CheckFileExists is true and type is SaveFileDialog,
10976         then only consider first filter extension if DefaultExt is set.
10977         When CheckFileExists is true, then ignore DefaultExt if file with that
10978         extension does not exist. Also perform check for existing file when
10979         type is SaveFileDialog. Changed some field to constants.
10980
10981 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10982
10983         * ListView.cs: Take into account the region used by header
10984         control when doing the vertical scroll (this way we invalidate
10985         the precise area, and don't get any dirty one).
10986
10987 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
10988
10989         * FileDialog.cs: Check for valid filterIndex on button open/save. 
10990         Fixes #82184.
10991
10992 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10993
10994         * ListView.cs: Update some layout calculations in details view
10995         and clean the code in a pair of assignations.
10996
10997 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10998
10999         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11000         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11001         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11002         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11003
11004 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11005
11006         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11007         performance of thread-safe Graphic methods.  (Thanks rolf!)
11008
11009 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11010
11011         * ListView.cs: When doing the layout calculations, don't calculate
11012         scroll bars before handle is created. This is unnecessary and also
11013         calculating them before handle creation item causes a number of random
11014         bugs (which begin to appear after Chris' big patch for handle creation
11015         fixes). 
11016
11017 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11018
11019         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11020         for things that don't have a Graphics object.  Currently, things just use
11021         the static Hwnd.bmp_g which is not thread safe.
11022
11023 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11024
11025         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11026           dialog. Fixes #82187.
11027
11028 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11029
11030         * DataGridViewElement.cs: Initialize state.
11031         * DataGridView.cs: Forward a few Mouse events to cells. Add
11032           GetRowInternal and GetCellInternal that doesn't unshare rows.
11033           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11034           don't use the index, but look it up. Add
11035           DataGridViewControlCollection.RemoveInternal to remove controls
11036           that Remove won't remove (scrollbars, edit control).
11037         * DataGridViewColumn.cs: Initialize State correctly.
11038         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11039           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11040           implementing this.
11041         * DataGridViewRowCollection.cs: Implemented shared rows.
11042         * DataGridViewRow.cs: Throw exceptions as MS do.
11043         * DataGridViewCell.cs: A few properties are implemented by a
11044           Get<Property> method, so move implementation there and remove the
11045           NIEX in the method. Add a bunch of OnXInternal that DataGridView
11046           calls when necessary.
11047         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11048           complicates matters.
11049         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11050           unshare any rows.
11051
11052 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11053
11054         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11055         the children controls.  Instead, we will just set up the proper docking for the
11056         children controls so we don't have to worry about it.  [Fixes bug #82188]
11057
11058 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11059
11060         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11061         canceling and correct Before/AfterLabelEdit properties as layed out in bug
11062         81847.  [Fixes bug #81847]
11063
11064 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11065
11066         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11067         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
11068         an explicit size based on the design-time size of the text.  Since our fonts
11069         may not match this explicit size, we tend to cut off the ends of people's labels.
11070
11071 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
11072
11073         * Menu.cs: Add some missing methods to MenuItemCollection.
11074
11075 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11076
11077         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11078         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11079         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11080         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11081         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11082         * DataGridViewElement.cs: State defaults to Visible.
11083         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11084         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11085
11086 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11087
11088         * Control.cs: Minor 1.1 corcompare fix.
11089
11090 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11091
11092         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11093         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11094
11095 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11096
11097         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11098           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11099           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11100           DataGridViewSelectedColumnCollection.cs,
11101           DataGridViewSelectedRowCollection.cs: Corcompare work.
11102
11103 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11104
11105         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
11106         it is autoset by VS2005 designer and the effect is barely noticeable.
11107
11108 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11109
11110         * TreeView.cs: Implement HitTest.
11111
11112 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11113
11114         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11115           manually adding and removing the control from the Controls
11116           collecftion.
11117         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11118           EditingControlInternal property that tracks the editing control.
11119           Always keeping the scrollbars in the Controls collection, as MS
11120           testing confirms is the right behaviour.
11121
11122 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11123
11124         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11125           according to MSDN and new test.
11126
11127 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11128
11129         * TreeNode.cs: Implement ToolTipText.
11130         * TreeView.cs: Implement tooltips, NodeMouse* events.
11131
11132 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11133
11134         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
11135
11136 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11137
11138         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
11139         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
11140
11141 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
11142
11143         * Control.cs, Form.cs, ContainerControl.cs,
11144         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
11145         for misc properties.
11146
11147 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11148
11149         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
11150         * TreeView.cs: Implement StateImageList.
11151
11152 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11153
11154         * Form.cs: Don't check if the current form is the active form before
11155           activating it. Fixes #81904.
11156
11157 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11158
11159         * Form.cs: Don't check if the current form is the active form before
11160           activating it. Fixes #81904.
11161
11162 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11163
11164         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
11165
11166 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11167
11168         * Form.cs: Don't try to position the form after loading if the form was
11169           disposed. Fixes #81969.
11170
11171 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11172
11173         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
11174           properties. Had to change ToolBar into ToolStrip, which required a
11175           few #ifs.
11176
11177 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11178
11179         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
11180           resized, fixes part of #79829 (vertical lines in toolbar).
11181           PropertyGrid: Refactored Populate* to something that's easier to
11182           follow at least for me, as well as splitting it up into several new
11183           methods, required to update only subitems when something has
11184           changed by a popup editor or listbox. Don't use events to check
11185           when any values are changed, since the events are unreliable (we're
11186           changing the objects the events are registered with, and if the
11187           event handling requires the objects to be immutable (objects stored
11188           in hashtables for instance), the events will never be raised).
11189         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
11190           everytime we change a value, since events are unreliable.
11191           DropDownButtonClicked: For the same reason don't compare objects to
11192           check if it has changed or not, it would require all objects to
11193           derive Equals. Fix dialog location on windows, MS is doing weird
11194           things when creating parented forms.
11195         * GridEntry.cs: Add a SelectedObject setter.
11196
11197 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11198
11199         * TreeNode.cs: Add some corcompare attributes.
11200         * TreeNodeCollection.cs: Implement 2.0 stuffs.
11201         * TreeView.cs: Implement some 2.0 stuffs.
11202
11203 2007-07-18  Andreia Gaita  <avidigal@novell.com>
11204
11205         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
11206         for moma.
11207
11208 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11209
11210         * ListBox.cs: Implement custom tab offsets.
11211
11212 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11213
11214         * ToolStripContentPanel.cs: Support System renderer.
11215         * ToolStripControlHost.cs: Set RightToLeft to default to No.
11216
11217 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11218
11219         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
11220
11221 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11222
11223         * CheckBox.cs: Chain TextAlign to base implementation instead of
11224         maintaining another one.
11225
11226 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11227
11228         * ButtonBase.cs: Fix an incorrect string constant.
11229
11230 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11231
11232         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
11233         of creating one for measuring strings.
11234
11235 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11236
11237         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
11238         Implement MaxItemSize.
11239
11240 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11241
11242         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
11243         for DeviceContext.  Instead, use the static one available in Hwnd.
11244         Informal tests show this saves about 500k on formtest.exe.
11245
11246 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11247
11248         * ContainerControl.cs: Implement 2.0 AutoScaling.
11249
11250 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11251
11252         * ComboBox.cs: Work around bug #82120 (bug in mcs).
11253
11254 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11255
11256         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
11257         Darken the focus color.
11258
11259 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11260
11261         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
11262         for the checkbox.
11263         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
11264         X, Y instead of a rect for drawing text.
11265         - For ControlPaint.DrawCheckBox, center the check a little better when the
11266         checkbox is odd width.  When drawing a flat checkbox, use a white background
11267         when state != inactive.
11268         [Fixes bugs #82097, 82100]
11269
11270 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
11271
11272         * ListControl.cs: When changing CurrencyManager, disconnect event
11273         handlers from previous one. Fixes bug #81771. Code formatting.
11274
11275 2007-07-15  Andreia Gaita <avidigal@novell.com>
11276
11277         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
11278         full preview invalidation from layout invalidation, and only invalidate
11279         the layout when setting zoom or other properties. Invalidation should
11280         always be done even when resetting properties with the same values as
11281         what is there. Fixes #81744 and #79830.
11282
11283 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11284
11285         * ListView.cs: Implement initial support for Groups. Split some of the
11286         LayoutIcons code to render a partial list of the items (needed by
11287         items contained in ListViewGroup instances). Let the
11288         ListViewItemsCollection.ListView property be modifiable (needed when
11289         using Groups, too).
11290         * ListViewGroup.cs: Use a Bounds property rather than a Location
11291         one. Also invalidate the bounds when they get changed.
11292         * ThemeWin32Classic.cs: When drawing items, also draw the group header
11293         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
11294         method as well.
11295
11296 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11297
11298         * ListView.cs: When space gets pressed and CheckBoxes is true, 
11299         don't invoke the Begin and EndUpdate methods. We are generating 
11300         a redraw of the entire control without need to do so.
11301
11302 2007-07-13  William Holmes <billholmes54@gmail.com> 
11303
11304         * Control.cs: Changing logic in FindFlatForward and 
11305           FindFlatBackward to handle multiple Controls with 
11306           the same TabIndex.  
11307           This fixes bug 81687.
11308
11309 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
11310
11311         * OSFeature.cs: Enable IsPresent.
11312
11313 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11314
11315         * Control.cs: Don't do anything in WmShowWindow if the control has been
11316           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
11317           control is created, put on a form, the control is disposed (the
11318           form is never shown), and then we get a MapNotify, triggering a
11319           WM_SHOWWINDOW.
11320         * Form.cs: Exclude the current form when sending Deactivate to all
11321           MdiChildren.
11322         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
11323           there was a race condition because assigning the handle raises
11324           events, we can get more messages, therefore trying to assign the
11325           handle again, which would fail if any of those event handlers
11326           closed/disposed the control.
11327
11328 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11329
11330         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
11331
11332 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
11333
11334         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
11335         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
11336
11337 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11338
11339         * DateTimePicker.cs: If there's no part format specifier, return an
11340           empty string.
11341
11342 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
11343
11344         * FlatButtonAppearance.cs: Throw NotSupportedException for a
11345         Transparent BorderColor.
11346
11347 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11348
11349         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
11350           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
11351           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
11352           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
11353           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
11354           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
11355           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
11356           Remove warnings.
11357         * X11Structs.cs: Remove warnings, add ToString implementations.
11358
11359 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11360
11361         * XplatUIX11.cs: Translate min/max size according to the actual min/max
11362           size, and not the current size. Fixes #81798.
11363
11364 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11365
11366         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
11367           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
11368           to the control yet).
11369
11370 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11371
11372         * PropertyGridTextBox.cs: Add a method that sends any forwarded
11373           mousedowns to the contained textbox.
11374         * X11Structs.cs: More ToString implementation.
11375         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
11376           #81791.
11377
11378 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11379
11380         * PropertyGridView.cs: Add a null-check, fixes a few tests.
11381
11382 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
11383
11384         * TableLayoutPanelCellPosition.cs: TypeConverter.
11385
11386 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11387
11388         [ Fixes #79761]
11389         
11390         * PropertyGridTextBox.cs: Propagate any color changes to all contained
11391           controls.
11392         * PropertyGridView.cs: A few color fixes.
11393
11394 2007-07-10  Jackson Harper  <jackson@ximian.com>
11395
11396         * TextControl.cs: Remove some old unused text formatting stuff.
11397
11398 2007-07-10  Jackson Harper  <jackson@ximian.com>
11399
11400         * TreeView.cs: Update full row select invalidation to match the
11401         newer DrawSelection... method.
11402         - Make sure to invalidate the entire width when selecting a new
11403         node, if we have full row selection enabled.
11404
11405 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11406
11407         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
11408           display of properties again.
11409
11410 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
11411
11412         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
11413         to existing collections.
11414
11415 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11416
11417         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
11418         that changed between 1.1 and 2.0.
11419
11420 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11421
11422         * PowerStatus.cs: Added.  This is just a data class, it is filled
11423         in by SystemInformation.
11424
11425 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11426
11427         * Message.cs: Add op_Equality and op_Inequality.
11428
11429 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11430
11431         * MenuStrip.cs: Finish corcompare work.
11432
11433 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11434
11435         * LinkArea.cs: Add op_Equality and op_Inequality.
11436
11437 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11438
11439         * Application.cs: Add MessageLoopCallback delegate.
11440
11441 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11442
11443         * ListBox.cs: First set of 2.0 stuffs.
11444
11445 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11446
11447         * Control.cs: Make an internal Height property we can override
11448         without messing up the public API.
11449         * ListBox.cs: Override HeightInternal to always return the size
11450         the user set.  [Fixes bug #80466]
11451
11452 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
11453
11454         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
11455         paint cell borders if we haven't calculated where they go yet.
11456         [Fixes bugs #82040 and #82041]
11457
11458 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11459
11460         * ListView.cs: In Details view, set the location of item_control
11461         in the (0,0) position (and the header_control is thus on the
11462         item_control). This way the Bounds of the Items are relative to the
11463         ListView control (before this, they had a Bounds value without the
11464         header_control offset, which wasn't matching .Net). Fixes #82004.
11465
11466 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11467
11468         * ListControl.cs: When DataSource is set to null, pass an empty
11469         array of object to SetItemsCore. This is done to clean the items
11470         in the ListContol children. Fixes #81788.
11471
11472 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11473
11474         * ListControl.cs: Add 2.0 stuffs.
11475
11476 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11477
11478         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
11479         Refresh is overkill for just about every repaint request.
11480
11481 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11482
11483         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
11484         so remove my custom Get method and fix the property getter.
11485
11486 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11487
11488         * Label.cs: DefaultMargin for 2.0.
11489
11490 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11491
11492         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
11493         reported issue where other controls with mnemonics would steal strokes
11494         from a selected ComboBox.
11495
11496 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11497
11498         * ScrollOrientation.cs: Make internal for 1.1.
11499         * ScrollEventArgs.cs: Add 2.0 stuffs.
11500
11501 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
11502
11503         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11504         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
11505         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
11506
11507 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11508
11509         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
11510
11511 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11512
11513         * ListView.cs: Implement the so-incredibly broken 2.0 
11514         VirtualItemsSelectionRangeChanged event.
11515
11516 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11517
11518         * ListView.cs: When enter is pressed and selection is non empty,
11519         an OnItemActivate event must be fired.
11520
11521 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11522
11523         * ListView.cs: Store the FocusedItem information as an
11524         int instead of a ListViewItem (needed by VirtualMode).
11525         Update the calls to SetFocusedItem to pass an index instead of
11526         an item.
11527         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
11528         the Focused state from the owner ListView. 
11529
11530 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11531
11532         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
11533         property. Also, invalidate previous focused item in the mentioned
11534         property (match .Net).
11535
11536 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11537
11538         * ListView.cs: Implement 2.0 FocusedItem property setter.
11539
11540 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11541
11542         * ListView.cs: Implement 2.0 TopItem property setter.
11543
11544 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
11545
11546         * StatusStrip.cs: The default renderer is System.
11547         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
11548         if the user specifies it.
11549         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
11550         if we are ManagerRenderMode.
11551         * ToolStripMenuItem.cs: Calculate our text color better.
11552         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
11553         from Professional to the base class based off working with the System renderer.
11554         * ToolStripSystemRenderer.cs: Added.
11555
11556 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11557
11558         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
11559
11560 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
11561
11562         * ToolTip.cs: Implement 2.0 Tag property.
11563
11564 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11565
11566         * ListView.cs: Implement 2.0 HitTest methods.
11567
11568 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11569
11570         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
11571         item is under the pointer or not (sugar). Also remove the TODO
11572         regarding to the cursor changes in OneClick activation.
11573         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
11574         the subitems use the parent's HotFont if UseItemStyleForSubItems is
11575         true; otherwise don't show the underline style.
11576
11577 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11578
11579         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
11580         the code to retrieve the item at position only one time. Also
11581         change cursor when Activation is ItemActivation.OneClick as well
11582         as invalidate the item if HotTracking is true (to show/hide the
11583         underline style). Add an internal HotItemIndex property to retrieve
11584         the current hot item's index.
11585         * ListViewItem.cs: Add an internal HotFont property to cache the
11586         font used when HotTracking is true and the pointer moves within the
11587         item's borders.
11588         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
11589         HotFont depending on the hot state of the item.
11590
11591 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11592
11593         * ListView.cs: Implement 2.0 HotTracking property.
11594
11595 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11596
11597         * ToolStripControlHost.cs: If our hosted control never got created,
11598         don't try to dispose it.  [Fixes bug #81909]
11599
11600 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11601
11602         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
11603
11604 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11605
11606         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
11607
11608 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11609
11610         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
11611         Details view.
11612         * DrawListViewColumnHeaderEventArgs.cs:
11613         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
11614         using the DrawText () methods.
11615
11616 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
11617
11618         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
11619         background which got erased in my changes yesterday.
11620
11621 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11622
11623         * ListViewItem.cs: Actually set bounds for subitems in Details view
11624         (2.0 feature).
11625         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
11626         can invoke from the owner draw routines if we need it. Also, add
11627         support for Owner draw in Details view.
11628
11629 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11630
11631         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
11632         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
11633         ShowImageMargin setting, properly align text in a ToolStripLabel
11634         hosted on a ToolStripDropDown.
11635
11636 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11637
11638         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
11639         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
11640
11641 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11642
11643         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
11644
11645 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11646
11647         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
11648         location to match ToolStripMenuItems.
11649
11650 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11651
11652         * DrawListViewColumnHeaderEventArgs.cs:
11653         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
11654         column headers in ListView. 
11655
11656 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
11657
11658         * UserControl.cs: Implement AutoSize.
11659
11660 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11661
11662         * DrawListViewItemEventArgs.cs:
11663         * ListView.cs:
11664         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
11665         ListView.
11666
11667 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
11668
11669         * ToolStripDropDownItemAccessibleObject.cs: Added.
11670         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
11671         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
11672         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
11673         ToolStripTextBox.cs: corcompare work.
11674
11675 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
11676
11677         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
11678         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
11679         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
11680                 corcompare.
11681
11682 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
11683
11684         * OSFeature.cs: Add IsPresent.
11685         * PrintPreviewControl.cs: Add RightToLeft.
11686         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
11687         * SplitterPanel.cs: Add AutoSizeMode.
11688
11689 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11690
11691         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
11692         * MdiClient.cs: Add 2.0 ScaleControl.
11693         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
11694         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
11695
11696 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11697
11698         * Form.cs: Implement some scaling methods, stub some RTL methods,
11699         corcompare work.
11700
11701 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11702
11703         * Control.cs: corcompare work.
11704         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
11705
11706 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11707
11708         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
11709         ControlPaint 2.0 stuffs.
11710
11711 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11712
11713         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
11714
11715 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11716
11717         * UpDownBase.cs: Add 2.0 stuffs.
11718
11719 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11720
11721         * NumericUpDown.cs: Add 2.0 stuffs.
11722
11723 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11724
11725         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
11726
11727 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11728
11729         * ErrorProvider.cs: Implement 2.0 stuffs.
11730
11731 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11732
11733         * DomainUpDown.cs: Implement 2.0 stuffs.
11734
11735 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11736
11737         * CheckedListBox.cs: Fix RefreshItems signature.
11738
11739 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11740
11741         * PictureBox.cs: Implement 2.0 stuffs.
11742
11743 2007-06-12  Andreia Gaita  <avidigal@novell.com>
11744         
11745         * TabControl.cs: Check if there are tabpages before checking
11746         the selected index - fix #81802 (font changes raise a ResizeTabs
11747         call on controls.add, which blew up nicely with no tabpages)
11748
11749 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11750
11751         * ListView.cs:
11752         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
11753
11754 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11755
11756         * ListView.cs:
11757         * ListViewItem.cs: In VirtualMode the selection information
11758         resides in the ListView, rather than in the Items. Also, throw
11759         InvalidOperationExceptions when VirtualMode is being used and
11760         CheckedItemCollection is accessed.
11761
11762 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11763
11764         * ComboBox.cs: Add ScaleControl.
11765
11766 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11767
11768         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
11769
11770 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11771
11772         * GroupBox.cs: Add 2.0 stuffs.
11773
11774 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11775
11776         * Panel.cs: Add autosize properties/event.
11777
11778 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
11779
11780         * Control.cs:
11781         - When we remove a control, remove it from the collection before performing the layout.
11782         - Setup an internal property for explicit_bounds.
11783         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
11784         - Perform a layout when we set a new AutoSizeMode.
11785
11786 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
11787
11788         * ScrollableControl.cs: Add 2.0 stuffs.
11789
11790 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11791
11792         * ScrollBar.cs: Add 2.0 stuffs.
11793
11794 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11795
11796         * Splitter.cs: Add 2.0 stuffs.
11797
11798 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11799
11800         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
11801         to have BindingContext simply use base implementation.
11802
11803 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11804
11805         * ColumnHeader.cs: corcompare fix.
11806
11807 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11808
11809         * Button.cs: corcompare fixes.
11810         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
11811
11812 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11813
11814         * Button.cs: Override GetPreferredSizeCore.
11815         * ButtonBase.cs: PerformLayout after changing properties that can affect
11816         AutoSize.  Simplify some mouse/keyboard code.
11817         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
11818         * MouseEventArgs.cs: Make Location internal for 1.1.
11819         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
11820         * Theme.cs: Add CalculateButtonAutoSize.
11821         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
11822
11823 2007-06-05  Miguel de Icaza  <miguel@novell.com>
11824
11825         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
11826
11827 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11828
11829         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
11830         since we can get different item instances every time we retrieve it.
11831
11832 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11833
11834         * ListView.cs: Work around for #81602, since an unkown an pretty
11835         infrequent condition appears only in some systems (old linux boxes, it
11836         seems).
11837
11838 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11839
11840         * Button.cs: Completely reformat and a little refactor to bring
11841         this closer to Mono circa 2007.
11842
11843 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11844
11845         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
11846         to be ButtonBase.Invalidate.
11847
11848 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11849
11850         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
11851
11852 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11853
11854         * ButtonBase.cs: Completely reformat and a little refactor to bring
11855         this closer to Mono circa 2007.
11856
11857 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
11858
11859         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
11860         values for autosize. Fixes #80137.
11861
11862 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11863
11864         * Control.cs: Don't perform layout when AutoSize changes.
11865         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
11866         directly when autosizing, use SetBounds with BoundsSpecified.None.
11867         Fixes unit tests my last commit broke.
11868
11869 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11870
11871         * Control.cs: Perform layout when AutoSize changes.
11872         * Form.cs: Implement AutoSizing.
11873
11874 2007-06-01  Chris Toshok  <toshok@ximian.com>
11875
11876         * DataGrid.cs: remove the XXX'ed check at the top of
11877         ProcessGridKey.  fixes #80464.
11878
11879 2007-06-01  Chris Toshok  <toshok@ximian.com>
11880
11881         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
11882         adding idempotent (add/remove in Edit()), and also make sure we
11883         don't add it until after we set the text, so it's not tripped in
11884         Edit().  Fixes unit test regression.
11885
11886 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11887
11888         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
11889         change is user explicit, not when the layout engine moves stuff.  Fixes
11890         anchoring to bottom and right.  [Fixes bug #81790]
11891
11892 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11893
11894         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
11895
11896 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11897
11898         * ContainerControl.cs: 
11899         Fire enter event for common ancestor if it is not a ContainerControl.
11900         Send focus to the active_control and not the 'value', the active 
11901         control might have been changed in one of the events fired.     
11902         Definitely fixes #80159.
11903
11904 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11905
11906         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
11907
11908 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11909
11910         * PropertyGrid.cs: Anchor the help description to the bottom of the
11911           help panel and refactor SelectGridItem into a
11912           SelectGridItemInternal that can be set to null (and update it to
11913           clear the help texts when it is set to null). Set root item to null
11914           when there's no SelectedObject. Fixes #80438.
11915         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
11916           when we're recalculating after a resize (only).
11917
11918 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11919
11920         * ListView.cs: Implement 2.0 RedrawItems method.
11921
11922 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11923
11924         * ListControl.cs: Disconnect PositionChanged and ItemChanged
11925         handlers from previous data manager when DataSource is set to
11926         null. Fixes #81771.
11927
11928 2007-05-31  Jackson Harper  <jackson@ximian.com>
11929
11930         * TextBoxBase.cs: These seem to be the correct values.
11931
11932 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
11933
11934         * FileDialog.cs: When close dialog with ok set filterindex using combobox
11935         value. Fixes #81784.
11936
11937 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
11938
11939         * Control.cs: Implement 2.0 scaling methods.
11940
11941 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11942
11943         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
11944           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
11945           corcompare issues.
11946
11947 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11948
11949         * ProgressBar.cs: Implemented missing 2.0 members.
11950
11951 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11952
11953         * Control.cs: Corcompare issues.
11954         * MessageBox.cs: Implemented missing 2.0 functions.
11955
11956 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11957
11958         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
11959           Implemented more 2.0 members.
11960
11961 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11962
11963         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
11964           null (strange, but it seems to happen when running unit tests).
11965
11966 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11967
11968         * ContainerControl.cs: Set active_control even earlier, before 
11969         firing any events, and undo it if validation returns false.
11970
11971 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11972
11973         * ContainerControl.cs: Raise Validation and Enter/Leave events
11974         even if there is no Form and set active_control earlier, just
11975         before firing Enter events (toshok's patches). Fixes #80647.
11976
11977 2007-05-30  Jackson Harper  <jackson@ximian.com>
11978
11979         * TextControl.cs: Redid the pageup/pagedown a little to simplify
11980         things and fix bug #81311.
11981
11982 2007-05-30  Jackson Harper  <jackson@ximian.com>
11983
11984         * X11Dnd.cs: Now that we have our own event loop, we need to
11985         cancel when we get a mouseup but it won't be accepted.
11986
11987 2007-05-30  Chris Toshok  <toshok@ximian.com>
11988
11989         * DataGrid.cs (set_CurrentCell): guard against negative
11990         column/row.
11991
11992         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
11993         array index syntax instead of looping over the property names.
11994
11995         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
11996         and set IsInEditOrNavigateMode to false there.
11997
11998 2007-05-30  Jackson Harper  <jackson@ximian.com>
11999
12000         * TreeView.cs: Make sure we don't get a bad visible order when
12001         setting to the top node.  Fixes some misc crashing in
12002         ControlInspector.
12003
12004 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12005
12006         * UserControl.cs: Add 2.0 AutoSizeMode
12007
12008 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12009
12010         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12011
12012 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12013
12014         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12015         lines. Fixes #80285. 
12016
12017 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12018
12019         * DataGridColumnStyle.cs: Add char trimming column header text format. 
12020
12021 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12022
12023         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
12024         Fixes #80147.
12025
12026 2007-05-29  Jackson Harper  <jackson@ximian.com>
12027
12028         * TreeNode.cs: Fix off by one on calculating whether or not a node
12029         is visible.
12030
12031 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
12032
12033         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12034         * ScrollableControl.cs: Force an UpdateDistances when we move the
12035         scrollbars.
12036         [Fixes bug #80605]
12037
12038 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12039
12040         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12041         update the page setup screen.
12042
12043 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12044
12045         * PageSetupDialog.cs: Fix landscape mode.
12046
12047 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12048
12049         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12050         IconSizeHorizontalSpacing.
12051
12052 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12053
12054         * ListView.cs: The declaration of prev_tooltip_item should be inside
12055         a NET_2_0 conditional (avoid a warning).
12056
12057 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12058
12059         * PageSetupDialog.cs: Implement PrintPreview control to display
12060         the preview thumbnail. Change unit conversion to use 
12061         PrinterUnitConvert methods.
12062         
12063         Note: there is a huge bug in ms.net where the default margins are 
12064         interpreted as centimeters (?), when in fact they are set in inches. When 
12065         loading the page setup dialog initially (ms.net), the default margins 
12066         are set to 1 inch, and the dialog shows them with value 10, when in fact 
12067         it should be 25 (properly converted). Our dialog doesn't have this bug.
12068         
12069         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
12070         RectangleF.
12071         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12072
12073 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12074
12075         * ListView.cs:
12076         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12077         items.
12078
12079 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12080
12081         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12082         an IntPtr on csc (it builds fine on mcs, could it be a compiler
12083         bug?), convert the ptr to Int32 first.
12084
12085 2007-05-28  Jackson Harper  <jackson@ximian.com>
12086
12087         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12088         recieved, we will exit the dnd tracking loop.
12089
12090 2007-05-28  Jackson Harper  <jackson@ximian.com>
12091
12092         * X11Dnd.cs: Keep tracking until the xdnd finished event is
12093         recieved. TODO: I should probably stick a timer on the dropped
12094         event, and finish the drag if the XDND Finished event never shows
12095         (because some apps don't seem to send it).
12096
12097 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
12098
12099         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12100         #81733.
12101
12102 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12103
12104         * MonthCalendar.cs: Only mark the keypresses we actually handle as
12105           handled.
12106
12107 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12108
12109         * MonthCalendar.cs: Set the size after initializing all the relevant
12110           variables. Fixes #81742.
12111
12112 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12113
12114         * KeyEventArgs.cs: Fix typo.
12115
12116 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
12117
12118         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12119         to match MS. Fixed MinDate to only accept value less than or equal
12120         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12121         Removed TODO's that are now verified by unit tests.
12122
12123 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
12124
12125         * TreeNodeCollection.cs: Minor corrections to exceptions to match
12126         MS.
12127
12128 2007-05-25  Jackson Harper  <jackson@ximian.com>
12129
12130         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
12131         it's own message loop.
12132         * XplatUIX11.cs: Remove some of the dnd hooks
12133
12134 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
12135
12136         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
12137         instead of MinimizedWindowSize.
12138
12139 2007-05-25  Jackson Harper  <jackson@ximian.com>
12140
12141         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
12142
12143 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12144
12145         * KeyEventArgs.cs: Added SuppressKeyPress.
12146         * Control.cs: Added support for SuppressKeyPress.
12147
12148 2007-05-24  Andreia Gaita  <avidigal@novell.com>
12149
12150         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
12151         problems with PieChart. suppress_validation should not be a counter,
12152         if there are several BeginInit calls, the first EndInit will 
12153         activate validation. Fix exceptions thrown by set_Value.
12154         * UpDownBase.cs: ValidateText only if it's the user editing it.
12155
12156 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12157
12158         * ListControl.cs: FilterItemOnProperty should return the filtered
12159         item proeprty even if DataSource is null. The same applies for
12160         GetItemText. Fixes #80427.
12161
12162 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12163
12164         * Control.cs: If a control doesn't have a parent when it's Dock is
12165         set, but it has children, it needs to do a layout.  Fixes some nested
12166         controls issues.  [Fixes bug #81199]
12167
12168 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12169
12170         * ComboBox.cs: If there are few items in the drop down list, make it
12171           the exact size the items need, no bigger. Fixes #81612.
12172
12173 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12174
12175         * Application.cs: When we have captured the keyboard for a menu,
12176         check for mouse down events in case we need to close the menu.
12177         * Control.cs, Form.cs: Remove mouse down checks for menus.
12178
12179 2007-05-24  Jackson Harper  <jackson@ximian.com>
12180
12181         * TextControl.cs: Handle tabs in non multiline mode a little
12182         differently.
12183
12184 2007-05-24  Jackson Harper  <jackson@ximian.com>
12185
12186         * TextControl.cs: We need to manually break apart tabbed text and
12187         move the tabs, since the system.drawing tabbing mechanism relies
12188         on tab stops.
12189         * TextBoxBase.cs: Move the caret properly when the user enters a
12190         tab.
12191
12192 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12193
12194         * ContainerControl.cs: Don't check CanSelect before calling
12195         ProcessMnemonic.
12196         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
12197         release a KeyboardActive on click if it's not ours.
12198
12199 2007-05-23  Andreia Gaita  <avidigal@novell.com>
12200
12201         * ColumnHeader.cs: Add TypeConverter
12202
12203 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12204
12205         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
12206
12207 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12208
12209         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
12210
12211 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12212
12213         * LinkLabel.cs: Implement public Padding property.
12214
12215 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12216
12217         * LinkLabel.cs: Implement public FlatStyle.
12218
12219 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
12220
12221         * Control.cs: Apply patch from George to call parent.PerformLayout
12222         when Visible is changed.  [Fixes bugs #81118, 81718]
12223
12224 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12225
12226         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
12227
12228 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12229
12230         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
12231
12232 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12233
12234         * ContextMenu.cs: Implement Collapse.
12235
12236 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
12237
12238         * ToolBarButton.cs: Implement Name.
12239
12240 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12241
12242         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
12243         use current_item, it prevents some NRE. Fixes #81675.  
12244
12245 2007-05-22  Andreia Gaita  <avidigal@novell.com>
12246
12247         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
12248         without updating the text.
12249
12250 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12251
12252         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
12253         without calling DeleteObject.  [Should fix bug #81709]
12254
12255 2007-05-22  Jackson Harper  <jackson@ximian.com>
12256
12257         * RichTextBox.cs: Set the line endings correctly, when flushing
12258         RTF text.
12259
12260 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
12261
12262         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
12263          {Width=0,Height=0}.
12264
12265 2007-05-22  Jackson Harper  <jackson@ximian.com>
12266
12267         * TreeView.cs: Setting top with a null node should set to the very
12268         top.
12269
12270 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12271
12272         * Form.cs: ShowDialog: destroy the handle when message loop is
12273           finished, matches MS behaviour. Refactor parts of WmClose into
12274           RaiseCloseEvents, that only raises events if they haven't already
12275           been raised. Fixes #81688 and #81521.
12276         * Application.cs: Don't call close on the form when exiting a modal
12277           loop, it will raise all the (Form)Closed/Closing events again if
12278           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
12279           which doesn'r raise any events it they have been raised before.
12280
12281 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12282
12283         * Control.cs: Add OnPrint.
12284         * ToolStrip.cs: Add GetChildAtPoint.
12285         * ToolStripContainer.cs: Add OnRightToLeftChanged.
12286         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
12287
12288 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12289
12290         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
12291
12292 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12293
12294         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
12295           isn't visible anymore. Fixes #81651.
12296
12297 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12298
12299         * Control.cs: WmShowWindow: Update children's z-order after setting
12300           their parent. SetParent may show the window, thereby corrupting
12301           z-order, since the window will be shown on top.
12302         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
12303           multiple (and redundant) WM_SHOWWINDOW messages.
12304         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
12305           event has already been raised.
12306         * Form.cs: Change is_changing_visible_state to a counter, since
12307           SetVisibleCore can be called recursively. CreateHandle: when
12308           creating mdi children, send (De)Activated events.
12309         * MdiClient.cs: Update use of is_changing_visible_state.
12310         * Application.cs: OnThreadException: Surround exception handling with
12311           try/finally to ensure we always reset the error-handling state
12312           before leaving.
12313
12314 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12315
12316         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
12317           (#81704).
12318
12319 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12320
12321         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
12322         SmallIcon views, now that we have a standarized horizontal spacing.
12323
12324         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
12325         4, just like the other views (Match .Net).
12326
12327 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
12328
12329         * Control.cs: Delay calculating anchor distances until we actually layout.
12330         Always query the WM for the actual size and location it put us at instead of
12331         only when we send negative values.
12332         [Fixes bugs #81694, 81695]
12333
12334 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12335
12336         * Application.cs: Avoid a possible stack overflow when trying to exit
12337           the application.
12338
12339 2007-05-19  Marek Safar  <marek.safar@gmail.com>
12340
12341         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
12342         enum value.
12343
12344 2007-05-19  Andreia Gaita  <avidigal@novell.com>
12345
12346         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
12347         * NumericUpDownAcceleration.cs, 
12348           NumericUpDownAccelerationCollection.cs: Added 2.0
12349           implementation.
12350
12351 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
12352
12353         * RichTextBox.cs: Recalculate the document after the ScrollBars
12354         property is changed. Fixes bug #81681.
12355
12356 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
12357
12358         * DataObject.cs: Implement 2.0 methods.
12359
12360 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12361
12362         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
12363         in the center of the checkbox, not in the left-top corner. 
12364         Fixes #80037.
12365
12366 2007-05-18  Jackson Harper  <jackson@ximian.com>
12367
12368         * RichTextBox.cs: Recalculate the document after the scrollbars
12369         property is changed.
12370         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
12371         81486.
12372
12373 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12374
12375         * CreateParams.cs: Make HasWindowManager marginally faster.
12376         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
12377           into Hwnd so that other drivers can use it as well.
12378         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
12379           the default location from Hwnd. Fixes MDI client windows always
12380           showing up at (0,0) in Windows (Win32 won't set the default
12381           location since the window styles aren't correct).
12382
12383 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
12384
12385         * TreeView.cs: Modified DoubleBuffered to just use the base
12386         implementation.
12387
12388 2007-05-18  Jackson Harper  <jackson@ximian.com>
12389
12390         * TreeView.cs: Set the top node to the last child node when
12391         expanding all
12392         - When we get focus, if there is no selected node, use the top
12393         node.
12394
12395 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
12396
12397         * KeysConverter.cs: Add CanConvertTo.
12398         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
12399         * LinkConverter.cs: Added.
12400
12401 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12402
12403         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
12404         it prevents error when file dont have write access. Fixes #81669 and #81667.  
12405
12406 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12407
12408         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
12409         button text. Fixes #79640.  
12410
12411 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12412
12413         * Control.cs: According to MSDN controls created in the designer theres 
12414         keyboard accelerators visible by default. So included check for design
12415         in ShowKeyboardCuesInternal.  
12416
12417 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12418
12419         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
12420         text. Fixes #81621.  
12421
12422 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12423
12424         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
12425         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
12426
12427 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12428
12429         * Control.cs: Finish implementation of UI State using WmChangeUIState
12430         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
12431         in some controls to check for show_keyboard_cues to draw accell keys "_".  
12432
12433 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12434
12435         * ListBox.cs: When calculating the horizontal scrollbar
12436         in single column mode, don't use values less than 0 for
12437         Maximum. Fixes #81474.
12438
12439 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12440
12441         * ListBox.cs: Throw the some missing exceptions in
12442         ListBox.ObjectCollection methods.
12443
12444 2007-05-17  Jackson Harper  <jackson@ximian.com>
12445
12446         * TextBoxBase.cs: Recalculate the document when the word wrap
12447         value has changed. This fixes 81488.
12448
12449 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
12450
12451         * Clipboard.cs: Implement missing GetText overload.
12452
12453 2007-05-17  Chris Toshok  <toshok@ximian.com>
12454
12455         * Control.cs (CheckDataBindings): remove the binding_context arg
12456         to binding.Check.
12457
12458         * CurrencyManager.cs (OnItemChanged): fix this now that
12459         BindingManagerBase is fixed. also remove the comment telling where
12460         the fix should go.  We set transfering_data to true/false around
12461         the call to PushData to keep UpdateIsBinding from being called.
12462         (ListChangedHandler): remove the extra OnMetaDataChanged call for
12463         PropertyDescriptorAdded in the 1.1 case.  The extra call is
12464         actually generated by System.Data generating 2 metadata changed
12465         events of its own per column add.  The fix should go there.  Add a
12466         comment to that affect in our test's Assert.Ignore.
12467
12468         * BindingManagerBase.cs: Rework PullData and PushData slightly.
12469         we keep a boolean flag (transfering_data) that keeps us from
12470         calling UpdateIsBinding multiple times if we re-enter either of
12471         them.
12472
12473         * ControlBindingsCollection.cs (AddCore): remove the
12474         binding_context arg to binding.Check.
12475
12476         * Binding.cs (IsBinding): don't check if we're binding here, just
12477         return our cached value.  we update it in UpdateIsBinding.
12478         (Check): don't take the binding_context arg, we'll just use our
12479         control's.  Also, for some reason MS doesn't use the data member
12480         field when getting the bindingmanager for this binding.  it just
12481         uses the datasource.  Make this method callable multiple times,
12482         and only do the is_null_desc stuff if manager.Position != -1 (so
12483         we don't get an exception accessing manager.Current).
12484         (UpdateIsBinding): move the code from IsBinding here.
12485         (PositionChangedHandler): call Check here to we can initialize
12486         things that require a non- -1 position.
12487
12488 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12489
12490         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
12491         control.
12492
12493 2007-05-17  Andreia Gaita  <avidigal@novell.com>
12494
12495         * TabControl.cs: Add 2.0 methods and events, including
12496         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
12497         * TabPage.cs: Add 2.0 methods
12498
12499 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12500
12501         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
12502         keyboard_cues is properly handled by message method.  
12503
12504 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
12505
12506         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
12507
12508 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
12509
12510         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
12511
12512 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
12513
12514         * Control.cs: 
12515         - WmUpdateUIState added to handle state changes, it make call to
12516         OnChangeUICues event.
12517         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
12518         SystemInformation.
12519
12520 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
12521
12522         * ImageKeyConverter.cs: Added.
12523         * TreeViewImageKeyConverter.cs: Added.
12524
12525 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12526         
12527         * ToolTips.cs: Update Text if SetToolTip is called for a control
12528         already showing the tooltip, as well as restarting its timer; show
12529         tooltip if we are inside the control bounds by the time of calling
12530         SetToolTip. Inside ShowTooltip remove the check to not show the 
12531         tooltip again for the active control (it is allowed by .Net to 
12532         show the tooltip on the same control multiple times).
12533
12534 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12535
12536         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12537
12538 2007-05-16  Andreia Gaita <avidigal@novell.com> 
12539
12540         * ContainerControl.cs: only process tab key if there are no 
12541         modifier keys present, otherwise the control does the 
12542         tab processing, if it needs to. Fixes #81622
12543         * TabControl.cs: Fixes calculation for which tab to select on
12544         shift+ctrl+tab.
12545
12546 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12547
12548         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12549
12550 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
12551
12552         * Control.cs: Make IsInputCharInternal to allow controls to
12553         override it and still match MS API.
12554         * TextBoxBase.cs: Override IsInputCharInternal and always
12555         return true.
12556         [Fixes bug #81616]
12557
12558 2007-05-15  Jackson Harper  <jackson@ximian.com>
12559
12560         * TextBox.cs: Disable some of the menu options when using a
12561         readonly textbox.
12562
12563 2007-05-15  Jackson Harper  <jackson@ximian.com>
12564
12565         * TextBox.cs:
12566         * TextBoxBase.cs:
12567         * RichTextBox.cs: Some new 2.0 methods
12568
12569 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
12570
12571         * FileDialog.cs: On 1.0 profile, do not support multidotted 
12572         extensions.
12573
12574 2007-05-14  Jackson Harper  <jackson@ximian.com>
12575
12576         * TextBoxBase.cs: Implement some of the new 2.0 methods.
12577         * RichTextBox.cs: We need to override these methods on 2.0.
12578         * MaskedTextBox.cs: These are implemented now
12579         * TextControl.cs: This was off by one.
12580
12581 2007-05-14  Jackson Harper  <jackson@ximian.com>
12582
12583         * TextControl.cs: Because the line endings are including in the
12584         text, we don't need to add them in anymore.
12585
12586 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12587
12588         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
12589         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
12590
12591 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12592
12593         * ToolBar.cs: Adjust size to default size when button theres no text and
12594         image, it fixes remaining issues from #81524.
12595
12596 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12597
12598         * ToolBar.cs: 
12599         - When not flat call redraw to recalculate sizes on creare handle to match
12600         win32 behavior.
12601         - Revert 77220 because it causes some regressions in toobar
12602         button.
12603
12604 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12605
12606         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
12607           now actually enters a usable state.
12608
12609 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12610
12611         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
12612         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
12613         3 buttons.
12614
12615 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12616
12617         * ToolBar.cs: Save default_size on create handle to use later for buttons
12618         without text, needed to mimic win32 behavior.
12619
12620 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12621
12622         * ToolBar.cs: Fix button layour to best fit width or height according to
12623         vertical or not. Fixes #81524.
12624
12625 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
12626
12627         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
12628         toolbar size info because different styles theres different sizes.
12629         Fixes #81522.
12630
12631 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12632
12633         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
12634         if we are using checkboxes, checked is true, and we have less
12635         than two images in StateImageList; for the 1.1 in the same scenario
12636         draw the first image if we have at least one image in StateImageList.
12637         Fixes part of #81191.
12638
12639 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12640
12641         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
12642         the owner's Items collection on merge.
12643
12644 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12645
12646         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
12647         * ToolStripItemCollection.cs: Lots of fixes to when events get called
12648         and parent/owner gets changed based on gert's unit tests.
12649
12650 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12651
12652         * MaskedTextBox.cs: Started implementing parts of it.
12653
12654 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12655
12656         * ListView.cs: When clicking the checkbox on the items
12657         take into account the double clicks even if we have only
12658         one image in StateImageList (only for 1.0/1.1). Also 
12659         generate an extra change of checked state when we receive
12660         the second click on checkbox (match .Net behaviour). 
12661         Fixes part of #81191.
12662
12663 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
12664
12665         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
12666
12667 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12668
12669         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
12670         even if OnLoad is overriden and base.OnLoad is not called.
12671         [Fixes bug #81582]
12672
12673 2007-05-10  Andreia Gaita  <avidigal@novell.com>
12674
12675         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
12676         shame. (I blame my ever-persisting and annoying cold)
12677
12678 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12679
12680         * ListView.cs: Don't eat navigation keys.  Let them flow through to
12681         KeyDown/KeyPress routines.  [Fixes bug #81569]
12682
12683 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12684
12685         * ListView.cs: When handling keys for selecting the item based off
12686         keyboard input, do not consider keys pressed with Alt or Control.  Also,
12687         correctly handle keys when the Shift key is down. [Fixes bug #81578]
12688
12689 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12690
12691         * Control.cs: When using UseWaitCursor, we have to store the requested
12692         Cursor to use when UseWaitCursor is turned off.
12693
12694 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12695
12696         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
12697         to false.
12698         * Application.cs: Use PreProcessControlMessage instead of
12699         PreProcessMessage.
12700         * PreProcessControlMessage.cs: Make internal for 1.1.
12701
12702 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12703
12704         * Control.cs: Add InternalContains focus property, which hast the same
12705         functionality of ContainsFocus, but also including implicit controls.
12706         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
12707         since we need to know if the focus is contained in our implicit
12708         ItemControl when calculating Layout. Fixes part of #80888.
12709
12710 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
12711
12712         * ToolTip.cs: Remove center form string alignment as it must be align to
12713         left.
12714
12715 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
12716
12717         * ToolStripItemCollection.cs: Set the new item's parent and owner
12718         in Insert like we do in Add.  [Fixes bug #81568]
12719
12720 2007-05-08  Jackson Harper  <jackson@ximian.com>
12721
12722         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
12723         - Off by one error in SetTop
12724         - Disable DoubeBuffering
12725         
12726 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12727
12728         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
12729           control as much as necessary in order to make it entirely visible,
12730           instead of centering the control in the container (matches MS
12731           behaviour). CalculateCanvasSize: we need to take the current scroll
12732           position into account when calculating the maximum canvas,
12733           otherwise the following scenario will fail: resize so that the
12734           scrollbars appear, use the scrollbars to scroll, resize again
12735           smaller, and now the canvas size is too small. Recalculate: when
12736           showing scrollbars make sure they start off at 0, and try to scroll
12737           the active control into view. Fixes #79540. HandleScrollBar: don't
12738           scroll anywhere if the scrollbar isn't visible.
12739
12740 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12741
12742         * ListView.cs: When focus changed, call Layout/Invalidate
12743         in the focused item to update the selected state (should show
12744         entire label when ListView is focused, and a part of it if is not).
12745         * ListViewItem.cs: When doing layout for LargeIcon, take into account
12746         for displaying the entire label not only the Focused state of the
12747         item, but also the Focused state of the ListView (match .Net
12748         behaviour).
12749
12750 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12751
12752         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
12753         Implement UseWaitCursor. 
12754
12755 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12756         Applying contributed patch from Sergey Volk.
12757
12758         * Clipboard.cs: Implement SetDataObject retry logic and new overload
12759         of SetDataObject.
12760         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
12761
12762 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12763
12764         * Control.cs: Implement DrawToBitmap.
12765
12766 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12767         Applying contributed patch from Stefan Noack.
12768         
12769         * Control.cs: Add [Get|Set]AutoSizeMode.
12770
12771 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12772
12773         * MdiClient.cs: Unmerge menus when the last child is closed.
12774
12775 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12776
12777         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
12778         * ToolStripManager.cs: Call Merge on DropDowns.
12779         [Fixes bug #81477]
12780
12781 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12782
12783         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
12784           uints.
12785         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
12786           visibility. We can't create forms visible, since we have to set the
12787           owner before making the form visible (otherwise Win32 will do
12788           strange things with task bar icons). The problem is that we set the
12789           internal is_visible to true before creating the control, so
12790           is_changing_visible_state is the only way of determining if we're
12791           in the process of creating the form due to setting Visible=true -
12792           this works because SetVisibleCore explicitly makes the form
12793           visibile afterwards anyways. Fixes #80775.
12794
12795 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12796
12797         * ThemeWin32Classic.cs: When drawing ListViewItems,
12798         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
12799         or LargeIcon _and_ item is not focused (match .Net behaviour).
12800
12801 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
12802
12803         * Control.cs, Form.cs: Fix some obsolete method warnings.
12804
12805 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
12806
12807         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
12808         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
12809
12810 2007-05-04  Andreia Gaita  <avidigal@novell.com>
12811
12812         * ContainerControl.cs: Fix active_control attribution when going
12813         up the parent chain so that the first parent container gets the control
12814         and the rest of the parent containers get the child containers (skips
12815         non-containers). Fixes #80729
12816
12817 2007-05-04  Randolph Chung  <tausq@debian.org>
12818
12819         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
12820         [Fixes bug #81499]
12821
12822 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12823
12824         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
12825           takes a size parameter, since the CreateParam's size isn't true for
12826           minimized forms. Fixes #81518,
12827
12828 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12829
12830         * Form.cs: Add OnDeactivateInternal.
12831         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
12832
12833 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12834
12835         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
12836           accessing the parent. Fixes #81508.
12837
12838 2007-05-03  Chris Toshok  <toshok@ximian.com>
12839
12840         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
12841         2.0 block, pass listposition + 1 to ChangeRecordState when a row
12842         was added before the current listposition.  Fixes the
12843         TestInsertRowBeforeCurrent unit test.
12844
12845 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
12846
12847         * Application.cs: Add RaiseIdle.
12848         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12849         XplatUIX11.cs: Implement RaiseIdle.
12850
12851 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
12852         corcompare work: N - Z
12853         * NotifyIcon.cs
12854         * ProgressBar.cs
12855         * RadionButton.cs
12856         * ScrollableControl.cs
12857         * SplitContainer.cs
12858         * SplitterPanel.cs
12859         * StatusBar.cs
12860         * SystemInformation.cs
12861         * TabControl.cs
12862         * TableLayoutControlCollection.cs
12863         * TableLayoutPanel.cs
12864         * TabPage.cs
12865         * ToolBar.cs
12866         * ToolBarButton.cs
12867         * ToolStrip.cs
12868         * ToolStripComboBox.cs
12869         * ToolStripContainer.cs
12870         * ToolStripContentPanel.cs
12871         * ToolStripDropDown.cs
12872         * ToolStripDropDownItem.cs
12873         * ToolStripDropDownMenu.cs
12874         * ToolStripItem.cs
12875         * ToolStripItemCollection.cs
12876         * ToolStripMenuItem.cs
12877         * ToolStripPanel.cs
12878         * ToolStripSplitButton.cs
12879         * ToolTip.cs
12880         * TreeNode.cs
12881         * TreeNodeCollection.cs
12882         * TreeNodeMouseHoverEventArgs.cs
12883         * TreeView.cs
12884
12885 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
12886
12887         * ContextMenu.cs: Add public method Show with alignment property to 2.0
12888         stuff. Thanks aatdark for the patch. 
12889
12890 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12891
12892         * GridItem.cs: Implement 2.0 Tag property.
12893
12894 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
12895
12896         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
12897         count instead of Nodes.Length.  [Fixes bug #81448]
12898
12899 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12900
12901         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
12902         [Fixes bug #81506]
12903
12904 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12905         corcompare work: A - M
12906         * BindingNavigator.cs
12907         * Button.cs
12908         * ButtonBase.cs
12909         * CheckBox.cs
12910         * Control.cs
12911         * FlowLayoutPanel.cs
12912         * Form.cs
12913         * Label.cs
12914         * LinkLabel.cs
12915         * ListView.cs
12916
12917 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12918
12919         * Application.cs: Give toolstrips a chance to process mnemonics.
12920         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
12921         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
12922         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
12923
12924 2007-05-01  Jackson Harper  <jackson@ximian.com>
12925
12926         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
12927         wider area too.
12928         - Don't set the BoundsSpecified
12929
12930 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12931
12932         * Application.cs: When using the toolstrip shortcut mechanism, allow the
12933         message to pass through to a regular control if it hosted by a toolstrip.
12934         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12935         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
12936
12937 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12938
12939         * TextRenderer.cs: Use the flags argument when using the MeasureString
12940         fallback algorithm.
12941
12942 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12943
12944         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
12945         the MDI menu item.  [Fixes bug #81483]
12946
12947 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
12948
12949         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
12950         string. When setting Name to null, use zero-length string instead.
12951
12952 2007-04-29  Andreia Gaita  <avidigal@novell.com>
12953
12954         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
12955         DeselectTab). Implement missing 2.0 TabPageCollection methods
12956         (Add, ContainsKey, RemoveByKey, IndexOfKey)
12957
12958 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
12959
12960         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
12961
12962 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
12963
12964         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
12965         Fixes bug #81479. Include details of exception when LoadFile fails.
12966
12967 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
12968
12969         * DrawListViewSubItemEventArgs.cs: Added missing setter
12970
12971 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12972
12973         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
12974         Hide methods (not complete). Implement missing 2.0 OnPopup event.
12975
12976 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12977
12978         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
12979         removed in ly last commit (it was breaking the Label edit feature).
12980
12981         * ThemeWin32Classic.cs: When drawing a ListViewItem use
12982         StringAlignment.Near for LineAlignment (match .Net).
12983
12984 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12985
12986         * TabControl.cs: Change SetTab so it adds the tabpage to the list
12987         of controls if it isn't already there - was blowing up when doing
12988         tabcontrol.TabPages[i]=new TabPage(). 
12989         SetTab now does a replace by removing the page at the index. 
12990         Add a new InsertTab method that inserts a page in a given index 
12991         instead of replacing. 
12992         Implements TabPageCollection.Insert(int, TabPage).
12993
12994 2007-04-27  Chris Toshok  <toshok@ximian.com>
12995
12996         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
12997         internal handler that can be invoked from our subclasses.)  Also,
12998         add a comment to PushData about how we need to fix it.
12999
13000         * CurrencyManager.cs: tons of changes here.  trying to get things
13001         matching the behavior of .net wrt event orders (ItemChanged,
13002         CurrentChanged, PositionChanged.)  I've implemented a private .net
13003         symbol (ChangeRecordState) that appears in stack traces because
13004         it's actually easier to do this than to effective inline all its
13005         various behaviors at every call site.
13006
13007         * RelatedPropertyManager.cs: guard against an exception here by
13008         not using parent.Current if the position is set to -1 (if the
13009         parent datasource is cleared, for instance).
13010
13011         * Binding.cs: don't parse data in PushData (this might be wrong,
13012         but it jives with MS's behavior.)  Also, don't call PushData when
13013         we get a CurrentChanged event.
13014
13015 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13016
13017         * WebBrowser.cs,
13018           WebBrowserBase.cs,
13019           WebBrowserSiteBase.cs,
13020           HtmlDocument.cs: Added stubbed out classes, no real implementations 
13021           yet.
13022
13023 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13024
13025         * MainMenu.cs: In draw method without parameters call draw method with 
13026         PaintEvent, another one (just rect) adjust rectangle and we dont need it
13027         as Rect property is already adjusted. Fixes #80694.
13028
13029 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
13030
13031         * Application.cs: Need to handle keyboard menu deselection here.
13032         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13033         navigation, allowing keyboard to work on X11.
13034         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13035
13036 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13037
13038         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13039         menu bar. It fixes some drawing issues in menu bar.
13040
13041 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13042
13043         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
13044         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13045         when <alt> key is pressed.
13046
13047 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13048
13049         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
13050         example just set visible to false and make this prevent from other problems.
13051         In SystrayAdd always remove pending expose. Fixes #81072.
13052
13053 2007-04-26  Marek Safar  <marek.safar@gmail.com>
13054
13055         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13056         value is set.
13057
13058 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13059
13060         * ListView.cs: Added three missing 2.0 events and corresponding
13061         EventHandlers. Added the OwnerDraw property.
13062         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13063
13064 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13065
13066         * DrawListViewItemEventArgs.cs
13067         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13068
13069 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13070
13071         * TextControl.cs: Fixed typo in constructor
13072
13073 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
13074
13075         * Application.cs: Create a shortcut path so that currently selected
13076         MenuStrips can intercept keyboard events without having focus.
13077         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13078         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13079         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13080         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
13081         generate WM_SYSCOMMAND message in X11 for other platforms.
13082         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13083         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13084         * ToolStripSplitButton.cs: Add DefaultItem property.
13085         
13086 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13087
13088         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13089         fixes some menu draw problem on Windows with border diferent from default
13090         it also fixes #81403.
13091
13092 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13093
13094         * Form.cs: Refactor WndProc into separate methods, just like Control is
13095           doing it.
13096
13097 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13098
13099         * Control.cs: set_Text: move the call to the driver into a seperate
13100           virtual method so that Form can override it.
13101         * MaskedTextBox.cs: Corcompare fixes.
13102         * Form.cs: Override UpdateWindowText and only update the styles if the
13103           form has been shown (fixes #81405).
13104
13105 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13106
13107         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13108         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13109         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
13110         the form lost focus or another control was clicked.
13111
13112 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
13113
13114         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13115         fixed.
13116
13117 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13118
13119         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13120           DrawListViewItemEventHandler.cs,
13121           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13122           Added.
13123         * X11Structs.cs: More ToString implementation.
13124
13125 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13126
13127         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
13128         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
13129
13130 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13131
13132         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
13133           handle.
13134         * FormCollection.cs: Don't add a form if it's already in the
13135           collection.
13136         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
13137           according to behaviour and MSDN. The ownerWin32 is the active
13138           window at the moment when we call ShowDialog, not the context's
13139           main form (the context's main form may open another form that opens
13140           a form with ShowDialog, the win32 owner is the second form). Add
13141           and remove forms to the Application.OpenForms in other places to
13142           better match MS behaviour. Add an IsActive property that raises
13143           On(de)Activated only if the active state has changed (we were
13144           raising OnDeactivated before OnActivated while creating forms).
13145         * Application.cs: Refactor Enabling/Disabling of windows for modal
13146           dialog loops out to separate methods, and restore the thread
13147           context when we quit the method. Fixes #81407.
13148
13149 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13150
13151         * ListView.cs: In ItemControl.HandleClicks, also fire 
13152         2.0 MouseClick or MouseDoubleClick events on the parent,
13153         not only the Click/DoubleClick events.
13154
13155 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13156
13157         * TableLayoutSettings.cs: 
13158         - Added a GetControls method and a support structure to help the 
13159         TypeConverter to enumerate the controls for     serialization. 
13160         - Added a new serialization constructor. 
13161         - Added a isSerialized flag initialized to true on the 
13162         serialization constructor so that the TableLayoutPanel.LayoutSettings 
13163         setter does not throw the designed NotSupportedOperation exception
13164         when the object is built through deserialization.
13165         - Implemented GetObjectData
13166         
13167         * TableLayoutPanel.cs: Added check on LayoutSettings.
13168
13169 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13170
13171         * ListView.cs: Report Click and DoubleClick events to the parent
13172         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
13173         from breaking the click count state when using dialog forms (Control
13174         reports the clicks in a similar fashion). In the previous behaviour
13175         the last WM_LBUTTONUP message in a  double click was sent to the
13176         ListView's form, instead of the ListView, which was breaking the click
13177         count for it. Fixes #80387.
13178
13179 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13180
13181         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
13182
13183 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13184
13185         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
13186         us from created dropdowns for menu items that do not have subitems.
13187         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
13188         Check HasDropDownItems before calling DropDown so a dropdown will not be
13189         created if it isn't needed.
13190
13191 2007-04-24  Jackson Harper  <jackson@ximian.com>
13192
13193         * TreeView.cs: Set the first node to the selected node when we get
13194         focus if there is no selected node.
13195
13196 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13197
13198         * MimeIcon.cs: remove using blocks so that image streams are
13199         not disposed of. Fixes #80151
13200
13201 2007-04-24  Jackson Harper  <jackson@ximian.com>
13202
13203         * TextBoxBase.cs: Fixup the height of textboxes when the control
13204         is created.
13205
13206 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13207
13208         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
13209         for each ToolStripItem when the parent's RightToLeftChanged is called.
13210
13211 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13212
13213         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
13214           Fixes #80163.
13215         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
13216           property, so that the setter can be overriden too.
13217         * TextBox.cs: Change GetContextMenuInternal() to use
13218           ContextMenuInternal.
13219
13220 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13221
13222         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13223           #81406.
13224
13225 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13226
13227         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13228           #81406.
13229
13230 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13231
13232         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
13233           avoid duplicate work. Mostily skeleton code, it's not working at
13234           all yet.
13235
13236 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
13237
13238         * NotifyIcon.cs : stub for MouseClick event
13239         * Application.cs: stub for SetUnhandledExceptionMode
13240
13241 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13242
13243         * BindingNavigator.cs : Initial (partial) implementation
13244
13245 2007-04-23  Jackson Harper  <jackson@ximian.com>
13246
13247         * TreeView.cs: Do not create the treeview's handle when setting
13248         the scroll position.
13249         - ExpandAll needs to compute the scrollbars so it knows which
13250         position to set the bar too.
13251         * TreeNode.cs: 
13252         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
13253
13254 2007-04-23  Jackson Harper  <jackson@ximian.com>
13255
13256         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
13257         key. Fixes #81408.
13258
13259 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
13260
13261         * ToolStripItem.cs: Make GetImageSize internal.
13262         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
13263         need to draw an item.  Fixes a reported issue where images on menus
13264         that were not 16x16 were drawing incorrectly.
13265
13266 2007-04-21  Miguel de Icaza  <miguel@novell.com>
13267
13268         * Padding.cs: Use the converter, fixes the resgen2 issue with
13269         XMLNotePad. 
13270
13271 2007-04-21  Jackson Harper  <jackson@ximian.com>
13272
13273         * TreeView.cs: Dont try to unhighlight the selected node if there
13274         isn't a selected node.
13275
13276 2007-04-21  Jackson Harper  <jackson@ximian.com>
13277
13278         * UpDownBase.cs:
13279         * TextBoxBase.cs:
13280         * ListView.cs:
13281         * ListBox.cs:
13282         * TreeView.cs: Use the InternalBorderStyle property to set the
13283         initial border style, this forces the client rectangle to be sized
13284         correctly.
13285
13286 2007-04-20  Jackson Harper  <jackson@ximian.com>
13287
13288         * TreeView.cs: Simplify scrolling to the last node after expanding
13289         all.
13290         - Fix some off by ones with setting the bottom.
13291
13292 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
13293
13294         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
13295         that.  We were incorrectly doing it the other way around.  Also,
13296         update ClientSize if we change the BorderStyle before the control
13297         is created.
13298
13299 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
13300
13301         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13302         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13303         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
13304         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13305         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13306         Caption to CaptionHeight.
13307         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
13308         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
13309         and FixedFrameBorderSize to return value from current XplatUI driver.
13310         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
13311         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
13312         and FixedFrameBorderSize using win32 API. Renamed Caption to
13313         CaptionHeight.
13314         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
13315         * SystemInformation.cs: Fixed typo in BorderSize.
13316
13317 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
13318
13319         * XplatUI.cs: Added MenuAccessKeysUnderlined.
13320         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
13321         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
13322         returning false.
13323         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
13324         value from XplatUI driver.
13325         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
13326         SystemParametersInfo.
13327         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
13328         override.
13329         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
13330         returning false.
13331
13332 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13333
13334         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
13335
13336 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13337
13338         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
13339
13340 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
13341
13342         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
13343         MenuStrips that contain ToolStripSeparators.
13344
13345 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13346
13347         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
13348           DefineStdCursorBitmap.
13349         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
13350           has been created off a standard cursor. This is used to get a
13351           bitmap of the standard cursor when Draw or DrawStretched is called
13352           in order to draw the cursor.
13353         * X11Structs.cs: Added XcursorImage and XcursorImages.
13354         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
13355           DefineStdCursorBitmap.
13356         * Cursors.cs: Update all relevant creations of Cursor to use the new
13357           internal constructor.
13358
13359 2007-04-19  Jackson Harper  <jackson@ximian.com>
13360
13361         * TextBox.cs: Move the has_been_focused into the base control, so
13362         some of the text adding methods can manipulate it (probably time
13363         for a better name for this flag too).
13364         - Call a new version of selectall that doesn't scroll
13365         * TextBoxBase.cs: When we append text, if the document is empty,
13366         don't scroll.  If the document has text already, we scroll to the
13367         end of the appended text.
13368         - When the text is changed, we reset the has_been_focused, so the
13369         next time the control gets focused, all the text is selected.
13370
13371 2007-04-19  Jackson Harper  <jackson@ximian.com>
13372
13373         * TextControl.cs: Move the margins to the document, add a method
13374         so the margin sizes can be updated.
13375         * TextBoxBase.cs: When the border style is changed, update the
13376         border sizes.
13377
13378 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
13379
13380         * Control.cs: Respect DefaultPadding.
13381         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
13382         padding into account.
13383         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
13384
13385 2007-04-19  Jackson Harper  <jackson@ximian.com>
13386
13387         * TextControl.cs: Oops, we need to use the ClientRect not the
13388         bounds here.
13389
13390 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13391
13392         * ListView.cs: In ItemControl.ItemsMouseDown, take into
13393         account the double clicks when CheckBoxes are used and
13394         the pointer is inside the checkbox. Fixes part of #81191.
13395
13396 2007-04-18  Jackson Harper  <jackson@ximian.com>
13397
13398         * TextControl.cs: Pressing the end key shouldn't move the caret
13399         past the line ending.
13400         * TextBoxBase.cs: We can still delete if we are in the line
13401         ending and the combine will just kill the existing line ending.
13402
13403 2007-04-18  Jackson Harper  <jackson@ximian.com>
13404
13405         * TextControl.cs: We can't move lines, then invalidate their
13406         bounds, we need to get the old bounds and combine that with the
13407         new bounds.
13408         * TextBoxBase.cs: Before combining two lines for a delete, we need
13409         to invalidate the area of the old line, since that will be moved
13410         in the combine operation.
13411
13412 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
13413
13414         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
13415         with transparent background. Fixes #80482.
13416
13417 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
13418
13419         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
13420         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
13421         [Fixes bug #81391]
13422
13423 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13424
13425         * CreateParams.cs: Add a couple of helper methods and do a less string
13426           concatenation in ToString.
13427         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
13428           overload that takes a Control parameter, since this method may be
13429           called before a control is assigned to the hwnd (from
13430           CreateWindow), and update CreateWindow to use the new overload. In
13431           GetMenuOrigin subtract the title bar from the y position if the
13432           form has a window manager (since we're painting it and not X).
13433         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
13434           CreateParams to calculate the origin (since border sizes may vary).
13435           In ScreenToMenu only subtract the title height if we actually have
13436           a title.
13437         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
13438           mdi children never have menus of themselves.
13439         * InternalWindowManager.cs: Implement menu handling like form does.
13440           Added GetMenuOrigin to calculate the menu origin, can't use the
13441           CreateParams from the form like normally since it's lying.
13442         * Hwnd.cs: Implement GetBorderSize better (in the sense more
13443           windows-like) and add Inflate and comparison operators to the
13444           Borders type. When calculating MenuOrigin and it's a form with a
13445           window manager, use the window manager to calculate it.
13446
13447 2007-04-17  Chris Toshok  <toshok@ximian.com>
13448
13449         * Control.cs (CreateControl): turns out in 2.0 we don't need this
13450         OnBindingContextChanged thing here.  It's only generated from
13451         ContainerControl.OnCreateControl.  Fixes a newly written unit test
13452         - BindingTest.BindingContextChangedTest4.
13453         
13454 2007-04-17  Jackson Harper  <jackson@ximian.com>
13455
13456         * ScrollBar.cs: When setting values, make sure the current
13457         position stays within the new values range.
13458
13459 2007-04-17  Chris Toshok  <toshok@ximian.com>
13460
13461         * Control.cs (CreateControl): talk about a bizarre corner case.
13462         Don't emit OnBindingContextChanged here if we're a parentless
13463         control (i.e. if we're a form.).  Fixes
13464         BindingTest.BindingContextChangedTest2.
13465
13466 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
13467
13468         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
13469         from win32. Fixes #81255.
13470
13471 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
13472
13473         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
13474         already present in CalculateButtonTextAndImageLayout.
13475
13476 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13477
13478         * XplatUIX11.cs: When setting min/max size for a window we need to
13479           translate the coordinates to x coordinates. Create an overload of
13480           SetWindowMinMax that takes a CreateParams handling this, and change
13481           SetWMStyles to call this function (can't use Control.FromHandle in
13482           the SetWindowMinMax to get the control/CreateParams from the handle
13483           because the handle might not have been assigned to the control
13484           yet). Fixes #81371.
13485
13486 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13487
13488         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
13489         if StateImageList is non-null and it has less than two items (match MS
13490         behaviour). Also, in HandleNavKeys handle the Space key, calling
13491         the new ToggleItemsCheckState method, which tries to change the
13492         checked state of the selected items. Fixes part of #81191.
13493
13494 2007-04-16  Jackson Harper  <jackson@ximian.com>
13495
13496         * RichTextBox.cs: namespace cleanup.
13497
13498 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
13499
13500         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
13501
13502 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
13503
13504         [Fixes #79447]
13505         * Control.cs: Call invalidate in set_Region.
13506
13507         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
13508         it dont works here.
13509
13510 2007-04-16  Jackson Harper  <jackson@ximian.com>
13511
13512         * TextBoxBase.cs: When enter is pressed, we need to update all
13513         lines below the current.
13514
13515 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
13516
13517         * MdiClient.cs: Implement implicit menu merging for MDI
13518         children.  When a child form is active, if it has a menustrip
13519         and the parent form has a MainMenuStrip, automatically merge
13520         the menus.
13521
13522 2007-04-15  Andreia Gaita  <avidigal@novell.com>
13523
13524         * TabControl.cs: Refactored sizing methods to not repeat
13525         code all over the place. Tab bounds are now calculated
13526         as if alignment is top and single line, and only when 
13527         setting the bounds are the positions adjusted according
13528         to alignment. Replaced hardcoded positions, spacings and
13529         paddings by getting the values the ThemeEngine. 
13530         Fixes #79619.
13531         
13532         * Theme.cs: Change TabControl properties and methods so
13533         that all start with TabControl*. Added more properties
13534         to help remove hardcoded values on tabcontrol.
13535         Add CPDrawBorder3D declaration so the Theming classes
13536         can access it.
13537         
13538         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
13539
13540         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
13541         on the Theming namespace, and call the appropriate methods here.
13542         Change CPDrawBorder3D to public.
13543
13544 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13545
13546         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
13547         the control after firing the OnMouseUp event, instead of sending
13548         the message before the mentioned event. This is so we can match the
13549         MS behaviour. Fixes part of #80385.
13550
13551 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
13552
13553         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
13554         RightToLeft property.
13555
13556 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
13557
13558         * ToolStrip.cs: Add properties and internal methods to support merging.
13559         * ToolStripItem.cs: Add MergeAction and MergeIndex.
13560         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
13561         not trigger reparenting or layouts.
13562         * ToolStripManager.cs: Add Merge and RevertMerge methods.
13563         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
13564         is hosting the overflow menu.
13565
13566 2007-04-13  Jackson Harper  <jackson@ximian.com>
13567
13568         * TextControl.cs: Set the line ending correctly for the first
13569         inserted line.
13570
13571 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
13572
13573         * Theme.cs: Update GetMethod to get the new definition for 
13574         KnownColors.Update (and fix theme color updates).
13575
13576 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
13577
13578         * MessageBox.cs: Fix some test and button position.
13579
13580 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13581
13582         * Form.cs: Consider the implicit controls in
13583         GetRealChildAtPoint. We need it since this method
13584         is called on Form when handling the some messages in
13585         WndProc, and need to consider those implicit ones too.
13586         Fixes #80385.
13587
13588 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
13589
13590         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
13591         if there are no ShortcutKeys set.
13592         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
13593         set, use it when painting.
13594
13595 2007-04-12  Jackson Harper  <jackson@ximian.com>
13596
13597         * TextControl.cs: Fix some off-by-one issues in line duplication
13598         and insertion in the undo manager. Also, overwrite the first tag
13599         of a line on insert, if it is just a zero lengthed tag. This
13600         prevents us from getting an extra stranded tag at the beginning of
13601         the first line.
13602
13603 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
13604
13605         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
13606         to calculated proper size including when handle was not created yet.
13607
13608 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13609
13610         * MdiWindowManager.cs: When moving a form, allow the form to be moved
13611           when the mouse is outside of it's parent's client rectangle. Fixes
13612           #79982 (take 3, part 2).
13613
13614 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13615
13616         * X11Structs.cs: Add a few ToString() overrides.
13617         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
13618           the window location in a window-manager independent way. Reworked
13619           FrameExtents, it now actually works. Reworked AddConfigureNotify
13620           and ReparentNotify handling to use GetTopLevelWindowLocation
13621           instead of the earlier, more hacky solution. Reworked SetWMStyles,
13622           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
13623           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
13624           for all other windows (fixes #81281 part 1), a toolwindow is hidden
13625           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
13626           and generally refactored to do as few calculations as possible
13627           inside the lock.
13628
13629 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
13630
13631         * Theme.cs: Change "reflective-contract" between MWF and SD to 
13632         minimize # of calls, avoid Color serialization and avoid updating 
13633         every "known colors" each time a single one is updated.
13634
13635 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
13636
13637         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
13638         when not readonly and the text is explicitly set. Code style updates.
13639         * DataGridTableStyle.cs: Removed extra line.
13640         * DataGrid.cs: Code style updates. Removed extra whitespace.
13641         * DataGridColumnStyle.cs: Code style updates. Removed extra 
13642         whitespace.
13643
13644 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13645
13646         * XplatUIX11.cs: Added comment that "fixes" #80021.
13647
13648 2007-04-09  Jackson Harper  <jackson@ximian.com>
13649
13650         * TextControl.cs: We don't need this -1 on the line count anymore.
13651
13652 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
13653
13654         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
13655         entered value to underlying type, and convert it back to a string to
13656         apply formatting. Modified GetFormattedValue to use TypeConverter
13657         if available.
13658
13659 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
13660
13661         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
13662         Use SubItems property when we want to ensure there's at least one
13663         subitem. Modified SubItems property to ensure there's always at least
13664         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
13665         the NRE's reported by MS.
13666
13667 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
13668
13669         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
13670         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
13671         Spaces to tabs. Removed extra tabs.
13672
13673 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
13674
13675         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13676         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
13677
13678 2007-04-06  Jackson Harper  <jackson@ximian.com>
13679
13680         * TextBoxBase.cs: When a delete removes a line, recalculate all
13681         lines below that line (they need to get offsets setup correctly)
13682         and invalidate.
13683
13684 2007-04-05  Jackson Harper  <jackson@ximian.com>
13685
13686         * TextControl.cs: We need to invalidate across the width of the
13687         document when we are invalidating multiple lines.
13688         * TextBoxBase.cs: Don't delete into the line ending.
13689
13690 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13691
13692         * ListView.cs: Restore the check for the MouseHover event
13693         in ListView. It looks like the ListView fires more than one MouseHover
13694         event when HoverSelection is true  _only_ in weird-corner scenarios, but
13695         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
13696         event.
13697
13698 2007-04-05  Mike Kestner  <mkestner@novell.com>
13699
13700         * ListView.cs : raise MouseDown before updating selection.
13701         [Fixes #80373 tab 1&3]
13702
13703 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
13704
13705         * ToolStripRenderer.cs: Add static method to mirror image.
13706         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
13707         and RightToLeftAutoMirrorImage.
13708         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
13709
13710 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
13711
13712         * ToolStripSplitStackLayout.cs: Support Alignment property.
13713         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
13714
13715 2007-04-05  Jackson Harper  <jackson@ximian.com>
13716
13717         * TextControl.cs: Move around the line endings when crossing line
13718         boundaries.
13719         - When combining lines, strip the ending text off the first line.
13720
13721 2007-04-05  Jackson Harper  <jackson@ximian.com>
13722
13723         * TextControl.cs:
13724         * TextBoxBase.cs: Try to never move the cursor into the line
13725         ending.
13726         
13727 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13728
13729         * ToolStripItem.cs: Make sure we aren't firing mouse events when
13730         the item is disabled.  Also add a few missing methods.
13731
13732 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13733
13734         * ListView.cs: We don't need the MouseEnter/MouseLeave check
13735         to fire just one MouseHover event when HoverSelection is true, since
13736         .Net does fire more than one MouseHover event in that scenario. Also,
13737         fix the selection in HoverSelection, by invoking UpdateMultiSelect
13738         if MultiSelect is true, instead of only setting ListViewItem.Selected.
13739         Finally, we need to reset the Hover logic in MouseMove, even when we
13740         don't have a selected item.
13741
13742 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13743
13744         * ToolStrip.cs: Add several missing methods, properties, and events.
13745
13746 2007-04-04  Chris Toshok  <toshok@ximian.com>
13747
13748         * DataGridTextBoxColumn.cs: set the bounds of the text box to
13749         (0,0,0,0) in Commit, as MS does.
13750
13751         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
13752         make sure we set CurrentRow on a row header click *before* calling
13753         Select.  This moves the current cell (and the textbox) to the new
13754         row.  The call to Select then hides the textbox, giving us the
13755         correct behavior.  Fixes #80362.
13756
13757         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
13758         (ListChangedHandler): reorder the position/current changed events,
13759         and call UpdateIsBinding in the ItemAdded case.
13760
13761         * GridColumnStylesCollection.cs: add some columns events, one of
13762         which raises the CollectionChanged event.
13763
13764 2007-04-04  Jackson Harper  <jackson@ximian.com>
13765
13766         * TextControl.cs: When we delete multiple selection lines
13767         invalidate the selection area, don't need to do that for single
13768         lines because the final update view will handle it.
13769
13770 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13771
13772         * Control.cs: When we CreateControl, we need to also create all of the
13773         control's children.  The child's OnLoad must also fire before the parent's
13774         OnLoad.  Fixes the toolbox size in PDN.
13775
13776 2007-04-04  Jackson Harper  <jackson@ximian.com>
13777
13778         * TextBoxBase.cs: When the user presses enter, insert a line
13779         ending into the text. (Maybe this would be a good spot for
13780         Environment.NewLine).
13781         * TextControl.cs: Remove undo manager hack, line endings get
13782         inserted properly now.
13783         
13784 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
13785
13786         * MenuAPI.cs: 
13787         - Remove unneeded parameters in UpdateCursor.
13788         - Fix UpdateCursor to check if menu is active.
13789         - Call UpdateCursor when menu deactivate my click.
13790         [Fixes remaining issues from #80410]
13791
13792 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
13793
13794         * Control.cs: GetRealChildAtPoint method added, it make an
13795         recursive child control search for the point. 
13796
13797         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
13798         menu.
13799
13800         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
13801
13802 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
13803
13804         * Form.cs: Fix mouse position when send back mouse event after closes
13805         menu.
13806
13807 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
13808
13809         * Form.cs: Simplify the BUTTONDOWN for active tracker.
13810
13811 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
13812
13813         * Control.cs: Fix an issue where if a user resized a control inside
13814         a sizing method like OnResize, we would overwrite their explicit
13815         value.  Also, only call DefaultSize once in the constructor instead
13816         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
13817         nothing actually changed.
13818
13819 2007-04-03  Jackson Harper  <jackson@ximian.com>
13820
13821         * TextControl.cs: Don't attempt to copy text for lines with no
13822         text in them (technically this shouldn't happen, but we aren't
13823         always inserting line endings when we should be).
13824
13825 2007-04-03  Jackson Harper  <jackson@ximian.com>
13826
13827         * TextBoxBase.cs: Calculate the scrollbars before calculating the
13828         document, because this sets some of the document size properties
13829         that are needed.
13830
13831 2007-04-03  Jackson Harper  <jackson@ximian.com>
13832
13833         * TextBoxBase.cs: We need to calculate maximums even if this is
13834         not a multiline control, because the maxs are used for scrolling.
13835         - Display the caret after doing a page up/down, we need to
13836         manually display it because a proper CaretMoved event isn't
13837         triggered (this is because of the way the math is done to
13838         determine how far to scroll).
13839
13840 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
13841
13842         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
13843         (ToolBar was relying on SetBoundsCore to default the values sent 
13844         base off of BoundsSpecified.)
13845
13846 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13847
13848         * DateTimePicker.cs: Change Text so that when a null value or empty
13849           string is assigned to the test we always raise ValueChanged and
13850           TextChanged (earlier implementation would only raise ValueChanged
13851           if the current date value was different from DateTime.Now).
13852
13853 2007-04-03  Andreia Gaita <avidigal@novell.com> 
13854
13855         * ButtonBase: Call update after invalidation, fixes #80194
13856
13857 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13858
13859         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
13860           #79335.
13861
13862 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13863
13864         * XplatUIX11.cs: SetWMStyles: If the control is a form with
13865           FormBorderStyle = None, don't give the window any decorations.
13866           Fixes #81276.
13867
13868 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13869
13870         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13871         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
13872           to check for is a mix of several styles (such as WS_CAPTION for
13873           instance).
13874         * Control.cs: Don't paint an area bigger than the client area when
13875           painting the background colour. Add an internal GetCreateParams.
13876           Update calls to XplatUI.CalculateWindowRect due to API change.
13877         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
13878           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
13879           the size if it hasn't been handled by any windows. When creating
13880           and moving windows, X wants the location of the entire window, but
13881           the size of the client window, so add
13882           TranslateClientRectangleToXClientRectangle,
13883           TranslateWindowSizeToXWindowSIze and
13884           TranslatedXWindowSizeToWindowSize to cope with this, and call them
13885           before every window creation and move. Update CalculateWIndowRect
13886           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
13887           In AddConfigureNotify don't do anything if the hwnd is a zombie
13888           (fixes the BadWindow we were getting while running the tests),
13889           always calculate the offsets when it's a parentless window, not
13890           only when reparented, and translate the window size, since we're
13891           getting the client size of the whole window, excluding entire
13892           window.
13893         * Theme.cs: Added BorderSizableSize.
13894         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13895           anymore. Update calls to XplatUI.CalculateWindowRect due to API
13896           chang
13897         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
13898           change. Fake the window styles here instead of in XplatUIWin32 so
13899           that all back-ends get the same window styles (and it's Form that's
13900           deciding when to use wm, not the Win32 backend anyways)
13901         * Hwnd.cs: Completely reworked GetWindowRectangle and
13902           GetClientRectangle - they are now passed a CreateParams and they
13903           only use Style and ExStyle to determine the rectangles (they should
13904           now work just like Win32AdjustWindowRectEx - though quite a few
13905           special cases are probably missing). They should also be 100%
13906           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
13907           == rect), and all numbers (borders, menu sizes) are taken from the
13908           current theme. Added a GetBorders helper function that will return
13909           the borders for any given CreateParams (including captions and
13910           menus), and GetBorderSize that returns the given border size only.
13911         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13912           Hwnd.GetClientRectangle.
13913
13914 2007-04-02  Chris Toshok  <toshok@ximian.com>
13915
13916         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
13917         logic between the values we present to the user and the values
13918         which are stored in the column's property.  Also, don't call
13919         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
13920
13921 2007-04-02  Jackson Harper  <jackson@ximian.com>
13922
13923         * TextBoxBase.cs: Scroll faster!
13924
13925 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
13926
13927         * StatusStrip.cs: Layout fixes for PDN.
13928         * ToolStrip.cs: Set item's available to true, and placement to main when
13929         added.
13930         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
13931         changing in setter before doing any work, add InternalVisible.
13932         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
13933         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13934         infinite loop.
13935
13936 2007-04-02  Jackson Harper  <jackson@ximian.com>
13937
13938         * TextBox.cs: LBUTTON does not make the textbox select all of it's
13939         text on focus.
13940
13941 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13942
13943         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
13944           Makes ToolStripComboBoxes show up again.
13945
13946 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13947
13948         * ListView.cs: Add a hover_pending field in ListView
13949         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
13950         cycle (we are resetting the MouseHover logic in XplatUI
13951         to handle HoverSelection). Fixes #80429.
13952
13953 2007-04-02  Jackson Harper  <jackson@ximian.com>
13954
13955         * TextControl.cs: Make sure the attributes get set on the last
13956         tag.
13957         - Still have to do the end tag if we have stepped all the ways to
13958         the end.
13959
13960 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
13961
13962         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
13963         on an internal libgdiplus call when the information is already 
13964         available via the public API.
13965
13966 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13967
13968         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
13969           control is removed from a control collecftion.
13970         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
13971           Fixes FormPropertyTest (failed on rare occasions).
13972         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
13973           of Win32SetParent (when changing from no parent to a parent it
13974           might add the new parent's location in screen coordinates to this
13975           window's location).
13976         * Form.cs: Rework ChangingParent once again, now the handle is
13977           recreated whenever a FormWindowManager is added or removed (that is
13978           whenever a normal form is parented or abandoned). Also change
13979           CreateParams so that all non-toplevel windows always get the
13980           specified sice (StartupPosition is never considered for
13981           non-TopLevel forms).
13982         * ContainerControl.cs: Add ChildControlRemoved, the container control
13983           needs to be notified when a control is removed from it's
13984           collection, in the case the removed control is the active control.
13985
13986 2007-04-02  Jackson Harper  <jackson@ximian.com>
13987
13988         * RichTextBox.cs: Use the new methods for setting the font and
13989         color, these methods set the specified attribute without
13990         overriding the other attributes.
13991
13992 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
13993
13994         * ToolStripPanel.cs: Fixes for better layouts in PDN.
13995
13996 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
13997
13998         * TextBox.cs: Added internal ChangeBackColor method to special-case
13999         Color.Empty. Added check for invalid ScrollBars value.
14000         * TextBoxBase.cs: Added internal ChangeBackColor method.
14001         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14002         internal ChangeBackColor method to special-case Color.Empty. Added
14003         check for invalid ScrollBars value.
14004
14005 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
14006
14007         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14008
14009 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14010
14011         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14012         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14013         [Based on submitted patch from Olivier Duff.]
14014
14015 2007-03-30  Jackson Harper  <jackson@ximian.com>
14016
14017         * TextBox.cs: Only select all on initial focus if the user has not
14018         specified a selection area.
14019
14020 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14021
14022         * UserControl.cs: Override CreateParams.
14023
14024 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14025
14026         [ Fixes #80995 ]
14027
14028         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14029         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14030           check for is a mix of several styles (such as WS_CAPTION for instance).
14031         * Control.cs: Don't paint an area bigger than the client area when painting
14032           the background colour. Add an internal GetCreateParams. Update calls to
14033           XplatUI.CalculateWindowRect due to API change.
14034         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14035           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14036           hasn't been handled by any windows. When creating and moving windows, X
14037           wants the location of the entire window, but the size of the client
14038           window, so add TranslateClientRectangleToXClientRectangle,
14039           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14040           to cope with this, and call them before every window creation and move.
14041           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14042           removing DeriveStyles). In AddConfigureNotify don't do anything if the
14043           hwnd is a zombie (fixes the BadWindow we were getting while running the
14044           tests), always calculate the offsets when it's a parentless window, not
14045           only when reparented, and translate the window size, since we're getting
14046           the client size of the whole window, excluding entire window.
14047         * Theme.cs: Added BorderSizableSize.
14048         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14049           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14050         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14051           Fake the window styles here instead of in XplatUIWin32 so that all
14052           back-ends get the same window styles (and it's Form that's deciding when
14053           to use wm, not the Win32 backend anyways)
14054         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14055           they are now passed a CreateParams and they only use Style and ExStyle
14056           to determine the rectangles (they should now work just like
14057           Win32AdjustWindowRectEx - though quite a few special cases are probably
14058           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14059           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14060           sizes) are taken from the current theme. Added a GetBorders helper
14061           function that will return the borders for any given CreateParams
14062           (including captions and menus), and GetBorderSize that returns the given
14063           border size only.
14064         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14065           Hwnd.GetClientRectangle.
14066
14067 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14068
14069         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14070           layout of the mdi children is handled by CreateParams. Fixes
14071           #79964,
14072
14073 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14074
14075         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14076         processed.
14077
14078         * Form.cs: When active tracker mouse down is not processed, send event 
14079         back to control inside mouse position. [Fixes #81227]
14080
14081 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14082
14083         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14084         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14085         stealing focus from the active form on Windows.  (Control will be made
14086         visible in ShowWindow.)
14087
14088 2007-03-29  Mike Kestner  <mkestner@novell.com>
14089
14090         * ImageList.cs : add internal Changed event.
14091         * ListView.cs : hook up to StateImageList.Changed to perform
14092         invalidations when the the state icon list changes. [Fixes #81191]
14093
14094 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14095
14096         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14097         to prevent tooltips from stealing focus from the active form on Windows.
14098
14099 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14100
14101         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
14102
14103         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14104
14105 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14106
14107         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14108         balloons.
14109
14110 2007-03-29  Jackson Harper  <jackson@ximian.com>
14111
14112         * TextControl.cs: When deleting text from non multiline textboxes,
14113         we need to update the entire document, because line offsets will
14114         be shifting.
14115
14116 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14117
14118         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14119         added to theme, now we can create themes that uses diferent notify engines
14120         like notification-daemon from galago project or growl for Mac OS.
14121
14122 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14123
14124         * NotifyIcon.cs: Prevent Balloon to show in task bar.
14125
14126 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14127
14128         * XplatUIX11.cs: Prevent system to open more than one balloon.
14129
14130         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
14131         some compiler warning messages.
14132
14133 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14134
14135         [Fixes #79149]
14136
14137         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
14138
14139         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
14140         implemented, this methods is used by NotifyIcon.BalloonWindow class.
14141
14142         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
14143         systems.
14144
14145 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14146
14147         * ListViewItem.cs: Forgot to make Invalidate internal.
14148
14149 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14150
14151         * ListView.cs: Add a InvalidateSelection method to
14152         invalidate methods which are currently selected, and call
14153         it when setting FullRowSelect and HideSelection, instead of
14154         calling Redraw.
14155
14156 2007-03-28  Chris Toshok  <toshok@ximian.com>
14157
14158         * XplatUIX11.cs (UnmapWindow): reindent this block.
14159
14160         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
14161         the selection_start if we're moving the selection (that is, not
14162         extending it). Fixes bug #80461.
14163
14164 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14165
14166         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
14167         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
14168         create private ControlCollection.
14169
14170 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14171
14172         * Control.cs: We need to call OnVisibleChanged for our implicit
14173         children as well as our normal children.  Fixes scrollbars in
14174         comboboxes not showing up.
14175
14176 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14177
14178         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
14179         the check for IsHandleCreated first.  The check in CreateHandle is not
14180         good enough because CreateHandle can be overriden, and the override 
14181         should not be called if the handle is already created.
14182
14183 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14184
14185         * ToolStrip.cs: Remove MonoTODO for tooltips.
14186         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
14187         * ToolStripContainer.cs: Add custom ControlCollection class.
14188         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
14189         * ToolStripDropDown.cs: Add some missing properties/methods.
14190         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
14191         * ToolStripItem.cs: Remove MonoTODO for tooltips.
14192         * ToolStripManager.cs: Add IsShortcutDefined.
14193         * ToolStripOverflow.cs: Override LayoutEngine.
14194         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
14195         * ToolStripSeparator.cs: Add ImageKey.
14196
14197 2007-03-28  Jackson Harper  <jackson@ximian.com>
14198
14199         * TextControl.cs: If a char delete removes a line ending, we need
14200         to update the ending style.
14201         - Make sure the line ending calcs get called.
14202
14203 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14204
14205         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
14206           it was making the new code not work. Fixed a typo in the new code
14207           as well. Fixes #79826.
14208
14209 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14210
14211         * XplatUIWin32.cs:
14212         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
14213         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
14214         - SystrayBalloon method implemented.
14215         [Add support for notifyicon balloon on win32, #79149]
14216
14217 2007-03-27  Mike Kestner  <mkestner@novell.com>
14218
14219         * ThemeWin32Classic.cs : update StateImageList selection to mirror
14220         the ms behavior when only one image is added to the list.
14221         [Fixes #81191]
14222
14223 2007-03-27  Jackson Harper  <jackson@ximian.com>
14224
14225         * TextControl.cs: Improvements to non multiline line ending
14226         drawing/measuing.
14227
14228 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14229
14230         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
14231
14232 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14233
14234         * NotifyIcon.cs: 
14235         - Balloon message handling added.
14236         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
14237
14238         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14239         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
14240         to SystrayBalloon to me like other Systray method, also a
14241         handle parameter added.
14242
14243 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14244
14245         * ListView.cs: Show scrollbars even when items.Count == 0
14246         but the columns Width is bigger than the ListView.Width.
14247         Also, when columns.Count == 0 set layout_wd and layout_ht
14248         to the ClientRectangle values, so we don't show any scrollbar
14249         in that case.
14250
14251 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14252
14253         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
14254
14255 2007-03-27  Jackson Harper  <jackson@ximian.com>
14256
14257         * RichTextBox.cs: The RTF library decodes the text properly for us
14258         now.
14259
14260 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14261
14262         * ListView.cs: Display HeaderControl even when columns.Count == 0.
14263         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
14264         ListView header (HeaderControl), instead of Control.BackColor.
14265
14266 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14267
14268         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
14269         Fixes tab control issues where controls would not show up because they
14270         never received their OnVisibleChanged call.
14271
14272 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14273
14274         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
14275         BalloonTipShown).
14276
14277 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14278
14279         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
14280         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
14281         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
14282         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
14283         the handle.  Fix WindowState by using the internal variable until we are 
14284         sure that we've been shown.
14285         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
14286         max or min.
14287         [Fixes bug #81198]
14288
14289 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14290
14291         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
14292           (at least borders). Fixes #79386 on Linux (with a small difference
14293           in behaviour: when trying to resize a caption-less window metacity
14294           shows the sysmenu. Resizing is still possible though).
14295         * XplatUIWin32.cs: When setting window styles send request an extra
14296           WM_NCCALCSIZE when it's a form without title (due to no text and no
14297           caption), since Win32 seems to calculate it wrong the first time we
14298           get the message, though the second time things work as they should.
14299         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
14300           newly reparented window might show up unparented. Update
14301           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
14302           there's no title text. Fixes #79386.
14303
14304 2007-03-27  Mike Kestner  <mkestner@novell.com>
14305
14306         * ListBox.cs : don't perform invalidations if the handle hasn't been
14307         created.  [Fixes #80753]
14308
14309 2007-03-27  Mike Kestner  <mkestner@novell.com>
14310
14311         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
14312         [Fixes #80428]
14313
14314 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14315
14316         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
14317         needed to implement Balloon.
14318
14319 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14320
14321         * ListViewItem.cs: In the constructors that take
14322         an array of strings, don't use ListViewSubItemCollection.AddRange
14323         method to add items, since we need to have a different behaviour (in
14324         the constructors we add an item for each null string, opposed to
14325         the behaviour of AddRange, which adds nothing).
14326
14327 2007-03-26  Andreia Gaita  <avidigal@novell.com>
14328
14329         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
14330
14331 2007-03-26  Jackson Harper  <jackson@ximian.com>
14332
14333         * TextControl.cs: Draw and measure line endings when in non
14334         multiline mode.
14335         - When searching the text, count the end of the last line as a
14336         word boundary.
14337
14338 2007-03-26  Jackson Harper  <jackson@ximian.com>
14339
14340         * RichTextBox.cs: The selection_start and selection_end don't
14341         really track the correct tags for the selection. So we'll manually
14342         compute the correct tag here.
14343
14344 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14345
14346         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
14347           and Continuous styles. Fixes #79469.
14348
14349 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
14350
14351         * ToolStrip.cs: Implement Tooltips.
14352         * ToolStripItem.cs: Create internal method for determining tooltip.
14353
14354 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
14355
14356         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
14357
14358 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14359
14360         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
14361         it prevents a problem thak keeps icon visible after application 
14362         closes on win32.
14363
14364 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14365
14366         * NotifyIcon.cs: Balloon properties and methods created.
14367
14368         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14369         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
14370
14371 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
14372
14373         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
14374
14375 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
14376
14377         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
14378         parameter indicates which aspects were explicit/user-set.
14379         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
14380
14381 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
14382
14383         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
14384         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
14385         SmallChange, and Value (2.0).
14386         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
14387
14388 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14389
14390         * ListView.cs: Always set item_control.Width in LayoutDetails
14391         if View is Details. Setting it later in CalculateScrollBars
14392         in a not-so-corner scenario (the sum of columns width is
14393         not bigger than the ListView width when handle is created, and then
14394         that sum gets bigger by increasing the width of the columns)
14395         causes a very weird recursion path (which shouldn't be happening,
14396         since header_control sets it in CalculateScrollBars too). This bug
14397         appeared after Chris' fixes for handle created issues, so probably
14398         it's related to some handle-creation time.
14399
14400 2007-03-23  Chris Toshok  <toshok@ximian.com>
14401
14402         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
14403         case where there's an add row, just so we don't end up in a case
14404         where it's not displayed (this happens when the row is partially
14405         obscured).  Fixes bug #79574.
14406
14407 2007-03-23  Jackson Harper  <jackson@ximian.com>
14408
14409         * TextControl.cs:
14410         * TextBoxBase.cs:
14411         * RichTextBox.cs: Preserve line endings in the lines text buffer,
14412         also added an enum that represents the line ending type. 
14413
14414 2007-03-23  Andreia Gaita  <avidigal@novell.com>
14415
14416         * NumericUpDown.cs: Fix logic so Text and Value properties are not
14417         messed with in every method call, but only from DownButton, 
14418         UpButton, UpdateEditText() and ValidateText. Fixes #80346
14419
14420 2007-03-23  Chris Toshok  <toshok@ximian.com>
14421
14422         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
14423         format objects if the format spec is "".  Fixes bug #80889.
14424
14425 2007-03-22  Miguel de Icaza  <miguel@novell.com>
14426
14427         * ToolStripPanel.cs (Join): added stubs to build PDN3
14428
14429         * Control.cs (AutoScrollOffset): Add.
14430
14431         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
14432         property, its only implemented for Win32, on X11 it defaults to
14433         some hardcoded value.
14434
14435         * ToolStripItem.cs (AllowDrop): Add property
14436
14437 2007-03-22  Mike Kestner  <mkestner@novell.com>
14438
14439         * ListView.cs : in FullRowSelect Details mode, only enable box
14440         selection if the user clicks over the "item" column outside of the
14441         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
14442
14443 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14444
14445         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
14446           handle is not created yet.
14447         * Form.cs: Select: Don't call CreateHandle if the handle is already
14448           created, avoids a stack overflow on Windows when we are recreating
14449           controls.
14450         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
14451           they are made visible, and override AfterTopMostControl to keep
14452           them on top when other controls are brought to front.
14453           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
14454           or force_*scroll_visible is true (old implementation always shows
14455           scrollbars when needed, no matter what auto_scroll was set to).
14456         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
14457           IsHandleCreated check.
14458
14459 2007-03-22  Andreia Gaita  <avidigal@novell.com>
14460
14461         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
14462         row or col separator.
14463         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
14464
14465 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14466
14467         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
14468
14469 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14470
14471         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
14472         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
14473         every time. Fixes #80410.
14474
14475 2007-03-22  Chris Toshok  <toshok@ximian.com>
14476
14477         * BindingSource.cs (AddNew): partially implement.
14478
14479         remove a couple of NotImplementedException's
14480         to get bug #81148 closed.
14481
14482 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14483
14484         [Fixes #80380]
14485         
14486         * Control.cs:
14487         - UpdateCursor method added to update the screen cursor.
14488         - GetAvailableCursor method added to return cursor for enabled tree,
14489         it searches for cursor on control and it's parent's for enabled control.
14490         - Call UpdateCursor method on setter of Cursor property.
14491         - On setter of Enabled call UpdateCursor when it is false, we need to
14492         change cursor to normal (or to this parent cursor) because cursor 
14493         setting theres no effect to disabled controls.
14494         - Some minor source changes to follow the coding style guidelines.
14495
14496         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
14497         controls.
14498
14499 2007-03-22  Chris Toshok  <toshok@ximian.com>
14500
14501         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
14502         generates.
14503
14504 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14505
14506         * XplatUIX11.cs: Implement default locations for forms.
14507         * Form.cs: Completely rework startup location for forms. Fixes #79964.
14508         * Hwnd.cs: Add previous_child_startup_location (to track the current
14509           startup location for any child forms of the current form) and
14510           previous_main_startup_location (to track the startup location for
14511           the current toplevel form).
14512
14513 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14514
14515         * Control.cs: Don't trigger a layout if an implicit control is added
14516         that isn't visible.  Also, don't notify the owner when an implicit control
14517         is added.  (Owners shouldn't even know about their implicit controls.)
14518
14519 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14520
14521         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
14522         to save some re-layouts.
14523
14524 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
14525
14526         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
14527         [Fixes #81203]
14528
14529 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14530
14531         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
14532         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
14533
14534 2007-03-21  Mike Kestner  <mkestner@novell.com>
14535
14536         * ListView.cs : disable selection update for non-left button clicks
14537         with mods and over selected items.  [Fixes #80524]
14538
14539 2007-03-20  Jackson Harper  <jackson@ximian.com>
14540
14541         * TextControl.cs:
14542         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
14543         \r\r\n, \n.
14544
14545 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14546
14547         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
14548           very probably a more complicated calculation there. Update the
14549           textbox' ForeColor and BackColor when the ComboBox' colors are
14550           changed. Change the border change in LayoutComboBox to only affect
14551           the textbox, not all the calculations there. Seems to fix most of
14552           #79436.
14553
14554 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14555
14556         * ComboBox.cs: Handle Home and End keys as well as all combinations of
14557           modifiers + navigation keys as input keys, enables advanced text
14558           selection in the combobox (like Shift+Left Arrow for instance).
14559           ComboTextBox now overrides Focused and returns whatever
14560           ComboBox.Focused returns, since it really should be focused
14561           whenever the ComboBox is. Fixes #80795. Also make the border around
14562           the text box one pixel bigger, as mentioned in #79436.
14563
14564 2007-03-20  Jackson Harper  <jackson@ximian.com>
14565
14566         * TreeView.cs: Don't offset the images, this was causing some
14567         artifacts when expanding/collapsing with images that were the
14568         exact height of the treenode.
14569
14570 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14571
14572         * TrackBar.cs: Query the theme for the correct value when the mouse
14573           moves and the thumb is pressed. 
14574         * Theme.cs: Added TrackBarValueFromMousePosition
14575         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
14576           implementation was updating the trackbar value when drawing, now
14577           the drawing methods only draw. Fixes #80900. Refactored the
14578           calculations out to TrackBarValueFromMousePosition and
14579           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
14580           according to the mouse position whenever it wants to. Changed the
14581           light coloured pen when drawing the thumb from ControlLight to
14582           ControlLightLight, because the ControlLight is the same colour as
14583           the background so the 3D effect is lost. 
14584
14585 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14586
14587         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
14588         defined. Fixes #80784.
14589
14590 2007-03-20  Marek Habersack  <mhabersack@novell.com>
14591
14592         * ContextMenuStrip.cs: align with the change introduced in
14593         revision 74664.
14594
14595 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14596
14597         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
14598         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
14599         in SetTopmost.
14600
14601 2007-03-19  Chris Toshok  <toshok@ximian.com>
14602
14603         * Control.cs (WmPaint): don't make use of the Handle property
14604         after an event is emitted, as the user could have closed the
14605         form/destroyed the control.  Store the Handle in a local variable
14606         and make use of that.  Fixes bug #80768.
14607
14608 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14609
14610         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
14611         behavior in X11 environments.
14612
14613 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14614
14615         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
14616         because on setter of topmost we dont call SetTopmost when handle is not
14617         created.
14618
14619 2007-03-20  Jackson Harper  <jackson@ximian.com>
14620
14621         * TextControl.cs: Need to use SelectionLength () not
14622         selection_length, since that var is reset to -1.
14623         - Draw the caret when we don't have focus.
14624         * TextBox.cs: The selectall actually doesn't occur until the first
14625         focus.
14626         * TextBoxBase.cs: Need to update the caret position after a
14627         selectall.
14628         
14629 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14630
14631         * ListView.cs: Enable scrolling when using Tile view.
14632
14633 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14634
14635         [Fixes #80902]
14636
14637         * XplatUIDriver.cs: Abstract SetOwner method created.
14638
14639         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
14640         must be implemented and was masked as todo.
14641
14642         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
14643         GWL_HWNDPARENT.
14644
14645         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
14646         cheking for null owner to remove transient. The SetTopmost will be change
14647         on a decond step.
14648
14649         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
14650         SetTopmost. Now owned forms will work properly in win32 and X11.
14651
14652 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14653
14654         * MdiWindowManager.cs: Update function name.
14655         * Form.cs: After closing a form MdiParent is always null.
14656         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
14657           better what it should do: necessary book-keeping when the form is
14658           closed, it should not close the form itself.
14659
14660 2007-03-19  Andreia Gaita  <avidigal@novell.com>
14661
14662         * ListViewItem.cs: Fix back and fore color. The subitems only
14663         use their own colors if they are set, otherwise use the listview's
14664         colors. Don't set default colors on constructor for subitem.
14665         Fixes #79315.
14666
14667 2007-03-19  Mike Kestner  <mkestner@novell.com>
14668
14669         * ListView.cs : make box selection for Details views with 
14670         FullRowSelect conform to MS behavior when clicking in the "item" 
14671         column and clicking outside the defined columns.
14672         [Fixes case 5-6 of #80374]
14673
14674 2007-03-19  Chris Toshok  <toshok@ximian.com>
14675
14676         * ScrollableControl.cs: create the controls from within the ctor,
14677         but don't actually add them until our handle is created.  this
14678         fixes a NRE possibility jpobst found (if you override OnLayout in
14679         a subclass, it's called before your ctor).  Also, add a
14680         IsHandleCreated guard to UpdateSizeGripVisibility as well.
14681
14682 2007-03-19  Jackson Harper  <jackson@ximian.com>
14683
14684         * TextBox.cs: Reduce the amount of invalidation we do.
14685         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
14686         some of them are true by default on MS.
14687         - Add some functions to reduce the amount of invalidates we do.
14688         * TextControl.cs: Less invalidation.
14689
14690 2007-03-19  Chris Toshok  <toshok@ximian.com>
14691
14692         [ Fixes #81773, and *seems* to fix #81553 as well ]
14693
14694         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
14695         AccumulateDestroyedHandles.  We need to do it *after* we send
14696         WM_DESTROY, as the user's code can access Control.Handle in
14697         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
14698         move the WM_DESTROY/zombie handling to before the call to
14699         XDestroyWindow.  For some reason without this ordering
14700         FormTest.RecreateHandle hangs.  This ordering is semantically
14701         equivalent, however, as XDestroyWindow is async anyway.
14702
14703 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
14704
14705         * RichTextBox.cs: Reset backcolor_set after setting default.
14706
14707 2007-03-19  Chris Toshok  <toshok@ximian.com>
14708
14709         * ScrollableControl.cs: the scroll position should not effect the
14710         canvas size.  commit patch from georgegiolfan@yahoo.com, which
14711         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
14712         
14713 2007-03-19  Chris Toshok  <toshok@ximian.com>
14714
14715         * ScrollableControl.cs: clean this up a bit.  create the
14716         scrollbars in the ctor and just show/hide them as needed.  Also,
14717         make hscroll_visible/vscroll_visible internal to Recalculate, and
14718         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
14719         everywhere else.  This seems to fix the scrollbars appearing
14720         beneath the content for me (i have *no* idea why that is,
14721         however.)
14722
14723 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
14724
14725         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
14726         some redundacy for stuff in Anchor and Dock that base will take care of.
14727         [Fixes #80762]
14728
14729 2007-03-19  Mike Kestner  <mkestner@novell.com>
14730
14731         * ListView.cs : make box selection for Details views without 
14732         FullRowSelect dependent on the text bounds, not item bounds.
14733         * ListViewItem.cs : add an internal property to obtain the TextBounds
14734         in Details view.  [Fixes case 1-4 of #80374]
14735
14736 2007-03-19  Andreia Gaita  <avidigal@novell.com>
14737
14738         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
14739         we're < 2.0. #78448 && #80316
14740
14741 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
14742
14743         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
14744         have the same style available as the previously selected one.  Also,
14745         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
14746
14747 2007-03-19  Jackson Harper  <jackson@ximian.com>
14748
14749         * TextControl.cs: Add an alignment property that all new lines
14750         will be given.
14751         - Make sure to use the align shift when calculating the line's X
14752         position.
14753         * TextBox.cs: Set the alignment on the document as well as on all
14754         the document lines.
14755
14756 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14757
14758         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
14759           throw if setting the parent of an mdichild that already has an
14760           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
14761           AssemblyProductAttribute in the assembly, use the type's namespace (as
14762           MS seems to do). CreateControl: don't create the handle if the control
14763           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
14764           create handle if the control is not a form. Change FocusInternal to
14765           virtual so that it can be overriden by Form.
14766         * TextBox.cs: Update call to FocusInternal.
14767         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
14768           form is not a toplevel form when it's a mdi child, so update is_toplevel
14769           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
14770           hasn't been created. Show (IWin32Window): Don't allow this overload for
14771           toplevel windows. CenterToParent/CenterToScreen/Select: create the
14772           handle as MS does. SetVisibleCore: if called on a MdiChild and the
14773           parent isn't visible yet, save the visibility and restore it when the
14774           parent is made visible.
14775         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
14776           methods, since the visibility of the scrollbars can be changed from
14777           several places, not only from AutoScroll.
14778           [Fixes #81179]
14779
14780 2007-03-19  Jackson Harper  <jackson@ximian.com>
14781
14782         * RichTextBox.cs: Enable shortcuts by default.
14783         * TextBoxBase.cs: Add conditional shortcuts.  
14784
14785 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
14786
14787         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
14788
14789 2007-03-19  Chris Toshok  <toshok@ximian.com>
14790
14791         [ Fixes bug #80604]
14792         
14793         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
14794         swallow the message we're waiting on, instead of delivering it, as
14795         this is only used for the WM_SHOWWINDOW raised from
14796         MapWindow/UnmapWindow, and the message needs to be generated
14797         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
14798         before doing the Map/Unmap.  Also make sure that the Hwnd is still
14799         alive after the message has been handled.
14800
14801         *before* the window is shown.
14802
14803         * Control.cs (CreateControl): guard a few more things inside the
14804         if (!is_created) block, as we might end up being called again -
14805         yay .net.
14806         (WmShowWindow): call CreateControl if we're showing the control.
14807
14808 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14809
14810         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
14811           controls without a handle if they have any parent with a handle. In
14812           Dispose add a check whether the handle is created or not before
14813           calling BeginInvoke, this removes the need of the extra disposing
14814           parameter (which was bogus anyway since it didn't prevent the
14815           invoke from happening, it only skipped the check for an existing
14816           handle, meaning that the invoke would call on an inexistent
14817           handle).
14818
14819 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
14820
14821         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
14822         appears in taskbar.
14823
14824 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
14825
14826         * MessageBox.cs:
14827         - Fixed a problem that dont show help button for messages with 3 buttons.
14828         - Refactory button size and position calculations, now dont use fixed 
14829         values, also fixed button sizes (#80043) and form's border space.
14830         - AddButton method created, now all other AddButton methods call this one.
14831         - Some other source code cosmetic changes.
14832
14833 2007-03-18  Jackson Harper  <jackson@ximian.com>
14834
14835         * RichTextBox.cs: Don't do this all fonts must match check if
14836         there is only one char selected.
14837
14838 2007-03-18  Jackson Harper  <jackson@ximian.com>
14839
14840         * TreeView.cs: ScrollWindow works properly now, so we don't need
14841         to screw around with the scroll area.  This fixes some artifacts
14842         when expanding and collapsing.
14843
14844 2007-03-18  Jackson Harper  <jackson@ximian.com>
14845
14846         * TextBoxBase.cs: Allow updating the selection position when the
14847         cursor is outside the textarea, but we have a capture.
14848         * TextControl.cs: A special case for when the cursor is outside
14849         the bounds of the TB.
14850         
14851 2007-03-18  Jackson Harper  <jackson@ximian.com>
14852
14853         * TextBoxBase.cs: Remove image pasting code for now.  There is no
14854         way to get an image on the clipboard right now anyways.
14855         * TextControl.cs:
14856         * RichTextBox.cs: Use the new RTF Picture class for pictures.
14857
14858 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
14859
14860         * MessageBox.cs:
14861         - Set window properties in constructor intead of on CreateParams.
14862         - Remove topmost from Window ExStyle.
14863         - Set ShowInTaskbar to false.
14864         - Set form border to FixedDialog.
14865         - Some cosmetic changes and remove unneeded comments.
14866         - It fixes itens 2,3 and 4 of bug #80043.
14867
14868 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
14869
14870         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
14871         none was explicitly set. Fixes part of bug #79949.
14872
14873 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
14874
14875         * ToolStripComboBox.cs: Add AutoComplete*.
14876
14877 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
14878
14879         * ToolStripComboBox.cs: Add FlatStyle.
14880
14881 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
14882
14883         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
14884         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
14885
14886 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14887
14888         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
14889           CheckBox.cs, RadioButton.cs, BindingSource.cs,
14890           DataGridColumnStyle.cs: Remove warnings.
14891
14892 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14893
14894         * Menu.cs: MergeMenu: Check menu argument for null before looping over
14895           it.
14896         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
14897           visibility of mdi child forms. FormSizeChangedHandler: update the
14898           maximized size if size has changed while maximized.
14899         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
14900           creating the handle.
14901         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
14902           avoid creating the handle if not created.
14903         * XplatUI.cs: Update debug output.
14904         * XplatUIStructs.cs: Added ToString's for a couple of structs.
14905
14906 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
14907
14908         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
14909         ProcessCmdKey().
14910         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
14911         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
14912         Implement keyboard shortcuts.
14913
14914 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
14915
14916         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
14917         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
14918         ColorDialog and all derived classes.
14919
14920 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
14921
14922         [ Fixes bug #79828 ]
14923
14924         * ToolBar.cs:
14925         - Rename ToolBarButtonInfor to ToolBarItem.
14926         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
14927         - Maintain an array of ToolBarItem, used instead of ToolBarButton
14928         collection to be able add same button more than one time on a toolbar.
14929         - Refactory all properties and methods to use ToolBarItem. 
14930
14931         * ToolBarButton.cs: 
14932         - Remove all propeties and methods that is now in ToolBarItem.
14933         - Rectangle propery now gets the rectangle from first ToolBarItem to
14934         mimic win32 behavior.
14935         - Size calculation and layout methods also removed.
14936
14937         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
14938         ToolBarItem instead of ToolBarButton to right drawing buttons when
14939         same button/separator was added more than one time to ToolBar.
14940
14941         * ThemeNice.cs: Same as above. 
14942
14943 2007-03-15  Andreia Gaita  <avidigal@novell.com>
14944
14945         * XplatUIX11.cs: Fire extra MouseMove events right after
14946         MouseDown and MouseUp, emulating win32's <censored> behaviour
14947         for apps that rely on it.
14948
14949 2007-03-15  Jackson Harper  <jackson@ximian.com>
14950
14951         * TextControl.cs:
14952         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
14953         it is drawn on the controls client window and there is no NC
14954         area.
14955         - Set the background color to gray on 2.0 when we are readonly.
14956
14957 2007-03-15  Chris Toshok  <toshok@ximian.com>
14958
14959         [ Fixes bug #81144 ]
14960         
14961         * XplatUIX11.cs: implement VirtualScreen independently of
14962         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
14963         property.
14964
14965 2007-03-15  Chris Toshok  <toshok@ximian.com>
14966
14967         * Hwnd.cs: add an internal field for the cached_window_state.
14968
14969         * XplatUIX11.cs: cache the window state, invalidating the cache
14970         (and thus re-querying the X server) only when we see an update to
14971         the _NET_WM_STATE property.
14972
14973 2007-03-15  Chris Toshok  <toshok@ximian.com>
14974
14975         * BindingSource.cs: get a lot of the unit tests working.
14976
14977 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
14978
14979         * Control.cs: Modify UpdateStyles to store distances when bounds >=
14980         0 instead of just bounds > 0.  [Fixes bug #80912]
14981
14982 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
14983
14984         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
14985         and methods.
14986
14987 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
14988         
14989         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
14990         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
14991         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
14992         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
14993
14994 2007-03-15  Chris Toshok  <toshok@ximian.com>
14995
14996         [ Fixes #81101 ]
14997         
14998         * Control.cs: add Ivan's fix for 81101, with a slight modification
14999         - you can set control.Target to null.
15000
15001 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
15002
15003         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
15004         HideDropDown, use Hide instead to prevent an NRE.
15005         [Fixes bug #81147]
15006
15007 2007-03-14  Jackson Harper  <jackson@ximian.com>
15008
15009         * TextBoxBase.cs: Mess with the creation stuff a little. We need
15010         to calculate the document before the handle is created, in some
15011         cases. (Actually just one case).
15012
15013 2007-03-14  Jackson Harper  <jackson@ximian.com>
15014
15015         * TextBoxBase.cs: Need to display the caret after letting the base
15016         wndproc handle the focus methods, because the caret display
15017         methods check the focus state.
15018         - Try to display the caret after updating it's position with SelectWord.
15019         - Don't need to do an immediate update on this recalc, since there
15020         will be an invalidate anyways.
15021
15022 2007-03-14  Jackson Harper  <jackson@ximian.com>
15023
15024         * TreeView.cs: Some workarounds so that we can match event order a
15025         little better.
15026
15027 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
15028
15029         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15030         #80803. Avoid NullReferenceException when Control does not have
15031         parent. Fixed different blinkstyle issues. Only subscribe to Tick
15032         event a single time. Only draw error icon when control is created and
15033         visible. Fixes failing unit tests.
15034
15035 2007-03-14  Andreia Gaita  <avidigal@novell.com>
15036
15037         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15038         Selecting events. Fire Leave and Enter events when changing tabs.
15039
15040 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
15041
15042         * TreeView.cs: Add TreeViewNodeSorter.
15043         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15044
15045 2007-03-14  Chris Toshok  <toshok@ximian.com>
15046
15047         * Form.cs: go ahead and remove the RecreateHandles that jpobst
15048         removed earlier and I had him add back it.  It turns out metacity
15049         *does* in fact handle the MOTIF_WM_HINTS property changing, it
15050         just doesn't redraw the window titlebar until you resize the
15051         window.  This also means we aren't recreating the entire window
15052         hierarchy on X when you change this property.  And it looks better
15053         on windows, too.
15054
15055 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15056
15057         * ListViewItem.cs:
15058         * ListView.cs: Collecting selection information
15059         is now done in SelectedIndexCollection rather than in
15060         SelectedListViewItemCollection. This is done so we can
15061         have the selection information code in one single place
15062         (virtual mode selection information entirely depends on
15063         SelectedIndexCollection).
15064
15065 2007-03-13  Miguel de Icaza  <miguel@novell.com>
15066
15067         * ErrorProvider.cs: Add stubs for ISupportInitialize
15068
15069 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15070
15071         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15072         in the right order with the right values, from the Checked property, 
15073         just as MS does (instead of triggering them from ListView).
15074
15075         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15076
15077 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15078
15079         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
15080         the correct handler in OnItemCheck method (ItemCheckEventHandler 
15081         instead of EventHandler). This used to throw an InvalidCastException.
15082
15083 2007-03-13  Jackson Harper  <jackson@ximian.com>
15084
15085         * TextBoxBase.cs: Calculate the document before the handle is
15086         created, so there isn't an extra invalidate called.
15087
15088 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
15089
15090         * Form.cs: Don't set owner in ShowDialog until we are sure
15091         that we aren't going to throw an exception.  [Fixes bug #80773]
15092
15093 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
15094
15095         * TreeView.cs: Make it compile.
15096
15097 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15098
15099         * Control.cs: Another place we don't call SizeFromClientSize.
15100         * Form.cs: Another place we don't call SizeFromClientSize.
15101         [Fixes bug #81125]
15102
15103 2007-03-12  Jackson Harper  <jackson@ximian.com>
15104
15105         * TreeView.cs: Basically emulating some strangness here with
15106         exanding nodes and setting node positions when windows aren't
15107         created.
15108         - Also attempting to walk the node tree less than previously, and
15109         just use visible order calculations for determining offsets.
15110         - oops made scrolling backwards.
15111         * TreeNode.cs: We need to start nodes with a zero visible order,
15112         because the order calcs are based on the first nodes order.
15113
15114 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15115
15116         * Form.cs: Don't exit the program if RecreateHandle is called on
15117         the main form.
15118
15119 2007-03-12  Chris Toshok  <toshok@ximian.com>
15120
15121         * XEventQueue.cs: remove the use of PostQuitState.
15122
15123         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
15124         WM_QUIT message in GetMessage, return false (and if we're in the
15125         nested WaitForHwndMessage, repost the WM_QUIT message).
15126
15127 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15128
15129         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
15130         or the MaximizeBox properties.  [Part of bug #80640]
15131
15132 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
15133
15134         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
15135         no links.
15136
15137 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15138
15139         * ToolStripItem.cs: Fix some tests I broke by checking Visible
15140         instead of visible.
15141
15142 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
15143
15144         * FileDialog.cs: Use text of File name combobox to determine what
15145         files the user selected. Added tokenizer to parse the file names.
15146         Fixes bug #81123.
15147
15148 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15149
15150         * Control.cs: We can't call SizeFromClientSize in the constructor,
15151         but we still need to do the same work, so make an internal version.
15152         [Fixes bug #80621]
15153
15154 2007-03-12  Jackson Harper  <jackson@ximian.com>
15155
15156         * TreeView.cs:
15157         * TreeNode.cs:
15158         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
15159         IsExpanded.
15160
15161 2007-03-12  Jackson Harper  <jackson@ximian.com>
15162
15163         * TextBoxBase.cs: Now that the handles are being created a little
15164         later, we need to make sure that the document is recalculated when
15165         the handle is created.
15166
15167 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
15168
15169         * Theme.cs: GetLinkFont abstract method added.
15170         
15171         * LinkLabel.cs: 
15172         - Remove CalcTrimRectangle, no longer needed.
15173         - Factor also remove, position issues must be fixed in libgdiplus.
15174         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
15175         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
15176         care about font used to draw links.
15177         - Set TabStop to true when control is "Selectable", control is selectable
15178         when have one or more links. Fixes #80501 (test case is also added).
15179         - Set the LinkArea values after links change, LinkArea values must be
15180         based in first link position and size, a test case was created.
15181         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
15182         the attribute must be true LinkArea.Length > 0. The same was applied to
15183         TabStop.
15184         
15185         * ThemeWin32Classic.cs: 
15186         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
15187         in draw method.
15188         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
15189         color change.
15190         - Draw focus rectangle for every parts focused, including parts that 
15191         is on another line, its because regions returns various rectangles
15192         and not only one. Needed to mimic W32 look.
15193         - Uses Graphics.Clip to delimite region painted, it mean that now 
15194         complete text is passed to DrawString, with this we solve layout
15195         issues without create another text renderer.
15196         - Uses Region.Intersect to fix some flickers problems, now only needed
15197         parts will redrawed.
15198         - This changes fixes #79614 and some other unreported issues, on Linux 
15199         some layout problems still remain, the problem is under 
15200         MeasureCharacterRanges but it is an libgdiplus bug.
15201
15202 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
15203
15204         * TextBox.cs: Set for foreground color.
15205         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
15206         this is already done in Control.
15207
15208 2007-03-10  Jackson Harper  <jackson@ximian.com>
15209
15210         * TextBox.cs: Set the background color, but reset the
15211         backcolor_set flag which is just for the user setting the
15212         background color.
15213
15214 2007-03-09  Chris Toshok  <toshok@ximian.com>
15215
15216         * Control.cs: really remove the call to XplatUI.SetVisible from
15217         CreateHandle(), like I said I did when I merged the branch.
15218
15219         * BindingSource.cs: implement some more of this stuff.
15220
15221 2007-03-09  Jackson Harper  <jackson@ximian.com>
15222
15223         * TextBox.cs: Don't explicitly set our background colors.
15224         * TextControl.cs:
15225         * TextBoxBase.cs: Draw readonly text.
15226         - Need to invalidate when backcolor or readonly are changed.
15227         
15228 2007-03-09  Jackson Harper  <jackson@ximian.com>
15229
15230         * TextBoxBase.cs: Don't set the forecolor until the handle is
15231         created.
15232         - Do not raise OnPaint, and removed some old debug code.
15233
15234 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
15235
15236         * ScrollableControl.cs: Fix mouse wheel scrolling.
15237
15238 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15239
15240         * Control.cs: Wire up MouseDoubleClick event.
15241
15242 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15243
15244         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
15245         top or bottom.
15246         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
15247         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
15248         item is added.  This logic was moved to ToolStrip.OnItemAdded.
15249         [Fixes bug #81090]
15250
15251 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15252
15253         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
15254
15255 2007-03-08  Jackson Harper  <jackson@ximian.com>
15256
15257         * TreeView.cs: Show the correct image for selected node (this used
15258         to work, not sure how the code got deleted). Also implemented 2.0 feature
15259         SelectedImageKey.
15260
15261 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15262
15263         * ListView.cs:
15264         * ListViewItem.cs: Cache index in items when retrieving them
15265         in VirtualMode.
15266
15267 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15268
15269         * ToolStripItem.cs: Don't return the explicit_size if we are using 
15270         AutoSize.  Fixes invalidation issue when user has explicitly set a
15271         size and has AutoSize = true.
15272
15273 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15274
15275         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
15276
15277 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15278
15279         * DataGridView.cs: Remove event handler from DataView when a
15280         DataTable is used as DataSource.
15281
15282 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15283
15284         * Control.cs: Create internal setter for client_size to allow it to be
15285         set without triggering resizing code.
15286         * Form.cs: Calculate client_size in constructor, only change client_size
15287         in FormBorderStyle property if Handle has been created.
15288         [Fixes #80574, #80791]
15289
15290 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
15291
15292         * SystemInformation.cs: Add TerminalServerSession.
15293
15294 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15295
15296         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
15297         TreeView code.
15298
15299 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15300
15301         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
15302         Handle before we were supposed to.  Now checks ActivateOnShow property
15303         in Control.
15304         * Control.cs: Add internal ActivateOnShow property.
15305         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
15306         for ActivateOnShow.
15307         * Hwnd.cs Remove no longer needed no_activate field.
15308
15309 2007-03-07  Jackson Harper  <jackson@ximian.com>
15310
15311         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
15312         2.0 properties
15313         * DrawTreeNodeEventHandler.cs: Add
15314         * DrawTreeNodeEventArgs.cs: Correct default value.
15315         
15316 2007-03-07  Chris Toshok  <toshok@ximian.com>
15317
15318         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
15319         to be called before NativeWindow.WndProc.  Put the HwndCreating
15320         magic there to hook up our Hwnd's to handles.
15321
15322 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
15323
15324         * DataGridView.cs: Comment out debug code.
15325
15326 2007-03-07  Chris Toshok  <toshok@ximian.com>
15327
15328         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
15329         to make the rest of the world happy]
15330
15331         * Control.cs (CreateHandle): there's no need to call
15332         XplatUI.SetVisible here, it's effectively done by
15333         XplatUI.CreateWindow on X now, and always was on windows.
15334
15335         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
15336         shortcircuit out of the loop if we have a message loop running on
15337         this thread.
15338
15339         [Changelog from merge]
15340
15341         2007-03-05  Chris Toshok  <toshok@ximian.com>
15342
15343                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
15344                 causes handle creation.
15345
15346         2007-02-28  Chris Toshok  <toshok@ximian.com>
15347
15348                 * ApplicationContext.cs: Add a flag to make sure we only raise the
15349                 ThreadExit event once (ExitThreadCore can be indirectly called
15350                 from a few places.)  I don't like the additional flag, but it
15351                 makes the event ordering/count correct.
15352
15353                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
15354                 without locking the collection.  An enumerator doesn't give us any
15355                 protection from modification anyway.  Lock the thread hash and
15356                 replace the complicated enumerator loop with a foreach.
15357                 (Application.CloseForms): make internal so it can be called from
15358                 ApplicationContext.  This should probably be moved to MWFThread.
15359                 (Application.ExitThread): don't call MWFThread.Current.Exit()
15360                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
15361                 when the runloop exits (in response to WM_QUIT.)
15362                 (Application.RunLoop): add a comment (and check) for
15363                 context.MainForm being null after setting context.MainForm.Visible
15364                 = true.  This is because you're perfectly free to dispose of a
15365                 form in VisibilityChanged.  Chalk this up to another case where we
15366                 need to synchronously generate WM_ACTIVATE from Control.Show.
15367                 Also, add handling for WM_QUIT here so we'll exit the loop.
15368                 
15369                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
15370                 fact that we don't wait if we're only unmapping the whole_window
15371                 makes me a bit nervous, but it doesn't seem to cause any problems
15372                 yet.
15373
15374                 also, add a comment about the stupid, broken and wrong resetting
15375                 of PostQuitState to false in GetMessage().
15376
15377                 In PostQuitMessage, we need to add a WM_QUIT message to the
15378                 thread's queue.  We use the FosterParent to get the right
15379                 handle/hwnd/queue.
15380
15381                 Lastly, in SetVisible, we need to unmap both windows, since the
15382                 waiting only happens when we're unmapping the client window.  So
15383                 now, the *only* time we unmap just the whole_window is in the hack
15384                 for resizing a control to 0,0.
15385                 
15386         2007-02-21  Chris Toshok  <toshok@ximian.com>
15387
15388                 * Application.cs (CloseForms): rewrite this so that we don't
15389                 modify the list while we're traversing it.
15390
15391         2007-02-20  Chris Toshok  <toshok@ximian.com>
15392
15393                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
15394                 of OnHandleCreated.
15395                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
15396                 handle is created.  otherwise we'll create it here.
15397                 (VerticalScrollEvent): same here.
15398
15399                 * Application.cs (CloseForms): call Form.Dispose, don't post
15400                 WM_CLOSE_INTERNAL.
15401
15402                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
15403                 here. Application should Dispose() of the Form's.
15404
15405                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
15406                 WM_DESTROY as well.
15407                 (MapWindow,UnmapWindow): only actually do the waiting for
15408                 SHOWWINDOW if the control we're dealing with is a Form.
15409                 (CreateWindow): if the control isn't a form, SendMessage
15410                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
15411
15412                 * Control.cs (SetVisibleCore): always use is_visible here, not
15413                 value.  If we use value, we can end up re-setting something
15414                 visible if, for instance, you do Control.Hide() in a delegate
15415                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
15416
15417         2007-02-20  Chris Toshok  <toshok@ximian.com>
15418
15419                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
15420                 the message we need.  PeekMessage returning false should not be a
15421                 condition under which we exit the loop.
15422
15423         2007-02-15  Chris Toshok  <toshok@ximian.com>
15424
15425                 * Control.cs (Refresh): only refresh if we've got a handle and are
15426                 visible.
15427                 (CreateAccessibilityInstance): CreateControl() here.
15428                 (UpdateChildrenZOrder): complicate the code loop even more by
15429                 taking into account controls that haven't had their handle
15430                 created, and those that aren't visible.  But on the flip side,
15431                 simplify the code by splitting it into two loops.  one which
15432                 builds up the list of child controls we're interested in, and the
15433                 other that sets the z order of those children.
15434
15435         2007-02-14  Chris Toshok  <toshok@ximian.com>
15436
15437                 * Control.cs: Control.AccessibilityObject causes the control to be
15438                 created, not just the handle.
15439
15440         2007-02-14  Chris Toshok  <toshok@ximian.com>
15441
15442                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
15443                 problem on X where a window might have its handle created (and be
15444                 visible) while the window is unmapped.  calling XConfigureWindow
15445                 on an unmapped window is bad, and generates X errors.
15446
15447         2007-02-13  Chris Toshok  <toshok@ximian.com>
15448
15449                 * Control.cs (CreateHandle): don't loop over our children setting
15450                 their parent here.  do it when in WndProc when we're shown.
15451                 (UpdateChildrenZOrder): make this internal so we can call it from
15452                 ScrollableControl.
15453                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
15454                 creating its handle.  Also, remove the calls to PerformLayout from
15455                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
15456                 OnVisibleChanged only seems to be called directly here for the
15457                 toplevel control.  It's propagated down the window hierarchy by
15458                 calls to child.OnParentVisibleChanged.
15459                 (OnVisibleChanged): don't do layout here - it's done (oddly
15460                 enough, according to a glance at stack traces on ms.net..) in
15461                 ScrollableControl.
15462                 
15463                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
15464                 z order of our children before calling PerformLayout.
15465
15466         2007-02-12  Chris Toshok  <toshok@ximian.com>
15467
15468                 [big change, fixes #80020]
15469                 
15470                 * AccessibleObject.cs: we need to make owner internal again to fix
15471                 some of ControlAccessibleObject.
15472
15473                 * Control.cs: lots of changes here.  add support for WM_CREATE,
15474                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
15475                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
15476                 we create child controls.  leave the MonoTODO's for the
15477                 accessibility calls, but fix the exceptions so the tests pass.
15478
15479                 Add the InvalidOperationExceptions to Invoke methods, and remove a
15480                 couple of InvokeInternal methods we aren't using.
15481                 
15482                 Also, add a couple of CreateHandle calls in places where we know
15483                 the handles are being created but our code doesn't reference
15484                 .Handle.
15485
15486                 Make SetVisibleCore call OnVisibleChange if the handle isn't
15487                 created.  If the handle is created, we rely on XplatUI.SetVisible
15488                 generating the event synchronously.
15489                 
15490                 Lastly, make sure we don't use this.Handle inside CreateHandle,
15491                 because we can call back into client (and that code can dispose of
15492                 the control).
15493
15494                 * XplatUIStructs.cs: misc/cleanup.
15495
15496                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
15497                 although we don't populate the wParam properly.
15498                 (CreateWindow): generate WM_CREATE.
15499                 (MapWindow,UnmapWindow): make these calls synchronous, at great
15500                 performance expense (particularly in the unmap case), to match
15501                 win32 behavior.
15502
15503                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
15504                 to call it.
15505                 (set_MdiParent): don't recreate the handle unless it's been
15506                 created already.
15507                 
15508                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
15509                 it's created.
15510
15511                 * NativeWindow.cs: this is probably the weirdest part of the
15512                 patch.  We need a way to link up the window being created to the
15513                 WM_CREATE message.  Since we can only be creating one window at a
15514                 time on a given thread, we keep track of a per-thread reference so
15515                 we can dispatch it properly.  We also need to keep track of the
15516                 Hwnd currently being created so that the win32 backend doesn't
15517                 have problems.
15518                 
15519                 * XplatUIWin32.cs: a similar change to the one we made in
15520                 NativeWindow.cs.
15521
15522 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15523
15524         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
15525         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
15526         to draw the menu shortcut string.
15527
15528 2007-03-07  Jackson Harper  <jackson@ximian.com>
15529
15530         * TreeNode.cs: Add the 2.0 collapse method.
15531
15532 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15533
15534         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
15535
15536 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15537
15538         * DataGridView.cs: Change DataSource will clear column and row
15539         lists. Call Invalidate() to reflect DataSource change.
15540
15541 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15542
15543         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
15544         and a new row is added to it.
15545
15546 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15547
15548         * DataGridView.cs: Add columns when DataSource is en empty list but
15549         is a System.Data.DataView (from a System.Data.DataTable).
15550
15551 2007-03-06  Andreia Gaita  <avidigal@novell.com>
15552
15553         * Label.cs: Implement AutoEllipsis (2.0)
15554
15555 2007-03-06  Jackson Harper  <jackson@ximian.com>
15556
15557         * TreeView.cs: Implement 2.0 TopNode setter property.
15558         - Use a local var instead of the skipped_nodes field for computing
15559         how many nodes to skip.  Otherwise we won't scroll because the
15560         valuechanged handler checks if skipped_nodes is equal to the new
15561         value.
15562         - Implement 2.0 Sort method.
15563         - Add useless 2.0 DoubleBuffer property
15564         - Implement 2.0 LineColors property.  Lets you change the color of
15565         the lines in the tree. Terribly useful for creating non cohesive
15566         desktops.
15567         - Implement 2.0 image key feature.
15568
15569 2007-03-06  Jackson Harper  <jackson@ximian.com>
15570
15571         * TreeView.cs: We can't get the bounds of the nodes before raising
15572         the AfterSelect event, because that event could change the node's
15573         bounds (scrolling, font change, etc).
15574
15575 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15576
15577         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
15578         * Form.cs: Don't recreate handle when creating FormWindowManager, just
15579           update window styles. In CreateParams us VisibleInternal instead of
15580           VIsible to get the actual visible flag set for this form.
15581         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
15582           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
15583           handle the case when the form is already maximized, in which case
15584           it should be restored. Fixes #81043.
15585
15586 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15587
15588         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
15589
15590 2007-03-05  Jackson Harper  <jackson@ximian.com>
15591
15592         * TreeViewHitTestInfo.cs: implement.
15593
15594 2007-03-05  Jackson Harper  <jackson@ximian.com>
15595
15596         * InternalWindowManager.cs: class status fix.
15597
15598 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15599
15600         * InternalWindowManager.cs: All windows that have a parent
15601         are confined to their parent when they're being moved.
15602         Fixes #80822.
15603
15604 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
15605
15606         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
15607         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
15608
15609 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15610
15611         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
15612           buttons invisible before deciding which ones should be visible
15613           (fixes minimize/maximize buttons showing up in toolwindows). Remove
15614           an unused variable.
15615         * InternalWindowManager.cs: Remove warning.
15616
15617 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15618
15619         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
15620         to throw an InvalidOperationException is virtual mode is being used.
15621
15622 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
15623
15624         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
15625         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
15626         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
15627         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
15628         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
15629         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
15630
15631 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15632
15633         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
15634           driver.KeyboardDelay from XplatUI.KeyboardDelay 
15635         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
15636           (patch by Sergey Volk)
15637
15638 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15639
15640         * ToolWindowManager.cs: Added, contains logic for
15641           tool windows.
15642         * CreateParams.cs: Add a few helper methods and an
15643           internal variable to know which control the CreateParams belongs
15644           to.
15645         * Control.cs: Call Form.ChangingParent when the
15646           parent is about to be changed.
15647         * XplatUIX11.cs: DeriveStyles (): Set
15648           caption_height for all windows that have captions and are children.
15649           Update to use ToolWindowManager instead of InternalWindowManager
15650           for ToolWindows.
15651         * XplatUIWin32.cs: Set fake window styles for all
15652           windows that have window managers.
15653         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
15654           now duplicated for mdi windows when they are
15655           maximized, first for the buttons the window itself has, then for
15656           the buttons that appear in the menu bar. Makes things a little
15657           easier). Updated UpdateWindowDecorations, SetWindowState and the
15658           mouse eventhandlers accordingly.
15659         * Form.cs: Add ChangingParent (), contains the
15660           logic of what should happen when the parent changes. In MdiParent
15661           don't set things that ChangingParent () is doing. When handling
15662           WM_CLOSE, we can close the form if there are any other modal forms
15663           and the current form is a descendent of the modal form.
15664         * InternalWindowManager.cs: A lot of refactoring,
15665           the title buttons are now extracted to a separate container class
15666           that takes care of all button code (clicks, tooltips, etc). Moved
15667           Iconic|Maximized|Normal Bounds properties to this class from
15668           MdiWindowManager, so that the window state logic can succeed for
15669           other than mdi wm's. Implemented general window state change logic.
15670           Moved CreateButtons to ThemeWin32Classic, since the theme might
15671           override which buttons are available when as well as the exact
15672           location.
15673         * FormWindowManager.cs: Added, contains logic for
15674           normal forms.
15675         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
15676           which buttons go where (and if they are at all visible). 
15677           Removed special handling of maximized windows, since they aren't special. 
15678           In DrawManagedWindowDecorations don't try to draw the text if it is
15679           empty.
15680         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
15681           use whatever the wm gives us.
15682
15683 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
15684
15685         * ButtonBase.cs: Add 2.0 properties.
15686         * Button.cs: Override Draw for 2.0.
15687         * Control.cs: Add Entered and Selected properties.
15688         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
15689         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
15690         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
15691         buttons.
15692         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
15693
15694 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
15695
15696         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
15697
15698 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
15699
15700         * XplatUIWin32.cs: Register a new class with Windows each time we get
15701         a new ClassStyle.  [Fixes bugs #79432, #80817]
15702         * Controls.cs: Set the correct ClassStyle in CreateParams.
15703         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
15704
15705 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
15706
15707         * ListView.cs: Add fireEvent argument to ReorderColumn since the
15708         ColumnReordered event must not be signaled when modifying DisplayIndex
15709         of a ColumnHeader. Added internal ReorderColumns method which takes
15710         care of drawing, and updating the internal DisplayIndex of the
15711         ColumnHeader. Added AddColumn method which is invoked from
15712         ColumnHeaderCollection when adding or inserting columns, and which
15713         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
15714         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
15715         Recalculated dispay indices after removing a ColumnHeader.
15716         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
15717         match MS. Allows last display index to be returned after ListView
15718         is disposed. Update actual location of ColumnHeader when DisplayIndex
15719         is modified.
15720
15721 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
15722
15723         * LinkLabel.cs: Improve CalcTrimRectangle.
15724         
15725         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
15726
15727 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
15728
15729         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
15730         get rectangle as a result value.
15731
15732 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
15733
15734         * LinkLabel.cs: Theres some diferences between rectangle return from 
15735         MeasureCharacterRanges and the area used for DrawString to fix this 
15736         CalcMeasurementFactor method was created, it calcules the diferences
15737         to be use later to adjust rectangle in draw operations. Fixes #80473.
15738         
15739         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
15740         to adjust draw rectangle.
15741
15742 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
15743
15744         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
15745         text and some other changes to reduce and optimize source code.
15746
15747 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
15748
15749         * RadioButton.cs: Implement 2.0 event.
15750         * RelatedImageListAttribute.cs: Implement new class.
15751
15752 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
15753
15754         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
15755
15756 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
15757
15758         * CheckBox.cs: Implement 2.0 functionality.
15759
15760 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15761
15762         * ListView.cs: Refactor Add and AddRange methods of
15763         ListViewItemCollection, to not update the ListView
15764         everytime an item is added in AddRange. Also move the update
15765         code to a new CollectionChanged method, and call it
15766         from other methods that need it as well (this should also fix some
15767         bugs when Sorting is used).
15768
15769 2007-02-27  Jackson Harper  <jackson@ximian.com>
15770
15771         * TextControl.cs: Try to never let the caret stay in a non-text
15772         tag.
15773         * TextBoxBase.cs: Update the caret.
15774
15775 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
15776
15777         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
15778         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
15779         delete POINT structure, duplicate of one in XplatUIStructs.
15780         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
15781
15782 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
15783
15784         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
15785         edit box since otherwise the Label would immediately be set (even if
15786         the user did not modify the label). In OnKeyDown set Handled to true
15787         if Return or Escape was pressed. In ColumnHeaderCollection unlink
15788         columns that are to be removed. In ListViewItemCollection unlink items
15789         that are to be removed.
15790
15791 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
15792
15793         * TextRenderer.cs: If we set a GDI clip region, we need to clear
15794         it when we are done.  [Fixes bug #80949]
15795
15796 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15797
15798         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
15799
15800 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15801
15802         * ListView.cs: I forgot to commit the changes for ListView 
15803         in my previous patch.
15804
15805 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15806
15807         * Clipboard.cs: Partially implement an overload of SetDataObject.
15808         * Form.cs: Implement ShowWithoutActivation.
15809         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
15810
15811 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15812
15813         This is a first set of changes to make the Virtual mode works,
15814         by avoiding the retrieval of ListViewItem instances until
15815         draw time.
15816
15817         * ListView.cs: Store item position in the ListView instead of the
15818         ListViewItem, this way we don't request the Bounds property of
15819         ListViewItem inside the ListView calculations, as well as cache the item
15820         size in item_size field. Store indexes instead of ListViewItem
15821         instances in the matrix used by icon view. Add a ItemMatrixLocation
15822         struct to hold the row and col info of the matrix info.
15823
15824         * ListViewItem.cs: Don't store the location anymore, and only cache
15825         the rectangles for GetBounds. Use the ListView.GetItemLocation
15826         method to retrieve the actual location.
15827
15828 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15829
15830         * TextRenderer.cs: Add clipping support, thanks to George.
15831         [Fixes bug #80949]
15832
15833 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15834
15835         * ListViewItem.cs: Cancel label edit when item is removed from 
15836         ListView.
15837         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
15838         event before the edit textbox is displayed.  Added CancelEdit method
15839         which is used end to editing while ignoring the value set by the
15840         user. In EndEdit, set focus to ListView to avoid losing focus to
15841         other controls. In ListViewItemCollection.Clear, cancel editing of
15842         any of the items.  In Remove, cancel editing of item being removed.
15843         Avoid udplicate code by modifing RemoveAt to invoke Remove.
15844
15845 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15846
15847         * FileDialog.cs: Update FSEntry when move is successful. Fixes
15848         bug #80948.  
15849
15850 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15851
15852         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
15853         compatible with non X11 systems. Fixes #80901.
15854
15855 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15856
15857         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
15858         whether the item should be unselected and reselect. We do no want this
15859         when we're starting to edit the label. Do not fire the 
15860         SelectedIndexChanged event from ListView when its already been fired
15861         by modifying ListViewItem.Selected. Fixes bug #80943.
15862
15863 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15864
15865         * TextRenderer.cs: Previos commit logic was backwards.
15866
15867 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15868
15869         * TextRenderer.cs: Don't add padding on MeasureText if we were
15870         sent the NoPadding flag.
15871
15872 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15873
15874         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
15875         after DrawButton. To prevent image overlaps button borders SetClip and 
15876         ResetClip added before and after draw image. Fixes #79129.
15877
15878 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15879
15880         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
15881         window size, it fix problem when you run under win32 that theres
15882         Size diferent than ClientSize. Also fix controls size and positions
15883         to mimic Win32. Fixes #80837.
15884
15885 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
15886
15887         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
15888         menu area to fix some problems for non X11 systems. Fixes #80613.
15889
15890 2007-02-22  Jackson Harper  <jackson@ximian.com>
15891
15892         * TreeNode.cs: When a node is expanded, set its is_expanded flag
15893         even if it doesn't have any children.
15894
15895 2007-02-22  Jackson Harper  <jackson@ximian.com>
15896
15897         * TreeView.cs: Calculate the top node 'on the fly', this
15898         eliminates issues where you need to click on the tree before
15899         scrolling it to get the top node computed correctly.
15900         * TreeNodeCollection.cs: We don't need to mess with the top node
15901         anymore.
15902
15903 2007-02-22  Jackson Harper  <jackson@ximian.com>
15904
15905         * DataGridViewRow.cs: Fix typo so height can actually be set.
15906         Patch by Peter Grimm.
15907
15908 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15909
15910         * FileDialog.cs: Fixed support for renaming files and directories.
15911         * ListView.cs: Do not lose focus when edit is canceled. Process
15912         Escape as regular key (to prevent closing of dialogs).
15913
15914 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15915
15916         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
15917         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
15918
15919 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15920
15921         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
15922         did not modify label.
15923         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
15924         modified the text. Reset Label when user presses Escape in edit mode.
15925         Move focus to ListView after having cancelled or finished editing the
15926         label.
15927
15928 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
15929
15930         * ComboBox.cs: Removed unnecessary initializations. Marked items field
15931         private. Clear textbox when Text is set to null and SelectedIndex is
15932         already -1.
15933         * FileDialog.cs: Removed unnecessary initializations. Removed 
15934         workarounds for ComboBox bugs that are now fixed. Modified
15935         DefaultExt, InitialDirectory and Title property to change null to
15936         zero-length string in getters. Avoid directly accessing fields.
15937
15938 2007-02-20  Jackson Harper  <jackson@ximian.com>
15939
15940         * TextControl.cs: Remove RecalAlignments call, that was some
15941         debugging leftovers.
15942         - Don't use the line indent when we shouldn't.
15943         * RichTextBox.cs: Add support for paragraph left indents.
15944
15945 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15946
15947         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
15948         Seems like the class status pages doesn't catch params differences.
15949
15950 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
15951
15952         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
15953
15954 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
15955
15956         * ComboBox.cs: Setting Text should have no effect if item text of
15957         selected item exactly matches value. First lookup text using
15958         case-sensitive comparison, and fallback to case-insensitive comparison.
15959         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
15960         allow startIndex to be last index. Changed ArgumentOutOfRangeException
15961         paramname to match MS. Restart from first item if string is not found
15962         after startIndex. Fixed paramname of ArgumentNullException that is
15963         thrown for null value in ObjectCollection.Contains.
15964
15965 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
15966
15967         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
15968
15969 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15970
15971         * ListControl.cs: In SelectedValue use value.Equals to compare for
15972         equality instead of ==, otherwise it will fail for strings.
15973         Fixes #80794.
15974
15975 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15976         
15977         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
15978         since the caret won't show up unless ShowSelection is true. 
15979         Fixes #80795.
15980
15981 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15982
15983         * Application.cs: When disabling all forms but the main form, do not
15984           disable any descendants of the main form (such as mdi children or
15985           other parented forms). Fixes #80822 on Windows.
15986         * Form.cs: If we have a parent, set the WS_CHILD style.
15987         * Control.cs: Update the window styles if the control whose parent has
15988           changed is a form (the WS_CHILD style has to be switched).
15989
15990 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
15991
15992         * XplatUIStructs.cs: MsgUIState structure added.
15993
15994 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
15995
15996         * FileDialog.cs: Removed need for separate fileName field. On 2.0
15997         profile, do not check filename(s) for illegal character if filename(s)
15998         were set non-interactively but always check on 1.0 profile. Fixed NRE
15999          in DefaultExt and only strip off first leading dot. Improve exception
16000         message when invalid Filter is set. Do not ignore InitialDirectory if
16001         it does no exist. Store specified Title, and if empty use default
16002         title (depending on type of dialog). Added an internal DialogTitle 
16003         property for retrieving dialog title. Fixed logic of displayed dir to
16004         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
16005         string as its buggy.
16006         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16007         FileName is a zero-length string (it can never be null). Override 
16008         DialogTitle property to set default title of dialog box.
16009         * SaveFileDialog.cs: Override DialogTitle property to set default
16010         title of dialog box.
16011
16012 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16013
16014         * FileDialog.cs: Modify default text of filename and filetype labels
16015         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16016         after we've updated the SelectedIndex. Fixes part of bug #80887.
16017         * SaveFileDialog.cs: Set text of filetype label.
16018
16019 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16020
16021         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16022         label field. Needed by latest Jackson's fixes for ListView.
16023
16024 2007-02-16  Andreia Gaita  <avidigal@novell.com>
16025
16026         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
16027         print preview images.
16028
16029 2007-02-16  Jackson Harper  <jackson@ximian.com>
16030
16031         * ListView.cs: Make AfterLabelEdit work correctly.
16032         * FileDialog.cs: After changing the name of the folder, we have to
16033         make sure that it is created, or that we pop up an error because
16034         it already exists.
16035
16036 2007-02-16  Jackson Harper  <jackson@ximian.com>
16037
16038         * X11Dnd.cs: Implement aliases on mime handlers, so things like
16039         System.String are mapped to text.
16040         - Handle dataobjects, getting all the possible formats out of them
16041         - We dont need the drag event args before we give feedback. This
16042         allows feedback cursors to be immediate before selections have
16043         been converted.
16044
16045 2007-02-16  Jackson Harper  <jackson@ximian.com>
16046
16047         * TextBoxBase.cs: Modified the method for inserting images to
16048         taking a line and position instead of tag and position.
16049         * RichTextBox.cs: Handle PngBlip data by inserting the png image
16050         into the RTF file.
16051         * TextControl.cs: Allow images to be inserted as the first tag of
16052         a line.
16053         - Fix some off by one issues when we assume the first tag is a
16054         text tag, not an image tag.
16055
16056 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16057
16058         * ListView.cs: Set focus to ListView when ItemControl gets a
16059         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
16060         Fixes part of #80467.
16061
16062 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16063
16064         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16065           validate Text input (if null or empty string reset Value to default
16066           value). Fixes #80830.
16067
16068 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16069
16070         * ListView.cs: Set owner as null for columns and items when
16071         Dispose is invoked. Fixes #80607.
16072
16073 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
16074
16075         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16076         showing DropDowns, don't show a Grip when doing Flow layout.
16077         [This fixes the toolbox in PDN 2.72.]
16078         * ToolStripItem.cs: Add Anchor property and some internal properties to
16079         reduces needed changes to FlowLayout.
16080         * ToolStripOverflow.cs: Remove unused variable.
16081         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16082         use it in the layout calculations.
16083
16084 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16085
16086         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16087         reported in #79640.
16088         
16089         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16090         size calculation.
16091
16092 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16093
16094         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
16095         MeasureString format, it can make button very large in some cases, it is
16096         strange but is what win32 do.
16097
16098 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16099
16100         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
16101         size calculation.
16102
16103         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16104         rendering, the value is based on MenuAccessKeysUnderlined.
16105
16106 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16107
16108         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16109         for most themes.
16110         
16111         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16112         
16113         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16114         and use MenuAccessKeysUnderlined instead.
16115
16116 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16117
16118         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16119         A selected control would not get a Focus call if:
16120                 - the default active control of the container is the same as
16121                   the one that was selected
16122                 - we are switching from one container to another
16123         Under these conditions, the container being selected already has
16124         an active_control, which is the same as the one being activated, 
16125         so set_ActiveControl would always return and not send the Focus
16126         call. Fix to check if the currently active control of the container
16127         is actually focused.
16128
16129 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
16130
16131         * StatusStrip.cs: Implement the spring layout.
16132         * ToolStripControlHost.cs: Make sure the hosted control's visibility
16133         always matches the host.
16134         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
16135         and TextAfterImage.
16136
16137 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16138
16139         * Control.cs: Code reorganization only.
16140           - Reorganize the WndProc cases so that each case has it's own handling method, 
16141           to help with the no-line-numbering stack traces.
16142           - Formatting changes (it's vstudio's fault, really :p)
16143
16144 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16145
16146         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
16147           Thread.CurrentUICulture to match DateTimePicker's (and MS)
16148           behaviour.
16149
16150 2007-02-12  Jackson Harper  <jackson@ximian.com>
16151
16152         * RichTextBox.cs:
16153         * TextBox.cs: By default we have a non multiline document
16154         - use the multiline property instead of the internal variable
16155         * TextBoxBase.cs: Treat multiline and non multiline the same in
16156         most places.
16157         - Use the documents multiline flag instead of tracking it ourself
16158         * TextControl.cs: Attempt at getting multiline to match MS
16159         behavior.  Lines now track an offset, which is either their X or Y
16160         offset depending on whether or not we are in multiline mode.
16161         - Update all the methods to understand that lines have an X value.
16162         - Fix crash in Undo::Duplicate when empty lines are deleted.
16163
16164 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16165
16166         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
16167         code moved to properties PreferredHeight and PreferredWidth. It solve the
16168         all problems when preferred sizes must be recalculated. Fixes #80801.
16169
16170 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16171
16172         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
16173         font height when compatible_text_rendering is false. Partially fix #80801.
16174
16175 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16176
16177         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
16178
16179 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16180
16181         * Form.cs: Improved exception messages in ShowDialog.
16182
16183 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16184
16185         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
16186         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
16187         if not set. Fixes bug #80764. Avoid accessing current_settings field
16188         directly.
16189
16190 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
16191
16192         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
16193         false.
16194
16195         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
16196         public in 2.0 and for easy maintenance and dont break compatibility it is 
16197         internal in 1.1.
16198         
16199 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16200
16201         * ToolStripItem.cs: Implement using images from ImageList.
16202
16203 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16204
16205         * DateTimePicker.cs: Change default date-formatting culture from
16206           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
16207           seems to be the way MS does it.
16208
16209 2007-02-08  Andreia Gaita  <avidigal@novell.com>
16210
16211         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
16212         (the 6 was cut off on the right side)
16213
16214 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16215
16216         * Form.cs: Tell MenuStrips to close when the form is clicked.
16217         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
16218         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
16219         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
16220         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
16221         support for Overflow, where items that do not fit are automatically
16222         reparented to a drop down menu.
16223         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
16224         Also: fixes bug #80747.
16225
16226 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16227
16228         * ComboBox.cs: Remove warning (unused code).
16229         * ScrollableControl.cs: Remove warning for 1.1 profile.
16230
16231 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16232
16233         * Form.cs: Remove a warning.
16234
16235 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16236
16237         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
16238           'g' specifier, not documented anywhere, but seems to always show up
16239           as a single space (might have something to do with the DateTime 'g'
16240           specifier, which is the era format, but since DateTimePicker can't
16241           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
16242           won't crash if the format has an unmatched quote. Now shows
16243           single-character formats correctly. Fixes #80744.
16244
16245 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16246
16247         * StatusStrip.cs: Stretch property needs to call base.Stretch,
16248         not this.Stretch to fix stack overflow. [Fixes bug #80760]
16249
16250 2007-02-07  Chris Toshok  <toshok@ximian.com>
16251
16252         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
16253         background color.  it overwrites the background image we've
16254         already painted.  Fixes #80599.
16255
16256 2007-02-07  Chris Toshok  <toshok@ximian.com>
16257
16258         * DataGrid.cs: return immediately from Edit() when there are no
16259         columns.  Fixes #80662.
16260
16261 2007-02-07  Chris Toshok  <toshok@ximian.com>
16262
16263         * MessageBox.cs: fix #80625.  don't always show the Help button in
16264         2.0.  use the displayHelpButton parameter to determine if we
16265         should show it. Also, make the internal show_help field private.
16266
16267 2007-02-07  Chris Toshok  <toshok@ximian.com>
16268
16269         * Control.cs (SetVisibleCore): check in the proposed patch for
16270         80604, and set is_visible before calling CreateControl.
16271
16272 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
16273
16274         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
16275         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
16276         on it.
16277
16278 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
16279
16280         * MenuAPI.cs: hotkey_active internal field added, it is required because
16281         we need to know when hotkeys must be draw, before this change a keystate
16282         Navigating was used but we can have menu in navigating state without
16283         hotkeys. Fixes #80694.
16284         
16285         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
16286
16287 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16288
16289         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
16290           corresponding events and methods to be internal for 1.1 profile and
16291           public for 2.0 profile (required by SizeGrip).
16292         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
16293           implicit control list). Don't set the size nor the location of the
16294           SizeGrip anymore as it's not needed.
16295         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
16296           draw directly on the captured control (fixes #80656). Removed
16297           ShowGrip (it wasn't used anywhere), redraw (always true), added
16298           GetDefaultSize and GetDefaultRectangle to calculate defaults.
16299         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
16300           be called from SizeGrip.
16301
16302 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16303
16304         * Timer.cs: Throw ArgumentException if Interval <= 0.
16305
16306 2007-02-05  Jackson Harper  <jackson@ximian.com>
16307
16308         * TreeView.cs: We need to check scrollbar visibility when window
16309         visibility is updated, because non visible trees don't ever add
16310         scrollbars.
16311         * Cursor.cs: We want the override cursor to be reset to NULL when
16312         we set current cursor to the default cursor.
16313
16314 2007-02-05  Jackson Harper  <jackson@ximian.com>
16315
16316         * TextControl.cs: Don't have crlfs when we are non multiline.
16317         - Consolidate the line position.
16318
16319 2007-02-05  Jackson Harper  <jackson@ximian.com>
16320
16321         * X11Keyboard.cs: BACK+CTRL gets a special char code.
16322
16323 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16324
16325         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
16326           handling LeaveNotify->NotifyUngrab in order to send
16327           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
16328           after calling XUngrabPointer, so we call WindowUngrabbed directly
16329           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
16330         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
16331           MouseCaptureChanged correctly. Also create handles if changing
16332           Capture (matches MS behaviour).
16333
16334 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16335
16336         * SizeGrip.cs: Make the last change 2.0 only.
16337
16338 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16339
16340         * SizeGrip.cs: If resizing and the capture is lost, revert any size
16341           changes to initial size (fixes #80597).
16342
16343 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16344
16345         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
16346
16347 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16348
16349         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
16350           background) and only allow dragging if enabled. This way the
16351           sizegrip can be used to fill the open square that otherwise would
16352           have been shown in the bottom right corner of ScrollableControl
16353           when ScrollableControl is not suppose to support sizing.
16354         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
16355           sizegrip is shown and enabled, and hook up with necessary events.
16356
16357 2007-02-01  Chris Toshok  <toshok@ximian.com>
16358
16359         * DataGridTextBoxColumn.cs: clean up the
16360         GetFormattedString/GetColumnValueAtRow combination of functions.
16361         Also fix UpdateUI, and the initial state of
16362         IsInEditOrNavigateMode.
16363
16364         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
16365         aren't supposed to scroll the textbox here, we're supposed to
16366         scroll the datagrid.
16367
16368 2007-02-01  Chris Toshok  <toshok@ximian.com>
16369
16370         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
16371         setting the position.
16372
16373 2007-02-01  Chris Toshok  <toshok@ximian.com>
16374
16375         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
16376         here, since the most recent focus fixes keep us from generating
16377         the Leave event when our textbox gets focus.
16378         (Edit): we should be passing null for the column style's
16379         instantText parameter.
16380         
16381 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
16382
16383         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
16384         raised.  Fixes menu text/icons not showing up in PDN.
16385
16386 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16387
16388         * Control.cs: Remove code in constructor that makes every
16389         control with WS_CHILD set have initial location -1, -1.
16390
16391 2007-01-31  Jackson Harper  <jackson@ximian.com>
16392
16393         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
16394         XplatUIX11.
16395         * XplatUIX11.cs: Give teh keyboard to teh dnd.
16396
16397 2007-01-31  Jackson Harper  <jackson@ximian.com>
16398
16399         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
16400         - Remove some debug code.
16401
16402 2007-01-31  Jackson Harper  <jackson@ximian.com>
16403
16404         * XplatUIX11.cs: If you set the override cursor during a grab, it
16405         should actually override the grab cursor.  This comes into play
16406         when you are setting custom cursors in a DND feedback method.
16407
16408 2007-01-31  Jackson Harper  <jackson@ximian.com>
16409
16410         * X11Dnd.cs: Add support for handling the QueryContinue and
16411         GiveFeedback events.
16412         - Cancel drag and drop actions when the escape key is clicked.
16413         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
16414         can handle the ESCAPE key.
16415         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
16416         done when dnd events are continued after the button is released.
16417         - Add a new helper method so that dnd can translate key events.
16418
16419 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
16420
16421         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
16422         make it more obvious what is happening.
16423
16424 2007-01-30  Jackson Harper  <jackson@ximian.com>
16425
16426         * XplatUIX11.cs: Don't break when handling button release in drag
16427         and drop operations. We need that BUTTONUP message to get through
16428         so capture is released.
16429         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
16430         this is handled automatically when the mouse is down.
16431
16432 2007-01-30  Jackson Harper  <jackson@ximian.com>
16433
16434         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
16435         is closed, so we need to make sure that we aren't changing the
16436         dialog result when the OK (Open or Save) button has been clicked
16437         and we are closing the window ourselves.  Note we don't need to
16438         worry about the cache being written in this case, because it was
16439         already done in the previous FilOk call.
16440
16441 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16442         
16443         * DateTimePicker.cs: Remove a warning.
16444         * ComboBox.cs: Remove a couple of warnings.
16445
16446 2007-01-29  Chris Toshok  <toshok@ximian.com>
16447
16448         * XplatUIX11.cs: don't crash, and remove the icon if the user has
16449         set one, if SetIcon is passed a null icon.
16450
16451 2007-01-29  Andreia Gaita  <avidigal@novell.com>
16452
16453         * TextBox.cs: Redraw when the password characters changes
16454         * TextControl.cs: Check if textbox has a password char and draw 
16455         a line of password chars instead of the text in the line. LineTag gets 
16456         an extra Draw() method which allows document.Draw to override the text 
16457         that will be drawn. Removes 1024 char limitation on length of passworded 
16458         lines.
16459
16460 2007-01-29  Jackson Harper  <jackson@ximian.com>
16461
16462         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
16463         single chars is not.
16464
16465 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
16466
16467         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
16468         one pixel.  Fix a StackOverflowException caused by an overload wrongly
16469         calling itself.
16470
16471 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
16472
16473         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
16474         also remove ProcessArrowKey and put the code inside ProcessKeys.
16475
16476 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
16477
16478         * PaddingConverter.cs: Added.
16479
16480 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16481         
16482         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
16483         ShowPanels is false (fixes #80600). Only draw up to 127 characters
16484         of text (fixes #80601). For panels clip the text to draw to the
16485         panel (fixes #80603).
16486
16487 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16488
16489         * ComboBox.cs: Fixed implementation of ResetText.
16490
16491 2007-01-25  Jackson Harper  <jackson@ximian.com>
16492
16493         * TextControl.cs: For the last char of a line we need to use the
16494         line size, not that chars width, since it won't actually be
16495         computed since the right side of a char is based on the start of
16496         the left side of the next char, and the next char does not exist.
16497
16498 2007-01-25  Chris Toshok  <toshok@ximian.com>
16499
16500         * Splitter.cs: fix the new unit tests, and reindent some switch
16501         statements.
16502
16503 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16504
16505         * ComboBox.cs: Implemented 2.0 methods and events.
16506         * TextBoxBase.cs: Added OnTextUpdate, so that
16507         ComboBox.ComboTextBox can inform ComboBox of it.
16508
16509 2007-01-25  Jackson Harper  <jackson@ximian.com>
16510
16511         * TextControl.cs: Respect ShowSelection when deciding whether or
16512         not to display the caret, this allows comboboxes to have carets
16513         when the combotextbox does not have focus.
16514
16515 2007-01-25  Jackson Harper  <jackson@ximian.com>
16516
16517         * TextControl.cs: Add a Suspend/Resume for updating, basically the
16518         same as the Suspend/Resume for recalc, except this will do actual
16519         Invalidates.
16520         - New Undo manager, works much like the MS version.
16521         - Implemented Redo
16522         * TextBoxBase.cs: The Cut operation is undoable.
16523
16524 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16525         
16526         * TextBoxBase.cs: Don't antialias text. Makes it look way better
16527         on Windows (no difference on Linux).    
16528
16529 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16530
16531         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
16532         we don't want to activate any windows. Fixes #79433.
16533
16534 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
16535
16536         - ButtonBase.cs: Fix capitalization of parameter: disposing.
16537         [Fixes bug #80609]
16538
16539 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
16540
16541         * FileDialog.cs:
16542         - Move to using System.ComponentModel.EventHandlerList
16543         - Replace Refresh with Invalidate
16544         - Clear the mime filecache on closing
16545         - Some other memory reducing work. After beeing closed FD now uses
16546           only about 300 KB for the fdo mime stuff plus the memory of the
16547           cached icons.
16548         * Mime.cs: Changed coding style and removed unnecessary commented
16549         code. Some more memory memory reducing work.
16550
16551 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16552
16553         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
16554         a few other missing 2.0 properties.
16555         * Theme.cs: Added DrawFlatStyleComboBox.
16556         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
16557
16558 2007-01-24  Chris Toshok  <toshok@ximian.com>
16559
16560         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
16561         wake_waiting flag, not just when there's data to be read.  if we
16562         don't, then future wakeup's won't reach us and we'll be doomed to
16563         wait for the entire 1 second timeout forever (unless there are X
16564         events to be had).
16565
16566 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
16567
16568         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
16569         until you pass Items.Count, not Items.Count - 1 like 1.1.
16570
16571 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
16572
16573         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
16574
16575 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
16576
16577         * ToolStripContainer.cs: The recent Dock fix exposed that I was
16578         adding the panels in the wrong order.
16579
16580 2007-01-24  Jackson Harper  <jackson@ximian.com>
16581
16582         * TextBoxBase.cs: When we move the caret we also need to move the
16583         selection, this fixes some random crashing after doing select
16584         text, unselect, delete a char, paste.
16585
16586 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16587
16588         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
16589
16590 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16591
16592         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
16593         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
16594         * ToolBar.cs: Force redraw in BackgroundImageChanged.
16595
16596 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16597
16598         * ToolBar.cs:
16599         - Implement support for vertical toolbars. Fixes #80539;
16600         - Call LayoutToolBar when resize, it fix some other problems in layout.
16601         - Rename requested_height to requested_size, as we can have width on it
16602         when toolbar is vertical.
16603         - Create a private property "Vertical" that uses Dock to verify when 
16604         toolbar is vertical or not.
16605         - Set ControlStyles when change Dock property.
16606         - Refactory in LayoutToolBar to have better variables names and to support
16607         vertical toolbars.
16608         - Fixes default value for ButtonSize when button count is equal zero, size
16609         must be (39, 36) test case writed.
16610
16611 2007-01-23  Chris Toshok  <toshok@ximian.com>
16612
16613         * Control.cs: fix the checks so that they work correctly for mdi
16614         parents/children.
16615
16616 2007-01-23  Chris Toshok  <toshok@ximian.com>
16617
16618         * Control.cs: ControlCollection seems to have super-secret
16619         abstraction breaking knowledge of Mdi containers.  allow MdiClient
16620         to add toplevel controls.
16621
16622 2007-01-23  Chris Toshok  <toshok@ximian.com>
16623
16624         * Control.cs: throw an ArgumentException if a toplevel control is
16625         added to our control collection from ControlCollection.Add, as
16626         well as from ControlCollection.IList.Add.  This fixes the
16627         ControlSetTopLevelTest.TestTopLevelAdd unit test.
16628
16629         Also, in ControlCollection.IList.Add, don't through an
16630         ArgumentNullException, throw an ArgumentException, when value ==
16631         null.  This matches MS.
16632
16633 2007-01-23  Chris Toshok  <toshok@ximian.com>
16634
16635         * BindingSource.cs: initial, incomplete, implementation of
16636         BindingSource.
16637
16638 2007-01-23  Jackson Harper  <jackson@ximian.com>
16639
16640         * TextControl.cs:
16641         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
16642         that I can fix a broken unit test (TextBoxTest::ClearUndo)
16643         
16644 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16645
16646         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
16647
16648 2007-01-23  Andreia Gaita  <avidigal@novell.com>
16649
16650         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
16651         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
16652         IndexOfKey() for 2.0
16653
16654 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16655
16656         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
16657         to prevent it from changing z-order.
16658         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
16659         leave UI updates in MdiWindowManager.
16660         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
16661         1 sized (NC handling goes weird on Linux otherwise).
16662         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
16663         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
16664         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
16665         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
16666         and SetWindowState(s) to allow for changing the size of an activated child
16667         before activating it (reduces a lot of flicker).
16668
16669 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
16670
16671         * Form.cs: Changing FormBorderStyle has different semantics based
16672         on whether the Form is visible or not.  If not visible, don't change
16673         the Size.  But InvalidateNC needs to be called to force the window
16674         to pick up the changes and redraw itself.  [Fixes bug #80574]
16675
16676 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
16677
16678         [Moma work]
16679         * ContainerControl.cs: ProcessCmdKey.
16680         * ErrorProvider.cs: new constructor.
16681         * Form.cs: fix AutoValidateEvent compiler warning.
16682         * Label.cs: fix OnAutoSizeChanged compiler warning.
16683         * MenuStrip.cs: fix CanOverflow compiler warning.
16684         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
16685         * TextBox.cs: Dispose.
16686         * ToolStrip.cs: CanOverflow, re-enable double buffering.
16687         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
16688         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
16689         * ToolStripItem.cs: Overflow, RightToLeft properties.
16690
16691 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16692
16693         * Form.cs: Move the layout of the main form to MdiWindowManager.
16694         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
16695         do a layout of the main window to update MdiClient's client area to
16696         the right area. Fixes #80533. Remove the calculation of nc size, 
16697         it was just wrong and the correct one is the same as for 
16698         InternalWindowManager. 
16699
16700 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
16701
16702         * Control.cs: Setting Anchor or Dock needs to reset the other
16703         to its default.  [Fixes bug #80556]
16704
16705 2007-01-20  Chris Toshok  <toshok@ximian.com>
16706
16707         * CheckedListBox.cs: class status changes.
16708
16709         * ScrollableControl.cs: same.
16710
16711         * RichTextBox.cs: same.
16712
16713         * ContainerControl.cs: same.
16714
16715         * ListView.cs: same.
16716
16717         * NotifyIcon.cs: same.
16718
16719         * MenuStrip.cs: same.
16720
16721         * RadioButton.cs: same.
16722
16723         * CheckBox.cs: same.
16724
16725         * PrintPreviewDialog.cs: same.
16726
16727         * Form.cs: same.
16728
16729 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
16730
16731         * TreeNode.cs: Apply Alan's patch for Name property.
16732
16733 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16734         
16735         * Form.cs: Implemented SizeGripStyle.
16736         * SizeGrip.cs: Check for minimum and maximum size for the
16737         control being resized and only resize if size has actually
16738         changed.
16739
16740 2007-01-19  Chris Toshok  <toshok@ximian.com>
16741
16742         * DataGridColumnStyle.cs: stop setting _readonly in the
16743         PropertyDescriptor setter.  fixes a unit test failure.
16744
16745         also, rename ParentReadOnly to TableStyleReadOnly, and have it
16746         just consult our table style (if we have one).  We don't need to
16747         consult the datagrid readonly attribute because that's passed in
16748         as the _ro arg to Edit.  this simplifies things a little.
16749         
16750         * DataGrid.cs: use CurrentColumn instead of
16751         current_cell.ColumnNumber just to simplify some of the code.
16752
16753         switch the order of some things in the CurrentCell setter to keep
16754         the previous cell from getting a textbox again -
16755         EnsureCellVisibility causes scrolling to happen, which calls Edit.
16756         So we need to set the new cell before calling it.
16757         
16758         call Edit in OnEnter, as does Microsoft.
16759         
16760         also, make sure the current table style isn't the one we create
16761         initially when checking to see if it's different than the one
16762         we're setting it to in BindColumns (this fixes #80421).
16763
16764         * GridTableStylesCollection.cs: table styles can have "" for a
16765         mapping name.  part of the fix for #80421.
16766
16767         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
16768         Edit significantly.
16769
16770 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16771
16772         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
16773         and less GDI object leaky-er.
16774
16775 2007-01-18  Andreia Gaita  <avidigal@novell.com>
16776
16777         * LinkLabel.cs: Add opaque control style
16778
16779 2007-01-18  Jackson Harper  <jackson@ximian.com>
16780
16781         * TextControl.cs: Calculate width properly.
16782         - Don't store the tag's X offset, this can be figured out very
16783         easily.
16784         - When getting the caret tag make sure to get the last empty tag.
16785
16786 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16787
16788         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
16789         [Fixes bug #79959]
16790
16791         * Control.cs: Color.Empty shouldn't count for previous transparent
16792         redraw changes.
16793
16794 2007-01-18  Jackson Harper  <jackson@ximian.com>
16795
16796         * TextBox.cs:
16797         * RichTextBox.cs:
16798         * TextControl.cs: Starting to merge in some pieces of my older
16799         undo work.  Basically just some slight cleanup of the undo API.
16800
16801 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16802
16803         * TrackBar.cs: Fix signature of RightToLeftLayout.
16804         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
16805         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
16806         * Application.cs: Implemented UseWaitCursor.
16807
16808 2007-01-18  Jackson Harper  <jackson@ximian.com>
16809
16810         * TextControl.cs: We can't skip tags if any part of the tag is
16811         visible.
16812
16813 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16814
16815         * ContainerControl.cs: Override OnLayout.
16816
16817 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16818
16819         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
16820
16821         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
16822         everything else.
16823
16824 2007-01-18  Chris Toshok  <toshok@ximian.com>
16825
16826         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
16827         (leftover from the container_selected days, I'd wager).  fixes bug
16828         #80546.
16829
16830 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16831
16832         * Control.cs: Apply patch from George to fix the new testcase on
16833         bug #80451.  We can't just check for Color.Transparent, we need 
16834         to check if the back color's alpha channel is < 255.
16835
16836 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16837
16838         * Form.cs: Move setting show_icon = true to before the constructor
16839         so that the base constructor has that information when it calculates
16840         the form's size.  Was causing forms to be (6, 6) bigger than they
16841         were supposed to be.  Thanks for catching this Rolf!
16842
16843 2007-01-18  Jackson Harper  <jackson@ximian.com>
16844
16845         * TextControl.cs: When replacing a selection we need to invalidate
16846         from the initial selection start, because selection start is moved
16847         to the end of the replacement.
16848
16849 2007-01-18  Andreia Gaita  <avidigal@novell.com>
16850
16851         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
16852
16853 2007-01-18  Chris Toshok  <toshok@ximian.com>
16854
16855         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
16856         I just added.
16857
16858 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
16859
16860         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
16861         layout methods and properties from ToolBarButton must be available
16862         into ToolBarButtonInfo.
16863
16864 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16865
16866         * Control.cs: If the control has a transparent background, we
16867         need to refresh it when it moves and when it's parent's background
16868         image changes.  [Fixes bug #80451]
16869
16870 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16871
16872         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
16873
16874 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16875
16876         * XplatUIWin32.cs: Implement proper double buffering for Windows.
16877         [Fixes bug #80447, and probably speeds up things as well]
16878
16879 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16880
16881         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
16882         * XplatUIWin32.cs: We need to recalculate NC size after changing 
16883         window style to toolwindow (otherwise the client rectangle will be
16884         3 pixels to small for some reason).
16885         * MdiWindowManager.cs: Revert NC size calculations to match how
16886         they are calculated only based on window styles (to match
16887         Win32AdjustWindowRectEx, since otherwise when setting size or 
16888         location, Control will call Win32AdjustWindowRectEx to update client 
16889         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
16890         calculate a different value of client size causing another paint 
16891         (and flickering))
16892         * InternalWindowManager.cs: When moving or resizing a window only
16893         update size or location if they actually changed.
16894         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
16895         (seems to match Windows behaviour better). Cleaned up 
16896         ManagedWindowDecorations to draw what's needed and nothing else
16897         (was drawing borders and lines where they shouldn't be)
16898         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
16899         (style = 0xFFFF) and takes into account caption height when 
16900         calculating window rectangle.   
16901
16902 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
16903
16904         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
16905         can be added to toolbar multiple times, we need to maintain a list of 
16906         button information for each positions.
16907
16908 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
16909
16910         * ToolBar.cs: Some small stetic changes.
16911
16912 2007-01-16  Jackson Harper  <jackson@ximian.com>
16913
16914         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
16915         that allow us to have nested recalc = false blocks.
16916         - Add paste support for images in the RichTextBox
16917         * RichTextBox.cs: flush the text after the color is changed, so
16918         the change takes effect.
16919         - Use SuspendRecalc
16920         - Some extra debugging info
16921         * TextControl.cs: Tags no longer track their length, it is just
16922         computed from the next tags length, this makes things a little
16923         simpler and reduces places that we have to track length changes.
16924         - Refactored the linetag class a little so we could make it
16925         a base class for different kinds of tags
16926         - Created a image tag, a tag that can have a single image inserted
16927         into it
16928         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
16929         that we can call suspend multiple times.
16930         - Add some debugging methods
16931
16932 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16933
16934         * MdiClient.cs: Add ActivatePreviousChild for 
16935         mdi child window navigation.
16936         * Form.cs: Use MdiClient.ActivateNextChild/
16937         ActivatePreviousChild instead of Form.SelectNextControl
16938         to select the next/previous child since 
16939         SelectNextControl doesn't do it in the same order
16940         as mdi children should do it.
16941
16942 2007-01-16  Chris Toshok  <toshok@ximian.com>
16943
16944         * Control.cs: remove container_selected field.
16945
16946 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16947
16948         * MdiClient.cs: Update main form's ActiveChild when
16949         updating keyboard focus for the mdi child.
16950
16951 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
16952
16953         * Control.cs: PreferredSize fix.
16954
16955         * Form.cs: Add several 2.0 events, properties, and methods.
16956
16957 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
16958
16959         * Form.cs: Provide meaningful message when MdiParent is assigned a
16960         Form that is not an MdiContainer.
16961
16962 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16963
16964         * MdiClient.cs: Update main form's ActiveChild when
16965         activating a mdi child.
16966
16967 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16968
16969         * MdiWindowManager.cs: Fix NRE when merging menus and main form
16970         doesn't have a menu.
16971
16972         * Form.cs: Request NCRecalc after creating a mdi child window.
16973         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
16974         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
16975         
16976         * MdiClient.cs: Add new method SendFocusToActiveChild that either
16977         sends keyboard focus to the active child, or to the MdiClient
16978         if there are no child forms.
16979         
16980 2007-01-15  Chris Toshok  <toshok@ximian.com>
16981
16982         * ListView.cs: drop the *Internal overrides, just do our work in
16983         ItemControl's WndProc instead.
16984
16985         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
16986         of the various controls, and forward the events properly (in the
16987         same manner as MS) from the textbox to the UpDown.  Also the
16988         ActiveControl of the UpDownBase gets set properly now.  Finally,
16989         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
16990
16991         * NumericUpDown.cs: set Text in the ctor.
16992
16993         * DomainUpDown.cs: call UpdateEditText in the ctor.
16994         
16995         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
16996         so even a Selectable = false textbox can be focused if you click
16997         in it.  Go figure.
16998
16999         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
17000         just add their handling in their respective WndProc's.  Also add
17001         an explicit FocusInternal method that doesn't consult CanFocus
17002         before calling Select(this).
17003
17004         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17005         do our work in WndProc instead.
17006
17007         * TabControl.cs: same.
17008
17009         * ComboBox.cs: same.
17010
17011 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17012
17013         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17014         Fixes #80006.
17015
17016 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17017
17018         * ListViewItem.cs:
17019         * ThemeWin32Classic.cs: Don't draw the item text outside
17020         item bounds in Details view, as well as use trimming.
17021         Fixes bug #80376.
17022
17023 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17024
17025         * Form.cs: Implement Form.ShowIcon.
17026         
17027         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17028         null, which when combined with the DlgModalFrame window style removes
17029         the icon from the title bar.
17030
17031 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17032
17033         * Control.cs: Call OnMouseClick after OnClick. (2.0)
17034
17035 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17036
17037         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17038         menu when mdi child windows theres a menu, uses insert to get icon
17039         at first position. Partially fix #80006.
17040
17041 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17042
17043         * Clipboard.cs: Implement 2.0 methods.
17044
17045 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17046
17047         * Menu.cs: Implement Insert method of MenuItemCollection class
17048         to fix MenuMerge.
17049
17050 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17051
17052         * ListView.cs: Implement 2.0 FindItemWithText method.
17053
17054 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17055
17056         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17057         to calculate menu bar size. Fixes #80290.
17058
17059 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17060
17061         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17062
17063 2007-01-11  Chris Toshok  <toshok@ximian.com>
17064
17065         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17066         initial form.
17067
17068 2007-01-11  Chris Toshok  <toshok@ximian.com>
17069
17070         * LinkLabel.cs: make sure to call base.Select in our Select method
17071         if it turns out we're going to be selected (i.e. if we have a link
17072         that is going to receive focus).  That way our container's
17073         ActiveControl is updated properly.
17074
17075 2007-01-11  Chris Toshok  <toshok@ximian.com>
17076
17077         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17078         they have 1 or more links.  this fixes the crash gert reported.
17079
17080 2007-01-11  Andreia Gaita  <avidigal@novell.com>
17081
17082         * ContainerControl.cs: Remove ContainerSelected flag, not needed
17083         anymore.
17084
17085         * Control.cs (Controls.Add): Check if control to be added to the collection
17086         is a top level control, and throw an ArgumentException if it is.
17087         Remove ContainerSelectedFlag, not needed anymore.
17088
17089         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17090         top most control doesn't activate the form. This fixes a problem in the
17091         MessageBox, where the default button wouldn't get focus because the form
17092         was activated before being Loaded - when the Owner is set, SetTopMost is
17093         called, and it would activate it.
17094
17095 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
17096
17097         * Button.cs: When clicked and setting the parent form's DialogResult,
17098         use FindForm instead of Parent, since parent could be a container
17099         control and not the Form.  Fixes bug #80495.
17100
17101 2007-01-10  Chris Toshok  <toshok@ximian.com>
17102
17103         * Form.cs: move the call to SendControlFocus into the same
17104         is_loaded check.
17105
17106 2007-01-10  Chris Toshok  <toshok@ximian.com>
17107
17108         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17109         It breaks in the face of the new ActiveControl stuff, and should
17110         be unnecessary.
17111
17112         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17113         activecontrol's focus if it's not already set, after we set
17114         ActiveControl, but before we call OnActivated.  Re-fixes #79667
17115         after the previous focus/active control fixes regressed it.
17116
17117         * Control.cs: reindent some code.
17118         
17119 2007-01-10  Chris Toshok  <toshok@ximian.com>
17120
17121         * Splitter.cs: clearing some outstanding changes from my tree.
17122         Replace all accesses (not writes) to the internal dock_style field
17123         with the Dock property.
17124
17125 2007-01-10  Chris Toshok  <toshok@ximian.com>
17126
17127         * Control.cs: make FireEnter, FireLeave, FireValidating, and
17128         FireValidated virtual.
17129
17130         * Form.cs: override and don't chain up calls to FireEnter and
17131         FireLeave.
17132
17133 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17134
17135         * ListView.cs: Add more text padding space when using
17136         auto resize for columns (the previous value didn't work fine).
17137
17138         * ThemeWin32Classic.cs: Update text position inside columns,
17139         to match the appeareance of .Net.
17140
17141         * ColumnHeader.cs: When using auto resize, only the Width should
17142         depend on the sub items, not the Height. Also, set width after
17143         auto resizing (the value of Width should never remain as -1 or -2).
17144
17145 2007-01-10  Chris Toshok  <toshok@ximian.com>
17146
17147         * Application.cs: fix compilation errors when debug is enabled.
17148
17149 2007-01-10  Chris Toshok  <toshok@ximian.com>
17150
17151         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
17152         add some nice ascii art pictures and explanation of the process).
17153         (GetMostDeeplyNestedActiveControl): new utility function we need
17154         because our ActiveControl can refer to a child container with its
17155         own ActiveControl.
17156
17157         * Form.cs (OnActivated): remove the call to SelectActiveControl
17158         from here, since you can override this method and not chain up,
17159         and winforms still sets the active control.
17160         (OnCreateControl): also remove the unnecessary SelectActiveControl
17161         call from here.
17162         (WndProc): it's actually called from the WM_ACTIVATE block, just
17163         before calling OnActivated.
17164
17165         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
17166         inside the else.  the ActiveControl setter will end up setting
17167         focus on @control.  This keeps us from setting it again (and
17168         generating an extra LostFocus/GotFocus pair).
17169         (Select (bool, bool)): reindent.
17170
17171 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
17172
17173         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
17174         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
17175         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
17176         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
17177         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
17178         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
17179         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
17180         ToolStripTextBox.cs: Another wave of corcompare work.
17181
17182 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17183
17184         * ColumnHeader.cs: Implement 2.0 AutoResize method using
17185         the Width property.
17186
17187         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
17188         methods by callling Column.AutoResize method on columns.
17189
17190 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17191
17192         * Control.cs: Provide proper implementations of PreferredSize
17193         and GetPreferredSize (2.0).
17194
17195 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17196
17197         * Form.cs: Remove one character (!) to make my previous OnClosing
17198         stuff work for modal windows like MessageBox.
17199
17200 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17201
17202         * ListView.cs:
17203         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
17204         ListView.Columns to get the last displayed column. Fixes #80452.
17205
17206 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
17207
17208         * Label.cs, LinkLabel.cs: Source code identation fixes.
17209
17210 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
17211
17212         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
17213         we dont need to invalidate only borders because when we invalidate four
17214         border lines the invalidate's generates a complete redraw of button, 
17215         because it now invalidate a complete rect some other redraws operations
17216         are fixed. Fixes #80196.
17217         
17218         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
17219         Remove ToolBarInvalidateEntireButton as it is not used.
17220
17221 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17222         
17223         * Form.cs: Make sure that both OnClosing and OnFormClosing are
17224         called for 2.0 profile.
17225         * CloseReason.cs: Make class internal for 1.1.
17226
17227 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17228
17229         * ToolStripManager.cs: Implement FindToolStrip functionality.
17230         * ToolStrip.cs: Register and unregister with ToolStripManager.
17231
17232 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17233
17234         * Control.cs: This was messy.  2.0 moves much of ControlCollection
17235         to ArrangedElementCollection.  Implemented this with as few #if's as 
17236         possible (which is still too many).
17237
17238 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17239
17240         * Control.cs: Implement SizeFromClientSize() [2.0].
17241
17242 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
17243
17244         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
17245         use Theme.BorderSize to calculate area instead of static value 1, 
17246         by the way use new BorderStaticSize instead     Border3DSize when 
17247         border_static is true. Fixes #79537.
17248         
17249         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
17250         
17251         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
17252         it is not needed.
17253
17254 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17255
17256         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
17257
17258 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17259
17260         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
17261         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
17262         
17263         * Hwnd.cs: 
17264         - border_static field added, it will used to define when a control 
17265         theres 3D border but it must be static (thin).
17266         - In GetWindowRectangle use Theme.BorderSize to calculate area 
17267         instead of static value 1, by the way use new BorderStaticSize instead
17268         Border3DSize when border_static is true.
17269
17270         * XplatUIX11.cs, XplatUIOSX.cs: 
17271         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
17272         
17273         * Theme.cs: BorderStaticSize field added.
17274
17275 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17276
17277         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
17278
17279 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17280
17281         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
17282         mimic same behavior than win32 that set border only in CreateParams,
17283         it fix problems under CreateParams overrides. Fix #79442 and partial
17284         fix #79537.
17285         
17286         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
17287         of thi control you must call recreate handle. 
17288         
17289         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
17290         need to do anything as RecreateHangle will take care about borders.
17291
17292 2007-01-05  Mike Kestner  <mkestner@novell.com>
17293
17294         * ListView.cs: hack to eliminate Lost/Got focus notifications on
17295         cycles between the ItemControl and parent.  Fixes #80388.
17296
17297 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
17298
17299         * Control.cs: Lazy init layout engine. Do not directly use 
17300         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
17301
17302 2007-01-05  Chris Toshok  <toshok@ximian.com>
17303
17304         * DataGrid.cs: don't forceably rebind columns in SetDataSource
17305         unless our list manager has changed (i.e. unless we have reason to
17306         believe our columns have changed).  Fixes #80422.
17307         
17308         also, disable the call do BindColumns in
17309         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
17310         1.1 the event isn't raised in response to a column addition on a
17311         table.)
17312
17313 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
17314
17315         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
17316         that inheritors can not call it if they choose.  Fixes bug #80456.
17317
17318 2007-01-05  Andreia Gaita  <avidigal@novell.com>
17319
17320         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
17321         doesn't blow up with a null exception on marshalling.
17322         
17323 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
17324
17325         * Control.cs: Implement several 2.0 protected properties and methods.
17326         Ensure that all necessary events are being called when properties
17327         are set.
17328
17329 2007-01-05  Mike Kestner  <mkestner@novell.com>
17330
17331         * ListView.cs: implement PgUp/PgDn for Details view.  Also
17332         fixes First/LastVisibleIndex to use the item_control.ClientRect 
17333         instead of the parent control.  Fixes #80378.
17334
17335 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
17336
17337         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
17338           determine whether to use yard-pound or not (bug #78399).
17339
17340 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
17341
17342         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
17343         problems. So it is time to bring back the old popupbutton colors.
17344
17345 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17346
17347         * ColumnHeader.cs:
17348         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
17349         property by using the internal information of the
17350         columns order in ListView.
17351
17352 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
17353
17354         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
17355         Add 2.0 Tag properties.
17356
17357         * LinkArea.cs: Add 2.0 ToString method.
17358
17359 2007-01-03  Chris Toshok  <toshok@ximian.com>
17360
17361         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
17362         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
17363         when we're editing, which fixes #80047.
17364
17365 2007-01-03  Chris Toshok  <toshok@ximian.com>
17366
17367         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
17368         #80404.
17369
17370 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
17371
17372         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
17373         property and implementation.
17374
17375         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
17376         for MdiWindowListItem property.
17377
17378         * ToolStripDropDown.cs: Don't consider hidden menu items while
17379         laying out the menu.
17380
17381 2007-01-03  Andreia Gaita  <avidigal@novell.com>
17382
17383         * SendKeys.cs: window handle is not needed in win32, so just
17384         get the active window for X after parsing keys and don't use
17385         it when building the message; it is passed by parameter to the 
17386         Xplat method and used there to build the message instead. Also,
17387         wait for events to be processed on SendWait, as opposed to Send,
17388         which doesn't wait :) Playing with threads and Send() completely 
17389         hangs on ms.net, only SendWait() works.
17390         
17391         XplatUIX11.cs
17392         X11Display.cs: Check for valid window handle.
17393
17394 2007-01-03  Jackson Harper  <jackson@ximian.com>
17395
17396         * TextControl.cs: Need to prevent wrap calculations when replacing
17397         text (this was there before i removed it accidently).
17398         - Don't update the cursor during the positioning, just set it to
17399         selection_start at the end of the operaion.
17400
17401 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17402
17403         * Control.cs:
17404         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
17405         
17406 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17407
17408         * MonthCalendar.cs: Added Click and DoubleClick events again,
17409         but this time they only hide Control's Click and DoubleClick.
17410         
17411 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
17412
17413         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
17414         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
17415
17416 2007-01-02  Jackson Harper  <jackson@ximian.com>
17417
17418         * TextBoxBase.cs: We move the caret with the split now, so we
17419         don't need to explicitly move the caret after splitting.  This
17420         fixes the caret bumping down an extra line on Enter.
17421
17422 2007-01-02  Miguel de Icaza  <miguel@novell.com>
17423
17424         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
17425         2.72). 
17426
17427         * ScrollableControl.cs: Add Scroll event.
17428
17429 2007-01-02  Mike Kestner  <mkestner@novell.com>
17430
17431         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
17432         to fix all hdr height padding codepaths.  Fixes #80207.
17433
17434 2007-01-02  Chris Toshok  <toshok@ximian.com>
17435
17436         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
17437         setting it to the Control defaults anyway, and it being after the
17438         Dock set was screwing up layout.
17439         (set_Dock): don't short circuit out of setting base.Dock.  Also,
17440         no need to call UpdateStatusBar here, as it'll be re-layed out if
17441         it needs to be.
17442
17443 2007-01-02  Mike Kestner  <mkestner@novell.com>
17444
17445         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
17446         to header height for width == -1. Fixes the rest of #80207.
17447
17448 2007-01-02  Mike Kestner  <mkestner@novell.com>
17449
17450         * ListView.cs: rework the mouse event forwarding everaldo added
17451         to translate the coordinates to the parent control not
17452         raise the parent events until after we've done our work. Hover
17453         needs more work, in the case where HoverSelection is on, because
17454         the item control receives more than one MouseHover per Enter
17455         event, so we need to ensure only the "first" hover gets forwarded.
17456         Opening a minor bug for that.
17457
17458 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
17459
17460         * CheckedListBox.cs: Fixed SelectionMode to match MS.
17461         * ListControl.cs: Implemented AllowSelection property. Removed extra
17462         tabs.
17463         * ListBox.cs: Implemented AllowSelection property.
17464
17465 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17466
17467         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
17468         SelectedItem, it prevent for errors when you must disable item
17469         before perform click. Fixes #80409.
17470
17471 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17472
17473         * MenuAPI.cs: Prevent second level and beyond submenus to close
17474         until first level when move out side of popup.
17475         
17476 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17477
17478         * MenuAPI.cs:
17479         - Down submenu positin in three pixels.
17480         - Closes sub menu when mouse leaves from menu. Fixes #80402.
17481
17482 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17483
17484         * ThemeWin32Classic.cs:
17485         - Fix popup menu size adding one pixel on the top.
17486         - Down menu item border from two to one to mimic Win32.
17487         - Some source identation fixes. 
17488
17489 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
17490
17491         * ThemeWin32Classic.cs: Use float numbers to calculate size and
17492         position of menu arrows, it fix wrong arrow size.
17493
17494 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
17495
17496         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
17497         instead of line, it simplify draw operation and fix it using 3D
17498         borders to mimic Win32.
17499
17500 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
17501
17502         * StatusStrip.cs: Add implementation of the sizing grip.
17503
17504         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
17505         StatusStrip rendering.
17506
17507 2006-12-31  Chris Toshok  <toshok@ximian.com>
17508
17509         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
17510         override the layout style (anchor/dock) of the control.  assign to
17511         Dock instead.  Fixes bug #80416.
17512
17513         * ToolStrip.cs: same.
17514
17515 2006-12-31  Andreia Gaita  <avidigal@novell.com>
17516
17517         * ContainerControl.cs: Use ContainerSelected flag to check if 
17518         a Container is directly selected, or if Select is called on a 
17519         non-container. If a container is directly selected, focus events 
17520         should not be raised.
17521         Apply #80411 patch to throw exception on set_ActiveControl if 
17522         control is the same as the current one.
17523         
17524         * Control.cs: Use ContainerSelected flag (see above).
17525         Add invalidation check to raise event but not invalidate if 
17526         dimensions are 0.       
17527         Apply #80411 patch.
17528         
17529
17530 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
17531
17532         * MenuAPI.cs: After click, dont close popup menu when menu is
17533         ContextMenu. Fixes #80399.
17534
17535 2006-12-30  Chris Toshok  <toshok@ximian.com>
17536
17537         * ContainerControl.cs: make sure we throw the exception if the
17538         container control doesn't contain the control we're setting
17539         ActiveControl to.
17540
17541 2006-12-30  Chris Toshok  <toshok@ximian.com>
17542
17543         * Control.cs (SetTopLevel): fix the exception raised by
17544         SetTopLevel for child controls.
17545         (set_Anchor): call UpdateDistances when setting the anchor type.
17546         This fixes bug #80336.
17547
17548 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17549
17550         * Theme.cs: For now, revert back to 8pt font.
17551
17552 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
17553
17554         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
17555         Fixes #80395.
17556
17557 2006-12-29  Chris Toshok  <toshok@ximian.com>
17558
17559         * Control.cs: reorder the code in OnResize to give the same event
17560         ordering as MS.
17561
17562 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17563
17564         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
17565         TileHorizontally and TileVertically.
17566         
17567 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
17568
17569         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
17570         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
17571         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
17572         Corrected copyright and email adress.
17573
17574 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17575
17576         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
17577         of Exception in FullPath property if no TreeView is associated with
17578         the TreeNode.
17579
17580 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17581
17582         * Theme.cs: Marked default_font as private, and initialize it in ctor
17583         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
17584         on 2.0 profile.
17585         * ThemeGtk.cs: Removed default_font intialization.
17586         * ThemeWin32Classic.cs: Removed default_font initialization.
17587
17588 2006-12-28  Chris Toshok  <toshok@ximian.com>
17589
17590         * Control.cs: fix a couple of place where we were creating handles
17591         more aggressively than we should be.  Fixes ControlRefresh unit
17592         tests.
17593
17594 2006-12-28  Chris Toshok  <toshok@ximian.com>
17595
17596         * Control.cs: contrary to what the comment said, Control.Dock does
17597         not supercede Control.Anchor - the last one you assign to decides
17598         the layout behavior.  so we need to keep track of which was the
17599         last set.  Also, fix some of the affected property arguments in
17600         PerformLayout calls, and remove an redundant parent.PerformLayout
17601         call in OnResized.
17602
17603         Add a VisibleInternal property, which returns is_visible.  We
17604         can/should get rid of all the usage of this field elsewhere.
17605
17606 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17607         
17608         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
17609         control style, not DoubleBuffer. Added UseDoubleBuffering property
17610         that indicates whether doublebuffering is enabled and supported.
17611         (comment from and code based on Gert Driesen's patch in #80324).
17612         Fixes #80324.
17613
17614 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17615         
17616         * Control.cs: Fixed a NRE.
17617
17618 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17619
17620         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
17621         for 2.0.
17622
17623 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17624
17625         * Control.cs: Rewrote double buffering, now a seperate
17626         class handles all the buffering, no Graphics is disposed of
17627         until the painting is finished (earlier implementation 
17628         would crash if the control was resized in the OnPaint, 
17629         since it would cause the double buffer to be recreated
17630         and the old one disposed), a separate Graphics is 
17631         created for every paint (MS behaviour and anyways the state
17632         of the Graphics would have to be saved and restored otherwise)
17633         
17634         * XplatUIDriver.cs: 
17635         * XplatUIX11.cs:
17636         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
17637         so that we can get the graphics for the back buffer without
17638         having to create a new one and remove the offscreen_dc parameter
17639         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
17640         
17641 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17642
17643         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
17644         Also make virtual all the key-related methods.
17645
17646         * ListViewItem.cs: Make virtual the key related methods for
17647         ListViewSubItemCollection.
17648
17649 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17650
17651         * ListView.cs:
17652         * ListViewItem.cs:
17653         * ThemeWin32Classic.cs:
17654         * Theme.cs: Initial support for Tile view in ListView,
17655         as well as the implementation of the required bits for it (Item
17656         and Subitem).
17657
17658 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17659
17660         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
17661         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
17662         Provide useful exception messages.
17663
17664 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17665
17666         * TrackBar.cs: Remove a warning.
17667         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
17668         when used by DateTimePicker, fixes #80287. This also requires that 
17669         MonthCalendar implements it's own drawing for the yearly updown control,
17670         otherwise the Capture tracking would be too complicated. Removed the Click 
17671         and DoubleClick events (according to comments they were hiding the base class
17672         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
17673         raise these events, not that they cannot be raised. It is possible to raise 
17674         them by calling OnClick and OnDoubleClick). Added two internal fields in 
17675         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
17676         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
17677         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
17678         event, no longer needed.
17679         
17680 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17681
17682         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
17683         true if new value differs from current value.
17684
17685 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17686
17687         * Control.cs: ControlCollection.Count must be public. Fixed build of
17688         unit tests.
17689
17690 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17691
17692         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
17693
17694 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17695
17696         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
17697
17698 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
17699
17700         * Control.cs: Invalidates control including when Width and Height is 
17701         equal zero or is not visible, only Paint event must be care about 
17702         this. Fixes #79913.
17703
17704 2006-12-26  Chris Toshok  <toshok@ximian.com>
17705
17706         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
17707         more corcompare work.
17708
17709         * DataGridView.cs: fix compiler warning.
17710
17711         * ColumnHeader.cs: some corcompare work, and also take the
17712         opportunity to make the internal fields private.
17713
17714         * ListView.cs: fix the fallout from the above field change.
17715
17716 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
17717
17718         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
17719         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
17720         ToolStripTextBox.cs: Fixes to events and corcompare.
17721
17722 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
17723
17724         * ListView.cs: Call owner.OnMousexx event to propagate events from
17725         item to ListView. Fixes #80367.
17726
17727 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17728
17729         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
17730         if value is less than one. ItemHeight should not be set to a value
17731         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
17732         Removed extra tabs.
17733
17734 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
17735
17736         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
17737         * ToolStripStatusLabel.cs: Add Spring for Moma.
17738
17739 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17740
17741         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
17742         Fixed code formatting. Removed debug code.
17743         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
17744
17745 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17746
17747         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
17748         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
17749         ArgumentOutOfRangeException if ColumnCount is negative. In 
17750         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
17751         less than 4 or higher than 32768.
17752         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
17753         Fixed FormatProvider to return CurrentCulture unless explicitly set.
17754         Fixed IsFormatProviderDefault to return true if FormatProvider has
17755         not been explicitly set.
17756
17757 2006-12-25  Chris Toshok  <toshok@ximian.com>
17758
17759         * Application.cs: add a couple of 2.0 events.
17760
17761 2006-12-25  Chris Toshok  <toshok@ximian.com>
17762
17763         * Control.cs: fix compiler warning.
17764
17765         * AxHost.cs: corcompare fixes.
17766
17767         * ApplicationContext.cs: corcompare fixes.
17768
17769 2006-12-25  Chris Toshok  <toshok@ximian.com>
17770
17771         * Control.cs: only update dist_right/dist_bottom if the
17772         width/height is > 0.  this fixes anchored controls being resized
17773         smaller until they disappear and then resized larger again.
17774
17775 2006-12-25  Chris Toshok  <toshok@ximian.com>
17776
17777         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
17778         since they're nothing more than X/Left and Y/Top, respectively.
17779
17780         Also, move back to a per-control Bitmap/Graphics for
17781         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
17782         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
17783         Height.
17784
17785 2006-12-25  Miguel de Icaza  <miguel@novell.com>
17786
17787         * MessageBox.cs: Implemented overload that takes a new "bool
17788         displayHelpButton" by adding a new internal field "show_help".
17789         When clicked this will raise the HelpRequested on the owner or the
17790         main form. 
17791
17792         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
17793         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
17794
17795         * ListView.cs: Add support ColumnWidthChanged and
17796         ColumnWidthChanging. 
17797
17798         Add support for ColumnReordered event.
17799         (ReorderColumn): Add NET_2_0 specific support for cancelling the
17800         reorder.
17801
17802         Very nice codebase!
17803
17804         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
17805
17806         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
17807
17808 2006-12-24  Chris Toshok  <toshok@ximian.com>
17809
17810         * GridTablesFactory.cs: 2.0 corcompare work.
17811
17812         * ToolStripContainer.cs: add "override" to
17813         ContextMenuStripChanged, and remove the local event object.
17814
17815         * ToolStripDropDown.cs: same with a couple properties.
17816
17817         * ToolStripPanel.cs: same with AutoSizeChanged event.
17818
17819         * TextBoxBase.cs: add "override" to AutoSizeChanged.
17820
17821         * Form.cs: add the remaining 2.0 events, and do some corcompare
17822         attribute work.
17823
17824         * DateTimePicker.cs: add "new" to padding.
17825
17826         * ButtonBase.cs: use Control's use_compatible_text_rendering.
17827
17828         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
17829
17830         * DataGridView.cs: PaddingChanged is overridden.
17831
17832 2006-12-24  Chris Toshok  <toshok@ximian.com>
17833
17834         * Control.cs: corecompare work here too.
17835
17836         * DataGridViewElement.cs, DataGridView.cs,
17837         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
17838         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
17839         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
17840         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
17841         work.
17842
17843 2006-12-24  Miguel de Icaza  <miguel@novell.com>
17844
17845         * Control.cs: Switched the error message on the console for a
17846         todo.  A review of the code will have to cope with this anyways
17847         (since its a large feature, it is in our radar) and it was
17848         producing too much output when running PDN.
17849
17850         * ToolStripComboBox.cs: Set the text when the SelectedIndex
17851         changes.  Applications depend on this (PDN 2.72)
17852
17853 2006-12-23  Chris Toshok  <toshok@ximian.com>
17854
17855         * TableLayoutSettings.cs: finish up the corcompare work for this
17856         class.
17857
17858 2006-12-23  Chris Toshok  <toshok@ximian.com>
17859
17860         * Control.cs: make SetImplicitBounds internal, do some futzing
17861         with LayoutEngine so that it's available in 1.1, and remove the
17862         entire duplicated code mess from PerformLayout.  Use
17863         System.Windows.Forms.Layout.DefaultLayout instead.
17864
17865         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
17866
17867 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
17868
17869         * Form.cs: Add MainMenuStrip property.
17870
17871 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
17872
17873         * Control.cs: Add ContextMenuStrip property and implementation.
17874         Fix ContextMenu implementation to show menu centered on control when
17875         activated using the keyboard instead of showing at screen (0,0).
17876
17877         * ToolStripDropDown.cs: Fix needed overload of Show ().
17878
17879 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17880
17881         * Menu.cs: Name property added for 2.0 profile.
17882         
17883 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17884
17885         * Menu.cs: Update information about FindMenuItem, method to be
17886         implemented soon.
17887
17888 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17889
17890         * MenuAPI.cs: When deselect items deselect also selected subitems.
17891         
17892 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17893
17894         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
17895         FindSubItemByCoord to found itens that is not active, also an
17896         cheking added to FindSubItemByCoord to search for items only 
17897         in visible popup windows. Fixes #80274.
17898
17899 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
17900
17901         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
17902         internal property, it be care about change ExStyle. 
17903
17904 2006-12-22  Andreia Gaita  <avidigal@novell.com>
17905
17906         * ContainerControl.cs: set activeControl for parent forms up the 
17907         tree when the new activecontrol is a container.
17908         When validating the active control, if it is a container, also
17909         raise up the validation for it's active control. Fixes #80280
17910         
17911         * Control.cs: Add internal property flag and check to prevent
17912         Focus events from getting raised when Select() is called for
17913         a ContainerControl. There are still too many focus events being
17914         raised at the moment though.
17915         Cleaned up the code a bit.
17916
17917 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17918
17919         * Control.cs: Added all missing 2.0 events.and
17920         fixed a couple of corcompare issues.
17921         * TrackBar.cs: Implemented missing 2.0 bits.
17922         * MonthCalendar.cs, 
17923         * DateTimePicker.cs, 
17924         * MdiClient.cs: Fixed some corcompare issues.
17925
17926 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17927
17928         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
17929         SplitterPanel.cs: corecompare work.
17930
17931 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17932
17933         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
17934         Clean up warnings for BackgroundImageChanged and PaddingChanged
17935         events now that they are implemented in Control.cs.
17936
17937 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17938
17939         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
17940         
17941         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
17942         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
17943         of TableLayoutPanel and supporting cast.
17944
17945 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17946
17947         * XplatUIWin32.cs: 
17948         - GrabWindow now confines the mouse pointer to the confine window.
17949         - Added Win32ClipCursor and Win32GetClipCursor.
17950
17951         * Control.cs: 
17952         - Added CaptureWithConfine to be able to capture and confine 
17953         mouse pointer.
17954         
17955         * InternalWindowManager.cs: 
17956         - Call CaptureWithConfine instead of Capture if we're an
17957         MdiChild (fixes #79982).
17958
17959 2006-12-21  Chris Toshok  <toshok@ximian.com>
17960
17961         * DataGrid.cs: guard against the initial state of selection, where
17962         selection_start == -1.  make sure we only select from index >= 0.
17963         Fixes bug #80291.
17964
17965 2006-12-21  Chris Toshok  <toshok@ximian.com>
17966
17967         * Control.cs: we don't need to be so draconian with
17968         UpdateDistances, and we thusly don't need to call it before
17969         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
17970
17971 2006-12-21  Daniel Nauck  <dna@mono-project.de>
17972
17973         * ComboBox.cs,
17974         TextBox.cs: Implemented AutoComplete properties.
17975
17976 2006-12-20  Chris Toshok  <toshok@ximian.com>
17977
17978         * DataGridView*.cs: some corecompare work.
17979
17980 2006-12-20  Jackson Harper  <jackson@ximian.com>
17981
17982         * XplatUIX11.cs: We need to hide the caret when deleting it,
17983         otherwise you get carets left lying around everywhere.
17984         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
17985         prevents getting some weird half drawn caret tracers when
17986         scrolling.
17987         * TextControl.cs: Attempt to reduce the number of times we need to
17988         recreate the caret.
17989
17990 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
17991
17992         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
17993
17994 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17995
17996         * DateTimePicker.cs:
17997         - Implemented missing 2.0 bits.
17998         - Changed some default values to match MS.
17999         
18000 2006-12-20  Jackson Harper  <jackson@ximian.com>
18001
18002         * TextBoxBase.cs: When changing the font across the document we
18003         can't recalculate after changing each line, since that will cahnge
18004         the line count.
18005         - PreferredHeight is a little different than i thought.
18006         - When backspacing, move the caret before we do the actual char
18007         delete, because when that delete crosses a wrap boundary the
18008         positional information will change.
18009
18010 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18011
18012         * Control.cs: Added some missing 2.0 bits: 
18013         BackgroundImageLayout, BackgroundImageLayoutChanged, 
18014         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
18015         add IBindableComponent and IDropTarget implementation.
18016         
18017         * MonthCalendar.cs: 
18018         - Added all missing 2.0 features:
18019         BackgroundImageLayout, RightToLeftLayout, 
18020         OnHandleDestroyed, RightToLeftLayoutChanged, 
18021         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18022         PaddingChanged.
18023         - Rewrote all the BoldDate code, it was completely broken.
18024         - Fixed all the tests (the tests can now be re-enabled, the
18025         problems were not with the tests, but with the control, it was
18026         mostly broken).
18027         
18028         * DateTimePicker.cs: Changed the location where the 
18029         MonthCalendar is shown.
18030         
18031 2006-12-19  Chris Toshok  <toshok@ximian.com>
18032
18033         * DataGridView.cs: add IDropTarget implementation.
18034
18035         * ToolStripPanel.cs: add IDropTarget implementation.
18036
18037 2006-12-19  Jackson Harper  <jackson@ximian.com>
18038
18039         * TextControl.cs: soft now means something different than what it
18040         used to mean, we want to move the caret regardless of whether or
18041         not this break was soft (would we really have wanted the caret
18042         to not move with the break in the old context?)
18043         * TreeView.cs: Make sure we factor in the vert scrollbar when
18044         calculating the horizontal scrollbar's maximum.
18045
18046 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18047
18048         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18049         check for keywords in alternate casing, close bug #80049.
18050
18051 2006-12-19  Chris Toshok  <toshok@ximian.com>
18052
18053         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18054         methods (which all do nothing).
18055
18056         * IDropTarget.cs: add the 4 missing methods.
18057
18058 2006-12-19  Chris Toshok  <toshok@ximian.com>
18059
18060         * TableLayoutRowStyleCollection.cs: corcompare work.
18061         
18062         * TableLayoutSettings.cs: same.
18063
18064         * TableLayoutStyle.cs: same.
18065
18066         * TableLayoutColumnStyleCollection.cs: same.
18067
18068 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
18069
18070         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18071         TableLayoutPanel I've had in my local tree for way too long.
18072
18073 2006-12-19  Miguel de Icaza  <miguel@novell.com>
18074
18075         * TableLayoutSettings.cs: Finish the public API (still needs all
18076         the logic to update on changes). 
18077
18078         * TableLayoutPanelCellPosition.cs: new file.
18079         
18080         * TableLayoutRowStyleCollection.cs,
18081         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18082         TableLayoutSettings.cs: Track the final 2.0 table api.
18083
18084 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18085
18086         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18087         and Image List 2.0 members for ColummnHeader.
18088         * ListView.cs: Add key-related 2.0 methods for
18089         ColumnHeaderCollection.
18090
18091 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18092
18093         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18094         ArgumentNullException if items argument is null. Ignore null item in
18095         arrays. Removed extra tabs.
18096
18097 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18098
18099         * MonthCalendar.cs: Fixed InvalidCastException.
18100
18101 2006-12-19  Jackson Harper  <jackson@ximian.com>
18102
18103         * TextControl.cs: Don't increment the position here.
18104         - When calculating char positions only add in the line break size
18105         for hard line breaks.
18106
18107 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18108
18109         * SendKeys.cs: Changed some things to match ms.net behaviour
18110         when parsing shifted capital letters.
18111         
18112         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
18113         Add window handle as parameter to SendInput. X11 needs the 
18114         window handle, and the handle being passed      to it in the keys 
18115         queue is the active control handle (which windows needs), not 
18116         the window handle.
18117         
18118         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
18119         to support SendKeys on X.       
18120         
18121         * X11Keyboard: Implement helper method to lookup a linux keycode
18122         given the virtual keycode. Added table of keycode-2-virtualkey
18123         values to support this.
18124
18125 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18126
18127         * ListView.cs: Add support for SelectedIndexCollection
18128         and SelectedItemCollection 2.0 methods. Implement support
18129         for ImageKey too.
18130         * ListViewItem.cs: Add support for ListViewSubItemCollection
18131         2.0 methods. Also, fix an incorrect behavior of AddRange method
18132         (it shouldn't call Clear).
18133         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
18134
18135 2006-12-19  Jackson Harper  <jackson@ximian.com>
18136
18137         * RichTextBox.cs: 
18138         * TextBoxBase.cs: New args for FormatText
18139         * TextControl.cs: Rewrote the main drawing method, this version
18140         feels a little easier to understand and debug to me.  Hopefully it
18141         does to others also
18142         - Fix FormatText to OR in the new formating values.  Added
18143         FormatSpecified param, basically this works in the same way as
18144         BoundsSpecified in Control.
18145         - Set the caret properties when the caret is positioned.
18146         - When wrapping text make sure that we calculate the width of the
18147         last character
18148         - when calculating alignments we might have wrapped down to the
18149         next line, so don't search for an individual tag, search for the
18150         end of the line
18151         - We need to invalidate the selection area when we replace the
18152         selection.
18153         
18154 2006-12-19  Daniel Nauck  <dna@mono-project.de>
18155
18156         * Application.cs: add Restart () 2.0 support
18157
18158 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18159
18160         * MenuItem.cs: Invalidate menu item rectangle after change Enable
18161         property. Fixes #80268.
18162         
18163 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18164
18165         * MenuAPI.cs: Dont trigger select event when closes top menu
18166         item. Fixes #80270.
18167
18168 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18169
18170         * MenuAPI.cs: When you click on menuitem only trigger onselect
18171         event for top menu itens. Fixes #80271.
18172         
18173 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18174
18175         * MdiWindowManager.cs: Make IconicBounds depend on
18176         the bottom of MdiClient, not the top (fixes #80267)
18177         
18178 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18179
18180         * MdiClient.cs: Added missing 2.0 attribute
18181
18182 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18183
18184         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
18185         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
18186
18187 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18188
18189         * MenuAPI.cs: Fix click when menuitem is not popup,
18190         this regression was caused by last commit (#80272).
18191
18192 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
18193
18194         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
18195         fire click event or close menu. Fixes #80272.
18196
18197 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18198
18199         * ListViewHitTestInfo.cs: add
18200
18201 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18202
18203         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
18204         * FlatButtonAppearance.cs: add
18205         * DockingAttribute.cs: add
18206
18207 2006-12-17  Chris Toshok  <toshok@ximian.com>
18208
18209         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
18210         and rebind our columns when it does - this way, if you make
18211         changes to the DataTable (or set the Table attribute on a DataView
18212         after setting it as the DataGrid's DataSource, the changes are
18213         made visible.)  Fixes bug #80107.
18214
18215 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18216
18217         * ListViewGroup.cs: add internal Location property for layouting.
18218         * Theme.cs: add abstract ListViewGroupHeight function.
18219         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
18220
18221 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18222
18223         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
18224         Added reset of selected index to 0 when adding first tab page.
18225         Fixes #80264
18226         
18227         * NumericUpDown.cs: Fix NET_2_0 check
18228
18229 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18230
18231         * ListViewGroup.cs: fixed DefaultValueAttribute value
18232
18233 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18234
18235         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
18236
18237 2006-12-15  Miguel de Icaza  <miguel@novell.com>
18238
18239         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
18240         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
18241         ScrollableControl.cs: Add a handful of methods that are
18242         overwritten in 2.0 
18243
18244 2006-12-15  Chris Toshok  <toshok@ximian.com>
18245
18246         * XplatUIWin32.cs: initial implementation of the Reversible
18247         drawing functions.  there are some problems.  DrawReversibleFrame
18248         doesn't seem to work at all for Dashed FrameStyle, and in the
18249         Thick case there are drawing errors at the corners (we probably
18250         need to bind Rectangle instead of doing moveto/lineto's.)
18251
18252 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18253         
18254         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
18255         to send blocks of key messages. Send accumulates keys to send with Flush, 
18256         while SendWait sends all keys immediately.
18257                 
18258         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
18259         XplatUIX11.cs,  XplatUIX11-new.cs:
18260         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
18261         to Win32 SendInput.
18262         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
18263         
18264         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
18265         testing for ms.net on this class is very tricky, as the tests run too fast 
18266         to allow the hook to release, essentially freezing the keyboard and the 
18267         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
18268         category :p
18269
18270 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18271
18272         * Padding.cs: fixed serialization compability to MS ("_var" field names),
18273                         added missing attributes.
18274  
18275 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18276
18277         * ListViewGroup.cs: Added missing attributes.
18278         * ListViewGroupCollection.cs: Added missing attributes.
18279
18280 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18281
18282         * ListViewItem.cs: fixed ListViewSubItem text property.
18283
18284 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18285         
18286         * Control.cs: Added missing 2.0 attributes
18287         
18288 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18289         
18290         * MdiClient.cs: Added missing 2.0 attribute.
18291         * MonthCalendar.cs: Added some missing 2.0 attributes 
18292         and properties.
18293         
18294 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18295
18296         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
18297
18298 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
18299
18300         * MainMenu.cs: Add the new 2.0 constructor to help out people
18301         using the MainMenu in VS2005.
18302
18303 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18304         
18305         * MdiChildContext.cs: Removed it, no longer used.
18306         * MdiClient.cs: Added missing 2.0 attributes.
18307         
18308 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18309         
18310         * InternalWindowManager.cs: Fix a NullRef with previous 
18311         changes for toolwindows.
18312         
18313 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18314
18315         * Control.cs: 
18316         - Added AfterTopMostControl to allow for certain controls 
18317         to always stay on top when normal controls are brought to 
18318         front.
18319         
18320         * XplatUIWin32.cs: 
18321         - (DrawInversibleRectangle): Get window rectangle from Win32 
18322         in stead of from control, since Win32 doesn't calculate
18323         screen coords correctly from control's Location if it 
18324         have docked siblings.
18325         
18326         * MdiWindowManager.cs:
18327         - Correct the control menu popup location when clicked on
18328         the maximized form icon. (fixes #80223.1)
18329         - Don't show moving rectangle if mouse hasn't moved from
18330         the original clicked point.
18331         - Removed FormGotFocus handler (not used).
18332         - Calculate the control buttons location from the main
18333         window's size and not client size (fixes #79770).
18334         - Form is now closed when the form icon is double-clicked
18335         (fixes #79775). 
18336         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
18337         
18338         * InternalWindowManager.cs:
18339         - Moved some MDI-only methods to MdiWindowManager.
18340         - Removed unused properties and methods.
18341         - Unified method naming for methods handling wm messages.
18342         - Moved all message handling to seperate methods for
18343         each message.
18344         
18345         * ThemeWin32Classic.cs:
18346         - DrawManagedWindowDecorations now draws the title bar 
18347         with a gradient brush.
18348         - Add a CPDrawButtonInternal that allows us to specify
18349         light, normal and dark colors for the buttons (control 
18350         buttons for MDI children were drawn with the same light
18351         color as the background, therefore loosing the 3D effect).
18352         
18353         * SizeGrip.cs:
18354         - Add a CapturedControl property that is used to 
18355         determine the control to resize (defaults to parent). 
18356         Needed for MdiClient, since its SizeGrip's parent is
18357         MdiClient, but the control to resize is the main form.
18358         
18359         * MdiClient.cs:
18360         - Set SizeGrip's CapturedControl to the main form in order
18361         to resize the main form and not the MdiClient.
18362         - Override AfterTopMostControl to leave the scrollbars 
18363         always on top.
18364
18365 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18366
18367         * ListView.cs: fixed ListViewItemCollection AddRange and
18368                         implemented ListViewItemCollection AddRange 2.0 support.
18369
18370 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18371
18372         * ListViewGroup.cs: Add.
18373         * ListViewGroupCollection.cs: Add
18374         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
18375         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
18376                                 stub for ImageKey 2.0 support.
18377
18378 2006-12-14  Mike Kestner  <mkestner@novell.com>
18379
18380         * ListView.cs: add text padding to the autocalculation for columns
18381         of width -2.  Fixes #80207.
18382  
18383 2006-12-14  Mike Kestner  <mkestner@novell.com>
18384
18385         * ListView.cs: add some index guarding for partial row navigation 
18386         logic.  Fixes #80250.
18387
18388 2006-12-14  Mike Kestner  <mkestner@novell.com>
18389
18390         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
18391         are added or inserted to the collection.  Fixes #81099.
18392
18393 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
18394
18395         * MenuAPI.cs: Closes menu when right click out side of popup
18396         it fix problem in ContextMenu and MainMenu. Fixes #80252.
18397
18398 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18399
18400         * ListViewItem.cs: Fix dumb error.
18401
18402         * ListView.cs: Add Find and ContainsKey methods in 
18403         ListViewItemCollection, and also return true for IsReadOnly
18404         and IsFixedSize (changes for 2.0). 
18405
18406 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
18407
18408         * Control.cs: Allow Region to be set to null.
18409
18410 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18411
18412         * MdiWindowManager.cs: Remove unused (commented out) code.
18413         * Form.cs: When the MdiChild is maximized, the form needs 
18414         WM_NCMOUSELEAVE, so request it.
18415         * InternalWindowManager.cs: 
18416         - Added tooltips to control buttons.
18417         - Removed duplicated control button handling code.
18418         - Removed unused (commented out) code.
18419         
18420 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
18421
18422         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
18423         was used because we must set cursor without trigger ChangeCursor event
18424         and without change Cursor control property. Fixes #79963.
18425
18426 2006-12-12  Andreia Gaita  <avidigal@novell.com>
18427         
18428         * Control.cs: Check if Region setter value is null, and ignore
18429
18430 2006-12-12  Jackson Harper  <jackson@ximian.com>
18431
18432         * TextControl.cs: We were almost always drawing one more line then
18433         needed, since the GetLineByPixel will return the last line found
18434         at that pixel. In most cases though, we were invalidating up to
18435         the junction between two lines.
18436         - Improve debug code.
18437
18438 2006-12-12  Chris Toshok  <toshok@ximian.com>
18439
18440         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
18441         and FillReversibleRectangle.
18442
18443         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
18444         and FillReversibleRectangle.
18445
18446         * XplatUIWin32.cs: add stubs which do nothing for
18447         DrawReversibleFrame, DrawReversibleLine, and
18448         FillReversibleRectangle.
18449
18450         * XplatUIOSX.cs: add stubs which raise NIE for
18451         DrawReversibleFrame, DrawReversibleLine, and
18452         FillReversibleRectangle.
18453
18454         * XplatUIX11.cs: add working implementation for
18455         DrawReversibleFrame, DrawReversibleLine, and
18456         FillReversibleRectangle.
18457         
18458         * ControlPaint.cs: implement DrawReversibleFrame,
18459         DrawReversibleLine, and FillReversibleRectangle, by calling into
18460         the appropriate XplatUI method.
18461
18462 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18463
18464         * Form.cs: Make MdiClient have the focus even if it's
18465         not selectable, since it should receive WM_KEY* and WM_MOUSE 
18466         messages. Fixes #79907.
18467         
18468 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18469
18470         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
18471         queried after the window is created.
18472         
18473         * XplatUIX11.cs: Added SendParentNotify to implement 
18474         WM_PARENTNOTIFY logic. Fixes #79965.
18475         
18476         * Control.cs: Added MakeParam.
18477         
18478 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18479
18480         * MdiClient.cs: Resume Layout before setting window
18481         states (fixes #80201).
18482
18483 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18484
18485         * MenuAPI.cs: Deselect a menu item after performing
18486         the click (fixes #80197).
18487
18488 2006-12-11  Jackson Harper  <jackson@ximian.com>
18489
18490         * TextBoxBase.cs: We need to cap this value, since Maximum -
18491         ViewPortHeight can be less than zero.
18492         - Only do selection with the left mouse button.
18493         * TextBox.cs: Don't tell the world that we have a context menu.
18494         * Control.cs: New method so that we can control whether or not the
18495         context menu is visible outside MWF.
18496
18497 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
18498
18499         * ToolBarButton.cs: Fix text positon. 
18500
18501 2006-12-11  Miguel de Icaza  <miguel@novell.com>
18502
18503         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
18504
18505         * Control.cs (DoubleBuffered): Add implementation.
18506
18507         * Application.cs (OpenForms): Add.
18508
18509 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
18510
18511         * Form.cs: Use opacity instead of Opactiy to determine if we need
18512         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
18513
18514 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
18515
18516         * Control.cs: Fix NRE if Control.Site was set to null.
18517
18518 2006-12-11  Chris Toshok  <toshok@ximian.com>
18519
18520         * Control.cs: ControlCollection.Remove should return if the arg is
18521         null, and ControlCollection.SetChildIndex should raise a ANE.
18522
18523 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
18524
18525         * Control.cs: Verify value set for Dock property. Code formatting
18526         updates.
18527
18528 2006-12-11  Jackson Harper  <jackson@ximian.com>
18529
18530         * TextControl.cs: Draw the caret and the selection when a flag is
18531         set on the owner.
18532         * TextBoxBase.cs: We want to draw the caret and the selection for
18533         TextBox but not for TextBoxBase.
18534         - If the window is resized and scrolling is no longer needed (the
18535         whole doc is visible) set the scroll position to zero.
18536         - The default SelectWord (the one TextBox uses) should move the
18537         caret to the end of the word.
18538         - SelectAll moves the caret to the end of the selection.
18539         * TextBox.cs: We don't selectall on focus, we just do it when the
18540         control is created.
18541         
18542 2006-12-11  Mike Kestner  <mkestner@novell.com>
18543
18544         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
18545
18546 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18547
18548         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
18549         2.0 support.
18550         * ListViewItem.cs: Add Name 2.0 property.
18551
18552 2006-12-11  Andreia Gaita  <avidigal@novell.com>
18553
18554         * TabControl.cs: Set visibility on selected or default tab 
18555         when tabcontrol handle is created, so that it's contents
18556         actually show up (duh). Fixes #80193
18557         Don't redraw the control if there is no handle created, as
18558         the selected index might be completely invalid. Added some tests
18559         to check for this.
18560
18561 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
18562
18563         * ToolBar.cs: Uses maximun width and height of all buttons as 
18564         button rectangle when ButtonSize specified, it looks strange but
18565         is what happens in Win32. Fixes #80189.
18566
18567 2006-12-11  Jackson Harper  <jackson@ximian.com>
18568
18569         * TextControl.cs: Need to track undo levels ourself, since
18570         compound actions will mess them up.
18571
18572 2006-12-10  Andreia Gaita  <avidigal@novell.com>
18573
18574         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
18575         SelectedIndex value is changed (even if it's not valid).
18576         Reset SelectedIndex to 0 when the handle is created and if
18577         the current index is invalid.
18578         Fixes SelectdeIndex unit tests and #80128
18579
18580 2006-12-08  Chris Toshok  <toshok@ximian.com>
18581
18582         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
18583         calls EndEdit, it needs to be called before we set current_cell to
18584         its new value.  Otherwise, we end up committing the value in the
18585         textbox to the new cell as well.  Fixes bug #80160.
18586
18587 2006-12-08  Chris Toshok  <toshok@ximian.com>
18588
18589         * Form.cs (set_CancelButton): if the button's DialogResult is
18590         None, set it to Cancel.  Fixes bug 80180.
18591
18592 2006-12-08  Jackson Harper  <jackson@ximian.com>
18593
18594         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
18595         to watch ourselves when setting the canvas size and setting the
18596         scrollbar values.
18597
18598 2006-12-08  Chris Toshok  <toshok@ximian.com>
18599
18600         * DataGrid.cs: comment out the two MakeTransparent calls for the
18601         time being so people using trunk (and not 1.2.2) on windows can
18602         actually use the datagrid.  This deals with bug #80151.
18603
18604 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
18605
18606         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
18607         Graphics.DrawImage (image, int, int, int, int) overload instead
18608         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
18609         the dpi difference and was blurring images it drew.
18610         [Fixes bug #79960]
18611
18612 2006-12-08  Chris Toshok  <toshok@ximian.com>
18613
18614         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
18615         rowcnt is 0 (such as with an empty datasource), and make sure we
18616         initialize not_usedarea.Y to cells.Y, so we don't draw over the
18617         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
18618
18619 2006-12-08  Chris Toshok  <toshok@ximian.com>
18620
18621         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
18622         grid.
18623
18624 2006-12-08  Chris Toshok  <toshok@ximian.com>
18625
18626         [ Fixes bug #80167 ]
18627         
18628         * ThemeWin32Classic.cs: don't draw the image if the button's flat
18629         style is FlatStyle.System.
18630
18631         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
18632         ButtonBase.flat_style private, and switch uses of it to the public
18633         property.
18634         
18635 2006-12-08  Chris Toshok  <toshok@ximian.com>
18636
18637         [ Fixes bug #80121 ]
18638         
18639         * ThemeWin32Classic.cs: center the caption text in the datagrid
18640         when we draw it.
18641
18642         * DataGrid.cs: lessen the amount we add to the caption height from
18643         6 to 2.  6 was making it huge.
18644
18645 2006-12-08  Andreia Gaita  <avidigal@novell.com>
18646
18647         * UpDownBase: Handle MouseWheel call directly instead of capturing
18648         the inner textbox's OnMouseWheel. Fixes #80166
18649
18650 2006-12-08  Jackson Harper  <jackson@ximian.com>
18651
18652         * TextControl.cs: We need to invalidate the textbox when we empty
18653         it (how had this not been discovered before?)
18654
18655 2006-12-08  Jackson Harper  <jackson@ximian.com>
18656
18657         * TextBoxBase.cs: Reworked the mouse down code so I could get it
18658         to behave like MS, we now ignore the eventargs.Click and just
18659         track state ourself, which we were already doing anyways.
18660         - Constrain the double click handler to the double click size.
18661         
18662 2006-12-08  Chris Toshok  <toshok@ximian.com>
18663
18664         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
18665         direction if that scrollbar isn't shown.  fixes bug #80158.
18666
18667 2006-12-08  Andreia Gaita  <avidigal@novell.com>
18668
18669         * NumericUpDown.cs: Update value on getter. Fixes #79950
18670
18671 2006-12-08  Chris Toshok  <toshok@ximian.com>
18672
18673         * MenuItem.cs: add back in the event cloning code.  I didn't know
18674         how to do it in the face of the EventHandlerList work i'd done
18675         last week.  Fixes bug #80183.
18676
18677 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
18678
18679         * Control.cs: Add an invalidate to the BackgroundImage setter.
18680         [Fixes 80184]
18681
18682 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
18683
18684         * ToolStrip*: Add some small properties reported by MoMA, fix event
18685         firing and default properties based off of unit tests, and add some
18686         attributes based off of the class status page.
18687
18688 2006-12-07  Jackson Harper  <jackson@ximian.com>
18689
18690         * TextBoxBase.cs: Take HideSelection into account when determining
18691         whether or not to show the selection.
18692         * RichTextBox.cs: After inserting the RTF into the document move
18693         the cursor to the beginning of the document.
18694
18695 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
18696
18697         * Control.cs: Remove static ArrayList "controls" which maintained
18698         a reference to every control created.
18699         * Application.cs: Create a static FormCollection to maintain a reference
18700         to every form created.  Use it in places that formerly enumerated through
18701         the controls one looking for forms.
18702         * Form.cs: Add and remove self from above FormCollection.
18703
18704 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
18705
18706         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
18707           not libgdk (though it makes me wonder why I didn't have any
18708           problems)
18709
18710 2006-12-07  Chris Toshok  <toshok@ximian.com>
18711
18712         [ you had to know this was coming after that last commit...]
18713         
18714         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
18715         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
18716         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
18717         XCopyArea).
18718
18719 2006-12-07  Chris Toshok  <toshok@ximian.com>
18720
18721         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
18722         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
18723         all the behavior we need for double buffering.
18724
18725         * XplatUIDriver.cs: implement the 3 double buffer methods using a
18726         client side Bitmap, just like the old Control-based double buffer
18727         code did.  The methods are virtual, so each XplatUI driver
18728         subclass can replace the implementation to use a faster, platform
18729         specific approach.
18730
18731         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
18732         double buffer code, and clean things up a bit in the process.
18733
18734 2006-12-06  Chris Toshok  <toshok@ximian.com>
18735
18736         * Control.cs: reindent WndProc.
18737
18738 2006-12-06  Chris Toshok  <toshok@ximian.com>
18739
18740         [ I wanna be like BenM when I grow up ]
18741         
18742         * Hwnd.cs: create a single static Graphics object on the static
18743         Bitmap we create.  use this for our text measurements.
18744
18745         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
18746         This was causing us to allocate a backbuffer for every control,
18747         even when it wasn't flagged as double buffered.  Instead use the
18748         single graphics instance.  This might have implications for
18749         multithreaded applications.  If we run into problems we can switch
18750         to creating 1 Graphics per control, on the static Hwnd bitmap.
18751
18752         this change nets us a 7M savings in private dirty mappings when
18753         running FormsTest.exe.
18754
18755 2006-12-06  Chris Toshok  <toshok@ximian.com>
18756
18757         * ListView.cs: the BackgroundImage override is just to set
18758         attributes.  chain up to base.BackgroundImage.
18759
18760         * RichTextBox.cs: same.
18761
18762         * ToolBar.cs: same, but we need to also redraw the toolbar when it
18763         changes, so instead a handler for BackgroundImageChanged.
18764         
18765         * Control.cs: make background_image private.
18766
18767 2006-12-06  Chris Toshok  <toshok@ximian.com>
18768
18769         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
18770         sure we even need this assignment, but roll with it for now.
18771
18772         * Control.cs: make the cursor field private.
18773
18774 2006-12-06  Chris Toshok  <toshok@ximian.com>
18775
18776         * Form.cs: we don't need to explicitly set ImeMode to
18777         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
18778         behavior in the face of ImeMode.Inherit.
18779
18780         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
18781         change the ctor's assignment to use ImeMode instead of ime_mode.
18782
18783         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
18784         ImeModeInherit.  Only check for the parent's imemode (and return
18785         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
18786         This fixes the button unit test, which sets both ImeMode and
18787         DefaultImeMode to ImeMode.Disable.
18788
18789         also make the ime_mode field private.
18790
18791 2006-12-06  Chris Toshok  <toshok@ximian.com>
18792
18793         * Control.cs: make control_style private.
18794
18795         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
18796         setting the styles to true, then setting them to false instead of
18797         reverting to their previous values.
18798
18799         also, call SetStyle on the scrollbars instead of using
18800         control_style directly.
18801
18802 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
18803
18804         * FormCollection.cs: Implement. [2.0]
18805
18806 2006-12-06  Chris Toshok  <toshok@ximian.com>
18807
18808         * Control.cs: make tab_stop private.
18809
18810         * Label.cs: set TabStop, not tab_stop.  reformat some event
18811         add/remove methods to make them more compact.
18812
18813 2006-12-06  Chris Toshok  <toshok@ximian.com>
18814
18815         * RadioButton.cs: fix TabStop handling.
18816
18817 2006-12-06  Chris Toshok  <toshok@ximian.com>
18818
18819         * TextBox.cs: remove the explicit assignments to has_focus.
18820         Control does that.
18821
18822         * ButtonBase.cs: remove the assignment to has_focus.  Control will
18823         manage that.
18824         
18825 2006-12-06  Chris Toshok  <toshok@ximian.com>
18826
18827         * ButtonBase.cs: remove all uses of is_enabled from this code.
18828         it's always true when any of the code containing the checks is
18829         executed.
18830
18831 2006-12-06  Chris Toshok  <toshok@ximian.com>
18832
18833         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
18834         with different semantics (some are present in both 1.1 and 2.0
18835         profiles) so that we match MS's behavior in our unit tests.
18836
18837 2006-12-06  Jackson Harper  <jackson@ximian.com>
18838
18839         * TextControl.cs: Make this operation undoable.
18840         * TextBoxBase.cs: Factor the border width into the preferred
18841         height.
18842         - implement Modified as per the spec.
18843
18844 2006-12-06  Chris Toshok  <toshok@ximian.com>
18845
18846         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
18847
18848 2006-12-06  Chris Toshok  <toshok@ximian.com>
18849
18850         * Control.cs: make right_to_left and context_menu fields private.
18851
18852 2006-12-06  Chris Toshok  <toshok@ximian.com>
18853
18854         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
18855         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
18856         Control.child_controls private.  switch all uses over to
18857         Control.Controls.
18858
18859 2006-12-06  Chris Toshok  <toshok@ximian.com>
18860
18861         * System.Windows.Forms/GroupBox.cs,
18862         System.Windows.Forms/AccessibleObject.cs,
18863         System.Windows.Forms/ErrorProvider.cs,
18864         System.Windows.Forms/Control.cs,
18865         System.Windows.Forms/UpDownBase.cs,
18866         System.Windows.Forms/ScrollBar.cs,
18867         System.Windows.Forms/DateTimePicker.cs,
18868         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
18869         System.Windows.Forms/ToolTip.cs,
18870         System.Windows.Forms/RadioButton.cs,
18871         System.Windows.Forms/LinkLabel.cs,
18872         System.Windows.Forms/Splitter.cs,
18873         System.Windows.Forms/TextBoxBase.cs,
18874         System.Windows.Forms/ToolStripTextBox.cs,
18875         System.Windows.Forms/ContainerControl.cs,
18876         System.Windows.Forms/ThemeWin32Classic.cs,
18877         System.Windows.Forms/SizeGrip.cs,
18878         System.Windows.Forms/ToolStripDropDown.cs,
18879         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
18880         private.  switch all uses over to Control.Parent.
18881
18882 2006-12-06  Chris Toshok  <toshok@ximian.com>
18883
18884         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
18885         Control does this before calling emitting these events.
18886
18887         * TabControl.cs: same.
18888
18889         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
18890         Control.client_rect.
18891
18892         * ButtonBase.cs: use the ClientSize property instead of the
18893         client_size field.
18894
18895         * ScrollableControl.cs: same.
18896
18897         * Control.cs: another pass at making properties private.  also,
18898         move the initialization of tab_stop to the ctor.
18899
18900 2006-12-05  Andreia Gaita <avidigal@novell.com>
18901
18902         * TabControl.cs: Let the selected index be set freely if the 
18903         control handle is not yet created.
18904
18905 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
18906
18907         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
18908         internal until I can rewrite DefaultLayout.
18909         * ToolStrip.cs: Fix build error and some general cleaning.
18910         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
18911         Fix build errors caused by making some of Control's fields private.
18912
18913 2006-12-05  Jackson Harper  <jackson@ximian.com>
18914
18915         * TextControl.cs: Redo Insert a little so that it use IndexOf
18916         instead of Split, this prevents it from messing up on things like
18917         \n\n\n. Also more effecient since the split array doesn't need to
18918         be created.
18919         * TextBoxBase.cs: AppendText doesnt handle multiline and non
18920         multiline text differently, this is the first of many fixes that
18921         will make multiline/non-multiline the same thing as far as the
18922         TextBoxBase is concerned.
18923         - Don't split the text and insert lines, this can lose some line
18924         endings (like is the last line a soft or hard break). Instead use
18925         the new Insert.
18926         - Fix an off by one when combining all the lines in the Text
18927         getter.
18928         - Remove separate multiline handling from the Text getter/setter.
18929
18930 2006-12-05  Chris Toshok  <toshok@ximian.com>
18931
18932         * ButtonBase.cs: a few changes:
18933
18934         - don't reinitialize internal Control fields in the ctor when they
18935         have the same values as Control sets them.
18936
18937         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
18938         this before calling those methods.
18939
18940         - we don't need to call Refresh for anything.  use Invalidate
18941         instead.
18942
18943         - OnEnabledChanged doesn't need to redraw at all - Control.cs
18944         calls Refresh in its OnEnabledChanged.
18945         
18946         - several of the events we were registered for in the ctor to
18947         redraw ourselves already include calls to Invalidate in the
18948         property setters that raise the events.  remove the extra
18949         invalidation.
18950
18951         - reformat a switch statement that was 83274658 columns wide.
18952         
18953 2006-12-05  Mike Kestner  <mkestner@novell.com>
18954
18955         * ComboBox.cs: fix a unit test regression from a TextBox
18956         SelectionLength return of -1 when there's no selection.  
18957
18958 2006-12-05  Chris Toshok  <toshok@ximian.com>
18959
18960         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
18961         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
18962         cleaning up some of the internal Control fields being used by
18963         subclasses.
18964
18965 2006-12-05  Mike Kestner  <mkestner@novell.com>
18966
18967         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
18968         listbox after AddImplicit calls since it defaults to hidden. Add a 
18969         hack to preserve requested heights across DropDownStyle changes.
18970
18971 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
18972
18973         * PropertyGrid.cs: Hide FindFirstItem method from public API.
18974
18975 2006-12-05  Chris Toshok  <toshok@ximian.com>
18976
18977         * DataGridView.cs: fix compiler warnings.
18978
18979         * PrintControllerWithStatusDialog.cs: same.
18980
18981         * ToolBar.cs: same.
18982
18983         * FolderBrowserDialog.cs: same.
18984
18985         * Splitter.cs: same.
18986
18987         * DataGridViewComboBoxCell.cs: same.
18988
18989         * XplatUIWin32.cs: same.
18990
18991         * PictureBox.cs: same.
18992
18993         * Win32DnD.cs: same.
18994
18995         * PageSetupDialog.cs: same.
18996
18997         * FileDialog.cs: same.
18998
18999         * PrintDialog.cs: same.
19000
19001         * DataGridTextBoxColumn.cs: same.
19002
19003         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19004
19005 2006-12-05  Chris Toshok  <toshok@ximian.com>
19006
19007         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19008         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19009         System.ComponentModel.EventHandlerList work.
19010
19011 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
19012
19013         * DrawTreeNodeEventArgs.cs: Added.
19014
19015 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19016         
19017         * InternalWindowManager.cs: Remove an unused field.
19018         
19019 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19020
19021         * InternalWindowManager.cs:
19022         - Save the point where the title bar is clicked.
19023         
19024         * MdiWindowManager.cs:
19025         - Only allow moving of the window as long as the 
19026         clicked point on the title bar does not get out of
19027         MdiClient's rectangle. Fixes #79982.
19028         
19029         * MdiClient.cs:
19030         - Added Horizontal/VerticalScrollbarVisible.
19031         - Simplified the scrollbar sizing algorithm.
19032         - Cache the difference in scrolled value in
19033         H/VBarValueChanged and move the calculation out
19034         of the for loop.
19035
19036 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19037
19038         * Control.cs: Make the Console.WriteLine in WndProc 
19039         write more info.
19040
19041 2006-12-05  Chris Toshok  <toshok@ximian.com>
19042
19043         * ToolStripManager.cs, ToolStripButton.cs,
19044         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19045         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19046         ToolStripSplitButton.cs, ToolStripSeparator.cs,
19047         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19048         ToolStripProgressBar.cs, ToolStripContainer.cs,
19049         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19050         to using System.ComponentModel.EventHandlerList.
19051
19052 2006-12-04  Chris Toshok  <toshok@ximian.com>
19053
19054         * LinkLabel.cs: fix up compiler warnings.
19055
19056         * TableLayoutSettings.cs: same.
19057
19058         * TreeView.cs: same.
19059
19060         * ToolBar.cs: same.
19061
19062         * TabControl.cs: same.
19063
19064         * RichTextBox.cs: same.
19065
19066         * ListViewItem.cs: same.
19067
19068         * PropertyGrid.cs: same.
19069
19070         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19071
19072         * ToolTip.cs same.
19073
19074         * TextRenderer.cs: fix up compiler warnings.
19075
19076         * Label.cs: same.
19077
19078         * Form.cs: corcompare fixes.
19079
19080         * PictureBox.cs: fix up compiler warnings.
19081
19082         * ImageListStreamer.cs: same.
19083
19084         * TrackBar.cs: corcompare fix.
19085
19086         * Control.cs: fix up compiler warnings.
19087
19088         * SplitterPanel.cs: same.
19089
19090         * NumericTextBox.cs: same.
19091
19092         * ImageList.cs: same.
19093
19094         * StatusStrip.cs: same.
19095
19096         * ProgressBar.cs: corcompare fix.
19097
19098         * ToolStripButton.cs: fix up compiler warnings.
19099
19100         * ToolStripStatusLabel.cs: same.
19101
19102         * ToolStripSplitButton.cs: same.
19103
19104         * ToolStripSeparator.cs: same.
19105
19106         * ToolStripProgressBar.cs: same.
19107
19108         * ToolStripDropDownMenu.cs: same
19109
19110         * ToolStripDropDown.cs: same.
19111
19112         * ToolStripDropDownButton.cs: same.
19113
19114         * ToolStrip.cs: same.
19115
19116         * ToolStripControlHost.cs: same.
19117
19118         * ToolStripContentPanel.cs: same.
19119
19120         * ToolStripDropDown.cs: same.
19121
19122         * ToolStripContainer.cs: same.
19123
19124         * ToolStripPanel.cs: same, and add "new" where we need it to work
19125         with the new ArrangedElementCollection.
19126
19127         * ToolStripItemCollection.cs: add "new" where we need it to work
19128         with the new ArrangedElementCollection.
19129
19130 2006-12-04  Andreia Gaita <avidigal@novell.com>
19131
19132         * TabControl.cs: Fix default tab selection to after TabControl
19133         gets focus and not before. Fixes #80128
19134
19135 2006-12-04  Chris Toshok  <toshok@ximian.com>
19136
19137         * DataGridTableStyle.cs: remove the gross calling of
19138         datagrid.Refresh from here.  It's a broken idea and it doesn't
19139         work anyway.
19140
19141         * DataGrid.cs: instead, just register/unregister from the
19142         DataGridTableStyle events in CurrentTableStyle.  we play it
19143         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
19144         even though some would most likely not require it.  Fixes bug
19145         #80115 (and one portion of #80117 as a side effect).
19146
19147 2006-12-04  Chris Toshok  <toshok@ximian.com>
19148
19149         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
19150         so the textbox (if any) goes away.  Fixes bug #80117.
19151
19152 2006-12-04  Chris Toshok  <toshok@ximian.com>
19153
19154         * DataGridColumnStyle.cs: set the column's readonly property
19155         initially based on the property descriptor's IsReadOnly.  Fixes
19156         bug #80044.
19157
19158 2006-12-04  Chris Toshok  <toshok@ximian.com>
19159
19160         * ComboBox.cs: wrap the dropdown style changing work in
19161         SuspendLayout/ResumeLayout.  Fixes bug #79968.
19162
19163 2006-12-04  Jackson Harper  <jackson@ximian.com>
19164
19165         * TextBoxBase.cs: Fix off by one, since these are one-based.
19166         * TextBox.cs: Select all the text when we get focus.  The TextBox
19167         does this but the RTB does not.
19168
19169 2006-12-04  Chris Toshok  <toshok@ximian.com>
19170
19171         * DataGridTextBoxColumn.cs: remove some spew.
19172
19173         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
19174         but some part of me is saying "it shouldn't be here.."  At any
19175         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
19176         setting the value.
19177
19178 2006-12-04  Chris Toshok  <toshok@ximian.com>
19179
19180         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
19181         to reassign the propertydescriptor.
19182
19183 2006-12-04  Jackson Harper  <jackson@ximian.com>
19184
19185         * TextBoxBase.cs:
19186         * TextControl.cs: Remove some unused variables.  Maybe this will
19187         patch things up between mike and I.
19188         - don't split lines less then one char wide, if the viewport is
19189         that small text won't be visible anyways.
19190         
19191 2006-12-04  Jackson Harper  <jackson@ximian.com>
19192
19193         * TextBoxBase.cs: Default selection length is -1, need to do some
19194         more testing on windows to see when this is used for the property.
19195         - Redid the Lines [] property to that we properly remove soft line
19196         breaks
19197         - added support for preserving carriage returns
19198         -  CanUndo is not a variable like 'is undo enabled' it just returns
19199         true if there is undo operations available.
19200         - AppendText doesn't need to grab the last tag itself anymore,
19201         this happens automatically when we move the cursor.
19202         * TextControl.cs: Add CompoundActions to the undo class. This
19203         allows combining the other operations into one big option.  ie a
19204         paste will combine { delete old, insert new, move cursor }
19205         - Add InsertString undo operation
19206         - New method for deleting multiline text
19207         - Add carriage returns to lines. So we can preserve carriage
19208         returns when text is 'roundtripped'
19209
19210 2006-12-04  Chris Toshok  <toshok@ximian.com>
19211
19212         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
19213         minimum 0.  Fixes the scrollbar exception in bug #80136.
19214
19215 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19216
19217         * MdiClient.cs: 
19218         * MdiWindowManager: Removed unused fields and methods.
19219         
19220 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19221         
19222         * StatusBar.cs: Update all panels when a AutoSize=Contents
19223         panel needs updating.
19224         
19225         * StatusBarPanel.cs: Remove twidth and only use initialize.
19226         Fixes #80031.
19227                 
19228 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19229
19230         * Form.cs: When a form's MdiParent is set add it directly
19231         on top of the z-order in stead of relying on MdiClient's
19232         ActivateChild to do it. Fixes #80135.
19233         
19234         * MdiClient.cs: 
19235         - Remove original_order, mdi_child_list is already doing
19236         the same thing.
19237         - Create mdi_child_list on construction in
19238         stead of first use (avoids a few null checks).
19239
19240         * MenuItem.cs: Use an already existing list of mdi children
19241         to get the correct order of children and remove the other
19242         redundant list.
19243
19244 2006-12-04  Chris Toshok  <toshok@ximian.com>
19245
19246         * PropertyGridView.cs: cached_splitter_location is only used in
19247         !DOUBLEBUFFER code.
19248
19249         * PropertyGrid.cs: implement the ComComponentNameChanged event
19250         using Events, hoping that would fix the warning.  Looks like a
19251         compiler bug instead (#80144).
19252
19253         * PropertyManager.cs: remove unused method.
19254
19255 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
19256
19257         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
19258         include parentesis to fix expression evaluation. Fixes #79634.
19259
19260 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
19261         
19262         * MenuAPI.cs:
19263         - Changes to fix behavior in Menu control, some reported in #80097
19264         and other detected during behavior refactory like a select event
19265         problems.
19266         - Remove unneded "if's" conditions.
19267         - Created an internal to flag when popup is active in control, we need 
19268         it because in .NET you can have menu active but without popup active
19269         when you active menu using popup without visible items.
19270         - Mimic win32 behavior for Select and Popup events.  
19271         - Dont open popup menu when you dont have visible subitems.
19272         - Do nothing when click on disabled menu item.
19273         - Some small changes to follow the coding style guidelines.
19274         - Unselect menu only when another control gives focus. Fixes #80097.
19275         - Remove unused code.
19276         
19277         * MenuItem.cs: internal VisibleItems method to check if menu
19278         theres visible subitems, it will be usefull to fix some 
19279         behavior in Menu control.
19280         
19281 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
19282         
19283         * Timer.cs: Tag property for 2.0 profile.
19284         
19285 2006-12-01  Chris Toshok  <toshok@ximian.com>
19286
19287         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
19288         
19289         * Win32DnD.cs: comment out some unused fields.
19290
19291         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
19292         some unused properties/methods.
19293
19294         * XplatUIX11.cs: fix MousePosition so we override the base class's
19295         property instead of conflicting with it.
19296
19297         * PictureBox.cs: comment out some unused fields
19298
19299         * OSXStructs.cs: make some struct fields public.
19300
19301         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
19302         MousePosition so we override the base class's property instead of
19303         conflicting with it.
19304
19305         * X11Dnd.cs: comment out some unused fields
19306
19307         * X11DesktopColors.cs: fix some struct field visibility to quiet
19308         the compiler.
19309
19310         * X11Dnd.cs: remove some debug code.
19311
19312         * ThemeClearlooks.cs: comment out unused field.
19313
19314         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
19315
19316         * ThemeGtk.cs: comment out some unused pinvokes.
19317
19318         * Timer.cs: remove some unused fields.
19319
19320         * ThemeClearlooks.cs: comment out unused field.
19321
19322         * UpDownBase.cs: comment out unused field.
19323
19324         * DataObject.cs: comment out unused field.
19325
19326         * DataGridBoolColumn.cs: reomve unused field.
19327
19328         * DataGrid.cs: remove unused field.
19329
19330         * Cursor.cs: remove old ToBitmap code.
19331
19332         * ControlPaint.cs: remove unused method.
19333
19334         * ScrollBar.cs: remove unused fields.
19335
19336         * ComboBox.cs: remove unused field, and chain up to
19337         AccessibleObject ctor.
19338
19339         * ListBox.cs: remove unused field.
19340
19341         * ButtonBase.cs: wrap a couple fields in NET_2_0.
19342
19343         * GridEntry.cs: remove unused fields.
19344
19345         * Binding.cs: remove unused fields.
19346
19347         * AxHost.cs: remove unused method.
19348
19349         * ContainerControl.cs: remove unused field.
19350
19351         * ScrollableControl.cs: remove unused fields.
19352
19353 2006-12-01  Chris Toshok  <toshok@ximian.com>
19354
19355         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
19356         the Where/WhereString stuff.  it's easy enough to CWL
19357         Environment.StackTrace.
19358
19359         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
19360         unused private fields.
19361
19362 2006-12-01  Jackson Harper  <jackson@ximian.com>
19363
19364         * TextControl.cs: Do not update the view while inserting multiline
19365         text. If we update the view we might wrap lines, before entering
19366         the new lines, which causes the new line insertion calculations to
19367         be totally fubared.
19368         - Remove an old TODO
19369         - Make debug output a little nicer
19370         
19371 2006-12-01  Chris Toshok  <toshok@ximian.com>
19372
19373         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
19374
19375 2006-12-01  Chris Toshok  <toshok@ximian.com>
19376
19377         [ fix the majority of the CS0108 warnings we've been suppressing ]
19378         
19379         * TreeView.cs: mark BackgroundImageChanged as 'new'.
19380
19381         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
19382         to "LayoutToolBar" to quiet mcs.
19383         
19384         * TabControl.cs: mark our ControlCollection class as 'new'.
19385
19386         * TextBoxBase.cs: mark some events as 'new'.
19387
19388         * Splitter.cs: TabStop is 'new'.
19389
19390         * ControlBindingsCollection.cs: mark a few methods as new since
19391         they change the visibility from protected to public.
19392
19393         * RadioButton.cs: DoubleClick -> base class, and remove unused
19394         HaveDoubleClick.
19395
19396         * MonthCalendar.cs: ImeMode property -> base class, and mark many
19397         events as new.
19398
19399         * NumericUpDown.cs: TextChanged -> base class.
19400
19401         * CheckedListBox.cs: mark our ObjectCollection class as new to
19402         quiet mcs.
19403
19404         * FolderBrowserDialog.cs: make HelpRequest event new and have it
19405         muck with the base class.
19406
19407         * StatusBar.cs: fix some mcs warnings about Update being the same
19408         name as a base class method.
19409
19410         * RichTextBox.cs: mark some events as new, and make them do things
19411         to the base class impl.
19412
19413         * UserControl.cs: mark TextChanged as new, and have it manipulate
19414         base.TextChanged.
19415
19416         * UpDownBase.cs: mark some things new.
19417
19418         * CheckBox.cs: mark DoubleClick "new", and add some text about
19419         what we need to look at.
19420
19421         * Panel.cs: make the events "new", and manipulate the base
19422         version.  these are just here for attributes.
19423
19424         * AccessibleObject.cs: make owner private.
19425
19426         * Control.cs: deal with AccessibleObject.owner being private.
19427         cache our own copy if we need it.
19428
19429         * Button.cs: add "new" to the DoubleClickEvent.
19430
19431         * ListBox.cs: no need to track our own has_focus here.  let
19432         Control.has_focus do it for us.  Also some other work to clear up
19433         warnings about not overriding base class methods of the same name.
19434         
19435         * ComboBox.cs: clear up some warnings about not override base
19436         class methods of the same name.
19437
19438 2006-12-01  Chris Toshok  <toshok@ximian.com>
19439
19440         * Form.cs: flag a few things as "new" to quiet some of the mcs
19441         warnings.
19442
19443         * AxHost.cs: same.
19444
19445         * PrintPreviewDialog.cs: same.
19446
19447         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
19448         now DGV isn't so horrible on the class status page.  also, move
19449         all events to using System.ComponentModel.EventHandlerList.  my
19450         wrists hurt.
19451
19452 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19453
19454         * MdiWindowManager.cs:
19455         - Set form to active mdi child if shown,
19456         and update the active mdi child to the next 
19457         remaining child in the z-order if the form is hidden.
19458
19459         * Form.cs: 
19460         - Track if the form has been visible and if its 
19461         visibility is beeing changed, so that the MdiClient
19462         can properly decide the ActiveMdiChild. The MdiClient 
19463         cannot track this since the form can change visibility 
19464         before MdiClient is created.
19465
19466         * MdiClient.cs:
19467         - Don't activate anything of the parent form is changing
19468         its visibility.
19469         - Rework ActiveMdiChild to only return visible mdi 
19470         children and take into account several other corner 
19471         cases.
19472
19473 2006-12-01  Chris Toshok  <toshok@ximian.com>
19474
19475         * IBindableComponent.cs: new 2.0 interface.
19476
19477 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
19478
19479         * DataGrid.cs: Font for caption area is bold by default.
19480
19481 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
19482
19483         * Menu.cs: Tag property for 2.0.
19484         
19485 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
19486
19487         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
19488         
19489 2006-12-01  Chris Toshok  <toshok@ximian.com>
19490
19491         * TreeView.cs: doh, the Begin* events should be
19492         TreeViewCancelEventHandler.
19493
19494 2006-12-01  Chris Toshok  <toshok@ximian.com>
19495
19496         * Form.cs: Form.ControlCollection already stores off the
19497         form_owner field.  don't access the base class's internal "owner"
19498         field.
19499
19500         * Control.cs: make all the fields in Control.ControlCollection
19501         private.  there's no need for any internal fields here.
19502
19503 2006-12-01  Chris Toshok  <toshok@ximian.com>
19504
19505         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
19506         OnHandleCreated.  Fixes bug #80109.
19507
19508 2006-12-01  Chris Toshok  <toshok@ximian.com>
19509
19510         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
19511         SplitContainer.cs, Control.cs, StatusStrip.cs,
19512         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
19513         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
19514         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
19515         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
19516         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
19517         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
19518         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
19519         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
19520         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
19521         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
19522
19523         do most of the work to convert our code over to use
19524         System.ComponentModel.Component.Events for
19525         adding/removing/dispatching events.
19526
19527
19528 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
19529
19530         * DataGridView.cs: Fix an ArgumentNullException reported 
19531         twice today in IRC.
19532
19533 2006-11-30  Mike Kestner  <mkestner@novell.com>
19534
19535         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
19536         grabbed listbox.  Fixes #80036 and #80101.
19537
19538 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
19539
19540         * Message.cs: Changed ToString() to match MS.
19541         
19542 2006-11-30  Jackson Harper  <jackson@ximian.com>
19543
19544         * TextBoxBase.cs: You can still change the selected text on a read
19545         only textbox.
19546         * TextControl.cs: Lower magic number for wrap calculations. This
19547         lets text get closer to the right (far) edge.
19548
19549 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
19550
19551         * Control.cs: Tweak 2.0 layout properties.
19552         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
19553         * TextRenderer.cs: Add a new overload.
19554         * ToolStrip*: Huge amount of changes and new features.
19555
19556 2006-11-30  Mike Kestner  <mkestner@novell.com>
19557
19558         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
19559         scroll range correct.  Fixes #79994.
19560
19561 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
19562
19563         * MdiWindowManager.cs: Update main form's text when
19564         a form is closed. (fixes #80038)
19565         
19566 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
19567
19568         * ToolBar.cs:
19569         - Fix an regression in ButtonSize.
19570         - Get ImeMode default value change to "Disable".
19571         - Get ShowTooltips default value change to true, default value is 
19572         "false" but after make a test in .NET we get "true" result as default.
19573         
19574 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
19575
19576         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
19577
19578 2006-11-29  Chris Toshok  <toshok@ximian.com>
19579
19580         * XplatUIWin32.cs (GetWindowTransparency): check return value of
19581         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
19582         SetWindowTransparency hasn't been called.
19583
19584 2006-11-29  Chris Toshok  <toshok@ximian.com>
19585
19586         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
19587         if it's supported.
19588         (set_AllowTransparency): reorder things a little so that the
19589         WS_EX_LAYERED style is removed properly.
19590
19591 2006-11-29  Chris Toshok  <toshok@ximian.com>
19592
19593         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
19594         
19595         * Form.cs: only call the XplatUI transparency method (get/set) if
19596         SupportsTransparency says it's supported. Otherwise fallback to
19597         doing nothing (in the set case) or returning the instance field we
19598         cache (in the get case).
19599
19600         * XplatUIStructs.cs: add TransparencySupport flag enum.
19601         
19602         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
19603         change to SupportsTransparency.
19604
19605         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
19606         TransparencySupport.None from SupportsTransparency.
19607
19608         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
19609         TransparencySupport.Set from SupportsTransparency.
19610
19611         * XplatUIWin32.cs: implement GetWindowTransparency calling
19612         GetLayeredWindowAttributes, and implement SupportsTransparency by
19613         checking whether or not both
19614         GetWindowTransparency/SetWindowTransparency are available
19615         entrypoints.  We need to do this since SetWindowTransparency is
19616         available as of win2k, but GetWindowTransparency requires winxp.
19617         yay win32 api.
19618
19619         * XplatUI.cs: Add GetWindowTransparency, and change
19620         SupportsTransparency to allow for either/both Get/Set.
19621
19622 2006-11-29  Chris Toshok  <toshok@ximian.com>
19623
19624         * DataGrid.cs: keep from going into an infinite loop redrawing a
19625         datagrid that has no datasource.  Fixes bug #80033.
19626
19627 2006-11-29  Chris Toshok  <toshok@ximian.com>
19628
19629         * MenuItem.cs: fix the NRE when we assign text (and therefore call
19630         Invalidate) before the mainmenu has been assigned to a control.
19631
19632 2006-11-29  Chris Toshok  <toshok@ximian.com>
19633
19634         * DataGrid.cs: detect when we should be double the double click
19635         row/column autosize stuff, although that codepath has yet to be
19636         written.  part of the work for bug #79891.
19637
19638 2006-11-29  Chris Toshok  <toshok@ximian.com>
19639
19640         * Binding.cs (SetControl): fix unit test.
19641
19642 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19643
19644         * PageSetupDialog.cs: Validate the margins and set them in
19645         PageSettings. 
19646         * NumericTextBox.cs: New class to mimic the behavior of the
19647         textboxes used in the printing dialogs.
19648
19649 2006-11-29  Andreia Gaita  <avidigal@novell.com>
19650         
19651         * Form.cs: Revert previous change (remove call UpdateBounds
19652         from form constructor), because it messes with the handle creation
19653         order, and that one needs lots and lots of love.
19654         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
19655         for valid printer and throw InvalidPrinterException if document
19656         is set but printer not valid), adding a MonoTODO. Once 
19657         handle creation is done properly, we can put this back in.
19658
19659 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19660
19661         * MenuItem.cs: Create a invalidate method for menu item, to be
19662         calling from set text, it make text changes to imadiate update
19663         on screen. Fixes #80013. 
19664         
19665 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19666
19667         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
19668         fixes bug #80070 and some other problem on toolbar buttons
19669         layout.
19670
19671 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19672
19673         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
19674         with dotted brush.      Fixes #79564
19675         
19676 2006-11-28  Andreia Gaita  <avidigal@novell.com>
19677
19678         * Form.cs: Removed call to UpdateBounds on Form
19679         constructor, it was causing a call to CreateHandle
19680         before it was supposed to.
19681         * PrintControllerWithStatusDialog: Applied patch
19682         by Chris Toshok to hide controller when there are
19683         no printers available.
19684         PrintDialog.cs: initialize printer settings to 
19685         null - correct DefaultValues test #5
19686         * PrintPreviewControl.cs: Move PrintController
19687         initialization to GeneratePreview
19688         * PrintPreviewDialog.cs: 
19689         - Remove Preview generation     from Document_set(). It is 
19690         called on OnPaint
19691         - Throw InvalidPrinterException on CreateHandle if
19692         a Document is set but there are no printers or 
19693         printer is not valid.
19694         * ThemeWin32Classic: don't paint PrintPreviewControl
19695         if there is nothing to paint    
19696
19697 2006-11-28  Miguel de Icaza  <miguel@novell.com>
19698
19699         * Form.cs: Add another popular method.
19700
19701         * TabPage.cs: ditto.
19702
19703 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19704
19705         * MenuItem.cs: Fixed a warning.
19706         * InternalWindowManager: Fixed a warning.
19707
19708 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19709
19710         * MenuItem.cs:
19711         - When cloning a menu also clone MdiList and clone the 
19712           window menu items properly (as the forms and menuitems
19713           are kept in an internal hashtable, these need updating 
19714           as well)
19715         - Rewrote the window menu code, menu items are added in the
19716           order the forms were added to their parent, and they are
19717           updated every time the window menu is shown (before the
19718           list was only generated once, in the current order of the
19719           forms, and would never be updated). A checkmark is shown
19720           next to the item corresponding to the active mdi child.
19721
19722 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19723
19724         * XplatUIStructs.cs: 
19725         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
19726         
19727         * XplatUIWin32.cs: 
19728         - Added TME_NONCLIENT to TMEFlags.
19729         - Handles WM_NCMOUSEMOVE in GetMessage to 
19730           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
19731
19732         * MdiWindowManager:
19733         - Now merges mdi child menu to parent menu when maximized.
19734         - Recalculate NC areas of both mdi child and mdi parent. 
19735           Fixes #79757 (4).
19736           on window state and size changes.Fixes #79844 (3).
19737         - Handle WM_NCCALCSIZE to properly calculate borders.
19738
19739         * Form.cs:
19740         - Add/remove to the mdi containers list of mdi children 
19741           in the order they are added.
19742         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
19743           to the maximized mdi child.
19744         
19745         * InternalWindowManager.cs:
19746         - Only execute a click on the control buttons on the mouse up,
19747           not on the mouse down. Show the state of the button 
19748           (was only showing Normal state, never Pressed state). The
19749           pressed button now follows the mouse (if you click the Close 
19750           button and move the mouse over the Maximize button, the 
19751           Maximize button will be shown as pressed). Since Win32 does
19752           not generate WM_NCLBUTTONUP if you release the button outside
19753           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
19754           it as a mouse up.
19755         
19756         * ThemeWin32Classic.cs:
19757         - Draw a missing border around mdi child forms. Fixes #79844 (2).
19758
19759         * MdiClient.cs:
19760         - Added a list of forms which contains the order the forms are
19761           added to the mdi parent.
19762         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
19763         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
19764         - If the active form changes set the scrollbars to the top
19765           of the Z order, otherwise the form could hide them.
19766         - Scrollbars are now sized according to ClientSize, not 
19767           to Size, and they take into account the other scrollbar
19768           to determine maximum.
19769         
19770 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
19771         
19772         * XplatUI.cs:
19773         * XplatUIDriver.cs:
19774         * XplatUIX11.cs:
19775         * XplatUIWin32.cs:
19776         * XplatUIOSX.cs:
19777         - Added RequestAdditionalWM_NCMessages for windows to 
19778           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
19779           Currently only implemented in XplatUIWin32.
19780
19781 2006-11-27  Chris Toshok  <toshok@ximian.com>
19782
19783         * Hwnd.cs: only add the hwnd to the windows hash in
19784         set_WholeWindow and set_ClientWindow if whole_window/client_window
19785         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
19786
19787 2006-11-27  Mike Kestner  <mkestner@novell.com>
19788
19789         * ComboBox.cs: remove redundant OnDropDown call.  It is called
19790         from the ComboListBox.ShowWindow code. Fixes #79969.
19791
19792 2006-11-27  Chris Toshok  <toshok@ximian.com>
19793
19794         * Hwnd.cs: remove the setters for ExposePending and
19795         NCExposePending - noone uses them.
19796
19797 2006-11-27  Jackson Harper  <jackson@ximian.com>
19798
19799         * TextControl.cs: new param for ReplaceSelection which determines
19800         whether we select the new selection, or set the cursor to the end
19801         of the new selection.
19802         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
19803         pasting, select the new text.
19804         * RichTextBox.cs: Use new param for ReplaceSelection.
19805
19806 2006-11-27  Jackson Harper  <jackson@ximian.com>
19807
19808         * TextBoxBase.cs: Set the selection to the caret after the caret
19809         is moved, otherwise they get out of sync.
19810
19811 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
19812
19813         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
19814         it fixes #80015
19815
19816 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
19817
19818         * ThemeWin32Classic.cs: 
19819         - Fix toolbar drop down arrow position.
19820         - Fix drop down appearance when ToolBar.Appearance is normal,
19821         it fixes #80018.
19822         
19823 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
19824
19825         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
19826         * Control.cs: Same.
19827         * UpDownBase.cs: Same.
19828         * ButtonBase.cs: Same.
19829         * ScrollBar.cs: Same.
19830         * TrackBar.cs: Same.
19831         * PictureBox.cs: Same.
19832         * UserControl.cs: Same.
19833         * Label.cs: Same.
19834         * ListControl.cs: Same.
19835         * TextBoxBase.cs: Same.
19836         * ListView.cs: Same.
19837         * RichTextBox.cs: Same.
19838         * TreeView.cs: Same.
19839
19840 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
19841
19842         * PrintDialog.cs:
19843         - Text label for where 
19844         - Text label comment was not shown
19845
19846 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
19847
19848         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
19849
19850 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19851
19852         * InternalWindowManager.cs: 
19853         - Handle WM_PARENTNOTIFY to activate the form
19854         if any child control is clicked.
19855         - The form is only sizable if not minimized.
19856
19857         * MdiWindowManager.cs:
19858         - Save the IconicBounds if the form is moved.
19859         - Rework SetWindowState, now the window bounds 
19860         are stored only if the old window state is Normal.
19861         
19862         * MdiClient.cs:
19863         - In SetWindowStates store the old window state if 
19864         the window is maximized and restore window state if
19865         the window looses focus.
19866         - Don't handle any scrollbar value changes if 
19867         initializing the scroll bars. Fixes #79771.
19868         - Reworked ArrangeIconicWindows. Current algorithm
19869         tests bounds agains all other minimized windows, if
19870         any intersections create new bounds (going left to 
19871         right, bottom to top) and then test again. When 
19872         successful the bounds are saved and never computed
19873         again. Fixes #79774.
19874
19875 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19876
19877         * InternalWindowManager.cs: Added HandleTitleBarUp.
19878
19879 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19880
19881         * NumericUpDown.cs: In .NET 1.1, user entered text is still
19882         hexadecimal in ParseUserEdit.
19883
19884         
19885 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19886
19887         * MdiWindowManager.cs: 
19888         - Handle a click on the form's icon to show the 
19889         system menu (when maximized). Fixes #79775.
19890         - Change the existing click handler for the form's
19891         icon when not maximized to show on MouseUp.
19892         Fixes #79776.
19893
19894         * Form.cs: In OnResize only layout the mdi child's
19895         parent if it actually has a parent. Might not if
19896         the window is closing.
19897
19898
19899 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19900
19901         * MdiClient.cs: Ignore active MDI client for text of parent, if
19902         child has no text set.
19903
19904 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19905
19906         * ToolBar.cs: Fixed ToString to match MS.
19907
19908 2006-11-22  Andreia Gaita  <avidigal@novell.com>
19909
19910         * NumericUpDown: 
19911         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
19912         update inner values on set. Fixes #79966.
19913         - Override OnLostFocus to update value on NET 2. Fixes #79950.
19914         - Fix hexadecimal parsing.
19915         
19916         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
19917         parent. Fixes #79957
19918
19919 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19920
19921         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
19922         the actual size has to be queried, since if height /
19923         width is negative Win32 changes it to 0. 
19924         Fixes #79999 on Windows.
19925         
19926         * XplatUIX11.cs: Set height / width to 0 if negative
19927         in SetWindowPos. Fixes #79999 on Linux.
19928         
19929 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
19930
19931         * ThemeWin32Classic.cs: Fix text redenring when button is
19932         pressed.
19933
19934 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
19935
19936         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
19937         and later navigate by mouse. Fixes #79528.
19938
19939 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
19940
19941         * ToolBar.cs: Set default value for TabStop to false in
19942         constructor, it fixes remaining behavior of bug #79863.
19943
19944 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19945
19946         * MdiWindowManager.cs:
19947         * InternalWindowManager.cs:
19948         - Moved a few methods specific to Mdi from 
19949         InternalWindowManager to MdiWindowManager.
19950         Fixes #79996.
19951         
19952 2006-11-21  Chris Toshok  <toshok@ximian.com>
19953
19954         * XplatUIOSX.cs: stub out InvalidateNC.
19955
19956         * XplatUIWin32.cs: implement InvalidateNC using the call I found
19957         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
19958
19959         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
19960
19961         * XplatUIDriver.cs: add InvalidateNC abstract method.
19962
19963         * XplatUI.cs: add InvalidateNC.
19964
19965 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
19966
19967         * ToolBar.cs: Invalidate complete button area when pressed status 
19968         was changed.
19969         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
19970         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
19971         by 1 when button is pressed.
19972
19973 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19974
19975         * ToolButton.cs: Invalidate middle of DropDown button when
19976         ToolBar theres DropDownArrows.
19977         * ThemeWin32Classic.cs: Change position of DropDown arrow and
19978         fix DropDown drawing operations.
19979
19980 2006-11-20  Chris Toshok  <toshok@ximian.com>
19981
19982         * NativeWindow.cs: fix the formatting of functions ('{' on the
19983         following line), and enable the thread exception dialog.
19984
19985         * Application.cs: remove the duplicate exception catching from
19986         here.
19987
19988 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19989
19990         * Toolbar.cs: Triggers button click event when click on icon
19991         of dropdown ToolBarButton. Fixes #79912.
19992         
19993 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19994
19995         * Theme.cs:
19996         * ThemeWin32Classic.cs:
19997         - Added a property WindowBorderFont to enable themeing
19998           of mdi child windows' Text.
19999           
20000 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20001
20002         * InternalWindowManager.cs:
20003         * Form.cs:
20004         * MdiClient.cs:
20005         * MdiWindowManager.cs: 
20006         - If mdi child is maximized, set mdi parent's
20007           text to "Parent - [Child]". Fixes #79770.
20008         - If there is any maximized mdi child windows, only the active 
20009           window (and any new windows) is maximized, the rest are normal.
20010         - On a WindowState change only save mdi child's window bounds 
20011           if the old window state was normal. Fixes #79774.
20012         - The scroll bars are now calculated on hopefully all
20013           necessary events. Fixed #79771 / #79844->6 / #79906.
20014         - MdiClient.SizeScrollBars() now takes into account docked 
20015           controls in the parent when calculating available space.
20016         - InternalWindowManager now always repaints the entire title
20017           area. Fixes #79844->1/4/5.
20018         - Added RequestNCRecalc on mdi child windowstate changes.
20019           Fixes #79772.
20020
20021 2006-11-20  Mike Kestner  <mkestner@novell.com>
20022
20023         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20024         in the MouseUp handler of the listbox and move the return handling
20025         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
20026
20027 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20028
20029         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
20030
20031 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20032
20033         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20034           working in 1.2.x anymore. So, updated.
20035
20036 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
20037
20038         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20039         NumberGroupSeparator of current culture instead of assuming en-US.
20040         Fixed bug #79967.
20041
20042 2006-11-17  Mike Kestner  <mkestner@novell.com>
20043
20044         * Control.cs: Add the concept of implicit bounds setting so that
20045         dock/undock round trips preserve explicitly set size/locations.
20046         Fixes #79313.
20047
20048 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20049
20050         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20051           can't handle those filters. (Fixes bug #79961)
20052
20053 2006-11-17  Chris Toshok  <toshok@ximian.com>
20054
20055         [ fixes the exit/crashes associated with #79835.  it's clearly
20056         suboptimal though, we need to figure out a better way to solve
20057         this. ]
20058         
20059         * PrintPreviewControl.cs: deal with the new invalid printer
20060         exceptions.
20061
20062         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20063         and return false (so CommonDialog.ShowDialog doesn't actually show
20064         the form.)
20065
20066         * PrintDialog.cs: enable/disable the Ok button depending on
20067         whether or not the printer is valid.
20068
20069         * CommonDialog.cs (ShowDialog): only actually show the form if
20070         RunDialog returns true.
20071
20072 2006-11-17  Jackson Harper  <jackson@ximian.com>
20073
20074         * TextControl.cs: When soft splitting a line, mark it as a soft
20075         split line. Also carry over the current line break to the next
20076         line.
20077
20078 2006-11-17  Chris Toshok  <toshok@ximian.com>
20079
20080         * XplatUIX11.cs: when scrolling a window with an invalid area, we
20081         only want to shift the part of the invalid area that overlaps the
20082         area we're scrolling.  we also don't want to clear the invalid
20083         area unless the invalid area was entirely contained within the
20084         scrolling area.
20085
20086 2006-11-16  Chris Toshok  <toshok@ximian.com>
20087
20088         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20089         also make sure to free the memory returned by XGetWindowProperty
20090         in GetText().
20091
20092         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20093
20094 2006-11-16  Chris Toshok  <toshok@ximian.com>
20095
20096         * XplatUI.cs: add a new super secret way to get at the totally
20097         unsupported X11 backend.
20098
20099 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
20100
20101         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20102
20103 2006-11-16  Jackson Harper  <jackson@ximian.com>
20104
20105         * TreeView.cs: Allow more explicit setting of top node position
20106         for scrollbars. Slower algo, but more accurate.
20107         - CollapseAll should maintain the current top node.
20108         * TextBoxBase.cs: When positioning the caret, use the line, pos
20109         method, since the x, y method does not grab the correct tag, and
20110         the caret height never gets set correctly. (Maybe I should just do
20111         away with the caret having its own height, and always use the
20112         carets current tag for height).
20113
20114 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
20115
20116         [Fixes 79778, 79923]
20117
20118         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20119         Parent to the FosterParent instead.
20120
20121 2006-11-16  Jackson Harper  <jackson@ximian.com>
20122
20123         * TreeView.cs: Need to recalc the topnode when we expand or
20124         collapse. The scrolling methods can't handle this on their own,
20125         since they use differences between the last scroll position, and
20126         those difference get completely messed up since we are expanding
20127         nodes.  This problem should probably be fixed in the scrolling
20128         methods, so they can figure out exactly where they are, but this
20129         will slow things down a little.
20130         * ThemeWin32Classic.cs: Special case for groupboxes with empty
20131         strings, makes nunit-gui look a lot nicer.
20132
20133 2006-11-16  Chris Toshok  <toshok@ximian.com>
20134
20135         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
20136         the broken multithreaded event handling we have in here.  File
20137         this entry under "Why we should move to the new X11 backend".
20138
20139         Any thread can make it into UpdateMessageQueue, which gets events
20140         from the X socket - some of which could belong to hwnds being
20141         managed by a different thread.  We can also have multiple threads
20142         in UpdateMessageQueue at the same time, with each one reading from
20143         the X socket.  This leads to many problems, with the following
20144         solutions:
20145
20146         We can't use hwnd.Queue.Enqueue anywhere in here and must use
20147         EnqueueLocked.
20148
20149         The MotionNotify compression we do can't work across threads
20150         (without locking the entire queue, perhaps) since we call
20151         hwnd.Queue.Peek, so we just punt and don't compress motion events
20152         unless the owning thread is the one which got the X event.
20153
20154         ConfigureNotify is another fun one, since it modifies the hwnd's
20155         bounds and then enqueues the event.  We add a lock to Hwnd which
20156         is held when setting configure_pending to true (and enqueuing the
20157         event).
20158
20159         There is a race wrt the wake socket.  we need to make sure that
20160         only 1 thread is waiting on that socket, or else a thread could
20161         sleep waiting for data that never comes.  It's difficult (but not
20162         impossible) to make happen, because it seems to require something
20163         like the following:
20164
20165             1. Thread 1 polls on wake_receive
20166         
20167             2. poll returns saying there's data to be read on
20168                wake_receive.
20169         
20170             3. Thread 2 polls on wake_receive and immediately returns
20171                saying there's data to be read.
20172
20173             4. Thread 2 reads the wakeup byte from wake_receive
20174
20175             5. Thread 1 attempts to read the wakeup byte from
20176                wake_receive.
20177
20178             6. Thread 2 exits (due to a form closing, perhaps).
20179
20180             7. Thread 1 blocks forever.
20181         
20182         Fun, eh?
20183
20184         Fixing the Expose handling isn't done yet, and the races inherent
20185         in that piece of code are responsible for the drawing mistakes you
20186         see when generating expose events in a MT app (like NPlot).  This
20187         one is the likely to be the hardest to bandaid, and it doesn't
20188         appear to cause anything but drawing problems.  The other issues
20189         caused apps to exit or hang.
20190
20191         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
20192         called from a different thread than the one that should be calling
20193         these functions.
20194
20195         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
20196
20197 2006-11-15  Chris Toshok  <toshok@ximian.com>
20198
20199         * Application.cs: null out the context's MainForm when we exit
20200         RunLoop.  Fixes a newly checked in unit test as well as the last
20201         ODE from bug #79933.
20202
20203 2006-11-15  Chris Toshok  <toshok@ximian.com>
20204
20205         * Form.cs (set_Owner): allow a null value so we can clear the
20206         form's owner.
20207         (Dispose): set all our owned_form's Owner properties to null, and
20208         clear the owned_forms collection.
20209         (WM_CLOSE): clean up this a little bit.. still not right though.
20210
20211         * ApplicationContext.cs: OnMainFormClosed should only call
20212         ExitThreadCore if the main form isn't recreating.  Fixes unit
20213         test.
20214
20215 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20216
20217         [Fixes 78346]
20218
20219         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
20220
20221 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20222
20223         [Fixes 79433]
20224
20225         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
20226         keep popup window types from stealing focus from the main form
20227         on Windows.
20228
20229         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
20230
20231         * MenuAPI.cs: Set above flag to true.
20232
20233 2006-11-15  Chris Toshok  <toshok@ximian.com>
20234
20235         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
20236         the button being released is not in wParam.
20237
20238 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20239
20240         * Form.cs: Add the released button to MouseEventArgs.Button
20241         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
20242         on Win32.
20243
20244 2006-11-15  Chris Toshok  <toshok@ximian.com>
20245
20246         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
20247         GetText().  untested because it's unused in our implementation.
20248         Control.Text always caches the text, even if
20249         ControlStyles.CacheText is not set.
20250
20251         fixes bug #79939.
20252
20253 2006-11-15  Chris Toshok  <toshok@ximian.com>
20254
20255         [ fixes #79933 ]
20256         
20257         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
20258         message.  no hiding, no disposing.
20259
20260         in the WM_CLOSE handler, hide the form if it's modal.
20261
20262 2006-11-15  Chris Toshok  <toshok@ximian.com>
20263
20264         * XplatUIX11.cs: use AddExpose instead of sending a message.
20265         fixes textbox border drawing.
20266
20267 2006-11-15  Chris Toshok  <toshok@ximian.com>
20268
20269         * PropertyGridView.cs: keep from crashing on mouse move/down when
20270         the property grid is empty.
20271
20272 2006-11-14  Jackson Harper  <jackson@ximian.com>
20273
20274         * TextControl.cs: Make PageUp and PageDown more like the MS
20275         versions.
20276         * TextBoxBase.cs: When we set the text property position the
20277         cursor at the beginning of the document.
20278
20279 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20280
20281         * Form.cs: if a mdi child's WindowState has changed
20282         before it's creation, it would display wrong control
20283         buttons.
20284         
20285 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
20286
20287         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
20288           (Fixes bug #79927)
20289
20290 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
20291
20292         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
20293         the window gets to paint its borders even if the window is
20294         getting smaller.
20295         
20296         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
20297         otherwise the old control buttons would still be painted 
20298         if the window gets bigger.
20299         
20300         * PaintEventArgs.cs: add an internal method so that the clip 
20301         rectangle can be changed.
20302         
20303 2006-11-13  Chris Toshok  <toshok@ximian.com>
20304
20305         [ fixes bug #79745 ]
20306         
20307         * NotifyIcon.cs: lots of cleanup.
20308
20309         * X11Structs.cs: add an enum for XEMBED messages.
20310
20311         * XplatUIX11.cs: reindent one of the giant switch statements, it
20312         was taking up an additional tab stop, and this file is already way
20313         too wide for my laptop's screen.
20314
20315         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
20316         we get it, resize the hwnd to the WMNormalHints max_width/height.
20317
20318 2006-11-13  Jackson Harper  <jackson@ximian.com>
20319
20320         * TextBoxBase.cs: Compute the value changes for the mouse wheel
20321         teh simple way.
20322
20323 2006-11-13  Chris Toshok  <toshok@ximian.com>
20324
20325         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
20326         #79898.  force a reference to the Region to stick around so the
20327         unmanaged object isn't collected (rendering our handle in the MSG
20328         stale).
20329
20330 2006-11-13  Chris Toshok  <toshok@ximian.com>
20331
20332         * XplatUIX11.cs: fix #79917 for window managers which support
20333
20334         using XStoreName on the raw utf8, and we need to convert to
20335         COMPOUND_TEXT if it's non-latin1.
20336
20337 2006-11-13  Chris Toshok  <toshok@ximian.com>
20338
20339         * Form.cs (set_DialogResult): we need to set closing to false if
20340         we're setting our result to None.  fixes bug #79908.
20341
20342 2006-11-13  Jackson Harper  <jackson@ximian.com>
20343
20344         * TextControl.cs: When formatting text, compute the adjusted tag
20345         lengths correctly, using FindTag for the end tag instead of trying
20346         to figure it out outselves.
20347         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
20348         the item, ItemHeight doesn't work, because trees with large
20349         imagelists use those for their height
20350         * TreeView.cs: ActualItemHeight factors in the image height
20351         - compute left edge of checkboxes correctly
20352         - when expanding/collapsing move the bottom down one pixel, so we
20353         aren't moving part of the node
20354
20355 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20356
20357         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
20358         stack in PaintEventStart so that it won't get disposed by the gc
20359         before reaching PaintEventEnd.
20360
20361 2006-11-13  Jackson Harper  <jackson@ximian.com>
20362
20363         * TextBoxBase.cs: Don't select the word if we are on a line with
20364         no text.
20365         - We don't need to position the caret on mouse up, since the mouse
20366         move handler should be doing this
20367         - When double clicking a blank line, the caret is advanced to the
20368         next line.
20369
20370 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
20371
20372         * TreeNodeCollection.cs: Avoid duplicating indexer code.
20373
20374 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
20375
20376         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
20377         Fixes part of bug #79910.
20378
20379 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
20380
20381         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
20382           (bug #79903). Some minor string updates to match ms.
20383
20384 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
20385
20386         * FileDialog.cs: Don't add an extension if the filename
20387           already ends with that extension.
20388
20389 2006-11-10  Jackson Harper  <jackson@ximian.com>
20390
20391         * TreeView.cs: Use the currently highlighted node for the
20392         BeforeSelect event.
20393         * TextBoxBase.cs: There is no need to expand selection on
20394         MouseMove.
20395         - CanUndo means 'is there any undo operations', not 'is undo
20396         allowed on this textcontrol. Fixed ClearUndo unit test.
20397
20398 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
20399
20400         * Button.cs: only perform click when button is Selectable (so as 
20401         not to activate default buttons when they're disabled)
20402         
20403         * Control.cs: Rewrite of the SelectNextControl and related 
20404         methods. HandleClick now selects next control if the current one
20405         is being disabled.
20406         
20407         * Form.cs: OnActivated selects next active control only if Load 
20408         has already occurred. If Load hasn't run, there's no point in 
20409         selecting here, Load might change the state of controls.
20410         
20411         * FocusTest.cs: Tests marked as working again for these fixes
20412
20413 2006-11-10  Chris Toshok  <toshok@ximian.com>
20414
20415         * XplatUIX11.cs: a couple of fixes.
20416
20417         - use XInternAtoms with almost all the atoms we need to register,
20418         instead of many, many calls to XInternAtom.  should help a bit on
20419         startup time, at the expense of making the code look a little
20420         worse.
20421
20422         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
20423         isn't reparented (which seems to be a clue that we're running fon
20424         compiz) and they have an Owner form.  This fixes the tool windows
20425         in paint.net when running under compiz.
20426
20427         - when setting the opacity of a window, support both the case
20428         where the window has been reparented and also when it hasn't been.
20429         Since compiz/beryl doesn't seem to reparent windows, and these are
20430         the only window managers which support translucency, I'm not sure
20431         why we need the hwnd.reparented case at all.. but leave it in.
20432         now we get translucent windows in paint.net under compiz/beryl.
20433
20434 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
20435
20436         * FileDialog.cs: Always return the value for FilterIndex that
20437           was set. Internally convert it to values that make sense.
20438
20439 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
20440         
20441         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
20442
20443 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
20444
20445         * Toolbar.cs: Change default value of DropDownArrows to true, the 
20446         signature still using false to make it compatible with MS but the 
20447         initial value is true. Fixes #79855.
20448
20449 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
20450
20451         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
20452           only available on Linux.
20453
20454 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
20455
20456         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
20457         reduce number of calls to redraw method during toolbar creation.
20458
20459 2006-11-09  Mike Kestner  <mkestner@novell.com>
20460
20461         * ListView.cs : raise SelectedIndexChanged when an item is selected
20462         programmatically via the Item.Selected property.  Gert's nice 
20463         ListViewSelectedIndexChanged test fixture now runs clean.
20464
20465 2006-11-09  Mike Kestner  <mkestner@novell.com>
20466
20467         * ListView.cs : raise SelectedIndexChanged when a selected item is
20468         removed from the item collection using Remove or RemoveAt.
20469
20470 2006-11-09  Mike Kestner  <mkestner@novell.com>
20471
20472         * ListView.cs : raise SelectedIndexChanged once per selected item
20473         for compat with MS.  Fixes #79849+.
20474
20475 2006-11-09  Chris Toshok  <toshok@ximian.com>
20476
20477         * TabControl.cs: initialize row_count to 0, and set it to 1 when
20478         we need to (if we have any tab pages).  Fixes unit test.
20479
20480 2006-11-09  Chris Toshok  <toshok@ximian.com>
20481
20482         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
20483         width is 0, not 3.  Fixes a unit test.
20484
20485 2006-11-09  Mike Kestner  <mkestner@novell.com>
20486
20487         * ListView.cs : use Implicit scrollbars so that focus isn't 
20488         stolen from the listview when they are clicked. Fixes #79850.
20489
20490 2006-11-09  Chris Toshok  <toshok@ximian.com>
20491
20492         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
20493         have a root item.  Fixes #79879.
20494
20495 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
20496
20497         * FileDialog.cs:
20498           - Fix ToString ()
20499           - An ArgumentException is now thrown if a wrong filter
20500             is applied (matches ms). The previous filter doesn't change
20501             anymore if an exception is thrown.
20502           - Changing the FileName property also affects FileNames
20503         * ColorDialog.cs: The length of the CustomColors array is always
20504           16. It doesn't matter if we use a smaller array or null to update
20505           or change the custom colors property.
20506         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
20507           for RootFolder if we get a undefined value.
20508
20509 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20510
20511         * StatusBarPanel.cs: 
20512         - Width is set to MinWidth if Width is smaller than
20513         MinWidth. Fixes #79842.
20514         - MinWidth now always overrides Width (MSDN says MinWidth
20515         is set to Width when AutoSize = None, but they do not 
20516         behave like that).
20517         - Style has now the the correct default value.
20518         
20519 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20520  
20521         * TrackBar.cs: 
20522         - The control is completely invalidated on 
20523         Got/LostFocus to draw the focus rectangle correctly.
20524         - When AutoSize then height is always 45 (width for 
20525         vertical controls).
20526         
20527         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
20528         on the mouse when moved and it doesn't move when grabbed
20529         until the mouse moves as well. Also fixed some wrong 
20530         calculations when clicking on the thumb (control thought
20531         click was outside of thumb and didn't grab it).
20532         Fixes some of the issues in #79718.
20533
20534 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
20535
20536         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
20537
20538 2006-11-08  Chris Toshok  <toshok@ximian.com>
20539
20540         * PropertyGridView.cs: only call ToggleValue if the item is not
20541         readonly.
20542
20543 2006-11-08  Jackson Harper  <jackson@ximian.com>
20544
20545         * TextBoxBase.cs: The RichTextBox and textbox have very different
20546         word selection methods.  Implement the textbox's simple word
20547         selection here, and let the RichTextBox override and provide it's
20548         own.
20549         - Don't do extra selection on mouseup
20550         * RichTextBox.cs: Use the documents word selection algorithm, I
20551         think ideally, this function will be pulled into the
20552         RichTextBox.cs code someday.
20553
20554 2006-11-08  Chris Toshok  <toshok@ximian.com>
20555
20556         * RootGridEntry.cs: new class to represent GridItemType.Root.
20557
20558         * CategoryGridEntry.cs: reformat, and add boilerplate.
20559         
20560         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
20561         returns the UI parent anyway, and we need special handling to
20562         implement the GetTarget method in the face of it.  Also, implement
20563         Select().
20564
20565         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
20566         a root grid item, and use that instead of PropertyGrid.grid_items.
20567         Also, make use of TypeConverters (and add limitted support for
20568         ICustomTypeDescriptors) when initially populating the grid.
20569         Arrays now show up more or less properly.
20570
20571 2006-11-08  Chris Toshok  <toshok@ximian.com>
20572
20573         * Application.cs: set the modal dialog to non modal after we close
20574         it.  Fixes bug #79866.
20575
20576 2006-11-08  Jackson Harper  <jackson@ximian.com>
20577
20578         * TextControl.cs: When combining lines carry over the line end
20579         style from the end line.
20580         - Invalidate the selected area when setting it, if it is visible.
20581         * TextBoxBase.cs: Only rich text box can do full line selects.
20582         - Make sure to set the cursor position when there is a click,
20583         otherwise two clicks in separate areas could cause a large chunk
20584         to be selected.
20585
20586 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20587
20588         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
20589         Fixes #79863.
20590
20591 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20592
20593         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
20594         time. Remove tooltips when ToolButton click events.  Fixes #79856.
20595
20596 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20597
20598         * MenuAPI.cs: Ignore right click for menu actions and fixes
20599         menu border when clicked.  Fixes #79846.
20600
20601 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20602
20603         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
20604         MouseState after create wParam for message, this fixes mouse button 
20605         equal none in mouse up events.
20606         
20607 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
20608
20609         * Control.cs : Focus() now calls Select to set the Container's
20610         Active Control and to give it focus. To avoid infinite recursion
20611         (because ActiveControl also calls Focus at one point), a check 
20612         is made in Focus with the help of a new internal variable
20613         is_focusing.
20614
20615 2006-11-07  Mike Kestner  <mkestner@novell.com>
20616
20617         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
20618         if there's a selection.  Fixes #79849.
20619
20620 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
20621
20622         * PropertyGrid.cs: Avoid fixed height of help description label.
20623         Fixes part of bug #79829.
20624
20625 2006-11-07  Chris Toshok  <toshok@ximian.com>
20626
20627         * XplatUIX11.cs: fix #79790 again, by using the
20628         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
20629
20630 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20631
20632         * ToolBar.cs: Fix left click checking.
20633
20634 2006-11-07  Chris Toshok  <toshok@ximian.com>
20635
20636         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
20637
20638 2006-11-07  Chris Toshok  <toshok@ximian.com>
20639
20640         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
20641         PropertyManager unit tests.
20642
20643         * PropertyManager.cs: make property_name internal.
20644
20645 2006-11-07  Chris Toshok  <toshok@ximian.com>
20646
20647         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
20648         pass a unit test.  Also, don't set image_index to anything in
20649         response to setting the ImageList property.
20650
20651 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20652
20653         * ToolBar.cs: Ignore click events when mouse button is not a
20654         left button, only accepts other button for dropdown menus.  
20655         Fixes #79854.
20656
20657 2006-11-07  Chris Toshok  <toshok@ximian.com>
20658
20659         * DataGrid.cs: make the back and parent row buttons a little less
20660         ugly.
20661
20662 2006-11-07  Jackson Harper  <jackson@ximian.com>
20663
20664         * TextBoxBase.cs: When converting to Text don't put line breaks in
20665         for soft line breaks.
20666         * TextControl.cs: There is an initial "fake" line in the document,
20667         this is now a soft break line, so that an extra line feed doesn't
20668         get added to the end of documents.
20669
20670 2006-11-07  Chris Toshok  <toshok@ximian.com>
20671
20672         [ fix bug #79778 ]
20673         
20674         * CurrencyManager.cs: if the list is readonly, don't bother
20675         checking if IBindingList.AllowNew is true.
20676
20677         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
20678         for non-DataRowView datasources..  or rather, make it not crash.
20679         (DataGridPaintRelationRow): make sure we limit the row painting to
20680         the area not covered by the row header, and make our cell width at
20681         least large enough to cover the relation area.  This allows grids
20682         that have relations but no rows to render correctly.
20683         (DataGridPaintRowContents): same type of changes here.
20684         (SetDataSource): move back to always calling
20685         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
20686         navigating back through relations.
20687         (HitTest): handle the case where we have no cells but have
20688         relations.  Right now we generate a hit in cell 0 of whatever the
20689         row is, not sure if this is strictly correct, but it works for our
20690         purposes.
20691         
20692         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
20693         bother doing anything.
20694
20695 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
20696
20697         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
20698         early version of StatusStrip.  Not responsible for eaten
20699         application or firstborn children.
20700
20701 2006-11-06  Chris Toshok  <toshok@ximian.com>
20702
20703         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
20704         call GetTabRect with a -1 index.  Fixes #79847.
20705
20706 2006-11-06  Jackson Harper  <jackson@ximian.com>
20707
20708         * TreeNodeCollection.cs: Update scrollbars after clearing.
20709
20710 2006-11-06  Chris Toshok  <toshok@ximian.com>
20711
20712         * NumericUpDown.cs: fix the ToString method for some unit test
20713         love.
20714
20715 2006-11-06  Chris Toshok  <toshok@ximian.com>
20716
20717         * PropertyGrid.cs:
20718         - set the initial SelectedGridItem if we can.
20719
20720         - Exclude non-mergable properties only if we're merging > 1
20721         object.  Merging 1 object isn't really merging, obviously.
20722
20723         - Handle PropertySort.NoSort just like Alphabetical, which is
20724         wrong of course, but at least gets things on the screen.
20725         
20726         * PropertyGridView.cs:
20727         - Add method "FindFirstItem" which finds the first property grid
20728         item, so we can select it by default.
20729
20730         - make use of GridEntry.CanResetValue.
20731
20732         - Don't call RedrawBelowItemOnExpansion here anymore, the
20733         individual GridEntry's will do that.
20734
20735         - Remove the ITypeDescriptorContextImpl internal class.
20736         
20737         * GridEntry.cs:
20738         - this class needs to implement ITypeDescriptorContext, as it's
20739         what MS's PropertyDescriptorGridEntry does, which means we can
20740         remove the ITypeDescriptorContextImpl internal class from
20741         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
20742
20743         - keep a reference to our PropertyGridView, and move the call to
20744         RedrawBelowItemOnExpansion here from PGV.  This means
20745         programmaticly setting Expanded actually does something visible.
20746
20747         - add a CanResetValue() function which takes into account our
20748         possibly multiple "selected_objects" in the merged case.  Shifting
20749         PropertyGridView to use this method fixes another unreported
20750         crasher found running the test for #79829.
20751
20752         - when Top or Bounds is updated, make sure the PropertyGridTextBox
20753         is updated to reflect this.
20754
20755         * CategoryGridEntry.cs: the ctor takes the PGV now.
20756         
20757 2006-11-06  Jackson Harper  <jackson@ximian.com>
20758
20759         * TextControl.cs: These are 1 based.
20760         * TextBoxBase.cs: When setting the selected text, don't change the
20761         selected text tags, this is done by ReplaceText, just position the
20762         cursor at the end of the new text.
20763
20764 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
20765
20766         * ListView.cs: Allow label edit only when, when LabelEdit is
20767           set to true.
20768
20769 2006-11-06  Jackson Harper  <jackson@ximian.com>
20770
20771         * TextControl.cs: If a suitable wrapping position isn't found,
20772         just wrap right in the middle of a word.
20773
20774 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
20775
20776         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
20777           bug #79820.
20778
20779 2006-11-06  Jackson Harper  <jackson@ximian.com>
20780
20781         * TreeView.cs: Can't use the VisibleCount property when setting
20782         scrollbar heights, because this doesn't take into account whether
20783         or not the horz scrollbar just came visible.
20784
20785 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
20786
20787         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
20788         activated.  Fixes #79369, #79832.
20789
20790 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
20791
20792         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
20793           had to remove support for links that point to a directory. FileInfo
20794           returns no usefull information (means, the directory they point to)
20795           for such links. Replaced some empty string ("") with String.Empty.
20796
20797 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
20798
20799         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
20800         NullReferenceException when attempting to remove node that is not in
20801         collection. Throw NullReferenceException when null is passed to 
20802         Remove. Allow first element of the collection to be removed. Fixes
20803         bug #79831.  In GetEnumerator ().Current return null if positioned 
20804         before the first element of the collection. In GetEnumerator ().Reset,
20805         position before first element of the collection.
20806
20807 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
20808
20809         * PropertyGrid.cs: To match MS, remove default title and description
20810         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
20811         buttons.
20812
20813 2006-11-04  Chris Toshok  <toshok@ximian.com>
20814
20815         * Theme.cs: add a Clamp method, just for kicks.
20816
20817         * ThemeWin32Classic.cs: clamp all color components to [0..255].
20818
20819 2006-11-04  Chris Toshok  <toshok@ximian.com>
20820
20821         * Form.cs: if the form isn't visible, Close() does nothing.
20822
20823 2006-11-03  Chris Toshok  <toshok@ximian.com>
20824
20825         * Form.cs (Close): if the form is modal, don't Dispose of it, only
20826         Hide it.
20827         (WndProc): don't Dispose after handling the WM_CLOSE message.
20828
20829         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
20830         them as such, instead of using casts from Control to Form.  Also,
20831         don't Dispose of the modal dialog when we fall out of the loop -
20832         Close() it instead.
20833
20834         fixes bug #79813.
20835
20836 2006-11-03  Chris Toshok  <toshok@ximian.com>
20837
20838         * Control.cs (Dispose): only go through the dispose thing if we're
20839         @disposing, and we haven't already been disposed.  Fixes bug
20840         #79814.
20841
20842         * Form.cs: no reason to call "base.Dispose()" here instead of
20843         "Dispose()".
20844
20845 2006-11-03  Mike Kestner  <mkestner@novell.com>
20846
20847         * ComboBox.cs : use ToString instead of casts in AddItem for
20848         sorting functionality.  Fixes #79812.
20849
20850 2006-11-03  Chris Toshok  <toshok@ximian.com>
20851
20852         * Application.cs: pave the way for actually using the thread
20853         exception dialog.  it's ifdefed out at the moment.
20854
20855 2006-11-03  Chris Toshok  <toshok@ximian.com>
20856
20857         * ThreadExceptionDialog.cs: until we get a better layout, actually
20858         hide the details textbox and label when we shouldn't see them.
20859
20860 2006-11-03  Jackson Harper  <jackson@ximian.com>
20861
20862         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
20863         multiline textboxes anymore.  This method also determines the
20864         width/height of a textboxes canvas area.
20865         - Sorta a revert of the last patch.  For multiline just position
20866         the controls, then bail.  This way the scrollbar width won't be
20867         altered.
20868
20869 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
20870
20871         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
20872         it dont need.  Fixes #79537.
20873
20874 2006-11-02  Jackson Harper  <jackson@ximian.com>
20875
20876         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
20877         send the status after firing the DndOver event.
20878
20879 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20880
20881         * TrackBar.cs: Now orientation only switches height / width if
20882         the control's handle is created (Win32 does it like this). Also 
20883         fixed a typo in ToString() for a test to pass, changed the 
20884         exception thrown in set_LargeChange and set_SmallChange to 
20885         match Win32 behaviour, and added TrackBar tests to the unit 
20886         tests.
20887
20888 2006-11-02  Chris Toshok  <toshok@ximian.com>
20889
20890         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
20891         not _NET_WM_STATE_NO_TASKBAR.
20892
20893 2006-11-02  Jackson Harper  <jackson@ximian.com>
20894
20895         * TextControl.cs: Increment count by one, since in the update view
20896         count - 1 is used.
20897
20898 2006-11-02  Jackson Harper  <jackson@ximian.com>
20899
20900         * TextBoxBase.cs: Use client rectangle not bounds for checking if
20901         the mouse is in the client rectangle (duh).
20902
20903 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20904         
20905         * TrackBar.cs: Fixed trackbar jumping around when clicking
20906         on it - the trackbar was not detecting correctly at which
20907         side of the thumb the click was done. (fixes #79718)
20908
20909 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
20910
20911         * ListBox.cs: scroll visible area when change SelectedIndex to
20912         a non visible area.  Fixes #79481.
20913
20914 2006-11-01  Jackson Harper  <jackson@ximian.com>
20915
20916         * TextControl.cs: When replacing the selection move the selection
20917         start/end/anchor to the end of the new text.
20918
20919 2006-11-01  Jackson Harper  <jackson@ximian.com>
20920
20921         * XplatUIWin32.cs: When setting the parent change the controls
20922         visibility to it's visibility flag, not to it's old parents
20923         visibility (.Visible walks the parent chain).
20924
20925 2006-11-01  Chris Toshok  <toshok@ximian.com>
20926
20927         * XplatUIX11.cs: revert the #79790 fix, as the simple.
20928         XSetTransientForHint fix breaks paint .net's tool windows.  more
20929         work needed for that one.
20930
20931 2006-11-01  Chris Toshok  <toshok@ximian.com>
20932
20933         * ScrollBar.cs: throw ArgumentException instead of Exception in
20934         LargeChange/SmallChange setters.  fixes unit tests.
20935
20936 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
20937
20938         * ContainerControl.cs: reverted rev.67183 (which was itself
20939         a reversion of rev.66853... eh).
20940         
20941         * Control.cs: Fixes Reflector hang by changing Focus() call
20942         to what it was before rev.66643 (calling Select() here sets 
20943         ActiveControl, which in some situations calls back Focus and 
20944         eventually does a stack overflow). Temp fix.    
20945         Changes to GetNextControl() to not look for children to select when
20946         parent cannot be selectable (so it looks for siblings instead)  
20947         
20948 2006-10-31  Mike Kestner  <mkestner@novell.com>
20949
20950         * CheckedListBox.cs : off by one error in returned index from
20951         ObjectCollection.Add.  Fixes #79758.
20952
20953 2006-10-31  Chris Toshok  <toshok@ximian.com>
20954
20955         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
20956         calls for the textbox/spinner, to keep from recursing to the point
20957         where we crash.  Fixes #79760.
20958
20959 2006-10-31  Chris Toshok  <toshok@ximian.com>
20960
20961         * ListControl.cs (set_SelectedValue): don't throw exceptions on
20962         null/"" value, just return.  matches ms's behavior and fixes some
20963         failing tests.
20964
20965 2006-10-31  Chris Toshok  <toshok@ximian.com>
20966
20967         * Control.cs (set_Capture): make a logic a little easier to
20968         follow.
20969
20970         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
20971         if it's being destroyed.  A necessary fix surely, but a bandaid
20972         also, to fix the stuck capture problem in bug #78413.
20973
20974 2006-10-31  Chris Toshok  <toshok@ximian.com>
20975
20976         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
20977         convention of clearing hwnd.ClientRect when we set the
20978         width/height (so it'll be recalculated by Hwnd).
20979
20980 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
20981
20982         * ContainerControl.cs: reversed Contains check from
20983         ActiveControl due to hanging problems. This fix
20984         partly regresses #79667 (button does not have
20985         initial focus), so this might be a symptom for 
20986         a larger parenting problem (set_ActiveControl
20987         is being called but the child control does
20988         not have the parent set yet?)   
20989         
20990 2006-10-31  Mike Kestner  <mkestner@novell.com>
20991
20992         * MenuAPI.cs : fix keynav when menu is click activated.
20993
20994 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
20995
20996         * ToolStrip*: Version 0.2.
20997
20998         * MenuStrip.cs: Version 0.1.
20999
21000         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21001
21002 2006-10-30  Chris Toshok  <toshok@ximian.com>
21003
21004         [ fixes the oversized notify icon issue in bug #79745 ]
21005         
21006         * NotifyIcon.cs: scale the icon down to the size we're given by
21007         the XplatUI layer (this would be faster if we did it once instead
21008         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
21009         since it's never invoked.
21010
21011         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21012         pixels high by default, so let's hardcode our systray icon to that
21013         size.  The SYSTEM_TRAY protocol should really have a way for
21014         client apps to query for the correct icon size.. but oh well.  A
21015         couple of patches to deal with the screwy client_window ==
21016         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21017         instance, and also make sure we don't XSelectInput twice).
21018
21019 2006-10-30  Chris Toshok  <toshok@ximian.com>
21020
21021         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21022         recreating forms.  Control recreation is the bane of my existence.
21023         Fix it in a way that keeps everyone happy.
21024
21025 2006-10-30  Chris Toshok  <toshok@ximian.com>
21026
21027         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21028         just non-CHILD ones.  otherwise sometimes scrollbars end up with
21029         client_windows not being resized to the proper size (ReportBuilder
21030         shows this extremely well).
21031
21032 2006-10-30  Chris Toshok  <toshok@ximian.com>
21033
21034         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21035         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
21036         showing up in the gnome taskbar.  Fixes bug #79790.
21037
21038 2006-10-30  Chris Toshok  <toshok@ximian.com>
21039
21040         * ApplicationContext.cs: guard against a NRE.
21041
21042         * Application.cs: null out the old MainForm for the context, so we
21043         don't try to use it again once it's disposed.  Fixes bug #79783.
21044
21045 2006-10-30  Chris Toshok  <toshok@ximian.com>
21046
21047         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21048         BindingContext, set the data source directly, otherwise do the
21049         lazy approach - the actual ListManager will be created when we get
21050         a BindingContext. Fixes bug #79700.
21051
21052 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21053
21054         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21055           XplatUIX11.cs: Remove old 2 parameter SetVisible.
21056
21057         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21058
21059 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21060
21061         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21062         of SetVisible that allows a window to be shown, but not activated.
21063         This is needed on Windows for MenuStrip, and can probably be used
21064         with MainMenu and ComboBox to fix the focus stealing issues on
21065         Windows.
21066
21067         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21068
21069 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
21070
21071         * PictureBox.cs: Fix the output of the ToString method.
21072
21073 2006-10-29  Chris Toshok  <toshok@ximian.com>
21074
21075         * Control.cs (get_TopLevelControl): fix bug #79781.
21076
21077 2006-10-29  Chris Toshok  <toshok@ximian.com>
21078
21079         * ListControl.cs (set_DataSource): throw Exception here, not
21080         ArgumentException, to match MS behavior.
21081
21082 2006-10-29  Chris Toshok  <toshok@ximian.com>
21083
21084         * Form.cs: remove the try-catch's around calls to GetWindowState.
21085         We can just check the return value.
21086
21087         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21088         Instead return -1.
21089
21090         * XplatUI.cs: Add note about additional return value for
21091         GetWindowState.
21092
21093 2006-10-29  Chris Toshok  <toshok@ximian.com>
21094
21095         * Control.cs (CreateHandle): when we create our handle, we also
21096         create the handles of our child controls.  Fixes one of the
21097         Control unit tests (CH11).
21098
21099 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21100
21101         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21102
21103 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21104
21105         * ThemeClearlooks.cs: A little speedup.
21106
21107 2006-10-27  Chris Toshok  <toshok@ximian.com>
21108
21109         * Control.cs: implement Control.FromChildHandle in a way that
21110         matches the docs (and fixes the failed test.)
21111
21112 2006-10-27  Chris Toshok  <toshok@ximian.com>
21113
21114         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21115         comments).
21116
21117         * DataGrid.cs: implement ResetForeColor such that the tests
21118         succeed.
21119         
21120 2006-10-27  Chris Toshok  <toshok@ximian.com>
21121
21122         * ToolBarButton.cs: setting text/tooltiptext to null results in it
21123         being set to "".  Fixes bug #79759.
21124
21125 2006-10-27  Jackson Harper  <jackson@ximian.com>
21126
21127         * TextControl.cs: We need to clear the entire selection area when
21128         setting the start, otherwise multiline selections are still
21129         visible.
21130
21131 2006-10-26  Chris Toshok  <toshok@ximian.com>
21132
21133         * PropertyGridView.cs: 
21134
21135         - ifdef all the code specific to the double
21136         buffer case, and provide some alternatives in the non-doublebuffer
21137         code, which makes heavy use of XplatUI.ScrollWindow to move things
21138         around without having to invalidate (and cause flicker).  There
21139         are still some drawing problems in the non-doublebuffered case, so
21140         DOUBLEBUFFER is defined by default.
21141
21142         - Fix the way dropdowns are handled.  now we explicitly watch for
21143         the events which might cause the dropdown to close, and break out
21144         of the nested event loop there.  This gets rid of all Capture
21145         code, at the expense of the Msg special casing.  Seems to work,
21146         though, and fixes bug #79743.
21147
21148 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
21149         * Control.cs: SetIsRecreating now recreates implicitly added
21150         child controls as well. Finally fixes #79629. The flag passed to 
21151         SetIsRecreating has also been removed since it wasn't used.
21152         
21153 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21154
21155         * PageSetupDialog.cs: Clean some code, fix some bits, 
21156         add some checks, and add a printer sub-dialog.
21157
21158 2006-10-26  Chris Toshok  <toshok@ximian.com>
21159
21160         * PropertyGrid.cs: make set_SelectedObject call
21161         set_SelectedObjects, and move the duplicate logic to the
21162         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
21163
21164         * PropertyGridView.cs: hide the textbox when we get a
21165         SelectedObjectsChanged event.
21166
21167         Fixes bug #79748.
21168
21169 2006-10-26  Chris Toshok  <toshok@ximian.com>
21170
21171         * PropertyGridView.cs: deal with the type converter not supporting
21172         GetStandardValues() or GetStandardValues() returning null, which
21173         is does in the default case.  Fixes #79742.
21174
21175 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21176
21177         * CheckedListBox.cs: nunit no longer crashes when selecting 
21178         Project/Edit menu option
21179         
21180 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21181
21182         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
21183         is no menu selected. fixes #79739
21184
21185 2006-10-25  Chris Toshok  <toshok@ximian.com>
21186
21187         * PropertyGridView.cs: factor out the splitter invalidation code
21188         into the SplitterPercent setter, and for kicks implement the
21189         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
21190         amount in either direction.
21191
21192 2006-10-25  Chris Toshok  <toshok@ximian.com>
21193
21194         * PropertyGridView.cs: do some cleanup of the brush used to draw
21195         text - read only fields should be grayed out.  not sure how to do
21196         this with the textbox, though.  but the textbox's should also be
21197         readonly now at least.  Also, hide/show the textbox when resizing
21198         the control.
21199         
21200         * CursorConverter.cs: use System.Reflection when getting the
21201         properties of Cursors, as TypeDescriptor.GetProperties isn't
21202         returning static properties.
21203
21204 2006-10-25  Chris Toshok  <toshok@ximian.com>
21205
21206         * PropertyGridView.cs: factor out the up/down handling, and reuse
21207         it for page up/down.  also add End/Home support.
21208
21209 2006-10-25  Chris Toshok  <toshok@ximian.com>
21210
21211         * PropertyGridView.cs:
21212
21213         - ensure the selected grid item is visible in the scrolled area,
21214         fixes bug #79572.
21215
21216         - fix Keys.Down handling when you're on the last item in the
21217         propertygrid.
21218
21219 2006-10-25  Mike Kestner  <mkestner@novell.com>
21220
21221         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
21222         clicks too.  Fixes #79725.
21223
21224 2006-10-24  Chris Toshok  <toshok@ximian.com>
21225
21226         * PropertyGrid.cs: use property.Converter instead of
21227         TypeDescriptor.GetConverter(property.PropertyType), so we catch
21228         TypeConverters declared on the property as well as on the
21229         PropertyType.  Fixes bug #79678.
21230
21231 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
21232
21233         * MimeIcon.cs, Mime.cs:
21234           Fallback to the default platform handler if no shared mime info
21235           stuff exists (fixes #79693).
21236
21237 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21238         * ContainerControl.cs: Incorrect contains check in ActiveControl 
21239         from previous fix (duh).
21240
21241 2006-10-20  Chris Toshok  <toshok@ximian.com>
21242
21243         * PropertyGridView.cs: the dropdown should be MIN(number of items
21244         in list, 15).  Fixes #79551.
21245
21246 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21247         Fixes #79384, #79394, #79652, #79667
21248         * Application.cs: 
21249         
21250         - Modal windows are now destroyed in the proper order for windows
21251         
21252         * ContainerControl.cs:
21253         
21254         - ActiveControl setter has more conditions on when to return:
21255                 - if we're reselecting the active control, but it actually
21256                 didn't have focus (window hidden or some such), it runs
21257                 - if the active control being selected doesn't actually 
21258                 exist in the container, it returns
21259         
21260         * Form.cs
21261         
21262         - The ShowDialog now gets the current form as the owner when
21263         invoking without parameters, and correctly activates the owner 
21264         when returning
21265         
21266         * MessageBox.cs
21267         
21268         - MessageBox now catches the Escape key to exit
21269
21270 2006-10-20  Chris Toshok  <toshok@ximian.com>
21271
21272         * PropertyGridView.cs: fix a number of issues (bug #78565, and
21273         most of bug #79676):
21274
21275         - you can navigate around the property grid with the arrow keys.
21276
21277         - the dropdown is sized properly when the pg has a vertical
21278         scrollbar.
21279
21280         - fix the indentation for subentries, and properly select the
21281         entire label rect.
21282
21283         - fix the gray bar's drawing (only draw it to the last element,
21284         not for the height of the control.  Also make sure we draw that
21285         last horizontal grid line.
21286
21287         - use the same mechanism the datagrid uses wrt the editing textbox
21288         when scrolling/resizing/etc.  Namely, we hide it first, do the
21289         operation, then show it again (if it's still visible).
21290         
21291         - aggressively remove a lot of unnecessary refreshes (and also
21292         calls to Invalidate(). call more limited variants, and only redraw
21293         what we need.)
21294         
21295         * PropertyGrid.cs:
21296
21297         - when we're populating the merged collection, fill in the UI
21298         parent with either the passed in item, or the category item we
21299         create.
21300
21301         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
21302
21303         * GridItem.cs: drop some fully qualified names.
21304         
21305         * GridEntry.cs: add a "UIParent", which is basically the parent
21306         treenode.
21307
21308         * GridItemCollection.cs: add an IndexOf method.
21309
21310 2006-10-20  Mike Kestner  <mkestner@novell.com>
21311
21312         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
21313         a working win32 NC invalidation mechanism, we can't invalidate
21314         menus.  [Fixes #79705]
21315
21316 2006-10-20  Mike Kestner  <mkestner@novell.com>
21317
21318         * ListBox.cs : don't update the VScrollbar if the list is empty,
21319         just hide it.  [Fixes #79692]
21320
21321 2006-10-20  Jackson Harper  <jackson@ximian.com>
21322
21323         * RichTextBox.cs: Handle some special chars better, and don't skip
21324         the entire group when we encounter a special char that we don't
21325         handle correctly.
21326
21327 2006-10-18  Chris Toshok  <toshok@ximian.com>
21328
21329         * PropertyGridView.cs: address a number of issues from bug #79676,
21330         mostly of the cosmetic variety.
21331
21332         - The highlight rectangle for indented items not extends all the
21333         way to the left.
21334
21335         - Indented items aren't indented so much.
21336
21337         - the dropdown is properly sized width-wise if the pg has a
21338         vertical scrollbar.
21339
21340 2006-10-18  Chris Toshok  <toshok@ximian.com>
21341
21342         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
21343         systray stuff is rather convoluted to begin with.
21344
21345         systray icons are a single window for some reason (that I haven't
21346         figured out yet), and for them, client_window == whole_window.
21347         Given the way the tests are structured elsewhere to determine
21348         which paints are pending (client vs. nc), that situation will
21349         always yield PAINT, not NCPAINT.  So, if we have a pending
21350         nc_expose and no pending expose, remove the hwnd from the paint
21351         queue, and also set nc_expose_pending to false, to keep us from
21352         blocking further expose's adding the hwnd to the paint queue.
21353
21354         phew.  like i said, a rather convoluted change.  Fixes the
21355         notifyicon repaint issues in bug #79645.
21356
21357 2006-10-18  Chris Toshok  <toshok@ximian.com>
21358
21359         * Form.cs: when getting the backcolor of the form, don't get
21360         base.BackColor, as this allows parents to influence the background
21361         color.  This breaks mdi forms.  Instead, if the background_color
21362         is empty, return the default.
21363
21364 2006-10-18  Chris Toshok  <toshok@ximian.com>
21365
21366         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
21367         to being private instead of internal static.
21368
21369         * Control.cs: remove all the stupid ParentWaitingOnRecreation
21370         crap, it wasn't working for more deeply nested controls anyway,
21371         and we already have the is_recreating flag - use that instead.
21372         Before calling DestroyHandle in RecreateHandle, recurse through
21373         the control tree setting it to true.  this returns the recreate
21374         code to much of its original simplicity, while now guaranteeing we
21375         actually recreate everything we're supposed to.  This change gets
21376         fyireporting actually showing mdi children.
21377
21378 2006-10-17  Chris Toshok  <toshok@ximian.com>
21379
21380         * Form.cs: remove some debug spew, and collapse some duplicate
21381         code at the end of SetClientSizeCore.
21382
21383         * XplatUIX11.cs: 
21384         - add some more debug spew here too wrt Destroy handling.
21385         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
21386         in Control's handling of WM_DESTROY.
21387         - Remove the handling of zombie window DestroyNotifies from the
21388         event loop - we don't need it.  Now the only DestroyNotifies we
21389         actually handle are ones generated by X.
21390         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
21391         match gtk's (functioning) handling of this. This keep metacity
21392         from leaving droppings in the form of wm borders with no window
21393         contents all over the place.
21394
21395         * Control.cs:
21396         - add a bunch of debug spew wrt control recreation.
21397         - fix a bug where we weren't tracking Visible properly on
21398         recreated hwnds.
21399         - fixed the WM_PAINT double buffer handling to support re-entrant
21400         calls (yes, i know it's gross, but it's happening to us).
21401
21402 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21403         * ThemeWin32Classic.cs: changed drawing of selected days
21404         to make them look better.
21405
21406 2006-10-16  Chris Toshok  <toshok@ximian.com>
21407
21408         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
21409         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
21410
21411         * XplatUIX11.cs: move away from using hwnd.client_dc and
21412         hwnd.non_client_dc and on to a stack of dc's (and in window's
21413         case, PAINTSTRUCT's), so we can deal with nested Paint calls
21414         without puking or not disposing of Graphics objects.
21415
21416         * XplatUIOSX.cs: same.
21417
21418         * XplatUIWin32.cs: same.
21419
21420 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
21421
21422         * FileDialog.cs: Don't call on_directory_changed inside
21423           OnSelectedIndexChanged (it changes the SelectedIndex too).
21424           Instead move it to OnSelectionChangeCommitted.
21425
21426 2006-10-13  Chris Toshok  <toshok@ximian.com>
21427
21428         * XplatUIX11.cs: more Destroy work.  the current code does the
21429         following things, in order:
21430
21431         1. Enumerates all handles of all controls at or below the one
21432         being destroyed, in pre-order.  As it is doing this, it marks the
21433         handles as zombie and clears all references to them.
21434         
21435         2. calls XDestroyWindow on the window passed in.
21436
21437         3. SendMessage's WM_DESTROY to all he handles in the accumulated
21438         list.
21439
21440 2006-10-13  Chris Toshok  <toshok@ximian.com>
21441
21442         * XplatUIX11.cs: set hwnd.zombie to true before calling
21443         SendMessage (WM_DESTROY).  this keeps us from marking the new
21444         window a zombie, and also keeps us from calling sendmessage at
21445         all.
21446
21447 2006-10-13  Jackson Harper  <jackson@ximian.com>
21448
21449         * TextControl.cs: Do not show the caret and selection at the same
21450         time.  Reduces ugliness by 35%.
21451
21452 2006-10-13  Chris Toshok  <toshok@ximian.com>
21453
21454         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
21455         zombie after we do the recursive call, so we actually do call
21456         SendMessage on the children controls.
21457         (GetMessage): if we find a pending paint event for a zombie hwnd,
21458         remove the hwnd from the paint queue, or else it will always be
21459         there (and we'll effectively loop infinitely)
21460
21461 2006-10-13  Mike Kestner  <mkestner@novell.com>
21462
21463         * MenuItem.cs : add Selected format under keynav too.
21464         Fixes #79528.
21465
21466 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
21467
21468         * PropertyGrid.cs: Fixed some NRE's and small difference between our
21469         implementation and that of MS.
21470
21471 2006-10-13  Chris Toshok  <toshok@ximian.com>
21472
21473         * Control.cs (OnInvalidated) only futz with the invalid_region if
21474         the control is double buffered.  this fixes the apparent hang in
21475         the ListView unit tests.  Someone needs to make the
21476         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
21477
21478 2006-10-13  Chris Toshok  <toshok@ximian.com>
21479
21480         * PropertyGridView.cs:
21481
21482         - do a little refactoring so that only one place calls
21483         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
21484         else call that.  Also make it Refresh, since there are redraw bugs
21485         otherwise (we should take a look at that...)
21486
21487         - do a little more refactoring work to share the body of code
21488         involved with the drop down.  it was duplicated in the code
21489         dealing with the listbox handling and in the code dealing with the
21490         UITypeEditors.
21491
21492         - add a Capture to the dropdown form's control once it's
21493         displayed, and add a MouseDown handler that checks to make sure
21494         the position is inside the control.  If it's not, close the
21495         dropdown.  This fixes #78190.
21496
21497         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
21498         if the value is different than the initial value.
21499         
21500 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
21501
21502         * Control.cs: see #78650
21503         - Fixed GetNextControl for several cases:
21504                 - Changed FindFlatForward to return 
21505                 correct sibling control when more than one
21506                 control has same TabIndex as the currently 
21507                 focused one.
21508                 - Changed FindFlatBackward to loop children
21509                 from last to first and apply same logic as in
21510                 FindFlatForward
21511                 - Changed FindControlForward to search for
21512                 children when control is not a container
21513                 but has children, or search for siblings if
21514                 control is a container...
21515                 - Changed FindControlBackward   to continue
21516                 searching for child controls when hitting 
21517                 Panel-like parents
21518                 
21519         - Fixed Focus method to update ActiveControl
21520         (FocusTest.FocusSetsActive failure)
21521         
21522         * TabControl.cs:
21523         - Focus rectangle now refreshes when gaining
21524         or losing focus
21525         - Removed grab for Tab key on IsInputKey that 
21526         was keeping tab navigation from working (#78650)
21527
21528 2006-10-13  Chris Toshok  <toshok@ximian.com>
21529
21530         * PropertyGridView.cs:
21531         - Rewrite SetPropertyValue to loop over SelectedGridItem's
21532         SelectedObjects.
21533
21534         - Deal with GridItem.Value == null a few places.
21535
21536         * PropertyGrid.cs: 
21537         - replace the PopulateGridItemCollection with a pair of methods
21538         which compute the intersection of all the properties in the
21539         SelectedObjects array.  Fixes #79615.
21540
21541         - Throw ArgumentException from set_SelectedObjects if there's a
21542         null in the array.
21543
21544         - Add GetTarget method which can be used to traverse up the
21545         GridItem.Parent chain.  It depends on the assumption that
21546         selected_objects for different GridEntries are always in the same
21547         order (a safe assumption).  Use this method and loop over all the
21548         selected objects in the entry when calling RemoveValueChanged and
21549         AddValueChanged.
21550         
21551         * GridEntry.cs: Make this handle multiple selected objects.
21552         .Value returns null if not all the selected objects share the same
21553         value.
21554
21555 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
21556         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
21557           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
21558           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
21559           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
21560           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
21561         add additional functionality.
21562
21563 2006-10-12  Mike Kestner  <mkestner@novell.com>
21564
21565         * ErrorProvider.cs : new ToolTipWindow ctor sig.
21566         * HelpProvider.cs : new ToolTipWindow ctor sig.
21567         * ToolTip.cs : remove ToolTip param from Window sig since it is
21568         not used.
21569         * ToolBar.cs : add tooltip support.  Fixes #79565.
21570
21571 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21572
21573         * ComboBox.cs: move the events in set_SelectedIndex to 
21574         after the call to HighlightIndex in order to avoid 
21575         possible recursion and subsequent problems with the call
21576         to HighlightIndex and include a range check in 
21577         set_HighlightIndex. Fixes #79588
21578         
21579 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21580
21581         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
21582         to ui thread's settings instead of sunday. 
21583         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
21584
21585 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21586
21587         * DateTimePicker.cs
21588         * MonthCalendar.cs
21589         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
21590         and implement missing functionality (selecting different parts 
21591         of the date and edit them individually with the keyboard).
21592         
21593 2006-10-11  Chris Toshok  <toshok@ximian.com>
21594
21595         * Control.cs (OnInvalidated): fix NRE relating to last change.
21596
21597 2006-10-11  Chris Toshok  <toshok@ximian.com>
21598
21599         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
21600         atoms in _NET_WM_STATE here if the window is maximized.  We need
21601         to do this because we're *replacing* the existing _NET_WM_STATE
21602         property, so those atoms will be lost otherwise, and any further
21603         call to GetWindowState will return Normal for a window which is
21604         actually maximized.  Fixes #79338.
21605
21606 2006-10-11  Jackson Harper  <jackson@ximian.com>
21607
21608         * TextControl.cs: Special case for setting selection end to
21609         selection start, we basically kill the anchor.
21610         - some todo comments.
21611
21612 2006-10-11  Chris Toshok  <toshok@ximian.com>
21613
21614         * Control.cs: switch to using an "invalid_region" to track which
21615         parts of the image buffer need updating.  This is more code than
21616         the simple fix from r66532.  That version just attempted to always
21617         fill the entire buffer on redraw, which turns out to be
21618         inefficient when invalidating small rectangles.  This version
21619         simply adds the invalid rectangle to the invalid region.  When we
21620         get any WM_PAINT message we see if it can be filled using the
21621         image buffer, and if it can't (if the paint event's clip rectangle
21622         is visible in the invalid region) we first fill the image buffer.
21623         So, the image buffer is still a cache, we just fill it lazily.
21624
21625         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
21626         need it any longer.
21627
21628 2006-10-11  Chris Toshok  <toshok@ximian.com>
21629
21630         * XplatUIX11.cs (SetWindowPos): we need to update both position as
21631         well as size after calling XMoveResizeWindow.  This keeps us from
21632         ignoring future SetWindowPos calls.  Fixes the disappearing
21633         DateTimePicker in the ToolBarDockExample from bug #72499.
21634
21635 2006-10-11  Chris Toshok  <toshok@ximian.com>
21636
21637         * TextBoxBase.cs: reorder things a bit when it comes to
21638         resizing-causing-recalculation.  we were recalculating the
21639         document when our position was changed, which shouldn't happen.
21640         We only care about size changes.  Clear up some more redundant
21641         recalculation calls while I'm at it.  This makes the toolbar dock
21642         example snappy when you're just dragging toolbars around (since it
21643         causes a relayout whenever you move one.)
21644
21645 2006-10-11  Chris Toshok  <toshok@ximian.com>
21646
21647         * ToolBarButton.cs (get_Rectangle): this only returns
21648         Rectangle.Empty if Visible == false, or Parent == null.
21649         Parent.Visible doesn't matter.
21650
21651 2006-10-10  Chris Toshok  <toshok@ximian.com>
21652
21653         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
21654         by .net 1.1, so switch to an internal method instead.
21655
21656 2006-10-10  Chris Toshok  <toshok@ximian.com>
21657
21658         * Control.cs (WM_PAINT): when a control is double buffered we draw
21659         initially to the ImageBuffer and then copy from there.  But when a
21660         parent control which has child controls is double buffered, the
21661         initial drawing doesn't encompass the entire ClientRectangle of
21662         the parent control, so we end up with uninitialized bits (this is
21663         easily seen by dragging the top toolbar in
21664         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
21665         manually set the ClipRectangle of the paint_event (only the one we
21666         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
21667         of the nastiness in bug #72499.
21668
21669         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
21670         which we use in Control.cs's WM_PAINT handling.
21671
21672 2006-10-10  Jackson Harper  <jackson@ximian.com>
21673
21674         * TextBoxBase.cs: Finish off the autoscrolling stuff.
21675
21676 2006-10-10  Chris Toshok  <toshok@ximian.com>
21677
21678         * Cursor.cs: Apply a slightly different patch to the one suggested
21679         in #79609.
21680
21681 2006-10-10  Jackson Harper  <jackson@ximian.com>
21682
21683         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
21684         not the parent form.
21685         * TextControl.cs: use difference in old line count vs new count to
21686         calculate how many lines were added, this takes into account soft
21687         line breaks properly.
21688
21689 2006-10-10  Chris Toshok  <toshok@ximian.com>
21690
21691         * LinkLabel.cs: don't call MeasureCharacterRanges against a
21692         rectangle located at 0,0 and the size of the text.  Use
21693         ClientRectangle instead.  This fixes rendering of non-left aligned
21694         link labels.
21695
21696 2006-10-10  Jackson Harper  <jackson@ximian.com>
21697
21698         * TextBoxBase.cs: When we set the selection start position the
21699         caret.
21700         * TextControl.cs: Need to update the caret when we decrement it to
21701         zero.
21702         - Make sure that the selection_visible flag gets reset to false if
21703         the selection isn't visible.  Before this you could get it set to
21704         visible by changing the selection start, then changing the end to
21705         equal the start.
21706
21707 2006-10-09  Jackson Harper  <jackson@ximian.com>
21708
21709         * TreeView.cs: Don't update scrollbars when we aren't visible.
21710         * TreeNodeCollection.cs: Only need to update scrollbars if being
21711         added to an expanded visible node or the root node.
21712
21713 2006-10-09  Chris Toshok  <toshok@ximian.com>
21714
21715         * XplatUIX11.cs (SendMessage): fix NRE.
21716
21717 2006-10-09  Jackson Harper  <jackson@ximian.com>
21718
21719         * TextBoxBase.cs: Implement horizontal autoscrolling.
21720         * TextControl.cs: Add a movement types that allows moving forward
21721         and backwards without wrapping.
21722
21723 2006-10-09  Mike Kestner  <mkestner@novell.com>
21724
21725         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
21726         with focus "expansion" of labels.  Fixes #79532 and then some.
21727         * ThemeWin32Classic.cs : add LineLimit to ListView label format
21728         when wrapping.
21729
21730 2006-10-09  Jackson Harper  <jackson@ximian.com>
21731
21732         * TextBoxBase.cs: Set the default max values to MaxValue since
21733         we use the scrollbar for autoscrolling and the default value is
21734         100.  If we don't do this the caret won't keep up with typing
21735         after about 18 characters.
21736         * TextControl.cs: Make sure the selection is offset by the
21737         viewport x.  This fixes selection when using auto scrolling.
21738
21739 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
21740         
21741         * Form.cs: The active control should be selected after the 
21742         OnLoad so that any child control initialization that affects
21743         the selection is done. Fixes #79406
21744
21745 2006-10-06  Chris Toshok  <toshok@ximian.com>
21746
21747         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
21748         to have no evil effects.
21749
21750         - Stop selecting StructureNotifyMask on non-toplevel windows.
21751
21752           The only way children should be resized is by using the SWF api,
21753           and we already send WM_WINDOWPOSCHANGED messages in those cases.
21754           Toplevel windows can be interacted with via the window manager,
21755           and so we keep the input mask there.
21756
21757           The other event StructureNotifyMask gives us (that we care
21758           about) is DestroyNotify.  The code is already structured such
21759           that it assumes we won't be getting a DestroyNotify event for
21760           the window we pass to XDestroyWindow (which is what
21761           StructureNotifyMask is supposed to guarantee.)  So, that code
21762           shouldn't be affected by this either.
21763
21764         - Stop selecting VisibilityChangeMask altogether.
21765
21766           We weren't doing anything with the resulting events anyway.
21767         
21768         This vastly reduces the number of X requests and events we see
21769         when resizing/laying out a large ui.
21770
21771 2006-10-06  Chris Toshok  <toshok@ximian.com>
21772
21773         * ScrollableControl.cs (DisplayRectangle): we need to take into
21774         account the DockPadding regardless of whether or not auto_scroll
21775         == true.  rework this slightly to this effect, and fix bug #79606,
21776         and part of #72499 (you can now see the drag handles and drag
21777         toolbars around).
21778
21779 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
21780
21781         * ListViewItem.cs: Collections of selected and checked items are now
21782         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
21783         we mark the collection "dirty".
21784         * ListView.cs: Marked collections readonly. Modified UpdateSelection
21785         to only clear SelectedItems when a new item is selected and MultiSelect
21786         is enabled. CheckedItems and SelectedItems now subscribe to Changed
21787         event of ListViewItemCollection, and mark its list dirty whenever
21788         that event is fire. This allows us to return selected/checked items 
21789         in the same order as they are in the Items collection. This matches
21790         the MS behavior.
21791
21792 2006-10-06  Chris Toshok  <toshok@ximian.com>
21793
21794         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
21795         right mouse clicks.  Fixes bug #79593.
21796
21797 2006-10-06  Chris Toshok  <toshok@ximian.com>
21798
21799         * Splitter.cs: doh, fix splitters that don't want to cancel the
21800         movement when you drag them.  Also, impose the limits on the
21801         values we send to the SplitterMovingEvent.  Fixes #79598.
21802
21803 2006-10-06  Jackson Harper  <jackson@ximian.com>
21804
21805         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
21806         since we use this for auto scrolling also.
21807
21808 2006-10-05  Chris Toshok  <toshok@ximian.com>
21809
21810         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
21811         beginning to think that most datagrid column types don't need this
21812         method.  Fixes bug #79392.
21813
21814 2006-10-05  Chris Toshok  <toshok@ximian.com>
21815
21816         * DataGrid.cs: move back to a more lazy scheme for creating the
21817         CurrencyManager, so we aren't updating it every time you set
21818         either DataSource or DataMember.  Also, don't call
21819         RecreateDataGridRows if the currency manager hasn't changed.
21820
21821 2006-10-05  Chris Toshok  <toshok@ximian.com>
21822
21823         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
21824         emitted, SelectedIndex should already be updated.  Fixes bug
21825         #78929.
21826
21827 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
21828
21829         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
21830           ToolStripTextBox.cs: Initial commit.
21831         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
21832
21833 2006-10-05  Jackson Harper  <jackson@ximian.com>
21834
21835         * TabControl.cs: We need to invalidate the tab control area when
21836         new ones are added (duh).
21837
21838 2006-10-03  Chris Toshok  <toshok@ximian.com>
21839
21840         * Form.cs (ProcessDialogKey): if the focused control is in this
21841         form and is a button, call its PerformClick method here.  Fixes
21842         #79534.
21843
21844 2006-10-04  Jackson Harper  <jackson@ximian.com>
21845
21846         * TabPage.cs: Ignore setting of Visible, and add an internal
21847         method for setting the controls visibility.  TabPage's Visible
21848         property is a little strange on MS, this seems to make us
21849         compatible, and fixes cases where people set all the tab pages to
21850         visible.
21851         * TabControl.cs: Use the new internal setting on tab pages
21852         visibility.
21853
21854 2006-10-03  Mike Kestner  <mkestner@novell.com>
21855
21856         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
21857
21858 2006-10-03  Mike Kestner  <mkestner@novell.com>
21859
21860         * ListView.cs : use is_visible instead of Visible to check if 
21861         scrollbars should be placed/sized.  Also some max_wrap_width
21862         love for LargeIcon view.  [Fixes #79533]
21863
21864 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
21865
21866         * TextControl.cs :
21867           Make set_TextAlign() do actually update the align. Fixed #78403.
21868
21869 2006-10-03  Chris Toshok  <toshok@ximian.com>
21870
21871         * DataGrid.cs: fix a crash when switching datasources if the
21872         vertical scrollbar is at someplace other than Value = 0.  Also,
21873         reduce the number of recalculation passes we do in SetDataSource
21874         from 2 to 1.
21875
21876 2006-10-03  Jackson Harper  <jackson@ximian.com>
21877
21878         * TextBoxBase.cs: Move the if value the same bail check up, we
21879         don't want to empty the document if it is already empty, this
21880         seems to severly mess up the caret.  TODO: I should probably fix
21881         the empty statement to update teh caret somehow.
21882
21883 2006-10-03  Chris Toshok  <toshok@ximian.com>
21884
21885         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
21886         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
21887         reflection, an internal row type, properties on said type, etc.)
21888         will work with our datagrid.  Fixes #79531.
21889
21890 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
21891
21892         * FileDialog.cs: Don't crash if a path is not accessible
21893           (System.UnauthorizedAccessException). Fixes #79569.
21894         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
21895           a ':' too. Return unknown icon for those paths/files.
21896
21897 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
21898
21899         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
21900         GetContainerControl returns null.
21901
21902 2006-10-02  Chris Toshok  <toshok@ximian.com>
21903
21904         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
21905         call to XGetWindowAttributes instead of "handle".  fixes an X
21906         error using notifyicon after the NotifyIconWindow to Form base
21907         class switch.
21908
21909 2006-10-02  Chris Toshok  <toshok@ximian.com>
21910
21911         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
21912         server grab and looping we need to do to get down to the most
21913         deeply nested child window.
21914         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
21915         QueryPointer again after the WarpPointer so we can generate a
21916         proper (fake) MotionNotify event to be enqueued in the destination
21917         window's queue.
21918         (GetCursorPos): call QueryPointer.
21919
21920         Fixes #79556.
21921
21922 2006-10-02  Jackson Harper  <jackson@ximian.com>
21923
21924         * NotifyIcon.cs: Derive the notify icon from a form, so things
21925         like FindForm work on it.
21926         - Swallow the WM_CONTEXTMENU message, since that is generated on
21927         mouse down, and context menu is a mouse up kinda guy.  I believe
21928         the correct fix here is probably to make the notify icon entirely
21929         NC area, but this seems to work fine for anyone not manipulating
21930         WndProc.
21931
21932 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
21933
21934         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
21935           ToolStripItemCollection.cs, ToolStripLabel.cs,
21936           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
21937           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
21938           Initial implementation.
21939         * TextRenderer.cs: Provide padding to MeasureText.
21940
21941 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
21942
21943         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
21944         of ButtonBaseAccessibleObject. Fix bug #79552.
21945
21946 2006-10-02  Jackson Harper  <jackson@ximian.com>
21947
21948         * MdiWindowManager.cs: When maximizing use the containers client
21949         rect, not it's bounds, so nc area is accounted correctly.
21950         - Use the parent form's size for the menu position, since the
21951         client isn't always the full form size.
21952
21953 2006-10-01  Chris Toshok  <toshok@ximian.com>
21954
21955         * ScrollableControl.cs: make sure neither right_edge or
21956         bottom_edge are < 0, since they're used as LargeChange for the
21957         horiz/vert scrollbars respectively.  Fixes #79539.
21958
21959 2006-10-01  Chris Toshok  <toshok@ximian.com>
21960
21961         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
21962         the xplatuix11 code can cause us to destroy/recreate our handle.
21963
21964         * XplatUIX11.cs
21965         (SystrayAdd):
21966         - this code can be invoked many times for the same Hwnd.  Make
21967           sure we only destroy the client window once (the first time this
21968           method is called).  This fixes bug #79544.
21969         - Remove the call to the improperly bound XSync.  why we had two
21970           bindings to this, I will never know, but this call resulted in
21971           events being discarded from the queue(!).
21972         - correct a misunderstanding of _XEMBED_INFO - the second atom is
21973           not our current state but the state we wish to be in.  So, 0 if
21974           we don't want to be mapped.  Change it to 1.
21975         (SystrayRemove): The XEMBED spec makes mention of the fact that
21976         gtk doesn't support the reparent of client windows away from the
21977         embedder.  Looking at gtksocket-x11.c seems to agree with this.
21978         The only avenue we have for removing systray icons is to destroy
21979         them.  We don't want the handle to go away for good, though, so
21980         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
21981         #79545.
21982         
21983 2006-10-01  Chris Toshok  <toshok@ximian.com>
21984
21985         * Form.cs (WndProc): inline the native_enabled variable usage into
21986         the cases in which it's used.  Fixes #79536.
21987
21988 2006-09-29  Mike Kestner  <mkestner@novell.com>
21989
21990         * ListView.cs : toggle the selection state for ctrl clicks in 
21991         multiselect mode. [Fixes #79417]
21992
21993 2006-09-29  Mike Kestner  <mkestner@novell.com>
21994
21995         * ListView.cs : kill CanMultiSelect and refactor the selection
21996         code to support multiselection in the absence of mod keys. Steal
21997         arrow/home/end keys by overriding InternalPreProcessMessage to
21998         restore regressed keynav behavior.
21999         [Fixes #79416]
22000
22001 2006-09-29  Jackson Harper  <jackson@ximian.com>
22002
22003         * MdiClient.cs: Repaint the titlebars when the active window is
22004         changed.
22005
22006 2006-09-29  Chris Toshok  <toshok@ximian.com>
22007
22008         * Application.cs: when entering a runloop with a modal, make sure
22009         the hwnd is enabled.  Fixes #79480.
22010
22011 2006-09-29  Chris Toshok  <toshok@ximian.com>
22012
22013         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22014         when ListManager.CanAddRows == false, bump us back one.
22015
22016         * DataGridColumnStyle.cs (ParentReadOnly): remove the
22017         listmanager.CanAddRows check.  This makes ArrayLists uneditable
22018         using a datagrid, which is not right.
22019         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22020         is an IEditable, but call property_descriptor.SetValue regardless.
22021         fixes #79435.
22022
22023 2006-09-29  Chris Toshok  <toshok@ximian.com>
22024
22025         * DataGridBoolColumn.cs: we need to test equality in the face of
22026         possible null values (as is the case with the default NullValue).
22027         This patch keeps us from crashing in that case.
22028
22029 2006-09-29  Jackson Harper  <jackson@ximian.com>
22030
22031         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22032         here, since it will get called for every node collection in the
22033         tree. This is now done in the treeview once the sorting is
22034         finished.
22035         * TreeView.cs: Recalculate the visible order, and update the
22036         scrollbars after sorting, set the top nope to the root so that the
22037         recalc actually works.
22038
22039 2006-09-29  Chris Toshok  <toshok@ximian.com>
22040
22041         * LinkLabel.cs: more handling of the default link collection in
22042         the face of LinkArea manipulation.  The default link collection
22043         contains 1 element (start=0,length=-1).  If the user sets LinkArea
22044         to anything and the links collection is the default, clear it.
22045         Then only add the link if its nonempty.  Fixes #79518.
22046
22047 2006-09-29  Chris Toshok  <toshok@ximian.com>
22048
22049         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22050         piece correctly when we hit a '\n'.  Fixes #79517.
22051
22052 2006-09-29  Chris Toshok  <toshok@ximian.com>
22053
22054         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22055         change the binding of gdk_init_check to take two IntPtr's, and
22056         pass IntPtr.Zero for both of them.  Fixes #79520.
22057
22058 2006-09-29  Mike Kestner  <mkestner@novell.com>
22059
22060         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22061         [Fixes #78779]
22062
22063 2006-09-28  Jackson Harper  <jackson@ximian.com>
22064
22065         * XplatUIX11.cs: When translating NC messages make sure we go from
22066         whole window to screen, not client window to screen.
22067         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22068         method doesn't exist
22069         - Skip over controls that aren't forms when arranging.
22070
22071 2006-09-28  Jackson Harper  <jackson@ximian.com>
22072
22073         * XplatUIWin32.cs: Clip the rect to the parent window.
22074         * XplatUIStructs.cs: Add clipping modes struct.
22075         * InternalWindowManager.cs: New private method that factors title
22076         bar heights in when calculating the pos of an NC mouse message.
22077         - Use SendMessage to force a paint when the form's size is changed
22078         instead of painting the decorations immediately.
22079         - Don't let the NC button click messages get to DefWndProc,
22080         because they will attempt to handle windowing themself, and this
22081         messes up z-order (it will put them in front of the scrollbars).
22082         * XplatUIX11.cs: Make sure that we don't reset window managers if
22083         we already have one (ie the window is an MDI window).
22084
22085 2006-09-28  Chris Toshok  <toshok@ximian.com>
22086
22087         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
22088         menu code really needs going over.
22089
22090 2006-09-27  Chris Toshok  <toshok@ximian.com>
22091
22092         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
22093         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22094         window is maximizable.  So, we need to make sure that even if we
22095         clear the border/wm frame of those functions, they're still
22096         available (basically, we remove the decoration without removing
22097         the function).  Half the fix for #79338.
22098
22099 2006-09-27  Chris Toshok  <toshok@ximian.com>
22100
22101         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22102         Fixes bug #79515.
22103
22104 2006-09-27  Chris Toshok  <toshok@ximian.com>
22105
22106         * Splitter.cs: reorder things a bit so that we don't actually
22107         draw/move the splitter until after calling OnSplitterMoving.  This
22108         lets users cancel/disallow the movement by explicitly setting
22109         event.SplitX/SplitY.  Fixes #79372.
22110
22111 2006-09-27  Jackson Harper  <jackson@ximian.com>
22112
22113         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22114         because it is most likely on a window being destroyed, and that
22115         will give us an X11 error.
22116
22117 2006-09-27  Chris Toshok  <toshok@ximian.com>
22118
22119         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
22120         the dropdown button now toggles between showing and hiding the
22121         dropdown.  Also, get rid of dropdown_form_showing and just use
22122         dropdown_form.Visible.  We still don't do a grab, but I'll leave
22123         that part to someone who has handled Capture-fu before.
22124
22125 2006-09-27  Chris Toshok  <toshok@ximian.com>
22126
22127         * DataGrid.cs: return false if alt isn't pressed when '0' is
22128         pressed.  this keeps the '0' key from being swallowed, and fixes
22129         bug #79350.
22130
22131 2006-09-27  Chris Toshok  <toshok@ximian.com>
22132
22133         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
22134         Calling Refresh (in response to a scrollbar event) screws up the
22135         scrollbar painting.  Fixes bug #78923.
22136
22137 2006-09-27  Chris Toshok  <toshok@ximian.com>
22138
22139         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
22140         then insert into hashtable" blocks threadsafe.
22141
22142 2006-09-27  Chris Toshok  <toshok@ximian.com>
22143
22144         * MessageBox.cs (CreateParams): the styles should be |'ed with our
22145         baseclass's, since otherwise the
22146         ControlBox/MinimizeBox/MaximizeBox assignments above have no
22147         effect.  This gets the close button back in messageboxes.
22148
22149 2006-09-27  Chris Toshok  <toshok@ximian.com>
22150
22151         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
22152         flag, not just != 0.  this makes flags that are actually multiple
22153         bits (like WS_CAPTION) work.  fixes bug #79508.
22154
22155 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
22156
22157         * PageSetupDialog.cs: add support for getting and settings the 
22158         paper size, source and orientation.
22159
22160 2006-09-26  Chris Toshok  <toshok@ximian.com>
22161
22162         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
22163         and caption == "", we need to remove the resize handles as well as
22164         the title bar.
22165
22166         * Control.cs (set_Text): turns out that setting Text on a form
22167         should change the WM styles on the window, since if ControlBox ==
22168         false, the only way to get a window border is to have a non-""
22169         Text property.  check winforms/forms/text.cs for an example.  so,
22170         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
22171         update both window styles and title.  This fixes a lot of dialogs
22172         (including the preferences dialog in MonoCalendar.)
22173
22174 2006-09-26  Chris Toshok  <toshok@ximian.com>
22175
22176         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
22177         control isn't a Form), call Win32ShowWindow to hide the window,
22178         but don't update the control Visible property.  When we reparent
22179         back to a parent control, call SetVisible in order for the
22180         window's visibility to be reinstated.
22181
22182         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
22183         the FosterParent.
22184
22185         * Control.cs (ControlCollection.Remove): remove that value.Hide()
22186         call for good, since it breaks MonoCalendar (and other things I'm
22187         sure.) Also, set all_controls to null *after* the owner calls,
22188         which end up regenerating it.
22189         (ChangeParent): allow new_parent to be == null, passing
22190         IntPtr.Zero down to XplatUI.
22191
22192         this fixes #79294 the right way.
22193
22194 2006-09-26  Mike Kestner  <mkestner@novell.com>
22195
22196         * GridEntry.cs : internal SetParent method.
22197         * PropertyGrid.cs : attach to property changed on the proper
22198         target if we have a hierarchical grid with subobjects. Setup
22199         GridItem.Parent for hierarchical items.
22200         * PropertyGridView.cs : Set value on the correct target for
22201         hierarchical grids. [Fixes #78903]
22202
22203 2006-09-26  Chris Toshok  <toshok@ximian.com>
22204
22205         * Control.cs (ChildNeedsRecreating): this should return true if
22206         either we're being recreated and the child is in our list, or our
22207         parent is waiting for our recreation.
22208
22209 2006-09-26  Chris Toshok  <toshok@ximian.com>
22210
22211         * Control.cs (ControlCollection.Remove): reinstate the
22212         value.Hide() call as suggested in bug #79294.
22213
22214 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
22215
22216         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
22217         coordinates (versus a relative move).
22218
22219 2006-09-26  Chris Toshok  <toshok@ximian.com>
22220
22221         * Control.cs: rework child recreation a little bit.  It turns out
22222         that we race between the DestroyNotify the WM_DESTROY message.  If
22223         the parent gets its DestroyNotify before the child gets the
22224         WM_DESTROY message, the child ends up not recreating (since the
22225         parent finishes its recreation on DestroyNotify, and the child
22226         checks ParentIsRecreating.)
22227
22228         So, instead we store off a list of all the child controls which
22229         need to be recreated when the parent control starts to recreate
22230         itself.  Then, when child controls get their WM_DESTROY message we
22231         check to see if they're in the parent's pending recreation list,
22232         and if so, we recreate.  This removes all dependency on ordering
22233         from the code and fixes the initial MonoCalendar upgrade dialog.
22234         
22235 2006-09-26  Jackson Harper  <jackson@ximian.com>
22236
22237         * TextControl.cs: Use the Line to get the length of the line,
22238         since soft line breaks can change the end line.
22239
22240 2006-09-26  Chris Toshok  <toshok@ximian.com>
22241
22242         * Control.cs (ControlCollection.AddImplicit): don't add the
22243         control again if it's already in one of our lists.  This keeps us
22244         from adding controls over and over again for comboboxes when their
22245         handle gets recreated (as the combobox adds implicit controls in
22246         OnHandleCreated).  Fixes the X11 errors in bug #79480.
22247
22248 2006-09-26  Jackson Harper  <jackson@ximian.com>
22249
22250         * TextControl.cs: When deleting characters make sure that any
22251         orphaned zero lengthed tags get deleted.
22252         - Fix ToString for zero lengthed tags.
22253
22254 2006-09-25  Jackson Harper  <jackson@ximian.com>
22255
22256         * TextControl.cs: When getting a tag at the location there can be
22257         multiple tags at the same spot, these are 0-lengthed tags that
22258         appear when extra formatting has been stuck in a location.  We
22259         need to pull out the last of these 0 lengthed tags.
22260
22261 2006-09-25  Jackson Harper  <jackson@ximian.com>
22262
22263         * TextControl.cs: Fix print out in debug method.
22264         * TextBoxBase.cs: When text is set bail if we are setting to the
22265         previous value.
22266         
22267 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
22268
22269         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
22270           It is now possible to change the selected index in a FontXXXListBox
22271           with the up and down arrow keys from the FontXXXTextBoxes.
22272           Also, send the FontXXXTextBox mouse wheel event to the corresponding
22273           FontXXXListBoxes to match ms.
22274
22275 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
22276
22277         * SystemInformation.cs: Return a clone of the theme's MenuFont because
22278         anyone can dispose it, anytime. All other properties returns enums, 
22279         structs or basic types so they don't need such tricks.
22280
22281 2006-09-22  Jackson Harper  <jackson@ximian.com>
22282
22283         * XplatUI.cs:
22284         * XplatUIWin32.cs:
22285         * Clipboard.cs:
22286         * DataFormats.cs:
22287         * XplatUIOSX.cs:
22288         * XplatUIDriver.cs: Update interface to add a primary selection
22289         flag, so the driver can use the primary selection buffer if
22290         needed.
22291         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
22292
22293         * RichTextBox.cs: We need to supply the data object to paste now
22294         (so we can choose to supply CLIPBOARD or PRIMARY).
22295         * TextBoxBase.cs: Supply data object to paste (see above).
22296         - Middle click uses the primary selection data object.
22297         
22298 2006-09-21  Chris Toshok  <toshok@ximian.com>
22299
22300         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
22301         of SetWMStyles.  It's still a rat's nest and is largely
22302         order-dependent which I dislike immensely.  This also fixes the X
22303         button disappearing from toplevel forms.
22304
22305 2006-09-21  Mike Kestner <mkestner@novell.com>
22306
22307         * ListBox.cs: move Jordi's click/dblclick raising code to the
22308         mouse up handler.
22309
22310 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
22311
22312         * ListBox.cs: Fixes 79450
22313
22314 2006-09-21  Mike Kestner <mkestner@novell.com>
22315
22316         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
22317         to deal with people updating the TreeNodeCollection after the tree
22318         is disposed.  "Fixes" 79330.
22319
22320 2006-09-20  Jackson Harper <jackson@ximian.com>
22321
22322         * TextControl.cs: Push the cursor record onto the undo stack
22323         before the delete action. This fixes 78651.
22324
22325 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
22326
22327         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
22328         CreateParams. Fixes 79329.
22329
22330 2006-09-19  Chris Toshok  <toshok@ximian.com>
22331
22332         * XplatUIX11.cs: a couple of blanket code massage passes to clean
22333         things up a bit.  First, get rid of the NetAtoms array (and the NA
22334         enum), and just embed the atoms as static fields.  Also, add a
22335         couple of functions (StyleSet and ExStyleSet) to clean up all the
22336         bitmask testing of styles.
22337
22338         * X11Structs.cs: remove the NA enum, not needed anymore.
22339         
22340 2006-09-19  Chris Toshok  <toshok@ximian.com>
22341
22342         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
22343         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
22344         added cleanup to get MessageBox titles appearing again, which were
22345         broken by my earlier fix for caption-less/ControlBox-less windows.
22346
22347 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
22348
22349         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
22350           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
22351           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
22352           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
22353           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
22354           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
22355           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
22356           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
22357           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
22358           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
22359           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
22360             Inital import.
22361         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
22362           ToolStripButton.cs: Stubs needed for above.
22363         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
22364
22365 2006-09-15  Chris Toshok  <toshok@ximian.com>
22366
22367         * XplatUIX11.cs:
22368         - make the MessageQueues hashtable Synchronized.
22369         
22370         - SendMessage: if the Hwnd is owned by a different thread, use the
22371         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
22372         thread.  Fixes bug #79201.
22373
22374 2006-09-15  Chris Toshok  <toshok@ximian.com>
22375
22376         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
22377         ControlBox == false, we disallow maximize/minimize/close.  If the
22378         form Caption is "" we also disallow move (and get rid of the Title
22379         decoration).  Unfortunately, regardless of how things are set,
22380         we're stuck with the Title and WM menu.
22381
22382 2006-09-15  Chris Toshok  <toshok@ximian.com>
22383
22384         * Application.cs: add locking around the static message_filters
22385         ArrayList, part of #79196.
22386
22387 2006-09-15  Chris Toshok  <toshok@ximian.com>
22388
22389         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
22390         Form.ControlBox == false, the window has no titlebar nor resize
22391         handles.  fixes bug #79368.
22392
22393 2006-09-15  Chris Toshok  <toshok@ximian.com>
22394
22395         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
22396         >= 0.  Fixes bug #79370.
22397
22398 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
22399         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
22400         * Control.cs:
22401             Add properties: LayoutEngine, Margin, DefaultMargin.
22402             Add method: GetPreferredSize.
22403             Move layout logic from PerformLayout to layout engines. 
22404
22405 2006-09-13  Chris Toshok  <toshok@ximian.com>
22406
22407         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
22408         fix for #79326 broke #78718, so this change addresses that.
22409
22410         - in SendWMDestroyMessages remove the call to
22411         CleanupCachedWindows, since we might be recreating the control and
22412         need to maintain the references to right Hwnd handles.  Also, set
22413         the zombie flag to true for each of the children in the hierarchy
22414         instead of calling hwnd.Dispose.  This will cause GetMessage to
22415         ignore all events for the window except for DestroyNotify.
22416
22417         - In GetMessage, ignore messages except for DestroyNotify for
22418         zombie hwnds.
22419         
22420         * Control.cs: revert the is_recreating fix from the last
22421         ChangeLog.  It's definitely "right", but it breaks switching from
22422         an MDI form to a non-MDI form.  Will need to revisit that.
22423
22424         * Hwnd.cs: add a zombie flag, which means "the
22425         client_window/whole_window handles are invalid, but we're waiting
22426         for the DestroyNotify event to come in for them".  Set the flag to
22427         false explicitly if setting WholeWindow/ClientWindow, and also
22428         when Disposing.
22429         
22430 2006-09-13  Chris Toshok  <toshok@ximian.com>
22431
22432         * XplatUIX11.cs: rework window destruction slightly.
22433
22434         - when destroying the windows associated with a control, we don't
22435         need 2 separate XDestroyWindow calls.  Just the one for the
22436         whole_window (or for client_window if whole_window is somehow
22437         IntPtr.Zero -- can this happen?) is enough.
22438
22439         - reworked SendWMDestroyMessages slightly, so we always dispose
22440         the child control hwnd's after sending the messages.
22441         
22442         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
22443         the two places it was used (one was even using hwnd.Handle and the
22444         other hwnd.client_window.  ugh), adding another call in
22445         SendWMDestroyMessages.  We need this new call because now the
22446         DestroyNotify events in the queue will be ignored for the child
22447         controls (as their hwnd's were disposed, and the window id's
22448         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
22449
22450         - this fixes bug #79326.
22451
22452 2006-09-13  Chris Toshok  <toshok@ximian.com>
22453
22454         * Control.cs: don't always set is_recreating to false at the end
22455         of RecreateHandle, since sometimes we're not done (and won't be
22456         until WndProc handles the WM_DESTROY message).  Also, set
22457         is_recreating to false in the WM_DESTROY handling code.  Part of
22458         the fix for bug #79326.
22459
22460 2006-09-13  Miguel de Icaza  <miguel@novell.com>
22461
22462         * X11DesktopColors.cs: Start the droppage of debugging messages.
22463
22464         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
22465
22466 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
22467
22468         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
22469
22470 2006-09-12  Chris Toshok  <toshok@ximian.com>
22471
22472         * DataGrid.cs (get_ListManager): if the list_manager is null, try
22473         to create it using SetDataSource.  Fixes bug #79151.
22474
22475 2006-09-11  Chris Toshok  <toshok@ximian.com>
22476
22477         * XEventQueue.cs: add a DispatchIdle property.
22478
22479         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
22480         either the queue is null, or the queue has DispatchIdle set to
22481         true.
22482         (DoEvents): set queue.DispatchIdle to false around the
22483         peek/translate/dispatch message loop in this method.  This keeps
22484         Application.Doevents from emitting idle events.  Part of the fix
22485         for #78823.
22486
22487 2006-09-11  Chris Toshok  <toshok@ximian.com>
22488
22489         * DataGrid.cs (set_DataSource): make this work for both the
22490         winforms/datagrid test and ReportBuilder.  It seems as though when
22491         we've created a ListManager (or maybe it's if we have a
22492         BindingContext?), when we set the DataSource it clears the
22493         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
22494         #79333.
22495
22496 2006-09-11  Chris Toshok  <toshok@ximian.com>
22497
22498         * XplatUIX11.cs: deal with queue being null, which happens in all
22499         the Clipboard functions.  Fixes one of the two problems mentioned
22500         in #78612.
22501
22502 2006-09-11  Chris Toshok  <toshok@ximian.com>
22503
22504         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
22505         button on various spots (including outside the menu) works closer
22506         to MS, and doesn't crash.  Fixes #79343.
22507
22508 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
22509
22510         * ListView.cs: Do not initialize item_sorter in init. To match MS,
22511         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
22512         and the internal comparer is set. When a new ListViewItemSorter is set,
22513         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
22514         was specified. No further processing is necessary if SortOrder is set
22515         to it's current value. If Sorting is modified to None, and View is
22516         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
22517         (either custom or our internal ItemComparer) to null, on 1.0 profile
22518         only set item_sorter to null if its our internal IComparer. If Sorting
22519         is modified to Ascending or Descending, then use our internal IComparer
22520         if none is set, and if the current IComparer is our internal one then:
22521         on 2.0 profile always replace it with one for new Sorting, and on 1.0
22522         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
22523         Enum.IsDefined to verify whether a valid View value is specified in
22524         its setter. Automatically sort listview items when listview is
22525         created. In Sort, do nothing if ListView is not yet created, or if
22526         no item_sorter is set (no Sorting was set, Sorting was explicitly set
22527         to None or ListViewItemSorter was set to null). Added Sort overload
22528         taking a bool to indicate whether the ListView should be redrawn when
22529         items are sorted (we use this in ListViewItemCollection to avoid double
22530         redraws). Modified our internal IComparer to take the sort order into
22531         account. In Add and AddRange methods of ListViewItemCollection, also
22532         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
22533         view), but use overload with noredraw option to avoid double redraw.
22534         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
22535         true when View is Tile, and do the same when attempting to set View to
22536         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
22537         for selected/checked indices, as it involves overhead when sorting is
22538         done while these collections are not used all that often. Instead
22539         we'll build the indices on demand. Modified IList implementation of
22540         CheckedIndexCollection to use public methods if object is int.
22541         Modified CheckedListViewItemCollection to hide checked items if
22542         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
22543         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
22544         IList implementation in SelectedIndexCollection to use public methods
22545         if object is int. Modified SelectedListViewItemCollection to hide
22546         selected items if listview is not yet created.
22547         * ListViewItem.cs: CheckedIndices list no longer needs to be
22548         maintained separately (see ListView changes). Also clone font, fixes
22549         test failure.
22550
22551 2006-09-11  Mike Kestner  <mkestner@novell.com>
22552
22553         * ComboBox.cs: if we are updating the contents of the currently
22554         selected index, refresh the control or the textbox selection.
22555         [Fixes #79066]
22556
22557 2006-09-11  Mike Kestner  <mkestner@novell.com>
22558
22559         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
22560         the 'specified' logic has been moved there.  This seems like a bug 
22561         in Control.cs, since our current SetBoundsCore completely ignores 
22562         the specified parameter.  Peter's commit seems to indicate that is 
22563         the way the MS control implementation works.  [Fixes #79325]
22564
22565 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
22566
22567         * XplatUI.cs: Set default_class_name to be composed
22568         of current domain id. This allows MWF to be loaded in multiple
22569         domains on Win32.
22570
22571 2006-09-09  Miguel de Icaza  <miguel@novell.com>
22572
22573         * X11Keyboard.cs: If we are unable to obtain the input method, do
22574         not call CreateXic to create the input context.   Should fix
22575         #78944/79276.
22576
22577 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
22578
22579         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
22580           Simplified gnome support by adding more pinvokes to get the
22581           icon for a file or mime type.
22582
22583 2006-09-08  Jackson Harper  <jackson@ximian.com>
22584
22585         * MenuAPI.cs: Deslect popup context menu items before closing the
22586         window, so that you don't see the previously selected item
22587         selected when you reopen the menu.
22588         * TextControl.cs: Update the cursor position even if we don't have
22589         focus.  This fixes typing in things like the ComboBox.  I'm not
22590         totally sure we should always set the visibility if we don't have
22591         focus, but couldn't find any corner cases where the cursor showed
22592         up when it shouldn't.
22593
22594 2006-09-08  Chris Toshok  <toshok@ximian.com>
22595
22596         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
22597         our arrays are length 256.  & 0xff before indexing.  Fixes the
22598         crash in bug #78077.
22599         
22600 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22601
22602         * ThemeWin32Classic.cs: 
22603         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
22604         is true. Handle that check box too.
22605
22606 2006-09-07  Chris Toshok  <toshok@ximian.com>
22607
22608         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
22609         79244.
22610
22611 2006-09-07  Chris Toshok  <toshok@ximian.com>
22612
22613         * Control.cs: in set_BackColor only do the work if
22614         background_color != value.
22615
22616         * XplatUIX11.cs: move the clearing of invalid areas (both client
22617         and nc) to the same block of code where we set (nc_)expose_pending
22618         to false.  That is, move it from PaintEventEnd to PaintEventStart,
22619         so things that cause invalidates from within OnPaint will trigger
22620         another call to OnPaint.  Fixes bug #79262.
22621
22622 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
22623
22624         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
22625         * FileDialog.cs: Fix typo
22626
22627 2006-09-07  Jackson Harper  <jackson@ximian.com>
22628
22629         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
22630         for tab pages if they have any.
22631
22632 2006-09-06  Mike Kestner  <mkestner@novell.com>
22633
22634         * Splitter.cs: use the "current" rect when finishing drag handle
22635         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
22636
22637 2006-09-06  Mike Kestner  <mkestner@novell.com>
22638
22639         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
22640         support offset splitters. [Fixes #79298]
22641
22642 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
22643
22644         * Mime.cs: Fixed a bug that could override the global mime type
22645           result.
22646
22647 2006-09-05  Jackson Harper  <jackson@ximian.com>
22648
22649         * TabControl.cs: Better calculation method for setting the slider
22650         pos. Prevents crashes on really wide tabs.
22651         - Draw Image on tab pages if an image list is used.
22652
22653 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22654
22655         * MonthCalendar.cs: When Font changes, the Size should be
22656         updated to fit the new font's space requirements.
22657
22658 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
22659
22660         * ListBox.cs: If the items are cleared with Items.Clear set
22661           top_index to 0.
22662
22663 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22664
22665         * MonthCalendar.cs: Handle arrow keys as input keys. Also
22666         fire DateChanged event instead of DateSelected event when
22667         the date was changed by keyboard interaction.
22668
22669 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22670
22671         * DateTimePicker.cs: Handle DateChanged for the associated
22672         month_calendar control, and set month_calendar.Font from 
22673         OnFontChanged method, as well as resize the height of the
22674         control when needed. Make PreferredHeight proportional.
22675
22676 2006-09-01  Chris Toshok  <toshok@ximian.com>
22677
22678         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
22679         properties.
22680
22681         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
22682
22683 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
22684
22685         * FileDialog.cs: Set ClientSize instead of window size, to allow space
22686           for decorations (Fixes #79219)
22687
22688 2006-09-01  Mike Kestner  <mkestner@novell.com>
22689
22690         * ComboBox.cs: first stab at sorting plus some selection handling
22691         fixes to bring us more in line with MS behavior.  Also switches back
22692         to index based selection.  Alternative patches for index-based 
22693         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
22694         and latency@gmx.de on bug 78848.  I assume they were similar to this
22695         code I've had simmering in my tree forever.
22696         [Fixes #78848]
22697
22698 2006-09-01  Chris Toshok  <toshok@ximian.com>
22699
22700         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
22701         when setting list position guard against ending up with a -1 index
22702         (the other part of the fix for #78812).  Should probably make sure
22703         we don't need the analogous fix in the ItemDeleted case.
22704
22705         * DataGrid.cs:
22706         - in SetDataSource, work around the fact that the way
22707         OnBindingContextChanged is invoked will cause us to re-enter this
22708         method.  I'll remove the hack once I investigate
22709         OnBindingContextChanged.
22710
22711         - fix the logic in set_DataSource and set_DataMember (basically
22712         what to do if the other of the two is null.)
22713         
22714         - in OnListManagerItemChanged, we need to take into account the
22715         edit row when deciding whether or not to call RecreateDataGridRows
22716         (part of the fix for #78812).
22717
22718 2006-09-01  Jackson Harper  <jackson@ximian.com>
22719
22720         * Splitter.cs: Don't do anything if there is no control to affect
22721         (prevents us from crashing in weird tet cases).
22722         * TreeView.cs: Bounding box for the mouse movement reverting
22723         focus/selection back to previously selected node.  This matches
22724         MS, and makes the tree a lot more useable.
22725         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
22726         use clipping so they are not drawn.  This fixes when the control
22727         is set to have a transparent background, or if it was over an
22728         image.
22729
22730 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
22731
22732         * MimeIcon.cs: Improved handling for reading default icons when
22733           using gnome (2.16 made it necessary). Check and read svg icons
22734           first, then 48x48 and then 32x32 icons.
22735
22736 2006-08-31  Chris Toshok  <toshok@ximian.com>
22737
22738         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
22739         visible.
22740
22741         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
22742         ProcessKeyPreview.  Fixes part of #77806.
22743
22744         * DataGrid.cs: big patch.
22745
22746         - revert the queueing up of DataSource/DataMember if inside
22747         BeginInit/EndInit calls.  That's not the way the datagrid achieves
22748         its delayed databinding.  Instead, call SetDataSource in
22749         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
22750         #78811.
22751
22752         - Also, it wasn't mentioned in #78811, but the test case exhibits
22753         behavior that was lacking in our datagrid implementation - Columns
22754         that have mapping names that don't exist in the datasource's
22755         properties aren't shown.  Yuck.  To fix this I added the bound
22756         field to the column style, and basically any calculation to figure
22757         out anything about columns uses a loop to find the bound columns.
22758         still need to investigate if I can cache an array of the bound
22759         columns or if the indices must be the same.
22760
22761         - When setting CurrentCell, we no longer abort if the cell being
22762         edited was in the add row.  This fixes the other part of #77806.
22763
22764         - The new code also fixes #78807.
22765         
22766         * ThemeWin32Classic.cs: perpetrate the same disgusting
22767         column.bound field hack, and only render bound fields.
22768
22769 2006-08-31  Chris Toshok  <toshok@ximian.com>
22770
22771         * DataGridColumnStyle.cs: add bound field.  this field is true if
22772         the datasource has a property corresponding to the mapping name.
22773
22774         * DataGridTableStyle.cs: set the bound field on the column styles
22775         depending on whether or not we have a column for that property.
22776
22777 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
22778
22779         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
22780           splitter control (fixes #79228)
22781
22782 2006-08-31  Chris Toshok  <toshok@ximian.com>
22783
22784         * DataGridColumnStyle.cs: we need to delay the assignment of
22785         property descriptor until the last possible moment due to the lazy
22786         databinding stuff in the datagrid.  Also, fix the exceptions
22787         thrown by CheckValidDataSource to match MS.
22788
22789 2006-08-31  Jackson Harper  <jackson@ximian.com>
22790
22791         * Form.cs: When activated select the active control, if there is
22792         no active control, we select the first control.
22793         * XplatUIX11.cs: If there is no focus control when we get a
22794         FocusIn event, find the toplevel form and activate it.  This
22795         occurs when you popup a window, it becomes the focus window, then
22796         you close that window, giving focus back to the main window.
22797
22798 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22799
22800         * MonthCalendar.cs: 
22801         * ThemeWin32Classic.cs: Cache Font in bold style, as well
22802         as StringFormat with Center alignments in MonthCalendar,
22803         instead of creating new ones when drawing the control. 
22804         Also, draw the month name in bold style.
22805
22806 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
22807
22808         * Control.cs:
22809           - PerformLayout(): It would seem MS performs the fill even if the 
22810             control is not visible (part of #79218 fix)
22811           - ResetBackColor(): Use the setter to reset the color, to allow
22812             overriders to catch the change.
22813         * Form.cs:
22814           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
22815           - CreateHandle(): dito (part of $79218 fix)
22816           - Don't set an icon if we have a dialog
22817         * ScrollableControl.cs:
22818           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
22819           - ScrollIntoView(): No need to scroll if control is already visible
22820             (resolves fixme and fixes #79218)
22821
22822 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22823
22824         * MonthCalendar.cs: Change proportions in SingleMonthSize
22825         to match the aspect of the original control.
22826
22827 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
22828
22829         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
22830           get updated when they get maximized.
22831
22832 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
22833
22834         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
22835
22836 2006-08-29  Chris Toshok  <toshok@ximian.com>
22837
22838         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
22839
22840 2006-08-29  Jackson Harper  <jackson@ximian.com>
22841
22842         * TreeView.cs: Need to track selected node and highlighted node,
22843         they aren't always the same thing, when the mouse is down on a
22844         node it is hilighted, but not selected yet.
22845         - Do the HideSelection stuff right
22846         - Need to focus on rbutton mouse down. And redraw selection when
22847         right click is mouse upped.
22848
22849 2006-08-29  Mike Kestner  <mkestner@novell.com>
22850
22851         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
22852         when SubItems.Count < Columns.Count.  [Fixes #79167]
22853
22854 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
22855
22856         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
22857
22858 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
22859
22860         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
22861           from X. Only send based on ConfigureNotify if we don't have the
22862           correct location in hwnd (if the window manager moved us)
22863
22864 2006-08-28  Mike Kestner  <mkestner@novell.com>
22865
22866         * ListView.cs: remove a TODO. 
22867         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
22868         [Fixes ListView part of #79166]
22869
22870 2006-08-28  Mike Kestner  <mkestner@novell.com>
22871
22872         * ListView.cs: move wheel handler to parent since it is focused
22873         instead of the item_control now.  [Fixes #79177]
22874
22875 2006-08-28  Mike Kestner  <mkestner@novell.com>
22876
22877         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
22878         when the control is focused. [Fixes #79171]
22879
22880 2006-08-28  Mike Kestner  <mkestner@novell.com>
22881
22882         * ListView.cs: size the item and header controls for empty and
22883         unscrollable views.
22884         * ThemeWin32Classic.cs: draw disabled backgrounds.
22885         [Fixes #79187]
22886
22887 2006-08-28  Chris Toshok  <toshok@ximian.com>
22888
22889         * Form.cs: remove unused "active_form" static field.
22890
22891         * Hwnd.cs: lock around accesses to static windows collection.
22892
22893         * Application.cs: lock threads in Exit ().
22894
22895 2006-08-28  Chris Toshok  <toshok@ximian.com>
22896
22897         * NativeWindow.cs: lock around accesses to window_collection.
22898         
22899 2006-08-28  Chris Toshok  <toshok@ximian.com>
22900
22901         * Control.cs: err, fix this the right way, by locking on controls
22902         when using it.  not by making it synchronized.
22903
22904 2006-08-28  Chris Toshok  <toshok@ximian.com>
22905
22906         * Control.cs: make the static "controls" field synchronized, as it
22907         gets updated from multiple threads.
22908
22909 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
22910
22911         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
22912           Prevent other threads from exiting when calling thread sets quit state.
22913         * XEventQueue.cs: Added PostQuitState property
22914
22915 2006-08-27  Chris Toshok  <toshok@ximian.com>
22916
22917         * AsyncMethodData.cs: add a slot for the window handle.
22918
22919         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
22920         window (the destination control's window, not the foster window).
22921
22922         * Control.cs (BeginInvokeInternal): store the window's handle in
22923         the AsyncMethodData.
22924         
22925
22926 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
22927
22928         * XplatUIX11.cs:
22929           - PostQuitMessage: Removed resetting S.D display handle, we might have
22930             another loop started after calling PostQuitMessage (Fixes #79119)
22931           - Created destructor to reset S.D handle
22932
22933 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
22934
22935         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
22936
22937 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22938
22939         * TextControl.cs (Insert): Update the caret position even if we don't
22940           have a handle yet, just don't call the driver in that case.
22941         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
22942           to the end of the new selection text (Fixes #79184)
22943
22944 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22945
22946         * Form.cs (Activate): Only activate if the handle is created)
22947         * Control.c:
22948           - Mark window as invisible when it's disposed
22949           - Check if window handle is created when setting window visible, 
22950             instead of relying just on the is_created variable
22951           - Check if object is disposed when creating the control (Fixes #79155)
22952
22953 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22954
22955         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
22956           when allowing layout again. Otherwise we re-generate the anchoring 
22957           distance to the border again and actually alter what the user wanted
22958           This is ugly, it'd be better if we used DisplayRectangle instead of
22959           ClientRectangle for Control.UpdateDistances, but that causes us to
22960           have other problems (initial anchoring positons would be wrong)
22961           (Fixes #78835)
22962
22963 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22964
22965         * Control.cs:
22966           - The size and location setters shouldn't go directly to 
22967             SetBoundsCore, but to SetBounds, which triggers layout on the
22968             parent, then calls SetBoundsCore. (Related to fix for #78835)
22969           - SetBounds: Moved actual location update code into this function
22970             from SetBoundsCore, to match MS. Added call to PerformLayout if
22971             we have a parent (to trigger resizing of anchored parents if the 
22972             child size has changed (see testcase for #78835) 
22973         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
22974           new control code
22975         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
22976
22977 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22978
22979         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
22980           System.Drawing when a toplevel window gets closed; there might
22981           be other toplevel windows belonging to the same app (Fixes #78052)
22982
22983 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
22984
22985         * FileDialog.cs: After reading FileDialog settings from mwf_config
22986           use Desktop prefix only if a real folder doesn't exist anymore.
22987         * FontDialog.cs: Added char sets.
22988           It is now possible to select the font, size or style with the
22989           textboxes.
22990
22991 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
22992
22993         * PrintPreviewDialog.cs: Use assembly name constants.
22994
22995 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22996
22997         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
22998           scrollbar from whacking it's buttons)
22999
23000 2006-08-24  Chris Toshok  <toshok@ximian.com>
23001
23002         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
23003         in this patch (aggregating setting Left/Top/Width/Height to
23004         setting Bounds on the scrollbars), but the crux of the fix is in
23005         Recalculate, where we scroll by the remaining scroll_position if
23006         we're hiding a scrollbar.  The 2*$5 reward in the comment is
23007         serious.
23008
23009 2006-08-24  Jackson Harper  <jackson@ximian.com>
23010
23011         * MdiClient.cs:
23012         * MdiWindowManager.cs: If the form is made a non-mdi window we
23013         need to remove the form closed event so that closing forms works
23014         correctly.
23015
23016 2006-08-24  Jackson Harper  <jackson@ximian.com>
23017
23018         * Control.cs: Make IsRecreating internal so that the driver can
23019         check it
23020         - Temporarily remove the Hide when controls are removed, its
23021         making a whole bunch of things not work because visibility isn't
23022         getting reset elsewhere correctly
23023         * Form.cs: Need to do a full handle recreation when the mdi parent
23024         is set.
23025         * XplatUIX11.cs: If we are recreating handles don't dispose the
23026         HWNDs.  What was happening is the handles were being recreated in
23027         SendWMDestroyMessages, but then flow continued on in that method
23028         and destroyed the new handles.
23029
23030 2006-08-23  Jackson Harper  <jackson@ximian.com>
23031
23032         * Form.cs: MdiClient is always at the back of the bus
23033         * Control.cs: When the order of items in the collection is changed
23034         we need to reset the all_controls array
23035         - do the same sorta setup thats done when adding a control when a
23036         control is set on the collection.
23037
23038 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23039
23040         * TextBoxBase.cs (get_Text): Return an empty array if our document
23041           is empty (fixes #79052)
23042
23043 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23044
23045         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23046           on WM_SYSCHAR messages (fixes #79053)
23047
23048 2006-08-23  Chris Toshok  <toshok@ximian.com>
23049
23050         * DataGrid.cs: fix flickering when scrolling vertically.
23051
23052 2006-08-23  Chris Toshok  <toshok@ximian.com>
23053
23054         * DataGrid.cs (EndEdit): only invalidate the row header when we
23055         need to.
23056
23057 2006-08-23  Chris Toshok  <toshok@ximian.com>
23058
23059         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23060         methods.  fixes the flicker when scrolling around.
23061
23062 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23063
23064         * FileDialog.cs: Making sure the control is created before we get a 
23065           chance to use it with BeginInvoke (Fixes #79096)
23066
23067 2006-08-23  Chris Toshok  <toshok@ximian.com>
23068
23069         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23070         width to use when painting the rows.
23071
23072 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23073
23074         * TextBoxBase.cs:
23075           - Throw ArgumentException if a negative value is passed to SelectionLength
23076           - Update the selection end if start is moved. end needs to be always
23077             after start. (Fixes #79095)
23078           - Track selection length; MS keeps the selection length even if start
23079             is changed; reset on all other operations affection selection
23080
23081 2006-08-22  Jackson Harper  <jackson@ximian.com>
23082
23083         * TreeView.cs: Make sure both scrollbars get displayed and sized
23084         correctly when the other bar is visible.
23085         - Use the original clip rectangle for checking if the area between
23086         the two scrollbars is visible, not the viewport adjusted clipping
23087         rectangle.
23088
23089 2006-08-22  Jackson Harper  <jackson@ximian.com>
23090
23091         * Binding.cs: We don't use IsBinding because it requires the
23092         control to be created, which really shouldn't be necessary just to
23093         set a property on the control.
23094
23095 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23096
23097         * ComboBox.cs: Some CB.ObjectCollection methods must throw
23098         ArgumentNullReferenceException when the argument is null.
23099
23100 2006-08-21  Jackson Harper  <jackson@ximian.com>
23101
23102         * Timer.cs: Track the thread that the timer is started in (NOT
23103         CREATED), this way messages for it will only be triggered on its
23104         queue.
23105         * XEventQueue.cs: Track the timers here, this makes timers per
23106         thread, like MS.
23107         * XplatUIX11.cs: The timers are moved to the XEventQueue.
23108
23109 2006-08-19  Chris Toshok  <toshok@ximian.com>
23110
23111         * XplatUIX11.cs: after further communication with pdb, we get the
23112         best of both worlds.  SetZOrder working for un-Mapped windows, and
23113         no X errors for un-mapped windows.
23114
23115 2006-08-19  Chris Toshok  <toshok@ximian.com>
23116
23117         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23118         as it was causing pdn toolbars to not have the correct stacking.
23119
23120 2006-08-18  Mike Kestner  <mkestner@novell.com> 
23121
23122         * ListView.cs : guard against negative ClientArea.Width in scrollbar
23123         calculation.  Not sure why control should ever be setting a negative
23124         width though.  Fixes #78931.
23125
23126 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23127
23128         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
23129         null items in ObjectCollection class.
23130         * ListBox.cs.: Likewise.
23131
23132 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
23133
23134         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
23135           as the base method in ThemeWin32Classic should work fine.
23136           Fixed bug #78607.
23137
23138 2006-08-18  Jackson Harper  <jackson@ximian.com>
23139
23140         * Binding.cs: When validating if the value entered doesn't convert
23141         properly reset to the old value.
23142         * RadioButton.cs: Don't fire click when we get focus.
23143
23144 2006-08-18  Jackson Harper  <jackson@ximian.com>
23145
23146         * FileDialog.cs: Paint the selection on the directory combobox the
23147         same way as on MS. 
23148
23149 2006-08-17  Jackson Harper  <jackson@ximian.com>
23150
23151         * ErrorProvider.cs: Don't allow the error control to be selected.
23152         * Control.cs: Don't send the SetFocus messages, the control
23153         activation will do this, and if we do it blindly here validation
23154         does not work.
23155
23156 2006-08-17  Jackson Harper  <jackson@ximian.com>
23157
23158         * Control.cs:
23159         * ContainerControl.cs: Make validation events fire in the correct
23160         order.  TODO: For some reason the first validation event is not
23161         getting fired.
23162
23163 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23164
23165         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
23166
23167 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23168
23169         * ComboBox.cs : implement scroll wheel support for popped-down
23170         state. Fixes #78945. 
23171
23172 2006-08-17  Jackson Harper  <jackson@ximian.com>
23173
23174         * TreeView.cs: Specify treeview actions (old patch that didn't get
23175         committed for some reason).
23176         - Don't let the mouse wheel scroll us too far.  Just want to make
23177         the bottom node visible, not scroll it all the ways to the top.
23178
23179 2006-08-17  Jackson Harper  <jackson@ximian.com>
23180
23181         * XplatUIX11.cs: Mouse wheel events go to the focused window.
23182
23183 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23184
23185         * ComboBox.cs : don't do mouseover selection in simple mode.
23186
23187 2006-08-16  Jackson Harper  <jackson@ximian.com>
23188
23189         * Form.cs: Fire the closing events for all the mdi child windows
23190         when a window is closed.  If the cancel args are set to true, the
23191         main window still gets the event fired, but it doesn't not close.
23192         * MdiWindowManager.cs: Do this closing cleanup in a Closed
23193         handler, instead of when the button is clicked, so cancelling the
23194         close works correctly.
23195         * ComboBox.cs: Send the mouse down to the scrollbar.
23196
23197 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23198
23199         * ListBox.cs: When passing 'null' to SelectedItem,
23200         set SelectedIndex to -1, to unselect items. This is the
23201         observed behaviour in .Net.
23202
23203 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
23204
23205         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
23206           MS flags saying there won't be any. (fixes #78800)
23207         * Control.cs (HandleClick): Made virtual
23208
23209 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
23210
23211         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
23212           cultures. Fixed bug #78399.
23213
23214 2006-08-16  Jackson Harper  <jackson@ximian.com>
23215
23216         * Form.cs: Use the MdiClients MdiChildren property to access
23217         MdiChildren instead of creating the array from the child controls.
23218         * MdiClient.cs: Maintain a separate array of the mdi children, so
23219         that insertion order is maintained when the Z-order is changed.
23220
23221 2006-08-16  Mike Kestner  <mkestner@novell.com> 
23222
23223         * ListView.cs : add an ItemComparer and default to it for sorting.
23224         Fixes #79076, but sorting needs a complete overhaul to be compat with
23225         MS.
23226
23227 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23228
23229         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
23230
23231 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23232
23233         * Hwnd.cs (Mapped): Properly traverse the tree
23234
23235 2006-08-15  Chris Toshok  <toshok@ximian.com>
23236
23237         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
23238         pass manager.Current.GetType() to ParseData.  It has to be the
23239         property type.  So, hold off doing the ParseData until we're in
23240         SetPropertyValue where we know the type.  This fixes the crash in
23241         #78821 but the textbox is still empty.
23242
23243 2006-08-15  Chris Toshok  <toshok@ximian.com>
23244
23245         * DataGrid.cs:
23246         - when we're scrolling, only call Edit() again if the
23247         current cell is still unobscured. Fixes bug #78927.
23248         - when handling mousedown on a cell, ensure the cell is visible
23249         before calling Edit.
23250         - remove the properties from DataGridRow, and remove the
23251         DataGridParentRow class altogether.
23252         
23253
23254 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23255
23256         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
23257           fire OnTextChanged by ourselves. There's no point calling base,
23258           we don't set the base value anywhere else. Fixes #78773.
23259
23260 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23261
23262         * ListBox.cs: Call CollectionChanged when modifying
23263         an item from Items indexer, to update the actual items
23264         in the list box.
23265
23266 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23267
23268         * PrintDialog.cs: Small fixes for focus and a pair of checks,
23269         to match .Net behaviour.
23270
23271 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23272
23273         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
23274
23275 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23276
23277         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
23278
23279 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23280
23281         * MessageBox.cs: Prevent potential NRE exception.
23282         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
23283
23284 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
23285
23286         * MessageBox.cs: Calculate the owner of a messagebox, also make
23287           it topmost. Fixes #78753
23288
23289 2006-08-14  Chris Toshok  <toshok@ximian.com>
23290
23291         * XplatUIX11.cs: A couple of fixes so that metacity will let us
23292         programmatically move windows.  first, set the PPosition hint as
23293         well as the USPosition hint.  Second include some code from pdb
23294         that sets the window type to NORMAL when we set the transient for
23295         hint.  This is because, in the absence of a window type, metacity
23296         thinks any window with TransientFor set is a dialog, and refuses
23297         to let us move it programmatically.  fascists.
23298
23299 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
23300
23301         * XplatUIX11.cs: When setting normal hints, take into consideration
23302           an different hints previously set so we don't delete them (fixes #78866)
23303
23304 2006-08-12  Chris Toshok  <toshok@ximian.com>
23305
23306         * ToolBarButton.cs: make Layout return a boolean, if something to
23307         do with the button's layout changed.
23308
23309         * ToolBar.cs:
23310         - add another parameter to Redraw, @force, which all existing
23311           calls set to true.
23312         - make the Layout function return a boolean which is true if the
23313           layout has actually changed.  Redraw now uses this (and @force)
23314           to determine when to invalidate.  At present the only place
23315           where @force can be false is the call from OnResize, when
23316           background_image == null.  So, resizing a toolbar when the
23317           layout doesn't change results in no drawing.
23318
23319 2006-08-12  Chris Toshok  <toshok@ximian.com>
23320
23321         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
23322         the VScrollBar and HScrollbar reversed.  oops.
23323
23324         * DataGrid.cs: fix the logic that assigns sizes to the implicit
23325         scrollbars.  we were assigning them twice (once in
23326         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
23327         therefore causing two scrollbar resizes (and redraws?) to happen
23328         per grid resize.
23329
23330 2006-08-12  Chris Toshok  <toshok@ximian.com>
23331
23332         * ToolBarButton.cs: redraw the entire button if the theme tells us
23333         to.
23334
23335         * Theme.cs: add ToolBarInvalidateEntireButton.
23336
23337         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
23338         buttons, just the border.
23339
23340         * ThemeNice.cs: redraw the entire toolbar button since we need to
23341         draw the highlight image.
23342
23343         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
23344         we need to redraw the entire button (not just the border).
23345
23346 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
23347
23348         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
23349           for vertical bars. Fixes the mismatches shown by #78513
23350
23351 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
23352
23353         * FileDialog.cs: If a saved/remembered path doesn't exist
23354           anymore, fall back to "Desktop".
23355
23356 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
23357
23358         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
23359           parent. It's apparently legal to not have one
23360         * XplatUIX11.cs:
23361           - SetZOrder: Don't try to set Z-Order on an unmapped window
23362           - CreateWindow: 0,0 are legal coordinates for a window. don't move
23363             it unless the coordinates are negative
23364
23365 2006-08-10  Mike Kestner  <mkestner@novell.com>
23366
23367         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
23368         when setting to null per msdn docs.  Fixes #78854.
23369
23370 2006-08-10  Chris Toshok  <toshok@ximian.com>
23371
23372         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
23373         flickering by setting a clip rectangle on the Graphics when we
23374         need to redraw just a particular menuitem.  Also, rename "OnClick"
23375         to "OnMouseDown" to reflect what it actually is.
23376         
23377         * Form.cs: track the OnMouseDown change.
23378
23379 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
23380
23381         * CommonDialog.cs: Properly inherit the CreateParams from the form
23382           and only change what we need. Fixes #78865
23383
23384 2006-08-10  Chris Toshok  <toshok@ximian.com>
23385
23386         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
23387         flickering in flat mode (and most of the flickering in general) by
23388         only invalidating the button border (and not the entire rectangle)
23389         when the state changes.  A couple of cases still flicker:
23390         ToggleButtons, and the dropdown arrow case when the user mouse
23391         ups.
23392
23393 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
23394
23395         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
23396           for german keyboards. Numlock state shouldn't affect the behaviour
23397           of the Del key. Fixes bug #78291.
23398
23399 2006-08-10  Chris Toshok  <toshok@ximian.com>
23400
23401         * ListControl.cs: remove the items.Clear line from BindDataItems,
23402         as this is the first thing done by both subclasses in their
23403         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
23404         passed -1, refresh the list.  This gets databinding working when
23405         the datasource is set on the list before the datasource is
23406         populated (as in wf-apps/ReportBuilder.)
23407
23408         * ComboBox.cs: remove the argument to BindDataItems.  This call
23409         should really go away, and be initiated by the ListControl code.
23410
23411         * ListBox.cs: same.
23412
23413 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
23414
23415         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
23416           if no data is in the document when the control is displayed
23417
23418 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
23419
23420         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
23421           yes (fixes #78806)
23422         * TextControl.cs: 
23423           - PositionCaret: Allow positioning of caret but don't call methods 
23424             requiring a handle if the window isn't created yet
23425           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
23426           - owner_HandleCreated: Don't position the caret, just update it's 
23427             location. User might have already set a different position
23428
23429 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
23430
23431         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
23432           windows. Screws up the returned coordinates for child windows. 
23433           Fixes #78825. I'm hoping this doesn't break something, since the
23434           code was explicitly put in 8 months ago, but no bug was attached.
23435           Menus still seem to work properly.
23436
23437 2006-08-08  Chris Toshok  <toshok@ximian.com>
23438
23439         * DataGrid.cs: make BeginInit/EndInit actually do what they're
23440         supposed to do - delay data binding until the EndInit call.  Also,
23441         make the table style collection's CollectionChangeAction.Refresh
23442         work properly.
23443
23444         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
23445         (with action = Refresh) when a consituent table's MappingName is
23446         changed.
23447
23448 2006-08-08  Chris Toshok  <toshok@ximian.com>
23449
23450         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
23451         Invalidate, since changing the text can change the size of the all
23452         toolbar buttons.
23453
23454 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
23455
23456         * Form.cs (AddOwnedForm): Still need to add the form to our listif
23457           we don't have it yet
23458
23459 2006-08-08  Chris Toshok  <toshok@ximian.com>
23460
23461         * PrintControllerWithStatusDialog.cs: don't .Close() the status
23462         dialog, as this causes X errors later on, since we actually
23463         destroy the window.  Instead, .Hide() it.
23464
23465 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
23466
23467         * ComboBox.cs: Added focus reflection for popup window
23468         * XplatUIX11.cs: 
23469           - Removed transient setting for non-app windows for now, not sure it
23470             was needed
23471           - Fixed logic checking if we have captions when deciding 
23472             override_redirect, WS_CAPTION is two bits and a 0 check was not
23473             sufficient
23474           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
23475             complicated
23476         * Form.cs: 
23477           - AddOwnedForm: Don't just add the form to the list, call the property
23478             to ensure the driver is informed about the ownership as well
23479           - CreateHandle: Set the TopMost status in the driver if we have an owner
23480         * XplatUI.cs: Fixed debug statement
23481
23482 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
23483         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23484           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
23485           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
23486           TrackBarRenderer.cs: Make constructor private.
23487         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
23488         * ProfessionalColorTable.cs: Make properties virtual.
23489
23490 2006-08-06  Duncan Mak  <duncan@novell.com>
23491
23492         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
23493         is not changing.
23494
23495 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23496         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23497           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
23498           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
23499           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
23500           Initial import of new 2.0 classes.
23501
23502 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23503         * Application.cs: Add 2.0 VisualStyles properties.
23504
23505 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23506         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23507           XplatUIX11.cs: Create property to allow access to existing private
23508           variable "themes_enabled"
23509
23510 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23511
23512         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
23513         file size, as otherwise our class libraries fail using windows. Fixes
23514         bug #78759.
23515
23516 2006-08-04  Jackson Harper  <jackson@ximian.com>
23517
23518         * Form.cs:
23519         * XplatUIX11.cs: Move the toolwindow window manager creation into
23520         the X11 driver, this way on win32 we can let windows create/handle
23521         the toolwindows.
23522
23523 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23524
23525         * PrintDialog.cs: Remove some redundant checks, add some others,
23526         clean some code, and move the focus to the text boxes when the
23527         values are incorrect.
23528
23529 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
23530
23531         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
23532
23533 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
23534
23535         * NumericUpDown.cs: Setting the Minimum and Maximum is now
23536           handled correctly. Fixes bug #79001.
23537
23538 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23539
23540         * PrintDialog.cs: The "Copies" numeric up down must have
23541         set the Minimum property to 1; only if the value is bigger
23542         than 1, activate "Collate" check box. This is the behaviour of .Net.
23543         Also modify the Document elements only if it is not null.
23544
23545 2006-08-03  Jackson Harper  <jackson@ximian.com>
23546
23547         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
23548         length. (We have a larger array then actual node count).
23549                 
23550 2006-08-03  Jackson Harper  <jackson@ximian.com>
23551
23552         * ComboBox.cs: Don't show selection by default.
23553         - The SelectAll isn't needed here, since the focus code should do
23554         that
23555         - DDL style lists to manual selection drawing, so when they
23556         get/lose focus they have to invalidate.
23557
23558 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
23559
23560         * TextBoxBase.cs: Don't always show all selections by default.
23561
23562 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
23563         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
23564           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
23565           Fixed various typos.
23566
23567 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
23568
23569         * Control.cs: Removing the controls in a ControlCollection with
23570           Clear now hides the controls as expected. Fixes bug #78804. 
23571
23572 2006-08-03  Jackson Harper  <jackson@ximian.com>
23573
23574         * Control.cs: Revert previous focus patch, it breaks reflector.
23575
23576 2006-08-03  Jackson Harper  <jackson@ximian.com>
23577
23578         * ComboBox.cs: Cleanup selection and focus with the combobox.
23579         This also eliminates some duplicated keyboard code, since now
23580         everything is handled by the main class.
23581         - Make list selection work on mouse up instead of down, to match
23582         MS.
23583
23584 2006-08-02  Jackson Harper  <jackson@ximian.com>
23585
23586         * Control.cs: Setting focus needs to go through the whole
23587         selection mechanism.
23588
23589 2006-08-02  Chris Toshok  <toshok@ximian.com>
23590
23591         * PrintPreviewDialog.cs: change MinimumSize to use
23592         base.MinimumSize so it works.
23593
23594 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
23595
23596         * TextControl.cs:
23597           - UpdateCaret: Added sanity check in case caret isn't defined yet
23598           - Line.Delete: Now updating selection and caret markers if we're
23599             transfering a node (Properly fixes #78323)
23600           - SetSelectionEnd: Added sanity check
23601         * TextBoxBase.cs: Removed broken attempt to fix #78323
23602
23603 2006-08-01  Chris Toshok  <toshok@ximian.com>
23604
23605         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
23606         Close() call is handled in Form, not here.
23607
23608 2006-08-01  Chris Toshok  <toshok@ximian.com>
23609
23610         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
23611         layout/rendering.
23612
23613         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
23614         for sizes < 100% zoom.  The code now aggressively attempts to keep
23615         from calling document.Print (), and tries not to use the scaling
23616         g.DrawImage whenever possible (it still does if you scale to >
23617         100%, since usually that involves huge images).
23618
23619         * PrintPreviewControl.cs: hook up the close button.
23620
23621 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
23622         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
23623           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
23624           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
23625           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
23626           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
23627           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
23628           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
23629           Removed [Serializable] for 2.0 Event Handlers.
23630
23631 2006-07-31  Jackson Harper  <jackson@ximian.com>
23632
23633         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
23634         * TextControl.cs: Uncomment out the body of this method.
23635
23636 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
23637
23638         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
23639           standard cursors.
23640
23641 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23642
23643         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
23644           that embed TextBox and need selections visible even if textbox is not
23645           focused to enforce that behaviour.
23646         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
23647           selection drawing
23648
23649 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23650
23651         * TextControl.cs:
23652           - Added new SetSelectionStart/SetSelectionEnd overloads
23653           - Fixed viewport width assignment to be accurate
23654           - Adjusted alignment line shift calculations to allow cursor on right
23655             aligned lines to be always visible at the right border (like MS)
23656         * TextBoxBase.cs:
23657           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
23658           - TextBoxBase_SizeChanged: recalculating canvas on size changes
23659           - CalculateScrollBars: Use ViewPort size instead of window size, to
23660             properly consider space occupied by the border and scrollbars 
23661             (Fixes #78661)
23662           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
23663             calculations; no longer leaves artifacts
23664           - CaretMoved: Adjusted window scrolling to match MS and fixed several
23665             calculation bugs (Still missing right/center align calculations)
23666
23667 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
23668
23669         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
23670           use of both scroll rect and clip rect, as they do the same.
23671
23672 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23673
23674         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
23675           in the event handler (fixes #78912)
23676
23677 2006-07-31  Chris Toshok  <toshok@ximian.com>
23678
23679         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
23680         grid.ListManager.Count, since grid.ListManager might be null.
23681         This of course begs the question "why are we drawing rows for a
23682         grid with no list manager (and therefor no rows)?"  Fixes the
23683         crash in bug #78929.
23684
23685 2006-07-31  Chris Toshok  <toshok@ximian.com>
23686
23687         * RelatedPropertyManager.cs: Don't always chain up to the parent
23688         ctor.  instead, call SetDataSource if the parent's position is !=
23689         -1.  Fixes the crash in #78822.
23690
23691 2006-07-31  Chris Toshok  <toshok@ximian.com>
23692
23693         * DataGrid.cs (get_ListManager): use field instead of property
23694         accessors for datasource and datamember.
23695         (RowsCount): make internal again.
23696         (OnMouseDown): end edits before resizing columns/rows.
23697         (OnMouseUp): restart edits after resizing columns/rows.
23698
23699 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
23700
23701         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
23702           This fixes the situation where the last set cursor is displayed
23703           whenever the mouse is over scrollbars.
23704
23705 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23706
23707         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
23708         Document properties, as well as initial values.
23709
23710 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
23711
23712         * XplatUIWin32.cs (SetBorderStyle): Setting both border
23713           and ClientEdge results in a 3-pixel border, which is
23714           wrong.
23715
23716 2006-07-28  Jackson Harper  <jackson@ximian.com>
23717
23718         * TreeNodeCollection.cs: Fix the clear method.
23719         - Fix the Shrink also
23720
23721 2006-07-27  Jackson Harper  <jackson@ximian.com>
23722
23723         * TreeView.cs: Make sure the visible order is computed when we
23724         attempt to size the scrollbars (for trees that mess with the
23725         scrolling when they shouldn't.
23726         - Make sure to give the scrollbars valid values.
23727
23728 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
23729
23730         * XplatUIX11.cs: Move motion compression code to where it
23731           has less performance impact
23732
23733 2006-07-26  Jackson Harper  <jackson@ximian.com>
23734
23735         * UpDownBase.cs: When the control is selected make the child
23736         controls non selectable, so that a click on them won't do a
23737         focus/unfocus cycle.
23738         - Don't give focus to the text box when the spinner is selected.
23739         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
23740
23741 2006-07-26  Chris Toshok  <toshok@ximian.com>
23742
23743         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
23744         satisfied with this solution.  If the bitmaps are small, we should
23745         just cache them in the PrintPreviewDialog and draw them here.
23746         Also, the layout is broken for the 2-up and 3-up cases.
23747
23748         * Theme.cs: add PrintPReviewControlPaint.
23749
23750         * PrintPreviewDialog.cs: first pass implementation.
23751
23752         * PrintPreviewControl.cs: first pass implementation.  No
23753         scrollbars yet.
23754
23755         * PrintDialog.cs: only validate fields if that particular portion
23756         of the UI is enabled.  Also, set the document's controller to a
23757         PrintControllerWithStatusDialog wrapping the document's print
23758         controller.
23759
23760         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
23761         bring up a SaveFileDialog (i hope we don't want to match the
23762         behavior of the crappy windows file entry) and set the
23763         PrinterSettings.PrintFileName accordingly.
23764
23765 2006-07-26  Jackson Harper  <jackson@ximian.com>
23766
23767         * ContainerControl.cs: Add a field that disables auto selecting
23768         the next control in a container when the container is activated.
23769         * UpDownBase.cs: Don't select the text box when the up down is
23770         selected.
23771
23772 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
23773
23774         * XEventQueue.cs: Added methods for peeking (used for compression
23775           of successive events)
23776         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
23777           mouse move events (fixes #78732)
23778
23779 2006-07-25  Jackson Harper  <jackson@ximian.com>
23780
23781         * UpDownBase.cs: Use an internal class for the textbox so that we
23782         can control focus.  the updown control should always have focus,
23783         if either the text area or the buttons are clicked.
23784         - Send the key messages to the textbox, since it never actually
23785         has focus
23786         - Activate and decativate the textbox caret.
23787
23788 2006-07-24  Jackson Harper  <jackson@ximian.com>
23789
23790         * Control.cs: Use the directed select when selecting a control,
23791         this way the container controls override will get called and the
23792         whole ActiveControl chain will get triggered.  TODO: probably need
23793         to make sure this gets done everywhere instead of the old
23794         Select(Control).
23795         * ContainerControl.cs: Implement the directed Select method to
23796         find and activate the correct child control.    
23797         
23798 2006-07-22  Mike Kestner  <mkestner@novell.com>
23799
23800         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
23801         menu handling code so that clicks without a grab work too.
23802         [Fixes #78914]
23803
23804 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
23805
23806         * FileDialog.cs: Enable the BackButton when dirstack has one element.
23807           Added some small optimizations.
23808
23809 2006-07-21  Matt Hargett  <matt@use.net>
23810
23811         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
23812
23813 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
23814
23815         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
23816           tests pass and match MS in some strange border cases.
23817
23818 2006-07-21  Chris Toshok  <toshok@ximian.com>
23819
23820         * ThemeWin32Classic.cs: handle drawing of the relation links and
23821         parent row buttons.
23822
23823         * Theme.cs: change args to DataGridPaintParentRow.
23824
23825         * DataGrid.cs: Don't use controls for the relation links and
23826         parent buttons, so we have to handle all their interactions in
23827         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
23828         when we're navigating through child tables, so we can reinstate
23829         selection, expanded state, current cell, etc.
23830
23831 2006-07-20  Chris Toshok  <toshok@ximian.com>
23832
23833         * ToolBar.cs: When we redraw a button, for whatever reason,
23834         there's no reason to redraw the entire toolbar.  Also, don't call
23835         Control.Refresh from within Redraw, as it's much heavier than
23836         Invalidate (which is really what we want).
23837
23838 2006-07-20  Chris Toshok  <toshok@ximian.com>
23839
23840         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
23841         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
23842         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
23843         traces from within a debug IBindingList datasource
23844         (in mono/winforms/datagrid) for *days*, I've finally gotten things
23845         to work in a similar fashion.
23846
23847 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23848
23849         * ListBox.cs: Don't call Sort () when setting 
23850         the Sorted property to false (avoid an unnecessary sort).
23851
23852 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23853
23854         * ListControl.cs: DataSource should throw an ArgumentException
23855         instead of a normal exception when the argument is not of the 
23856         correct type.
23857
23858 2006-07-20  Mike Kestner  <mkestner@novell.com>
23859
23860         * Control.cs: add InternalPreProcessMessage to allow us to steal
23861         key events before MWF gets its paws on them.  Adapted from a
23862         suggestion by eno.
23863         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
23864         up/down/left/right navigation. Override the new internal control
23865         method to steal the events since they never make it to WndProc.
23866         * ToolBarButton.cs: don't worry about pushed when setting hilight
23867         since the drawing code prefers pushed to hilight. Invalidate on 
23868         Hilight changes. Fixes #78547 and #78525.
23869
23870 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
23871
23872         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
23873           the canvas size. Fixes #78868
23874
23875 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
23876
23877         * Splitter.cs: Track requested split position until first layout
23878           is performed. Fixes #78871
23879
23880 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
23881
23882         * Application.cs: Removed code that forces 1.x for the version
23883           number if the version started with 0. Not sure why that code was
23884           there and I couldn't find any bugs that indicated we needed it.
23885           Fixes #78869
23886
23887 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
23888
23889         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
23890           ResetDefaults(), just write some output to the console until it's
23891           implemented. Fixes bug #78907 for now. Eliminated two warnings.
23892
23893 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
23894
23895         * PropertyGridView.cs: set StartPosition of drop down forms
23896         so they appear in correct initial spot.  Fixes #78190.
23897
23898 2006-07-19  Mike Kestner  <mkestner@novell.com>
23899
23900         * ThemeWin32Classic.cs: use parent background color when drawing
23901         flat toolbars.  Restructure the conditionals to make sure non-flat
23902         non-Divider toolbars are filled too.  Fixes #78837.
23903
23904 2006-07-19  Mike Kestner  <mkestner@novell.com>
23905
23906         * ListBox.cs: Sort on collection changes even if the handle
23907         isn't created yet.  Fixes #78813.
23908
23909 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23910
23911         * ListControl.cs: DisplayMember should never be null,
23912         and now we assign String.Empty when null is passed to it (this
23913         is the .Net way).
23914
23915 2006-07-17  Mike Kestner  <mkestner@novell.com>
23916
23917         * ListViewItem.cs: restructure Font and subitem Font handling 
23918         to hold a specific font and refer back to owner on null.
23919         Fixes #78761.
23920
23921 2006-07-17  Mike Kestner  <mkestner@novell.com>
23922
23923         * ToolBar.cs: bandaid for side-effect of previous patch which was
23924         discarding explicit heights for non-AutoSize toolbars.  Need to
23925         extend my format tester to deal with AutoSize=false. Fixes #78864.
23926
23927 2006-07-15  Jackson Harper  <jackson@ximian.com>
23928
23929         * LabelEditTextBox.cs:
23930         * TreeView.cs: Use a new LabelEdit class for node editing, this
23931         class automatically 'closes' itself when it gets the enter key or
23932         loses focus.
23933         - Use the client rectangle when setting the trees scrollbars, so
23934         border style is taken into account.
23935         
23936 2006-07-14  Jackson Harper  <jackson@ximian.com>
23937
23938         * TreeNode.cs:
23939         * TreeView.cs: Make the editing work similar to MSs, firing the
23940         events correctly and ending edits correctly.
23941
23942 2006-07-14  Mike Kestner  <mkestner@novell.com>
23943
23944         * ToolBarButton.cs:
23945         * ToolBar.cs: layout restructuring and redraw enhancements to support
23946         formatting changes gracefully, like setting TextAlign, ImageList, 
23947         ButtonSize, and Appearance.  Handles explicit button sizing quirks
23948         of the MS controls.  Things like flat toolbars ignoring button size
23949         but becoming constant sized at the largest button's size.  Normal
23950         toolbars with an image set cannot be shrunk smaller than the image,
23951         but text can be clipped/ignored.
23952         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
23953         is zero.  Seems like DrawString should be smart enough to not put
23954         anything on screen though. Also trim labels and ellipsize at the char
23955         boundary, not word.
23956         Fixes #78711 and #78483.
23957
23958 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23959
23960         * FolderBrowserDialog.cs: Disable "New Folder" button and
23961           "New Folder" contextmenu menuitem if a folder like "My Computer"
23962           is selected.
23963
23964 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23965
23966         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
23967         * FolderBrowserDialog.cs:
23968           - Use MWFConfig to store and read size and position settings
23969           - Added code to create a new folder (button or context menu).
23970             Use TreeView labeledit to change the name of the new folder.
23971
23972 2006-07-14  Jackson Harper  <jackson@ximian.com>
23973
23974         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
23975         when the tree is scrolled we end editing.
23976
23977 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23978
23979         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
23980           Down arrows
23981
23982 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
23983
23984         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
23985         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
23986         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
23987         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
23988         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
23989         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
23990         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
23991         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
23992         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
23993         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
23994         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
23995         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
23996         ListViewItemSelectionChangedEventHandler.cs,
23997         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
23998         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
23999         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24000         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24001         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24002         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24003         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24004         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
24005         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
24006         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24007         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24008         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24009         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24010         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24011         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24012         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24013         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24014         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24015         WebBrowserNavigatingEventHandler.cs, 
24016         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24017
24018 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
24019
24020         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24021         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24022         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24023         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24024         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24025         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24026         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24027         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24028         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24029         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24030         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24031         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24032         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24033         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24034         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24035         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24036         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24037         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24038         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24039         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24040         ListViewItemStates.cs, MaskFormat.cs: Added
24041
24042 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
24043
24044         * PropertyGridView.cs: Fix keyboard navigation of drop down.
24045         Patch from eno for bug 78558.
24046         
24047 2006-07-13  Jackson Harper  <jackson@ximian.com>
24048
24049         * TreeView.cs: When an edit is finished make sure that the
24050         selected node is visible.
24051         - When setting the top/bottom use the scrollbars is_visible, so
24052         everything will be set correctly even if the tree isn't visible
24053         yet.
24054
24055 2006-07-13  Jackson Harper  <jackson@ximian.com>
24056
24057         * ComboBox.cs: Revert the item->index part of my previous patch.
24058         * TreeView.cs: Use LostFocus instead of Leave for detecting when
24059         the edit box has lost focus (duh).
24060         - Just make the edit box not visible when we get return, that will
24061         take the focus, which will call EndEdit
24062         * TreeNode.cs When we start editing, notify the treeview.
24063
24064 2006-07-12  Jackson Harper  <jackson@ximian.com>
24065
24066         * ComboBox.cs: Clear out old items before setting the item list.
24067         This prevents databound controls from having their items added
24068         twice.
24069         - Switch the combobox to use indices whereever possible instead of
24070         using Item's.  This allows usto navigate through lists that have
24071         more then one item with the same string value (ie a, b, b, a).
24072         - Scroll the listboxes scrollbar when a non visible item is
24073         highlighted
24074         - Allow keypress to cycle through all the possible values. For
24075         example if you have b1, b2, b3 and hold down the B key all the
24076         values will be cycled through.
24077         
24078 2006-07-12  Jackson Harper  <jackson@ximian.com>
24079
24080         * TextBoxBase.cs:
24081         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24082         this using the internal methods.
24083         * Control.cs: Add OnGotFocusInternal.  A new method that allows
24084         controls to "override" OnGotFocus and change focus behavior if
24085         needed.
24086         - Same thing for LostFocus
24087         * ComboBox.cs: Pass off focus to the text control properly.
24088
24089 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
24090
24091         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24092         * FolderBrowserDialog.cs: Almost a complete rewrite.
24093           - Better support for Environment.Specialfolders
24094           - Added support for MWFVFS
24095           - Made setting SelectedPath work
24096
24097 2006-07-12  Jackson Harper  <jackson@ximian.com>
24098
24099         * Control.cs: Optimze getting all the controls.
24100
24101 2006-07-11  Jackson Harper  <jackson@ximian.com>
24102
24103         * ContainerControl.cs: Override SETFOCUS in the container control,
24104         so that it is not selected on mouse click.
24105
24106 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
24107
24108         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
24109           Hopefully we will have a better way once all of focus is complete.
24110
24111 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
24112
24113         * ThemeWin32Classic.cs: Commented out some debug code and fixed
24114           a compile error with csc.
24115
24116 2006-07-11  Jackson Harper  <jackson@ximian.com>
24117
24118         * Control.cs: When hiding a control only select the next control
24119         if the current control was focused.
24120         - Don't handle enter/leave when setting/killing focus, this is
24121         done by the container control.
24122         - Remove is_selected, it's not needed anymore.
24123         - Add utility methods for selecting a child control, and for
24124         firing the Enter/Leave events.
24125         * ContainerControl.cs: When a control is activated fire the
24126         enter/leave events.
24127         - Don't wrap when processing the tab key, so that focus can be
24128         moved outside of the container.
24129         - Use the correct active control
24130
24131 2006-07-11  Jackson Harper  <jackson@ximian.com>
24132
24133         * ComboBox.cs: Remove some debug code that was blinding me.
24134         * UpDownBase.cs: These controls actually aren't implicit, they are
24135         visible to the user.
24136
24137 2006-07-10  Chris Toshok  <toshok@ximian.com>
24138
24139         * DataGrid.cs: move back to the is_adding boolean field.  god i
24140         hate this is_editing/is_adding/is_changing stuff.
24141
24142 2006-07-10  Chris Toshok  <toshok@ximian.com>
24143
24144         * DataGridTableStyle.cs: just check if the property type is bool.
24145         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
24146         Don't use CanRenderType.
24147
24148         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
24149         if our text == NullText.  Remove CanRenderType.
24150
24151         * DataGridBoolColumn.cs: nuke CanRenderType.
24152
24153         * DataGrid.cs: reenable some code to end the current edit inside
24154         of set_CurrentCell.  This fixes the other 1.1.16 regression.
24155         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
24156         Also, remove the visible_row_count arg from CalcRowHeaders, since
24157         we don't need to worry about the actual height of the area.
24158
24159 2006-07-10  Chris Toshok  <toshok@ximian.com>
24160
24161         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
24162         mode, just return.
24163
24164         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
24165         the real sense of the IsInEditOrNavigateMode property (true =
24166         navigate, false = edit).  Also, update OnKeyPress to reflect this.
24167
24168         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
24169         column style exists, we still need to set its property descriptor
24170         to match up with our list manager.
24171
24172 2006-07-10  Chris Toshok  <toshok@ximian.com>
24173
24174         * ThemeWin32Classic.cs: implement the new row/header painting
24175         approach.  The parent row painting will likely go away and
24176         replaced with label controls, but the rest seems to work ok (and
24177         efficiently).
24178
24179         * Theme.cs: change the way we draw datagrid rows.  we don't draw
24180         the row headers as a block now.  Instead we draw them in the
24181         normal draw-row loop.  Add some calls for drawing parent rows and
24182         relation rows.
24183
24184         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
24185         a default table style.  Set the defaults from ThemeEngine.Current,
24186         not SystemColors.  Fix lots of misc issues with property setters.
24187
24188         * DataGrid.cs: move loads of style information out of this class
24189         as it's being duplicated with DataGridTableStyle.  keep track of a
24190         special DataGridTableStyle for the properties we used to mirror
24191         here.  Switch all the style properties to access this table style
24192         instead of instance fields of this class.  Also add a internal
24193         class to represent parent rows (more needs to be stored here, like
24194         the selection state from the parent table, as well as the
24195         expansion state.)  Also, for datasources with relations, do the
24196         right thing for collapse/expand, and add support for the
24197         navigation/parent row buttons.
24198
24199         Lastly, fix the crash in the 1.1.16 build.
24200
24201         * GridTableStylesCollection.cs: make the explicit interface
24202         implementations call the class's methods as opposed to duplicating
24203         them.
24204
24205         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
24206         0 so the text doesn't jump around when we move the cursor.
24207
24208 2006-07-10  Jackson Harper  <jackson@ximian.com>
24209
24210         * TextBoxBase.cs:
24211         * ListBox.cs: Match MS's ToString (this makes debugging focus
24212         stuff infinitely easier).
24213
24214 2006-07-10  Jackson Harper  <jackson@ximian.com>
24215
24216         * Control.cs (SelectNextControl): When checking the control's
24217         parent use this instead of ctrl.parent so that null can be passed
24218         to SelectNextControl. (I have unit tests for this).
24219         - Remove unused var.
24220
24221 2006-07-10  Chris Toshok  <toshok@ximian.com>
24222
24223         * CurrencyManager.cs: correct one regression, the removal of the
24224         finalType field.  Also, add a MonoTODO on CanAddRows, implement
24225         Refresh() correctly, and fix some event emission in
24226         ListChangedHandler.
24227
24228 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24229
24230         * FileDialog.cs: Don't use brackets for new folders if they exist
24231           under *nix. Instead use -(number of existing folders +1).
24232
24233 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24234
24235         * FileDialog.cs:
24236           - Fixed really nasty bug #78771
24237           - Don't block the whole GUI when reading directories with a lot of
24238             entries. Use an other thread instead and call BeginInvoke to
24239             update the ListView in MWFFileView
24240
24241 2006-07-07  Chris Toshok  <toshok@ximian.com>
24242
24243         * Control.cs (Dispose): release any Capture when disposing.
24244
24245 2006-07-07  Chris Toshok  <toshok@ximian.com>
24246
24247         * LinkLabel.cs (Select): if we chain up to the parent, set
24248         focused_index to -1 so we'll search for the first available link
24249         the next time the user tabs into us.  Also, if the direction is
24250         backward and focused_index == -1, start the search from the last
24251         element.
24252
24253 2006-07-07  Chris Toshok  <toshok@ximian.com>
24254
24255         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
24256         is beyond the end of the text, don't do anything.
24257         (CreateLinkPieces): set our ControlStyles.Selectable based on
24258         whether or not we have any links.
24259         (Link.Invalidate): use a loop instead of foreach.
24260         (Link.set_Start): null out owner.sorted_links so it'll be
24261         recreated by CreateLinkPieces.
24262
24263 2006-07-06  Chris Toshok  <toshok@ximian.com>
24264
24265         * LinkLabel.cs: revert the SetStyle change.
24266
24267 2006-07-06  Chris Toshok  <toshok@ximian.com>
24268
24269         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
24270         (OnEnableChanged): s/Refresh/Invalidate
24271         (OnGotFocus): if we have a focused index already, refocus it (so
24272         if we mouse out/in to the window it'll focus the right link).
24273         (OnKeyDown): move the tab handling out of here.
24274         (OnLostFocus): don't set focused_index to -1, so we can refocus it
24275         when we lose focus.
24276         (OnMouseDown): don't Capture here - Control handles it.  Also,
24277         focus the active link.
24278         (OnMouseUp): don't deal with Capture.
24279         (OnPaintBackgroundInternal): remove.
24280         (OnTextAlignChanged): CreateLinkPieces before calling the
24281         superclass's method.
24282         (OnTextChanged): call CreateLinkPieces before calling superclass's
24283         method.
24284         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
24285         move around.
24286         (Select): implement this, moving the selection between different
24287         links, and call parent.SelectNextControl if we don't have another
24288         link to focus in the given direction.
24289         (CreateLinkPieces): call Invalidate instead of Refresh.
24290         
24291 2006-07-06  Chris Toshok  <toshok@ximian.com>
24292
24293         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
24294         new LinkLabel internals.
24295
24296         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
24297         over pieces looking for active/focused/etc links.  also, deal with
24298         runs of text (and links) with embedded \n's in them, and use
24299         MeasureCharacterRanges instead of MeasureString to figure out the
24300         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
24301         two-step.
24302
24303 2006-07-04  Jackson Harper  <jackson@ximian.com>
24304
24305         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
24306         XKB or key auto repeat, do it manually.  Without key auto repeat,
24307         when a key is held down we get key press, key release, key press,
24308         key release, ... with auto repeat we get key press, key press, key
24309         press ..., and then a release when the key is actually released.
24310
24311 2006-07-03  Jackson Harper  <jackson@ximian.com>
24312
24313         * TabControl.cs:
24314         * ThemeWin32Classic.cs: Tabs do not obey normal background color
24315         rules, they are always control color regardless of the background
24316         color.
24317
24318 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
24319
24320         * FileDialog.cs: Added internal class MWFConfig.
24321           Removed Registry support and replaced it with support for the new
24322           MWFConfig class. See MWFConfig comments for more information.
24323
24324 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
24325
24326         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
24327           rectangle. Added some patches from eno from bug #78490 and fixed
24328           the arrow position for small up and down CPDrawScrollButtons.
24329
24330 2006-06-30  Jackson Harper  <jackson@ximian.com>
24331
24332         * InternalWindowManager.cs: Remove some debug code.
24333         * Form.cs: When an MdiParent is set to null, the window is
24334         "detatched" and becomes a normal window.
24335         * MdiClient.cs: Don't bring the new child form to the front until
24336         it is activated (setting it as active does this), this makes the
24337         previously active forms titlebar get redrawn as inactive.
24338
24339 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
24340
24341         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
24342           with later controls
24343
24344 2006-06-29  Mike Kestner  <mkestner@novell.com>
24345
24346         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
24347         arrow in keynav state.  Fixes #78682.
24348
24349 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
24350
24351         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
24352           order (fixes #78393)
24353
24354 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
24355
24356         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
24357           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
24358           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
24359           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
24360           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
24361           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
24362           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
24363           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
24364           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
24365           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
24366           enumerations (FlagsAttribute, SerializableAttribute, added/removed
24367           values)
24368
24369 2006-06-28  Mike Kestner  <mkestner@novell.com>
24370
24371         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
24372
24373 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
24374
24375         * PropertyGrid.cs,
24376           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
24377           item lines from other area (It also makes BackColor consistent and
24378           compatible with .NET). Fixed bug #78564.
24379
24380 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
24381
24382         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
24383         Patch from Eno for #78555.
24384
24385 2006-06-27  Chris Toshok  <toshok@ximian.com>
24386
24387         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
24388
24389         * DataGridColumnStyle.cs: same.
24390
24391         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
24392         
24393         * DataGridDrawingLogic.cs: nuke.
24394
24395 2006-06-27  Chris Toshok  <toshok@ximian.com>
24396
24397         * DataGridTableStyle.cs: clean up the constructors, and build the
24398         list of child relations for this table.  I have no idea if this is
24399         where we should be doing it (it probably isn't), but since we're
24400         already iterating over the properties..
24401
24402         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
24403         struct and array for keeping track of row information, similar to
24404         what's shown in a hack on
24405         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
24406
24407         * Theme.cs: be consistent about the naming of DataGrid methods,
24408         prefering ColumnWidths and RowHeights over columnsWidths and
24409         RowsHeights.
24410
24411         * ThemeWin32Classic.cs: same, and also add support for variable
24412         sized rows (and the +/- expansion icons for related rows).
24413
24414 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
24415
24416         * TextBoxBase.cs: Applied Eno's patch from #78660
24417
24418 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
24419
24420         * Form.cs (ScaleCore): We don't want to scale our form if it's
24421           state is minimized or maximized, but we still need to scale our
24422           child windows. Also, added try/finally block to ensure layout
24423           gets reset (Fixes #78697)
24424
24425 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
24426
24427         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
24428
24429 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
24430
24431         * Form.cs: Fixed c+p error and added check to resize form if minimum
24432           size is bigger than current size (Fixes #78709)
24433
24434 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
24435
24436         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
24437
24438 2006-06-26  Mike Kestner  <mkestner@novell.com>
24439
24440         * ComboBox.cs: only do Keypress handling in the combo when there  
24441         are items in the collection. Fixes #78710.
24442
24443 2006-06-26  Chris Toshok  <toshok@ximian.com>
24444
24445         * Binding.cs: make this work bi-directionally.  also, clear up
24446         other mixups between Push/Pull Data (e.g. we're supposed to pull
24447         data when validating).
24448
24449         * BindingManagerBase.cs: trim some fully qualified collection
24450         types.
24451
24452         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
24453
24454 2006-06-23  Chris Toshok  <toshok@ximian.com>
24455
24456         * PropertyManager.cs: It appears (according to the unit tests)
24457         that PropertyManager doesn't use
24458         PropertyDescriptor.AddValueChanged to track propery value changes
24459         in its datasource, but uses the same scheme as Binding, where it
24460         looks for a <Property>Changed event and binds to it.
24461
24462         Also, according to the docs, IsSuspended always returns false for
24463         a property manager with a non-null datasource.
24464
24465 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
24466
24467         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
24468           need to update the actual DialogResult. (Fixes #78613)
24469
24470 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
24471
24472         * Form.cs (ShowDialog): Release any captures before running the
24473           new message pump (fixes #78680)
24474
24475 2006-06-22  Mike Kestner  <mkestner@novell.com>
24476
24477         * ListView.cs: Layout column widths properly in details mode even 
24478         if HeaderStyle.None is set.  Fixes #78691.
24479
24480 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
24481
24482         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
24483
24484 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
24485
24486         * Control.cs (ContainsFocus): Using new driver method to get focused
24487           window, instead of trying to use internal tracking var, which can
24488           recursion issues (Fixes #78685)
24489         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
24490           XplatUIWin32.cs: Added GetFocus method to return focused window
24491
24492 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24493
24494         * ColorDialog.cs: when the mouse button is pressed inside the color
24495         matrix, don't let the cursor move out of it until the button is
24496         released, which is the behavior on windows. Changed 'colours' by
24497         'colors' to use the same word consistently.
24498
24499 2006-06-21  Chris Toshok  <toshok@ximian.com>
24500
24501         * DataGrid.cs: add in some basic navigation stuff (navigating to a
24502         child relation and back, using a stack).  Also, remove
24503         GetDataSource and the code that calls it - it's not needed.  Also,
24504         track CurrencyManager.ListName's removal.
24505
24506 2006-06-21  Chris Toshok  <toshok@ximian.com>
24507
24508         * CurrencyManager.cs: push some of the original type checking from
24509         BindingContext.CreateBindingManager to here, and remove some of
24510         the finalType stuff.  Need more tests to make sure I've got the
24511         ListName part right, and we might need more in SetDataSource.
24512
24513         * PropertyManager.cs: add a ctor that takes just the datasource,
24514         and no property name.  Make SetDataSource work with a null
24515         property_name, and make Current return the data_source if the
24516         property descriptor is null.  this makes 'string foo = "hi";
24517         BindingContext[foo].Current' return "hi" as it should.
24518
24519         * RelatedCurrencyManager.cs: make this code more generic - there's
24520         no reason the parent manager has to be CurrencyManager, and
24521         there's no reason to pass the DataRelation.  It suffices to use a
24522         BindingManagerBase and PropetyDescriptor.
24523
24524         * RelatedPropertyManager.cs: make a similar change here.
24525         
24526         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
24527         flower I knew it could be.
24528
24529 2006-06-20  Chris Toshok  <toshok@ximian.com>
24530
24531         * PropertyManager.cs: the PropertyChangedHandler is invoked when
24532         data in the source has changed and we need to update the control,
24533         so s/PullData/PushData.
24534
24535         * CurrencyManager.cs: Refresh is meant to update the control from
24536         data in the datasource.  So, s/PullData/PushData.
24537
24538         * BindingContext.cs: add more ugliness (we weren't handling the
24539         case where data_source = DataTable and data_member = column_name).
24540
24541         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
24542         from the perspective of the datasource.  PullData pulls from the
24543         control, PushData pushes to the control.
24544
24545 2006-06-20  Chris Toshok  <toshok@ximian.com>
24546
24547         * BindingContext.cs: rewrite the CreateBindingManager code to
24548         handle navigation paths more or less properly.  This could
24549         definitely stand some more work, in particular to push the
24550         recursion up to the toplevel.  But that relies on fixes in other
24551         places (System.Data comes to mind).
24552
24553         Also, move to a flat hashtable (and encode the twolevel nature of
24554         the dictionary into the hash key).  This lets us implement the
24555         IEnumerable.GetEnumerator method.
24556
24557         * RelatedCurrencyManager.cs: new class.  Update our view based on
24558         our relation and our parent CurrencyManager's position.
24559
24560         * CurrencyManager.cs: split out some logic from the ctor into
24561         SetView, so it can be called from the new RelatedCurrencyManager
24562         subclass.
24563
24564         * RelatedPropertyManager.cs: new class.  Update our datasource
24565         based on the position of our parent CurrencyManager.
24566
24567         * PropertyManager.cs: split out some logic from the ctor into
24568         SetDataSource, so it can be called from the new RelatedDataSource
24569         subclass.  Also, make the Current getter return the value
24570         of the PropertyDescriptor, not the data_source.
24571
24572         * Binding.cs: no need to duplicate the string splitting code here.
24573
24574 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
24575
24576         * Control.cs:
24577           - set_Enabled: OnEnabledChanged is not called if the inherited state 
24578             of the control is not altered, even though  we might be changing the
24579             internal state of the control (#78458)
24580           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
24581             OnEnabledChanged, to allow easy altering of any child window state
24582           - OnEnabledChanged: Added code to enable/disable driver window state
24583           - OnParentEnabledChanged: Instead of firing the event, call 
24584             OnEnabledChanged, which will fire the event and also a) set driver
24585             window state and pass the enabled state to any grandchildren (#78458)
24586
24587 2006-06-19  Jackson Harper  <jackson@ximian.com>
24588
24589         * InternalWindowManager.cs: We don't set the cursor explicitly
24590         thats done via the response to NCHITTESTs.
24591         - Don't need to adjust for titlebar heights anymore, the
24592         coordinates are coming in the correct coordinates now (see peters
24593         last patch).
24594
24595
24596 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
24597
24598         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
24599           being translated relative to whole window, instead of client window.
24600           That caused broken offsets on mouseclick (and caused gas for our
24601           InternalWindowManager)
24602
24603 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
24604
24605         * TextControl.cs:
24606           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
24607           - Undo(): Added replay of cursor move on DeleteChars action; added
24608             calling Undo() again if a recorded cursor move is invalid (to
24609             ensure that some action is performed on Undo)
24610         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
24611
24612 2006-06-16  Jackson Harper  <jackson@ximian.com>
24613
24614         * MdiClient.cs: Instead of just sizing maximized windows when
24615         there is a resize we also have to adjust the Y of minimized
24616         windows, so they stay pinned to the bottom of the mdi container.
24617         - Eliminate separate tracking of the active control, we can just
24618         get this from the controls collection.
24619         - Paint the decorations for the newly activated titlebar so we get
24620         a pretty blue bar.
24621         * InternalWindowManager.cs:
24622         * ThemeWin32Classic.cs: Minimized windows get all three buttons
24623         even if they are a tool window.
24624         
24625 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
24626
24627         * TextControl.cs (Undo): Handle non-existent cursor locations in the
24628           undo buffer, these can happen when text was deleted and the cursor
24629           was recorded first. Since we will also have a recorded cursor
24630           after the delete this is not an issue. (Fixes #78651)
24631
24632 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
24633
24634         * AccessibleObject.cs: Remove dependence on Control.is_selected;
24635           instead properly track control states internally (allows us to
24636           remove is_selected from Control)
24637
24638 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24639
24640         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
24641         whose width is not a multiple of 8.
24642
24643 2006-06-13  Jackson Harper  <jackson@ximian.com>
24644
24645         * MdiClient.cs:  Only maximize the next child if the current one
24646         is maximized.
24647
24648 2006-06-13  Chris Toshok  <toshok@ximian.com>
24649
24650         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
24651         modified.  Also, guard against grid or grid_drawing being null in
24652         Invalidate.
24653
24654         * DataGrid.cs: Reformat tons of getters/setters.  In the
24655         DataMember setter, just call SetNewDataSource instead of
24656         duplicating some of its functionality.  In SetNewDataSource, don't
24657         check ListManager for null, since the property getter creates the
24658         object if needed.
24659
24660         * DataGridTableStyle.cs: don't set TableStyle or call
24661         SetDataGridInternal on the column here, it's done in
24662         GridColumnStylesCollection.Add.
24663
24664         * GridColumnStylesCollection.cs: fix all the explicit interface
24665         implementations to just call our methods.  Nuke AddInternal() and
24666         move the body of it to Add().  Also, add a call to
24667         column.SetDataGridInternal to Add().
24668
24669         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
24670         base()+duplicate code.  Also, use the Format property instead of
24671         format to generate an Invalidate ala MS.  Lastly, create the
24672         textbox here, unconditionally.
24673         (set_Format): call Invalidate.
24674         (get_TextBox): no need to call EnsureTextBox.
24675         (Commit): remove the message box.
24676         (Edit) remove the call to EnsureTextBox.
24677         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
24678         (EnterNullValue): no need to check textbox for null.
24679         (HideEditBox): no need to check textbox for null.
24680         (SetDataGridInColumn): add the textbox to the grid's controls.
24681         (EnsureTextBox): nuke.
24682         
24683 2006-06-13  Jackson Harper  <jackson@ximian.com>
24684
24685         * MdiWindowManager.cs: Hook up to the maximized menus paint event
24686         and redraw the buttons when needed. Unhook when the window is
24687         unmaximized.
24688         * MainMenu.cs: Add an internal Paint event, the mdi window manager
24689         needs this so that it can redraw its buttons when the menu is
24690         repainted.
24691         * InternalWindowManager.cs:
24692         * Form.cs: The method order has changed for DrawMaximizedButtons,
24693         so that it can be a PaintEventHandler.
24694         
24695 2006-06-13  Jackson Harper  <jackson@ximian.com>
24696
24697         * MdiClient.cs: When we close a maximized mdi window, the next mdi
24698         window is activated and maximized, even if it wasn't before.
24699         - When  a new window is activated repaint the decorations of the
24700         old one, so that it no longer has the Active "look" (the blue
24701         titlebar).
24702         * InternalWindowManager.cs: Open up CreateButtons to base classes
24703         so they can recreate the buttons on state changes.
24704         - If a window is maximized give it all three buttons
24705         * MdiWindowManager.cs: Create the titlebar buttons when the state
24706         is changed, this is needed because a toolwindow will not have all
24707         three buttons until it is maximized.
24708
24709 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
24710
24711         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
24712           Fixed bug #78609.
24713
24714 2006-06-12  Jackson Harper  <jackson@ximian.com>
24715
24716         * KeysConverter.cs: Make sure we handle the Ctrl special case
24717         if its the only key.
24718         
24719 2006-06-12  Jackson Harper  <jackson@ximian.com>
24720
24721         * Theme.cs: Add a method to get the size of a managed window
24722         toolbar button.
24723         * InternalWindowManager.cs: Remove the ButtonSize property, this
24724         should be retrieved from the theme.
24725         * MdiWindowManager.cs: Get the button size from the theme
24726         * ThemeWin32Classic.cs: Make the method to get the managed window
24727         titlebar button size public.
24728         - Handle the different button sizes of maximized toolwindows
24729         (should match any maximized window).
24730         - Get the titlebar height from the theme, not the WM (which gets
24731         it from the theme).
24732
24733 2006-06-12  Jackson Harper  <jackson@ximian.com>
24734
24735         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
24736         event down to the mdi window manager.
24737         - Expose some extra stuff to base classes
24738         - Make sure to end the Capture on an NC Mouse up, so that we can
24739         get double clicks properly, and the sizing doens't stick.
24740         - When doing PointToClient contain it in the workable desktop
24741         area, this prevents windows from changing size when the cursor is
24742         pulled outside of the working area while sizing.
24743         * MdiWindowManager.cs: When we get a double click maximize the
24744         window.
24745         - Reset the cursor after handling mode changes.
24746
24747 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
24748
24749         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
24750           current desktop, instead of just assuming a 0, 0 origin. This
24751           is needed for our internal window manager, to know the top
24752           margin of the desktop
24753
24754 2006-06-12  Chris Toshok  <toshok@ximian.com>
24755
24756         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
24757         we need this to get rid of the selected background in the bool
24758         column.
24759         (CancelEditing): move the ConcedeFocus call to above the Abort
24760         call.  Also, set is_changing to false and invalidate the row
24761         header if we were changing before.
24762         (ProcessKeyPreviewInternal): remove, since noone outside this
24763         class calls it anymore.  Roll the code into ProcessKeyPreview.
24764         (EndEdit): remove the internal version.
24765         (InvalidateCurrentRowHeader): make private.
24766
24767         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
24768         Keys.Escape handling (and with it the last call to
24769         DataGrid.EndEdit from outside the class.)
24770
24771
24772 2006-06-12  Chris Toshok  <toshok@ximian.com>
24773
24774         * DataGridTextBox.cs (.ctor): isedit defaults to false.
24775         (OnKeyPress): set isedit to true.
24776         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
24777         already handled by the grid.
24778
24779         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
24780         right.  ugh.
24781         (set_DataSource): SetDataSource always returns true, so stop
24782         putting it in an if statement.
24783         (EndEdit): get rid of some {}'s
24784         (ProcessGridKey): return true in case Keys.Escape.
24785         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
24786         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
24787         PositionChanged, stopped connecting to CurrentChanged.
24788         (GetDataSource): simplify this a bunch.
24789         (SetDataSource): change return type from bool to void.
24790         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
24791         to this, and make sure we don't set ListManager.Position inside
24792         set_CurrentCell.
24793         (OnListManagerItemChanged): if we're passed an actual index,
24794         redraw that row.
24795
24796         * CurrencyManager.cs (set_Position): don't call PullData here.
24797
24798 2006-06-09  Jackson Harper  <jackson@ximian.com>
24799
24800         * TreeNode.cs:  Recalculate the visible order before doing the
24801         Expand/Collapse Below calls, because those calls generate an
24802         expose.
24803         - Reduce calls to the TreeView property, which is mildly expensive
24804         by using a local var.
24805         * Form.cs: Layout the MDI child windows when creating the parent
24806         form.
24807         - Don't use the internal constructor anymore
24808         * MdiClient.cs: use the parent form width/height (if available)
24809         when laying out the child windows, we do this because the
24810         mdiclient isn't docked yet when the initial layout is done.
24811         - Don't need an internal constructor anymore.
24812
24813 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24814
24815         * FileDialog.cs: handle access errors when trying to create a folder
24816         or changing to a directory. No need to initialize out parameters.
24817
24818 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24819
24820         * FileDialog.cs: Append a number when creating a new folder if the
24821           folder already exists (use parenthesis instead of square brackets)
24822
24823 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24824
24825         * FileDialog.cs:
24826           - Disabled registry support for windows and added better registry
24827             error checking for other systems (need to investigate why it
24828             works perfectly on my system)
24829           - If a folder already exist show an error MessageBox instead of
24830             trying to create an indexed name.
24831           - Fixed a non intentional typo.
24832
24833 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24834
24835         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
24836
24837 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24838
24839         * FileDialog.cs: When creating a new folder don't crash if the
24840           folder already exists.
24841
24842 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24843
24844         * FileDialog.cs: Allmost a complete rewrite.
24845           - added a "virtual" file system that handles the differences
24846             between unix and windows file systems (especially the directory
24847             structure). Moved most of the directory and file handling code
24848             into the vfs.
24849             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
24850             UnixFileSystem and FSEntry.
24851           - Recently used folder/directory, size, location and used file names
24852             (file name ComboBox) are now stored in the registry and get read
24853             before the dialog shows up (fixes part 6 of bug #78446).
24854           - Creation of new folders/directories is now possible (context menu
24855             or ToolBar). Added TextEntryDialog for this that fills in the gap
24856             until ListView.LabelEdit works.
24857           - Fixed cursor handling (bug #78527) and focus handling for
24858             PopupButtonPanel
24859           - Various "Search in" ComboBox enhancements. The content of the
24860             dropdown listbox now almost matches ms.
24861           - Changed the behaviour when the user switches to SpecialFolder
24862             Recent to show the ListView in View.Details.
24863           - Beside using the ToolBar to change the View property of the
24864             file ListView it is now possible to use the context menu too.
24865
24866 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24867
24868         * ComboBox.cs: Don't create a new ObjectCollection when an item
24869           gets inserted. Just insert the item in the existing object_items
24870           ArrayList.
24871
24872 2006-06-08  Jackson Harper  <jackson@ximian.com>
24873
24874         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
24875         that the treeview and root node checks are done also, this fixes a
24876         regression i caused in the unit tests.
24877
24878 2006-06-07  Wade Berrier <wberrier@novell.com> 
24879
24880         * RichTextBox.cs: More ISO8859-1 -> unicode
24881
24882 2006-06-07  Mike Kestner  <mkestner@novell.com>
24883
24884         * ComboBox.cs : use items to hold highlight/selection so that
24885         collection insertions don't require synchronization.
24886
24887 2006-06-07  Jackson Harper  <jackson@ximian.com>
24888
24889         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
24890         routine.  We now always keep the sized edge at the cursor instead
24891         of computing movement and adjusting rects.  There is one buglet
24892         with this method though when the cursor is moved over area that
24893         the window can not expand too (such as the toolbars on the desktop).
24894
24895 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24896
24897         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
24898         here. Fixes crash on startup in AlbumSurfer.
24899
24900 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
24901
24902         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
24903           values
24904
24905 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24906
24907         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
24908         statement to avoid calling XNextEvent which will block if another thread
24909         took the event that we were expecting. Fixes bug #78605.
24910
24911 2006-06-07  Mike Kestner  <mkestner@novell.com>
24912
24913         * ListView.cs : isolated checkbox clicking from the selection logic.
24914         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
24915
24916 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24917
24918         * Form.cs: Check that the value passed to Form.DialogResult
24919         is a valid enum value.
24920
24921 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24922
24923         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
24924         Computer'. Clicking it in the network view goes to 'My Computer'.
24925         Added CIFS filesystem type. Display the mount point of filesystems.
24926         Avoid duplicate mount points (happens for me with CIFS);
24927
24928 2006-06-06  Jackson Harper  <jackson@ximian.com>
24929
24930         * InternalWindowManager.cs: Draw the maximized windows buttons
24931         when resizing.
24932
24933 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24934
24935         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
24936         all other dialogs. Fixes bug #78585.
24937
24938 2006-06-06  Mike Kestner  <mkestner@novell.com>
24939
24940         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
24941         Only invalidate checkbox on checkstate changes to avoid flicker.
24942         * ListBox.cs : avoid unselect/select when clicking selected item.
24943         avoid reselection flicker for already multiselected items.
24944         Fixes #78382.
24945
24946 2006-06-06  Jackson Harper  <jackson@ximian.com>
24947
24948         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
24949         the parent form so that the menu is removed if needed.
24950
24951 2006-06-06  Mike Kestner  <mkestner@novell.com>
24952
24953         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
24954         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
24955
24956 2006-06-06  Mike Kestner  <mkestner@novell.com>
24957
24958         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
24959
24960
24961 2006-06-06  Jackson Harper  <jackson@ximian.com>
24962
24963         * Control.cs: Use the property (instead of the field) to get the
24964         default cursor so it is instantiated correctly.
24965         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
24966         resizes so we need to manually repaint the window decorations here.
24967         - Set the titlebar button locations as soon as they are created,
24968         otherwise they are not set correctly on win32.
24969         
24970 2006-06-06  Chris Toshok  <toshok@ximian.com>
24971
24972         * CurrencyManager.cs (set_Position): call PullData before
24973         OnCurrentChanged.
24974         (AddNew): after calling IBindingList.AddNew, update our
24975         listposition, and call OnCurrentChanged/OnPositionChanged (without
24976         calling PullData).
24977         (OnCurrentChanged): remove the call to PullData from here.
24978         (OnItemChanged): remove the call to PushData from here.
24979         (OnPositionChanged): change the test from == null to != null to
24980         match the other methods.
24981         (ListChangedHandler): the grossest part of the patch.  Implement
24982         this such that it passes the unit tests in CurrencyManagerTest and
24983         the output more or less matches that of MS's implementation.
24984  
24985 2006-06-06  Mike Kestner  <mkestner@novell.com>
24986
24987         * ListView.cs : only update check state on single click.
24988         * ThemeWin32Classic.cs : fix focus drawing for details view without
24989         fullrowselect.  Fixes #78454.
24990         * XplatUIX11.cs : fix for double click emission.
24991
24992 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
24993
24994         * PropertyGridView.cs : Applied Atsushi's patch to fix
24995         font dialog bug  (#78197).
24996
24997 2006-06-05  Jackson Harper  <jackson@ximian.com>
24998
24999         * TreeNode.cs: Compute the next node for expanding/collapsing
25000         correctly. We now factor in nodes without a NextNode
25001         correctly. (Fixes somes cases in nunit-gui).
25002         * InternalWindowManager.cs: Set the bounds when updating the
25003         virtual position of a tool window.
25004         
25005 2006-06-05  Chris Toshok  <toshok@ximian.com>
25006
25007         * DataGrid.cs: rename cached_currencymgr to list_manager.
25008         (set_CurrentCell): move SetCurrentCell code here, and clean it up
25009         some.
25010         (CurrentRow, CurrentColumn): single accessors so we can make the
25011         cursor movement code a lot easier to understand.
25012         (CurrentRowIndex): implement this in terms of CurrentRow.
25013         (BeginEdit): clean this up a bit.
25014         (CancelEditing): sort out the is_editing/is_changing/is_adding
25015         stuff a little.
25016         (EndEdit): minor changes.
25017         (OnKeyDown): add a comment about a (most likely) unnecessary
25018         check.
25019         (OnMouseDown): cancel editing when we click on a row header.  And
25020         use the CurrentRow setter, not CurrentCell.
25021         (ProcessDialogKey): directly call ProcessGridKey.
25022         (UpdateSelectionAfterCursorMove): factor out this common block of
25023         code (it's used everywhere that we move the cursor by updating row
25024         or column).
25025         (ProcessGridKey): pretty substantial overhaul.  Use the
25026         CurrentRow/CurrentColumn properties to make the code a lot more
25027         readable.  Only use the CurrentCell property when we have to
25028         modify both row and column at once.  Tab behavior is still broken,
25029         and Delete is untested.
25030         (Select): if we have no selected rows, set selection_start to
25031         @row.
25032         (EditCurrentCell): rename EditCell this.  It was only ever invoked
25033         with CurrentCell as the arg, so drop the arg and rename it.
25034
25035         * DataGridColumnStyle.cs: clean up the constructors a little, and
25036         drop CommonConstructor().
25037
25038         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25039         actually get notified when the user hits it.
25040         (ProcessKeyMessage): *substantially* simplify this method.
25041         There's no reason (that I can see) for the textbox to be making
25042         calls into the datagrid at all.  Remove all of them but the ones
25043         for Enter handling.  those will take some more work.
25044
25045         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25046         calling HideEditBox.
25047         (HideEditBox): if we have an active textbox, render it invisible
25048         without causing a re-layout of the datagrid.
25049
25050 2006-06-05  Mike Kestner  <mkestner@novell.com>
25051
25052         * ListView.cs : fix NRE crasher when focuseditem is cleared by
25053         collection changes by resetting it to Items[0].  Fixes #78587.
25054
25055 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25056
25057         * MessageBox.cs: if the height of the text is larger than the icon_size,
25058         use that. Fixes bug #78575.
25059
25060 2006-06-05  Jackson Harper  <jackson@ximian.com>
25061
25062         * TreeView.cs: Fix line drawing when scrolling.  To do this each
25063         node is basically responsible for drawing its entire horizontal
25064         area.  When drawing a node it draws its parent node lines if
25065         needed.
25066         - Adjust the clip area to the viewport rectangle
25067         - Fix Left/Right key handling to match MS. (It expand/collapses
25068         and moves to parents/first child but does not move selection to
25069         sibling nodes).
25070         - Fix SetTop to work with new bound calculation code
25071         - When scrollbars are no longer needed we need to reset scrolling
25072         vars and recalculate the visible order so the redraw is correct
25073         * TreeNode.cs: We can't expand/collapse nodes with no children.
25074
25075 2006-06-03  John Luke  <john.luke@gmail.com> 
25076
25077         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25078         so the colors work without dev packages
25079         
25080 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
25081
25082         * Control.cs 
25083           - Select: Implemented to just use activate. Seems to match MS 
25084             behaviour closest. Documented to only do actual control walking 
25085             based on it's parameters if in a container control so I moved 
25086             the code there.
25087           - Removed selection check logic from our internal Select() method
25088         * ContainerControl.cs:
25089           - Select: Moved selection logic from Control here, since MS documents
25090             that containers obey the bool arguments. No longer calling base
25091
25092 2006-06-02  Jackson Harper  <jackson@ximian.com>
25093
25094         * TreeView.cs: If the selected node isn't changed when we get
25095         focus update the previously selected node so that we see the
25096         selection box.
25097
25098 2006-06-02  Mike Kestner  <mkestner@novell.com>
25099
25100         * ComboBox.cs: restructure grab and general mouse event handling.
25101         Make the composite control raise mouse events like it was a single
25102         control for leaves/enters/motion/up/down events.  fix dropdown list
25103         coordinate mangling and refactor it into the scrollbar subclass to
25104         reduce code duplication.  Fixes #78282 #78361 and #78457.
25105
25106 2006-06-02  Mike Kestner  <mkestner@novell.com>
25107
25108         * ScrollBar.cs: remove Capture setting/clearing, as it happens
25109         automatically in the Control.WndProc.
25110
25111 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25112
25113         * FileDialog.cs: fix crash when running SharpChess, which sets the
25114         FilterIndex to 2 with only one Filter.
25115
25116 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25117
25118         * ToolBar.cs: add SizeSpecified property.
25119         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25120         try to figure out our real size, otherwise fallback to what the
25121         container says.
25122
25123 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25124
25125         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25126         * Control.cs (WndProc): MS always calls the DefWndProc to pass
25127           up the event
25128
25129 2006-06-01  Mike Kestner  <mkestner@novell.com>
25130
25131         * ListView.cs: revamp the focus management in ListView.  It still
25132         causes churn of LostFocus/GotFocus emissions on clicks, but it's
25133         better than not handling focus at all.  Will revisit when pdb feels
25134         the general focus handling is solid.  Fixes #78526.
25135
25136 2006-06-01  Jackson Harper  <jackson@ximian.com>
25137
25138         * TreeView.cs: Set the default border style in the constructor.
25139         - Move painting to use OnPaintInternal instead of capturing
25140         WM_PAINT, this is the correct way of doing things
25141         - UpdateBelow shouldn't invalidate the scrollbar area
25142         - Cap the top on update below in case the node was above the top
25143         of the viewport rectangle.
25144         - ExpandBelow and Collapse below need to obey Begin/End Update.
25145         * TreeNode.cs: Make is_expanded internal so the treenode
25146         collection can change it without firing the whole event chain.
25147         * TreeNodeCollection.cs: When clearing all the child nodes make
25148         sure to recalc the visible order.
25149         - Improve algo for remove the top node
25150
25151 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25152
25153         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
25154           SendMessage directly calling window procedures, which in turn might
25155           call SetFocus()
25156
25157 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
25158
25159         * Control.cs: Don't handle WM_SETFOCUS if the same window already
25160           has focus (works around X11 sending a FocusIn after our SetFocus)
25161         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
25162
25163 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
25164
25165         * Mime.cs: Fix for the NET_2_0 build.
25166           NameValueCollection needs StringComparer now.
25167
25168 2006-05-31  Chris Toshok  <toshok@ximian.com>
25169
25170         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
25171         return (via an out parameter) the starting X of the column.
25172         (UpdateVisibleColumn): track change to FromPixelToColumn.
25173         (HitTest): add a ColumnResize case here.
25174         (DrawResizeLine): new function, probably poorly named.
25175
25176         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
25177         only need to keep one reference.
25178         (set_ListManager): same.
25179         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
25180         Also, add support for HitTestType.ColumnResize.
25181         (OnMouseMove): add column resize behavior here, and change the
25182         cursor to the correct one as we move around the datagrid.
25183         (OnMouseUp): terminate the column resize if we're resizing.
25184         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
25185         for the current cell.
25186         (ConnectListManagerEvents): use cached_currencymgr.
25187         (DisconnectListManagerEvents): fill this in, using
25188         cached_currencymgr.
25189         (SetCurrentCell): remove cached_currencymgr_events handling.
25190         (SetDataMember): only call DisconnectListManagerEvents if
25191         cached_currencymgr is != null.
25192         (SetDataSource): same.
25193         (OnListManagerCurrentChanged): cached_currencymgr_events ->
25194         cached_currencymgr.
25195
25196 2006-05-31  Jackson Harper  <jackson@ximian.com>
25197
25198         * BindingManagerBase.cs: Remove somedebug code that creeped into
25199         SVN.
25200         * TreeNode.cs: We get the indent level dynamically right now, so
25201         don't track it as a member.
25202         * TreeNodeCollection.cs: Make sure all nodes added to the list
25203         have parents, treeviews/topnodes setup properly.
25204         - Don't attempt to track indent level.
25205
25206 2006-05-30  Jackson Harper  <jackson@ximian.com>
25207
25208         * BindingContext.cs: Create the currency manager tables here.
25209         This allows us to more easily create null tables (when bad data
25210         members are used), and more easily create related currency
25211         managers.
25212         * CurrencyManager.cs: All the table creation stuff is done by the
25213         binding context now.
25214         - Current should throw an exception if listposition is -1.
25215         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
25216         been bound yet.
25217
25218 2006-05-30  Mike Kestner  <mkestner@novell.com>
25219
25220         * ListView.cs: allow reexpansion of zero-width column headers.
25221         Fixes #78528.
25222
25223 2006-05-28  Chris Toshok  <toshok@ximian.com>
25224
25225         * CurrencyManager.cs (get_Current): after the late binding
25226         listposition = -1 fix, we need to guard against it here and return
25227         null, otherwise we raise an exception (which is swallowed
25228         elsewhere, and breaks datagrid databinding.)
25229
25230 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25231
25232         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
25233           than WM_SYSKEY, don't throw if get something unexpected (#78507)
25234
25235 2006-05-26  Jackson Harper  <jackson@ximian.com>
25236
25237         * ControlPaint.cs:
25238         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
25239         values, it's faster and it's all we care about (we don't care if
25240         the names aren't equal).
25241         * KeyboardLayouts.cs: Eliminate some dead code.
25242         - Lazy init things
25243         * X11Keyboard.cs: Lazy init keyboard detection.
25244         - Cleanup access modifiers a little.
25245
25246 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25247
25248         * XplatUIX11.cs: Once again, attempting to get layout just right.
25249
25250 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
25251
25252         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
25253           the sizes of each link section, that will result in sizes that
25254           match DrawString's layout (Fixes #78391)
25255
25256 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
25257
25258         * FileDialog.cs: If AddExtension property is true autocomplete the
25259           extensions in SaveFileDialog correctly. Fixes bug #78453.
25260           Set MyNetwork and MyComputer to "C:\" for windows. This should
25261           fix part 8 of bug #78446 for now.
25262
25263 2006-05-26  Chris Toshok  <toshok@ximian.com>
25264
25265         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
25266         invalidate the current row header if we need to, but presumably
25267         we'll invalidate the row corrsponding to the bounds or
25268         editingControl.
25269         (GridHScrolled): switch back to this method, as it's part of the
25270         public api.  *sigh*.
25271         (GridVScrolled): same.
25272         (OnMouseWheel): hack up something that more or less works.  Call
25273         GridHScrolled/GridVScrolled directly, instead of duplicating much
25274         of their code here.
25275         (EnsureCellVisibility): reinstate a bunch of this code, since we
25276         can't just set the scrollbar Value and expect to do all the work
25277         in the ValueChanged handler.  Also, Call Update() after scrolling
25278         in one direction so the other XplatX11.ScrollWindow call has the
25279         proper stuff in the proper places.
25280         (EditCell): set is_editing to true before calling .Edit.
25281
25282         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
25283         don't bother comparing first.
25284         (OnKeyPress): call grid.ColumnStartedEditing before calling
25285         base.OnKeyPress.  this will set is_changing and invalidate the row
25286         header if necessary.
25287         (ProcessKeyMessage): for WM_CHAR messages, call
25288         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
25289         and WM_KEYDOWN.
25290         
25291         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
25292         it's done in the DataGrid.
25293         (NextState): call grid.ColumnStartedEditing, which takes care of
25294         invalidating the row header (and setting is_changing).
25295
25296         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
25297         here.  it's done in the DataGrid.
25298
25299 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25300
25301         * Control.cs: allow changing the cursor when the mouse position is
25302         out of bounds but Capture is set.
25303         * LinkLabel.cs: handle the case when the mouse button is pressed on the
25304         linklabel but released somewhere else.
25305
25306 2006-05-25  Jackson Harper  <jackson@ximian.com>
25307
25308         * TreeView.cs: When we get focus if there is no selected node make
25309         it the top node
25310         - Remove some uneeded setup code from Draw.
25311         * TreeNodeCollection.cs: If the tree doesn't have a top node when
25312         a new node is inserted make the new node the top.
25313         * XplatUIX11.cs:
25314         * Timer.cs: Use Utc time so that no local time zone stuff needs to
25315         be used (should be faster).
25316         
25317 2006-05-25  Chris Toshok  <toshok@ximian.com>
25318
25319         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
25320         problem with the last commit.
25321
25322 2006-05-25  Chris Toshok  <toshok@ximian.com>
25323
25324         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
25325         need the invalidate call here, while scrolling right-to-left via
25326         the left arrow key (i.e. moving the editing cell while scrolling).
25327
25328         * DataGrid.cs (.ctor): remove the initialization of
25329         ctrl_pressed/shift_pressed.  We no longer track them using key
25330         up/down handlers, but by using Control.ModifierKeys.  Also, switch
25331         to using ValueChanged handlers on the scrollbars instead of
25332         Scrolled event handlers.  This simplifies a bunch of the scrolling
25333         code.
25334         (GridHValueChanged): rename from GridHScrolled, and change it to
25335         work with the new event args.
25336         (GridVValueChanged): same.
25337         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
25338         (OnMouseWheel): actually scroll the datagrid.  Don't change the
25339         selected cell.
25340         (ProcessGridKey): correct all the keyboard navigation stuff I
25341         could find.  Ctrl up/down/left/right/home/end work now.
25342         (EnsureCellVisibility): correct method name spelling.  Also,
25343         simplify this a touch by not explicitly calling the
25344         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
25345         scrollbar value.
25346         (OnKeyUpDG): no need for this method now.
25347         
25348 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25349
25350         * LinkLabel.cs: display the OverrideCursor when hovering the label.
25351         Fixes bug #78392.
25352
25353 2006-05-25  Chris Toshok  <toshok@ximian.com>
25354
25355         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
25356         r61019.
25357
25358 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
25359
25360         * Application.cs: Moved setting of is_modal and closing to before
25361           we create the control, to allow the event handlers called as a
25362           result of creation affect closing. Also removed Gonzalo's previous
25363           change to setting DialogResult, the behaviour has been moved to 
25364           Form.ShowDialog()
25365         * Form.cs: 
25366           - ShowDialog(): Removed explicit creation of the form, let RunLoop
25367             handle it instead
25368           - ShowDialog(): If no dialog result is set, we need to return Cancel
25369           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
25370             the close is cancelled
25371
25372 2006-05-25  Jackson Harper  <jackson@ximian.com>
25373
25374         * StatusBar.cs: We only need to update the sizes of the other
25375         panels when we have auto size contents.  Also we are only updating
25376         the contents of the panel, not the borders, so compensate for the
25377         border width (TODO: get this width from the theme somehow).
25378         * TreeView.cs: Scrollable is true by default
25379         - Use invalidate instead of refresh where needed
25380         - Factor the scrollable value into scrollbar updating
25381         - Update the scrollbars if the Scrollable property is altered
25382         - Update the selected node if its ImageIndex is changed
25383         - Handle null nodes in UpdateNode (mainly so we don't have to
25384         check if selected is null when updating it
25385         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
25386         are factored into the visible count
25387         - Use VisibleCount for clarity in the code
25388         - When the font is changed we need to recurse through all the
25389         nodes and invalidate their sizes
25390         
25391 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25392
25393         * Application.cs: set the DialogResult to fixed when the main form is
25394         hidden or destroyed while being modal.
25395
25396 2006-05-25  Miguel de Icaza  <miguel@novell.com>
25397
25398         * Theme.cs: Use Tangoified messagebox icons. 
25399
25400         (GetSizedResourceImage): Also cope with width = 0 and do not
25401         trigger a warning in that case (0 means "give me your icon from
25402         the resouce, no special size needed).
25403
25404 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
25405
25406         * Application.cs: Leave runloop if the the main modal form is 
25407           hidden (fixes #78484)
25408
25409 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
25410
25411         * BindingContext.cs : reject null datasource in Contains() and
25412           Item[].
25413         * CurrencyManager.cs : check data_member validity when data_source
25414           is dataset. When it is late binding, the initial position is -1.
25415
25416 2006-05-24  Jackson Harper  <jackson@ximian.com>
25417
25418         * TreeNodeCollection.cs: Dont't recalculate the visible order on
25419         inserted nodes that aren't visible.  This changes the
25420         max_visible_order which confuses scrollbar settings.
25421         - Use the enumerator to get the prev node instead of duplicating
25422         code.
25423         * TreeView.cs: Use new method for setting scrollbar values
25424         - Don't set the bounds every time the scrollbar is updated
25425         - When updating below the root node use an invalidate instead of a
25426         refresh to prevent the child controls (scrollbars) from being
25427         refreshed. (UpdateBelow still needs to be reworked anyways).
25428         - Reenable SetBottom now that visible orders are set correctly,
25429         added some debug code incase we ever get bad values there again.
25430         - Set the scrollbar max to 2 less then the max value, this
25431         compensates for the max value being one above the node count, and
25432         for scrollbars adding one extra "notch".
25433         - When drawing image nodes if there is an imagelist we draw the
25434         first image in the list if the supplied image index is out of the
25435         image list's bounds.
25436         
25437 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
25438
25439         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
25440           we receive a size change from the WM (Fixes #78503)
25441
25442 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
25443
25444         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
25445           rectangle (Fixes #78501)
25446
25447 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
25448
25449         * ButtonBase.cs: 
25450           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
25451             as a bitfield.
25452           - Fixed MouseMove to no longer switch pressed state unless the left
25453             mouse button is pressed. Atsushi provided the original patch (#78485)
25454           
25455 2006-05-24  Jackson Harper  <jackson@ximian.com>
25456
25457         * ScrollBar.cs: New internal methods that allow us to change a
25458         couple values on the scrollbar (the most common case is maximum
25459         and large change) without getting multiple invalidates.
25460
25461 2006-05-24  Chris Toshok  <toshok@ximian.com>
25462
25463         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
25464         (Edit): save off the original state in oldState, and set
25465         grid.is_editing to true.
25466         (OnKeyDown): abort editing if escape is pressed.  also, call
25467         NextState if space is pressed.
25468         (OnMouseDown): call NextState.
25469         (NextState): factor out shared code from OnKeyDown and OnMouseDown
25470         here.  Also, only invalidate the row header once (on the initial
25471         is_changing switch) to save on redraws.
25472
25473 2006-05-24  Chris Toshok  <toshok@ximian.com>
25474
25475         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
25476         if the value in the cell is different than it was before.  This
25477         keeps us from triggering a layout when we move around a datarid
25478         with a highlighted cell.
25479         (Edit): suspend layout when creating/positining the text box, and
25480         resume passing false so we don't ever actually re-layout.
25481         (ReleaseHostedControl): same.
25482         (EnsureTextBox): reformat slightly, and set WordWrap to false.
25483
25484         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
25485         control-key sequences should go to the datagrid - remove that
25486         lock.  Also, modify the conditions under which we move between
25487         cells when moving the cursor within a cell, and remove the "this"
25488         and "base" from field accesses.  We weren't even consistent, given
25489         they all were in the base class.
25490
25491 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
25492
25493         * Binding.cs : (.ctor)
25494           An obvious NRE fix for BindingTest.CtorNullTest().
25495
25496 2006-05-23  Chris Toshok  <toshok@ximian.com>
25497
25498         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
25499         them between lines.  This fixes some quirks editing cells in the
25500         datagrid.
25501
25502 2006-05-23  Jackson Harper  <jackson@ximian.com>
25503
25504         * TreeView.cs: Use begin/end update when doing expand/collapse all
25505         so that we don't get flicker on the scrollbar.
25506
25507 2006-05-23  Jackson Harper  <jackson@ximian.com>
25508
25509         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
25510         treenode calculations to be independant of the painting code. To
25511         do this nodes track a visible order which is calculated by the
25512         treeview.
25513         - Call new methods for expanding/collapsing nodes.  These methods
25514         use scrollwindow so we don't have to update everything below the
25515         node.
25516         * TreeView.cs: Refactored drawing and scrolling code.  We don't
25517         need to update nodes when drawing anymore or calculate scrollbar
25518         stuff.
25519         - Added new methods for expanding/collapsing nodes. These methods
25520         use ScrollWindow so as to not have to redraw all the nodes below.
25521         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
25522         we add/remove nodes or sort.
25523         - Handle removing the selected and the top node properly.
25524
25525 2006-05-23  Chris Toshok  <toshok@ximian.com>
25526
25527         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
25528         maybe this should actually happen in the datagrid code?
25529         (EndEdit): no need to invalidate anything, given that
25530         ReleaseHostedControl causes the datagrid to relayout, which
25531         invalidates everything anyway.
25532
25533         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
25534         in SetCurrentCell).
25535         (set_SelectionBackColor): call InvalidateSelection instead of
25536         Refresh.
25537         (set_SelectionForeColor): same.
25538         (BeginEdit): Flesh this out a bit.
25539         (CancelEditing): only do any of this if we're editing/adding.
25540         (EndEdit): same.
25541         (OnMouseDown): there's no need to cancel editing here, it's done
25542         in SetCurrentCell.
25543         (SetCurrentCell): only invalidate the current row header if it's a
25544         different row than the new one.
25545         (ShiftSelection): fix this to work like MS does.
25546         (ResetSelection): factor out the invalidation of selected_rows to
25547         InvalidateSelection.
25548         (SetDataSource): cancel any editing that's going on.
25549
25550         * DataGridColumnStyle.cs
25551         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
25552         call the non-interface version.
25553
25554         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
25555         header rectangle with the clip rectangle so we don't redraw the
25556         entire header for just a small area.  Gets rid of the last flicker
25557         when horizontally scrolling.
25558         (DataGridPaintRow): same.
25559
25560 2006-05-23  Mike Kestner  <mkestner@novell.com>
25561
25562         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
25563         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
25564         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
25565         Critical bug report.
25566
25567 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
25568
25569         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
25570           and this fixes #78493
25571
25572 2006-05-23  Miguel de Icaza  <miguel@novell.com>
25573
25574         * Theme.cs (GetSizedResourceImage): Scale images if the proper
25575         size is not found.  
25576         
25577         * FileDialog.cs: Do not change the background for the side bar as
25578         it wont work nicely with the theme, and also reduces the artifacts
25579         in rendering the icons (which I want to fix too).
25580
25581         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
25582         resources, not resgen resources. 
25583
25584         (PlatformDefaultHandler): Pull images using the new API.
25585
25586 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
25587
25588         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
25589           a reference to the hwnd and will not remove it unless there are
25590           no pending exposures (fixes #78341)
25591         * XplatUI.cs: Improved debug
25592
25593 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
25594
25595         * MenuAPI.cs : don't handle OnClick event when it was not the left
25596           button. Fixed bug #78487.
25597
25598 2006-05-23  Mike Kestner  <mkestner@novell.com>
25599
25600         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
25601         prefer submenus to the top menu for item lookup, to avoid popping down
25602         top-row items.
25603
25604 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
25605
25606         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
25607           Graphics.FillRectangle as the visual results are really bad (even
25608           on win). We now draw perfect arrows (and perfect shadows when the
25609           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
25610           Pen.DashPattern to draw the dots of each line.
25611
25612 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
25613
25614         * FileDialog.cs: Update the filename combobox when navigating through
25615           the ListView with the cursor keys. Fixes part 7 of bug #78446.
25616
25617 2006-05-22  Mike Kestner  <mkestner@novell.com>
25618
25619         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
25620         Fixes #78463.
25621
25622 2006-05-22  Mike Kestner  <mkestner@novell.com>
25623
25624         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
25625         requests. Fix a misspelled parameter and a copy paste exception error
25626         in Select.
25627
25628 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
25629
25630         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
25631           to get the same width/height (5/13) on X11 as the default font has on
25632           win32. This means that our DefaultFont emSize is smaller than the 
25633           the MS SWF equivalent (even thought the width/height stays the same)
25634
25635 2006-05-20  Jackson Harper  <jackson@ximian.com>
25636
25637         * MdiClient.cs:
25638         * MdiWindowManager.cs:
25639         * InternalWindowManager.cs: Make sure to use the border width from
25640         the theme.
25641
25642 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
25643
25644         * PrintDialog.cs: Implements printer details
25645
25646 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
25647
25648         * FileDialog.cs: Added focus handling for PopupButtonPanel.
25649           Fixes part 1 and 2 of bug #78446
25650
25651 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
25652
25653         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
25654           instead of sticking to the first ever calculated value
25655
25656 2006-05-19  Mike Kestner  <mkestner@novell.com>
25657
25658         * ComboBox.cs: fix mouse motion selection to use MousePosition and
25659         PointToClient, since Capture is set. Fixes #78344.
25660
25661 2006-05-19  Mike Kestner  <mkestner@novell.com>
25662
25663         * ListView.cs: match MS behavior in Details view where items are not
25664         drawn if Columns.Count == 0. 
25665         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
25666         Use a separate pen to draw the check, since changing the width affects
25667         the box as well.  Fixes #78454.
25668
25669 2006-05-18  Miguel de Icaza  <miguel@novell.com>
25670
25671         * ListView.cs: ArgumentOutOfRangeException, single versions of the
25672         exception should throw the name of the invalid argument.
25673
25674         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
25675         there are no files listed. 
25676
25677 2006-05-18  Jackson Harper  <jackson@ximian.com>
25678
25679         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
25680         up.
25681
25682 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
25683
25684         * Control.cs: Brought back our old UpdateZOrder method as a private
25685           function and switched our calls from UpdateZOrder to the new one.
25686           This fixes the Paint.Net canvas disappearing bug.
25687
25688 2006-05-18  Jackson Harper  <jackson@ximian.com>
25689
25690         * Theme.cs:
25691         * ThemeWin32Classic.cs:
25692         * InternalWindowManager.cs: Move the drawing into the theme,
25693         expose everything the theme should need from the window manager.
25694
25695 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
25696
25697         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
25698           from the call to NativeWindow to avoid walking up the parent chain
25699           further than needed (speeds up setting cursors and avoids setting
25700           the wrong cursor if a parent has another cursor defined)
25701         * Cursor.cs: When loading an icon as cursor, MS uses the center of
25702           the icon as hotspot, not what's contained as hotspot in the icon
25703           file. This fixes the perceived drawing offset seen with Paint.Net
25704         
25705 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
25706
25707         * XplatUIX11.cs: 
25708           - Store the calculated rectangle in Hwnd object and use it when 
25709             setting the client size
25710           - Force Toolwindows to always be type Dock, to ensure they're on top
25711
25712 2006-05-18  Mike Kestner  <mkestner@novell.com>
25713
25714         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
25715         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
25716         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
25717         Substantial refactoring to remove confusing nested classes. Coding
25718         standard and Get+Set->property refactorings.  Shift to index based
25719         highlighting in ComboListBox instead of constantly using IndexOf and
25720         Items[]. Add invalidations on resize for DropDownList to fix ugliness
25721         in FileDialog growth.  Draw borders manually since Simple mode needs
25722         to look like two independent controls.  Make listbox border
25723         conditional to DropDownStyle.  Improved OwnerDraw support.
25724
25725 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
25726
25727         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
25728         Don't set the disposed graphics to null, so we can throw the "right"
25729         exception if the graphics is reused later (added a flag to avoid 
25730         double disposing). Some behaviours are different under 2.0 and are
25731         filled under bug #78448.
25732
25733 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
25734
25735         * Control.cs: When double-buffering is enabled, we need to reset
25736           our graphics context between paint calls. Otherwise, any 
25737           transformations and other alterations on the context will 
25738           become cumulative (#77734)
25739
25740 2006-05-18  Mike Kestner  <mkestner@novell.com>
25741
25742         * ListView.cs: do focused item selection like MS on clicks. 
25743         Rework focus handling for ItemControl so LostFocus invalidates as
25744         well.
25745         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
25746         the ListView ItemControl has focus.
25747
25748 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
25749
25750         * XplatUIX11.cs: If client_window ends up being width or height zero
25751           due to border settings, move it off window inside whole_window (#78433)
25752
25753 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
25754
25755         * Mime.cs: Shrink the mime file cache correctly.
25756
25757 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
25758
25759         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
25760
25761 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25762
25763         * XplatUIX11.cs (AddExpose): More sanity checks
25764
25765 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25766
25767         * XplatUIX11.cs:
25768           - AddExpose: Don't add expose ranges outside the size of our
25769             window
25770           - Cast opacity values to Int32 to avoid crashes with certain
25771             values
25772           - Added disabled code paths that protect against illegal cross-
25773             thread painting (Developers.exe)
25774
25775 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25776
25777         * ProgressBar.cs: Invalidate the control when it's resized
25778           since block size is based on control size. (#78388)
25779
25780 2006-05-16  Miguel de Icaza  <miguel@novell.com>
25781
25782         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
25783         of setting the incoming argument to the "reset" value, we set the
25784         this.datamember to string.empty (before we were invalidating the
25785         incoming data).   
25786
25787         Fixes 78420
25788
25789 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25790
25791         * Form.cs: Only apply transparency settings after the form
25792           is created. (Fixes #77800)
25793
25794 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25795
25796         * ApplicationContext.cs: Grab the HandleDestroyed event so
25797           we know when to fire OnMainFormClosed 
25798
25799 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25800
25801         * Application.cs: Introduced sub-class to allow tracking of
25802           threads and centralized triggering of the event mess for
25803           ThreadExit, AppExit, etc..  (#76156)
25804
25805 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
25806
25807         * MimeIcon.cs:
25808           - Do not return a null icon index value for a mime subclass.
25809             Instead try the main mime type class too.
25810           - Seems that some newer distributions don't have a link to some
25811             gnome default icons anymore. So check the default gnome dir too.
25812           
25813
25814 2006-05-16  Jackson Harper  <jackson@ximian.com>
25815
25816         * MdiClient.cs: Don't paint the parent background image if we have
25817         our own background image.
25818
25819 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25820
25821         * Control.cs:
25822           - PerformLayout: Do not shrink space filled by DockStyle.Fill
25823             controls, all filled controls are supposed to overlap (#78080)
25824           - UpdateZOrder is supposed to update the control's z-order in the
25825             parent's z-order chain. Fixed to behave like that
25826           - BringToFront: Removed obsolete code
25827           - SendToBack: Simplyfied
25828           - SetChildIndex: Trigger layout calculations when Z-order changes
25829             since layout is done by z-order
25830
25831 2006-05-16  Chris Toshok  <toshok@ximian.com>
25832
25833         [ fixes bug #78410 ]
25834         * DataGrid.cs (set_AlternatingBackColor): use
25835         grid_drawing.InvalidateCells instead of Refresh().
25836         (set_BackColor): call grid_drawing.InvalidateCells.
25837         (set_BackgroundColor): use Invalidate instead of Refresh.
25838
25839         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
25840         invalidate the cell area.
25841
25842 2006-05-15  Chris Toshok  <toshok@ximian.com>
25843
25844         [ fixes bug #78011 ]
25845         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
25846         on to DataGridPaintRow.
25847         (DataGridPaintRow): take a clip argument, and only draw the cells
25848         which intersect it.  same with the not_usedarea.
25849
25850         * Theme.cs (DataGridPaintRow) add @clip parameter.
25851
25852         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
25853         XplatUI.ScrollWindow.
25854         (ScrollToRow): same.
25855
25856         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
25857         with last column which was causing a gray swath to appear with the
25858         XplatUI.ScrollWindow code.
25859
25860 2006-05-15  Chris Toshok  <toshok@ximian.com>
25861
25862         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
25863         use XplatUI.ScrollWindow.
25864         (VerticalScrollEvent): use XplatUI.ScrollWindow.
25865
25866 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
25867
25868         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
25869
25870 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
25871
25872         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
25873           file since there are no equivalent X11 cursors
25874
25875 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
25876
25877         * MonthCalendar.cs : DateTimePicker should reflect selected date
25878           on mouse*up*, not mouse*down*. Fixed originally reported part of
25879           bug #76474.
25880
25881 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
25882
25883         * TabControl.cs : When argument index is equal or more than tab
25884           count, just ignore. Fixed bug #78395.
25885
25886 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
25887
25888         * Control.cs: Dispose all child controls when control is diposed (#78394)
25889
25890 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25891
25892         * ColorDialog.cs: Finally it is possible to select the color with
25893           the text boxes
25894
25895 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25896
25897         * PrintDialog.cs: Fix typo
25898
25899 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25900
25901         * PrintDialog.cs: PrintDialog is not resizable
25902         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
25903           color. Made some ToolBar drawing methods protected virtual.
25904
25905 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
25906
25907         * PrintDialog.cs: Implementation of the PrintDialog
25908
25909 2006-05-12  Chris Toshok  <toshok@ximian.com>
25910
25911         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
25912         thumb, instead use MoveThumb.  This has the side effect of making
25913         most of the other thumb moving machinery use MoveThumb as well.
25914         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
25915         need to actually invalidate the rectangle where the new thumb will
25916         go.
25917         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
25918         We force an Update() after, so it's not as fast as it could be,
25919         but at least there's zero flicker and no droppings.
25920         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
25921         (UpdateThumbPos): add another argument (dirty), which says whether
25922         or not to calculate/add dirty regions which we later invalidate.
25923         For cases where we know we're going to use MoveThumb, we pass
25924         false for this.  Otherwise, pass true.
25925
25926 2006-05-12  Jackson Harper  <jackson@ximian.com>
25927
25928         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
25929         the status bar.
25930         
25931 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
25932
25933         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
25934           and GetClipRegion methods and UserClipWontExposeParent property.
25935         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
25936           overriding UserClipWontExposeParent property, setting to false, since
25937           Win32 handles the required expose messages to draw our clipped parent
25938           areas internally
25939         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
25940           PaintEventStart to set the user clip region if set.
25941         * Control.cs: 
25942           - Now internally tracking the Region for the control since we need to
25943             store it if the handle is not yet created and only set it when it
25944             becomes created. Before setting the region forced handle creation
25945           - Added code to draw the parents underneath a user-clipped region
25946         * Hwnd.cs: Added UserClip property
25947
25948 2006-05-12  Chris Toshok  <toshok@ximian.com>
25949
25950         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
25951         (set_Maximum): same.
25952         (set_Minimum): same.
25953         (set_SmallChange): same.
25954         (OnMouseUpSB): remove the call to refresh when releasing the
25955         thumb.  We shouldn't need it.
25956         
25957 2006-05-12  Miguel de Icaza  <miguel@novell.com>
25958
25959         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
25960         AutoSize set to None, we do not need to relayout everything, we
25961         just need to invalidate the current region.
25962
25963         (Draw): Do not draw the entire ClientArea, just redraw the
25964         clip area being passed.
25965
25966         * MdiClient.cs: Make MdiClient constructor with the Form argument
25967         internal. 
25968
25969 2006-05-12  Jackson Harper  <jackson@ximian.com>
25970
25971         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
25972         parents background image,  but strangely not their own.
25973         - (DrawStatusBarPanel): Take into account horizontal alignment
25974         when drawing the strings and icons.
25975
25976 2006-05-12  Mike Kestner  <mkestner@novell.com>
25977
25978         * ListBox.cs: avoid invalidations for focus when the collection is
25979         empty. 
25980
25981 2006-05-12  Chris Toshok  <toshok@ximian.com>
25982
25983         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
25984         invalidate the entire thumb area.  Call InvalidateDirty which
25985         limits the redraw to the thumb itself and surrounding pixels.
25986
25987         * XplatUIX11.cs (ScrollWindow): optimize copying.
25988         
25989 2006-05-12  Chris Toshok  <toshok@ximian.com>
25990
25991         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
25992         Figure out the positioning/layout in a single pass instead of
25993         multiple recursive invocations.  Speeds up the initial display of
25994         the data grid.  Also, make many things private that were
25995         originally public but unused outside this class.
25996
25997 2006-05-11  Jackson Harper  <jackson@ximian.com>
25998
25999         * MdiClient.cs: Improved layout code.
26000
26001 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
26002
26003         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26004           not SelectedObject.
26005
26006 2006-05-11  Chris Toshok  <toshok@ximian.com>
26007
26008         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26009         union of that will always be {0,0,width,height}.
26010
26011 2006-05-11  Jackson Harper  <jackson@ximian.com>
26012
26013         * Form.cs: Match MS's DefaultSize for forms (they must have
26014         changed the size in sp2).
26015
26016 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26017
26018         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26019
26020 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26021
26022         * TextControl.cs : Fixed bug #78109. This incorrect position
26023           comparison caused crash on automatic line split.
26024         * TextBoxBase.cs : reduce duplicate code.
26025
26026 2006-05-10  Jackson Harper  <jackson@ximian.com>
26027
26028         * MdiClient.cs: Active form is only sent to the back when using
26029         the Next form functionality, when a form is clicked the current
26030         active shouldn't be sent to the back.
26031         - Layout the mdi windows when the container is first made visible.
26032         * Form.cs: Give the MdiClient a ref to the containing form when we
26033         create it.
26034         
26035 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26036
26037         * LinkLabel.cs : link_font could be uninitialized, so populate one
26038           before actual use. Fixed bug #78340.
26039
26040 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26041
26042         * XplatUIX11.cs : clipboard format native value is IntPtr.
26043           Fixed bug #78283.
26044
26045 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26046
26047         * Control.cs: 
26048           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
26049             which is passed up the parent chain by DefWndProc
26050           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
26051             to DefWndProc (#77956)
26052         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26053
26054 2006-05-10  Jackson Harper  <jackson@ximian.com>
26055
26056         * MdiClient.cs: We need to remove the controls from the mdi
26057         collection, when we close the window.
26058         * MdiWindowManager.cs: Special handling of closing mdi windows.
26059         * InternalWindowManager.cs: Make the close method virtual so the
26060         mdi window manager can handle it specially.
26061
26062 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
26063
26064         * DataGrid.cs:
26065           - Recalculate grid when the data source has changed
26066           - Matches styles provided by user from all data sources types
26067         * DataGridTableStyle.cs: For columns that provided by the user set the
26068         with the preferred value is there was unassigned.
26069         * CurrencyManager.cs: throw OnItemChanged event
26070
26071 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
26072
26073         * PictureBox.cs: Don't animate until handle is created. Start animation
26074           when handle is created.
26075
26076 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26077
26078         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26079           current codebase.
26080         * XEventQueue.cs: We don't need to provide the extra info
26081
26082 2006-05-10  Jackson Harper  <jackson@ximian.com>
26083
26084         * MdiClient.cs: If the mdi clients parent form has a background
26085         image set, we draw that background image for the mdi area's
26086         background.
26087
26088 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26089
26090         * TextBoxBase.cs: Set IBeam cursor (#78347)
26091
26092 2006-05-10  Mike Kestner  <mkestner@novell.com>
26093
26094         * ToolBar.cs: fix some text padding issues with ButtonSize
26095         calculation. Update the default size to match MS documentation.
26096         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26097         button size. Fixes #78296.
26098
26099 2006-05-10  Mike Kestner  <mkestner@novell.com>
26100
26101         * ListBox.cs: use is_visible for scrollbar positioning in case the
26102         control isn't on screen yet.  Fix off by one with Right vs Width
26103         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26104         
26105 2006-05-10  Jackson Harper  <jackson@ximian.com>
26106
26107         * X11Dnd.cs: Drop to a control with another control on top of it.
26108         * ToolBar.cs: Work on a copy of the buttons list, so that it can
26109         be modified in click handlers. TODO: Look for similar problems in
26110         other controls.
26111
26112 2006-05-09  Jackson Harper  <jackson@ximian.com>
26113
26114         * Form.cs: Window managers need the old window state when setting
26115         window state now.
26116         * InternalWindowManager.cs: Allow the base mdi window manager to
26117         handle more of the MDI only stuff (like maximize buttons).
26118         * MdiWindowManager.cs: Fix some snafus in changing the window
26119         state.  Add all the menu functionality, for both popup and
26120         maximized menus.
26121         * MdiClient.cs: When a new form is selected the currently
26122         activated form is sent to the back, this matches MS.
26123         - Implement a new method to activate the next mdi child window.
26124
26125 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
26126
26127         * Control.cs: 
26128           - Added new InternalCapture method to allow controls to prevent
26129             the capture behaviour on the click handlers
26130           - Switched to use InternalCapture
26131         * ComboBox.cs:
26132           - Using InternalCapture to prevent mouse captures from being released
26133             on mouse button release (Fixes #78100)
26134         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
26135           returns Form borders if a caption is present. (Fixes #78310)
26136
26137 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
26138
26139         * TreeNode.cs: Changed serialization .ctor to not require every field
26140           to be present. (#78265)
26141         * OwnerDrawPropertyBag.cs: Added serialization .ctor
26142
26143 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
26144
26145         * MimeIcon.cs: for is faster than foreach for strings.
26146
26147 2006-05-05  Mike Kestner  <mkestner@novell.com>
26148
26149         * CheckedListBox.cs: update check handling code to not use selected.
26150         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
26151         behavior for visual feedback, motion response, shift/ctrl handling,
26152         and properly deal with all 4 selection modes. Updates to bounds
26153         handling logic.  Add scroll wheel support. [Fixes #77842]
26154
26155 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26156
26157         * ListView.cs:
26158           - Moved adding of Implicit controls into .ctor. That way, subsequent
26159             creation of the controls will not cause them to think they are 
26160             toplevel windows (fixes #78200 header problem)
26161           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
26162           - Switched visibility setting of header control to use internal field
26163             to avoid triggering handle creation
26164           - Now checking if handle is created before causing a refresh when items
26165             are added (This makes us now match handle creation time with MS)
26166         * Splitter.cs: Removed loading of private splitter cursor, switched to
26167           Cursors version now that that is loading the right ones
26168         * Cursors.cs: Load proper splitter cursors from resources
26169         * Cursor.cs: Added second method of loading resource cursors for the 
26170           VS.Net users amongst us
26171
26172 2006-05-05  Mike Kestner  <mkestner@novell.com>
26173
26174         * ListView.cs: give header_control a minimum size based on the
26175         ListView size.
26176
26177 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26178
26179         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
26180           window seems to do that with metacity, so set that type. (#78120)
26181
26182 2006-05-05  Mike Kestner  <mkestner@novell.com>
26183
26184         * ListViewItem.cs: fix Details mode checkbox layout bug.
26185         * ThemeWin32Classic.cs: draw a ListView column header for unused space
26186         at the end of the header, if it exists. [Fixes for #78200]
26187
26188 2006-05-04  Jackson Harper  <jackson@ximian.com>
26189
26190         * MdiClient.cs: Add a helper property to get the container form.
26191         * MdiWindowManager.cs: We have to make sure to use the menu origin
26192         when drawing the icons and buttons, this fixes maximized window
26193         icons/buttons on win32.
26194         * InternalWindowManager.cs: Reset the restore captions when a
26195         window goes from Maximized to Minimized and vice versa. Move the
26196         DrawMaximizedButtons into the MdiWindowManager source, tool
26197         windows can't be maximized. NOTE: This could use a little
26198         refactoring if time ever permits.
26199         
26200 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26201
26202         * TextBox.cs: Add MWFCategoryAttributes
26203         * TextBoxBase.cs: Add MWFCategoryAttributes
26204         * Form.cs: Add MWFCategoryAttributes
26205
26206 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26207
26208         * Control.cs: Add MWFCategoryAttributes
26209         * ScrollableControl.cs: Add MWFCategoryAttributes
26210
26211 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
26212
26213         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
26214           Divider is true. Fix a little glitch in PropertyToolBar
26215           drawing code
26216
26217 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
26218
26219         * Control.cs:
26220           - Dispose: Call base.Dispose, this causes the disposed event
26221             to be fired (and probably other, more important stuff)
26222           - SetVisibleCore: Set is_visible to true after creating the
26223             window so that the window still gets created invisible (if
26224             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
26225             to generate a WM_ACTIVE message
26226         * Form.cs: Call Dispose when we want to destroy the window, instead of
26227           just destroying the handle (Dispose will do that for us)
26228         * XplatUIX11.cs:
26229           - RootWindow also needs a queue, so we can properly process the
26230             property change events from RootWindow (like Activate)
26231           - Generatic synthetic WM_ACTIVE message when the active window is
26232             being destroyed
26233
26234 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26235
26236         * LinkLabel.cs: Trigger a recalc of our label dimensions when
26237           bounds are changed
26238
26239 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
26240
26241         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
26242           for determining width and height (image might not be assigned if
26243           we're drawing an imagelist)
26244
26245 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26246
26247         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
26248         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
26249           height from system
26250         * Theme.cs: No longer returns hardcoded menu height, instead calls
26251           new driver method
26252         * Form.cs (OnLoad): Scaling happens before triggering Load events 
26253           on MS (# 78257)
26254
26255 2006-05-01  Mike Kestner  <mkestner@novell.com>
26256
26257         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
26258
26259 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
26260
26261         * TextBoxBase.cs: Removed Fixme
26262         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
26263
26264 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
26265
26266         * XplatUIX11.cs:
26267           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
26268             the rectangle relative to the parent, considering borders. We
26269             don't really want that.
26270           - ScrollWindow: Fixed warning to be more understandable
26271         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
26272           scrollbars and scroll only the visible area
26273         * RichTextBox.cs: Removed debug output
26274
26275 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26276
26277         * NumericUpDown.cs (Text): Just use base
26278         * UpDownBase.cs: Ensure txtView is created before using it
26279
26280 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
26281
26282         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
26283           casting to IntPtr to avoid 64bit overflow errors
26284
26285 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26286
26287         * Control.cs:
26288           - AllowDrop: Don't force handle creation.
26289           - CreateHandle: Added call to tell driver if we're allowed to drop
26290
26291 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26292
26293         * FileDialog.cs: Remember the last directory not only for the
26294           current instance but also for new FileDialog instances.
26295
26296 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
26297         
26298         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
26299           broke sending async messages
26300
26301 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26302
26303         * XplatUIX11.cs:
26304           - ScrollWindow: Fixed method. We finally generate expose events again
26305             for scrolled areas. This was causing 'garbage' when scrolling
26306             textbox and other controls that used ScrollWindow
26307           - Switched from using the regular queue for paint events to the MS 
26308             model of 'generating' paint events when the queue is empty.
26309             We use the new XQueueEvent.Paint subclass to store which windows
26310             need painting.
26311           - AddExpose now takes the x/y/width/height of the exposed area
26312             and inserts the window into the paint queue if not already there
26313           - InvalidateWholeWindow: Switched to use new AddExpose method
26314           - UpdateMessageQueue: Added which queue to monitor for paint events
26315           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
26316             the unlikely case nothing above handles it. We reset the expose
26317             pending states to get them off the queue.
26318           - GetMessage: Now pulls a paint event if no other events are in the
26319             queue
26320           - Invalidate: Switched to new AddExpose method
26321           - PeekMessage: Updated to understand pending paint events
26322           - UpdateWindow: Fixed logic bug. We were only updating if the window
26323             didn't need updating. Also switched to sending WM_PAINT directly,
26324             like MS does.
26325         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
26326           and random access Remove(). The random access is needed to handle
26327           UpdateWindow() where a WM_PAINT is sent directly without accessing
26328           the queue.
26329         * ScrollBar.cs: Added Update() calls to cause immediate updates to
26330           allow for better feedback when scrolling. Scrollbars are small and
26331           the immediate update should make it 'feel' more responsive without
26332           slowing things down. ScrollBar still needs it's invaliate logic
26333           updated to not always invalidate the whole bar on certain changes.
26334
26335 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26336
26337         * Control.cs:
26338         (BackColor): if the control does not support a transparent background,
26339         return the default backcolor when the parent backcolor is transparent.
26340
26341 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
26342
26343         * Application.cs: Updated to new StartLoop/GetMessage API
26344         * RichTextBox.cs: Provide some output on RTF parsing errors
26345         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
26346           new queue_id argument to GetMessage and PeekMessage to allow faster
26347           handling of per-thread queues in drivers.
26348         * Hwnd.cs: Added Queue tracking and property
26349         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
26350         * XEventQueue.cs: Added thread trackingA
26351         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
26352         * XplatUIX11.cs:
26353           - Implemented new per-thread queue
26354           - GetMessage: Fixed return/break behaviour on several cases. We were
26355             returning stale messages in some cases, instead of just processing
26356             the next message
26357
26358 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
26359
26360         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
26361
26362 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
26363
26364         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
26365           fixed off-by-one comparisons between Width/Height and Right/Bottom.
26366
26367 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
26368
26369         * PropertyGridView.cs: Fix drop down width.
26370
26371 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26372
26373         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
26374           a mess in DrawToolBar, so I removed one of them.
26375
26376 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26377
26378         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
26379           needed (clip). Otherwise we get artifacts.
26380
26381 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
26382
26383         * FixedSizeTextBox.cs: Added constructor to allow specifying which
26384           dimension is fixed
26385         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
26386           and switched FixedSizeTextBox to only be fixed vertical (#78116)
26387         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
26388           if it matches the scale base font (avoids unneeded scaling)
26389
26390 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
26391
26392         * X11DesktopColors.cs: One gtk_init_check should be enough
26393
26394 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
26395
26396         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
26397           match MS behaviour
26398
26399 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
26400
26401         * TextBoxBase.cs: 
26402           - Generate OnTextChanged for Backspace even if we're only deleting
26403             the current selection
26404           - When setting the Text property, only select all text if the
26405             control does not have focus when it is being set. Otherwise
26406             just place the cursor at the beginning of the control
26407
26408 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
26409
26410         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
26411           Added a little helper to draw PropertyGrid ToolBar with a different
26412           border and a different BackColor.
26413         * PropertyGrid.cs: Some background parts didn't get painted with the
26414           correct background color. Added a class that helps us to draw the
26415           correct border for PropertyGridView and a class that helps us to
26416           draw ToolBars with a different backcolor
26417         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
26418
26419 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
26420
26421         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
26422         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
26423
26424 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
26425
26426         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
26427           into the palette entries. Also, since we're working on a copy
26428           we needed to copy the palette back onto the bitmap.
26429         * Cursor.cs: Same fix as XplatUIWin32.cs.
26430
26431 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
26432
26433         * ImageListStreamer.cs: Need to read the var (or we're off)
26434
26435 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
26436
26437         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
26438           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
26439           TextBoxBase.cs: Unused var fixes
26440         * AxHost.cs: Small 2.0 fix
26441         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
26442           as it seems that is what at least Metacity expects. This will make
26443           icons show up on 64bit platforms. We still have some 64bit size
26444           issues, though, since the startup app window size still won't match.
26445
26446 2006-04-25  Mike Kestner  <mkestner@novell.com>
26447
26448         * *.cs: cleanup newly reported exception var unused warnings.
26449
26450 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
26451
26452         * ThemeWin32Classic.cs: Button image alignment now matches exactly
26453           ms
26454
26455 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
26456
26457         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
26458           image. The image position is always the same, no matter if the
26459           button is pressed or not.
26460
26461 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
26462
26463         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
26464           selection and set the correct filename for SaveFileDialog.
26465           Patch by Emery Conrad.
26466
26467 2006-04-24  Mike Kestner  <mkestner@novell.com>
26468
26469         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
26470         check for item.X outside the ClientRect instead of item.Y. Fixes
26471         #78151.
26472
26473 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26474
26475         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
26476         trust that value blindly and do some sanity check. Fixes bug #77814.
26477
26478 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26479
26480         * ImageListStreamer.cs: save the mask as a 1bpp image.
26481
26482 2006-04-21  Mike Kestner  <mkestner@novell.com>
26483
26484         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
26485         pass Checked and Indeterminate to the Theme Engine. Improve
26486         encapsulation with ListBox.
26487         * ListBox.cs: Keep a StringFormat instead of calculating it every item
26488         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
26489         nested types.  Move all CheckState functionality to CheckedListBox.
26490         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
26491         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
26492         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
26493         single base list. Fix scrollbar sizing and placement to mirror MS.
26494         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
26495         used.
26496         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
26497         for CheckedListBox by using new DrawItemState info.  Center the
26498         checkboxes on the items. Use new StringFormat property.
26499
26500 2006-04-18  Jackson Harper  <jackson@ximian.com>
26501
26502         * Form.cs: MdiChildren don't do default locations the same way as
26503         regular forms.  This prevents a crash when trying to position the
26504         mdi windows.
26505
26506 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
26507
26508         * PropertyGridTextBox.cs: Formatting, copyright
26509         * PropertiesTab.cs: Formatting
26510         * PropertyGrid.cs: Formatting
26511         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
26512           click toggling of values
26513           
26514 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
26515
26516         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
26517         * Control.cs (.ctor): verify_thread_handle is static, don't reset
26518           every time a control is created
26519         * Application.cs: Removed obsolete EnableRTLMirroring method
26520
26521 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
26522
26523         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
26524         SelectedIndex to -1. Fixes bug #78121.
26525
26526 2006-04-17  Jackson Harper  <jackson@ximian.com>
26527
26528         * Binding.cs: Handle null values for Current and BindingContext.
26529         This occurs when binding is a little delayed.
26530         * CurrencyManager.cs: return null for Current when there are no
26531         items in the list.
26532         - Hookup to the listchanged event on the DataView and update
26533         bindings when the list is changed.  This fixes late binding of
26534         controls.
26535
26536 2006-04-17  Jackson Harper  <jackson@ximian.com>
26537
26538         * X11Dnd.cs:
26539         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
26540         Ringenbach.
26541
26542 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
26543
26544         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
26545           place
26546         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
26547           with the correct ButtonState
26548
26549 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
26550
26551         * XplatUIX11.cs: Improved distinguishing between window types to
26552           tell the WM a type closer to what the app wants (Fixes #78107)
26553
26554 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
26555
26556         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
26557           GrabHandle
26558
26559 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
26560
26561         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
26562           drawing code to reflect the size grip changes
26563
26564 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26565
26566         * ImageListStreamer.cs: fix handling of the mask that follows the main
26567         bitmap when deserializing and serialize it properly. The generated mask
26568         should better be a 1bpp image, but I'll do that later.
26569
26570 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
26571
26572         * FileDialog.cs: Show something in the DirComboBox on *nix if the
26573           path doesn't fit into some of our Current.Places
26574
26575 2006-04-13  Jackson Harper  <jackson@ximian.com>
26576
26577         * ComboBox.cs: Use borders instead of drawing our own decorations,
26578         try to obey correct rules for heights.
26579         * Theme.cs:
26580         * ThemeNice.cs:
26581         * ThemeClearLooks.cs:
26582         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
26583         this is now handled by borders.
26584         - Remove unused DrawListBoxDecorationSize method.
26585         
26586 2006-04-13  Mike Kestner  <mkestner@novell.com>
26587
26588         * MenuAPI.cs: null guarding for the disbled click check fixes crash
26589         reported by Alex.
26590
26591 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
26592
26593         * ThemeWin32Classic.cs: 
26594           - Fixed CPDrawStringDisabled
26595           - Corrected drawing of disabled menu items
26596           - Fixed drawing of disabled radio buttons (bug #78095)
26597           - Draw check in a disabled CheckBox with color ControlDark 
26598
26599 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26600
26601         * Form.cs: Use the provided width when calculating the menu size;
26602           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
26603           and ClientSize.Width won't be updated yet
26604         * Application.cs: Use Visible instead of Show() to make form visible,
26605           this way we create the handle later and menusize is considered
26606
26607 2006-04-12  Mike Kestner  <mkestner@novell.com>
26608
26609         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
26610         reporting.
26611
26612 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26613
26614         * TextBox.cs: Implemented context menu
26615
26616 2006-04-12  Mike Kestner  <mkestner@novell.com>
26617
26618         * ListView.cs: implement box selection. fixes #77838.
26619         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
26620
26621 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
26622
26623         * XplatUIX11.cs: Added setting of window type when transient window
26624           is created (metacity would move it otherwise)
26625         * X11Structs.cs: Added WINDOW_TYPE atoms
26626         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
26627           background (the control is Opaque but still wants transparent
26628           backgrounds)
26629
26630 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26631
26632         * Control.cs: Added OnPaintBackgroundInternal to allow controls
26633           that set Opaque but don't mean it (like all ButtonBase-derived
26634           controls) to still draw their background
26635         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
26636           the background
26637
26638 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
26639
26640         * Control.cs (PaintControlBackground): Set the graphics object
26641           on our PaintEvent to null to prevent it from being disposed
26642           when the PaintEvent gets disposed
26643
26644 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
26645
26646         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
26647         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
26648
26649 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26650
26651         * Control.cs: 
26652           - Added transparency check to BackColor property. Transparent
26653             backgrounds are only allowed if the control styles permit it
26654           - Added recursive painting of parent control background and
26655             foreground if a control with a transparent backcolor is drawn
26656             (Thanks to Tim Ringenback for providing his 'hack' as a base
26657              for this patch) Fixes #77985 and #78026.
26658           - Added Opaque style check before calling OnPaintBackground, no
26659             need to draw the background if the control is opaque
26660           - Removed ControlAccessibleObject owner variable (inherited from
26661             base, no need to define again)
26662           - Added some documentation links explaining the drawing events
26663             and styles
26664
26665 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
26666
26667         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
26668           that the affected control is the located at the left border of our
26669           parent (Fixes #77936)
26670
26671 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26672
26673         * TextBoxBase.cs: When rendering disabled or readonly controls,
26674           draw the background with 'Control' instead of 'Window' color as
26675           long as the user hasn't specifically set a color
26676
26677 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
26678
26679         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
26680           since that won't be updated if the user types text (only if it's
26681           programatically set)
26682
26683 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26684
26685         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
26686           layout changes do to app-triggered resizes will have the proper
26687           display rectangle for layout
26688
26689 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
26690
26691         * ThemeWin32Classic.cs:
26692           - Make use of the SystemBrushes and SystemPens wherever possible
26693           - Corrected some highlight colors
26694           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
26695             drawing
26696         * Theme.cs: Added Empty field to CPColor struct
26697
26698 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26699
26700         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
26701           is displayed when calculating the display rectangle. Thanks to Mike
26702           for teaching me the err of my ways.
26703
26704 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
26705
26706         * ScrollableControl.cs:
26707           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
26708             (instead of 0,0) and we now return the real width/height instead of
26709             just the clientrectangle, adjusted for padding. The rectangle is
26710             now cached and created by the new CalculateDisplayRectangle method.
26711           - Created new CalculateDisplayRectange method, which basically does
26712             what get_DisplayRectangle() did originally, but now using the 
26713             right edge instead of DisplayRectangle to determine the size of
26714             our scrollbars
26715           - get_Canvas(): Fixed it to properly calculate canvas for 
26716             right/bottom controls which seem to be placed to the right/bottom
26717             of any controls that have a fixed location
26718           - Removed TODO that's taken care of
26719           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
26720             and SetDisplayRectLocation according to new MSDN2 docs
26721           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
26722             event when that is called, this is added for compatibility
26723           - ScrollControlIntoView(): Implemented.
26724           - Switched scrollbars to be implicit, they shouldn't be selectable
26725         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
26726           call it when the active control is set/changed
26727         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
26728         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
26729           implicit_control variable (used for native Win32 message generation)
26730         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
26731           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
26732         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
26733         * XplatUIStructs.cs: Added ScrollBarCommands enum
26734
26735 2006-04-10  Jackson Harper  <jackson@ximian.com>
26736
26737         * ButtonBase.cs:
26738         * CheckedListBox.cs:
26739         * ComboBox.cs:
26740         * DataGrid.cs:
26741         * DataGridView.cs:
26742         * Form.cs:
26743         * GroupBox.cs:
26744         * ListBox.cs:
26745         * PrintPreviewControl.cs:
26746         * ProgressBar.cs:
26747         * PropertyGrid.cs:
26748         * Splitter.cs:
26749         * StatusBar.cs:
26750         * TrackBar.cs:
26751         * UpDownBase.cs: Fixup base event overrides.
26752         
26753 2006-04-06  Mike Kestner  <mkestner@novell.com>
26754
26755         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
26756         all user-initiated value changes to min <= value <= max-thumbsz+1.
26757         (set_Value): check for vert/horiz when calculating new thumb position.
26758         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
26759         like MS does.
26760         (OnMouseMoveSB): refactor the thumb dragging code and refine
26761         invalidation logic to reduce flicker.
26762         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
26763         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
26764         (UpdateThumbPosition): small code readability cleanup
26765
26766 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
26767
26768         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
26769           different
26770
26771 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
26772
26773         * ThemeNice.cs: Use a better graphics effect when a button is pressed
26774
26775 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
26776
26777         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
26778         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
26779           This dramatically reduces the number of Pen.Dispose calls. 
26780           Where possible call ResPool methods only once instead of calling it
26781           over and over again (for example for the same color).
26782
26783 2006-04-06  Mike Kestner  <mkestner@novell.com>
26784
26785         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
26786         Also remove an unused private field on the collection. Fixes #77972.
26787
26788 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
26789
26790         * ThemeNice.cs: Added ToolBar drawing code
26791
26792 2006-04-06  Mike Kestner  <mkestner@novell.com>
26793
26794         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
26795         I'm assuming that means we need to look up the toplevel for the
26796         provided control. Fixes the crash trace in #77911 but exposes another
26797         crash in some strange reflection usage in NDocGui.
26798
26799 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
26800
26801         * ThemeNice.cs: Gave it a little silver touch and added Images
26802           method
26803         * FontDialog.cs: FontDialog is not resizable
26804         * FileDialg.cs: Added SizeGripStyle.Show
26805
26806 2006-04-05  Jackson Harper  <jackson@ximian.com>
26807
26808         * KeyboardLayouts.cs: Remove warning.
26809
26810 2006-04-05  Jackson Harper  <jackson@ximian.com>
26811
26812         * Control.cs: Enable OnPaintInternal so we can use it for drawing
26813         all of our controls instead of Paint +=.
26814         * ListBox.cs:
26815         * ListView.cs:
26816         * MenuAPI.cs:
26817         * MessageBox.cs:
26818         * NotifyIcon.cs:
26819         * ProgressBar.cs:
26820         * ScrollBar.cs:
26821         * Splitter.cs:
26822         * StatusBar.cs:
26823         * TabControl.cs:
26824         * TextBoxBase.cs:
26825         * ToolBar.cs:
26826         * TrackBar.cs:
26827         * UpDownBase.cs:
26828         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
26829         use OnPaintInternal. Remove Width/Height and Visible checks in
26830         paint handler, this is done at a higher level now.
26831         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
26832         * PaintEventArgs.cs: Add a handled flag so controls that don't
26833         want anymore painting after OnPaintInternal can make sure OnPaint
26834         isn't called.
26835
26836 2006-04-05  Mike Kestner  <mkestner@novell.com>
26837
26838         * Form.cs: fix the menu WndProc hacks to respect the native enabled
26839         state of the form, so that we don't process events when Modal dialogs
26840         are up. Fixes #77922.
26841
26842 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
26843
26844         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
26845           checking is done.
26846
26847 2006-04-05  Mike Kestner  <mkestner@novell.com>
26848
26849         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
26850
26851 2006-04-05  Mike Kestner  <mkestner@novell.com>
26852
26853         * ListView.cs (HeaderMouseMove): null guarding for the over column
26854         when setting up the drag_to_index.  Fixes #78015.
26855
26856 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
26857
26858         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
26859           in the taskbar. Transient windows seem to accomplish that.
26860
26861 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
26862
26863         * Form.cs:
26864           - Re-enabled CreateParams.X/Y code for FormStartPosition
26865           - Added code for manual placement when creating the Control
26866           - Incomplete patch to treat MDI forms differently when
26867             setting the ClientSizeCore. (Still need to figure out handling
26868             x/y coords there)
26869         * XplatUIX11.cs:
26870           - When we're explicitly setting the X/Y position of a non-Child
26871             window, let the WM know. Metacity really wants this.
26872
26873 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26874
26875         * ThemeNice.cs: Added CPDrawButton
26876
26877 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26878
26879         * ThemeNice.cs: Changed the color for focused buttons and activated
26880           the arrows for small scroll buttons.
26881
26882 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26883
26884         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
26885           anymore. Changed some method modifiers to protected (virtual)
26886         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
26887           changes
26888         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
26889           Updated drawing of menus, buttons and progressbars; added
26890           CPDrawBorder3D 
26891
26892 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26893
26894         * ImageListStreamer.cs: implemented serialization/deserialization
26895         of the images.
26896
26897 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
26898
26899         * ThemeWin32Classic.cs:
26900           - Removed all the DrawFrameControl stuff; CPDrawButton,
26901             CPDrawCheckBox and CPDrawRadioButton are now handled directly
26902             inside the methods
26903           - Updated and corrected the drawing code of CPDrawButton,
26904             CPDrawCheckBox and CPDrawRadioButton to better match ms
26905           - Updated theme checkbox and radiobutton code to use the CP*
26906             methods
26907
26908 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
26909
26910         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
26911           bug is fixed
26912
26913 2006-03-31  Jackson Harper  <jackson@ximian.com>
26914
26915         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
26916         sometimes.
26917         * UpDownBase.cs: Don't CreateGraphics manually, use a
26918         Refresh. Ideally we would invalidate the correct areas here.
26919
26920 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
26921
26922         * XplatUIX11.cs: 
26923           - We now track the mapping state of windows. If a window (or 
26924             one of it's parents) is not mapped we no longer permit
26925             WM_PAINT messages to be generated since we'd otherwise get 
26926             lots of BadMatch X errors. Jackson did all the work figuring
26927             out the problem.
26928           - Destroying the caret if the window it's contained in is 
26929             destroyed. Can't use regular DestroyCaret method since it
26930             might fall into a drawing function (trying to remove the
26931             caret) and with that generate new BadMatch errors. Again,
26932             Jackson tracked this down.
26933           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
26934             make sure we send the messages to all windows. (The old code
26935             would send the WM_DESTROY to the window, and then all child
26936             windows would be 'gone' because the WM_DESTROY handle lookup
26937             would no longer find the destroyed window)
26938         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
26939         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
26940
26941 2006-03-31  Jackson Harper  <jackson@ximian.com>
26942
26943         * ScrollableControl.cs: Dont recalc if we are not visible.
26944
26945 2006-03-31  Mike Kestner  <mkestner@novell.com>
26946
26947         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
26948         the visibility branch.
26949
26950 2006-03-31  Jackson Harper  <jackson@ximian.com>
26951
26952         * ScrollBar.cs: Cap values when incrementing/decrementing.
26953
26954 2006-03-31  Mike Kestner  <mkestner@novell.com>
26955
26956         * MenuAPI.cs: setup menu.tracker for popup/context menus.
26957         * ToolTip.cs: guard against timer expirations with no active control.
26958         Not sure why it happened.
26959
26960 2006-03-31  Mike Kestner  <mkestner@novell.com>
26961
26962         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
26963         text.
26964         * ToolTip.cs: Position the tooltip based on where the cursor is at
26965         popup time, not at MouseEnter time.  Add a Down state so that we don't
26966         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
26967         positioning offset. Lookup DisplaySize at positioning time, since it
26968         can theoretically change during invocation.
26969         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
26970         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
26971
26972 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26973
26974         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
26975           Fixes behaviour when the Text property of the box is String.Empty
26976
26977 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
26978
26979         * XplatUIX11.cs: Only send mouseleave for our client windows, not
26980           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
26981           a window)
26982
26983 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26984
26985         * FileDialog.cs: Visual enhancement for the popup buttons in 
26986           PopupButtonPanel
26987
26988 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26989
26990         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
26991           code
26992
26993 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
26994
26995         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
26996           highlighted menu items to match ms
26997
26998 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
26999
27000         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27001
27002 2006-03-30  Mike Kestner  <mkestner@novell.com>
27003
27004         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27005         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27006         go active to account for HotLight to Selected transition.
27007         * MenuItem.cs: add internal Selected prop. Fill out the Status
27008         property by calculating it from item info. Add HotLight,
27009         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27010
27011 2006-03-30  Mike Kestner  <mkestner@novell.com>
27012
27013         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27014
27015 2006-03-29  Jackson Harper  <jackson@ximian.com>
27016
27017         * Form.cs: Implement TODO.
27018
27019 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
27020
27021         * PrintPreviewDialog.cs: Implemented missing methods and events; still
27022           missing proper dialog setup in the constructor
27023
27024 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
27025
27026         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27027         * Control.cs:
27028           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27029           - Fixed ResetBindings and removed TODO
27030           - Added check for cross-thread calls to get_Handle()
27031           - Added Marshaller attribute for set_Font to satisfy class status
27032         * FontDialog.cs: Removed TODOs that seemed implemented
27033         * UpDownBase.cs: Removed unneeded TODO and Fixme
27034         * MessageBox.cs: Implemented support for Default button and removed TODO
27035         * FileDialog.cs: Removed obsolete TODO
27036         * DomainUpDown.cs: Removed obsolete TODO
27037         * ButtonBase.cs: Removed obsolete TODO
27038         * XplatUIWin32.cs: Removed obsolete TODO
27039         * Form.cs:
27040           - Removed obsolete TODO
27041           - Calling CheckAcceptButton when the acceptbutton is changed to allow
27042             internal status updates
27043           - Making sure the active control is selected when the control is created
27044         * CurrencyManager.cs: Removed obsolete TODO
27045
27046 2006-03-29  Mike Kestner  <mkestner@novell.com>
27047
27048         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27049         of PrintPreviewDialog and RichTextBox.
27050
27051 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27052
27053         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27054           DarkDark, Light and LightLight colors for a specific color
27055         * ThemeWin32Classic.cs:
27056           - Use Button drawing code to draw RadioButtons and CheckBoxes with
27057             Appearance = Button 
27058           - Make use of the new ResPool helper CPColor
27059           - Draw ProgressBar and StatusBar with correct 3D borders
27060
27061 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27062
27063         * ColorDialog.cs: Return selected color. Fixes bug #77940.
27064
27065 2006-03-28  Mike Kestner  <mkestner@novell.com>
27066
27067         * ListView.cs: fix Icon layout to plan for scrollbar widths when
27068         calculating col/row counts.
27069
27070 2006-03-28  Mike Kestner  <mkestner@novell.com>
27071
27072         * ColumnHeader.cs:
27073         * ListView.cs:
27074         * ListViewItem.cs:
27075         * Menu.cs: 
27076         switch to explicit interface method implementation for some methods
27077         corcompare identifies as inconsistent with MS.
27078
27079 2006-03-28  Mike Kestner  <mkestner@novell.com>
27080
27081         * MainMenu.cs: 
27082         * Menu.cs:
27083         add a few missing methods from the class status output.
27084
27085 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
27086
27087         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27088           correct.
27089
27090 2006-03-28  Mike Kestner  <mkestner@novell.com>
27091
27092         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27093
27094 2006-03-27  Mike Kestner  <mkestner@novell.com>
27095
27096         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27097         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27098
27099 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
27100
27101         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27102
27103 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27104
27105         * ThemeWin32Classic.cs:
27106           - GroupBox: Inserted a little gap between the text and the lines
27107             on the right side
27108           - Made the code in CPDrawBorder3D more readable
27109           - Corrected the drawing location of the up and down arrows in 
27110             CPDrawScrollButton
27111
27112 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27113
27114         * ControlPaint.cs: Corrected line widths in DrawBorder for
27115           ButtonBorderStyle Inset and Outset
27116
27117 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27118
27119         * ThemeWin32Classic.cs:
27120           - Rewrote the totally broken CPDrawBorder3D method. That was
27121             one of the main problems for the terrific ThemeWin32Classic
27122             look
27123           - Updated and corrected Button drawing
27124           - Correct the dimensions of the SizeGrip to match ms ones
27125           - Removed a small drawing glitch in DrawComboBoxEditDecorations
27126         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
27127           Border3DStyle.Sunken to match ms.
27128
27129 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27130
27131         * ThemeWin32Classic.cs: First small part of the "de-uglify
27132           ThemeWin32Classic" effort, SizeGrip
27133
27134 2006-03-24  Jackson Harper  <jackson@ximian.com>
27135
27136         * XplatUIX11.cs: Give a max idle time of one second, this matches
27137         MS and forces an Idle event every second when there are no other
27138         events in the queue.
27139
27140 2006-03-24  Mike Kestner  <mkestner@novell.com>
27141
27142         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
27143         * ListView.Item.cs: fix layout issues with null image lists and images
27144         smaller than checkbox size.
27145         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
27146         mode like MS does.  It's weird, but consistent.  ;-)
27147         Fixes #77890.
27148
27149 2006-03-24  Mike Kestner  <mkestner@novell.com>
27150
27151         * ListView.cs: Scroll wheel support for the item control.  Fixes
27152         #77839.
27153
27154 2006-03-23  Jackson Harper  <jackson@ximian.com>
27155
27156         * ScrollableControl.cs: Special case negative sized areas, not
27157         zero.
27158         * MonthCalendar.cs: Save the rect of the clicked date so we can
27159         use it for invalidation.
27160         - Try to cut down on the number of invalidates
27161         - Invalidate the rect the mouse is over and was over when moving
27162         the mouse, so we get the focus box following the cursor.
27163
27164 2006-03-23  Mike Kestner  <mkestner@novell.com>
27165
27166         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
27167         focus rectangle drawing. Fixes #77835.
27168
27169 2006-03-23  Mike Kestner  <mkestner@novell.com>
27170
27171         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
27172         the if and else if and reverting back to the original == check on the
27173         None conditional.
27174
27175 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27176
27177         * FontDialog.cs: Update the example panel if the selected index of
27178           the fontListBox changes.
27179
27180 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27181
27182         * FileDialog.cs: Make FileDialog remember which directory it was in
27183           last in the same execution.
27184
27185 2006-03-22  Mike Kestner  <mkestner@novell.com>
27186
27187         * FileDialog.cs: make the DropDownMenu on the toolbar display
27188         RadioChecks since they are mutually exclusive and that's what MS does.
27189
27190 2006-03-22  Mike Kestner  <mkestner@novell.com>
27191
27192         * Theme.cs: add Color param to CPDrawMenuGlyph.
27193         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
27194         checks and radio marks and arrows are visible on highlighted items.
27195         * ControlPaint.cs: update to use new Theme signature.
27196
27197 2006-03-22  Mike Kestner  <mkestner@novell.com>
27198
27199         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
27200         is active. Fixes #77870.
27201
27202 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27203
27204         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
27205           to be focused/selected after startup
27206
27207 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27208
27209         * ColorDialog.cs: 
27210           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
27211             CustomColors and ShowHelp properties
27212           - Some internal rewrites to get better results when using the
27213             ColorMatrix
27214
27215 2006-03-22  Mike Kestner  <mkestner@novell.com>
27216
27217         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
27218         HoverSelection.  Fixes #77836.
27219
27220 2006-03-22  Mike Kestner  <mkestner@novell.com>
27221
27222         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
27223         ToggleButtons.  (De)Sensitize the Back button around a stack count of
27224         1, not 0.  Update ButtonSize based on a pixel count of the win32
27225         control.  Adjust the toolbar size/location for new button size.
27226
27227 2006-03-22  Jackson Harper  <jackson@ximian.com>
27228
27229         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
27230         true.
27231         * ScrollBar.cs: When doing increments and decrements we need to
27232         set the Value property so that ValueChanged gets raised. A
27233         possible optimization here would be to make an internal SetValue
27234         that doesn't invalidate immediately.
27235         * ToolTip.cs: Tooltips get added to their container (when
27236         supplied) so they get disposed when the container is disposed.
27237         - Don't create tooltips for String.Empty. This prevents all these
27238         little 2-3 pixel windows from showing up when running nunit-gui
27239         and driving me mad.
27240         * Form.cs: Don't set topmost when setting the owner if the handles
27241         haven't been created yet.  The topmost set will happen when the
27242         handles are created.
27243
27244 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
27245
27246         * XplatUIX11.cs:
27247           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
27248           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
27249             visible (to allow them to recalculate their sizes)
27250
27251 2006-03-21  Mike Kestner  <mkestner@novell.com>
27252
27253         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
27254         methods. Removed a ton of redundant code.  Still not really happy with
27255         the border rendering, but I think that's mainly because of the
27256         ControlDarkDark being black instead of a dark grey. Depending on how 
27257         close we want to be, we might want to revisit those color choices.
27258         Among the new features added during the refactor were DropDownArrow
27259         pressed rendering, Disabled image rendering.  Proper flat appearance
27260         boundary rendering.  Removed the Divider and Wrapping dividers since I
27261         can't figure out any combination of themes and conditions to make the
27262         MS control draw a horizontal line on a toolbar despite what the
27263         Divider property docs indicate.
27264         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
27265         conditions and incorrect layout.  Updated to coding standard.
27266         * ToolBarButton.cs: refactored layout and positioning code from
27267         ToolBar to here.  Invalidate wherever possible instead of forcing
27268         redraws of the whole toolbar. 
27269         (Known remaining issues: explicit ButtonSize smaller than provided
27270         images.)
27271
27272 2006-03-21  Mike Kestner  <mkestner@novell.com>
27273
27274         * ContextMenu.cs (Show): use the position parameter instead of just
27275         showing at the MousePosition.
27276
27277 2006-03-21  Jackson Harper  <jackson@ximian.com>
27278
27279         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
27280         control handle this.
27281         * TreeNodeCollection.cs: If we are clearing the root node we need
27282         to reset top_node so calcs can still happen.
27283         * ThemeWin32Classic.cs: This is a Flags so we need to check
27284         properly.
27285         
27286 2006-03-21  Jackson Harper  <jackson@ximian.com>
27287
27288         * DataGrid.cs: Create columns when the binding context has been
27289         changed.
27290         * X11Structs.cs: Keysyms are uints.
27291         - Add size to fix build.
27292
27293 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
27294
27295         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
27296           XplatUIOSX.cs: 
27297           - Added ResetMouseHover method to allow controls to retrigger
27298             hovering if they need it more than once
27299           - Implemented MouseHoverTime and MouseHoverSize properties
27300         * Timer.cs: Start() must reset the interval
27301         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
27302           properties
27303
27304 2006-03-21  Jackson Harper  <jackson@ximian.com>
27305
27306         * X11Keyboard.cs: improved layout detection. Move the nonchar
27307         tables into this file.
27308         * KeyboardLayouts.cs: Move the tables into resource files.
27309
27310 2006-03-21  Mike Kestner  <mkestner@novell.com>
27311
27312         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
27313
27314 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
27315
27316         * Mime.cs: Various speed optimizations. Looking up mime types
27317           is now 2 times faster than before
27318
27319 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
27320
27321         * CreateParams.cs: Added internal menu field
27322         * Control.cs: 
27323           - Switched call order for UpdateBounds; now we always call
27324             the one that also takes ClientSize, and we're calculating the 
27325             client size via driver method in the others. The previous
27326             method of tracking client size by difference wasn't working
27327             for forms where even the starting client size wouldn't match
27328             the overall form size (due to borders) (Part of fix for #77729)
27329           - CreateParams(): Do not use parent.Handle unless the handle is
27330             already created. Causes havoc with Nexxia and throws off our
27331             creation of controls
27332         * XplatUIX11.cs:
27333           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
27334           - Switched handling of ConfigureNotify over to new PerformNCCalc 
27335             method (consolidates code)
27336           - Changed RequestNCRecalc to use new PerformNCCalc method
27337           - Added calls to RequestNCRecalc when menus and borders are changed
27338             to allow app to set NC size. (Part of fix for #77729) This matches
27339             when MS send a WM_NCRECALC on Win32 windows.
27340           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
27341             (Part of fix for #77729). This matches what MS does, they also
27342             send that message when the form is made visible.
27343           - XException.GetMessage: Improved usability of X errors by including
27344             a translation of the window into Hwnd and Control class
27345           - Improved debug info for window creation, reparenting and destruction
27346           - Created helper method WindowIsMapped() [Currently not used]
27347         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
27348         * Form.cs:
27349           - CreateParams: Now setting our menu on the new internal menu field
27350           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
27351             avoid calculating the same property twice
27352         * Hwnd.cs:
27353           - Improved usability of ToString() for debugging purposes
27354           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
27355             determine the height of the menu, instead of just the font. This
27356             required to also create a graphics context and to keep a bmp 
27357             around (for performance reasons)
27358
27359 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
27360
27361         * MenuAPI.cs: Added OnMouseUp method
27362         * Form.cs:
27363           - Now remembering the requested client size, avoids size errors
27364           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
27365             instead of base if the menu is active. This is required due to
27366             control now capturing and releasing on down/up and it would
27367             prematurely release our menu capture
27368
27369 2006-03-17  Jackson Harper  <jackson@ximian.com>
27370
27371         * KeyboardLayouts.cs: Add the czech layouts.
27372
27373 2006-03-16  Jackson Harper  <jackson@ximian.com>
27374
27375         * Control.cs: Use the viewport space when sizing not the controls
27376         client size, so things like ScrollableControl that effect the
27377         viewport size (when scrollbars are added) are computed correctly.
27378         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
27379         of ManagerEntrys.
27380         - Handle creating BindingManagers for null data sources.
27381         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
27382         source, otherwise when rows are added they are added to the 'fake'
27383         datasource and we will crash when trying to set the position in
27384         those rows.
27385         - Use Implicit scrollbars on the datagrid so they arent
27386         selectable.
27387         
27388 2006-03-16  Jackson Harper  <jackson@ximian.com>
27389
27390         * Binding.cs:
27391         * InternalWindowManager.cs:
27392         * MdiWindowManager.cs:
27393         * X11Keyboard.cs: I really want Mike to love me again (fix
27394         compiler warnings).
27395
27396 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
27397
27398         * DataGrid.cs:
27399           - OnMouseDown: Switch to editing mode when clicking on the cell
27400                          even if we're clicking on the cell that's currently 
27401                          selected
27402           - ProcessGridKey: Left/Right now wrap like MS.Net does
27403           - ProcessGridKey: Tab now knows to add a new row when tab is
27404                             pressed in the cell of the last column of the 
27405                             last row
27406           - ProcessGridKey: Enter now adds another row  if pressed in the last
27407                             row and selectes the new row, same column cell
27408           - ProcessGridKey: Home/End navigate columns, not rows, like 
27409                             originally implemented
27410           - Broke ProcessKeyPreview code out into an extra Internal method
27411             so it can be called from the edit code
27412         * DataGridTextBox.cs (ProcessKeyMessage):
27413           - Switched to accept Tab keypresses
27414           - Added F2 handling to allow jumping to the end of the edited cell
27415           - Added logic to allow moving caret left/right inside edited cell
27416             and making the edited cell jump when the caret hits cell borders
27417           - Tab and Enter are now passed to the datagrid after being handled
27418         * TextBoxBase.cs:
27419           - Removed capture code now that Control handles it
27420           - set_SelectionStart now ensures caret is visible
27421
27422 2006-03-16  Jackson Harper  <jackson@ximian.com>
27423
27424         * TrackBar.cs: Debackwards the increment/decrement for handling
27425         mouse clicks on the bar with vertical trackbars.
27426         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
27427         bottom to match MS.
27428
27429 2006-03-16  Mike Kestner  <mkestner@novell.com>
27430
27431         * ListView.cs: make shift/ctrl keyboard and mouse selection 
27432         consistent with the MS control. Fix a bug in
27433         SelectedListViewItemCollection.Clear that was pissing me off for the
27434         better part of a day because the collection was being altered
27435         underneath us as we walked the list.
27436
27437 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
27438
27439         * Control.cs: Not sure how we could miss this so long, but it seems
27440           that MS.Net has Capture set all the way from before calling 
27441           OnMouseDown through sending the mouse events until after
27442           OnMouseUp. This will fix DataGrid's selection being set to end
27443           at the location of the MouseUp.
27444
27445 2006-03-15  Jackson Harper  <jackson@ximian.com>
27446
27447         * BindingContext.cs: Check the binding after its added so that it
27448           can initialize the binding managers and hookup to events.
27449         * Binding.cs: Data members seem to sometimes include rows/cols in
27450           the format Row.Column we now take this into account.
27451           - Hookup to the position changed event so we can update the
27452           control when the position has changed in the data set.
27453         * CurrencyManager.cs: Take into account the row/col naming
27454           convention when creating dataset tables.
27455         * BindingContext.cs: Using a newer better way of storing
27456           datasource/datamember pairs.  Hopefully this better matches MS for
27457           looking up binding managers.
27458
27459
27460 2006-03-15  Jackson Harper  <jackson@ximian.com>
27461
27462         * BindingContext.cs: The currency manager needs the data member
27463         name, if the member is a data set we use the name to find the
27464         correct table.
27465         * CurrencyManager.cs: When creating the list prefer an IList over
27466         an IListSource.
27467         - Attempt to create a DataTable from a DataSet (TODO: might need
27468         some better error checking here, although MS doesn't seem to have much)
27469         - If we have a DataTable create a view and use it as our list.
27470
27471 2006-03-15  Mike Kestner  <mkestner@novell.com>
27472
27473         * ListView.cs: keep a matrix of the icon mode layout to facilitate
27474         keyboard navigation. Support Up/Down/Left/Right selection correctly
27475         for all 4 View modes.
27476         * ListViewItem.cs: add internal row/col fields for icon layouts.
27477
27478 2006-03-15  Jackson Harper  <jackson@ximian.com>
27479
27480         * TabControl.cs: Redraw the tabs when we resize so their newly
27481         calculated sizes are drawn on screen.
27482         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
27483         composite characters.
27484         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
27485         - filter events so that composite characters can be created
27486         patches by peter
27487         * X11Structs.cs: Add XIMProperties enum.
27488
27489 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
27490
27491         * Control.cs (BringToFront, SendToBack): Don't use window or handle
27492           unless it's created
27493
27494 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
27495
27496         * Control.cs (PerformLayout): We don't need to consider visiblity
27497           for anchoring, only for docking. This fixes 'whacky' alignment
27498           in listbox and other controls that use implicit scrollbars after
27499           the previous PerformLayout patch
27500         * ListBox.cs: Switched to use implicit scrollbars
27501           
27502 2006-03-14  Mike Kestner  <mkestner@novell.com>
27503
27504         * ToolBar.cs: 
27505         * VScrollBar.cs:
27506         - chain up the "new event" overrides to base and use
27507         OnEvent to raise them.  Part of fix for bug #76509.
27508
27509 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
27510
27511         * FileDialog.cs: Do not select an item in the parent directory
27512           on backspace
27513
27514 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
27515
27516         * Control.cs (PerformLayout): It would seem that we considered
27517           invisible windows for our layout. Not quite the right thing
27518           to do. Now we don't any longer, thereby fixing bug #76889.
27519
27520 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
27521
27522         * Control.cs (CanFocus): I goofed. A control can have focus 
27523           even though it's not selectable. Made it match MS docs.
27524
27525 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27526
27527         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
27528           center by default (fixes #76895)
27529         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
27530           all uses of Border3DSides.All with the explicit ORd together
27531           Left|Right|Top|Bottom because I assume that nobody was aware 
27532           that All also implies a center fill. Most places I checked had
27533           a fill right above.
27534         * ProgressBarStyle.cs: Added
27535
27536 2006-03-13  Mike Kestner  <mkestner@novell.com>
27537
27538         * ListView.cs: fix breakage in drag shadow header positioning 
27539         from Peter's csc compilation fix.
27540
27541 2006-03-13  Mike Kestner  <mkestner@novell.com>
27542
27543         * ListView.cs: fix NRE produced by backspacing twice in a focused
27544         FileDialog.
27545
27546 2006-03-13  Mike Kestner  <mkestner@novell.com>
27547
27548         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
27549
27550 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27551
27552         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
27553           be changed
27554         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
27555           the allowed size before making programmatic size changes
27556
27557 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
27558
27559         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
27560           set, metacity is broken and will still use the emty sizes in 
27561           the struct. (Fix for #77089)
27562
27563 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27564
27565         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
27566           WindowExStyles and marked both enums as Flags
27567         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
27568           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
27569           to match WindowStyles split
27570         * XplatUIX11.cs:
27571           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
27572           - Updated to match WindowStyles split
27573         * XplatUIWin32.cs:
27574           - Fixed FosterParent creation, was using ExStyle on the Style field
27575             (This should help with Popup focus issues)
27576           - Updated to match WindowStyles split
27577
27578 2006-03-13  Jackson Harper  <jackson@ximian.com>
27579
27580         * MdiWindowManager.cs: Use the system menu height. Fixes some
27581         strange sizing issues.
27582
27583 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
27584
27585         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
27586         * TextBoxBase.cs:
27587           - Scroll to caret after inserting text (#77672)
27588           - Make scroll range one pixel higher, fixes off-by-one error (and
27589             makes underlines visible on the last line)
27590
27591 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
27592
27593         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
27594           the keyboard state from being stuck with keys in 'pressed' state when
27595           focus is switched away via keyboard
27596         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
27597           reset the keyboard if no X11 KeyUp events are expected to come
27598         * X11Structs.cs: Switched type of Visible to bool to match driver
27599
27600 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
27601
27602         * TextControl.cs:
27603           - Switched caret to be just 1 pixel wide, matches MS and looks less
27604             clunky
27605           - Moved caret display 1 pixel down from the top of the control
27606             to improve view
27607           - InsertCharAtCharet: Update the selection start if moving the caret
27608             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
27609           - No longer always creating the caret when the caret methods are
27610             called. Only the actual ShowCaret/HideCaret will do that now
27611           - Only setting caret visible if the owner control has focus
27612           - UpdateView: Added invalidation-shortcut logic for center and right 
27613             aligned text. Previously we'd update all according to the left
27614             logic which caused drawing errors. Also fixed height of invalidated
27615             areas, now properly invalidating the whole area (was off-by-one)
27616           - owner_HandleCreated: Always generate the document when the
27617             handle is created; this ensures that 
27618         * TextBoxBase.cs:
27619           - Fixed situation where caret would disappear under the right
27620             window border, also improved scrolling behaviour on left-
27621             aligned textboxes
27622           - Fixed right-aligned textboxes to have a border to the
27623             right instead of the caret being under the right border
27624         * XplatUIX11.cs:
27625           - Switched from 'nested' to simple visible/not visible tracking 
27626             for caret (part of fix for #77671)
27627           - No longer passing through translated FocusIn/FocusOut messages
27628             since we were notifying too often and the wrong windows. Instead
27629             we just notify our focussed window of receiving or loosing focus
27630         * XplatUIWin32.cs: Switched from 'nested' show/hide 
27631           counting for caret to simple visible yes/no behaviour (part of 
27632           fix for #77671)
27633
27634 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
27635
27636         * Mime.cs: Remove debug code...
27637
27638 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
27639
27640         * MimeGenerated.cs: Removed
27641         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
27642           and subclasses) from /usr/(local/)share/mime and
27643           $HOME/.local/share/mime.
27644
27645 2006-03-10  Jackson Harper  <jackson@ximian.com>
27646
27647         * MdiWindowManager.cs: Recalc the NC area when a window is
27648         maximized/restored so that the menu area is drawn on forms that
27649         don't have a menu.
27650
27651 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27652
27653         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27654           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
27655           us to force a WM_NCCALCRESIZE message being sent. This is needed
27656           for MDI maximizing.
27657
27658 2006-03-10  Jackson Harper  <jackson@ximian.com>
27659
27660         * Form.cs: We need to use the ActiveMenu when calculating menu
27661         height.
27662         - Fix nullref when the window manager hasn't been created yet.
27663         * Control.cs: Fix nullref when we try to bring a control to the
27664         front that has no parent.
27665         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
27666         height.
27667         - Add a dummy item to the maximized menu so it always has the
27668         correct height. Otherwise when there are no menus we don't get our
27669         icon and buttons.
27670         
27671
27672 2006-03-10  Jackson Harper  <jackson@ximian.com>
27673
27674         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
27675         stuff.
27676         * Form.cs: Make the window_state internal so the window managers
27677         can track it.
27678         - When an MDI child is maximized let its window manager create the
27679         main menu (so it can add its icon).
27680         - Notify the window managers of state changes
27681         - Let the window manager paint its buttons and handle button
27682         clicks on the menu when it is maximized.
27683         * InternalWindowManager.cs: Move the prev_bounds into the mdi
27684         window manager, since tool windows don't use it, only mdi windows.
27685         - Tell the main form that we don't want it to handle NCPAINT
27686         itself to avoid extra painting.
27687         - Handle clicks on a maximized windows menu.
27688         - Handle window state changes
27689         - Handle minimize/maximize clicks correctly by setting the window state.
27690         * MdiWindowManager.cs: Add an icon menu that (the menu you get
27691         when clicking on the forms icon).
27692         - New method to create a forms maximized menu. This is its normal
27693         menu + an icon.
27694         - Handle window state changes.
27695         - Handle sizing of maximized windows.  Maximized windows are just
27696         drawn bigger then the parent visible area. All controls are still
27697         there, they are just outside the visible area (this matches windows).
27698         * MdiClient.cs: No scrollbars when a child window is maximized.
27699         - Let the children windows figure out how big they should be when
27700         sizing maximized windows.
27701         - Implement a version of ArrangeIconicWindows somewhat similar to
27702         Windows version.  There are some little differences, but I don't
27703         think any app will rely on the layout of minimized mdi windows.
27704
27705 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27706
27707         * Padding.cs: Several fixes to allow compiling with csc 2.0
27708
27709 2006-03-09  Jackson Harper  <jackson@ximian.com>
27710
27711         * Menu.cs:
27712         * MenuItem.cs: Cheap hack so we can add items to the list without
27713         the events being raised.  This allows adding mdi items during
27714         drawing. TODO: Should probably find a better time to add the items.
27715
27716 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27717
27718         * ThemeWin32Classic.cs:
27719           - CheckBox_DrawText: Added logic to not wrap if not enough space
27720             is available (Fix for bug #77727)
27721           - RadioButton_DrawText: Added logic not to wrap if not enough
27722             space is available (Fix for bug #77727). Also removed some
27723             duplicate code, DrawString always drawing the regular text
27724             before hitting the if statement.
27725
27726 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
27727
27728         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
27729
27730 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27731
27732         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
27733         * ContainerControl.cs: Partial implementation of some 2.0 scaling
27734           methods. Moved the new 2.0 properties into alphabetical order with
27735           other properties and added MonoTODO tags
27736
27737 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27738
27739         * AutoScaleMode.cs: Added. Fix build.
27740
27741 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27742
27743         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
27744           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
27745           and was requiring premature handle creation for calls from above
27746         * Form.cs, Control.cs: Removed handle arguments from calls to
27747           CalculateClientRect()
27748
27749 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27750
27751         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
27752           drag_column.column_rect is MarshalByRef and can't be used that way
27753
27754 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27755
27756         * AxHost.cs: Added deserialization constructor for 
27757           AxHost+State (fixes 77743)
27758
27759 2006-03-09  Mike Kestner  <mkestner@novell.com>
27760
27761         * ListView.cs: 
27762         - Added column drag reordering for details view.
27763         - fixed behavior when mouse is dragged off column and
27764         AllowColumnReorder is false.
27765         * ColumnHeader.cs: clone the format too in Clone.
27766         * Theme.cs: add DrawListViewHeaderDragDetails method.
27767         * ThemeWin32Classic.cs:
27768         - impl new method for drawing drag column shadows and targets.
27769         - support column offset for details mode in DrawListViewItem.
27770
27771 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27772
27773         * TextControl.cs: Reset the char_count when the document is cleared
27774           (Fixes bug reported on mono-winforms mailing list)
27775
27776 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27777
27778         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
27779           of calling base we simply process the key ourselves, since both
27780           DefWindowProc and the handled method would set m.Result. 
27781           (Fixes #77732)
27782
27783 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27784
27785         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
27786           method also moves the window; instead implemented a copy of
27787           Control.ScaleCore (Part of fix for #77456)
27788         * TextBoxBase.cs: 
27789           - Created new CreateGraphicsInternal method to allow providing
27790             a graphics context when no handle is created without triggering
27791             handle creation. (Part of fix for #77456)
27792           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27793         * TextControl.cs: 
27794           - Switched Constructor to require TextBoxBase instead of Control (to
27795             allow uncast access to CreateGraphicsInternal)
27796           - Safeguarded use of owner.Handle property. No longer accessing it
27797             unless the handle is already created.
27798           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27799           - Now triggering a recalc when owning control becomes visible
27800         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
27801           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
27802           premature handle creation (Part of fix for #77456)
27803         * Control.cs:
27804           - We now only destroy our double-buffering buffers when the
27805             control is resized or disposed, but not when visibility
27806             changes. (The code even re-created them twice every time)
27807           - Now requiring a redraw of the buffer on visibility changes
27808             (fixes bug 77654 part 2)
27809           - Not passing OnParentVisibleChanged up unless the control
27810             is visible
27811           - CanFocus: Fixed to match MS documentation
27812           - Focus: Fixed to return actual focus state and to check if
27813             setting focus is legal before setting it
27814
27815 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
27816
27817         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
27818           when to draw focus rectangle by looking at parent focus and
27819           selected state instead. This fixes TabPages on Linux sometimes
27820           having none or multiple focus rectangles.
27821         * XplatUIX11.cs (SetFocus): 
27822           - Don't set the focus if the same window already has focus
27823           - Use SendMessage instead of PostMessage (like it's Win32
27824             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
27825             to match MS behaviour
27826         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
27827           are not selectable.
27828
27829 2006-03-07  Jackson Harper  <jackson@ximian.com>
27830
27831         * PictureBox.cs: Revert line I accidently committed last week.
27832
27833 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
27834
27835         * Control.cs: 
27836           - Added new IsRecreating and ParentIsRecreating properties to
27837             allow testing if RecreateHandle has been called on ourselves
27838             or one of our parents
27839           - WndProc(WM_DESTROY): If our control handle is being recreated
27840             we immediately need to create the handle when receiving the
27841             destroy, that way our child windows find a valid parent handle
27842             when they themselves are being recreated upon WM_DESTROY receipt
27843             (fix for bug #77654 part 1)
27844         * XplatUIX11.cs:
27845           - DestroyWindow: WM_DESTROY must be sent to our own window before
27846             notifying any child windows. MS documents that child windows
27847             are still valid when WM_DESTROY is received. (Control now relies on
27848             this behaviour)
27849           - Added some fine-grain debug options
27850
27851 2006-03-06  Jackson Harper  <jackson@ximian.com>
27852
27853         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
27854         box and base calculations off this.
27855         * MdiChildContext.cs:
27856         * MdiWindowManager.cs: Don't need to ensure scrollbars here
27857         anymore.
27858         
27859 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
27860
27861         * Splitter.cs: In situations where the affected control is added
27862           to the parent's control list after the splitter, we would not
27863           populate affected. Now we try populating it on mousedown, if
27864           it's not already set, and force it to be re-set whenever our
27865           parent changes.
27866
27867 2006-03-03  Matt Hargett  <matt@use.net>
27868
27869         * Control.cs: implement Control.Padding
27870         * Padding.cs: -Padding.All returns -1 when constructing with the
27871         implicit default ctor
27872         -Padding.ToString() matches MS.NET
27873         * ContainerControl.cs: implement
27874         ContainerControl.AutoScaleDimensions
27875         * ListControl.cs: implement ListControl.FormattingEnabled
27876         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
27877         * ButtonBase.cs:
27878         * TabPage.cs: Implement UseVisualStyleBackColor.
27879         * PictureBox.cs: Implement PictureBox.InitialImage.
27880
27881 2006-03-03  Mike Kestner  <mkestner@novell.com>
27882
27883         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
27884         event declarations to proxy to base event.
27885         * ListViewItem.cs: update to use ItemControl.
27886         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
27887         * ThemeWin32Classic.cs: update to new ListView theme API and fix
27888         column header label rendering for 0 width columns.
27889
27890 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
27891
27892         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
27893           that causes the control to be created. Fixes #77476.
27894
27895 2006-03-02  Jackson Harper  <jackson@ximian.com>
27896
27897         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
27898         expose_pending.
27899
27900 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
27901
27902         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
27903           passed in for the EventArgs (fixes #77690)
27904
27905 2006-03-01  Jackson Harper  <jackson@ximian.com>
27906
27907         * ScrollBar.cs: Refresh afterbeing resized.
27908
27909 2006-02-28  Mike Kestner  <mkestner@novell.com>
27910
27911         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
27912         Clean up a tracker compile warning.
27913         * MenuItem.cs: add internal PerformPopup method.
27914         [Fixes #77457]
27915
27916 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
27917
27918         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
27919           implicit expose) when the text is set to null
27920
27921 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
27922
27923         * RichTextBox.cs (FlushText): When newline is true, we always
27924           need to split the line, even if no text is on it and we may
27925           never eat newlines. (Fixes #77669)
27926
27927 2006-02-28  Mike Kestner  <mkestner@novell.com>
27928
27929         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
27930         and set Selected instead.
27931         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
27932         collections.
27933
27934 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
27935
27936         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
27937
27938 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
27939
27940         * FontDialog.cs:
27941           - Got rid of the panel. All controls are now directly added to
27942             the dialog form
27943           - It is now possible to set a font with the Font property
27944           - MinSize and MaxSize property do now what they should
27945           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
27946           - Searching and selecting a font with the font textbox works now,
27947             the same applies to the style and size textbox
27948           - Draw the correct 3D border in the example panel
27949           - Fixed a little mem leak (unused fonts didn't get disposed)
27950           - Many other internal updates/rewrites...
27951           - Fix typo
27952
27953 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
27954
27955         * TextControl.cs: 
27956           - InsertRTFFromStream: Added 'number of characters inserted' argument
27957           - set_SelectedRTF: Now using the number of characters to calculate
27958             the new location for the selection and cursor (x/y cannot be used
27959             due to potentially already wrapped text)
27960
27961 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
27962
27963         * TextControl.cs: Added property and implemented means to allow 
27964           disabling recalculation of a document (can be used to speed up
27965           multiple inserts and is needed to make RTF inserts predictable, see
27966           bug #77659)
27967         * RichTextBox.cs: Using the new NoRecalc property of Document to
27968           keep x/y insert locations predictable. Also makes it faster inserting
27969           large chunks of RTF
27970
27971 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
27972
27973         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
27974           it's easier for a child control to handle the other messages without
27975           having to duplicate the special functionality
27976         * TextBoxBase.cs
27977           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
27978             code to handle processing the key ourselves, in order to get 
27979             access to the result of KeyEventArgs.Handled. We now only call 
27980             ProcessKey if they key hasn't been handled already. Fixes #77526.
27981           - set_Text: If null or empty string is given, just clear the 
27982             document. Fixes part of #77526
27983
27984 2006-02-27  Jackson Harper  <jackson@ximian.com>
27985
27986         * SizeGrip.cs: Paint the background color before painting the grip
27987         so things look right.
27988         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
27989
27990 2006-02-27  Mike Kestner  <mkestner@novell.com>
27991
27992         * ListView.cs:
27993           - Restructure layout and invalidation model to remove a ton of
27994           flicker from the control and speed up performance in general.
27995           - Add manual column resize, flickers like crazy, but I already have
27996           some ideas on how I'll fix that. (#76822)
27997           - Merge the three Icon-based views into a single layout method.
27998           - Move item selection interaction logic from the item since 
27999           interaction with the collections is more appropriate to the view.
28000           - Deselection on non-item clicks.
28001         * ListViewItem.cs:
28002           - Encapsulate most of the layout. Add some internal props to trigger
28003           layout.  Move to a model where Items invalidate themselves instead
28004           of just invalidating the whole control every time something changes.
28005           - Invalidate on Text/Caption changes.
28006           - switch to an offset based layout model to avoid having to absolute
28007           position every element on item moves.
28008           - correct checkbox layout to conform to MS layout.
28009         * ThemeWin32Classic.cs:
28010           - refactor some column header drawing code.
28011           - fix string justification for column headers (#76821)
28012           - make SmallIcon labels top justified for compat with MS impl.
28013         * ThemeClearlooks.cs:
28014           - adjust to new ListViewItem internal checkbox bounds api.
28015
28016 2006-02-27  Jackson Harper  <jackson@ximian.com>
28017
28018         * Control.cs:  Change where implicit controls fall in the zorder.
28019         They are now on top of all children.
28020         - Synced AddImplicit code with Add
28021         - Removed unused enumerator.
28022         * SizeGrip.cs: Remove the TODO as its been TODONE.
28023
28024 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
28025
28026         * TextControl.cs(Insert): Combine the last lines unless the insertion
28027           string ends with \n\n, otherwise we leave one line too many (Fixes
28028           something I noticed with the testapp for #77526; the bug itself was
28029           already fixed in the previous checkin)
28030
28031 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
28032
28033         * RichTextBox.cs:
28034           - SelectionColor and SelectionFont methods no longer set absolute
28035             styles. Instead, the keep font or color respectively (This 
28036             resolves a long-standing FIXME in the code)
28037           - When flushing RTF text, the insert code now considers text trailing
28038             behind the insertion point (Fixes the bug where when replacing
28039             the selected text via SelectedRTF the remainder of the line behind 
28040             the selection would stay on the first insertion line)
28041         * TextBoxBase.cs:
28042           - AppendText now updates the selection points after inserting text
28043           - AppendText now ensures that the last tag (sometimes 0-length) of
28044             the document is used for the style information (Fixes part of 
28045             bug #77220)
28046         * TextControl.cs:
28047           - Created new FontDefiniton class to allow describing partial style
28048             changes
28049           - StreamLine() now takes a lines argument, to allow it to decide
28050             whether an encountered zero-length tag is the last in the document
28051             (which must be kept to not loose the font/color contained in it,
28052             for later appends)
28053           - Created Combine() and Split() methods for Marker structs, to 
28054             support marker updates due to reformatted documents (soft line
28055             wraps)
28056           - Implemented Document.CaretTag setter
28057           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28058             of the last line (Not the cause, but also exposed by bug #77220)
28059           - Added LineTag argument to InsertString method, to allow callers
28060             to force a certain tag to be used (required to force use of the
28061             trailing zero-length tag of a document)
28062           - Now updating markers in Combine(), to avoid stale tag markers
28063           - Added some method descriptions to aid maintenance
28064           - Implemented new FormatText concept, allowing additive/subtractive
28065             formatting by only specifying the components that are to be 
28066             changed. This was needed for resolving the RTB.SelectedColor/
28067             RTB.SelectedFont fixmes
28068           - Added Break() support method to allow breaking up linetags (used
28069             for partial formatting)
28070           - Added GenerateTextFormat() method. It is used for partial 
28071             formatting and allows to generate a full font/color from given
28072             attributes and an existing tag.
28073
28074 2006-02-26  Jackson Harper  <jackson@ximian.com>
28075
28076         * XplatUIX11.cs:  Use the correct caption height.
28077         - Translate hittest coordinates to screen coords to match MS.
28078         * XplatUIWin32.cs: When we create MDI windows we need to reset
28079         some of the style flags, so we get a nice blank window, and can
28080         draw all the decorations ourselves.
28081         - Set a clipping rectangle on the non client paint event, the
28082         window manager drawing code needs one.
28083         * Form.cs: The window manager needs to know when the window state
28084         has been updated.
28085         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28086         don't need to factor in border and title sizes in these
28087         methods. TODO: Remove the args and fix the call points.
28088         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28089         properly.
28090         - Let the driver set the cursors.
28091         - Improve active window handling
28092         - Correct sizes for title bars and buttons.
28093         - Match MS drawing better
28094         * MdiWindowManager.cs: We don't need to handle border style
28095         updates specially anymore.
28096         - Check for scrollbars when windows are done moving
28097         - Handle Active properly.
28098         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28099         correctly. I am spewing the exception though, so we don't hide the
28100         bugs.
28101         
28102 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
28103
28104         * DataGridViewRowPostPaintEventArgs.cs,
28105           DataGridViewCellPaintingEventArgs.cs,
28106           DataGridViewRowCollection.cs,
28107           DataGridViewRowPrePaintEventArgs.cs,
28108           DataGridViewCell.cs: Clear a few warnings and implement a few
28109           exceptions that should be thrown.
28110
28111 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28112
28113         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28114           'inheriting' our parent's (non-default) cursor. (Part of
28115            the fix for #77479)
28116
28117 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
28118
28119         * XplatUIX11.cs: Fixed cast to make csc happy
28120
28121 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28122
28123         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28124           it's for the client area (part of fix for #77479 and needed
28125           for MDI window cursor handling)
28126         * XplatUIX11.cs
28127           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
28128             the appropriate default cursors and also passing the message
28129             up the parent chain 
28130           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
28131             for non-client areas
28132
28133 2006-02-15  Jackson Harper  <jackson@ximian.com>
28134
28135         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
28136         is a real MDI window
28137
28138 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
28139
28140         * X11DesktopColors.cs: Instead of checking the desktop session
28141           string for "KDE" check if it starts with "KDE"
28142
28143 2006-02-10  Jackson Harper  <jackson@ximian.com>
28144
28145         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
28146         systems).
28147
28148 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28149
28150         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
28151           errors
28152         * ColorDialog.cs:
28153           - Got rid of the panel. All controls are now directly added to
28154             the dialog form
28155           - Changed to mono coding style
28156
28157 2006-02-10  Jackson Harper  <jackson@ximian.com>
28158
28159         * InternalWindowManager.cs: We don't need the set visibility to
28160         false hack anymore now that peter has written beautiful shutdown
28161         code.
28162
28163 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
28164
28165         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
28166           where already explicitly destroyed
28167
28168 2006-02-10  Jackson Harper  <jackson@ximian.com>
28169
28170         * MdiClient.cs: Handle the case where windows are too high or to
28171         the left and we need scrollbars.
28172
28173 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28174
28175         * MimeIcon.cs: Added some icons
28176         * FileDialog.cs:
28177           - Fixed bug #77477
28178           - Got rid of the panel. All controls are now directly added to
28179             the dialog form
28180           - Changed to mono coding style
28181           - On Linux "My Computer" and "My Network" will now show some
28182             more usefull information. A new class, MasterMount, gathers
28183             this information from /proc/mount. Updated MWFFileView to make
28184             use of this information
28185           - Fixed a bug that caused FileDialog to crash when
28186             ".recently_used" file had a zero size
28187           - FilterIndex does now what it should
28188           - Some Refactoring
28189         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
28190             FileDialog changes
28191
28192 2006-02-09  Jackson Harper  <jackson@ximian.com>
28193
28194         * ComboBox.cs: Don't touch if null.
28195
28196 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
28197
28198         * Cursor.cs: 64bit safeness fix
28199         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
28200
28201 2006-02-09  Jackson Harper  <jackson@ximian.com>
28202
28203         * Form.cs: If a form is made into an MDI form update the styles so
28204         all the props can get set correctly.
28205         - Kill the mdi_container when we dont need it anymore.
28206         * InternalWindowManager.cs: Add missing NOT
28207
28208 2006-02-08  Jackson Harper  <jackson@ximian.com>
28209
28210         * InternalWindowManager.cs: Respek clipping when drawing MDi
28211         decorations.
28212
28213 2006-02-08  Jackson Harper  <jackson@ximian.com>
28214
28215         * Hwnd.cs: Add bits to track non client expose events.
28216         * XplatUIX11.cs: Track non client expose events on the hwnd. This
28217         gives us a proper invalid rect and will allow for some nice
28218         optimizations with NC client drawing
28219         - MDI windows are children windows, so move their style handling
28220         into the child window block.
28221         * InternalWindowManager.cs: Remove a state reset that was
28222         getting invoked at the wrong time. Fixes managed windows getting
28223         into a 'stuck' captured state.
28224
28225 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28226
28227         * TextControl.cs (Document.ctor): Now initializing 
28228           selection_anchor. Fixes #77493
28229
28230 2006-02-07  Jackson Harper  <jackson@ximian.com>
28231
28232         * TrackBar.cs: The increment/decrements were backwards.
28233
28234 2006-02-07  Mike Kestner  <mkestner@novell.com>
28235
28236         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
28237         to the instance itself.
28238
28239 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28240
28241         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
28242           on ulongs and pointers, the size differs between 32bit and 64bit
28243           systems. 
28244
28245 2006-02-07  Mike Kestner  <mkestner@novell.com>
28246
28247         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
28248         for 64 bit platforms to work around a metacity bug. 
28249
28250 2006-02-07  Jackson Harper  <jackson@ximian.com>
28251
28252         * TrackBar.cs: Process the input keys we need, and hookup to
28253         KeyDown instead of using WndProc, so we get key messages.
28254
28255 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
28256
28257         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
28258           machine we're on. 
28259         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
28260           we need to translate the XdndVersion atoms array before sending it
28261
28262 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
28263
28264         * XplatUIX11.cs: 
28265           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
28266             number of bits for the property, not the number of bytes. The
28267             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
28268             but would not crash since it specified 8 bits instead of 4 bits)
28269           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
28270             defined as XID -> long in the C headers)
28271           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
28272             references since those are now IntPtr to begin with
28273           - Switched all Atom.XXX 'int' casts to IntPtr casts
28274           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
28275           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
28276           - Added XChangeActivePointerGrab DllImport (for X11DnD)
28277         * X11Structs.cs:
28278           - Changed 'int' type for Atoms in XEvent structures to IntPtr
28279           - Changed atom in HoverStruct to be IntPtr
28280         * X11DnD.cs:
28281           - Removed local DllImports, switched code to use those from XplatUIX11
28282           - Removed/fixed casts related to the switch of Atom to be a IntPtr
28283
28284 2006-02-06  Mike Kestner  <mkestner@novell.com>
28285
28286         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
28287         method signatures in the import region.  There may still be some
28288         lingering struct marshaling issues, as I didn't drill down into those.
28289         Yet.
28290
28291 2006-02-06  Jackson Harper  <jackson@ximian.com>
28292
28293         * ComboBox.cs: Dont manually set the top_item, this is computed
28294         when the scrollbar position is set.
28295
28296 2006-02-06  Mike Kestner  <mkestner@novell.com>
28297
28298         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
28299         startup crashes on amd64.  There's other fixes needed.  All pinvoke
28300         usage of Atom needs to be mapped to IntPtr for example.  And there are
28301         likely other int/long issues to be addressed.
28302
28303 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
28304
28305         * FileDialog.cs: One more...
28306
28307 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28308
28309         * FileDialog.cs: Next try
28310
28311 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28312
28313         * FileDialog.cs: First part of fix for #77464
28314
28315 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28316
28317         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
28318           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
28319           AcceptButton border drawing.
28320
28321 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
28322
28323         * Form.cs: Moved positioning of form after auto scaling is applied,
28324           otherwise it would possibly use wrong form size.
28325
28326 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
28327
28328         * Control.cs (RecreateHandle): No need to re-create any child
28329           controls, the child windows will get destroyed automatically by
28330           the windowing system or driver, and re-created when the handle
28331           is being accessed the first time. Fixes #77456
28332         * Form.cs: No longer setting the form to closing if the handle is 
28333           being recreated. This seems like the right thing to do, don't
28334           have a bug or testcase for this, though.
28335
28336 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
28337
28338         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
28339           controls to avoid unwanted side effects
28340
28341 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
28342
28343         * Control.cs: 
28344           - ScaleCore needs to scale the bounds, not the ClientSize of the 
28345             control. Fixes #77416.
28346           - DefaultSize is 0,0 for control
28347         * TextBoxBase.cs: 
28348           - DefaultSize is 100, 20
28349           - SetBoundsCore: Now enforcing the height, no matter if the provided
28350             height is more or less than the preferred one, as long as AutoSize
28351             is on
28352         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
28353
28354 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
28355
28356         * Control.cs:
28357           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
28358             call unless both performLayout is true *and* we have a pending
28359             layout change
28360           - ResumeLayout: MS does not completely nest Suspend and Resume,
28361             they bottom out at 0, fixed our code to match that.
28362           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
28363             SetBoundsCore, we were updating even when we shouldn't. This fixes
28364             swf-anchors mis-anchoring when resizing the app fast and lots.
28365           - UpdateDistances: Now only setting the left and top distance if 
28366             we have a parent and are not suspended, this is based on
28367             a suggestion by Don Edvaldson in bug #77355.
28368           - OnVisibleChanged: Fixed logic when to create the control. We may
28369             not create the control if we have no parent or if it's not visible;
28370             switched to using Visible property instead of is_visible field 
28371             since the property also considers parent states. This fixes a bug
28372             when starting Paint.Net
28373
28374 2006-02-02  Jackson Harper  <jackson@ximian.com>
28375
28376         * Form.cs: If the forms handle hasn't been created yet don't call
28377         into xplatui to make it top most, just set the topmost flag on the
28378         form in CreateParams
28379         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
28380
28381 2006-02-01  Jackson Harper  <jackson@ximian.com>
28382
28383         * ScrollableControl.cs: Refactored the Recalculate method a
28384         little, this wasn't handling all the variants of bottom and right
28385         bars needed to be added and added/removed based on their
28386         counterparts being added/removed (which changes the drawable
28387         size). Also we special case client widths and heights of 0 and
28388         don't add the scrollbar for those.
28389
28390 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
28391
28392         * XplatUIX11.cs: 
28393           - Added method to get AbsoluteGeometry(); currently unused, but might
28394             be used in the future, if we try again to figure out toplevel
28395             coordinates with some more crappy window managers
28396           - Added FrameExtents() method to retrieve the WM set decoration size
28397           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
28398             to deal with at least KDE, FVWM and metacity (Fixes #77092)
28399         * Hwnd.cs: 
28400           - Added whacky_wm tracking var for metacity
28401           - Added logic to have default menu height if the actual menu height
28402             has not yet been calculated (part of fix for #77426)
28403         * Form.cs: Keep track whether client size has been set and re-set 
28404           it if a menu is added/removed afterwards (Fixes #77426)
28405
28406 2006-01-31  Jackson Harper  <jackson@ximian.com>
28407
28408         * Control.cs: When a new Site is set on the component attempt to
28409         pull the AmbientProperties from it.
28410
28411 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
28412
28413         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
28414           in the background of the owning form. Fixes #77332
28415
28416 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
28417
28418         * MimeIcon.cs: Fix for #77409
28419
28420 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
28421
28422         * XplatUIX11GTK.cs: Initial import
28423
28424 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
28425
28426         * FixedSizeTextBox: fixes class signature
28427
28428 2006-01-30  Jackson Harper  <jackson@ximian.com>
28429
28430         * FixedSizeTextBox.cs: New internal class that represents a
28431         textBox that will not be scaled.
28432         * TreeView.cs:
28433         * ComboBox.cs:
28434         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
28435         standard TextBox.
28436                 
28437 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
28438
28439         * XplatUIX11.cs: Retrieve default screen number instead of
28440           assuming 0. Attempted fix for #77318
28441
28442 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
28443
28444         * XplatUIWin32.cs: 
28445           - GetWindowPos: When a window is parented by FosterParent, use 
28446             the desktop instead of FosterParent as the base to get coordinates
28447           - CreateWindow: Don't make FosterParent the parent window for Popups
28448             if we don't want a taskbar entry, Popups automatically don't get one
28449         * Hwnd.cs: Need to call remove to actually remove the key from the
28450           hash table
28451
28452 2006-01-30  Mike Kestner  <mkestner@novell.com>
28453
28454         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
28455
28456 2006-01-30  Jackson Harper  <jackson@ximian.com>
28457
28458         * TreeView.cs:
28459         * TreeNode.cs: Raise events no matter how the treenode is
28460         checked. Patch by Don Edvalson.
28461
28462 2006-01-30  Jackson Harper  <jackson@ximian.com>
28463
28464         * TreeNode.cs: Signature fix.
28465
28466 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
28467
28468         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
28469
28470 2006-01-20  Mike Kestner  <mkestner@novell.com>
28471
28472         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
28473         event forwarding when menus are active.
28474         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
28475         Most of the patch is pdb's with a little rework.
28476
28477 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
28478
28479         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
28480           Removed GetMenuDC and ReleaseMenuDC methods; replaced
28481           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
28482         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
28483         * InternalWindowManager.cs: Added use of PaintEventStart/End to
28484           handling of WM_NCPAINT message, now passing the PaintEventArgs to
28485           the PaintWindowDecorations method
28486         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
28487         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
28488         * MenuAPI.cs: Made tracker window invisible
28489         * XplatUIWin32.cs:
28490           - Removed GetMenuDC and ReleaseMenuDC methods
28491           - Implemented the client=false path for PaintEventStart and
28492             PaintEventEnd
28493
28494 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
28495
28496         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
28497         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
28498           styles
28499         * Form.cs: 
28500           - MaximizeBox, MinimizeBox: Recreate the handle when setting
28501             the style
28502           - CreateParams: Reworked the styles to match MS look'n'feel,
28503             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
28504             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
28505
28506 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
28507
28508         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
28509           window is not mapped, since otherwise every form that's being 
28510           created is considered minimized, which is wrong.
28511         * Form.cs: Catching the exception and returning our internal value
28512           instead
28513
28514 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
28515
28516         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
28517           SetWindowMinMax() to have means to tell the driver about the minimum,
28518           maximum and maximized state window sizes. (Part of the fix for #76485)
28519         * Form.cs:
28520           - Implemented tracking of minimum and maximum window size, now calling
28521             new SetWindowMinMax() driver method to tell the driver (Part of the
28522             fix for #76485)
28523           - Finished handling of WM_GETMINMAXINFO method, now setting all values
28524             (Completes fix for #76485)
28525           - Calling new SetWindowMinMax driver method when the handle for a 
28526             form is created, to make sure the driver knows about it even if
28527             the values have been set before the window was created
28528           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
28529             to avoid messing up our anchoring calculations (partial fix
28530             for #77355)
28531         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
28532         * XplatUIX11.cs:
28533           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
28534           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
28535             (and presumably other freedesktop.org compliant WMs). Left the
28536             assumption unmapped=minimized, needed for SetVisible to work.
28537           - Now setting the window state when creating windows
28538           - Fixed SetVisible to consider/set the window state when mapping
28539             a Form. We cannot set the state before it's mapped, and we cannot
28540             use Form.WindowState once it's mapped (since it would ask the
28541             driver and get 'normal'. Therefore, we grab the state before
28542             mapping, map, and then set state.
28543           - Implmemented SetWindowMinMax method; Metacity does not seem to
28544             honor the ZoomHints, though.
28545         * XplatUIWin32.cs:
28546           - Removed MINMAXINFO (moved to XplatUIStructs)
28547           - Added SetWindowMinMax stub (on Win32 the only way to set that
28548             information is in response to the WM_GETMINMAXINFO message, which
28549             is handled in Form.cs)
28550           - Added logic to SetVisible to set the proper window state when a 
28551             form is made visible (fixes #75720)
28552
28553 2006-01-26  Jackson Harper  <jackson@ximian.com>
28554
28555         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
28556         same way we handle them with Invoke.
28557
28558 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
28559
28560         * Form.cs:
28561           - Added tracking of window state so CreateParams can return
28562             the appropriate style
28563           - Moved setting of WS_CAPTION style in CreateParams to allow
28564             styles without caption
28565         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
28566           control if the TextBox property is accessed. Fixes #77345
28567         * Control.cs:
28568           - get_Created: now uses is_disposed and is_created to determine
28569             return value (suggested by Jackson)
28570           - CreateHandle: No longer exits if the handle is being recreated
28571           - RecreateHandle: If the handle is not yet created call the 
28572             appropriate method to create either control or handle. If the
28573             control is already created CreateHandle will simply exit instead
28574             of just creating the handle
28575         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
28576           now SendMessage WM_DESTROY directly to the control when DestroyWindow
28577           is called.
28578         * XplatUIX11.cs: 
28579           - When DestroyWindow is called, instead of waiting for the 
28580             DestroyNotification from X11, we directly post it to the WndProc
28581             and immediately dispose the hwnd object.
28582             Same applies to DestroyChildWindows, and this obsoletes the
28583             expose_pending tracking. Contrary to Win32 behaviour we destroy our
28584             child windows before our own, to avoid X11 errors.
28585           - Removed the direct sending of WM_PAINT on UpdateWindow
28586         * XplatUIWin32.cs:
28587           - Reworked DoEvents and GetMessage to allow access to internal queue
28588             even when trying non-blocking access to the queue.  Fixes #77335. 
28589             Based on a patch suggestion by Don Edvalson. The new private
28590             GetMessage can now also be used as a backend for a PeekMessage
28591             frontend version.
28592         * XplatUI.cs: Improved debug output for CreateWindow
28593
28594 2006-01-25  Jackson Harper  <jackson@ximian.com>
28595
28596         * Help.cs: Allow param to be null. Patch by Don Edvalson.
28597
28598 2006-01-24  Jackson Harper  <jackson@ximian.com>
28599
28600         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
28601         when we have a MaxDropItems lower then the selected index.
28602
28603 2006-01-24  Jackson Harper  <jackson@ximian.com>
28604
28605         * Control.cs: Don't allow selection of non visible controls, allow
28606         selection of controls without parents.
28607
28608 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
28609
28610         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
28611         * DataGridDrawingLogic.cs: Add editing row only when is necessary
28612
28613 2006-01-23  Jackson Harper  <jackson@ximian.com>
28614
28615         * UpDownBase.cs: Make the textbox handle all the selection and
28616         tabbing. This fixes tabing to updown controls.
28617
28618 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
28619
28620         * TextBoxBase.cs: fixes exception thown the object was null
28621
28622 2006-01-23  Jackson Harper  <jackson@ximian.com>
28623
28624         * ButtonBase.cs: Just use the base CreateParams. They set
28625         visibility and enabled correctly.
28626         * ComboBox.cs:
28627         * TrackBar.cs:
28628         * MonthCalendar.cs: Lets let the base set as much of the
28629         createparams as possible so we don't have duplicate code all over
28630         the place.
28631
28632 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
28633
28634         * ThemeGtk.cs: Added TrackBar and some experimental code to
28635           get double buffering back
28636
28637 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
28638
28639         * DataGrid.cs: Allows row number set internally higher than the last
28640         when creating a new row. Restores the editing functionality.
28641
28642 2006-01-20  Mike Kestner  <mkestner@novell.com>
28643
28644         * MimeIcon.cs: delay Image creation until the icons are accessed
28645         instead of creating 190 scaled images on GnomeHandler startup.
28646
28647 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
28648
28649         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
28650           first call base before processing the event. Fixes #77279
28651
28652 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
28653
28654         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
28655           that the stride for the GDI bitmap would match the stride of
28656           a DIB or a Cursor.
28657
28658 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
28659
28660         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
28661
28662 2006-01-19  Jackson Harper  <jackson@ximian.com>
28663
28664         * ComboBox.cs: Hookup the text controls keydown event so we get
28665         those when the text control has the focus.
28666
28667 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
28668
28669         * Label.cs: Now using the base events instead of defining new ones;
28670           this allows us to just call the base properties without having to
28671           duplicate all base property logic 
28672
28673 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
28674
28675         * Label.cs: A label by default is not a tabstop (Fixes one of our
28676           failing nunit tests)
28677
28678 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
28679
28680         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
28681         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
28682
28683 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
28684
28685         * Cursor.cs: Reimplemented creating cursor bitmaps without using
28686           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
28687           This fixes #77218
28688         * XplatUIWin32.cs: 
28689           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
28690             constructor creates images that can't be saved. Part of the fix
28691             for #76103
28692           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
28693           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
28694             bug fix for handling window state in forms properly)
28695
28696 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28697
28698         * ThemeGtk.cs: Simplify ScrollBar drawing
28699
28700 2006-01-18  Jackson Harper  <jackson@ximian.com>
28701
28702         * Splitter.cs: Set the default dock style for the splitter control
28703         in the constructor.
28704
28705 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28706
28707         * ThemeGtk.cs: Corrected StateType and ShadowType for
28708           gtk_paint_box
28709
28710 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28711
28712         * Control.cs: Make use of Theme.DoubleBufferingSupported
28713         * ThemeGtk.cs:
28714           - Added drawing for flat style buttons
28715           - Added ScrollBar drawing
28716
28717 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28718
28719         * ThemeClearlooks.cs: Removed some unneeded code.
28720         * ThemeGtk.cs: First part of ThemeGtk enhancements.
28721
28722 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
28723
28724         * LinkLabel.cs: We need to update the hover drawing when
28725           leaving the control as well.
28726
28727 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
28728
28729         * DataGrid.cs: Clicking on non empty areas in the columns
28730            area was giving an exception
28731
28732 2006-01-17  Jackson Harper  <jackson@ximian.com>
28733
28734         * ThemeWin32Classic.cs:
28735         * ListView.cs: Do not draw/clip the headers when the header style
28736         is None.
28737
28738 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
28739
28740         * DataGrid.cs: Fixes 77260
28741         
28742 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
28743
28744         * DataGrid.cs: Clicking on a column on a empty grid was giving
28745           an exception
28746
28747 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
28748
28749         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
28750           or any keypress will crash the grid.
28751
28752 2006-01-17  Mike Kestner  <mkestner@novell.com>
28753
28754         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
28755         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
28756         invisible/previously-visible items.
28757         [Fixes #76909]
28758
28759 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
28760
28761         * ThemeClearlooks.cs:
28762         - Added CL_Draw_Button method; now other theme controls that are 
28763           not derived from button or do not have a button can draw buttons
28764           too
28765         - Updated ComboBox drawing
28766         - Beautified RadioButton drawing
28767         - Corrected drawing of bottom and left tabs
28768         - Beautified DateTimePicker and MonthCalendar
28769         - Added CPDrawButton and CPDrawRadioButton
28770
28771 2006-01-16  Jackson Harper  <jackson@ximian.com>
28772
28773         * ComboBox.cs: Set the initial value of the scrollbar to the
28774         current index. Reduce the numbers of refreshs and IndexOfs called.
28775
28776 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
28777
28778         * FileDialog.cs: When the file listview is focused hitting the
28779           backspace key moves the fileview to the parent directory
28780
28781 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
28782
28783         * Form.cs: 
28784           - Added RecreateHandle call when changing taskbar visibility to 
28785             trigger reparenting in Win32 driver (Fixes #75719)
28786           - If a window has minimize or maximize buttons, it cannot have
28787             a help button
28788         * XplatUIWin32.cs:
28789           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
28790             the toplevel form with FosterParent (A toolwindow not on the
28791             taskbar) (Fixes #75719)
28792           - Made FosterParent a toolwindow
28793
28794 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28795
28796         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
28797
28798 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28799
28800         * ToolTip.cs: If SetToolTip is called from a control and the mouse
28801           is currently over that control, make sure that tooltip_window.Text
28802           gets updated
28803
28804 2006-01-13  Mike Kestner  <mkestner@novell.com>
28805
28806         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
28807
28808 2006-01-13  Jackson Harper  <jackson@ximian.com>
28809
28810         * TreeView.cs: On MS GetNodeAt never actually factors in the X
28811         value passed.  Also redraw the selected node when we recieve
28812         focus, so tabbing between trees works correctly.
28813
28814 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28815
28816         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
28817           ~/.gconf/%gconf-tree.xml, so use
28818           .gconf/desktop/gnome/interface/%gconf.xml
28819
28820 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
28821
28822         * TextControl.cs: Draw text in gray if control is disabled
28823
28824 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
28825
28826         * TreeView.cs: Draw the focus rectangle outside the highlight, to
28827           make sure it's always visible. Fixes #76680.
28828
28829 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
28830
28831         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
28832
28833 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
28834
28835         * PageSetupDialog.cs: Added.
28836         * PrintDialog.cs: Attributes.
28837         * PrintPreviewControl.cs: Updates.
28838         * PrintPreviewDialog.cs: Updates.
28839         
28840 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28841
28842         * Control.cs: Undid my selection check fix, since it's not needed
28843         * TextBoxBase.cs:
28844           - Now considering the presence of hscroll/vscroll when sizing
28845             vscroll/hscroll respectively. Fixed bug #77077
28846           - Added Left/Up/Down/Right to IsInputKey list to prevent
28847             ContainerControl from stealing them. This fixes what I broke
28848             with my last checkin.
28849
28850 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
28851
28852         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
28853           I finally understand how the property can be set without a setter :-)
28854
28855 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28856
28857         * Application.cs:
28858           - Switched RunLoop to use static Message.Create to create a 
28859             Message object
28860           - Added PreProcessMessage call in runloop for keyboard events; this
28861             is part of the fix for #77219, I overlooked this originally in the
28862             MSDN doc for PreProcessMessage
28863         * Control.cs:
28864           - Removed call to PreProcessMessage from handling of keyboard 
28865             messages; it's supposed to be done in the message pump
28866           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
28867             per MSDN documentation.
28868           - IsInputChar: All chars are input chars by default; removed the 
28869             parent calling chain, MS does not document that
28870           - PreProcessMessage: If IsInputChar is true, we want to return false
28871             to allow dispatching of the message
28872           - When selecting the next control, now also check that we're not
28873             selecting ourselves again and therefore return a false positive.
28874         * TextBoxBase.cs:
28875           - Tried to match return values for IsInputKey and ProcessDialogKey
28876             to what MS returns; moved processing of our special keys outside
28877             ProcessDialogKey since MS does not seem to return true on those.
28878           - Moved code that previously was in ProcessDialogKey into new private
28879             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
28880           - Reworked handling of WM_CHAR to not have to duplicate code from
28881             Control.cs anymore, instead we simply call down to base.
28882            
28883 2006-01-12  Jackson Harper  <jackson@ximian.com>
28884
28885         * ComboBox.cs: We always need to refresh the text area when
28886         EndUpdate is called. Fixes the combobox in the file dialog.
28887         * Control.cs: Don't create the creator_thread until the controls
28888         handle is created.  Also in InvokeRequired we check if the
28889         creator_thread is null. This gives the effect of InvokeRequired
28890         returning true if the controls handle is not created yet, and
28891         matches MS.
28892
28893 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28894
28895         * XplatUI.cs:
28896           - Added StartLoop() driver method. This is used to allow drivers to
28897             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
28898             loop for a particular thread
28899           - Added EndLoop() driver method. This is called once the message
28900             pump for the thread is shut down
28901           - Added SupportsTransparency method to allow the driver to indicate
28902             opacity support for windows
28903         * Form.cs:
28904           - Removed TODO attribute, completed AllowTransparency property
28905           - Added documented logic to Opacity
28906         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
28907           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
28908           versions of CompatibleTextRendering
28909         * X11Structs.cs: Added opacity atom to our atom enumeration
28910         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
28911           of a form might be set before it's reparented by the WM, and we need
28912           the opacity value without calling up to Form)
28913         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
28914           SupportsTransparency() driver methods
28915         * Application.cs: Now calling StartLoop and EndLoop driver methods
28916         * XplatUIX11.cs:
28917           - Added opacity atom registration
28918           - Added StartLoop()/EndLoop() methods. They're empty right now but
28919             will need to get implemented when we switch to a per-thread queue
28920           - Implemented SupportsTransparency() method
28921           - Implemented SetWindowTransparency() method
28922           - Added support for setting the opacity value when a window is
28923             reparented (since the opacity needs to be set on the WM frame)
28924         * XplatUIOSX.cs, XplatUIWin32.cs:
28925           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
28926
28927 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
28928
28929         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
28930
28931 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
28932
28933         * FileDialog.cs: Added ToolTip for MWFFileView
28934         * MimeIcon.cs: Rewrote GnomeHandler.
28935           - Get currently used gnome icon theme from
28936             ($HOME)/.gconf/%gconf-tree.xml
28937           - Make use of inherited icon themes
28938           - Support SVG icon themes like Tango via librsvg
28939
28940 2006-01-12  Miguel de Icaza  <miguel@novell.com>
28941
28942         Revert's Jackson's revert which broke 2.0 builds.   Fix both
28943         builds. 
28944         
28945         * Application.cs: Move the use_compatible_text_rendering outside
28946         the NET_2_0 define.  If we ever need to use the
28947         use_compatible_text_rendering on the individual controls they will
28948         access the variable from the common shared code paths.
28949
28950 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28951
28952         * XplatUI.cs:
28953           - Added more granular debug options
28954           - Added method to print both window text and id
28955           - Switched debug output to use new Window() debug method
28956           - Added IsEnabled() driver method
28957           - Added EnableWindow() driver method
28958         * Form.cs:
28959           - Removed end_modal; no longer needed, new loop handles termination
28960             via 'closing' variable
28961           - If form is modal, setting DialogResult will now initiate loop
28962             termination via 'closing' variable
28963           - Added support for is_enabled/WS_DISABLED to CreateParams
28964           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
28965             does all the work
28966           - Removed code that's now in RunLoop from ShowDialog()
28967           - Added various documented sanity checks to ShowDialog()
28968           - Added handling of WM_DESTROY message; we set 'closing' on getting
28969             the message to indicate the message pump to terminate
28970           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
28971             send by the Application.ExitThread method. (We send the message
28972             to destroy the window after all other events have been
28973             processed through the queue, instead of destroying the handle 
28974             directly)
28975           - Moved code from Close() method to WM_CLOSE handler; added logic
28976             to only send close-related events if the form is not displayed
28977             modal
28978         * Splitter.cs (..ctor): Fixed typo in resource name
28979         * Control.cs:
28980           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
28981             brush now
28982           - set_Cursor: Now only setting calling into XplatUI if the handle for
28983             the control is already created; this avoids implict handle creation
28984             or crashes if it's not created
28985           - set_Enabled: Now setting the enabled state via the new driver method
28986             instead of just tracking it
28987           - CreateParams: Added logic to set WS_DISABLED based on enabled state
28988           - CreateControl: Reordered event firing and method calls to more
28989             closely fire events in the order MS does. Now setting the
28990             enabled state in the driver when creating the control.
28991           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
28992             match MS order
28993         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
28994           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
28995         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
28996         * Hwnd.cs:
28997           - Added tracking of window enabled state (get_Enabled/set_Enabled)
28998           - Added EnabledHwnd property to easily allow a driver to find the
28999             handle of the first enabled window in the parent chain (this is
29000             used by drivers to pass up input events of disabled windows)
29001         * XplatUIDriver.cs: Added IsEnabled() method
29002         * Application.cs:
29003           - Removed crude and obsolete exiting tracking variable
29004           - Removed internal ModalRun(); replaced by RunLoop()
29005           - Implemented private CloseForms() method to allow closing all 
29006             windows owned by a particular (or all) threads
29007           - Exit() now properly closes all windows without forcing the message
29008             pump to quit
29009           - Removed obsolete InternalExit() method
29010           - Changed Run() methods to use new RunLoop() message pump
29011           - Implemented new RunLoop() method for both modal and non-modal forms
29012         * CommonDialog.cs:
29013           - get_CreateParams: Added setting of WS_DISABLED
29014           - Simplified ShowDialog(); now all the work is done in RunLoop(),
29015             invoked via Form.ShowDialog()
29016         * NativeWindow.cs: We don't remove the window from the collection when
29017           the handle is destroyed; there might still be messages for it in the
29018           queue (mainly the resulting WM_DESTROY); instead it will be removed
29019           when Control calls InvalidateHandle in the WM_DESTROY handler
29020         * XplatUIX11.cs:
29021           - CreateWindow: Added logic to handle the WS_DISABLED window style
29022           - EnableWindow: Implemented based on Hwnd.Enabled
29023           - GetMessage: Reset PostQuitState so the method can be called again
29024           - Implemented support for disabled windows (passing messages to the
29025             first enabled parent) in handling all input messages
29026           - Added optimizations for handling Expose events
29027           - Implemeted new driver method IsEnabled()
29028           - Now always resetting paint pending tracking vars when we start paint
29029           - Re-implemented UpdateWindow via just sending a WM_PAINT message
29030         * XplatUIOSX.cs: Added IsEnabled method stub
29031         * XplatUIWin32.cs: Implemented new IsEnabled() method
29032
29033 2006-01-11  Jackson Harper  <jackson@ximian.com>
29034
29035         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29036         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29037         variables a little.
29038         * ColorDialog.cs: Clear out the old form before adding the new
29039         panel.  
29040
29041 2006-01-11  Jackson Harper  <jackson@ximian.com>
29042
29043         * X11Dnd.cs: Make sure to add all the text formats when adding
29044         strings to the data object.
29045         * TreeNodeCollection.cs: When adding to a sorted tree we need to
29046         do some redrawing too.  Also change the UpdateNode to an
29047         UpdateBelow so the newly added node gets painted.
29048         
29049 2006-01-11  Miguel de Icaza  <miguel@novell.com>
29050
29051         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29052         LinkLabel.cs, PropertyGrid.cs: Implement the
29053         UseCompatibleTextRendering property for 2.x
29054
29055         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
29056
29057 2006-01-11  Jackson Harper  <jackson@ximian.com>
29058
29059         * TreeView.cs: Use the property for setting the selected node so
29060         the correct events get raised.
29061         * TreeNode.cs: Update the tree when the fore/back colours of a
29062         node are set.
29063
29064 2006-01-10  Jackson Harper  <jackson@ximian.com>
29065
29066         * TreeView.cs: Allow setting SelectedNode to null.
29067
29068 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29069
29070         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29071
29072 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29073
29074         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29075
29076 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29077
29078         * PrintDialog.cs: Added attributes and set default property values.
29079
29080 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29081
29082         * PrintControllerWithStatusDialog.cs: 
29083         Added PrintControllerWithStatusDialog.
29084
29085 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29086
29087         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
29088         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29089
29090 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29091
29092         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29093
29094 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29095
29096         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29097         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29098
29099 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29100
29101         * MimeIcon.cs: Added internal class SVGUtil.
29102
29103 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29104
29105         * FileDialog.cs: Don't crash if there are two files with the
29106           same name but different locations.
29107
29108 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
29109
29110         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29111         dates across multiple month grids. Used to not highlight entire 
29112         month, but does now.
29113         
29114 2006-01-06  Jackson Harper  <jackson@ximian.com>
29115
29116         * MonthCalendar.cs: Removed DoEvents call to prevent a running
29117         message loop. Change timer intervals to numbers that seem more
29118         natural.
29119
29120 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
29121
29122         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29123           object for location info since screen object is now implemented.
29124
29125 2006-01-05  Jackson Harper  <jackson@ximian.com>
29126
29127         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
29128         * AsyncMethodResult.cs: We no longer use a WeakReference for the
29129         AsyncMethodResult, this is because we ALWAYS want the
29130         ManualResetEvent to get set.
29131         * Control.cs: When disposing use an async invoke to call shutdown
29132         code, so that thigns don't block on the finalizer thread.  Also
29133         check if we even have a message loop before trying to send
29134         messages, if we don't then don't bother sending messages.
29135         - No more weak references for async methods
29136         * XplatUIDriver.cs: No more weak references for async methods.
29137
29138 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29139
29140         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
29141           returns two FontFamily with the same name
29142
29143 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29144
29145         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
29146           drawing disabled text. Instead using the ColorGrayText color
29147
29148 2006-01-04  Jackson Harper  <jackson@ximian.com>
29149
29150         * TreeNode.cs: redraw the node when its image index is changed.
29151
29152 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29153
29154         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
29155           time I checked there are no others like it.
29156
29157 2006-01-04  Jackson Harper  <jackson@ximian.com>
29158
29159         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
29160         this gives the behavoir I was looking for.
29161         * Control.cs: Special case Invoking EventHandlers, this matches MS
29162         and fixes part of bug #76326.
29163
29164 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29165
29166         * ThemeClearlooks.cs, FileDialog.cs:
29167           - Reflect the latest Theme class changes
29168           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
29169             with DateTime
29170             
29171 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29172
29173         * Theme.cs: Cache UI resource images and resize them if needed
29174
29175 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29176
29177         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
29178           is called. This fixes the crash in Nexxia when setting the font
29179           attributes in the chat. [However, RTF needs a look-over to make sure
29180           that all SelectionXXX methods handle the special case that selection
29181           is empty and therefore the change must be applied to all text starting
29182           at the cursor/selection start]
29183
29184 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
29185
29186         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29187           XplatUIOSX.cs: Added SendMessage and PostMessage methods
29188         * X11Keyboard.cs: Switched to new way of calling PostMessage
29189
29190 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29191
29192         * Theme.cs: Added theme interface for images to allow the theme to
29193           control what images are used for things like FileDialog, MessageBox
29194           icons, etc.
29195         * MessageBox.cs: Now uses the new Theme icon/image interfaces
29196
29197 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
29198
29199         * FileDialog.cs:
29200           - Removed some dead code
29201           - Opening a recently used file does work now
29202           - Small UI enhancements
29203           - Refactoring
29204
29205 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29206
29207         * FileDialog.cs: Forgot too add __MonoCS__
29208
29209 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29210
29211         * FileDialog.cs: We are able to read recently used files now let's
29212           go on and write them.
29213
29214 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
29215
29216         * FileDialog.cs: Breathe some life into "last open"/"recently used"
29217           button
29218         * MimeIcon.cs: Do a check for the top level media type also
29219
29220 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29221
29222         * ThemeClearlooks.cs:
29223           - Added CPDrawStringDisabled
29224           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
29225             some chars if the text doesn't fit into text_rect
29226           - DrawListViewItem: If View = View.LargeIcon center the image;
29227             rewrote the drawing of ListViewItem.Text if View = 
29228             View.LargeIcon
29229
29230 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29231
29232         * MimeIcon.cs: Use default KDE icon theme if there is no
29233           "48x48" directory for the current icon theme, fixes #77114
29234         * Mime.cs: Disable not working and actually not used code. 
29235         * ThemeWin32Classic.cs:
29236           - Replace "new SolidBrush" in GetControlBackBrush and
29237             GetControlForeBrush with ResPool.GetSolidBrush
29238           - Changed DrawListViewItem from private to protected virtual
29239         * FileDialog.cs:
29240           - Added form.MaximizeBox = true
29241           - Don't throw an exception if there is a broken symbolic link
29242
29243 2005-12-23  Jackson Harper  <jackson@ximian.com>
29244
29245         * TabControl.cs: Give the panels focus, keyboard navigation is
29246         fixed so this works correctly now.
29247         - We need these key events also.
29248         * ToolBar.cs: Remove some of the poor mans double buffering.
29249         
29250 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
29251
29252         * ComboBox.cs: The internal TextBox now returns the focus.
29253
29254 2005-12-23  Jackson Harper  <jackson@ximian.com>
29255
29256         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
29257
29258 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29259
29260         * Control.cs: Removed debug code
29261         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
29262           implicit children
29263
29264 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
29265
29266         * Control.cs: When creating the control, update the Z-order after
29267           all it's children are created, too. (Fixes nexxia not showing
29268           picturebox bug)
29269
29270 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29271
29272         * Control.cs: Do not update the anchoring distances if layout is
29273           suspended, instead do it once layout is resumed
29274
29275 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
29276
29277         * Control.cs: 
29278           - After many hours of debugging, for both Jackson and
29279             myself, it turns out that it helps to set the parent of a control
29280             if you want to actually see it onscreen. In the spirit of that
29281             discovery, we're now setting the parent of the control and
29282             it's children when the control's handle is created. This fix
29283             will make Lutz Roeder's Reflector run happily. 
29284           - now just creating the handle instead of the whole control when
29285             getting a graphics context for the control.
29286
29287 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
29288
29289         * ScrollableControl.cs: When calculating the canvas, don't consider
29290           the scrollbar widths. Instead, predict if horizontal scrollbar
29291           will affect canvas when deciding on vertical display and vice versa.
29292
29293 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
29294
29295         * RichTextBox.cs: Set default RTF font for documents that don't
29296           have a font table (Fixes #77076)
29297
29298 2005-12-22  Jackson Harper  <jackson@ximian.com>
29299
29300         * TextBoxBase.cs: It's difficult to do, but you can have an empty
29301         clipboard. This prevents a NullRef in that case.
29302         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
29303         clipboard. PRIMARY is for the currently selected text only. (We
29304         should implement PRIMARY at some point.
29305
29306 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29307
29308         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
29309           a Unicode function with a structure that was defined in Ansi way.
29310           This fixes #76942.
29311
29312 2005-12-21  Jackson Harper  <jackson@ximian.com>
29313
29314         * StatusBar.cs: Statusbar handles its fore/back colours on it's
29315         on. Because thats how it rolls. (and this avoids it using ambient
29316         colours).
29317         * ThemeWin32Classic.cs: Use the proper back color for filling.
29318         * Menu.cs: Use the system menu bar color for drawing menu
29319         bars. Using the window back color will bring ambient colours into
29320         the picture.
29321
29322 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
29323
29324         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
29325           Bitmaps were created and not disposed.
29326
29327 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29328
29329         * Control.cs (CreateControl): Don't do anything if the control is
29330           already created, otherwise we'd fire the OnCreated event more than
29331           once
29332
29333 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
29334
29335         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
29336           will always match. Instead return -1. Fixes #76464.
29337
29338 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29339
29340         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
29341           neither the beginning nor the end of the line (Fixes bug #76479)
29342
29343 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
29344
29345         * Control.cs:
29346           - ControlNativeWindow.ControlFromHandle(): Now handling situation
29347             where handle is invalid
29348           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
29349             instead of slower linear search
29350         * NativeWindow.cs: Don't remove the window from the hashtable until
29351           after the driver has destroyed it (since the driver might use
29352           Control.FromHandle to lookup the control object
29353         * Hwnd.cs: Added DestroyPending property to track if a window is 
29354           already destroyed as far as the driver is concerned and only hasn't
29355           yet notified the control
29356         * XplatUIX11.cs:
29357           - Activate(): Check if the window is still valid before using the 
29358             handle
29359           - Implemented DestroyChildWindow() method to mark child windows as
29360             destroyed when a window is destroyed. This prevents situations 
29361             where we might call an X method based on queued events for a
29362             window that already has been destroyed but we haven't yet pulled
29363             the destroy method from the queue.
29364           - Added a call to the new DestroyChildWindow() method to the drivers
29365             DestroyWindow code. Also now marking the destroyed window itself
29366             as pending
29367
29368 2005-12-20  Jackson Harper  <jackson@ximian.com>
29369
29370         * StatusBar.cs:
29371         * StatusBarPanel.cs: Don't calculate panel sizes on draw
29372         anymore. Just do them when needed, also track the rects of panels
29373         so that we can optimize refreshing more in the future.
29374
29375 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
29376
29377         * ColorDialog.cs: Fixed focus drawing in small color controls
29378
29379 2005-12-19  Jackson Harper  <jackson@ximian.com>
29380
29381         * InternalWindowManager.cs:
29382         * MdiWindowManager.cs: Cleanup some coordinate system changes so
29383         moving windows works properly.
29384
29385 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
29386
29387         * Control.cs: 
29388           - Removed call to InitLayout() from SetBoundsCore(); doc says
29389             it's only called when a control is added to a container
29390           - Split InitLayout logic, moved to separate UpdateDistances() method
29391             since we need to perform those calculations more often than just
29392             when adding the control to a container. (Needed to fix #77022)
29393           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
29394           - Reduced the OnBindingContextChanged events count, don't send them
29395             unless the control is created, we still aren't totally matching
29396             MS, but I can't quite figure out some of their rules
29397
29398 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29399
29400         * ThemeClearlooks.cs: Corrected distance between ProgressBar
29401           stripes
29402
29403 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29404
29405         * ThemeClearlooks.cs:
29406           - Updated ProgressBar drawing
29407           - Corrected drawing of ScrollBars and scroll buttons
29408           - Some temporary fixes for minor pixel artefacts
29409
29410 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
29411
29412         * Control.cs:
29413           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
29414             cause events to be sent in the same order as MS does.
29415           - Added ChangeParent() method to trigger various OnXXXChanged events
29416             that need to be fired when a parent changes (This is a reworking
29417             of the patch from r54254, with the X11 errors fixed)
29418           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
29419             since on MS we get OnLayoutChanged events when calling Clear()
29420           - Changed Enabled property to consider parent state as well, if a
29421             parent is not enabled, the control will not be either
29422           - Changed Parent property to simply call Controls.Add() since that
29423             now does all the work required, this way we avoid code duplication
29424           - Threw in a few OnBindingsContextChanged calls to try and match
29425             when MS sends them. We seem to send a few too many, though.
29426           - Added call to CreateControl when adding the control to a parent.
29427             We were never calling CreateControl. Still needs some work, in
29428             some places we treat HandleCreated and ControlCreated as equal, 
29429             which is wrong
29430           - Removed obsolete commented out code from UpdateZOrder()
29431
29432 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29433
29434         * ThemeClearlooks.cs: Updated TrackBar drawing.
29435
29436 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
29437
29438         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
29439
29440 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
29441
29442         * FileDialog.cs: Add the Help button and the open readonly
29443           checkbox only if needed
29444
29445 2005-12-16  Jackson Harper  <jackson@ximian.com>
29446
29447         * Control.cs: Make sure we have an active menu before trying to
29448         process commands on it. Prevents menu-less forms from crashing
29449         when Alt is pressed.
29450         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
29451         Dieter Bremes.
29452         * RichTextBox.cs: Expand statement to help out gmcs and fix the
29453         2.0 build.
29454
29455 2005-12-16  Jackson Harper  <jackson@ximian.com>
29456
29457         * InternalWindowManager.cs: Don't translate tool windows screen
29458         coordinates. This fixes windows 'bouncing' around when being moved.
29459
29460 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
29461
29462         * TextBoxBase.cs:
29463           - MaxLength now treats 2^31-1 equal to unlimited length (this is
29464             not quite MS compatible, MS uses that number only for single line
29465             and 2^32-1 for multi-line, but I figure it won't hurt keeping
29466             the limit at 2GB)
29467           - Now enforcing the MaxLength limit when entering characters
29468           - Added argument to internal Paste() method to track if it's called
29469             from programatically or via keyboard, since keyboard driven pastes
29470             need to enforce max-length
29471           - Added logic to Paste to only paste as many chars as MaxLength 
29472             allows
29473         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
29474         * TextControl.cs:
29475           - Added Length property to return number of characters in document
29476           - Added private CharCount property which only tracks actual chars
29477             in the document (no linefeeds) and fires event when CharCount
29478             changes
29479           - Added tracking of character count to all methods that alter it
29480           - Added LengthChanged event to allow applications to subscribe
29481             to any changes to the document
29482
29483 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
29484
29485         * TextBox.cs: 
29486           - Removed local password_char field (moved to TextBoxBase)
29487           - Now setting the document's password var when password is
29488             set
29489         * TextBoxBase.cs:
29490           - Added password_char field (needed here so MultiLine can
29491             access it)
29492           - Added logic to MultiLine property setter to set the document's
29493             variable when password display is allowed
29494           - Removed debug code and made some debug code conditional
29495         * TextControl.cs:
29496           - Added RecalculatePasswordLine() method to handle special password
29497             char only lines
29498           - Added PasswordChar property, also added related tracking vars
29499           - Draw() method now uses local text var for grabbing text to draw,
29500             this var is set to line.text unless we're doing password display,
29501             then it is set to the pre-generated all-password-chars line
29502           - Added calling RecalculatePasswordLine() method for password lines
29503
29504 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
29505
29506         * Hwnd.cs: 
29507           - Added Reparented property to allow tracking of Window Manager
29508             reparenting actions (which affect X/Y calculations of toplevel 
29509             windows)
29510           - Made ToString() print window handles in hex
29511         * XplatUIX11.cs:
29512           - AddConfigureNotify(): Now uses reparented state off Hwnd to
29513             determine if X/Y needs offsetting
29514           - AddConfigureNotify(): Fixed offset calculations
29515           - Now adds ReparentNotify messages into the queue
29516           - Now processes ReparentNotify messages and causes a 
29517             WM_WINDOWPOSCHANGED message to be sent upstream if a window
29518             is reparented (as most likely it's X/Y coordinates are changed
29519             due to that)
29520
29521 2005-12-14  Jackson Harper  <jackson@ximian.com>
29522
29523         * XplatUIX11.cs: Tool windows still need to respek focus.
29524
29525 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
29526
29527         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
29528           have a working release
29529
29530 2005-12-13  Jackson Harper  <jackson@ximian.com>
29531
29532         * Form.cs: Update styles after setting the border style regardless
29533         of whether or not the window is using a window manager.
29534
29535 2005-12-13  Jackson Harper  <jackson@ximian.com>
29536
29537         * Form.cs: We now hook into an internal window manager instead of just an
29538         MDI subsystem, this is so we can have properly behaving tool windows.
29539         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
29540         * InternalWindowManager.cs: New internal class that acts as a
29541         window manager for tool windows and as a base for mdi windows.
29542         * MdiWindowManager.cs: New class that acts as a window manager for
29543         mdi windows.
29544
29545 2005-12-12  Jackson Harper  <jackson@ximian.com>
29546
29547         * Control.cs: Updates so we match behavoir for for implicit
29548         controls. Fixes explosions in MDI.
29549
29550 2005-12-12  Jackson Harper  <jackson@ximian.com>
29551
29552         * Control.cs: Implement Invalidate (Region).
29553
29554 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
29555
29556         * Control.cs: 
29557           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
29558             the same events as MS does. MS fires events for each property 
29559             except, for unknown reasons, Cursor, when the control is reparented. 
29560             I can't seem to totally match add/remove since MS also fires some 
29561             VisibleChanged events, which makes no sense. Consolidated the
29562             parenting code into a separate method so it can be called from
29563             both Add and Remove. set_Parent no longer needs any special logic
29564             as it calls the parent's add method which implicitly fires
29565             all events
29566           - Removed some obsolete code and debug output
29567           - Enabled state is inherited from parents, if this is enabled
29568
29569 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
29570
29571         * Form.cs: Removed commented out code
29572
29573 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
29574
29575         * Control.cs:
29576           - Added internal version of Invoke, with additional argument 
29577             indicating if we're calling it from a Dispose() handler. That
29578             way we can avoid BeginInvoke throwing an exception if we're
29579             calling for an already destroyed window.
29580           - Added a dispose argument to BeginInvokeInternal, and made the
29581             check if a valid window handle chain exists conditional on
29582             it not being a dispose call
29583           - Removed code in DestroyHandle to destroy our children. Since we
29584             now handle the WM_DESTROY message we will catch all our children
29585             being destroyed.
29586           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
29587         * Form.cs:
29588           - Added a field to track the application context of the form.
29589           - No need to set closing variable as response to WM_CLOSE, instead
29590             we destroy the window. We also call PostQuitMessage if the form
29591             has an application context (which makes it the main app form,
29592             which, when closed terminates the app)
29593         * XplatUI.cs:
29594           - Dropped Exit() method, it's naming was confusing
29595           - Added PostQuitMessage() which causes GetMessage to return false
29596             once the message queue is empty
29597         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
29598           PostQuitMessage()
29599         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
29600           no longer a valid XplatUI method, but left it in since it's used
29601           internally. Added empty PostQuitMessage() method.
29602         * MenuAPI.cs: Replaced call to Exit() with call to
29603           PostQuitMessage, even though this is probably no longer needed.
29604         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
29605         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
29606         * Application.cs:
29607           - Replaced call to XplatUI.Exit() with PostQuitMessage()
29608           - Removed old debug code that would call XplatUI for exception
29609             display, enabled standard exception handling (Still not enabled
29610             though, until NativeWindow's ExternalExceptionHandler define
29611             is removed
29612         * NativeWindow.cs:
29613           - Added internal method to allow control to update NativeWindow
29614             after a window has been destroyed
29615           - Added handling of already destroyed windows when calling i
29616             DestroyWindow
29617           - Added removal of handle from list on ReleaseHandle
29618         * XplatUIX11.cs:
29619           - Dropped GetMessageResult var and related code
29620           - Added PostQuitState to field to track if PostQuitMessage has been
29621             called
29622           - Dropped Exit() method
29623           - Added PostQuitMessage() method
29624           - GetMessage now will return false if PostQuitState is set and no
29625             more messages are in the queue.
29626           - Expose handler will no longer generate WM_PAINT messages if we are
29627             in PostQuitState since it's very likely any windows have already
29628             been destroyed, and since Hwnd won't get updated until we have
29629             processed the DestroyNotify we'd be causing X errors.
29630         
29631 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29632
29633         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
29634           Thanks to Mike for pointing out the err of my ways.
29635
29636 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29637
29638         * Control.cs(PreProcessMessage): Moved menu handling back, but
29639           after all other key handling, to match MS (who handles Menu in
29640           DefWndProc)
29641         * Menu.cs (WndProc): Removed my brainfart
29642
29643 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29644
29645         * Control.cs(PreProcessMessage): Removed special menu handling 
29646         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
29647
29648 2005-12-07  Mike Kestner  <mkestner@novell.com>
29649
29650         * Control.cs : special case SYSKEYUP so that we can adjust keynav
29651         state according in tracker.
29652         * Menu.cs : promote tracker field to base class and provide a tracker
29653         lookup capability.  Add/Remove shortcuts dynamically if the top menu
29654         has a tracker. Unparent items that are removed from the collection.
29655         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
29656         * Theme*.cs: add always_show_hotkeys field to support configurability
29657         of mnemonic display.  win32 doesn't show mnemonics until Alt is
29658         pressed.
29659
29660 2005-12-07  Jackson Harper  <jackson@ximian.com>
29661
29662         * MdiChildContext.cs: Use Control.ResetCursor.
29663         * Control.cs: ResetCursor needs to set the property so that the
29664         correct XplatUI call gets made.
29665
29666 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29667
29668         * Control.cs: More fixes to make our key events match MS. We
29669           were not setting the modifier state on KeyData, and we were
29670           not generating any events when Alt was pressed with a key
29671           since handling of WM_SYSxxx was missing for the OnKey methods.
29672
29673 2005-12-07  Jackson Harper  <jackson@ximian.com>
29674
29675         * MdiChildContext.cs: reenable the sizing code.
29676         - When the mouse leaves a window reset its cursor.
29677
29678 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
29679
29680         * ThemeClearlooks.cs: Reflect latest Hwnd changes
29681
29682 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29683
29684         * Hwnd.cs: Now using the theme 3d bordersize to calculate
29685           widths of Fixed3D borders
29686
29687 2005-12-07  Jackson Harper  <jackson@ximian.com>
29688
29689         * MdiClient.cs: Fix warnings. Earn Mike's love.
29690
29691 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
29692
29693         * ThemeClearlooks.cs:
29694           - Adjusted mouse over button color
29695           - Added first parts of CheckBox drawing
29696           - Added correct color for selected text background
29697           - Fixed ComboBox drawing
29698           - Added CPDrawBorder3D and CPDrawBorder
29699
29700 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
29701
29702         * XplatUIX11.cs: Added call to XBell for AudibleAlert
29703
29704 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
29705
29706         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29707           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
29708           alert users via sound. We could add an enum arg with different
29709           types of alerts in the future
29710
29711 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
29712
29713         * Control.cs: Fix behaviour problems pointed out by Mike
29714
29715 2005-12-05  Mike Kestner  <mkestner@novell.com>
29716
29717         * StatusBarPanel.cs: add Invalidate method and hook it into all the
29718         prop setters.  Calls parent.Refresh for now, but could be maybe be
29719         optimized with an internal method on StatusBar at some point.
29720         [Fixes #76513]
29721
29722 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
29723
29724         * RichTextBox.cs: Implemented get_SelectionColor
29725
29726 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
29727
29728         * ThemeClearlooks.cs:
29729           - Removed dead code
29730           - Draw black button border only if button is Form.AcceptButton
29731           - Draw correct button color for pressed RadioButton if the mouse 
29732             has entered the button
29733           - Updated ProgressBar drawing!
29734           - Updated CPDrawSizeGrip drawing
29735           - Updated StatusBarPanel drawing
29736
29737 2005-12-05  Mike Kestner  <mkestner@novell.com>
29738
29739         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
29740         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
29741
29742 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
29743
29744         * ThemeClearlooks.cs: Initial check-in, activate with
29745           export MONO_THEME=clearlooks
29746         * ThemeEngine.cs: Added ThemeClearlooks
29747
29748 2005-12-03  Mike Kestner  <mkestner@novell.com>
29749
29750         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
29751         [Fixes #76897]
29752
29753 2005-12-02  Jackson Harper  <jackson@ximian.com>
29754
29755         * Form.cs: If the child form has no menu the default main menu is
29756         used as the active menu.
29757
29758 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
29759
29760         * ListBox.cs: Check if any items exist before trying to resolve 
29761           coordinates into items
29762
29763 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
29764
29765         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
29766           as the second color for the background hatch
29767
29768 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
29769
29770         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
29771         * RichTextBox.cs: FormatText position arguments are 1-based, now making
29772           sure that what we pass to FormatText is always 1-based. Fixes #76885
29773
29774 2005-11-29  Miguel de Icaza  <miguel@novell.com>
29775
29776         * NumericUpDown.cs (EndInit): When we are done initializing,
29777         reflect any updates on the UI.
29778
29779 2005-12-02  Jackson Harper  <jackson@ximian.com>
29780
29781         * ImplicitHScrollBar.cs:
29782         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
29783         their container controls.
29784         * TreeView.cs: Use the new implicit scrollbars.
29785
29786 2005-12-02  Jackson Harper  <jackson@ximian.com>
29787
29788         * TreeView.cs: Make top_node internal so the TreeNodeCollections
29789         can play with it.
29790         * TreeNodeCollection.cs: If we remove the topnode we need to
29791         update topnode to the next node in line.
29792         - When clearing nodes go through the same process as removing
29793         them, so they get depareneted and checked if they are top node.
29794
29795 2005-12-01  Jackson Harper  <jackson@ximian.com>
29796
29797         * TreeView.cs: When imagelists are used the image area is
29798         selectable as well as the text.
29799         - If there are no selected nodes select the first one.
29800         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
29801         so don't do it more then we need to.
29802
29803 2005-12-01  Jackson Harper  <jackson@ximian.com>
29804
29805         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
29806         that arrows can be scaled.
29807
29808 2005-12-01  Jackson Harper  <jackson@ximian.com>
29809
29810         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
29811         fail. Patch by Dieter Bremes
29812
29813 2005-11-30  Jackson Harper  <jackson@ximian.com>
29814
29815         * Form.cs: Property is 2.0 only
29816         * PrintDialog.cs: Signature fix.
29817
29818 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
29819
29820         * TextControl.cs: 
29821           - No longer artificially moves text 2 pixels down (now that we have
29822             borders this is no longer needed)
29823           - Added calcs for left, hanging and right indent
29824
29825 2005-11-23  Mike Kestner  <mkestner@novell.com>
29826
29827         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
29828
29829 2005-11-30  Jackson Harper  <jackson@ximian.com>
29830
29831         * MdiChildContext.cs: Set the cloned menus forms, as these don't
29832         get cloned as part of CloneMenu ().
29833         * Menu.cs: Make sure the parent of the items get set correctly
29834         when they are added.  And the owners are notified of the changes.
29835         * Form.cs: Create an ActiveMenu property, so that when MDI is used
29836         we can change the menu being displayed/handled by the form without
29837         changing the menu assosciated with the form.
29838         - Don't let Mdi children draw/handle menus.
29839         
29840 2005-11-30  Jackson Harper  <jackson@ximian.com>
29841
29842         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
29843         a MenuChanged event. Just to make the API a little more
29844         consistent.
29845         * MainMenu.cs:
29846         * MenuItem.cs: Use the new OnMenuChanged
29847         * MdiChildContext.cs: Handle menu merging.
29848         * Form.cs: Implement MergedMenu.
29849         
29850 2005-11-30  Jackson Harper  <jackson@ximian.com>
29851
29852         * Menu.cs: We were misusing Add. Add goes behind the specified
29853         index according to the docs, and does not replace the specified
29854         index. So I added an Insert method.
29855
29856 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
29857
29858         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
29859           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
29860           is for Jackson
29861         * RichTextBox.cs: Added calls to base for DnD events
29862
29863 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
29864
29865         * TextControl.cs:
29866           - Fixed drag-selection related crash; style fixes
29867           - Implemented undo class
29868             o Implemented method to capture document state for specified
29869               range in document tree
29870             o Implemented method to restore captured document state
29871             o Implemented cursor tracking
29872             o Implemented basic undo stack
29873           - Added undo cursor tracking to methods altering cursor location
29874           - Added undo tracking to selection deletion (still missing
29875             other text-altering hookups)
29876         * RichTextBox.cs:
29877           - Added SelectionLength property
29878           - Implemented CanPaste()
29879           - Implemented Paste()
29880           - Added missing protected methods
29881           - Fixed RTF->Document conversion; now uses font index 0 and color 
29882             index 0 as the default font for the parsed text
29883           - Fixed RTF<->Document font size translation
29884           - Fixed RTF generation, now properly handles cross-tag boundaries
29885             for single line selection
29886           - No longer always appends blank line to generated RTF
29887           - Removed TODOs
29888           - Added missing attributes
29889           - Hooked up undo-related methods
29890         * TextBoxBase.cs:
29891           - Implemented Copy()
29892           - Implemented Paste()
29893           - Implemented Cut()
29894           - Fixed caret mis-behaviour on backspace across line-boundaries
29895
29896 2005-11-29  Jackson Harper  <jackson@ximian.com>
29897
29898         * MdiClient.cs: Add a method for activating mdi children. Very
29899         basic right now. I imagine someday it might need more girth.
29900         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
29901         children windows names are added to the menu item.
29902         * ThemeWin32Classic.cs: Draw the arrow if the item is an
29903         mdilist. This happens regardless of whether or not there are any
29904         mdi windows to see in the list, and according to my tests happens
29905         before the items are even added. Also happens if there isn't even
29906         an mdi client to get windows from.
29907
29908 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
29909
29910         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
29911         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
29912
29913 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
29914
29915         * DataGridTableStyle.cs:
29916           - Create always the styles for the missing columns even if they are
29917             provided by the user (not default table style)
29918         * DataGrid.cs:
29919           - Fixes bug 76770
29920           - Fixes SetDataBinding (always re-attach source)
29921           - Fixes SetNewDataSource (only clear styles if they are not for 
29922             this source)
29923          -  Expands OnTableStylesCollectionChanged to handle style refresh 
29924             and remove properly
29925
29926 2005-11-29  Jackson Harper  <jackson@ximian.com>
29927
29928         * FileDialog.cs: Implement missing bits, remove some dead
29929         code.
29930         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
29931         creation of the panel so that the options set on the dialog are
29932         seen when the panel is created.
29933         * TreeView.cs: raise a click when items are clicked.
29934         
29935 2005-11-29  Jackson Harper  <jackson@ximian.com>
29936
29937         * MdiClient.cs: Pass some signature methods through to base.
29938
29939 2005-11-28  Jackson Harper  <jackson@ximian.com>
29940
29941         * ListView.cs: Raise the click event when items are clicked.
29942
29943 2005-11-28  Jackson Harper  <jackson@ximian.com>
29944
29945         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
29946         a nullref.
29947
29948 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
29949
29950         * ThemeNice.cs: - Removed 1 pixel bitmaps
29951           - Use SmoothingMode.AntiAlias where it makes sense
29952             (ScrollButton arrow for example)
29953           - Enhanced Button focus drawing
29954           - Fixed ComboBox drawing (no artefacts anymore, focus
29955             rectangle is back again, reduced size of ComboButton, etc.)
29956           - Fixed RadioButton focus drawing for Appearence.Button
29957           - Slight ScrollButton redesign
29958           - Some LinearGradientBrush size fixes
29959           - GroupBoxes have now rounded edges
29960           - Fixed StatusBar drawing
29961
29962 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
29963
29964         * ThemeNice.cs: - Remove dead code
29965           - use correct background colors for menus, etc.
29966           - Fake pixel drawing with 1 pixel bitmaps
29967
29968 2005-11-24  Jackson Harper  <jackson@ximian.com>
29969
29970         * MdiClient.cs: Size the scrollbars when resizing the window.
29971         - Resize the maximized windows when the client is resized
29972         * Form.cs: Make the child context available
29973         
29974 2005-11-23  Jackson Harper  <jackson@ximian.com>
29975
29976         * MdiChildContext.cs: Don't size windows if they are maximized.
29977
29978 2005-11-23  Mike Kestner  <mkestner@novell.com>
29979
29980         * ContextMenu.cs: use MenuTracker.
29981         * Control.cs: remove menu handle usage.
29982         * Form.cs: remove menu handle usage.
29983         * Hwnd.cs: remove menu handle usage.
29984         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
29985         motion and clicks to the new Tracker handlers.
29986         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
29987         and handle usage.
29988         * MenuAPI.cs: refactored to combine popup and menubar event handling.
29989         Killed the MENU and MENUITEM data types and associated collections
29990         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
29991         MenuTracker class that exposes the leftovers from the old MenuAPI
29992         static methods. Restructured Capture handling so that only one grab is
29993         done for the entire menu hierarchy instead of handing off grabs to
29994         submenus. Tracker now has an invisible control to Capture when active.
29995         * MenuItem.cs: add sizing accessors, kill Create
29996         and handle usage.
29997         * Theme.cs: remove menu handle and MENU(ITEM) usage.
29998         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
29999         MENU(ITEM). remove menu handle usage, use Menu directly.
30000         * XplatUIDriver.cs: remove menu handle usage.
30001         * XplatUIOSX.cs: remove menu handle usage.
30002         * XplatUIWin32.cs: remove menu handle usage.
30003         * XplatUIX11.cs: remove menu handle usage.
30004
30005 2005-11-22  Jackson Harper  <jackson@ximian.com>
30006
30007         * Hwnd.cs: Don't compute the menu size for
30008         DefaultClientRectangle.
30009         - Reenable menu sizes being computed for GetClienRectangle.
30010         * Form.cs: Remove comment of trechery
30011         
30012 2005-11-22  Jackson Harper  <jackson@ximian.com>
30013
30014         * Hwnd.cs: The adjustments for the menu bar are made when it is
30015         attached to the form.
30016
30017 2005-11-19  Jackson Harper  <jackson@ximian.com>
30018
30019         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30020         (just like on windows).
30021
30022 2005-11-19  Jackson Harper  <jackson@ximian.com>
30023
30024         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30025         use real buttons anymore because they are in non client area. The
30026         one TODO here is that I need to somehow invalidate a section of
30027         the non client area.
30028
30029 2005-11-18  Jackson Harper  <jackson@ximian.com>
30030
30031         * Control.cs: Put the enum check back in now that MDI doesnt have
30032         to use this to set border styles.
30033         * Form.cs: Only set mdi child windows borders if the handle has
30034         been created.
30035         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30036         this directly on to the driver.
30037         - Get the move start position before adjusting for the titlebar
30038         height, this fixes the windows "skipping" when they are first
30039         moved.
30040
30041 2005-11-18  Jackson Harper  <jackson@ximian.com>
30042
30043         * XplatUIX11.cs: Just compute the mdi borders separately as they
30044         don't totally match up with normal form borders.
30045
30046 2005-11-18  Jackson Harper  <jackson@ximian.com>
30047
30048         * Control.cs: Set WS_ styles for borders, so that the driver does
30049         not have to retrieve the control instance to figure out what kind
30050         of borders it should have.
30051         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30052         driver can know its an mdi child easily.
30053         * XplatUIX11.cs: Get the border styles and whether the window is
30054         MDI from the Styles and ExStyles params instead of having to get a
30055         control. This prevents a chicken and egg problem.       
30056
30057 2005-11-18  Jackson Harper  <jackson@ximian.com>
30058
30059         * MdiClient.cs: Fix typo so scrollbars show up correctly.
30060
30061 2005-11-18  Jackson Harper  <jackson@ximian.com>
30062
30063         * MdiClient.cs: Calculate when to add and remove scrollbars
30064         correctly.
30065         * MdiChildContext.cs: Adjust the y position to take the titlebar
30066         into account.
30067         - No height for FormBorderStyle.None
30068
30069 2005-11-18  Jackson Harper  <jackson@ximian.com>
30070
30071         * Control.cs: Allow non enum values to be used for
30072         InternalBorderStyle.  MDI does this to set a special border style.
30073         - New utility methods for converting points to/from client coords
30074         - Add the newly created control to the Controls collection before
30075         updating its style. This way UpdateStyle can walk the control
30076         heirarchy to find the control if needed.
30077         so I don't need to create a new Point object all the time.
30078         * Form.cs: Let MDI windows handle their border styles.
30079         - Set styles on MDI windows so the correct title style is derived.
30080         * MdiChildContext.cs: Move all the painting and window handling
30081         into the non client area.
30082         - Use correct sizing and put correct buttons on frames based on
30083         the FormBorderStyle.
30084         - Notify the mdi client about scrolling
30085         - Need to handle the buttons ourselves now, because they are all
30086         in non client areas and we can't add controls there.
30087         * MdiClient.cs: Halfway to scrolling, this implementation is
30088         somewhat broken though, we need to check to make sure other
30089         windows aren't causing scrolling before removing the bars. Also
30090         the bars need to be drawn on top, maybe I can switch implicit
30091         controls to be on top.
30092         * Hwnd.cs: caption_height and tool_caption_height are now
30093         properties of an hwnd, this way they can be set by the driver
30094         based on the type of window they are.  In X11 the window manager
30095         handles the decorations so caption_height is zero unless its an
30096         MDI window.
30097         - Add 3 pixel borders for MDI windows (0xFFFF).
30098         - Get rid of some code duplication, have DefaultClientRectanle
30099         just call GetClientRectangle.
30100         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30101         Hwnd now.
30102         - Set border styles differently for mdi windows.
30103         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30104         Hwnd now.
30105         
30106 2005-11-15  Mike Kestner  <mkestner@novell.com>
30107
30108         * Menu.cs: when adding an item to the collection, if item is already 
30109         parented, remove it from the parent.
30110
30111 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
30112
30113         * X11DesktopColors.cs: Added KDE support
30114
30115 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
30116
30117         * XplatUIWin32.cs: 
30118           - Clipboard methods now can translate Rtf format
30119           - No longer removes clipboard contents whenever a new format is added
30120             to allow placing multiple formats on the clipboard
30121         * Clipboard.cs: Clipboard now supports getting a IDataObject and
30122           will place all formats contained in it onto the clipboard. Also
30123           now cleans the clipboard before placing a new object onto it
30124         * RichTextBox.cs:
30125           - Implemented set_Rtf
30126           - Implemented set_SelectedRtf
30127           - Created InsertRTFFromStream() method to allow single code base
30128             for all properties and methods that insert RTF into document
30129           - Removed debug output
30130         * TextControl.cs:
30131           - Fixed Delete(int) to fix up line numbers
30132           - Fixed ReplaceSelection to combine start and end line
30133           - Fixed serious DeleteChars bug that would leave the document tree
30134             broken
30135           - Improved DumpTree with several logic checks to detect broken
30136             document trees
30137           - Removed debug lines
30138           - Fixed Caret.WordForward/WordBack moving code, now always also 
30139             updates caret.tag (fixes crash when word-selecting across tag
30140             boundaries via keyboard)
30141           - Added Insert() method for inserting multiline text into documents
30142           - Fixed DeleteChars() calculation errors that would cause a broken
30143             tag chain with multiple tag lines
30144           - DeleteChars() no longer crashes on multi-tag lines if not all tags
30145           - Split() no longer moves caret if split is at caret location
30146           - ReplaceSelection() now updates the cursor and re-displays it
30147           - ReplaceSelection() now uses new Insert() method to avoid code
30148             duplication
30149           - FormatText() can now handle formatting partial lines
30150         * TextBoxBase.cs:
30151           - Append now uses new TextControl.Insert() method (this avoids 
30152             duplicate code)
30153           - Implemented Ctrl-X (Cut) (
30154           - Implemented Ctrl-C (Copy)
30155           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
30156             regeneration when pasting text; roundtripping Copy&Paste within
30157             edit control still fails due to some calculation bugs in GenerateRTF)
30158           - The Delete key will now remove the current selection if it is visible
30159         * TextBox.cs: Removed debug lines
30160         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
30161           driver to be initialized and can't therefore be done via a static ctor)
30162
30163 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
30164
30165         * TextControl.cs: Added backend code for finding char arrays and strings
30166         * TextBoxBase.cs:
30167           - Added mouse wheel scroll support
30168           - Added support for VScroll and HScroll events
30169         * RichTextBox.cs:
30170           - Implemented all seven Find() variants
30171           - Implemented GetCharFromPosition()
30172           - Implemented GetCharIndexFromPosition()
30173           - Implemented GetLineFromIndex()
30174           - Implemented GetPositionFromCharIndex();
30175           - Implemented SaveFile for PlainText and UnicodeText
30176           - Fixed set_Font, now setting a new font applies that font to
30177             the whole document
30178           - Implemented generic Document to RTF converter
30179           - Implemented SaveFile for RichText format (still missing unicode
30180             conversion for non-ansi chars)
30181           - Implemented get_Rtf
30182           - Implemented get_SelectedRtf
30183
30184 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
30185
30186         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
30187           to allow any captures to be released before triggering OnClick. This
30188           way a click handler may capture the mouse without interference.
30189         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
30190           This way we send them even though X may not allow a grab (if the window
30191           isn't visible, for example)
30192
30193 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
30194
30195         * DataGridViewRowEventArgs.cs: DataGridView implementation
30196         * DataGridViewElement.cs: DataGridView implementation
30197         * DataGridViewComboBoxCell.cs: DataGridView implementation
30198         * DataGridViewDataErrorContexts.cs: DataGridView implementation
30199         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
30200         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
30201         * ImageLayout.cs: DataGridView implementation
30202         * DataGridViewComboBoxColumn.cs: DataGridView implementation
30203         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
30204         * DataGridViewSelectionMode.cs: DataGridView implementation
30205         * IDataGridViewEditingControl.cs: DataGridView implementation
30206         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
30207         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
30208         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
30209         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
30210         * DataGridViewColumnSortMode.cs: DataGridView implementation
30211         * DataGridView.cs: DataGridView implementation
30212         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
30213         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
30214         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
30215         * Padding.cs: DataGridView implementation
30216         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
30217         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
30218         * DataGridViewRowEventHandler.cs: DataGridView implementation
30219         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
30220         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
30221         * DataGridViewButtonCell.cs: DataGridView implementation
30222         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
30223         * DataGridViewEditMode.cs: DataGridView implementation
30224         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
30225         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
30226         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
30227         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
30228         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
30229         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
30230         * DataGridViewCellEventHandler.cs: DataGridView implementation
30231         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
30232         * DataGridViewCellStyleConverter.cs: DataGridView implementation
30233         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
30234         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
30235         * DataGridViewColumnEventArgs.cs: DataGridView implementation
30236         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
30237         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
30238         * QuestionEventArgs.cs: DataGridView implementation
30239         * IDataGridViewEditingCell.cs: DataGridView implementation
30240         * DataGridViewTriState.cs: DataGridView implementation
30241         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
30242         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
30243         * DataGridViewColumnCollection.cs: DataGridView implementation
30244         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
30245         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
30246         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
30247         * DataGridViewColumn.cs: DataGridView implementation
30248         * DataGridViewCellBorderStyle.cs: DataGridView implementation
30249         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
30250         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
30251         * DataGridViewRow.cs: DataGridView implementation
30252         * DataGridViewImageCellLayout.cs: DataGridView implementation
30253         * DataGridViewImageCell.cs: DataGridView implementation
30254         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
30255         * DataGridViewCheckBoxCell.cs: DataGridView implementation
30256         * DataGridViewHeaderCell.cs: DataGridView implementation
30257         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
30258         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
30259         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
30260         * DataGridViewTextBoxColumn.cs: DataGridView implementation
30261         * QuestionEventHandler.cs: DataGridView implementation
30262         * DataGridViewCellStyleScopes.cs: DataGridView implementation
30263         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
30264         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
30265         * DataGridViewCell.cs: DataGridView implementation
30266         * DataGridViewCellEventArgs.cs: DataGridView implementation
30267         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
30268         * DataGridViewCellStyle.cs: DataGridView implementation
30269         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
30270         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
30271         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
30272         * TextFormatFlags.cs: DataGridView implementation
30273         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
30274         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
30275         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
30276         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
30277         * DataGridViewButtonColumn.cs: DataGridView implementation
30278         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
30279         * HandledMouseEventArgs.cs: DataGridView implementation
30280         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
30281         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
30282         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
30283         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
30284         * DataGridViewRowCollection.cs: DataGridView implementation
30285         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
30286         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
30287         * DataGridViewHitTestType.cs: DataGridView implementation
30288         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
30289         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
30290         * DataGridViewColumnEventHandler.cs: DataGridView implementation
30291         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
30292         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
30293         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
30294         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
30295         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
30296         * DataGridViewContentAlignment.cs: DataGridView implementation
30297         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
30298         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
30299         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
30300         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
30301         * DataGridViewPaintParts.cs: DataGridView implementation
30302         * DataGridViewCellCollection.cs: DataGridView implementation
30303         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
30304         * DataGridViewImageColumn.cs: DataGridView implementation
30305         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
30306         * DataGridViewElementStates.cs: DataGridView implementation
30307         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
30308         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
30309         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
30310         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
30311         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
30312         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
30313         * DataGridViewRowHeaderCell.cs: DataGridView implementation
30314         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
30315         * DataGridViewTextBoxCell.cs: DataGridView implementation
30316         * DataGridViewBand.cs: DataGridView implementation
30317         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
30318         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
30319         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
30320         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
30321         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
30322         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
30323         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
30324         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
30325         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
30326         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
30327         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
30328
30329 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
30330
30331         * ThemeWin32Classic.cs: 
30332           - Draw the outside focus rectangle around buttons
30333           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
30334             doesn't use end caps for every dash of a line anymore. This
30335             workaround ignores the forecolor.
30336
30337 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
30338
30339         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
30340           endian safe.
30341
30342 2005-11-07  Jackson Harper  <jackson@ximian.com>
30343
30344         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
30345
30346 2005-11-07  Jackson Harper  <jackson@ximian.com>
30347
30348         * ScrollableControl.cs: Calculate the maximum and change vars
30349         (more) correctly so that scrollbars appear as a sensible size.
30350
30351 2005-11-04  Jackson Harper  <jackson@ximian.com>
30352
30353         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
30354         collection.
30355         * TreeView.cs: When the tree is sorted null out the top_node so
30356         that it is recalculated.
30357         - Use dotted lines instead of dashed lines to match MS better.
30358
30359 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
30360
30361         * ListView.cs: 
30362           - Implements key search for items. Useful when browsing files with FileDialog
30363           - When changing view mode or when clear the items reset scrollbar positions
30364
30365 2005-11-04  Jackson Harper  <jackson@ximian.com>
30366
30367         * CurrencyManager.cs: Implement the MetaDataChanged event, the
30368         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
30369         as to what the method may do as there is no real way of creating a
30370         derived CurrencyManager and calling the method. 
30371
30372 2005-11-03  Jackson Harper  <jackson@ximian.com>
30373
30374         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
30375         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
30376         method which seems to just be used internally to refresh the tabs.
30377
30378 2005-11-03  Jackson Harper  <jackson@ximian.com>
30379
30380         * TabControl.cs: Implement the remove method. Fix some broken
30381         comments.
30382
30383 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30384
30385         * DateTimePicker.cs:
30386           - Added missing DateTimePickerAccessibleObject class
30387           - Added missing events
30388           - Added OnFontChanged method
30389         * Form.cs: Added missing attributes
30390         * TreeView.cs: Added missing attributes
30391
30392 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
30393
30394         * GridItemCollection.cs: Fix signatures
30395
30396 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30397
30398         * XplatUI.cs: Updated build rev/date
30399         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
30400           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
30401         * Application.cs: Trigger context-specific ExitThread events
30402
30403 2005-11-03  Jackson Harper  <jackson@ximian.com>
30404
30405         * Menu.cs:
30406         * MainMenu.cs:
30407         * GridTableStylesCollection.cs:
30408         * Timer.cs:
30409         * TabPage.cs:
30410         * HelpProvider.cs:
30411         * StatusBar.cs:
30412         * MonthCalendar.cs: Signature fixes
30413
30414 2005-11-03  Jackson Harper  <jackson@ximian.com>
30415
30416         * TreeNodeCollection.cs: Remove should not be virtual.
30417         * TreeView.cs: Implement the last of the missing methods.
30418
30419 2005-11-03  Jackson Harper  <jackson@ximian.com>
30420
30421         * TreeNodeConverter.cs: Implement to get off my class-status back.
30422
30423 2005-11-03  Jackson Harper  <jackson@ximian.com>
30424
30425         * TreeView.cs: Hookup the bits for drag and drop.
30426         * TreeNode.cs: Don't cache the tree_view or index anymore, now
30427         that nodes can be moved from tree to tree easily this just causes
30428         all sorts of problems.
30429         * TreeNodeCollection: Don't need to give treenodes an index and
30430         treeview anymore when they are added, these are computed on the
30431         fly. Also make sure to remove a node before its added.
30432
30433 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30434
30435         * TextControl.cs:
30436           - Added CaretSelection enum
30437           - Added comparison methods to Marker struct, makes selection code
30438             more readable
30439           - Added SelectionStart and SelectionEnd as 'moveable' location for
30440             the CaretDirection enum and handler
30441           - Added selection_prev variable to track optimized invalidation for
30442             word and line selection
30443           - Added SelectionVisible property (returns true if there is a valid 
30444             selection)
30445           - Switched CaretHasFocus to only display the caret if there is no
30446             visible selection
30447           - Avoiding StringBuilder.ToString to retrieve a single char, instead
30448             using the direct character index; should be much faster
30449           - Added various conditional debug statements
30450           - Fixed invalidation calculation for selection ranges
30451           - Added ExpandSelection() method to support word and line selection
30452           - Switched SetSelectionToCaret to use new Marker compare overloads
30453           - Added central IsWordSeparator() method to determine word 
30454             separators/whitespace and FindWordSeparator() to streamline common
30455             usage of IsWordSeparator()
30456         * TextBoxBase.cs:
30457           - Removed unneeded grabbed variable, it was just mirroring
30458             Control.Capture
30459           - No longer firing OnTextChanged event when Text setter is called,
30460             since the base will fire the event for us
30461           - Added handling of Ctrl-Up/Down selection
30462           - Added handling of Shift-Cursorkey selection
30463           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
30464             words
30465           - Added handling of Shift and Ctrl-Shift-Home/End selection
30466           - Removed some debug output
30467           - Added handling for single/double/tripple-click to place caret/
30468             select word/select line respectively (Fixes bug #76031)
30469           - Added support for drag expansion of word/line selection
30470         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
30471           current selection
30472
30473 2005-11-02  Jackson Harper  <jackson@ximian.com>
30474
30475         * X11Dnd.cs: If the drag is going to and from a MWF window just
30476         copy the data instead of sending it out through the X Selection
30477         mechanism.
30478
30479 2005-11-02  Jackson Harper  <jackson@ximian.com>
30480
30481         * X11Dnd.cs:
30482         * XplatUIX11.cs: When in a drag we don't want motion notify
30483         messages to get passed on to the other controls. This prevents
30484         mouse move messages from showing up in the drag source.
30485
30486 2005-11-02  Jackson Harper  <jackson@ximian.com>
30487
30488         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
30489         the correct button is release to end a drag.
30490         * XplatUIX11.cs: Make the button state internal so the drag system
30491         can access it.  Dragging needs to know about all button releases,
30492         not just left button.
30493
30494 2005-11-02  Miguel de Icaza  <miguel@novell.com>
30495
30496         * Form.cs (Icon): If the icon is null, reset the icon to the
30497         default value. 
30498
30499         * Cursor.cs: When writing the AND-mask bitmap do not include the
30500         number of colors, but hardcode those to two (black and white),
30501         fixes the loading of color cursors (Paint Dot Net).
30502
30503         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
30504         turn off autoscaling.
30505
30506         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
30507
30508 2005-11-02  Jackson Harper  <jackson@ximian.com>
30509
30510         * X11Dnd.cs: Make sure to send a status message if the pointer
30511         enters a control that can not accept a drop, otherwise the cursor
30512         isn't updated correctly. Also tried to compress the lines of code
30513         a bit.
30514
30515 2005-11-02  Jackson Harper  <jackson@ximian.com>
30516
30517         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
30518         set actions correctly.  This isn't perfect as XDND and win32 have
30519         some differences on how you allow actions. I'll clear this up by
30520         adding a path for drag from MWF to MWF windows.
30521         * XplatUIX11.cs: Hook into the dnd system.
30522
30523 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
30524
30525         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
30526         previously shown but they are no longer need it. Very obvious when 
30527         browsing files with FileDialog.
30528
30529 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
30530
30531         * Control.cs: We always need to call OnPaintBackground. We pretty much
30532           ignore AllPaintingInWmPaint and always do the painting there, whether 
30533           it's set or not, since we always ignore the WM_ERASEBKGND message 
30534           (which we don't generate on X11). This fixes #76616.
30535         * Panel.cs: Removed unneeded background painting. This happens properly
30536           in Control.cs already
30537
30538 2005-10-31  Mike Kestner  <mkestner@novell.com>
30539
30540         * Menu.cs: Add items to collection before setting their index.
30541         * MenuItem.cs : add range checking with ArgumentException like MS.
30542         [Fixes #76510]
30543
30544 2005-10-31  Jackson Harper  <jackson@ximian.com>
30545
30546         * ListBox.cs: Invalidate if the area is visible at all not just
30547         contained in the visible rect. Fixes unselection of semi visible
30548         items.
30549
30550 2005-10-31  Jackson Harper  <jackson@ximian.com>
30551
30552         * Control.cs: Consistently name the dnd methods. Make them
30553         internal so we can override them to match some MS behavoir
30554         internally.
30555         * Win32DnD.cs: Use the new consistent names.
30556
30557 2005-10-31  Jackson Harper  <jackson@ximian.com>
30558
30559         * TreeView.cs: Don't draw the selected node when we lose focus.
30560
30561 2005-10-31  Jackson Harper  <jackson@ximian.com>
30562
30563         * X11Dnd.cs: We still need to reset the state even though a full
30564         reset isn't being done, otherwise status's still get sent all over
30565         the place.
30566
30567 2005-10-31  Jackson Harper  <jackson@ximian.com>
30568
30569         * Control.cs: Make the dnd_aware flag internal so the dnd
30570         subsystem can check it. Catch exceptions thrown in dnd handlers to
30571         match MS behavoir.
30572         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
30573         * X11Dnd.cs: Handle null data in the converters. Set the XDND
30574         version when sending a XdndEnter. Use the control/hwnd dnd_aware
30575         flags to reduce the number of dnd enters/status's sent.
30576
30577 2005-10-31  Jackson Harper  <jackson@ximian.com>
30578
30579         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
30580
30581 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
30582
30583         * PictureBox.cs: Fixes 76512
30584
30585 2005-10-28  Jackson Harper  <jackson@ximian.com>
30586
30587         * X11Dnd.cs: Early implementation to support winforms being a drag
30588         source for data on X11. Also restructured the converters so they
30589         can go both ways now.
30590         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
30591         
30592 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
30593
30594         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
30595           clipboard requests
30596
30597 2005-10-27  Jackson Harper  <jackson@ximian.com>
30598
30599         * TreeNode.cs: Implement serialization so my DnD examples will work.
30600
30601 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
30602
30603         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
30604           TreeView.cs: Don't dispose objects that are not owned.
30605           
30606 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
30607
30608         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
30609           should retrieve the current cursor and report that, but XplatUI
30610           doesn't (yet) have an interface for that (and I'm not sure I even
30611           can, on X11)
30612         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
30613           until any message loop processing is done (and the WM_SETCURSOR
30614           replaces the cursor to the proper one)
30615         * XplatUIX11.cs: 
30616           - Fixed override behaviour, we can't set the cursor globally on X11, 
30617             just for our windows.
30618           - Invalidating the System.Drawing X11 display handle when we are
30619             shutting down
30620         * Control.cs: Fix to make csc happy
30621
30622 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
30623
30624         * TextBoxBase.cs: 
30625           - get_Text: Add last line (without trailing newline) to returned
30626             value (Fixes 76212)
30627           - get_TextLength: Count last line in returned length
30628           - ToString: Call Text property instead of duplicating code
30629
30630 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
30631
30632         * ImageList.cs: Dispose ImageAttributes objects.
30633
30634 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
30635
30636         * ImageList.cs: Use attribute constructors with less arguments where
30637           possible.
30638
30639 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
30640
30641         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
30642           Use typeof instead of strings when assembly is referenced. Added
30643           some more comments.
30644
30645 2005-10-21  Jackson Harper  <jackson@ximian.com>
30646
30647         * ListView.cs: Raise a double click event. Also tried to somewhat
30648         fix when the selectedindexchanged event is raised. Its still
30649         broken though.
30650
30651 2005-10-21  Jackson Harper  <jackson@ximian.com>
30652
30653         * TreeView.cs: New method to invalidate the plus minus area of a
30654         node without invalidating the whole node (maybe this can be used
30655         in some more places).
30656         * TreeNodeCollection.cs: When adding to an empty node we need to
30657         invalidate its plus minus area so the little block shows up.
30658         
30659 2005-10-21  Jackson Harper  <jackson@ximian.com>
30660
30661         * TreeView.cs: Make sure that when we invalidate a node the bounds
30662         are big enough to cover the selected box and the focus
30663         rectangle. Use a different colour for the lines connecting nodes
30664         so they show up with all themes.
30665
30666 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
30667
30668         * NativeWindow.cs: Don't call anything that could call into the driver,
30669           we might be on a different thread.
30670
30671 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
30672
30673         * Control.cs(Dispose): Since Dispose might run on a different thread,
30674           make sure that we call methods that could call into the driver via
30675           invoke, to avoid thread issues
30676
30677 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
30678
30679         * XplatUI.cs: Removed finalizer
30680         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
30681           not allowing to be called on the finalizer thread.
30682
30683 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
30684
30685         * ImageList.cs:
30686           - Reverted r51889 and r51891.
30687           - Added ImageListItem class that stores unmodified image items and image
30688             properties required to create list images until handle is created.
30689           - Added AddItem and moved image creation logic to AddItemInternal.
30690           - Added CreateHandle method that creates images based on unmodified items.
30691           - Added DestroyHandle that changes state to store unmodified items.
30692           - Add and AddStrip methods no more create handle.
30693           - ReduceColorDepth has no return value.
30694           - Dispose destroys handle.
30695           - Modified other methods to reflect the above changes.
30696           - Implemented key support.
30697           - Added profile 2.0 members and attributes.
30698           - Added private Reset and ShouldSerialize methods that provide the same
30699             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
30700             them as they are private.
30701           - Added some more comments about implementation details.
30702
30703 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30704
30705         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
30706
30707 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30708
30709         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
30710
30711 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30712
30713         * DataGridDrawingLogic.cs: Fixes column hit calcultation
30714         * DataGridColumnStyle.cs: Remove debug message
30715
30716 2005-10-20  Jackson Harper  <jackson@ximian.com>
30717
30718         * TreeView.cs: We can always get input keys regardless of whether
30719         or not editing is enabled. They are used for navigation.
30720
30721 2005-10-20  Jackson Harper  <jackson@ximian.com>
30722
30723         * TreeNode.cs: Use the viewport rect for determining if a node
30724         needs to be moved for visibility. Don't use Begin/End edit. This
30725         calls a full refresh when its done.
30726         * TreeView.cs: New SetBottom works correctly.  Make the viewport
30727         rect property internal so the treenodes can see it. When clicking
30728         on a node we need to ensure that its visible because it might just
30729         be partly visible when clicked.
30730
30731 2005-10-20  Jackson Harper  <jackson@ximian.com>
30732
30733         * TreeNodeCollection.cs: Remove debug code.
30734
30735 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
30736
30737         * Datagrid.cs: Implements column sorting in Datagrid
30738         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
30739
30740 2005-10-20  Jackson Harper  <jackson@ximian.com>
30741
30742         * TreeNodeCollection.cs: Remove items properly. Update the correct
30743         area after removing them.
30744
30745 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
30746
30747         * Datagrid.cs: Should not call base.OnPaintBackground
30748
30749 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
30750
30751         * XplatUIX11.cs (GetMessage):
30752           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
30753             window instead of client window
30754           - Now properly calculates NC_xBUTTONUP message coordinates
30755           - ScreenToMenu now properly calculates it's coordinates of whole 
30756             window, since menus are in the whole window, not in the client
30757             window
30758           - Added WholeToScreen coordinate translation method
30759
30760 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
30761
30762         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
30763           want to return a message, loop back to the beginning of the function
30764           and grab the next real message to process instead.
30765
30766 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
30767
30768         * Splitter.cs: Properly set limits if no filler control is used
30769
30770 2005-10-19  Jackson Harper  <jackson@ximian.com>
30771
30772         * ColorDialog.cs: Don't show the help button if it is not enabled
30773         instead of disabling it (this is what MS does). Don't create the
30774         panel until the dialog is run, otherwise the vars (such as
30775         ShowHelp) are not set yet.
30776
30777 2005-10-19  Jackson Harper  <jackson@ximian.com>
30778
30779         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
30780         are reduced when adding nodes.
30781         * TreeNode.cs:
30782         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
30783         tree.
30784         
30785 2005-10-19  Jackson Harper  <jackson@ximian.com>
30786
30787         * FolderBrowserDialog.cs: End editing our treeview so the window
30788         actually gets refreshed.
30789
30790 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
30791
30792         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
30793           Obsoleted handling of WM_ERASEBKGND, now always draws our background
30794           inside of WM_PAINT
30795
30796 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30797
30798         * MenuAPI.cs: Returns after Hidding window
30799         * XplatUIX11.cs: Added TODO found while debugging menu issues
30800
30801 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
30802
30803         * XplatUIX11.cs: Do not re-map the whole window when it's size
30804           becomes non-zero unless it's supposed to be actually visible
30805
30806 2005-10-18  Jackson Harper  <jackson@ximian.com>
30807
30808         * TreeView.cs: We don't need to keep a count anymore.
30809         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
30810         use the Grow method.
30811
30812 2005-10-18  Jackson Harper  <jackson@ximian.com>
30813
30814         * TreeNodeCollection.cs: Insert is not supported on arrays, so
30815         implement it manually here.
30816
30817 2005-10-18  Jackson Harper  <jackson@ximian.com>
30818
30819         * ImageList.cs: Dont kill the list when the colour depth is
30820         changed, just change the colour depth of all the images.
30821         - Same goes for setting the image size. Just resize them all
30822         instead of killing the list softly.
30823
30824 2005-10-18  Jackson Harper  <jackson@ximian.com>
30825
30826         * Control.cs: Don't invalidate empty rectangles.
30827
30828 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30829
30830         * ListViewItem.cs:
30831           - Adds checked item to the Checked/Item lists (where empty before)
30832           - Do not add items to the Selected lists if they are already present
30833         * ListView.cs:
30834           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
30835           - When deleting items make sure that we delete them for the Selected
30836           and Checked list also.
30837
30838 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30839
30840         * Label.cs: Dispose objects no longer used
30841         * ThemeWin32Classic.cs: Dispose objects no longer used
30842
30843 2005-10-18  Jackson Harper  <jackson@ximian.com>
30844
30845         * TabControl.cs: Don't refresh the whole control when the tabs are
30846         scrolled, we just need to refresh the tab area.
30847
30848 2005-10-17  Jackson Harper  <jackson@ximian.com>
30849
30850         * XplatUIX11.cs: Compress code a little bit. Only calculate the
30851         after handle when we need it.
30852
30853 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
30854
30855         * Control.cs: When the parent size changes, recalculate anchor 
30856           positions. Partial fix for #76462
30857
30858 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
30859
30860         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
30861           drawn. Fixes #76462
30862
30863 2005-10-17  Jackson Harper  <jackson@ximian.com>
30864
30865         * MonthCalendar.cs: Don't create the numeric up down until our
30866         handle is created. Otherwise our handle is created in the
30867         constructor and we don't know if we are a WS_CHILD or WS_POPUP
30868         yet.
30869
30870 2005-10-17  Jackson Harper  <jackson@ximian.com>
30871
30872         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
30873         correctly.
30874
30875 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
30876         * TreeNode.cs : small logical fix (was using local var instead of field)
30877         
30878 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
30879
30880         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
30881
30882 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
30883
30884         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
30885
30886 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
30887
30888         * Control.cs: 
30889           - Re-implemented anchoring code. My first version was really broken.
30890             This fixes bug #76033. Unlike the previous implementation we will
30891             no longer have round errors since all numbers are calculated from
30892             scratch every time. Removed various anchor-related obsolete vars.
30893           - InitLayout no longer causes layout event firing and layout to be 
30894             performed
30895
30896 2005-10-16  Jackson Harper  <jackson@ximian.com>
30897
30898         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
30899         which was broken).
30900
30901 2005-10-16  Jackson Harper  <jackson@ximian.com>
30902
30903         * TabControl.cs: Remove debug code.
30904
30905 2005-10-16  Jackson Harper  <jackson@ximian.com>
30906
30907         * XEventQueue.cs: Increase the default queue size (very simple
30908         apps needed to grow the queue).
30909         * Hwnd.cs: No finalizer so we don't need to suppress
30910         finalization. Compute the invalid area manually so a new rectangle
30911         does not newto be created.
30912         * ScrollableControl.cs: Don't set any params (otherwise visibility
30913         isn't set correctly).
30914         * MdiChildContext.cs: New constructor takes the mdi parent so it
30915         doesn't have to be computed and avoids a crash on windows. Draw
30916         the window icon properly, and allow the text to be seen.
30917         * Form.cs: Use new MdiChildContext constructor. Make sure the
30918         child context isn't null in wndproc.
30919         * TabControl.cs: Don't set focus, this is muddling keyboard
30920         behavoir. Expand the tab rows when a window size increase will
30921         allow extra tabs to be seen. Don't allow tabs smaller than the
30922         width of a window to be scrolled out of view.
30923         * TreeNode.cs:
30924         * TreeView.cs: Use measure string to calculate a nodes width, the
30925         width is cached and only updated when the text or the font is
30926         changed. Don't check for expand/collapse clicks on the first level
30927         nodes if root lines are disabled.
30928         
30929 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
30930
30931         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
30932
30933 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
30934
30935         * DataGridBoolColumn.cs: fixes warning
30936
30937 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
30938
30939         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
30940         to match more to match more precisely the MS Net behavior
30941
30942 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
30943
30944         * Hwnd.cs: Added field to track if window is mapped
30945         * XplatUIX11.cs: 
30946           - Unmap windows if they become 0-size, re-map when 
30947             they are >0 again; fixes #76035
30948           - Re-set our error handler after initializing X11Desktop
30949             to override any error handlers Gtk or whatever was called
30950             may have set.
30951
30952 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
30953
30954         * CheckedListBox.cs: Removed unused vars
30955         * ListView.cs: Fixed signatures
30956         * RichTextBox.cs: Removed unused vars
30957         * TextBoxBase.cs: Removed unused vars
30958         * XplatUIWin32.cs: Removed unused vars
30959         * XplatUIX11.cs: Removed unused vars
30960         * XplatUI.cs: Updated version and date to latest published
30961
30962 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
30963
30964         * Cursor.cs: Added private .ctor to work around a bug in
30965           resourceset (Thanks to Geoff Norton for the help on this)
30966         * SplitterEventArgs.cs: Made fields accessible so we don't
30967           waste boatloads of objects and can reuse the same one
30968           in Splitter
30969         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
30970           any captions and borders when generating screen coordinates
30971         * Splitter.cs: Reimplemented control, now fully complete, uses
30972           rubberband drawing, supports and obeys all properties, has
30973           proper cursors
30974
30975 2005-10-13  Miguel de Icaza  <miguel@novell.com>
30976
30977         * Form.cs (Form): Setup default values for autoscale and
30978         autoscale_base_size;  Make these instance variables, not static
30979         variables. 
30980
30981         (OnLoad): on the first load, adjust the size of the form.
30982
30983 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
30984
30985         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
30986           width argument to DrawReversibleRectangle()
30987         * XplatUIWin32.cs, XplatUIX11.cs: 
30988           - Implemented width for DrawReversibleRectangle()
30989           - Added logic to DrawReversibleRectangle that recognizes a zero
30990             width or height and only draws a line in that situation
30991         
30992 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
30993
30994         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
30995         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
30996         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
30997           method (it uses our FosterParent window to get a graphics context)
30998
30999 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
31000
31001         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
31002           and SetWindowBackground methods
31003         * Control.cs:
31004           - Setting proper ControlStyles
31005           - We no longer call XplatUI.SetWindowBackground and XplatUI.
31006             EraseWindowBackground, instead we draw the window background
31007             ourselves in PaintControlBackground. This behaviour is
31008             required to match MS, where, when OnPaintBackground is not
31009             called, the background is not drawn.
31010           - Removed unneeded Refresh() in set_Text
31011         * Hwnd.cs: Dropped the ErasePending support. No longer needed
31012         * XplatUIX11.cs:
31013           - Created DeriveStyles method to translate from CreateParams to
31014             FormBorderStyle and TitleStyle, also handles BorderStyle (which
31015             matches FormBorderStyle enum values)
31016           - Consolidated SetHwndStyles and CalculateWindowRect border/title
31017             style calculations into single DeriveStyles method
31018           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31019             from redrawing the whole window on any resize or expose.
31020           - Fixed CreateWindow usage of SetWindowValuemask. Before not
31021             all styles were applied to our whole/client window appropriately
31022           - Removed EraseWindowBackground() and SetWindowBackground() methods
31023           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31024             no longer clear/redraw the background through X
31025           - Removed handling of erase_pending bit, we have no use for it (or
31026             so it seems)
31027         * XplatUIOSX.cs:
31028           - Removed generation and handling of WM_ERASEBKGND message
31029           - Removed EraseWindowBackground() and SetWindowBackground() methods
31030           - Removed handling of hwnd.ErasePending flag
31031         * XplatUIWin32.cs:
31032           - Removed EraseWindowBackground() and SetWindowBackground() methods
31033           - We no longer call EraseWindowBackground on PaintEventStart, we 
31034             ignore the fErase flag, erasing is handled in Control in the
31035             background handler
31036         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31037           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31038           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
31039           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
31040           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
31041           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31042           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31043
31044 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
31045
31046         * PropertyGrids.cs: Get sub properties
31047         * PropertyGridView.cs: Fix drawing code
31048
31049 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31050
31051         * ListBox.cs: Fixes 76383
31052
31053 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31054
31055         * DataGridTextBoxColumn.cs: Sets location and size before attachment
31056         * ThemeWin32Classic.cs: Fixes border drawing and calculations
31057         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31058
31059
31060 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31061
31062         * ComboBox.cs: Fixes border drawing
31063
31064 2005-10-10  Miguel de Icaza  <miguel@novell.com>
31065
31066         * MimeIcon.cs: Ignore errors if the file can not be read.
31067
31068 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31069
31070         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31071          - Fixed border calculations
31072          - Fixed horizontal scrolling in single column listboxes
31073          - Fixed drawing issues
31074
31075 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
31076
31077         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
31078           FormBorderStyle enum
31079         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
31080           code to determine FormBorderStyles from CreateParams
31081         * Form.cs:
31082           - Fixed bug where we'd set the wrong window styles if we were
31083             not creating an MDI window
31084           - Added call to XplatUI.SetBorderStyle when form borders are set
31085         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31086         * Hwnd.cs:
31087           - Removed obsolete edge style
31088           - Switched from BorderStyle to FormBorderStyle
31089         
31090 2005-10-10  Jackson Harper  <jackson@ximian.com>
31091
31092         * Form.cs: Use the property to get the window handle instead of
31093         accessing it directly. Prevents a null reference exception.
31094
31095 2005-10-10  Jackson Harper  <jackson@ximian.com>
31096
31097         * TreeView.cs: Don't adjust the rect given to DrawString now that
31098         our libgdiplus draws correctly.
31099
31100 2005-10-08  Jackson Harper  <jackson@ximian.com>
31101
31102         * TreeView.cs: Don't try to find the clicked on node if there are
31103         no nodes in the tree.
31104
31105 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31106
31107         * RichTextBox.cs:
31108
31109           restore
31110
31111 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31112
31113         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31114           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31115           ErrorProvider.cs:
31116           Use ResPool for brushes and dispose System.Drawing objects that
31117           are not used anymore.
31118
31119 2005-10-07  Jackson Harper  <jackson@ximian.com>
31120
31121         * MdiChildContext.cs: Use the new borders instead of drawing them
31122         ourselves.
31123
31124 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31125
31126         * Calling UpdateBounds after changing the window's BorderStyle 
31127         since the style can change the ClientSize
31128
31129 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31130
31131         * Control.cs: Made PaintControlBackground virtual
31132         * Panel.cs: Overriding PaintControlBackground instead of using paint
31133           event; paint event method was interfering with 'real' users of the
31134           event.
31135
31136 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31137
31138         * ThemeWin32Classic.cs: remove border drawing since it is handled
31139         by the base control class now and was causing double border drawing.
31140
31141 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31142
31143         * Panel.cs: Redraw our background on paint. Not a pretty solution,
31144           but it does seem to match MS behaviour. This fixes bug #75324
31145
31146 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31147
31148         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
31149           somewhat hackish looking
31150
31151 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31152
31153         * TextBoxBase.cs:
31154           - We now accept Enter even if AcceptEnter is false, if the containing
31155             form does not have an AcceptButton configured (fixes bug #76355)
31156           - Calculations are now fixed to no longer use Width/Height, but
31157             ClientSize.Width/Height, since we now support borders (this was
31158             a result of fixing borders and therefore bug #76166)
31159           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
31160             true (fixes bug #76354)
31161         
31162 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31163
31164         * Control.cs: 
31165           - Defaulting BorderStyle and setting it in XplatUI when our window 
31166             is created
31167           - Added enum check to InternalBorderStyle setter
31168         * XplatUIX11.cs: 
31169           - Added drawing of window borders
31170           - Now properly calculates WM decorations offset for toplevel 
31171             windows (fixes bug #74763)
31172         * XplatUIWin32.cs: 
31173           - Implemented BorderStyles for windows (we're letting win32 draw 
31174             the border for us)
31175           - Fixed the signature for SetWindowLong
31176         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
31177           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
31178           setting borders
31179         * UpDownBase.cs: Remove drawing of borders, this is handled by
31180           the driver, outside the client area
31181         * ListView.cs: Removed bogus border calculations. The control should
31182           be oblivious to borders, since those are not part of the client
31183           area. 
31184         * X11DesktopColors.cs: Commented out (currently) unneeded variables
31185         * ThemeWin32Classic.cs: Removed border calculations from ListView 
31186           drawing code
31187
31188 2005-10-06  Jackson Harper  <jackson@ximian.com>
31189
31190         * MdiChildContext.cs: Clear out the old virtual position remove
31191         all the unneeded calls to CreateGraphics.
31192
31193 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31194
31195         * TextControl.cs: Use proper color for highlighted text; fixes #76350
31196
31197 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31198
31199         * Form.cs: 
31200           - Added loading and setting of our new default icon
31201           - Only set icon if window is already created
31202
31203 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31204
31205         * Label.cs:
31206           - Do not explicitly set the foreground and background colors, to
31207             allow inheriting from parents (fixes #76302)
31208           - Use Control's InternalBorderStyle property to deal with borders
31209
31210 2005-10-06  Jackson Harper  <jackson@ximian.com>
31211
31212         * MdiChildContext.cs: Use the new xplatui function to draw a
31213         reversible rect.
31214
31215 2005-10-06  Jackson Harper  <jackson@ximian.com>
31216
31217         * Form.cs: Add the parent before creating the child context cause
31218         we need the parent when setting up the child.
31219
31220 2005-10-06  Jackson Harper  <jackson@ximian.com>
31221
31222         * FolderBrowserDialog.cs: redo the tree population code so a
31223         second thread isn't used. Should be a lot faster and more stable
31224         now.
31225
31226 2005-10-05  Jackson Harper  <jackson@ximian.com>
31227
31228         * TreeView.cs: There are no expand/collapse boxes if the node has
31229         no children.
31230
31231 2005-10-05  Jackson Harper  <jackson@ximian.com>
31232
31233         * X11DesktopColors.cs: Get menu colours for the gtk theme.
31234
31235 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
31236
31237         * FileDialog.cs: Fix InitialDirectory
31238
31239 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31240
31241         * ComboBox.cs:
31242                 - Fixes changing between styles
31243                 - Fixes simple mode
31244                 - Fixes last item crashing when navigating with keyboard
31245
31246 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31247
31248         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
31249
31250 2005-10-05  Jackson Harper  <jackson@ximian.com>
31251
31252         * TreeView.cs: If updating the root node do a full refresh.
31253         * TreeNode.cs: The root node should be expanded by default. Also
31254         added a utility prop to tell if we are the root node.
31255         * TreeNodeCollection.cs: Only refresh if the node we are being
31256         added to is expanded. Also added a comment on a potential
31257         optimization.
31258         
31259 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
31260
31261         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
31262           in dispose method. Fixes #76330
31263
31264 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
31265
31266         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
31267
31268                 - Implements vertical and horizontal scrolling using XplatUI
31269                 - Fixes keyboard navagation
31270                 - Fixes EnsureVisible
31271                 - Drawing fixes
31272                 - Handles and draws focus properly
31273
31274
31275 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
31276
31277         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
31278           Create handle. NET_2_0: Destroy handle when value is null.
31279
31280 2005-10-03  Jackson Harper  <jackson@ximian.com>
31281
31282         * ScrollBar.cs: My last scrollbar patch was broken. This is a
31283         revert and a new patch to prevent the thumb from refreshing so
31284         much.
31285
31286 2005-10-02  Jackson Harper  <jackson@ximian.com>
31287
31288         * ScrollBar.cs: Don't update position if it hasn't actually
31289         changed. This occurs when you hold down the increment/decrement
31290         buttons and the thumb gets to the max/min.
31291
31292 2005-10-01  Jackson Harper  <jackson@ximian.com>
31293
31294         * Form.cs:
31295         * MdiChildContext.cs:
31296         * MdiClient.cs: Implement ActiveMdiChild in Form.
31297
31298 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
31299
31300         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
31301
31302 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
31303
31304         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
31305           be found
31306
31307 2005-09-30  Jackson Harper  <jackson@ximian.com>
31308
31309         * ListBox.cs: Don't do a full refresh unless some data has
31310         actually changed.
31311
31312 2005-09-30  Jackson Harper  <jackson@ximian.com>
31313
31314         * TreeView.cs: Make sure that the checkboxes size is factored in
31315         even when not visible.
31316
31317 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
31318
31319         * FileDialog.cs: Fix Jordi's build break
31320
31321 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
31322
31323         * FileDialog.cs: 
31324                 - Use standard the Windows colours for the combobox as espected
31325                 - Dispose objects that use resouces when no longer need them
31326
31327 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
31328
31329         * X11DesktopColors.cs: Initial incomplete implementation
31330         * XplatUIX11.cs: Added call to initialize X11DesktopColors
31331
31332 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
31333
31334         * Theme.cs: 
31335           - Switched Theme color names to match the names defined in 
31336             System.Drawing.KnownColors. Life's hard enough, no need to make 
31337             it harder.
31338           - Added setters to all theme color properties so themes can set
31339             their color schemes. The setters also propagate the color changes
31340             to System.Drawing.KnownColors via reflection
31341         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
31342           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
31343           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
31344           use the new, more logical theme color names
31345         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
31346           post-NT colors
31347         * ThemeWin32Classic.cs:
31348           - Removed code to set the old classic Windows colors. Instead it
31349             now relies on the colors returned by System.Drawing.KnownColors
31350             which will be either modern static colors (Unix) or colors
31351             read from the user's configuration (Win32)
31352           - Updated to use the new, more logical theme color names
31353           - Switched DataGrid drawing code to use only Theme colors instead of
31354             a mix of System.Drawing.KnownColors and Theme colors
31355           - DrawFrameControl(): Removed code that fills the button area, the
31356             fill would overwrite any previous fill done by a control. This
31357             fixes bug #75338 
31358           - Added DrawReversibleRectangle() stub
31359         * ScrollableControl.cs: Set visible state to false when scrollbars
31360           are removed (pdn fix)
31361         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
31362           DrawReversibleRectangle() method to allow drawing primitive 
31363           'rubber bands'
31364         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
31365
31366 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31367
31368         * ImageList.cs: Add(Icon): Create handle.
31369
31370 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
31371
31372         * ListView.cs:
31373         * ThemeWin32Classic.cs:
31374                 - Fixes detail mode
31375                 - Sets clippings
31376                 - Issues with drawing
31377
31378 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31379
31380         * ImageList.cs: Moved RecreateHandle back to ImageList as event
31381           source has to be the ImageList.
31382
31383 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31384
31385         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
31386
31387 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31388
31389         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
31390
31391 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31392
31393         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
31394
31395 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
31396         * GridItem.cs: Fixed TODOs
31397         * GridItemCollection.cs: Added ICollection interface
31398
31399 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31400
31401         * ImageList.cs: Resize icons when needed.
31402
31403 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
31404
31405         * ListViewItem.cs
31406                 - Fixes GetBounds and returns on screen rects
31407         * ListView.cs:
31408                 - Fixes vertical and horzintal scrolling of items
31409         * ThemeWin32Classic.cs:
31410                 - Fixes drawing
31411                 
31412 2005-09-29  Raja R Harinath  <harinath@gmail.com>
31413
31414         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
31415
31416 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
31417
31418         * ImageList.cs: Added comments about handle creation. Moved Handle,
31419           HandleCreated and OnRecreateHandle implementations to ImageCollection.
31420           Handle is created in Add methods.
31421
31422 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
31423          
31424         * DataGridDrawingLogic.cs: 
31425                 - Takes rows into account on Colum calculations
31426                 - Returns the column when clickig
31427         * DataGrid.cs:
31428                 - Fixes default HitTestInfo values
31429                 - Fixes HitTestInfo.ToString
31430                 - Fixes ResetBackColor          
31431         
31432 2005-09-28  Jackson Harper  <jackson@ximian.com>
31433
31434         * MdiChildContext.cs: Obey rules for fixed sized windows (no
31435         sizing or cursor changes). Also added some temp code to draw the
31436         titlebars text (Makes dev a little easier).
31437
31438 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
31439
31440         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
31441
31442 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
31443          
31444         * ListBox.cs: Fixes bug 76253
31445
31446 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
31447
31448         * ImageList.cs: Added comments about the current implementation. Added
31449           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
31450           Format32bppArgb to preserve transparency and can use Graphics.FromImage
31451           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
31452           with Bitmap.LockBits for better performance. Revised the whole file to
31453           match MS.NET behaviour and provide better performance. Non-public
31454           interface members are calling public members even when they throw
31455           NotSupportedException for better maintainability. Moved ColorDepth,
31456           ImageSize, ImageStream and TransparentColor implementations to
31457           ImageCollection for better performance as these properties are not used
31458           by ImageList.
31459         * ImageListStreamer.cs: Added a new internal constructor that takes an
31460           ImageList.ImageCollection and serializes Images based on
31461           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
31462           match ImageList property name.
31463
31464 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
31465
31466         * ListBox.cs: Fixes IndexFromPoint for last item
31467
31468 2005-09-27  Jackson Harper  <jackson@ximian.com>
31469
31470         * Form.cs: Set the position of new mdi children correctly.
31471
31472 2005-09-27  Jackson Harper  <jackson@ximian.com>
31473
31474         * MdiClient.cs: New mdi children need to be added to the back of
31475         the controls collection so the zorder is set correctly. Also add a
31476         count of all the child windows that have been created.
31477
31478 2005-09-27  Jackson Harper  <jackson@ximian.com>
31479
31480         * Form.cs (CreateParams): Setup MDI forms correctly.
31481
31482 2005-09-27  Jackson Harper  <jackson@ximian.com>
31483
31484         * MdiChildContext.cs:
31485         * MonthCalendar.cs:
31486         * UpDownBase.cs:
31487         * ListBox.cs:
31488         * ListView.cs:
31489         * TextBoxBase.cs:
31490         * TreeView.cs:
31491         * ScrollableControl.cs:
31492         * ComboBox.cs: Add implicit controls using the new implict control
31493         functionality in ControlCollection. Also try to block multiple
31494         control add in a suspend/resume layout to save some cycles.
31495         
31496 2005-09-27  Jackson Harper  <jackson@ximian.com>
31497
31498         * Control.cs: Add functionality to the controls collection to add
31499         'implicit controls' these are controls that are created by the
31500         containing control but should not be exposed to the user. Such as
31501         scrollbars in the treeview.
31502         * Form.cs: The list var of the ControlsCollection is no longer
31503         available because of the potential of implicit controls getting
31504         ignored by someone accessing the list directly.
31505
31506 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
31507
31508         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
31509           loose it's parent. (Fixed bug introduced in r49103 when we added
31510           setting the child parent to null on Remove)
31511
31512 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
31513
31514         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
31515         * Splitter.cs: Added missing attributes for BorderStyle property.
31516         * TextBoxBase.cs: Marked Calculate* methods internal.
31517         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
31518         MS.NET.
31519
31520 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
31521          
31522         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
31523
31524 2005-09-25  Jackson Harper  <jackson@ximian.com>
31525
31526         * TreeView.cs: Update the node bounds correctly regardless of
31527         whether the node is visible.
31528
31529 2005-09-25  Jackson Harper  <jackson@ximian.com>
31530
31531         * ImageList.cs: Don't dispose the image after it is added to the
31532         image list. Only reformat images that need to be resized.
31533
31534 2005-09-25  Jackson Harper  <jackson@ximian.com>
31535
31536         * ImageList.cs: Don't set the format when changing the image.
31537
31538 2005-09-25  Jackson Harper  <jackson@ximian.com>
31539
31540         * TreeView.cs: We can't just assume the node has a font. Use the
31541         treeviews font if no node font is available.
31542
31543 2005-09-25  Jackson Harper  <jackson@ximian.com>
31544
31545         * TreeView.cs: Allow the scrollbars to be reset with negative
31546         values.
31547         - Don't add scrollbars to negative sized windows.
31548
31549 2005-09-23  Jackson Harper  <jackson@ximian.com>
31550
31551         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
31552         old Mono.Posix. Also remove some stray code that shouldn't have
31553         been committed.
31554
31555 2005-09-23  Jackson Harper  <jackson@ximian.com>
31556
31557         * TreeView.cs: Attempt at proper sizing of the horizontal
31558         scrollbar. Also don't resize the scrollbars unless they are
31559         visible.
31560
31561 2005-09-23  Jackson Harper  <jackson@ximian.com>
31562
31563         * TreeView.cs: We don't need to expand the invalid area when the
31564         selection changes, as this is all drawn in the node's bounding
31565         box. The area needs to be expanded (previous typo was contracting
31566         it) when the focus rect moves.
31567
31568 2005-09-23  Jackson Harper  <jackson@ximian.com>
31569
31570         * TreeView.cs: Display the selection box under the correct
31571         circumstances. We were rendering white text with no selection box
31572         before.
31573
31574 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
31575
31576         * TextControl.cs(Split): Now updates selection start/end if it points 
31577           into a line that's being split. Fixes a FIXME and bug #75258
31578
31579 2005-09-23  Jackson Harper  <jackson@ximian.com>
31580
31581         * Binding.cs:
31582         * ListControl.cs: Don't use the path when retrieving binding
31583         managers from the binding context. My bat sense tells me that the
31584         path is only used on insertion.
31585
31586 2005-09-22  Jackson Harper  <jackson@ximian.com>
31587
31588         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
31589
31590 2005-09-22  Jackson Harper  <jackson@ximian.com>
31591
31592         * Splitter.cs: There are special cursors used for splitting.
31593         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
31594
31595 2005-09-22  Jackson Harper  <jackson@ximian.com>
31596
31597         * Splitter.cs: Change the cursor appropriately when the splitter
31598         is moused over, so the user actually knows there is a splitter
31599         there.
31600
31601 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31602
31603        * Label.cs : Fix ToString method to give same output as MS.NET
31604
31605 2005-09-22  Jackson Harper  <jackson@ximian.com>
31606
31607         * TreeView.cs: Create the scrollbars when the handle is created
31608         and add them right away, just make them invisble. Also account for
31609         the window being shrunk vertically to the point that the vert
31610         scrollbar needs to be added.
31611         - Remove some 0.5 adjustments to get around anti aliasing issues.
31612         
31613 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
31614          
31615         * MainMenu.cs: Fixes default value
31616         * MenuItem.cs: Fixes default value
31617
31618 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
31619
31620         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
31621
31622 2005-09-21  Jackson Harper  <jackson@ximian.com>
31623
31624         * Control.cs: Don't try to set the border style on the window if
31625         it hasn't been created. When the window is created the border
31626         style will be used.
31627
31628 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
31629
31630         * Control.cs (Update): Don't call XplatUI if we don't have a
31631           window handle yet
31632
31633 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
31634
31635         * ContainerControl.cs: Instead of throwing an exception, print
31636           a one-time warning about Validate not being implemented
31637         * XplatUIWin32.cs: Removed debug output
31638
31639 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
31640
31641         * Control.cs: Only set XplatUI background if we expect the windowing
31642           system to handle the background. This stops controls that draw their
31643           own background from flickering
31644
31645         * XplatUIX11.cs: Support custom visuals and colormaps for window 
31646           creation. This allows, amongst other things, using MWF X11 windows 
31647           with OpenGL.
31648
31649 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
31650
31651         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
31652           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
31653           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
31654           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
31655           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
31656           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
31657           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
31658           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
31659           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
31660           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
31661           GridColumnStylesCollection.cs, 
31662           IDataGridColumnStyleEditingNotificationService.cs,
31663           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
31664           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
31665           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
31666           TreeNodeCollection.cs, AmbientProperties.cs, 
31667           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
31668           DataObject.cs, ErrorProvider.cs, Splitter.cs,
31669           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
31670           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
31671           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
31672           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
31673           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
31674           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
31675           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
31676           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
31677           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
31678           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
31679           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
31680           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
31681           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
31682           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
31683           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
31684           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
31685           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
31686           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
31687           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
31688           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
31689           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
31690           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
31691           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
31692           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
31693           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
31694           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
31695           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
31696           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
31697           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
31698           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
31699           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
31700           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
31701           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
31702           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
31703           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
31704
31705 2005-09-21  Jackson Harper  <jackson@ximian.com>
31706
31707         * TreeNode.cs: Call Before/After Expand not Collapse when
31708         expanding.
31709
31710 2005-09-20  Jackson Harper  <jackson@ximian.com>
31711         
31712         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
31713
31714 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
31715          
31716         * ListViewItem.cs:
31717                 - Fixes bug 76120
31718                 - Fixes proper storing of subitems
31719                 - Fixes not updated items
31720
31721 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
31722
31723         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
31724           things if our window handle isn't created yet. Also disabled 
31725           debug for TextBoxBase
31726
31727 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
31728
31729         * MenuAPI.cs: Remove filtering of events to allow menu usage
31730
31731 2005-09-20  Miguel de Icaza  <miguel@novell.com>
31732
31733         * Cursor.cs: Allow null to be passed to Cursor.Current.
31734
31735 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
31736
31737         * ThemeWin32Classic.cs:
31738           - Change some private methods/fields to protected virtual so that 
31739             they can be accessed and overriden in derived classes
31740           - First refactoring of some methods. Derived themes now don't 
31741             need to duplicate the complete code from ThemeWin32Classic
31742         * ThemeNice.cs:
31743           - Added nice StatusBar
31744           - Derive from ThemeWin32Classic and not Theme
31745           - Removed duplicate ThemeWin32Classic code
31746
31747 2005-09-20  Miguel de Icaza  <miguel@novell.com>
31748
31749         * Control.cs (ControlCollection.Add): If the value null is passed
31750         the control is ignored. 
31751
31752         Optimize this loop.
31753
31754 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
31755
31756         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
31757           PostQuitMessage state.
31758         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
31759
31760 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
31761
31762         * Application.cs: Our constructor will never get called, move 
31763           initialization to fields; fixes bug #75933
31764
31765 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31766
31767         * FileDialog.cs :
31768                 - Allow files to be selected properly using file name
31769                 combo box.
31770                 - Add ability to change diretory (absolute / relative)
31771                 using file name combo box.
31772
31773 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
31774          
31775         * ListBox.cs: 
31776                 - Fixes Multicolumn listboxes item wrong calculations
31777                 - Allows to click when only one item is in the listbox
31778                 - Fixes crash when no items using keyboard navigation
31779
31780 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
31781
31782         * ComboBox.cs: Reverted almost everything from the latest patch which
31783           broke ComboBox
31784
31785 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
31786         
31787         * ToolTip.cs:
31788                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
31789         * ComboBox.cs:
31790                 - When DropDownStyle is Simple, it does not show scrollbar 
31791                 to the last item of the list.
31792                 - When DropDownStyle is Simple, it crashed when the list was 
31793                 scrolled down with the down cursor key.
31794                 - Fixed a bug that when DropDownStyle is DropDownList, the 
31795                 selected item was not shown.
31796                 - The position of the selected item was not preserved when 
31797                 the next dropdown happened.
31798         * ThemeWin32Classic.cs:
31799                 - Items were wrapped at the right end.
31800         * CheckedListBox.cs:
31801                 - Fixed Add method
31802         * ListBox.cs:
31803                 - Items should be fully shown.
31804                 - When resizing and vertical scrollbar disappeared, the item 
31805                 of index 0 should be on the top of the list.
31806                 - GetItemRectangle should consider the size of ver. scrollbar
31807         * StatusBar.cs:
31808                 - SizingGrip area should not be allocated when it is not 
31809                 displayed.
31810                 - Now it reflects MinWidth of the containing panel and 
31811                 fixed a crash that happens when its width becomes so small.
31812
31813 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
31814
31815         * CheckedListBox.cs: Fixes bug 76028
31816         * ListBox.cs: Fixes bug 76028
31817
31818 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
31819
31820         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
31821         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
31822
31823 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
31824
31825         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
31826
31827 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
31828
31829         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
31830
31831 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
31832
31833         * IRootGridEntry.cs: Added
31834         * PropertyGridCommands.cs: Added
31835         * PropertiesTab.cs: Added missing methods and property
31836         * PropertyGridView.cs: Made class internal
31837         * PropertyGridTextBox.cs: Made class internal
31838
31839 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31840
31841         * MimeIcon.cs: Try to check some other environment variables
31842           if "DESKTOP_SESSION" returns "default"
31843
31844 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31845
31846         * ThemeNice.cs: Corrected background colors (e.g. menus)
31847         * ColorDialog.cs: Use correct background colors for controls
31848
31849 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31850
31851         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
31852
31853 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
31854
31855         * RichTextBox.cs: Added initial implementation
31856         * lang.cs: Removed. Was accidentally checked in long time ago
31857         * TODO: Removed. Contents were obsolete
31858
31859 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
31860                                                                                 
31861         * PropertiesTab.cs : Added
31862
31863 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
31864                                                                                 
31865         * PropertyGrid.cs : Update
31866         * PropertyGridView.cs : Update
31867         * System.Windows.Forms.resx : Added images and strings
31868
31869 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
31870
31871         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
31872  
31873 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
31874
31875         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
31876           a busy loop right after the Ungrab the X11 display is otherwise 
31877           blocked
31878
31879 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
31880
31881         * ThemeWin32Classic.cs: Optimise the use of clipping
31882
31883 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
31884
31885         * DataGrid.cs: fixes recursion bug
31886
31887 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
31888
31889         * ThemeNice.cs: 
31890           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
31891           - Cleanup
31892
31893 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
31894
31895         * ThemeNice.cs: Draw nice ProgressBars
31896
31897 2005-09-01  Miguel de Icaza  <miguel@novell.com>
31898
31899         * VScrollBar.cs: Another buglet found by Aaron's tool. 
31900
31901         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
31902         bug finder.
31903
31904 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
31905
31906         * ThemeNice.cs:
31907           - Added nicer menu drawing
31908           - Updated DrawTab
31909           - some refactoring
31910
31911 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
31912
31913         * CreateParams.cs (ToString): Made output match MS
31914         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
31915             handle is already created (to avoid forcing window creation)
31916         * XplatUIX11.cs: Set window text to caption after creating window,
31917           in case Text was set before window was created
31918         * Form.cs: Use this.Text instead of a static string as caption
31919
31920 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
31921
31922         * NotifyIcon.cs: Don't set the window to visible; this screws
31923           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
31924           OnPaint without a bitmap)
31925         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
31926           happen very often anyway; we could add the check to the WM_PAINT 
31927           event generation code
31928
31929 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
31930
31931         * NotifyIcon.cs: Fill the icon area with a background color, to 
31932           avoid 'residue' when transparent icons are drawn
31933         * XplatUIX11.cs:
31934           - Handle whole_window == client_window when destroying windows
31935           - SystrayAdd(): Set client_window to whole_window value to
31936             get mouse and other events passed to NotifyIcon
31937
31938 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
31939
31940         * Form.cs: Set proper default for Opacity property
31941         * NotifyIcon.cs:
31942           - ShowSystray(): Don't bother creating telling the OS
31943             about the systray item if no icon is provided
31944           - Now handles WM_NCPAINT message to deal with whole/client window
31945             split
31946           - Create window as visible to not get caught by Expose optimization
31947         * Hwnd.cs: Removed debug message
31948         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
31949           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
31950             PaintEventStart/End to use new client argument
31951         * TextBoxBase.cs:
31952           - Commented out debug messages
31953           - Switched PaintEventStart/End to use new client argument
31954         * XplatUI.cs: Added client window bool to PaintEventStart()/
31955           PaintEventEnd() calls, to support drawing in non-client areas
31956         * XplatUIDriver.cs: 
31957           - Added client window bool to PaintEventStart()/PaintEventEnd() 
31958             calls, to support drawing in non-client areas
31959           - Added conditional compile to allow using MWF BeginInvoke 
31960             on MS runtime
31961         * XplatUIX11.cs:
31962           - Added some conditional debug output
31963           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
31964             whole/client window split
31965           - Implemented handling of client argument to PaintEventStart()/End()
31966         * Control.cs:
31967           - Throw exception if BeginInvoke() is called and the window handle
31968             or one of the window's parent handles is not created
31969           - Added conditional compile to allow using MWF BeginInvoke on
31970             MS runtime
31971           - get_Parent(): Only sets parent if handle is created. This avoids
31972             forcing window handle creation when parent is set.
31973           - Now fires Layout and Parent changed events in proper order
31974           - Switched to use Handle instead of window.Handle for Z-Order setting,
31975             the get_Parent() patch above causes us to possibly get null for 'window'
31976           - Implemented handling of client argument to PaintEventStart()/End()
31977           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
31978             default handling)
31979           - Now sends a Refresh() to all child windows when Refresh() is called
31980
31981 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
31982
31983         * Form.cs: Added (non-functional) Opacity property
31984         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
31985
31986 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
31987         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
31988           use export MONO_THEME=nice to activate it.
31989           Currently supported controls:
31990           - Button
31991           - ComboBox
31992           - ScrollBar
31993           - TabControl (TabAlignment.Top only, other will follow)
31994         * ThemeEngine.cs: Add theme nice
31995         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
31996           if enabled
31997
31998 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
31999
32000         * Splitter.cs: Resize docked control and its neighbor.
32001
32002 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32003         -- Making Windows with Menus layout correctly --
32004         * Form.cs : The first leg of the fix
32005                 Menu setter - adjust Client Size as needed to make space for the menu
32006                 SetClientSizeCore - doesn't call base version to be able to pass the 
32007                         menu handle to XplatUI.CalculateWindowRect
32008         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32009         * XplatUIX11.cs: The critical second leg of the fix
32010                 GetWindowPos needs to use a recalculated client_rect
32011                 so that resizing the window doesn't break layout of child controls. 
32012                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32013                 Lots of \t\n killed
32014
32015 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
32016
32017         * Label.cs: Now properly recalculates width and height on Font and Text
32018           changes if AutoSize is set
32019
32020 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32021         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32022
32023 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
32024
32025         * ImageList.cs: Makes ToString method compatible with MS
32026
32027 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
32028
32029         * MenuAPI.cs: fixes bug 75716
32030
32031 2005-08-11 Umadevi S <sumadevi@novell.com>
32032         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32033
32034 2005-08-11 Umadevi S <sumadevi@novell.com>
32035         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32036
32037 2005-08-10  Umadevi S <sumadevi@novell.com>
32038         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32039
32040 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
32041
32042         * Menu.cs: fixes bug 75700
32043         * MenuAPI.cs: fixes navigation issues
32044
32045 2005-08-09  Umadevi S <sumadevi@novell.com>
32046         * CheckedListBox.cs - simple fix for GetItemChecked.
32047
32048 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
32049
32050         * ComboBox.cs: Serveral fixes
32051         * ListBox.cs: Serveral fixes
32052
32053 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32054
32055         * ComboBox.cs: Fixes FindString methods and GetItemHeight
32056         * ListBox.cs: Fixes FindString methods
32057
32058 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32059
32060         * DataGrid.cs: fixes bugs exposed by new tests
32061
32062 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
32063
32064         * Mime.cs: Compile Mono assembly references only if compiling
32065           with Mono (Allows to build with VS.Net again)
32066
32067 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
32068
32069         * Control.cs (PaintControlBackground): Draw background image
32070         corrrectly.
32071         (CheckForIllegalCrossThreadCalls): Stubbed.
32072         
32073         * Form.cs (OnCreateControl): Center when should be centered.
32074         
32075         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32076
32077 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
32078
32079         * Binding.cs: Binding to properties should be case unsensitive
32080
32081 2005-07-18 vlindos@nucleusys.com
32082
32083         * DataGrid.cs: fixes setmember order
32084
32085 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
32086
32087         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32088         * FileDialog.cs: FileDialog is now resizable and uses the new
32089           MimeIconEngine
32090
32091 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
32092
32093         * DataGridTextBoxColumn.cs: default value
32094         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32095         * GridTableStylesCollection.cs: fixes checking MappingName
32096         * DataGridDrawingLogic.cs: fixes drawing logic issues
32097         * DataSourceHelper.cs: rewritten to make compatible with more data sources
32098         * DataGrid.cs: fixes    
32099
32100 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
32101
32102         * MimeGenerated.cs: Use case sensitive comparer for
32103           NameValueCollections
32104
32105 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
32106
32107         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
32108         * ThemeWin32Classic.cs: bug fixes, code refactoring
32109         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
32110         * DataGrid.cs: bug fixes, code refactoring
32111         * DataGridTextBox.cs: bug fixes, code refactoring
32112         * DataGridColumnStyle.cs:  bug fixes, code refactoring
32113         * Theme.cs:  bug fixes, code refactoring
32114
32115 2005-07-01  Peter Bartok  <pbartok@novell.com> 
32116
32117         * TextControl.cs: Quick fix for the reported crash on ColorDialog
32118           and other text box usage
32119
32120 2005-07-01  Jackson Harper  <jackson@ximian.com>
32121
32122         * TabControl.cs: Make sure the bottom of the tab covers the pages
32123         border.
32124
32125 2005-06-30  Peter Bartok  <pbartok@novell.com> 
32126
32127         * Form.cs (ShowDialog): Assign owner of the dialog
32128         * TextBoxBase.cs: Always refresh caret size when deleting, caret
32129           might have been moved to a tag with different height
32130
32131 2005-06-30  Jackson Harper  <jackson@ximian.com>
32132
32133         * Form.cs: Don't create an infinite loop when setting focus
32134         * MenuItem.cs: Don't dirty the parents if we don't have any
32135
32136 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
32137
32138         * LibSupport.cs: Rename
32139
32140 2005-06-29  Peter Bartok  <pbartok@novell.com>
32141
32142         * TextBoxBase.cs: Re-align caret after deleting a character
32143         * TextControl.cs:
32144           - DeleteChars(): Ensure that tag covers the provided position
32145           - StreamLine(): Drop reference for dropped tag
32146
32147 2005-06-29  Peter Bartok  <pbartok@novell.com> 
32148
32149         * TextControl.cs: 
32150           - Selections now work properly, anchoring at the initial location
32151             and properly extending in either direction (SetSelectionToCaret(),
32152             SetSelectionStart() and SetSelectionEnd())
32153           - No longer redraws the whole control on selection change, now
32154             calculates delta between previous and new selection and only
32155             invalidates/redraws that area
32156           - Fixed FindPos() math off-by-one errors
32157           - Changed DeleteChars() to verify the provided tag covers the
32158             provided position, selections may have a tag that doesn't cover
32159             the position if the selection is at a tag border
32160           - Fixed off-by-one errors in DeleteChars()
32161           - Added missing streamlining check in DeleteChars() to remove
32162             zero-length tags
32163           - Implemented Invalidate() method, now properly calculates exposures
32164             between two given lines/positions
32165           - Implemented SetSelection()
32166           - Obsoleted and removed FixupSelection()
32167           - Improved RecalculateDocument() logic, removing code duplication
32168
32169 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32170
32171         * LibSupport.cs: changes to match different input/output arguments.
32172
32173 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32174
32175         * LibSupport.cs: added libsupport.so init routine.
32176
32177 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
32178         
32179         * ControlBindingsCollection.cs
32180                 - Throws an exception on null datasource when adding
32181                 - Checks for duplicated bindings when adding
32182
32183 2005-06-28  Jackson Harper  <jackson@ximian.com>
32184
32185         * TreeView.cs (OnKeyDown): Support left and right properly
32186         (navigates as well as expanding and collapsing.
32187         - Add support for Multiply, this expands all the selected nodes
32188         children.
32189         - Fix some tabbing.
32190
32191 2005-06-28  Jackson Harper  <jackson@ximian.com>
32192
32193         * TreeView.cs: Implement keyboard navigation, currently supports,
32194         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
32195         support for toggling checkboxes with the space bar.
32196
32197 2005-06-28  Jackson Harper  <jackson@ximian.com>
32198
32199         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
32200         tree.
32201
32202 2005-06-28  Jackson Harper  <jackson@ximian.com>
32203
32204         * TreeView.cs: Add missing event.
32205
32206 2005-06-27  Peter Bartok  <pbartok@novell.com> 
32207
32208         * TextControl.cs:
32209           - Made line ending size configurable (now allows for counting 
32210             lineendings as \n or \r\n)
32211           - Added margin to viewport to keep caret visible on right side
32212           - Fixed translation routines for line/pos to documentpos to consider
32213             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
32214           - Fixed some line-endings to be unix style
32215           - Fixed Document.FormatText to perform it's calculations 1-based
32216           - Added descriptions for a few methods that might otherwise get 
32217             used wrong
32218           - Added NOTE section with some basic conventions to remember at 
32219             the top of the file
32220           - Major fixup for RichTextBox selection drawing:
32221             * Fixed crashes when multiple tags on a single line were selected
32222             * fixed selection box drawing not overlaying text
32223             * fixed bogus offset calculation for tags not starting at index 1
32224             * Switched behaviour from using multiple Substrings of a 
32225               StringBuilder.ToString() to using multiple 
32226               StringBuilder.ToString(start, length) statements, hoping this is
32227               faster (kept original version commented out in the code, in case
32228               original version was faster)
32229         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
32230           alignment != Left
32231         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
32232           call it as well
32233
32234 2005-06-27  Jackson Harper  <jackson@ximian.com>
32235
32236         * TabControl.cs: Move to the left and right with the arrow
32237         keys. These keys don't cycle beyond first and last like
32238         tab. Refresh all the tabs when scrolling them to the left or
32239         right.
32240
32241 2005-06-27  Jackson Harper  <jackson@ximian.com>
32242
32243         * TabControl.cs:
32244           - ToString: Added method
32245           - CreateParams: Remove TODO and comment
32246           - OnKeyDown: Cycle through bounds properly.
32247           - SelectedIndex: Scroll to the right or left if we need to
32248           display the newly selected tab.
32249
32250 2005-06-23  Jackson Harper  <jackson@ximian.com>
32251
32252         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
32253         set.
32254
32255 2005-06-23  Jackson Harper  <jackson@ximian.com>
32256
32257         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
32258         CTRL-SHIFT-TAB, and HOME, END are there any others?
32259
32260 2005-06-23  Jackson Harper  <jackson@ximian.com>
32261
32262         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
32263
32264 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32265         
32266         * DataGridTextBoxColumn.cs: fixes and enhancements
32267         * ThemeWin32Classic.cs: fixes and enhancements
32268         * DataGridBoolColumn.cs:  fixes and enhancements
32269         * DataGridDrawingLogic.cs:  fixes and enhancements
32270         * CurrencyManager.cs: fixes and enhancements
32271         * DataGrid.cs: fixes and enhancements
32272         * DataGridColumnStyle.cs:  fixes and enhancements
32273
32274 2005-06-22  Jackson Harper  <jackson@ximian.com>
32275
32276         * TabControl.cs: Add some missing methods that just call into the
32277         base. Make the TabPageCollection's IList interface behave in the
32278         same manner as the MS implementation.
32279
32280 2005-06-22  Peter Bartok  <pbartok@novell.com> 
32281
32282         * TextControl.cs: Added sanity check
32283         * TextBoxBase.cs: 
32284           - Fixed wrapping behaviour, don't set wrap on single line controls
32285             (this fixes the breakage of colordialog introduced in an earlier
32286              checkin)
32287           - Added rudimentary support for autoscrolling right-aligned controls
32288             (still needs fixing, also, center alignment scroll is missing)
32289
32290 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32291         
32292         * ScrollBar.cs: Fixes thumbpos on Maximum values
32293
32294 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
32295         
32296         * PropertyGridView.cs: Pass context information to UITypeEditors 
32297
32298 2005-06-21  Peter Bartok  <pbartok@novell.com> 
32299
32300         * TextBoxBase.cs:
32301           - Now calling PositionCaret with absolute space coordinates
32302           - Enabled vertical scrolling
32303           - Better tracking of scrollbar changes, tied into WidthChange
32304             event
32305           - Improved cursor tracking
32306           - Removed debug output
32307         * TextControl.cs:
32308           - PositionCaret coordinates are now works in absolute space, not 
32309             the canvas
32310           - Improved tracking of document size
32311           - Added events for width and height changes
32312
32313 2005-06-21  Peter Bartok  <pbartok@novell.com>
32314
32315         * Form.cs: Set focus to active control when form is activated
32316         * TextControl.cs: 
32317           - Added word-wrap functionality to RecalculateLine() 
32318           - Added some short function descriptions for VS.Net to aid in
32319             writing dependent controls
32320           - Added Caret property, returning the current coords of the caret
32321           - Added ViewPortWidth and ViewPortHeight properties
32322           - Added Wrap property
32323           - Added CaretMoved event
32324           - Removed some old debug code
32325           - Split() can now create soft splits
32326           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
32327           - Added method to format existing text
32328           - Fixed size/alignment calculations to use viewport
32329           - RecalculateDocument now can handle changing line-numbers while
32330             calculating lines
32331
32332         * TextBox.cs:
32333           - Added some wrap logic, we don't wrap if alignment is not left
32334           - Added casts for scrollbar var, base class switched types to
32335             also support RichTextBoxA
32336           - Implemented handling of scrollbar visibility flags
32337
32338         * TextBoxBase.cs:
32339           - Switched scrollbars type to RichTextBoxScrollBars to support
32340             RichTextBox
32341           - Added tracking of canvas width/height
32342           - Switched scrollbars to be not selectable (to keep focus on text)
32343           - Added central CalculateDocument() method to handle all redraw
32344             requirements
32345           - Added ReadOnly support
32346           - Added WordWrap support
32347           - Fixed handling of Enter key (we now treat it as a DialogKey)
32348           - Fixed caret positioning when h or v scroll is not zero
32349           - Fixed placing/generation of vertical scrollbar
32350           - Added CalculateScrollBars() method to allow updating scrollbar
32351             limits and visibility
32352           - Fixed handling of horizontal scroll
32353           - Added handling of vertical scroll
32354           - Implemented auto-'jump' when caret moves to close to a left or
32355             right border and there is text to be scrolled into view (currently
32356             there's the potential for a stack overflow, until a bug in
32357             scrollbar is fixed)
32358
32359 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
32360         
32361         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
32362
32363 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
32364
32365         * Mime.cs:
32366         - added inodes.
32367         - return application/x-zerosize for files with size zero
32368           (if no extension pattern matches).
32369         - check matches collection for strings too.
32370         - return only the first mime type if the name value
32371           collection has more than one mime type.
32372
32373 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
32374         
32375         * PropertyGrid.cs: Cleaned up some TODOs
32376         * PropertyGridView.cs: Added support for UITypeEditors
32377
32378 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
32379         
32380         * DataGrid.cs: clears cached value
32381
32382 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
32383
32384         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
32385         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
32386         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
32387         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
32388         
32389 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
32390
32391         * ThemeWin32Classic.cs: fixes colour
32392
32393 2005-06-15  Peter Bartok  <pbartok@novell.com>
32394
32395         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
32396         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
32397         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
32398         * Control.cs: Added some MWFCategory and MWFDescription attributes
32399         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
32400
32401 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
32402
32403         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
32404         usage
32405
32406 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
32407
32408         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
32409         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
32410         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
32411         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
32412         * DataGrid.cs: default datagrid settings for Default Styles, fixes
32413         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
32414
32415 2005-06-13  Jackson Harper  <jackson@ximian.com>
32416
32417         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
32418         isn't printed when the user enables dropping. (X11 does accept
32419         drops).
32420         
32421 2005-06-13  Jackson Harper  <jackson@ximian.com>
32422
32423         * TreeView.cs: Remove some TODOS.
32424
32425 2005-06-13  Jackson Harper  <jackson@ximian.com>
32426
32427         * Form.cs: Hook into the mdi framework.
32428         * MdiClient.cs: Use the base control collections add method so
32429         parents get setup correctly. Set the default back colour and dock
32430         style.
32431         * MdiChildContext.cs: New class, this bad actor handles an
32432         instance of an MDI window. Right now there is only basic
32433         support. You can drag, close, and resize windows. Minimize and
32434         Maximize are partially implemented.
32435
32436 2005-06-13  Jackson Harper  <jackson@ximian.com>
32437
32438         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
32439         freaky when both vals are negative. NOTE: There are probably other
32440         places in XplatUIX11 that this needs to be done.
32441
32442 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
32443
32444         * DataGrid.cs: implement missing methods, move KeyboardNavigation
32445         * DataGridColumnStyle.cs: fixes signature
32446
32447 2005-06-12  Jackson Harper  <jackson@ximian.com>
32448
32449         * XplatUIX11.cs: Use sizing cursors similar to the ones on
32450         windows.
32451
32452 2005-06-11  Jackson Harper  <jackson@ximian.com>
32453
32454         * StatusBarPanel.cs: Signature cleanups. Implement
32455         BeginInit/EndInit.
32456
32457 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
32458
32459         * DataGridTextBoxColumn.cs: Honors aligment
32460         * GridColumnStylesCollection.cs: Contains is case unsensitive
32461         * GridTableStylesCollection.cs: several fixes
32462         * DataGridTableStyle.cs: default column creation
32463         * DataGridDrawingLogic.cs: fixes
32464         * CurrencyManager.cs: ListName property
32465         * DataGrid.cs: multiple styles support
32466         * DataGridColumnStyle.cs: fixes
32467         
32468
32469 2005-06-10  Peter Bartok  <pbartok@novell.com>
32470
32471         * Control.cs(Select): Moved SetFocus call to avoid potential
32472           loops if controls change the active control when getting focus
32473         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
32474           the up/down buttons
32475
32476 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
32477
32478         * ImageListConverter.cs: Implemented
32479
32480 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
32481
32482         * MonthCalendar.cs: Wired in NumericUpDown control for year
32483
32484 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
32485
32486         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
32487           DoubleClick events, since they are not meant to be fired.
32488
32489 2005-06-09  Peter Bartok  <pbartok@novell.com>
32490
32491         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
32492           Jonathan's standalone controls into MWF, implemented missing
32493           events, attributes and methods; added xxxAccessible classes
32494         * AccessibleObject.cs: Made fields internal so other classes
32495           can change them if needed
32496
32497 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
32498
32499         * UpDownBase.cs: Complete implementation
32500         * NumericUpDown.cs: Complete implementation
32501         * DomainUpDown.cs: Complete implementation
32502
32503 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
32504
32505         * DataGridTextBoxColumn.cs: drawing fixes
32506         * DataGridCell.cs: fixes ToString method to match MSNet
32507         * DataGridTableStyle.cs: fixes
32508         * DataGridBoolColumn.cs: fixes, drawing
32509         * DataGridDrawingLogic.cs: fixes, new methods
32510         * DataGridTextBox.cs: Keyboard and fixes
32511         * DataGrid.cs:
32512                 - Keyboard navigation
32513                 - Scrolling fixes
32514                 - Row selection (single, multiple, deletion, etc)
32515                 - Lots of fixes
32516         
32517 2005-06-07  Jackson Harper  <jackson@ximian.com>
32518
32519         * ThemeWin32Classic.cs: Clear the background area when drawing
32520         buttons.
32521
32522 2005-06-06  Peter Bartok  <pbartok@novell.com>
32523
32524         * ImageListStreamer.cs: Fixed signature for GetData
32525         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
32526         * ComboBox.cs:
32527           - Added missing ChildAccessibleObject class
32528           - Added missing OnXXXFocus overrides, switched to using those
32529             instead of the event handler
32530         * Control.cs:
32531           - Added Parent property for ControlAccessibleObject
32532           - Fixed signatures
32533           - Fixed attributes
32534           - Added ResetBindings()
32535         * ListBindingConverter.cs: Implemented some methods
32536         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
32537         * ImageList.cs: Implemented basic handle scheme, removed TODOs
32538         * ContainerControl.cs: Fixed signature, now subscribing to the
32539           ControlRemoved event instead of overriding the handler, LAMESPEC
32540         * CurrencyManager.cs: Added missing attribute
32541         * MonthCalendar.cs: Added missing properties
32542
32543 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
32544
32545         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
32546         
32547 2005-06-06  Gaurav Vaish and Ankit Jain
32548
32549         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
32550         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
32551         
32552 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
32553
32554         * Control.cs: fixes CreateParams Width / Height.
32555
32556 2005-06-05  Peter Bartok  <pbartok@novell.com>
32557
32558         * Win32DnD.cs: Removed compilation warnings
32559
32560 2005-06-05  Peter Bartok  <pbartok@novell.com>
32561
32562         * Control.cs (CreateParams): Since we don't know if one of the
32563           properties we use is overridden, lets make sure if we fail accessing
32564           we continue with a backup plan
32565
32566 2005-06-05  Peter Bartok  <pbartok@novell.com>
32567
32568         * Win32DnD.cs:
32569           - Removed debug output
32570           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
32571             struct
32572           - Plugged resource leak
32573         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
32574           MS size
32575
32576 2005-06-05  Peter Bartok  <pbartok@novell.com>
32577
32578         * XplatUIWin32.cs: Removed DnD code
32579         * Win32DnD.cs: Implemented drop source and drop target functionality
32580
32581 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32582
32583         * UpDownBase.cs: remove duplicate addition of event, enable some code
32584         that was commented out.
32585         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
32586         Validate input when a key is pressed. It works fine now for every
32587         combination of Hexadecimal. Only missing some drawing love when sharing
32588         space with other controls.
32589
32590 2005-06-04  Peter Bartok  <pbartok@novell.com>
32591
32592         * Control.cs:
32593           - We need to pass a window for DragDrop, so enable callback events
32594           - Added DnD callback events when being a DragSource
32595         * XplatUI.cs (StartDrag): Added window handle argument
32596         * XplatUIDriver.cs (StartDrag): Added window handle argument
32597         * QueryContinueDragEventArgs: Made fields internally accessible so
32598           drivers can set them
32599         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
32600           can set them
32601
32602 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
32603
32604         * DataGridTextBoxColumn.cs: column text editing
32605         * DataGridTableStyle.cs: Respect columns styles created by the user
32606         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
32607         * DataGridBoolColumn.cs: bool column editing
32608         * DataGrid.cs: fixes to scrolling, properties, etc
32609         * DataGridTextBox.cs: handle keyboard
32610         * DataGridColumnStyle.cs: fixes
32611
32612 2005-06-02  Jackson Harper  <jackson@ximian.com>
32613
32614         * ImageListStreamer.cs: Somewhat broken implementation of
32615         GetObjectData. The RLE needs some work to match MS properly.
32616
32617 2005-06-02  Jackson Harper  <jackson@ximian.com>
32618
32619         * X11Dnd.cs: Attempting to keep at least one file in MWF
32620         monostyled.
32621
32622 2005-06-02  Peter Bartok  <pbartok@novell.com>
32623
32624         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
32625           that way
32626
32627 2005-06-02  Peter Bartok  <pbartok@novell.com>
32628
32629         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
32630         * XplatUI.cs: Added DoDragDrop() method
32631         * XplatUIDriver.cs: Added DoDragDrop() method
32632
32633 2005-06-02  Jackson Harper  <jackson@ximian.com>
32634
32635         * Splitter.cs: Implement BorderStyle.
32636
32637 2005-06-02  Jackson Harper  <jackson@ximian.com>
32638
32639         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
32640         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
32641         X11 using XDND.
32642
32643 2005-06-02  Peter Bartok  <pbartok@novell.com>
32644
32645         * DataObject.cs:
32646           - Added Data setter
32647           - Fixed broken insertion code for SetData, now also
32648             overwrites any existing entry of the same format name
32649         * Hwnd.cs: Added list of pointers that automatically gets
32650           freed when the window is disposed
32651         * XplatUI.cs: Call driver initialization method when loading
32652           a driver
32653         * Control.cs:
32654           - OnDragLeave takes EventArgs, not DragEventArgs
32655           - Added setting of WS_EX_ACCEPTFILES style when dropping is
32656             supported
32657           - Forces style update when drop state changes
32658         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
32659           not perfect since we cannot (yet) call the IDataObject.GetData()
32660           method, we keep getting 0x80004005 error, dunno why)
32661
32662 2005-06-02  Peter Bartok  <pbartok@novell.com>
32663
32664         * DragEventArgs.cs: Make fields internal so we can cache the
32665           object and re-set the fields from XplatUI
32666
32667 2005-06-02  Jackson Harper  <jackson@ximian.com>
32668
32669         * Control.cs: Add some internal methods so the DnD subsystem can
32670         raise DnD events. Also call into the driver when AllowDrop is set.
32671         * XplatUI.cs:
32672         * XplatUIDriver.cs: New method for setting whether or not a window
32673         is allowed to accept drag and drop messages.
32674                 
32675 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
32676         
32677         * ScrollBar.cs: Make sure that values sent in Scroll events
32678         are always between Maximum and Minimum.
32679
32680 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
32681
32682         * Menu.cs: Call MenuChanged when menuitem visibility has been
32683         changed.
32684         * MenuItem.cs: Rebuild menu when item is (not) visible.
32685         * MainMenu.cs: MainMenu has special MenuChanged.
32686         * Theme.cs: Caption and FrameBorderSize are not fixed.
32687         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
32688         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
32689         * XplatUIX11.cs,
32690         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
32691         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
32692
32693 2005-05-30  Jackson Harper  <jackson@ximian.com>
32694
32695         * DataFormat.cs: We can't statically initialize this stuff because
32696         it calls into the xplatui and could create a loop. So we lazy init
32697         it.
32698
32699 2005-05-28  Jackson Harper  <jackson@ximian.com>
32700
32701         * Control.cs: Proper implementation of Product(Name/Version).
32702
32703 2005-05-27  Jackson Harper  <jackson@ximian.com>
32704
32705         * DataObject.cs: Dont crash if no data is found.
32706
32707 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
32708         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
32709                 as per status page, guessing it should be set to true
32710
32711 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
32712
32713         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
32714         * DataGridTableStyle.cs: set proper formatting text, def header text
32715         * ThemeWin32Classic.cs: new themable paramaters
32716         * DataGridBoolColumn.cs: paint check box, get data, fixes
32717         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
32718         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
32719         * DataGridColumnStyle.cs: fixes
32720         * Theme.cs: new themable paramaters
32721                 
32722 2005-05-26  Peter Bartok  <pbartok@novell.com>
32723
32724         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
32725
32726 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32727         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
32728
32729 2005-05-24  Peter Bartok  <pbartok@novell.com>
32730
32731         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
32732           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
32733           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
32734           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
32735           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
32736           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
32737           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
32738           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
32739           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
32740           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
32741           missing attributes, etc
32742         * DataGridPreferredColumnWidthTypeConverter.cs: Added
32743
32744 2005-05-24  Peter Bartok  <pbartok@novell.com>
32745
32746         * Help.cs: Added, implemented trivial functions, throws up MessageBox
32747           when user tries to get help
32748         * DataObject.cs, DataFormats.cs, LinkArea.cs,
32749           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
32750           to suppress warnings
32751         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
32752           avoid unreachable code warning
32753
32754 2005-05-20  Peter Bartok  <pbartok@novell.com>
32755
32756         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
32757
32758 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32759
32760         * DataGridTextBoxColumn.cs: Basic painting methods
32761         * DataGridTableStyle.cs: Set table style in the column
32762         * ThemeWin32Classic.cs: Use Theme for colors
32763         * DataGridDrawingLogic.cs: Implement more drawing
32764         * DataGrid.cs: drawing, theming, enhacements, fixes
32765         * DataGridColumnStyle.cs: fixes, drawing
32766         * Theme.cs: theming for Datagrid
32767
32768 2005-05-20  Peter Bartok  <pbartok@novell.com>
32769
32770         * Cursor.cs: Implemented GetObjectData() method
32771
32772 2005-05-20  Peter Bartok  <pbartok@novell.com>
32773
32774         * Cursors.cs: Added setting of cursor name
32775         * Cursor.cs:
32776           - Implemented constructors
32777           - Implemented Draw and DrawStretched
32778           - Implemented Current property
32779           - Implemented == and != operators
32780           - Implemented Dispose()
32781           - Implemented ToString
32782           - Added missing attributes
32783         * XplatUIX11.cs:
32784           - Added missing reset for OverrideCursor when DoEvents is called
32785           - Fixed creation of cursor, logic was wrong
32786         * XplatUIWin32.cs:
32787           - Added missing reset for OverrideCursor when DoEvents is called
32788           - Fixed creation of cursor, bit arrays were swapped
32789         * Clipboard.cs: Removed obsolete MonoTODO attribute
32790
32791 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32792
32793         * ComboBox.cs: fixes OnSelectedItemChanged
32794         * ControlBindingsCollection.cs: fixes item range check
32795
32796 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32797
32798         * UpDownBase.cs:
32799                 - Calc preferred height properly
32800                 - Implement missing properties
32801                 
32802         * NumericUpDown.cs: Implement missing events
32803
32804 2005-05-19  Jackson Harper  <jackson@ximian.com>
32805
32806         * TabControl.cs: New method that resizes the tab pages before
32807         redrawing them. This as needed as the control is double buffered
32808         and sizing will not be recalculated unless ResizeTabPages is
32809         called.
32810         * TabPage.cs: Set base.Text instead of Text in the constructor so
32811         that UpdateOwner does not get called. Use the new Redraw method of
32812         TabControl instead of Refresh so the sizing is recalculated.
32813         * ThemeWin32Classic.cs: Draw the text for button tabs.
32814
32815 2005-05-19  Jackson Harper  <jackson@ximian.com>
32816
32817         * Control.cs: Paint control background images. Fix typo where
32818         PaintControlBackground was not getting called correctly.
32819
32820 2005-05-19  Peter Bartok  <pbartok@novell.com>
32821
32822         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
32823           I can investigate, apparently I broke FileDialog
32824
32825 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
32826
32827         * AxHost.cs: Some simple properties.
32828         * Control.cs: window must be accessible after ctor.
32829         * Form.cs: Added TransparencyKey property.
32830         * TextBoxBase.cs: Implemented Clear. Text property can be null.
32831         * XplatUIWin32.cs: SetBorderStyle implemented.
32832
32833 2005-05-18  Peter Bartok  <pbartok@novell.com>
32834
32835         * DataObject.cs: Entries are not global but particular to the
32836           DataObject, now it behaves that way
32837         * XplatUIWin32.cs: Implemented Clipboard methods
32838         * Clipboard.cs: Implemented
32839         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
32840         * XplatUIOSX.cs: Updated to final clipboard prototypes
32841         * XplatUIX11.cs: Implemented Clipboard methods
32842         * XplatUIDriver.cs: Updated to final clipboard prototypes
32843         * XplatUIStructs.cs:
32844           - Added BITMAPINFOHEADER struct
32845           - Added ClipboardFormats enum
32846         * X11Structs.cs:
32847           - Added ClipboardStruct
32848           - Added Atom enum items for clipboard types
32849           - Fixed atom types for Selection event structures
32850         * DataFormats.cs:
32851           - Added internal properties and methods for drivers to enumerate
32852             all known formats
32853           - Switched initialization method to allow drivers to assign their
32854             own IDs even for the MS predefined clipboard IDs
32855         * XplatUI.cs: Updated to final clipboard interface
32856
32857 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32858         * PropertyGridView.cs: Fixed compiler warnings.
32859
32860 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32861         * PropertyGrid.cs: Added some event calls
32862         * PropertyGridView.cs: Change drawing code to use double buffering
32863         * PropertyGridTextBox.cs: Changed Text property name
32864         * GridItem.cs: Added Bounds property.
32865         * GridEntry.cs: Added Bounds property.
32866
32867 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
32868
32869         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
32870         since GetType() may not return the correct type if the object is
32871         a remoting proxy.
32872
32873 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
32874
32875         * TreeNodeCollection.cs: fixes get/set item ranges
32876         
32877 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
32878
32879         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
32880                 
32881 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
32882
32883         * ComboBox.cs: Fix item range comparation
32884         * ListView.cs: Fix item range comparation
32885
32886 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
32887
32888         * FontDialog.cs:
32889           - Clear example panel when OnPaint is called
32890           - Better solution for displaying the example panel text
32891           - Select default indexes in the ListBoxes
32892
32893 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
32894
32895         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
32896
32897 2005-05-11  Peter Bartok  <pbartok@novell.com>
32898
32899         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
32900         * SelectionRangeConverter.cs: Implemented
32901         * PropertyGrid.cs: Fixed attribute value
32902         * Control.cs:
32903           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
32904           - Added Sebastien Pouliot's CAS Stack Propagation fixes
32905         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
32906           that's common to all drivers. First methods to go there are
32907           Sebastien Pouliot's CAS Stack Propagation helper methods
32908         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
32909           Sebastien Pouliot for CAS Stack Propagation
32910
32911 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
32912
32913         * OSXStructs.cs:
32914           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
32915
32916 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
32917
32918         * DataGridTextBoxColumn.cs: fixed some members
32919         * GridColumnStylesCollection.cs: indexed column is case insensitive
32920         * DataGridTableStyle.cs: fixes
32921         * ThemeWin32Classic.cs: add new theme parameter
32922         * Theme.cs: add new theme parameter
32923         * DataGridDrawingLogic.cs: Datagrid's drawing logic
32924         * DataGrid.cs: fixes, new internal properties, etc.
32925         * DataGridColumnStyle.cs: allows to set grid value
32926         *
32927
32928 2005-05-10  Peter Bartok  <pbartok@novell.com>
32929
32930         * AccessibleObject.cs:
32931           - Removed MonoTODO attribute on help, method is correct
32932           - Fixed Bounds property
32933         * AxHost.cs: Moved MonoTODO
32934         * ButtonBase.cs: Now setting AccessibleObject properties
32935         * RadioButton.cs: Setting proper AccessibleObject role
32936         * CheckBox.cs: Setting proper AccessibleObject role
32937         * ControlBindingsCollection.cs: Added properties, methods and attributes
32938         * DataFormats.cs: Fixed awkward internal API, and changed to enable
32939           userdefined DataFormats.Format items as well
32940         * ListControl.cs: Removed data_member from the public eye
32941         * OpenFileDialog.cs:
32942           - Made class sealed
32943           - Added missing attributes
32944         * SaveFileDialog.cs: Added missing attributes
32945         * ImageListStreamer.cs: Fixed code that caused warnings
32946         * LinkLabel.cs: Removed unreachable code
32947         * TreeView.cs: Fixed code that caused warnings
32948         * PropertyGridView.cs: Fixed code that caused warnings
32949         * GridColumnStylesCollection.cs: Added missing attributes
32950         * GridTableStylesCollection: Added missing attribute
32951         * PropertyManager: Added .ctor
32952         * SecurityIDType: Added
32953         * DataObject.cs: Implemented class
32954         * LinkArea.cs: Added missing attribute
32955
32956 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
32957
32958         * RadioButton.cs: call base method to allow to fire OnClick event
32959         * UpDownBase.cs: OnMouseUp call base method
32960         * CheckedListBox.cs: call base method before returning
32961         * TrackBar.cs: call base method before returning
32962         
32963
32964 2005-05-10  Peter Bartok  <pbartok@novell.com>
32965
32966         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
32967           for messages
32968
32969 2005-05-10  Peter Bartok  <pbartok@novell.com>
32970
32971         * DataFormats.cs: Implemented
32972         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
32973           XplatUIX11.cs: Added Clipboard APIs
32974         * XplatUIWin32.cs: Implemented Clipboard APIs
32975         * FolderBrowserDialog.cs: Added missing event, attributes
32976
32977 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
32978
32979         * CheckBox.cs: call base method to allow to fire OnClick event
32980
32981 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
32982
32983         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
32984
32985 2005-05-06  Peter Bartok  <pbartok@novell.com>
32986
32987         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
32988         * Screen.cs: Implemented
32989         * HelpNavigator.cs: Added
32990         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
32991           property
32992         * HelpProvider.cs: Implemented all we can do until we have a CHM
32993           help library (which means that "What's This" does work now)
32994
32995 2005-05-06  Jackson Harper  <jackson@ximian.com>
32996
32997         * XplatUIX11.cs: Fix waking up the main loop.
32998                 
32999 2005-05-05  Peter Bartok  <pbartok@novell.com>
33000
33001         * XplatUI.cs: Updated revision
33002         * Form.cs: Removed enless loop
33003         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33004         * Label.cs (OnPaint): Added call to base.OnPaint()
33005         * ToolTip.cs: Made ToolTipWindow reusable for other controls
33006         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33007         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33008         * AxHost.cs: Added
33009         * ButtonBase.cs: Moved base.OnPaint() call to end of method
33010         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33011           to ToolTip.ToolTipWindow for drawing and size methods; this allows
33012           reuse of ToolTipWindow by other controls
33013         * SizeGrip.cs: Moved base.OnPaint() call to end of method
33014         * XplatUIX11.cs: Now clipping drawing area (experimental)
33015         * PictureBox.cs: Moved base.OnPaint() call to end of method
33016         * Theme.cs: Fixed ToolTip abstracts to match new format
33017         * ErrorProvider.cs: Implemented
33018
33019 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
33020
33021         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33022         * LinkLabel.cs:
33023                 - Adds cursors
33024                 - Handles focus
33025                 - Implements LinkBehavior
33026                 - Fixes many issues
33027
33028 2005-05-03  Jackson Harper  <jackson@ximian.com>
33029
33030         * ListView.cs: Calculate the scrollbar positioning on resize and
33031         paint, so they get put in the correct place.
33032
33033 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33034
33035         * ColorDialogs.cs: The small color panels are now handled by
33036           SmallColorControl. This fixes drawing of the focus rectangle
33037           and adds a 3D border.
33038
33039 2005-05-03  Peter Bartok  <pbartok@novell.com>
33040
33041         * Control.cs: Modified version of Jonathan Chamber's fix for
33042           double-buffering
33043
33044 2005-05-03  Jackson Harper  <jackson@ximian.com>
33045
33046         * ListView.cs: Remove redraw variable. Control now handles whether
33047         or not a redraw needs to be done, and will only raise the paint
33048         event if redrawing is needed.
33049
33050 2005-05-03  Jackson Harper  <jackson@ximian.com>
33051
33052         * Splitter.cs: No decorations for the splitter form. Cache the
33053         hatch brush.
33054
33055 2005-05-03  Jackson Harper  <jackson@ximian.com>
33056
33057         * TreeView.cs: Use dashed lines to connect nodes. Use the
33058         ControlPaint method for drawing the focus rect instead of doing
33059         that in treeview.
33060
33061 2005-05-02  Peter Bartok  <pbartok@novell.com>
33062
33063         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33064
33065 2005-04-29  Jackson Harper  <jackson@ximian.com>
33066
33067         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33068         entire image buffer. Just clear the clipping rectangle.
33069
33070 2005-04-29  Jackson Harper  <jackson@ximian.com>
33071
33072         * ThemeWin32Classic.cs: Don't draw list view items that are
33073         outside the clipping rectangle.
33074
33075 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
33076
33077         * ListBox.cs: added horizontal item scroll
33078
33079 2005-04-29  Jackson Harper  <jackson@ximian.com>
33080
33081         * ThemeWin32Classic.cs: Remove some old debug code that was
33082         causing flicker with the new double buffering code.
33083
33084 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
33085
33086         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33087         behave like combobox and comboboxlist (still not sure if this is
33088         correct though).
33089
33090 2005-04-28  Jackson Harper  <jackson@ximian.com>
33091
33092         * ThemeWin32Classic.cs: Don't fill the middle of progress
33093         bars. This fills areas outside of the clip bounds that don't need
33094         to be filled.
33095
33096 2005-04-28  Jackson Harper  <jackson@ximian.com>
33097
33098         * Control.cs: Don't expose functionality to touch the image buffers.
33099         * ProgressBar.cs:
33100         * ListView.cs: We do not need to (and no longer can) manipulate
33101         the image buffers directly. All of this is handled by Control.
33102
33103 2005-04-28  Peter Bartok  <pbartok@novell.com>
33104
33105         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33106           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33107           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33108
33109 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33110
33111         * Combobox:
33112                 - Adjust control's height for non-simple comboboxes (bug fix)
33113                 - Remove dead code
33114         * MenuAPI.cs: remove unused var
33115         * ScrollBar.cs: remove unsed var
33116                  
33117         * ListBox.cs: unselect items when clearing
33118
33119 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33120
33121         * ListControl.cs: honors OnPositionChanged and default Selected Item
33122         * ListBox.cs: unselect items when clearing
33123
33124 2005-04-27  Jackson Harper  <jackson@ximian.com>
33125
33126         * X11Keyboard.cs: Initialize a default keyboard and give a warning
33127         if a "correct" keyboard is not found. This will make us not crash,
33128         but might give some users bad keyboard layouts...seems to be the
33129         same thing rewind does.
33130
33131 2005-04-27  Jackson Harper  <jackson@ximian.com>
33132
33133         * BindingManagerBase.cs: Attach the current/position changed
33134         handlers to their respective events.
33135
33136 2005-04-27  Jackson Harper  <jackson@ximian.com>
33137
33138         * Control.cs: Make sure that the first WM_PAINT does a full draw,
33139         not just a blit.
33140         * ThemeWin32Classic.cs: Don't fill the background for picture
33141         boxes. This could overright user drawing.
33142         * ComboBox.cs: Just fill the clipping rect not the entire client
33143         rect when drawing the background. This prevents pieces of the
33144         image buffer from getting overwritten and is theoretically faster.
33145
33146 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
33147
33148         * ComboBox.cs: Databinding support fixes, fire missing events
33149         * ListControl.cs: implement missing methods and properties, fixes
33150         * ThemeWin32Classic.cs: Databiding support on Drawing
33151         * CheckedListBox.cs: Databinding support fixes, fire missing events
33152         * ListBox.cs: Databinding support fixes, fire missing events
33153         
33154 2005-04-25  Peter Bartok  <pbartok@novell.com>
33155
33156         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
33157
33158 2005-04-25  Jackson Harper  <jackson@ximian.com>
33159
33160         * TreeView.cs: Use the horizontal scrollbars height not width when
33161         determining how much of the client area is available.
33162
33163 2005-04-25  Jackson Harper  <jackson@ximian.com>
33164
33165         * Control.cs: Double buffering is handled differently now. As per
33166         the spec, the extra buffer is created in the WM_PAINT message and
33167         passed down to the control's drawing code.
33168         * GroupBox.cs:
33169         * Label.cs:
33170         * CheckBox.cs:
33171         * ProgressBar.cs:
33172         * RadioButton.cs:
33173         * ColorDialog.cs:
33174         * ComboBox.cs:
33175         * PropertyGridView.cs:
33176         * UpDownBase.cs:
33177         * MessageBox.cs:
33178         * MenuAPI.cs:
33179         * ListView.cs:
33180         * ButtonBase.cs:
33181         * SizeGrip.cs:
33182         * ScrollBar.cs:
33183         * ListBox.cs:
33184         * TrackBar.cs:
33185         * ToolBar.cs:
33186         * PictureBox.cs:
33187         * DateTimePicker.cs:
33188         * StatusBar.cs:
33189         * TreeView.cs: Update to new double buffering system.
33190         * MonthCalendar.cs: Uncomment block, as Capture is now
33191         working. Update to new double buffering
33192         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
33193         * PaintEventArgs.cs: New internal method allows us to set the
33194         graphics object. This is used for double buffering.
33195         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
33196         rectangle. The internal paint_area var has been removed from
33197         StatusBar. The clipping rect should be used instead.
33198         * Theme.cs: Give the PictureBox drawing method a clipping rect.
33199         * TabPage.cs: The RefreshTabs method was removed, so just call the
33200         tab controls Refresh method now.
33201         * TabControl.cs: Update to new double buffering. Make sure the
33202         handle is created before sizing the tab pages, otherwise we will
33203         get stuck in a loop.
33204
33205 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
33206
33207         * LinkLabel.cs: Fix typo, bug #74719; patch
33208           from Borja Sanchez Zamorano
33209
33210 2005-04-22  Jackson Harper  <jackson@ximian.com>
33211
33212         * TreeNode.cs: Implement Handle stuff.
33213         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
33214
33215 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
33216
33217         * DataGridTextBoxColumn.cs: call base constructors, fixes
33218         * GridColumnStylesCollection.cs: missing events, methods, and functionality
33219         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
33220         * DataGridTableStyle.cs: implements create default column styles
33221         * DataGridBoolColumn.cs: which types can handle
33222         * DataGrid.cs: missing methods, fixes, new functionality
33223         * DataGridColumnStyle.cs: fixes
33224
33225 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
33226         * FolderBrowserDialog.cs:
33227         - Use a thread to fill the TreeView
33228         - Adjusted some sizes
33229
33230 2005-04-19  Peter Bartok  <pbartok@novell.com>
33231
33232         * LinkLabel.cs: (Re-)create the pieces when setting the Text
33233           property. Fixes #74360.
33234
33235 2005-04-19  Jackson Harper  <jackson@ximian.com>
33236
33237         * XEventQueue.cs: Lock when getting the lockqueue size.
33238         * PictureBox.cs: Call base OnPaint
33239         
33240 2005-04-19  Peter Bartok  <pbartok@novell.com>
33241
33242         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
33243           messages were no longer being processed (this broke BeginInvoke)
33244
33245           
33246 2005-04-18  Jackson Harper  <jackson@ximian.com>
33247
33248         * TreeView.cs: buglet that caused node images to get drawn
33249         regardless of whether or not they were in the clipping rectangle.
33250
33251 2005-04-18  Jackson Harper  <jackson@ximian.com>
33252
33253         * CurrencyManager.cs: There are four rules for GetItemProperties:
33254         - If the type is an array use the element type of the array
33255         - If the type is a typed list, use the type
33256         - If the list contains an Item property that is not an object, use
33257         that property
33258         - use the first element of the list if there are any elements in
33259         the list.
33260         
33261 2005-04-17  Jackson Harper  <jackson@ximian.oom>
33262
33263         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
33264         click. This handles offsets for scrolling properly and reduces
33265         memory. Also fixed GetNode to not offset now that TopNode works
33266         properly.
33267         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
33268         
33269 2005-04-17  Jackson Harper  <jackson@ximian.com>
33270
33271         * CursorConverter.cs: Initial implementation.
33272
33273 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33274
33275         * ListControl.cs: work towards complex data binding support on ListControl
33276         * CurrencyManager.cs: work towards complex data binding support on ListControl
33277         * ListBox.cs: work towards complex data binding support on ListControl
33278
33279
33280 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33281
33282         * GridTableStylesCollection.cs: fixes name and constructor
33283         * DataGridTableStyle.cs: fixes
33284         * DataGridBoolColumn.cs: fixes names and constructors
33285         * DataGrid.cs: define methods and properties. Some init implementations
33286         * DataGridCell.cs: define methods and properties. Some init implementations
33287         * GridTablesFactory.cs: Define methods and properties
33288
33289 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
33290
33291         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
33292         graphics port changes.  We still want the coordinates in global screen
33293         coordinates.
33294
33295 2005-04-14  Jackson Harper  <jackson@ximian.com>
33296
33297         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
33298         check plus minus or checkbox clicks unless those features are enabled.
33299
33300 2005-04-14  Jackson Harper  <jackson@ximian.com>
33301
33302         * TreeView.cs: Add methods for setting the top and bottom visible
33303         nodes. TreeNode::EnsureVisible uses these methods.
33304         * TreeNode.cs: Implement EnsureVisible
33305
33306 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
33307
33308         * Form.cs: Pospone menu assignation if the window has not been created yet
33309         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
33310         size and position
33311
33312 2005-04-12  Jackson Harper  <jackson@ximian.com>
33313
33314         * TreeView.cs: Set the TopNode properly when scrolling
33315         occurs. This has the added benifit of reducing the amount of
33316         walking that needs to be done when drawing. Also removed an old
33317         misleading TODO.
33318         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
33319         
33320 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
33321
33322         * Timer.cs: fixes interval setting when the timer is already enabled
33323         
33324 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
33325
33326         * FolderBrowserDialog.cs: First approach
33327
33328 2005-04-09  Peter Bartok  <pbartok@novell.com>
33329
33330         * FolderBrowserDialog: Added
33331
33332 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
33333
33334         * LinkLabel.cs: move drawing code into the theme
33335         * ThemeWin32Classic.cs: drawing code and painting background bugfix
33336         * Theme.cs: define DrawLinkLabel method
33337
33338 2005-04-05  Jackson Harper  <jackson@ximian.com>
33339
33340         * BindingContext.cs: Use weak references so these bad actors don't
33341         stay alive longer then they need to.
33342
33343 2005-04-05  Jackson Harper  <jackson@ximian.com>
33344
33345         * ListControl.cs: Basic implementation of complex databinding.
33346         * ComboBox.cs:
33347         * ListBox.cs: Add calls to ListControl databinding methods.
33348
33349 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
33350
33351         * FileDialog.cs:
33352           - Don't change PopupButtonState to Normal when the
33353             PopupButton gets pressed several times.
33354           - Renamed ButtonPanel to PopupButtonPanel
33355
33356 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
33357
33358         * ColorDialog.cs: Use cached objects instead of creating them
33359         * LinkLabel.cs: Use cached objects instead of creating them
33360         * Splitter.cs: Use cached objects instead of creating them
33361         * FontDialog.cs: Use cached objects instead of creating them
33362         * PropertyGridView.cs: Use cached objects instead of creating them
33363         * MessageBox.cs: Use cached objects instead of creating them
33364         * FileDialog.cs: Use cached objects instead of creating them
33365         * ThemeWin32Classic.cs: Use cached objects instead of creating them
33366         * TreeView.cs: Use cached objects instead of creating them
33367         
33368 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
33369
33370         * Control.cs: use Equals to compare the font since no == op
33371         * ScrollBar.cs: use Equals to compare the font since no == op
33372
33373 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
33374
33375         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
33376
33377 2005-04-01  Jackson Harper  <jackson@ximian.com>
33378
33379         * Binding.cs: Implement IsBinding.
33380         * BindingManagerBase.cs:
33381         * PropertyManager.cs:
33382         * CurrencyManager.cs: Add IsSuspended property.
33383
33384 2005-04-01  Jackson Harper  <jackson@ximian.com>
33385
33386         * Binding.cs: Had some IsAssignableFrom calls backwards.
33387
33388 2005-04-01  Jackson Harper  <jackson@ximian.com>
33389
33390         * Binding.cs: Handle null data members when pulling data.
33391         * PropertyManager.cs: Handle the data member being a property that
33392         does not exist.
33393
33394 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
33395
33396         * DataGridTextBoxColumn.cs: fixes signature
33397         * DataGrid.cs: calls right constructor
33398
33399 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
33400
33401         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
33402         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
33403         * GridTableStylesCollection.cs: implements GridTableStylesCollection
33404         * DataGridTableStyle.cs: implements DataGridTableStyle
33405         * DataGridBoolColumn.cs: implements DataGridBoolColumn
33406         * DataGridTextBox.cs: implements DataGridTextBox
33407         * DataGridColumnStyle.cs: implements DataGridColumnStyle
33408
33409 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
33410
33411         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
33412
33413 2005-03-29  Peter Bartok  <pbartok@novell.com>
33414
33415         * Application.cs:
33416           - Properly implemented CompanyName property
33417           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
33418             returns a path that includes CompanyName, ProductName and
33419             Version (fixes bug #70330)
33420
33421 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
33422
33423         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
33424           fixes bug #72588.
33425
33426 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
33427
33428         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
33429         
33430           - Added ReadOnly CheckBox
33431           - Further refactoring: moved some code from Open-/SaveFileDialog
33432             to FileDialog
33433
33434 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
33435
33436         * OpenFileDialog.cs: Fixed CheckFileExists
33437         * FileDialog.cs:
33438           Moved FileView and DirComboBox outside FileDialog class.
33439           They can now be used outside FileDialog
33440
33441 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
33442
33443         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
33444         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
33445
33446 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
33447
33448         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33449           - Added missing CreatePrompt property in SaveDialog
33450           - Overall SaveDialog handling should be better now
33451           - Added non standard ShowHiddenFiles property
33452           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
33453           - Added InitialDirectory and RestoreDirectory support
33454
33455 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
33456
33457         * FileDialog.cs: Made dirComboBox usable
33458
33459 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
33460
33461         * FileDialog.cs: Added Filter support (case sensitiv)
33462
33463 2005-03-24  Jackson Harper  <jackson@ximian.com>
33464
33465         * TabControl.cs: Need a couple more pixels for the lines.
33466
33467 2005-03-23  Jackson Harper  <jackson@ximian.com>
33468
33469         * TabControl.cs: Give the tab page focus when it is selected.
33470
33471 2005-03-23  Jackson Harper  <jackson@ximian.com>
33472
33473         * TabControl.cs: Account for the drawing of tabs borders when
33474         invalidating. If the slider was clicked dont do click detection on
33475         the tabs.
33476
33477 2005-03-23  Jackson Harper  <jackson@ximian.com>
33478
33479         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
33480
33481 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
33482
33483         * CategoryGridEntry.cs: Added
33484         * GridItem.cs: Added helper properties
33485         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
33486         * GridEntry.cs: Updated code for collection
33487         * PropertyGrid.cs: Cleaned up some formatting
33488         * PropertyGridView.cs: Added drop down functionality for enums.
33489         * GridItemCollection.cs: Added enumerator logic
33490         * PropertyGridEntry.cs: Added
33491
33492 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
33493
33494         * FileDialog.cs:
33495           - Removed unnecessary commented code
33496           - Fixed handling for entering the filename manually in the combobox
33497
33498 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
33499
33500         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
33501
33502 2005-03-18  Peter Bartok  <pbartok@novell.com>
33503
33504         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
33505           them being touching the border
33506
33507 2005-03-18  Peter Bartok  <pbartok@novell.com>
33508
33509         * TextControl.cs: Quick hack to center text better
33510
33511 2005-03-18  Peter Bartok  <pbartok@novell.com>
33512
33513         * ControlPaint.cs:
33514           - Don't throw NotImplemented exceptions, just print a notice once
33515             instead (requested by Miguel). This makes running existing SWF
33516             apps a bit easier
33517         * Control.cs:
33518           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
33519           - Added context menu trigger on right click
33520         * Panel.cs: Trigger invalidate on resize
33521         * StatusBar.cs:
33522           - Removed old double-buffer drawing
33523           - Added ResizeRedraw style to force proper update of statusbar
33524         * ListView.cs:
33525           - Removed debug output
33526         * ThemeWin32Classic.cs:
33527           - Fixed drawing of status bar, now draws Text property if there
33528             are no defined panels
33529
33530 2005-03-18  Jackson Harper  <jackson@ximian.com>
33531
33532         * ImageList.cs: When the image stream is set pull all the images
33533         from it.
33534         * ImageListStreamer.cs: Implement reading image list streams.
33535
33536 2005-03-18  Peter Bartok  <pbartok@novell.com>
33537
33538         * ThemeWin32Classic.cs (DrawPictureBox):
33539           - Fixed calculations for centered drawing
33540           - Fixed drawing for normal mode, not scaling the image on normal
33541
33542 2005-03-18  Peter Bartok  <pbartok@novell.com>
33543
33544         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
33545           textbox
33546         * FileDialog.cs:
33547           - Made Open/Save button the accept button for FileDialog
33548           - Tied the cancel button to the IButtonControl cancel button
33549           - Save/Open now properly builds the pathname
33550           - Now handles user-entered text
33551           - Preventing crash on right-click if no item is selected
33552           - Fixed Text property, now uses contents of textbox
33553           - Fixed SelectedText property, now just returns the text part that
33554             is selected in the text box
33555
33556 2005-03-18  Jackson Harper  <jackson@ximian.com>
33557
33558         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
33559         rect, make sure to de-adjust the interior rect after drawing the
33560         tab text.
33561
33562 2005-03-18  Peter Bartok  <pbartok@novell.com>
33563
33564         * MenuAPI.cs: Remove menu *before* executing selected action to
33565           prevent the menu from 'hanging around'
33566           
33567 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
33568
33569         * XplatUIOSX.cs: Implemented WorkingArea property
33570
33571 2005-03-17  Peter Bartok  <pbartok@novell.com>
33572
33573         * XplatUIX11.cs: Fixed menu coord calculations
33574         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
33575           for calculating offsets
33576
33577 2005-03-17  Peter Bartok  <pbartok@novell.com>
33578
33579         * Hwnd.cs: Do not consider menu presence for default client
33580           rectangle location/size
33581         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
33582           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
33583           translation functions
33584         * FileDialog.cs: Fixed (what I presume is a) typo
33585
33586 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
33587
33588         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
33589           X access (avoids X-Async errors)
33590
33591 2005-03-16  Jackson Harper  <jackson@ximian.com>
33592
33593         * TabControl.cs: Raise the SelectedIndexChanged event.
33594
33595 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
33596
33597         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33598           - Removed vertical ToolBar and replaced it with a custom panel
33599             (desktop and home button already work)
33600           - Added Help button (some controls get resized or relocated then)
33601           - Draw correct text depending on Open or Save.
33602           - Fixed some typos...
33603
33604 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
33605
33606         * ScrollBar.cs:
33607           - Only change Maximum and Minimum when need it (bug fix)
33608
33609 2005-03-15  Peter Bartok  <pbartok@novell.com>
33610
33611         * Form.cs: Use Handle for icon, to trigger creation if
33612           the window does not yet exist
33613         * Control.cs:
33614           - CanSelect: Slight performance improvement
33615           - Focus(): Preventing possible recursion
33616           - Invalidate(): Removed ControlStyle based clear flag setting
33617           - WM_PAINT: fixed logic for calling OnPaintBackground
33618           - WM_ERASEBKGND: Fixed logic, added call to new driver method
33619             EraseWindowBackground if the control doesn't paint background
33620         * XplatUIWin32.cs:
33621           - Moved EraseWindowBackground() method to internal methods
33622           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
33623             is sent via SendMessage on BeginPaint call on Win32
33624         * XplatUIX11.cs:
33625           - Added EraseWindowBackground() method
33626           - No longer sends WM_ERASEBKGND on .Expose, but on call to
33627             PaintEventStart, which more closely matches Win32 behaviour
33628           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
33629           - Fixed SetFocus() to properly deal with client and whole windows
33630         * Hwnd.cs: Added ErasePending property
33631         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
33632         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
33633
33634 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
33635
33636         * XplatUIOSX.cs:
33637           - Fix hard loop when timers exist.
33638           - Fix bugs with middle and right click for 3 button mice.
33639
33640 2005-03-11  Peter Bartok  <pbartok@novell.com>
33641
33642         * XplatUIX11.cs:
33643           - get_WorkingArea: Need to call X directly, GetWindowPos only
33644             returns cached data now
33645           - Added sanity check to GetWindowPos hwnd usage
33646
33647 2005-03-11  Jackson Harper  <jackson@ximian.com>
33648
33649         * BindingManagerBase.cs: This method isn't used anymore as
33650         PullData now updates the data in the control.
33651
33652 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
33653
33654         * Form.cs: fixes menu drawing on X11
33655         * MenuAPI.cs:  fixes menu drawing on X11
33656
33657 2005-03-11  Peter Bartok  <pbartok@novell.com>
33658
33659         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
33660           from Jonathan Gilbert; should fix bug #73606
33661         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
33662           in Screen coordinates. Thanks, Jordi.
33663         * Form.cs: Added missing attribute
33664
33665 2005-03-11  Peter Bartok  <pbartok@novell.com>
33666
33667         * Form.cs:
33668           - Rudimentary Mdi support
33669           - Removed outdated FormParent code
33670           - Implemented lots of missing properties and methods, still missing
33671             transparency support
33672           - Added missing attributes
33673           - Implemented support for MaximumBounds
33674           - Added firing of various events
33675         * XplatUI.cs: Added SetIcon() method
33676         * XplatUIDriver.cs: Added SetIcon() abstract
33677         * XplatUIOSX.cs: Stubbed out SetIcon() method
33678         * XplatUIX11.cs:
33679           - Implemented SetIcon() support
33680           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
33681           - Switched to unix line endings
33682         * XplatUIWin32.cs:
33683           - Made POINT internal so for can access it as part of MINMAX
33684           - Implemented SetIcon() support
33685           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
33686             native Mdi support again, might have to go managed)
33687         * Control.cs: Now fires the StyleChanged event
33688         * MdiClient.cs: Added; still mostly empty
33689
33690 2005-03-10  Peter Bartok  <pbartok@novell.com>
33691
33692         * SaveFileDialog.cs: Added emtpy file
33693
33694 2005-03-08  Peter Bartok  <pbartok@novell.com>
33695
33696         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
33697           in turn triggers OnCreateContro) when creating a handle for the
33698           first time.
33699         * TextControl.cs: Fixed endless loop in certain cases when
33700           replacing the current selection
33701
33702 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
33703
33704         * ScrollBar.cs:
33705           - Honors NewValue changes in Scroll events allowing apps to change it
33706           - Adds First and Last Scroll events
33707           - Fixes Thumb events
33708
33709 2005-03-07  Peter Bartok  <pbartok@novell.com>
33710
33711         * Hwnd.cs: Added DefaultClientRectangle property
33712         * XplatUI.cs: Now using the X11 driver Where() method, which provides
33713           more detailed debug information
33714         * XplatUIX11.cs:
33715           - Fixed size-change feedback loop, where we would pull an old size
33716             off the queue and mistakenly change our window's size to an
33717             earlier value
33718           - Now compressing ConfigureNotify events, to reduce looping and
33719             redraw issues
33720         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
33721           is called
33722
33723 2005-03-07  Jackson Harper  <jackson@ximian.com>
33724
33725         * Binding.cs: Push data pushes from data -> property. Check if the
33726         property is readonly when attempting to set it.
33727
33728 2005-03-07  Jackson Harper  <jackson@ximian.com>
33729
33730         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
33731         instead of IsSubclassOf. Pulling data now sets the value on the
33732         control.
33733         * PropertyManager.cs:
33734         * CurrencyManager.cs: Just need to pull data when updating now,
33735         because PullData will set the value on the control.
33736
33737 2005-03-04  Jackson Harper  <jackson@ximian.com>
33738
33739         * Binding.cs: Implement data type parsing and converting on pulled
33740         data. TODO: Are there more ways the data can be converted?
33741
33742 2005-03-04  Jackson Harper  <jackson@ximian.com>
33743
33744         * Binding.cs: Support <Property>IsNull checks. Also bind to the
33745         controls Validating method so we can repull the data when the
33746         control loses focus.
33747
33748 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
33749
33750         * ColumnHeader.cs:
33751           - Fixes null string format
33752           
33753         * ListView.cs:
33754           - Adds enum type checks
33755           - Fixes redrawing and recalc need after changing some properties
33756           - Fixes on focus_item set after the event
33757           - Fixes adding columns after the control has been created
33758           
33759         * ThemeWin32Classic.cs:
33760           - Fixes CheckBox focus rectangle
33761           - Fixes ColumnHeader drawing
33762
33763
33764 2005-03-03  Jackson Harper  <jackson@ximian.com>
33765
33766         * Binding.cs: Bind to <Property>Changed events so we can detect
33767         when properties are changed and update the data.
33768
33769 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
33770
33771         * ImageList.cs:
33772           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
33773           - Fixes ImageList constructor with ImageList container
33774           - Fixes image scaling (wrong parameters at DrawImage)
33775
33776 2005-02-02  Jackson Harper  <jackson@ximian.com>
33777
33778         * Binding.cs: Make property searches case-insensitive. Eliminate
33779         some duplicated code.
33780
33781 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
33782
33783         * ComboBox.cs:
33784                 - Handle focus event
33785                 - Fix scrollbar events
33786                 - Discard highlighted item if remove it
33787                 - Fixes SelectedItem with strings
33788
33789 2005-03-01  Peter Bartok  <pbartok@novell.com>
33790
33791         * Control.cs:
33792           - Fixed Visible property, now follows (once again) parent chain
33793             to return false if any control in the chain is visible=false
33794           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
33795           - Fixed several places where is_visible instead of Visible was used
33796           - Implemented FIXME related to focus selection when setting focused
33797             control to be invisible
33798
33799         * XplatUIWin32.cs: Now using proper method to find out if window is
33800           visible. Thanks to Jordi for pointing it out
33801
33802 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
33803
33804         * ComboBox.cs: show/hide scrollbar instead of creating it
33805
33806 2005-02-27  Jackson Harper  <jackson@ximian.com>
33807
33808         * CurrencyManager.cs: Add PositionChanged stuff.
33809
33810 2005-02-27  Peter Bartok  <pbartok@novell.com>
33811
33812         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
33813         * XplatUIOSX.cs: Added GetMenuOrigin() stub
33814         * XplatUIWin32.cs: Implemented GetMenuOrigin()
33815         * XplatUIX11.cs:
33816           - Implemented GetMenuDC()
33817           - Implemented GetMenuOrigin()
33818           - Implemented ReleaseMenuDC()
33819           - Implemented generation of WM_NCPAINT message
33820           - Implemented generation and handling of WM_NCCALCSIZE message
33821         * Form.cs: Added debug helper message for Jordi's menu work
33822         * Hwnd.cs:
33823           - Modified ClientRect property; added setter, fixed getter to handle
33824             setting of ClientRect
33825           - Added MenuOrigin property
33826
33827 2005-02-26  Peter Bartok  <pbartok@novell.com>
33828
33829         * XplatUIX11.cs:
33830           - Destroys the caret if a window that's being destroyed contains it
33831           - Ignores expose events coming from the X11 queue for windows that
33832             already are destroyed
33833           - Now uses the proper variable for handling DestroyNotify, before we
33834             marked the wrong window as destroyed
33835           - Improved/added some debug output
33836
33837 2005-02-26  Peter Bartok  <pbartok@novell.com>
33838
33839         * X11Keyboard.cs: Fixes to work on 64bit systems
33840
33841 2005-02-26  Peter Bartok  <pbartok@novell.com>
33842
33843         * Control.cs:
33844           - Now calling OnHandleDestroyed from DestroyHandle()
33845             instead of Dispose()
33846           - Removed bogus call to controls.Remove() from DestroyHandle()
33847
33848 2005-02-26  Peter Bartok  <pbartok@novell.com>
33849
33850         * Control.cs: Properly destroy child windows when our handle is
33851           destroyed
33852
33853 2005-02-25  Peter Bartok  <pbartok@novell.com>
33854
33855         * XplatUI.cs:
33856           - Added 'DriverDebug' define to allow tracing XplatUI API calls
33857           - Alphabetized Static Methods and Subclasses
33858
33859         * XplatUIX11.cs:
33860           - Added XException class to allow custom handling of X11 exceptions
33861           - Created custom X11 error handler, tied into XException class
33862           - Added support for MONO_XEXCEPTIONS env var to allow the user
33863             to either throw an exception on X errors or continue running
33864             after displaying the error
33865           - Added handling of DestroyNotify message
33866           - Added handler for CreateNotify message (still disabled)
33867           - Improved (tried to at least) Where method to provide file and lineno
33868         * X11Structs.cs:
33869           - Added XErrorHandler delegate
33870           - Added XRequest enumeration (to suppor translation of errors)
33871
33872 2005-02-25  Jackson Harper  <jackson@ximian.com>
33873
33874         * PropertyManager.cs: Implement editing features
33875         * CurrencyManager.cs:
33876         * Binding.cs: First attempt at UpdateIsBinding
33877         * BindingManagerBase.cs: Call UpdateIsBinding before
33878         pushing/pulling data.
33879
33880 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
33881
33882         * MenuAPI.cs: Respect disabled items
33883         * ThemeWin32Classic.cs
33884                 - Caches ImageAttributes creation for DrawImageDisabled
33885                 - Fixes vertical menu line drawing
33886                 - Draws disabled arrows in disable menu items
33887
33888 2005-02-24  Peter Bartok  <pbartok@novell.com>
33889
33890         * Hwnd.cs:
33891           - Added UserData property to allow associating arbitrary objects
33892             with the handle
33893           - Fixed leak; now removing Hwnd references from static windows array
33894         * XplatUIWin32.cs:
33895           - Fixed Graphics leak in PaintEventEnd
33896           - Removed usage of HandleData, switched over to Hwnd class
33897         * HandleData.cs: Removed, obsoleted by Hwnd.cs
33898
33899 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
33900
33901         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
33902         * ScrollBar.cs: Fixes bug
33903         * TrackBar.cs: removes death code, clipping, mimize refreshes,
33904          keyboard navigation enhancements
33905
33906 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
33907
33908         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
33909         * GroupBox.cs: Add control styles
33910         * Label.cs: Add control styles
33911         * UpDownBase.cs: Add control styles
33912         * ListBox.cs: Add control styles
33913         * XplatUIWin32.cs: Fixes wrong parameter order
33914
33915
33916 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
33917
33918         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
33919
33920 2005-02-23  Jackson Harper  <jackson@ximian.com>
33921
33922         * PropertyManager.cs: Implement property binding. This doesn't
33923         seem to work yet though as (I think) there are some bugs in
33924         System.ComponentModel.PropertyDescriptor.
33925         * BindingContext.cs: Use new PropertyManager constructor.
33926
33927 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
33928
33929         * ProgressBar.cs: use clip region in ProgressBar
33930         * ThemeWin32Classic.cs: use clip region in ProgressBar
33931
33932 2004-02-22  Jackson Harper  <jackson@ximian.com>
33933
33934         * BindingsCollection.cs: Remove some debug code.
33935
33936 2005-02-22  Jackson Harper  <jackson@ximian.com>
33937
33938         * BindingContext.cs:
33939         * ControlBindingsCollection.cs:
33940         * CurrencyManager.cs:
33941         * Binding.cs:
33942         * BindingManagerBase.cs: Initial implementation
33943         * BindingsCollection.cs: Add an internal contains method that the
33944         BindingManagerBase uses to ensure bindings aren't added twice to
33945         the collection.
33946         * PropertyManager.cs: Stubbed out.
33947         * Control.cs:
33948         * ContainerControl.cs: Hook up databinding
33949         
33950 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
33951
33952         * XplatUIOSX.cs:
33953           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
33954           Fixed Invalidate/Update chain.
33955           Fixed tons of other minor bugs (this is almost a complete rewrite).
33956
33957 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
33958
33959         * ComboBox.cs: do subcontrol creation when the control is created
33960
33961 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33962
33963         * Label.cs: fixes image drawing (image and imagelist)
33964         * ThemeWin32Classic.cs: cache brushes
33965         
33966 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33967
33968         * Form.cs: Move menu drawing code to Theme class
33969         * ComboBox.cs: Move ComboBox drawing code to Theme class
33970         * MenuItem.cs: Move menu drawing code to Theme class
33971         * MenuAPI.cs: Move menu drawing code to Theme class
33972         * ThemeWin32Classic.cs: New methods
33973         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
33974         * ListBox.cs: Move Listbox drawing code to Theme class
33975         * Theme.cs: New methods
33976
33977 2005-02-20  Peter Bartok  <pbartok@novell.com>
33978
33979         * Control.cs:
33980           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
33981             only process mnemonics on those)
33982           - Fixed event sequence for key handling; first calling
33983             ProcessKeyEventArgs now
33984         * TextBoxBase.cs:
33985           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
33986             for processing non-character keys
33987           - Fixed WM_CHAR to generate proper event sequence before processing
33988         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
33989           generation
33990
33991 2005-02-19  Peter Bartok  <pbartok@novell.com>
33992
33993         * UserControl.cs: Added TextChanged event; added attributes
33994         * SizeGrip.cs: Implemented resizing and optional display of grip
33995         * Form.cs: Fixed attribute
33996         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33997           Changed meaning of ScrollWindow bool argument; instead of the
33998           clear attribute (which will be true usually anyway), it gives the
33999           option of moving child controls as well.
34000         * XplatUIX11.cs:
34001           - Changed to match new ScrollWindow argument
34002           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34003             now handles the implicit parent window a WM puts around us
34004         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34005           to work)
34006         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34007         * TreeView.cs: Adjusted to new ScrollWindow arguments
34008
34009 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34010
34011         * Form.cs: Menu integration with non-client area
34012         * MenuItem.cs: Menu integration with non-client area
34013         * MenuAPI.cs: Menu integration with non-client area
34014
34015 2005-02-18  Peter Bartok  <pbartok@novell.com>
34016
34017         * MethodInvoker.cs: Added
34018         * MdiLayout.cs: Added
34019         * SendKeys.cs: Started implementation
34020         * ErrorIconAlignment.cs: Added
34021
34022 2005-02-18  Peter Bartok  <pbartok@novell.com>
34023
34024         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34025         * Form.cs: Added handling for Menu-related Non-client messages
34026
34027 2005-02-17  Peter Bartok  <pbartok@novell.com>
34028
34029         * UpDownBase.cs: Fixed typo, compilation errors
34030         * DomainUpDown.cs: Fixed attribute value
34031
34032 2005-02-16  Miguel de Icaza  <miguel@novell.com>
34033
34034         * UpDownBase.cs: Attach entry events.
34035         Propagate events.
34036         Add ForeColor property, Focused, InterceptArrowKeys (interception
34037         does not work yet).
34038
34039 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
34040
34041         * Form.cs:
34042                 - Redraw non client are on Setmenu
34043                 - Calc proper menu starting point
34044
34045 2005-02-17  Peter Bartok  <pbartok@novell.com>
34046
34047         * Application.cs: Fixed message_filter check
34048
34049 2005-02-17  Peter Bartok  <pbartok@novell.com>
34050
34051         * Application.cs: Now calls registered message filters
34052         * DockStyle.cs: Fixed attribute
34053         * Form.cs: Fixed attribute
34054         * Menu.cs: Fixed attribute
34055         * ToolTip.cs: Fixed attribute
34056         * TreeNode.cs: Added missing attributes and arranged in regions
34057         * PropertyGrid.cs: Fixed signatures
34058         * TreeNodeCollection.cs: Added attributes
34059         * Splitter.cs: Added missing attributes; arranged into regions
34060         * TabPage.cs: Added missing attributes; arranged into regions
34061         * TextBoxBase.cs: Added missing attributes
34062         * TextBox.cs: Added missing attributes
34063         * ArrangeDirection.cs: Added missing attributes
34064         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34065         * ToolBarButton.cs: Fixed attributes
34066         * AnchorStyles.cs: Fixed attribute
34067         * TrackBar.cs: Fixed attributes
34068         * TabControl.cs: Added missing attributes and arranged into regions
34069         * ToolBar.cs: Fixed attribute
34070         * StatusBar.cs: Fixed signature, organized into regions and added
34071           attributes
34072         * StatusBarPanel.cs: Fixed attributes
34073         * ContentsResizedEventArgs.cs: Implemented
34074         * ContentsResizedEventHandler.cs: Implemented
34075         * DateBoldEventArgs.cs: Implemented
34076         * DateBoldEventHandler.cs: Implemented
34077         * UpDownEventArgs.cs: Implemented
34078         * UpDownEventHandler.cs: Implemented
34079         
34080 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
34081
34082         * Form.cs: first Menu NC refactoring
34083         * MenuAPI.cs: first Menu NC refactoring
34084         
34085 2005-02-16  Peter Bartok  <pbartok@novell.com>
34086
34087         * ImeMode.cs: Added missing attributes
34088         * Menu.cs: Fixed attribute
34089         * GroupBox.cs: Fixed attribute
34090         * Label.cs: Fixed attribute
34091         * ColorDialog.cs (RunDialog): Removed TODO attribute
34092         * ComboBox.cs: Fixed attributes
34093         * ListControl.cs: Added missing attributes
34094         * PropertyGrid.cs: Fixed attributes
34095         * Control.cs: Fixed attributes
34096         * ListViewItem.cs: Added TypeConverter attribute
34097         * NotifyIcon.cs: Fixed attributes
34098         * ListView.cs: Fixed attributes
34099         * ButtonBase.cs: Fixed attribute
34100         * ImageList.cs: Added missing attributes
34101         * ContainerControl.cs: Fixed signature
34102         * CheckedListBox.cs: Fixed attribute; added missing attributes
34103         * Panel.cs: Fixed attributes
34104         * PropertyTabChangedEventArgs.cs: Added missing attribute
34105         * PropertyValueChangedEventArgs.cs: Added missing attribute
34106         * Binding.cs: Fixed attribute
34107         * ListViewItemConverter: Implemented ListViewSubItemConverter class
34108         * ListBox.cs: Fixed attribute; added missing attributes;
34109         * ScrollableControl.cs: Added missing attributes
34110         * PictureBox.cs: Added missing attributes; implemented missing property
34111         * DateTimePicker.cs: Added missing attributes
34112         * Theme.cs (ToolWindowCaptionHeight): Fixed type
34113         * MonthCalendar.cs: Fixed attributes
34114         * StatusBarPanel.cs: Added missing attributes
34115         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34116
34117 2005-02-16  Peter Bartok  <pbartok@novell.com>
34118
34119         * TextBoxBase.cs: The previous method to enforce height yet remember
34120           the requested high was less than ideal, this is an attempt to do
34121           it better.
34122         * Control.cs: Added comment about possible problem
34123         * Copyright: Updated format
34124         * GridItemType.cs: Fixed swapped values
34125
34126 2005-02-15  Jackson Harper  <jackson@ximian.com>
34127
34128         * BaseCollection.cs: Use property so we never access an
34129         uninitialized list. Also initialize the list in the property.
34130
34131 2005-02-15  Peter Bartok  <pbartok@novell.com>
34132
34133         * GroupBox.cs (ProcessMnemonic): Implemented
34134         * Label.cs (ProcessMnemonic): Implemented
34135         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
34136           hotkeys
34137
34138 2005-02-15  Peter Bartok  <pbartok@novell.com>
34139
34140         * RadioButton.cs (ProcessMnemonic): Implemented
34141         * CheckBox.cs (ProcessMnemonic): Implemented
34142         * Control.cs:
34143           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
34144             handling
34145           - Added internal method to allow calling ProcessMnemonic from other
34146             controls
34147         * ContainerControl.cs:
34148           - Started support for handling validation chain handling
34149           - Implemented ProcessMnemonic support
34150           - Added Select() call to Active, to make sure the active control
34151             receives focus
34152         * Form.cs: Setting toplevel flag for Forms (this was lost in the
34153           FormParent rewrite)
34154         * ThemeWin32Classic.cs:
34155           - DrawCheckBox(): Fixed stringformat to show hotkeys
34156           - DrawRadioButton(): Fixed stringformat to show hotkeys
34157         * CommonDialog.cs: Removed WndProc override, not needed
34158
34159 2005-02-14  Peter Bartok  <pbartok@novell.com>
34160
34161         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
34162           missed those in the rewrite
34163
34164 2005-02-14  Miguel de Icaza  <miguel@novell.com>
34165
34166         * NumericUpDown.cs (Increment, ToString): Add.
34167         (DecimalPlaces): implement.
34168         
34169         Add attributes.
34170         
34171         * UpDownBase.cs: Add the designer attributes.
34172
34173 2005-02-13  Peter Bartok  <pbartok@novell.com>
34174
34175         * Panel.cs: Removed border_style, now in Control
34176         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
34177           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
34178
34179 2005-02-13  Peter Bartok  <pbartok@novell.com>
34180
34181         * MouseButtons.cs: Added missing attributes
34182         * XplatUIStructs.cs: Added enumeration for title styles
34183         * LeftRightAlignment.cs: Added missing attributes
34184         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
34185           it compatible with Graphics.FromHwnd()
34186         * SelectedGridItemChangedEventArgs.cs: Fixed property type
34187         * Keys.cs: Added missing attributes
34188         * SelectionRange.cs: Added missing attributes
34189         * SelectionRangeConverter.cs: Added
34190         * XplatUI.cs:
34191           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
34192             ReleaseMenuDC methods
34193           - Renamed ReleaseWindow to UngrabWindow
34194           - Added proper startup notice to allow version identification
34195         * Form.cs:
34196           - Added missing attributes
34197           - Removed FormParent concept
34198         * Label.cs: Removed border_style field, now in Control
34199         * RadioButton.cs: Now properly selects RadioButton when focus is
34200           received
34201         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
34202         * Control.cs:
34203           - Added missing attributes
34204           - Added borderstyle handling
34205           - Removed FormParent concept support
34206           - Fixed calls to XplatUI to match changed APIs
34207           - Fixed bug that would case us to use disposed Graphics objects
34208           - Removed unneeded internal methods
34209           - PerformLayout(): Fixed to handle DockStyle.Fill properly
34210           - SelectNextControl(): Fixed to properly check common parents
34211         * TextBoxBase.cs: Removed border_style field (now in Control)
34212         * MessageBox.cs:
34213           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
34214             fixed calculations for form size
34215           - Added support for localized strings and icons
34216           - Improved form size calculations, added border
34217         * ListView.cs: Removed border_style field (now in Control)
34218         * X11Structs.cs: Moved several structs from X11 driver here
34219         * X11Keyboard.cs: Changed debug message
34220         * Application.cs: Removed FormParent concept support
34221         * CommonDialog.cs:
34222           - Resetting end_modal flag
34223           - Removed FormParent concept support
34224         * NativeWindow.cs: Removed FormParent concept support
34225         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
34226           Client area and Non-Client whole window to allow support for WM_NC
34227           messages
34228         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
34229           prevent using it until it supports Hwnd as per Geoff Norton's request
34230         * ToolBar.cs: Fixed drawing, was not doing proper drawing
34231         * PictureBox.cs: Removed border_style field, now in Control
34232         * XplatUIWin32.cs: Added new driver methods
34233
34234 2005-02-12  Peter Bartok  <pbartok@novell.com>
34235
34236         * OpacityConverter.cs: Implemented
34237         * Hwnd.cs: Internal class to support drivers that need to emulate
34238           client area/non-client area window behaviour
34239
34240 2005-02-11  Peter Bartok  <pbartok@novell.com>
34241
34242         * KeysConverter.cs: Implemented
34243
34244 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
34245
34246         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
34247         * LinkLabel: Added missing attributes
34248         * MainMenu.cs: fixes ToString
34249         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
34250         * ListBox.cs: fixes event position
34251         * TrackBar.cs: adds missing attributes and events
34252         
34253 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
34254
34255         * MenuItem.cs: Use SystemInformation and bug fixes
34256         * MenuAPI.cs: Use SystemInformation and bug fixes
34257
34258 2005-02-09  Jackson Harper  <jackson@ximian.com>
34259
34260         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
34261         their keystate otherwise things like VK_MENU get stuck "on".
34262
34263 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
34264
34265         * ListBox.cs: Fixes AddRange bug
34266         
34267 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
34268
34269         * ProgressBar.cs
34270                 - Add missing attributes
34271                 - Add missing method
34272                 
34273         * CheckedListBox.cs: Added missing attributes
34274                 - Add missing attributes
34275                 - Remove extra method
34276         
34277         * ComboBox.cs: Added missing attributes
34278         * VScrollBar.cs: Added missing attributes
34279         * ScrollBar.cs:  Added missing attributes
34280         * ListBox.cs: Fixes signature, add missing consts
34281         * LinkArea.cs:   Added missing attributes
34282         
34283
34284 2005-02-08  Peter Bartok  <pbartok@novell.com>
34285
34286         * Menu.cs: Added missing attributes
34287         * MainMenu.cs: Added missing attributes
34288         * GroupBox.cs: Added missing attributes
34289         * Label.cs: Added missing attributes
34290         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
34291         * ColorDialog.cs:
34292           - Added Instance and Options properties
34293           - Added missing attributes
34294         * Cursor.cs: Made Serializable
34295         * NotifyIcon: Added missing attributes
34296         * MenuItem.cs: Added missing attributes
34297         * TextBoxBase.cs: Implemented AppendText() and Select() methods
34298         * Panel.cs: Added Missing attributes
34299         * MonthCalendar.cs: Fixed CreateParams
34300
34301 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
34302         
34303         * LinkLabel.cs:
34304                 - Fixes signature
34305                 - Fixes issues with links
34306                 - Adds the class attributes
34307
34308 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
34309         
34310         * ComboBox.cs:
34311                 - Fixes button when no items available in dropdown
34312                 - Fixes repainting problems
34313                 - Adds the class attributes
34314                 
34315 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34316
34317         * XplatUIOSX.cs: Detect the menu bar and title bar height from
34318         the current theme.  Cache these on startup.
34319
34320 2005-02-07  Jackson Harper  <jackson@ximian.com>
34321
34322         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
34323         the scrollbar buttons when they are depressed.
34324
34325 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34326
34327         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
34328         Get the display size from the main displayid.  We currently dont
34329         support multiple display configurations.
34330
34331 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34332
34333         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
34334
34335 2005-02-07  Miguel de Icaza  <miguel@novell.com>
34336
34337         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
34338
34339 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
34340
34341         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
34342
34343 2005-02-04  Jackson Harper  <jackson@ximian.com>
34344
34345         * ThemeWin32Classic.cs: Respect the clipping rect when
34346         drawing. Only fill the intersection of clips and rects so there
34347         isn't a lot of large fills.
34348         * ScrollBar.cs: Pass the correct clipping rect to the theme
34349         engine. Remove some debug code.
34350
34351 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
34352         
34353         * DateTimePicker.cs:
34354                 - Fixed crash on DateTime.Parse, use Constructor instead
34355
34356 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
34357         
34358         * MenuItem.cs:
34359         * MenuAPI.cs:
34360                 - Owner draw support (MeasureItem and DrawItem)
34361
34362 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
34363         
34364         *  Menu.cs:
34365                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
34366                 - Fixes MenuItems.Add range
34367         * MenuItem.cs:
34368                 - MergeMenu and Clone and CloneMenu functions
34369
34370 2005-02-03  Jackson Harper  <jackson@ximian.com>
34371
34372         * ScrollBar.cs: Make abstract
34373         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
34374         is abstract.
34375
34376 2005-02-03  Jackson Harper  <jackson@ximian.com>
34377
34378         * ScrollBar.cs: First part of my scrollbar fixups. This removes
34379         all the unneeded refreshes and uses invalidates with properly
34380         computed rects.
34381
34382 2005-02-03  Peter Bartok  <pbartok@novell.com>
34383
34384         * ComponentModel.cs: Added
34385         * IDataGridEditingService.cs: Added
34386         * Timer.cs: Added missing attributes
34387         * ToolTip.cs: Added missing attributes
34388
34389 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
34390
34391         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
34392
34393 2005-02-03  Peter Bartok  <pbartok@novell.com>
34394
34395         * ListBox.cs: Added missing attributes
34396
34397 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
34398         
34399         * ListBox.cs:
34400                 - Fixes font height after font change
34401                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
34402                 
34403 2005-02-02  Peter Bartok  <pbartok@novell.com>
34404
34405         * HandleData.cs: Introduced static methods to allow class
34406           to be more self-contained and track it's own HandleData objects
34407         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
34408           HandleData to use new static methods
34409
34410 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
34411
34412         * Combobox.cs:
34413                 - Fixes default size and PreferredHeight
34414                 - Missing events
34415                 - ObjectCollection.Insert implementation
34416                 
34417         * ListControl.cs
34418                 - Fixes signature
34419         * ListBox.cs:
34420                 - Several fixes
34421                 - ObjectCollection.Insert implementation
34422                 - No selection after clean
34423                 - Small fixes
34424
34425 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
34426
34427         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
34428
34429 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
34430
34431         * Combobox.cs:
34432                 - Caches ItemHeight calculation for OwnerDrawVariable
34433                 - Handles dropdown properly
34434                 - Fixes several minor bugs
34435
34436 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
34437
34438         * ListBox.cs:
34439                 - Fixes 71946 and 71950
34440                 - Fixes changing Multicolumn on the fly
34441                 - Fixes keyboard navigation on Multicolumn listboxes
34442
34443 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
34444         
34445         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
34446         crash reporter log.
34447
34448 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
34449
34450         * XplatUIOSX.cs: Allow applications to actually exit.
34451
34452 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
34453
34454         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
34455         their parent at creation time rather than lazily later.  Fixes a major
34456         regression we were experiencing.
34457
34458 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
34459
34460         * ThemeWin32Classic.cs: more date time picker painting fixes
34461         * DateTimePicker.cs: more monthcalendar drop down fixes
34462         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
34463
34464 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
34465
34466         * ScrollBar.cs:
34467                 - When moving the thumb going outside the control should stop the moving
34468                 - Adds the firing of missing events
34469                 - Fixes no button show if Size is not specified
34470                 - End / Home keys for keyboard navigation
34471
34472 2005-01-30  Peter Bartok  <pbartok@novell.com>
34473
34474         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
34475           sanity check to prevent theoretical loop
34476         * XplatUIWin32.cs (SetVisible): Removed debug output
34477         * XplatUIX11.cs (SystrayChange): Added sanity check
34478         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
34479         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
34480           behaviour, valid until the X11 client window rewrite is done
34481         * TextBox.cs (ctor): Setting proper default foreground and background
34482           colors
34483
34484 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
34485
34486         * Theme: Added DrawDateTimePicker to interface
34487         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
34488         * DateTimePicker.cs: Created (still needs keys and painting code)
34489         * DateTimePickerFormat.cs: added
34490         * MonthCalendar.cs: fixed CreateParams for popup window mode
34491           
34492 2005-01-29  Peter Bartok  <pbartok@novell.com>
34493
34494         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
34495           this should also the calculations for ligher/darker
34496         * Theme.cs: Fixed defaults for ScrollBar widths/heights
34497
34498 2005-01-29  Peter Bartok  <pbartok@novell.com>
34499
34500         * ArrangeDirection.cs: Added
34501         * ArrangeStartingPositon.cs: Added
34502         * SystemInformation.cs: Implemented
34503         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34504           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
34505           used by SystemInformation class
34506         * X11Strucs.cs: Added XSizeHints structure
34507         * MenuAPI.cs:
34508           - Fixed CreateParams to make sure the menu window is always visible
34509           - TrackPopupMenu: Added check to make sure we don't draw the
34510             menu offscreen
34511
34512 2005-01-29  Peter Bartok  <pbartok@novell.com>
34513
34514         * HandleData.cs: Added method for altering invalid area
34515         * TextBoxBase.cs: Implemented TextLength
34516
34517 2005-01-28  Peter Bartok  <pbartok@novell.com>
34518
34519         * XplatUIX11.cs: Improvement over last patch, not sending
34520           the WM_PAINT directly anymore, instead we scroll any pending
34521           exposed areas and let the system pick out the WM_PAINT later
34522
34523 2005-01-28  Peter Bartok  <pbartok@novell.com>
34524
34525         * SWF.csproj: Deleted, no longer used. Instead,
34526           Managed.Windows.Forms/SWF.csproj should be used
34527         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
34528           directly, to avoid a potential race condition with the next
34529           scroll
34530
34531 2005-01-28  Peter Bartok  <pbartok@novell.com>
34532
34533         * XplatUI.cs: Made class internal
34534
34535 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
34536
34537         * CheckedListBox.cs:
34538                 - Draw focus
34539                 - Fixed Drawing
34540                 - Missing methods and events
34541
34542 2005-01-27  Peter Bartok  <pbartok@novell.com>
34543
34544         * Application.cs (Run): Don't use form if we don't have one
34545
34546 2005-01-27  Peter Bartok  <pbartok@novell.com>
34547
34548         * TextBoxBase.cs (get_Lines): Fixed index off by one error
34549
34550 2005-01-27  Peter Bartok  <pbartok@novell.com>
34551
34552         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
34553         * GridItem.cs: Added; Patch by Jonathan S. Chambers
34554         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
34555         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
34556         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
34557         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
34558         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34559         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34560         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34561         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34562         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34563         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34564
34565 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
34566
34567         * Combobox.cs:
34568                 - Draw focus on Simple Combobox
34569                 - Fixes drawing issues
34570                 - fixes 71834
34571
34572 2005-01-27  Peter Bartok  <pbartok@novell.com>
34573
34574         * Form.cs:
34575           - Place window in default location, instead of hardcoded 0/0
34576           - Send initial LocationChanged event
34577         * Control.cs:
34578           - UpdateBounds after creation to find out where the WM placed us
34579           - Make sure that if the ParentForm changes location the Form
34580             is notified
34581         * XplatUIX11.cs: XGetGeometry will not return the coords relative
34582             to the root, but to whatever the WM placed around us.
34583             Translate to root coordinates before returning toplevel
34584             coordinates
34585         * XplatUIWin32.cs: Removed debug output
34586         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
34587           flag to GetWindowPos, to allow translation of coordinates on X11
34588
34589 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
34590
34591         * ListBox.cs: connect LostFocus Event
34592
34593 2005-01-27  Peter Bartok  <pbartok@novell.com>
34594
34595         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34596           XplatUIX11.cs: Extended the Systray API
34597         * Form.cs: Removed debug output
34598         * Application.cs: Fixed focus assignment, always need to call
34599           XplatUI.Activate() since Form.Activate() has rules that may
34600           prevent activation
34601         * NotifyIcon.cs: Should be complete now
34602         * ToolTip.cs: Worked around possible timer bug
34603
34604 2005-01-27  Jackson Harper  <jackson@ximian.com>
34605
34606         * TabControl.cs:
34607         - Only invalidate the effected tabs when the
34608         selected index changes. This reduces drawing and gets rid of some
34609         flicker.
34610         - Only refresh if the tabs need to be shifted, otherwise only
34611         invalidate the slider button.
34612         - On windows the tabs are not filled to right if the slider is
34613         visible.
34614         
34615 2005-01-27  Jackson Harper  <jackson@ximian.com>
34616
34617         * TabControl.cs: Only refresh on mouseup if we are showing the
34618         slider. Also only invalidate the button whose state has changed.
34619
34620 2005-01-26  Peter Bartok  <pbartok@novell.com>
34621
34622         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
34623         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
34624           and SystrayRemove() methods
34625         * XplatUIOSX.cs: Stubbed Systray methods
34626         * XplatUIX11.cs:
34627           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
34628             methods
34629           - Fixed broken XChangeProperty calls (marshalling messed up things)
34630         * X11Structs.cs: Added enums and structs required for Size hinting
34631         * NotifyIcon.cs: Added & implemented
34632
34633 2005-01-26  Jackson Harper  <jackson@ximian.com>
34634
34635         * TabControl.cs: Space vertically layed out tabs properly.
34636
34637 2005-01-26  Peter Bartok  <pbartok@novell.com>
34638
34639         * Form.cs (CreateClientParams): Always set the location to 0,0
34640           since we're a child window.
34641
34642         * Control.cs (SetVisibleCore): Always explicitly setting the location
34643           of a toplevel window, apparently X11 doesn't like to move windows
34644           while they're not mapped.
34645
34646 2005-01-26  Jackson Harper  <jackson@ximian.com>
34647
34648         * TabControl.cs: Implement FillToRight size mode with vertically
34649         rendered tabs.
34650
34651 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
34652
34653         * ControlPaint.cs, ThemeWin32Classic.cs
34654                 - Fixes DrawFocusRectangle
34655
34656 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
34657
34658         * MenuAPI.cs:
34659                 - MenuBar tracking only starts when item is first clicked
34660                 - Fixes menu hidding for multiple subitems
34661                 - Unselect item in MenuBar when item Executed
34662                 - Fixes bug 71495
34663
34664 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
34665
34666         * ListControl.cs:
34667                 - IsInputKey for ListBox
34668         * ListBox.cs:
34669                 - Focus item
34670                 - Shift and Control item selection
34671                 - Implement SelectionMode.MultiExtended
34672                 - Fixes RightToLeft
34673         * ComboBox.cs:
34674                 - IsInputKey implemented
34675                 - Do not generate OnTextChangedEdit on internal txt changes
34676                 
34677 2005-01-23  Peter Bartok  <pbartok@novell.com>
34678
34679         * AccessibleObject.cs: Partially implemented Select()
34680         * MonthCalendar.cs: Added missing attributes and events
34681         * Form.cs: Fixed CreateParams behaviour, now controls derived from
34682           form can properly override CreateParams.
34683         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34684           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
34685           Control performs Invalidate & Update
34686         * NativeWindow (CreateHandle): Added special handling for Form
34687           and Form.FormParent classes to allow overriding of From.CreateParams
34688         * Control.cs:
34689           - ControlNativeWindow: Renamed 'control' variable to more intuitive
34690             name 'owner'
34691           - ControlNativeWindow: Added Owner property
34692           - Removed usage of Refresh() on property changes, changed into
34693             Invalidate(), we need to wait until the queue is processed for
34694             updates, direct calls might cause problems if not all vars for
34695             Paint are initialized
34696           - Added call to UpdateStyles() when creating the window, to set any
34697             styles that CreateWindow might have ignored.
34698           - Added support for Form CreateParent overrides to UpdateStyles()
34699         * MessageBox.cs: Removed no longer needed FormParent override stuff,
34700           CreateParams are now properly overridable
34701         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
34702           CreateParams are now properly overridable
34703
34704 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
34705
34706         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
34707         OnTextBoxChanged.
34708
34709         Capture LostFocus and OnTextBoxChanged.  The later introduces a
34710         recursive invocation that I have not figured out yet.
34711
34712         Reset the timer when not using (it was accumulating).
34713
34714
34715         (OnTextBoxChanged): Set UserEdit to true here to track whether the
34716         user has made changes that require validation.
34717
34718         Reset changing to avoid loops.
34719
34720 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
34721
34722         * NumericUpDown.cs: Display value at startup.
34723
34724         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
34725         ValidateEditText.
34726
34727         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
34728         filled in.  Added some basic parsing of text.
34729
34730         Still missing the OnXXX method overrides, and figuring out the
34731         events that must be emitted.
34732
34733         * UpDownBase.cs: Handle UserEdit on the Text property.
34734         
34735 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
34736
34737         * ComboBox.cs:
34738           - Fixes IntegralHeight
34739           - ToString method
34740
34741 2005-01-21  Jackson Harper  <jackson@ximian.com>
34742
34743         * TabControl.cs: Set the SelectedIndex property when SelectedTab
34744         is set so that the page visibility is updated and the tabs are
34745         sized correctly.
34746
34747 2005-01-21  Jackson Harper  <jackson@ximian.com>
34748
34749         * TabControl.cs: Use cliping rectangle for blitting. Give the
34750         theme the clipping rect so we can do clipping while
34751         drawing. Remove some debug code.
34752
34753 2005-01-21  Jackson Harper  <jackson@ximian.com>
34754
34755         * TabPage.cs: Add a new method so tab pages can force the tab
34756         control to recalculate the tab page sizes.
34757         * TabControl.cs: UpdateOwner needs to make the tab control recalc
34758         sizes.
34759
34760 2005-01-20  Jackson Harper  <jackson@ximian.com>
34761
34762         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
34763
34764 2005-01-20  Jackson Harper  <jackson@ximian.com>
34765
34766         * TreeView.cs: Set the bounds for nodes properly. They were
34767         getting screwed up when checkboxes were not enabled, but images
34768         were.
34769
34770 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
34771
34772         * ListBox.cs:
34773                 - Owner draw support
34774                 - Fixes
34775                 
34776 2005-01-20  Jackson Harper  <jackson@ximian.com>
34777
34778         * XplatUIStructs.cs: More misc keys
34779         * X11Keyboard.cs: Ignore some control keys.
34780
34781 2005-01-20  Jackson Harper  <jackson@ximian.com>
34782
34783         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
34784         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
34785
34786 2005-01-19  Peter Bartok  <pbartok@novell.com>
34787
34788         * Control.cs: Un-selecting the control when it is loosing focus
34789
34790 2005-01-19  Jackson Harper  <jackson@ximian.com>
34791
34792         * TreeView.cs: Hook up to the text controls leave event so we can
34793         end editing when the users clicks outside the text box.
34794         
34795 2005-01-19  Jackson Harper  <jackson@ximian.com>
34796
34797         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
34798         get set in the conversion array.
34799
34800 2005-01-19  Peter Bartok  <pbartok@novell.com>
34801
34802         * Application.cs (ModalRun): Added a call to CreateControl to ensure
34803           focus is properly set
34804         * Button.cs:
34805           - Added missing attributes
34806           - removed styles, those are already set in the base class
34807         * ButtonBase.cs:
34808           - Added missing attributes
34809           - Added clip window styles
34810         * CheckBox.cs: Added missing attributes
34811         * CommonDialog.cs:
34812           - FormParentWindow.CreateParams: Added required clip styles
34813         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
34814           also filters modifier keys
34815         * MessageBox.cs:
34816           - Added assignment of Accept and Cancel button to enable Enter
34817             and Esc keys in MessageBox dialogs
34818           - FormParentWindow.CreateParams: Added required clip styles
34819         * RadioButton.cs: Added missing attributes
34820         * TextControl.cs: No longer draws selection if control does not
34821           have focus
34822         * TextBoxBase.cs:
34823           - Now draws simple rectangle around test area to make it obvious
34824             there's a control. This is a hack until we properly support borders
34825           - A few simple fixes to support selections better, now erases selected
34826             text when typing, and resets selection when using movement keys
34827
34828 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
34829
34830         * UpDownBase.cs: Added some new properties.
34831
34832         * DomainUpDown.cs: Implement a lot to get my test working.
34833
34834 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34835
34836         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
34837
34838 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34839
34840         * OSXStructs (WindowAttributes): Fixed csc complaints
34841
34842 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34843
34844         * XplayUIOSX.cs:
34845           OSXStructs.cs: Initial refactor to move enums and consts into
34846           OSXStructs and use them in the driver for greater readability.
34847
34848 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34849
34850         * XplatUIOSX.cs: Initial support for Standard Cursors.
34851         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
34852
34853 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
34854
34855         * ComboBox.cs: ability to change style when the ctrl is already
34856         created, missing methods and events, bug fixes, signature fixes
34857
34858 2005-01-19  Peter Bartok  <pbartok@novell.com>
34859
34860         * Cursors.cs (ctor): Added ctor to fix signature
34861
34862 2005-01-18  Peter Bartok  <pbartok@novell.com>
34863
34864         * Button.cs: Implemented DoubleClick event
34865         * ButtonBase.cs:
34866           - Fixed keyboard handling to behave like MS, where the press of
34867             Spacebar is equivalent to a mousedown, and the key release is
34868             equivalent to mouseup. Now a spacebar push will give the same
34869             visual feedback like a mouse click.
34870           - Added missing attributes
34871           - Added ImeModeChanged event
34872           - Added support for generating DoubleClick event for derived classes
34873         * CheckBox.cs:
34874           - Implemented DoubleClick event
34875           - Added missing attributes
34876         * CommonDialog.cs: Added missing attribute
34877         * ContextMenu.cs: Added missing attributes
34878         * RadioButton.cs:
34879           - AutoChecked buttons do not allow to be unselected when clicked
34880             (otherwise we might end up with no selected buttons in a group)
34881           - Added missing attributes
34882           - Implemented DoubleClickEvent
34883         * ThreadExceptionDialog.cs: Enabled TextBox code
34884
34885 2005-01-18  Peter Bartok  <pbartok@novell.com>
34886
34887         * Form.cs: Removed debug output
34888         * Button.cs: Added support for DoubleClick method
34889
34890 2005-01-18  Peter Bartok  <pbartok@novell.com>
34891
34892         * Form.cs:
34893           - Added method to parent window that allows triggering size
34894             calculations when a menu is added/removed
34895           - set_Menu: Cleaned up mess from early days of Form and Control,
34896             now properly triggers a recalc when a menu is added/removed
34897           - Added case to select form itself as focused form if no child
34898             controls exist
34899           - Added PerformLayout call when showing dialog, to ensure properly
34900             placed controls
34901         * Control.cs:
34902           - Select(): Made internal so Form can access it
34903           - Focus(): Only call Xplat layer if required (avoids loop), and sets
34904             status
34905         * Application.cs (Run): Removed hack and calls PerformLayout instead
34906           to trigger calculation when Form becomes visible
34907
34908 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
34909
34910         * ComboBox.cs: fixes for ownerdraw
34911
34912 2005-01-18  Peter Bartok  <pbartok@novell.com>
34913
34914         * TextControl.cs:
34915           - Sentinel is no longer static, each Document gets it's own, this
34916             avoids locking or alternatively overwrite problems when more
34917             than one text control is used simultaneously.
34918           - Switched to use Hilight and HilightText brushes for text selection
34919
34920         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
34921
34922 2005-01-18  Peter Bartok  <pbartok@novell.com>
34923
34924         * Control.cs:
34925           - Hooked up the following events:
34926                 o ControlAdded
34927                 o ControlRemoved
34928                 o HandleDestroyed
34929                 o ImeModeChanged
34930                 o ParentChanged
34931                 o TabStopChanged
34932                 o Invalidated
34933                 o SystemColorsChanged
34934                 o ParentFontChanged
34935                 o Move
34936           - Removed debug output
34937           - Added a call to the current theme's ResetDefaults when a color change
34938             is detected
34939         * Form.cs: Now setting the proper ImeMode
34940         * Theme.cs: Defined a method to force recreation of cached resources
34941           and rereading of system defaults (ResetDefaults())
34942         * ThemeWin32Classic.cs: Added ResetDefaults() stub
34943
34944 2005-01-17  Peter Bartok  <pbartok@novell.com>
34945
34946         * Control.cs: Added missing attributes
34947
34948 2005-01-17  Jackson Harper  <jackson@ximian.com>
34949
34950         * TreeNode.cs: Implement editing. Add missing properties selected
34951         and visible.
34952         * TreeView.cs: Implement node editing. Also some fixes to use
34953         Invalidate (invalid area) instead of Refresh when selecting.
34954
34955 2005-01-17  Peter Bartok  <pbartok@novell.com>
34956
34957         * Control.cs:
34958           - Implemented InvokeGotFocus() method
34959           - Implemented InvokeLostFocus() method
34960           - Implemented InvokePaint() method
34961           - Implemented InvokePaintBackground() method
34962           - Implemented InvokeClick() method
34963           - Implemented FindForm() method
34964           - Implemented RectangleToClient() method
34965           - Implemented ClientToRectangle() method
34966           - Implemented ResetBackColor() method
34967           - Implemented ResetCursor() method
34968           - Implemented ResetFont() method
34969           - Implemented ResteForeColor() method
34970           - Implemented ResetImeMode() method
34971           - Implemented ResetLeftToRight() method
34972           - Implemented ResetText() method
34973           - Implemented Scale() methods
34974           - Implemented ScaleCore() method
34975           - Implemented Update() method
34976           - Removed unused variables
34977           - Stubbed AccessibilityNotifyClients and
34978             ControlAccessibleObject.NotifyClients() methods (dunno what to do
34979             with those yet)
34980           - Now setting proper default for RightToLeft property
34981           - Fixed bug in SetClientSizeCore that would cause windows to get
34982             really big
34983           - Now sending Click/DoubleClick events
34984           - Now selecting controls when left mouse button is clicked on
34985             selectable control
34986         * AccessibleEvents.cs: Added
34987         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
34988         * XplatUIOSX.cs: Stubbed UpdateWindow() method
34989         * XplatUIWin32.cs: Implemented UpdateWindow() method
34990         * XplatUIX11.cs: Implemented UpdateWindow() method
34991         * Form.cs: Removed stray semicolon causing CS0162 warning
34992         * ThemeWin32Classic.cs: Fixed unused variable warnings
34993         * ScrollableControl.cs: Now calls base method for ScaleCore
34994         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
34995           style to avoid interference with internal click handler (which is
34996           different than standard Control click handling)
34997         * RadioButton.cs:
34998           - Now unchecks all sibling radio buttons when control is
34999             selected (Fixes #68756)
35000           - Removed internal tabstop variable, using the one inherited from
35001             Control
35002
35003 2005-01-17  Jackson Harper  <jackson@ximian.com>
35004
35005         * NavigateEventArgs.cs: Fix base type.
35006         * LinkLabel.cs: Sig fix
35007         
35008 2005-01-17  Jackson Harper  <jackson@ximian.com>
35009
35010         * TreeView.cs: Only invalidate the effected nodes bounds when
35011         selecting nodes.
35012
35013 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35014
35015         * XplatUIWin32.cs: fixes Win32 marshaling
35016         * XplatUIX11.cs: fixes method signature
35017
35018 2005-01-17  Peter Bartok  <pbartok@novell.com>
35019
35020         * XplatUIX11.cs: Clean up resources when we no longer need them
35021
35022 2005-01-17  Peter Bartok  <pbartok@novell.com>
35023
35024         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35025           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35026           and DestroyCursor() methods.
35027         * Cursor.cs: Partially implemented, now supports standard cursors;
35028           still contains some debug code
35029         * Cursors.cs: Implemented class
35030         * Control.cs:
35031           - WndProc(): Added handling of WM_SETCURSOR message, setting the
35032             appropriate cursor
35033           - Implemented Cursor property
35034           - Replaced break; with return; more straightforwar and possibly
35035             faster
35036           - Now properly setting the result for WM_HELP
35037         * X11Structs.cs: Added CursorFontShape enum
35038         * XplatUIStructs.cs:
35039           - Added StdCursor enum (to support DefineStdCursor() method)
35040           - Added HitTest enum (to support sending WM_SETCURSOR message)
35041         * XplatUIX11.cs:
35042           - Now sends the WM_SETCURSOR message
35043           - Implemented new cursor methods
35044         * XplatUIOSX.cs: Stubbed new cursor methods
35045         * XplatUIWin32.cs:
35046           - Implemented new cursor methods
35047           - Added GetSystemMetrics function and associated enumeration
35048
35049 2005-01-15  Peter Bartok  <pbartok@novell.com>
35050
35051         * Control.cs:
35052           - WndProc(): Now handles EnableNotifyMessage
35053           - SelectNextControl(): Fixed bug where if no child or sibling
35054             controls exist we looped endlessly
35055
35056 2005-01-14  Jackson Harper  <jackson@ximian.com>
35057
35058         * TreeView.cs: Recalculate the tab pages when a new one is added
35059         so that the proper bounding rects are created.
35060
35061 2005-01-14  Jackson Harper  <jackson@ximian.com>
35062
35063         * TreeView.cs: Draw a gray box instead of a grip in the lower
35064         right hand corner when there are both horizontal and vertical
35065         scroll bars.
35066
35067 2005-01-14  Jackson Harper  <jackson@ximian.com>
35068
35069         * Control.cs: When erasing backgrounds use FromHwnd instead of
35070         FromHdc when there is a NULL wparam. This occurs on the X driver.
35071         * XplatUIX11.cs: Set the wparam to NULL.
35072
35073 2005-01-13  Jackson Harper  <jackson@ximian.com>
35074
35075         * PictureBox.cs: Implement missing methods (except ToString, need
35076         to test that on windows) and events. When visibility is changed we
35077         need to redraw the image because the buffers are killed. When size
35078         is changed refresh if the sizemode needs it.
35079
35080 2005-01-13  Peter Bartok  <pbartok@novell.com>
35081
35082         * Control.cs (SelectNextControl): Was using wrong method to select
35083           a control
35084
35085 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35086
35087         * ComboBox.cs: fixes dropstyle
35088
35089 2005-01-13  Peter Bartok  <pbartok@novell.com>
35090
35091         * Form.cs:
35092           - Implemented Select() override
35093           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35094           - Now sets keyboard focus on startup
35095         * Control.cs (SelectNextControl): Now properly handles directed=true
35096         * TextBoxBase.cs:
35097           - WndProc: Now passes tab key on to base if AcceptTabChar=false
35098           - Added (really bad) focus rectangle (mostly for testing)
35099         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35100           to enforce redraw on focus changes
35101         * ContainerControl.cs:
35102           - Fixed detection of Shift-Tab key presses
35103           - Fixed traversal with arrow keys
35104         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35105           gonna keep this or if it's complete yet
35106         
35107 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35108
35109         * ComboBox.cs: missing properties, fixes
35110
35111 2005-01-13  Peter Bartok  <pbartok@novell.com>
35112
35113         * Panel.cs (ctor): Setting Selectable window style to off
35114         * Splitter.cs (ctor): Setting Selectable window style to off
35115         * GroupBox.cs (ctor): Setting Selectable window style to off
35116         * Label.cs (ctor): Setting Selectable window style to off
35117
35118 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
35119
35120         * UpDownBase.cs (InitTimer): If the timer has been already
35121         created, enable it.
35122
35123         Use a TextBox instead of a Label.
35124
35125 2005-01-12  Jackson Harper  <jackson@ximian.com>
35126
35127         * TreeView.cs: Refresh the tree after sorting the nodes. Always
35128         draw the connecting node lines (when ShowLines is true).
35129         * TreeNode.cs: The nodes index can now be updated. This is used
35130         when a node collection is sorted.
35131         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
35132         insert or an existing unsorted node collection can be sorted.
35133         
35134 2005-01-12  Peter Bartok  <pbartok@novell.com>
35135
35136         * ContainerControl.cs: Implemented ProcessDialogKeys()
35137
35138 2005-01-12  Peter Bartok  <pbartok@novell.com>
35139
35140         * Control.cs:
35141           - Implemented SelectNextControl() method
35142           - Several focus related bug fixes
35143           - Fixed Docking calculations to match MS documentation and
35144             behaviour
35145
35146 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
35147
35148         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
35149         bug fixes
35150
35151 2005-01-12  Peter Bartok  <pbartok@novell.com>
35152
35153         * Control.cs:
35154           - Fixed broken Contains() method
35155           - Implemented GetNextControl() method. Finally. This is the pre-
35156             requisite for focus handling.
35157
35158 2005-01-12  Peter Bartok  <pbartok@novell.com>
35159
35160         * OSXStrucs.cs: Added
35161
35162 2005-01-12  Peter Bartok  <pbartok@novell.com>
35163
35164         * XplatUIWin32.cs:
35165           - Removed PeekMessageFlags
35166           - Implemented SetWindowStyle() method
35167         * XplatUIStructs.cs: Added PeekMessageFlags
35168         * X11Structs: Added missing border_width field to XWindowChanges struct
35169         * XplatUIX11.cs:
35170           - PeekMessage: Now throws exception if flags which are not yet
35171             supported are passed
35172           - Implemented SetWindowStyle() method
35173           - Fixed SetZOrder to handle AfterHwnd properly
35174         * XplatUI.cs: Added SetWindowStyle() method
35175         * XplatUIDriver.cs: Added SetWindowStyle() abstract
35176         * Control.cs:
35177           - Implemented UpdateStyles() method
35178           - Implemented UpdateZOrder() method
35179         * XplatUIOSX.cs: Added SetWindowStyle() stub
35180
35181 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
35182
35183         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
35184         button mouse).
35185
35186
35187 2005-01-11  Jackson Harper  <jackson@ximian.com>
35188
35189         * TreeView.cs: Still need to draw lines to siblings even if out of
35190         the current node is out of the clip.
35191
35192 2005-01-11  Jackson Harper  <jackson@ximian.com>
35193
35194         * TreeView.cs: When setting the hbar/vbar/grip position use
35195         SetBounds so that perform layout is only called once. Also suspend
35196         and resume layout so layout is only done once for all controls.
35197         - Removed some debug fluff
35198         * SizeGrip.cs: Call base implmentation in overriding methods.
35199         - When visibility is changed the drawing buffers are killed so we
35200         need to redraw.
35201
35202 2005-01-11  Jackson Harper  <jackson@ximian.com>
35203
35204         * TreeView.cs: Calculate the open node count while drawing. This
35205         saves us an entire tree traversal for every paint operation. Use
35206         a member var for the open node count so less vars are passed around.
35207
35208 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
35209
35210         * MonthCalendar.cs:
35211         - fixed selection to use mousemove, not mouse polling on timer
35212         * ThemeWin32Classic.cs
35213         - removed redundant unused variable "no_more_content"
35214         
35215 2005-01-11  Peter Bartok  <pbartok@novell.com>
35216
35217         * XplatUIX11.cs (DoEvents): Needs to return when no more events
35218           are pending, so it now calls PeekMessage instead of GetMessage;
35219           implemented a incomplete version of PeekMessage
35220         
35221 2005-01-11  Peter Bartok  <pbartok@novell.com>
35222
35223         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
35224           I18n issues
35225         * TextBoxBase.cs: Added sending of TextChanged event
35226
35227 2005-01-10  Jackson Harper  <jackson@ximian.com>
35228
35229         * TreeView.cs: Try not to draw outside the clipping rectangle on
35230         each node element.
35231
35232 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
35233
35234         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
35235
35236 2005-01-10  Jackson Harper  <jackson@ximian.com>
35237
35238         * TreeView.cs:
35239         - Implement fast scrolling. Now only the newly
35240         exposed nodes are drawn and the old image is moved using the
35241         XplatUI::ScrollWindow method.
35242         - Factor in height of nodes when calculating whether or not the
35243         node is in the clipping rect.
35244
35245 2005-01-10  Jackson Harper  <jackson@ximian.com>
35246
35247         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
35248
35249 2005-01-10  Peter Bartok  <pbartok@novell.com>
35250
35251         * Application.cs: Added temporary hack to resolve all our resize
35252           required issues on startup. This will get fixed properly at
35253           some point in the future
35254
35255 2005-01-10  Jackson Harper  <jackson@ximian.com>
35256
35257         * SizeGrip.cs: New internal class that is used as a sizing
35258         grip control...hence the name.
35259
35260 2005-01-10  Peter Bartok  <pbartok@novell.com>
35261
35262         * Control.cs: Implemented proper TabIndex handling, now assigning
35263           a tabindex when a control is added to a container
35264         * GroupBox.cs (ctor): Now sets the Container style bit, required
35265           for Control.GetNextControl()
35266
35267 2005-01-09  Jackson Harper  <jackson@ximian.com>
35268
35269         * TextBoxBase.cs: Clear window when scrolling (fixes build).
35270
35271 2005-01-09  Peter Bartok <pbartok@novell.com>
35272
35273         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35274           XplatUIX11.cs: Added ability to control ScrollWindow expose and
35275           an overload for ScrollWindow to allow only scrolling a rectangle
35276
35277 2005-01-09  Peter Bartok <pbartok@novell.com>
35278
35279         * Form.cs:
35280           - Implemented SetDesktopBounds method
35281           - Implemented SetDesktopLocation method
35282
35283 2005-01-08  Jackson Harper  <jackson@ximian.com>
35284
35285         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
35286         the node count has changed, this removes to VScroll::Refresh calls
35287         when drawing.
35288
35289 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
35290
35291         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
35292
35293 2005-01-07  Jackson Harper  <jackson@ximian.com>
35294
35295         * TreeNode.cs: Just update the single node when it is
35296         checked. Don't refresh after toggling, the Expand/Collapse already
35297         handles this.
35298         * TreeView.cs: Respect clipping a little more when drawing. Try
35299         not to redraw things that don't need to be redrawn. Just hide the
35300         scrollbars when they are no longer needed instead of removing
35301         them, so they don't have to be created again and again.
35302         
35303 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
35304
35305         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
35306         coordinates to window space to place the caret properly, FIXED.
35307         Implement GetWindowState & SetWindowState
35308
35309 2005-01-06  Peter Bartok <pbartok@novell.com>
35310
35311         * Form.cs:
35312           - Implemented ClientSize property
35313           - Implemented DesktopBounds property
35314           - Implemented DesktopLocation property
35315           - Implemented IsRestrictedWindow property
35316           - Implemented Size property
35317           - Implemented TopLevel property
35318           - Implemented FormWindowState property
35319         * Control.cs:
35320           - Implemented GetTopLevel() method
35321           - Implemented SetTopLevel() method
35322         * X11Structs.cs (Atom):
35323           - Added AnyPropertyType definition
35324           - Added MapState definiton and updated XWindowAttribute struct
35325         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
35326         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
35327         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
35328         * XplatUIWin32.cs:
35329           - Implemented GetWindowState() and SetWindowState() methods
35330           - Fixed Win32GetWindowLong return type
35331         * XplatUIX11.cs:
35332           - Introduced central function for sending NET_WM messages
35333           - Implemented GetWindowState() and SetWindowState() methods
35334         * TextBoxBase.cs (set_Lines):
35335           - Now uses Foreground color for text added via Text property (Duh!)
35336           - Added code to remember programmatically requested size (fixes
35337             behaviour when Multiline is set after Size)
35338           - Added AutoSize logic
35339
35340 2005-01-06  Jackson Harper  <jackson@ximian.com>
35341
35342         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
35343
35344 2005-01-06  Jackson Harper  <jackson@ximian.com>
35345
35346         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
35347         set to less then 0.
35348
35349 2005-01-06  Jackson Harper  <jackson@ximian.com>
35350
35351         * ScrollableControl.cs: Lazy init the scrollbars.
35352         
35353 2005-01-06  Jackson Harper  <jackson@ximian.com>
35354
35355         * Theme.cs: Speed up getting pens and solid brushes, by using
35356         their ARGB as a hash instead of tostring and not calling Contains.
35357
35358 2005-01-06  Peter Bartok <pbartok@novell.com>
35359
35360         * Form.cs:
35361           - Implemented OnActivated and OnDeactivate event trigger
35362           - Implemented Activate() method
35363           - Fixed ShowDialog() to activate the form that was active before
35364             the dialog was shown
35365         * XplatUIX11.cs:
35366           - Added global active_window var that tracks the currently active
35367             X11 window
35368           - Now always grabs Property changes from the root window to always
35369             catch changes on the active window property
35370           - Added code to PropertyNotify handler to send Active/Inactive
35371             messages when state changes. This puts X11 and Win32 en par on
35372             WM_ACTIVATE notifications (except for double notifications when
35373             the user clicks away from our modal window to another one of our
35374             windows)
35375
35376 2005-01-05  Jackson Harper  <jackson@ximian.com>
35377
35378         * ImageList.cs: Implment ctor
35379
35380 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35381
35382         * XplatUIOSX.cs: Implement Activate/SetTopmost
35383
35384 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35385
35386         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
35387
35388 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35389
35390         * XplatUIOSX.cs: Implement GetActive/SetFocus.
35391
35392 2005-01-05  Peter Bartok <pbartok@novell.com>
35393
35394         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
35395           XplatUIOSX.cs: Added GetActive method to return the currently
35396           active window for the application (or null, if none is active)
35397         * Form.cs:
35398           - Implemented ActiveForm
35399           - Commented out owner assignment for modal dialogs (causes problems
35400             on Win32, since the owner will be disabled)
35401           - Reworked some Active/Focus handling (still incomplete)
35402         * CommonDialog.cs: Commented out owner assignment for modal dialogs
35403           (causes problems on Win32, since the owner will be disabled)
35404         * IWin32Window: Added ComVisible attribute
35405
35406 2005-01-05  Peter Bartok <pbartok@novell.com>
35407
35408         * ToolTip.cs (WndProc): Enable setting focus now that we have the
35409           required XplatUI functions.
35410
35411 2005-01-05  Peter Bartok <pbartok@novell.com>
35412
35413         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
35414           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
35415           to implement focus and activation handling; still incomplete and
35416           with debug output
35417
35418 2005-01-04  Peter Bartok <pbartok@novell.com>
35419
35420         * TextBoxBase.cs: Changed access level for Document property to
35421           match switch to internal for TextControl
35422
35423 2005-01-04  Peter Bartok <pbartok@novell.com>
35424
35425         * AccessibleObject: Added ComVisible attribute
35426
35427 2005-01-04  Jackson Harper  <jackson@ximian.com>
35428
35429         * X11Keyboard.cs: Remove unneeded var.
35430
35431 2005-01-04  Jackson Harper  <jackson@ximian.com>
35432
35433         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
35434         but PAINT.
35435         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
35436         ClientMessage. This makes apps exit cleanly (more often).
35437         
35438 2005-01-04  Jackson Harper  <jackson@ximian.com>
35439
35440         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
35441         handling focus, return correct colors and fonts,
35442         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
35443         handle selection, horizontal scrolling, and mouse interaction.
35444
35445 2005-01-04  Peter Bartok <pbartok@novell.com>
35446
35447         * ICommandExecutor.cs: Added
35448         * IDataGridColumnStyleEditingNotificationService.cs: Added
35449         * IFeatureSupport.cs: Added
35450         * IFileReaderService.cs: Added
35451         * IDataObject.cs: Added ComVisible attribute
35452         * AmbientProperties.cs: Added
35453         * BaseCollection.cs: Added missing attributes
35454         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
35455         * BaseCollection.cs: Added missing attributes
35456         * Binding.cs: Added TypeConverter attribute
35457         * BindingContext.cs: Added DefaultEvent attribute
35458         * BindingsCollection.cs: Added DefaultEvent attribute
35459         * Button.cs: Added DefaultValue attribute
35460         * DragEventArgs.cs: Added ComVisible attribute
35461         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
35462         * KeyEventArgs.cs: Added ComVisible attribute
35463         * KeyPressEventArgs.cs: Added ComVisible attribute
35464         * MouseEventArgs.cs: Added ComVisible attribute
35465         * NavigateEventArgs.cs: Added
35466         * NavigateEventHandler.cs: Added
35467         * FeatureSupport.cs: Added
35468         * OSFeature.cs: Added
35469         * Theme.cs: Added abstract Version property to support OSFeature
35470         * ThemeWin32Classic.cs: Added Version property to
35471           support OSFeature.Themes
35472         * ProgressBar.cs: Removed OnPaintBackground override, not required since
35473           the proper styles to avoid background drawing are set, also doesn't
35474           match MS signature
35475         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
35476         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
35477         * ScrollEventArgs.cs: Added ComVisible attribute
35478         * SplitterEventArgs.cs: Added ComVisible attribute
35479         * AccessibleSelection.cs: Added Flags attribute
35480         * Appearance.cs: Added ComVisible attribute
35481         * Border3DSide.cs: Added ComVisible attribute
35482         * Border3DStyle.cs: Added ComVisible attribute
35483         * BorderStyle.cs: Added ComVisible attribute
35484         * DragAction.cs: Added ComVisible attribute
35485         * ErrorBlinkStyle.cs: Added
35486         * ScrollEventType.cs: Added ComVisible attribute
35487         * AnchorStyles.cs: Added Editor attribute
35488         * DockStyle.cs: Added Editor attribute
35489         * HorizontalAlignment.cs: Added ComVisible attribute
35490         * HelpEventArgs.cs: Added ComVisible attribute
35491         * PaintEventArgs.cs: Added IDisposable
35492
35493 2005-01-04  Peter Bartok <pbartok@novell.com>
35494
35495         * TextControl.cs: Switched Line, LineTag and Document classes to
35496           internal
35497
35498 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
35499
35500         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
35501         Simple mode, fixes, IntegralHeight, etc.
35502
35503 2005-01-04  Peter Bartok <pbartok@novell.com>
35504
35505         * TextBoxBase.cs: Using proper font variable now
35506
35507 2005-01-04  Peter Bartok <pbartok@novell.com>
35508
35509         * Form.cs (ShowDialog): Set parent to owner, if provided
35510         * GroupBox.cs: Removed unused vars
35511         * TextControl.cs:
35512           - Added GetHashCode() for Document and LineTag classes
35513           - Removed unused variables
35514           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
35515             to allow translation between continuous char position and line/pos
35516         * CheckBox.cs: Removed vars that are provided by base class
35517         * RadioButton.cs: Removed vars that are provided by base class, added
35518           new keyword where required
35519         * LinkLabel.cs: Added new keyword where required
35520         * Control.cs (WndProc): Removed unused variable
35521         * TextBoxBase.cs:
35522           - Finished SelectionLength property
35523           - Implemented SelectionStart property
35524           - Implemented Text property
35525           - Removed unused vars
35526         * MessageBox.cs: Added new keyword where required
35527         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
35528           WndProc signature
35529         * MenuAPI.cs: Added new keyword where required
35530         * ButtonBase.cs: Removed vars that are provided by base class, added
35531           new keyword where required
35532         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
35533           argument to double, to allow compiling with csc 2.0 (Atsushi ran
35534           into this)
35535         * Application.cs (Run): Now triggers the ThreadExit event
35536         * CommonDialog.cs: Added new keyword where required; now properly sets
35537           parent (owner) for dialog
35538         * XplatUIX11.cs: Commented out unused vars
35539         * StatusBar.cs: Fixed signature for Text property
35540         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
35541
35542 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
35543
35544         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
35545         TrackBar.cs, MonthCalendar.cs: remove unused vars
35546
35547 2005-01-03  Jackson Harper  <jackson@ximian.com>
35548
35549         * ThemeWin32Classic.cs:
35550         * X11Keyboard.cs: Remove unused vars.
35551
35552 2005-01-03  Peter Bartok  <pbartok@novell.com>
35553
35554         * TextBox.cs:
35555           - set_Text: Tied into TextControl
35556           - set_TextAlignment: Tied into TextControl
35557         * TextControl.cs:
35558           - Added alignment properties and implemented alignment handling
35559             and drawing (still has a bug, not generating proper expose events)
35560           - Added new Line() constructor to allow passing the line alignment
35561           - Fixed selection setting, properly handling end<start now
35562           - Added aligment considerations to RecalculateDocument()
35563         * TextBoxBase.cs:
35564           - Now properly enforces control height for single line controls
35565           - Added support for CharacterCasing
35566           - Added IsInputKey override
35567           - Fixed Keys.Enter logic
35568           - Added SetBoundsCore override
35569           - Fixed mouse selection handling
35570
35571 2005-01-03  Jackson Harper  <jackson@ximian.com>
35572
35573         * TreeView.cs:
35574           - Collapse and uncheck all nodes when CheckBoxes is disabled.
35575           - Checkboxes are always aligned to the bottom of the node,
35576           regardless of item height.
35577           - Use the node bounds to draw the text so we can center it when
35578           the item height is greater then the font height.
35579           - Node::Bounds are only the text part of the node.
35580         * TreeNode.cs: New method to combine collapsing and unchecking all
35581           nodes recursively.
35582
35583 2005-01-02  Jackson Harper  <jackson@ximian.com>
35584
35585         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
35586         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
35587         tree when a check is changed. TODO: Only refresh the checked node.
35588
35589 2004-12-30  Jackson Harper  <jackson@ximian.com>
35590
35591         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
35592         * TreeNode.cs: When collapsing make sure to never collapse the
35593         root node.
35594
35595 2004-12-29  Jackson Harper  <jackson@ximian.com>
35596
35597         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
35598         
35599 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
35600
35601         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
35602
35603 2004-12-28  Peter Bartok  <pbartok@novell.com>
35604
35605         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
35606           not yet assigned
35607
35608 2004-12-28  Peter Bartok  <pbartok@novell.com>
35609
35610         * Control.cs (WndProc): Added WM_HELP handler, now generates
35611           HelpRequested event
35612         * Form.cs: Added HelpButton property and required support code
35613         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
35614
35615 2004-12-28  Peter Bartok  <pbartok@novell.com>
35616
35617         * CommonDialog.cs:
35618           - Made DialogForm.owner variable internal
35619           - Added check to ensure owner form is set before setting
35620             owner properties in CreateParams
35621
35622 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
35623
35624         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
35625           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
35626           GetCursorPos.  Fix major visibility issues.  Rework the windowing
35627           system to support borderless/titleless windows (implements menus).
35628           Fix GetWindowPos.  Implement initial background color support for
35629           views.
35630
35631 2004-12-28  Peter Bartok  <pbartok@novell.com>
35632
35633         * Form.cs (get_CreateParams): Make sure we have an owner before using
35634           the owner variable. Implement proper default if no owner exists
35635
35636 2004-12-28  Peter Bartok  <pbartok@novell.com>
35637
35638         * In preparation for making Managed.Windows.Forms the default build target
35639           for System.Windows.Forms, the following stubbed files were added.
35640           Dialogs are currently being implemented by contributors and are only
35641           short-term place holders.
35642         * ColorDialog.cs: Initial check-in (minmal stub)
35643         * DataGrid.cs: Initial check-in (minimal stub)
35644         * DataGridLineStyle.cs: Initial check-in (minimal stub)
35645         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
35646         * DataGridTableStyle.cs: Initial check-in (minimal stub)
35647         * FontDialog.cs: Initial check-in (minimal stub)
35648         * FileDialog.cs: Initial check-in (minimal stub)
35649         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
35650         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
35651         * OpenFileDialog: Initial check-in (minimal stub)
35652         * IComponentEditorPageSite.cs: Initial check-in
35653         * Splitter.cs: Initial check-in (for Jackson)
35654         * SplitterEventArgs.cs: Initial check-in (for Jackson)
35655         * SplitterEventHandler.cs: Initial check-in (for Jackson)
35656         * TextBox.cs: Initial check-in; still needs some wiring to
35657           TextControl backend
35658         * Form.cs: Implemented ControlBox property
35659         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
35660         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
35661         * TextControl.cs: Added selection functionality; added todo header
35662         * TextBoxBase.cs:
35663           - Implemented Lines property
35664           - Implemented TextHeight property
35665           - Implemented SelectedText property
35666           - Implemented SelectionLength property
35667           - Implemented SelectAll method
35668           - Implemented ToString method
35669           - Removed and cleaned up some debug code
35670           - Implemented (still buggy) mouse text selection
35671
35672 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
35673
35674         * ComboBox.cs: Complete DropDownList implementation, fixes.
35675
35676 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
35677
35678         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
35679         * ComboBoxStyle.cs: ComboBoxStyle enum
35680         * ComboBox.cs: Initial work on ComboBox control
35681
35682 2004-12-21  Peter Bartok  <pbartok@novell.com>
35683
35684         * Control.cs (ctor, CreateParams): Moved setting of is_visible
35685           forward so that anything that creates a window gets the default,
35686           also no longer uses Visible property in CreateParams to avoid
35687           walking up the parent chain and possibly get the wrong visible
35688           status. Fixed IsVisible to no longer walk up to the parent.
35689
35690 2004-12-21  Peter Bartok  <pbartok@novell.com>
35691
35692         * Form.cs (ShowDialog): Unset modality for the proper window
35693  
35694 2004-12-20  Peter Bartok  <pbartok@novell.com>
35695
35696         * CommonDialog.cs: Initial check-in
35697
35698 2004-12-20  Peter Bartok  <pbartok@novell.com>
35699
35700         * Control.cs (Visible): Now uses the parent window instead of the
35701           client area window for the property
35702
35703         * Form.cs
35704           - ShowDialog(): Now uses the proper window for modality
35705           - The default visibility state for the form parent is now false. This
35706             will prevent the user from seeing all the changes to the form and
35707             its controls before the application hits Application.Run()
35708           - Removed some stale commented out code
35709
35710         * NativeWindow.cs:
35711           - Added FindWindow() method to have a method to check for existence
35712             of a window handle
35713           - Added ability to override default exception handling (for example
35714             when debugging with VS.Net; to do this the ExternalExceptionHandler
35715             define must be set
35716           - Removed some useless debug output
35717
35718         * XplatUIX11.cs:
35719           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
35720             not working as expected
35721           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
35722             property to allow switching back to the modal window if focus is
35723             given to another one of our windows (Application Modal)
35724           - Now only sets override_redirect if we create a window
35725             without WS_CAPTION
35726           - Moved EventMask selection before mapping of newly created window
35727             so we can catch the map event as well
35728           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
35729           - Added various Atom related DllImports
35730           - Implemented Exit() method
35731           - .ctor() : No longer shows window if WS_VISIBLE is not defined
35732             in the CreateParams
35733
35734         * MessageBox.cs: Now properly deals with the FormParent window by
35735           providing an override the FormParent CreateParams property to
35736           set as POPUP instead of OVERLAPPED window.
35737
35738 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
35739
35740         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
35741         Minor code cleanup.
35742
35743 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
35744         
35745         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
35746
35747 2004-12-18  Peter Bartok  <pbartok@novell.com>
35748
35749         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
35750           implementing SetModal() method
35751
35752 2004-12-18  Peter Bartok  <pbartok@novell.com>
35753
35754         * X11Structs.cs (XGCValues): Fixed type of function element
35755         * XplatUI.cs: Added ScrollWindow() method
35756         * XplatUIDriver.cs: Added ScrollWindow() abstract
35757         * XplatUIWin32.cs: Implemented ScrollWindow() method
35758         * XplatUIX11.cs: Implemented ScrollWindow() method
35759         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
35760
35761 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35762
35763         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
35764         Some more keyboard support (INCOMPLETE)
35765
35766 2004-12-17  Peter Bartok  <pbartok@novell.com>
35767
35768         * TextControl.cs:
35769         - Added color attribute to line tags.
35770         - Added color argument to all functions dealing with tags
35771         - Added color argument support to various functions
35772         - Fixed miss-calculation of baseline/shift in certain circumstances
35773
35774         * TextBoxBase.cs: Added new color option to test code
35775
35776 2004-12-17  Jackson Harper  <jackson@ximian.com>
35777
35778         * TreeNode.cs:
35779         * MonthCalendar.cs: Signature fixes
35780
35781 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35782
35783         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
35784         keyboard event moved it.  Create a new graphics context for each paint resolves this
35785
35786 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35787
35788         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
35789         Make caret exist and go blink blink.  Initial keyboard support.
35790         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
35791         works.
35792
35793 2004-12-17  Jackson Harper  <jackson@ximian.com>
35794
35795         * XplatUIStructs.cs: Updated set of virtual keycodes.
35796         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
35797
35798 2004-12-17  Jackson Harper  <jackson@ximian.com>
35799
35800         * XplatUIX11.cs: Prune old keyboard code.
35801
35802 2004-12-17  Jackson Harper  <jackson@ximian.com>
35803
35804         * XplatUIX11.cs: When generating mouse wparams get the modifier
35805         keys from the ModifierKeys property.
35806
35807 2004-12-17  Jackson Harper  <jackson@ximian.com>
35808
35809         * X11Keyboard.cs: Send up/down input when generating
35810         messages. Remove some unused vars.
35811
35812 2004-12-17  Jackson Harper  <jackson@ximian.com>
35813
35814         * TabControl.cs:
35815         * TreeView.cs: get rid of warnings.
35816
35817 2004-12-17  Jackson Harper  <jackson@ximian.com>
35818
35819         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
35820
35821 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
35822
35823         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
35824           CheckedListBox.cs: Implementation
35825
35826 2004-12-17  Peter Bartok  <pbartok@novell.com>
35827
35828         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
35829
35830 2004-12-16  Peter Bartok  <pbartok@novell.com>
35831
35832         * TextControl.cs:
35833           - InsertCharAtCaret(): Fixed start pos fixup
35834           - CaretLine_get: No longer derives the line from the tag, the tag
35835             could be stale if lines in the document have been added or deleted
35836           - RebalanceAfterDelete(): Fixed bug in balancing code
35837           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
35838           - Line.Streamline(): Now can also elminate leading empty tags
35839           - DumpTree(): Added a few more tests and prevented exception on
35840             uninitialized data
35841           - Added Debug section for Combining lines
35842           - Delete(): Now copies all remaining properties of a line
35843           
35844         * TextBoxBase.cs:
35845           - Left mousebutton now sets the caret (and middle button still acts
35846             as formatting tester, which must go away soon)
35847           - Added Debug section for Deleting/Combining lines
35848           - Fixed calculations for UpdateView after Combining lines
35849
35850 2004-12-16  Peter Bartok  <pbartok@novell.com>
35851
35852         * TextControl.cs: Now properly aligns text on a baseline, using the
35853           new XplatUI.GetFontMetrics() method. Simplified several calculations
35854         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
35855           defined
35856
35857 2004-12-16  Peter Bartok  <pbartok@novell.com>
35858
35859         * XplatUI.cs: Added GetFontMetrics() method
35860         * XplatUIDriver.cs: Added GetFontMetrics() abstract
35861         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
35862           into libgdiplus, our private GetFontMetrics function
35863         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
35864         * XplatUIWin32.cs: Implemented GetFontMetrics() method
35865
35866 2004-12-16  Jackson Harper  <jackson@ximain.com>
35867
35868         * XplatUIStruct.cs: Add enum for dead keys
35869         * X11Keyboard.cs: Map and unmap dead keys.
35870
35871 2004-12-16  Jackson Harper  <jackson@ximian.com>
35872
35873         * X11Keyboard.cs: Detect and use the num lock mask.
35874
35875 2004-12-16  Peter Bartok  <pbartok@novell.com>
35876
35877         * Control.cs (CreateGraphics): Added check to make sure the
35878           handle of the window exists before calling Graphics.FromHwnd()
35879
35880 2004-12-16  Peter Bartok  <pbartok@novell.com>
35881
35882         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
35883           contains a lot of code that's not supposed to be there for the
35884           real thing, but required for developing/testing the textbox
35885           backend.
35886
35887 2004-12-16  Peter Bartok  <pbartok@novell.com>
35888
35889         * TextControl.cs:
35890         - Fixed Streamline method
35891         - Added FindTag method to Line
35892         - Added DumpTree method for debugging
35893         - Added DecrementLines() method for deleting lines
35894         - Fixed UpdateView to update the cursor to end-of-line on single-line
35895           updates
35896         - Added PositionCaret() method
35897         - Fixed MoveCaret(LineDown) to move into the last line, too
35898         - Added InsertChar overload
35899         - Fixed InsertChar tag offset calculations
35900         - Added DeleteChar() method
35901         - Added Combine() method for folding lines
35902         - Fixed Delete() method, no longer allocates wasted Line object and
35903           now copies all properties when swapping nodes
35904         - Delete() method now updates document line counter
35905
35906 2004-12-15  Jackson Harper  <jackson@ximian.com>
35907
35908         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
35909         * X11Keyboard.cs: Expose the currently selected modifier keys
35910         through a property.
35911
35912 2004-12-15  Peter Bartok  <pbartok@novell.com>
35913
35914         * TextControl.cs: Initial check-in. Still incomplete
35915
35916 2004-12-15  Jackson Harper  <jackson@ximian.com>
35917
35918         * TreeNode.cs:
35919         * TreeView.cs: Fix build on csc (second time today ;-))
35920
35921 2004-12-15  Jackson Harper  <jackson@ximian.com>
35922
35923         * TreeView.cs: Store the treenodes plus/minus box bounds when it
35924         is calculated and use this for click testing.
35925         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
35926
35927 2004-12-15  Jackson Harper  <jackson@ximian.com>
35928
35929         * TreeView.cs: Pass the nodes image index to the image list when
35930         drawing that image.
35931
35932 2004-12-15  Jackson Harper  <jackson@ximian.com>
35933
35934         * X11Keyboard.cs: Set messages hwnd.
35935         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
35936         post_message calls.
35937
35938 2004-12-15  Jackson Harper  <jackson@ximian.com>
35939
35940         * X11Keyboard.cs: Fix to compile with csc.
35941         
35942 2004-12-15  Jackson Harper  <jackson@ximian.com>
35943
35944         * X11Structs.cs: Add key mask values
35945         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
35946         * X11Keyboard.cs: New file - Extrapolates and interpolates key
35947         down/up foo into WM_CHAR foo
35948         * KeyboardLayouts.cs: Common keyboard layouts
35949         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
35950         post messages into the main queue.
35951
35952 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
35953
35954         * Button.cs: implement ProcessMnemonic
35955         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
35956           brushes everytime
35957         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
35958         * ButtonBase.cs: Show HotkeyPrefix (not the &)
35959
35960 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
35961         
35962         * MonthCalendar.cs: Implemented click-hold for next/previous month
35963           and date selection
35964           
35965 2004-12-11  Peter Bartok  <pbartok@novell.com>
35966
35967         * X11Structs.cs:
35968           - Added XKeyboardState (moved from XplatUIX11.cs)
35969           - Added XCreateGC related enums and structures
35970           - Added GXFunction for XSetFunction
35971
35972         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
35973
35974         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
35975           CaretVisible() calls
35976
35977         * ToolTip.cs: Added code to prevent stealing focus from app windows
35978
35979         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
35980           DestroyCaret, SetCaretPos and CaretVisible)
35981
35982         * XplatUIX11.cs:
35983           - Added implementation for caret functions
35984           - Moved hover variables into a struct, to make it a bit easier
35985             on the eyes and to debug
35986           - Removed XKeyboardState (moved to XplatUIX11.cs)
35987           - Moved Keyboard properties into the properties region
35988
35989         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
35990           call to get a graphics context for our control
35991
35992         * XplatUIOSX.cs: Added empty overrides for the new caret functions
35993
35994         * TreeView.cs: Fixed bug. No matter what color was set it would always
35995           return SystemColors.Window
35996
35997         * XplatUIWin32.cs: Implemented caret overrides
35998
35999 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
36000
36001         * ListBox.cs: fire events, implement missing methods and properties,
36002         sorting.
36003
36004 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
36005
36006         * MonthCalendar.cs: invalidation bug fixing
36007         * ThemeWin32Classic.cs: paint fixing
36008
36009 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
36010
36011         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36012         prepare the CGContextRef there now.
36013
36014 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
36015
36016         * MonthCalendar.cs:
36017           - optimisationL only invalidate areas that have changed
36018         * ThemeWin32Classic.cs:
36019           - only paint parts that intersect with clip_area
36020
36021 2004-12-09  Peter Bartok  <pbartok@novell.com>
36022
36023         * Application.cs: Undid changes from r37004 which cause problems
36024         on X11
36025
36026 2004-12-09  Ravindra  <rkumar@novell.com>
36027
36028         * ToolBar.cs: Added support for displaying ContextMenu
36029         attached to a button on ToolBar.
36030         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36031         property.
36032
36033 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36034
36035         * Label.cs: autosize works in text change and removes unnecessary
36036         invalidate
36037
36038 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36039
36040         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36041         remove warnings
36042
36043 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
36044
36045         * XplatUIOSX.cs: Added mouse move/click/grab support
36046         Remove some debugging WriteLines not needed anymore.
36047         Add window resizing/positioning.
36048         Fix visibility on reparenting.
36049
36050 2004-12-08  Peter Bartok  <pbartok@novell.com>
36051
36052         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36053
36054 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
36055
36056         * XplatUIOSX.cs: Initial checkin
36057         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36058
36059 2004-12-03  Ravindra <rkumar@novell.com>
36060
36061         * ListView.cs: Added some keybindings and fixed scrolling.
36062         ScrollBars listen to ValueChanged event instead of Scroll
36063         Event. This would let us take care of all changes being
36064         done in the scrollbars' values programmatically or manually.
36065         * ListView.cs (CanMultiselect): Added a check for shift key.
36066         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36067         * ListViewItem.cs (Clone): Fixed. We need to make a copy
36068         of ListViewSubItemCollection as well.
36069
36070 2004-12-06  Peter Bartok <pbartok@novell.com>
36071
36072         * Control.cs (Parent): Added check and exception to prevent
36073         circular parenting
36074
36075 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
36076
36077         * ListBox.cs: implemented clipping, selection single and multiple,
36078         bug fixing
36079
36080 2004-12-03  Ravindra <rkumar@novell.com>
36081
36082         * ListView.cs (ListView_KeyDown):
36083         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36084         when CTRL key is pressed.
36085         * ListViewItem.cs (Selected): Fixed setting the property.
36086
36087 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36088
36089         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36090
36091         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36092         MinimizeBox, ShowInTaskbar, TopMost properties.
36093
36094         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36095         will be implemented).
36096
36097 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36098
36099         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36100
36101         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36102         tests.
36103         
36104         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36105         
36106         * TreeView.cs: BackColor is Colors.Window.
36107
36108 2004-12-01  Jackson Harper  <jackson@ximian.com>
36109
36110         * TreeView.cs: When resizing the tree if the user is making it
36111         smaller we don't get expose events, so we need to handle adding
36112         the horizontal scrollbar in the size changed handler as well as
36113         the expose handler.
36114
36115 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
36116
36117         * DrawItemState.cs: fixes wrong enum values
36118
36119 2004-12-01  Jackson Harper  <jackson@ximian.com>
36120
36121         * TreeView.cs: Resize the hbar as well as the vbar on resize.
36122
36123 2004-12-01  Jackson Harper  <jackson@ximian.com>
36124
36125         * NodeLabelEditEventArgs.cs:
36126         * NodeLabelEditEventHandler.cs:
36127         * OpenTreeNodeEnumerator.cs:
36128         * TreeNode.cs:
36129         * TreeNodeCollection.cs:
36130         * TreeView.cs:
36131         * TreeViewAction.cs:
36132         * TreeViewCancelEventArgs.cs:
36133         * TreeViewCancelEventHandler.cs:
36134         * TreeViewEventArgs.cs:
36135         * TreeViewEventHandler.cs: Initial implementation.
36136
36137 2004-12-01  Ravindra <rkumar@novell.com>
36138
36139         * ListView.cs (CalculateListView): Fixed scrolling related
36140         calculations. Also, removed some debug statements from other
36141         places.
36142         * ListViewItem.cs: Changed access to 'selected' instance variable
36143         from private to internal.
36144         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
36145
36146 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
36147
36148         * ThemeWin32Classic.cs: remove cache of brush and pens for
36149         specific controls and use the global system, fixes scrollbutton
36150         bugs (for small sizes, disabled, etc)
36151         
36152         * ScrollBar.cs: does not show the thumb for very small controls
36153         (as MS) and allow smaller buttons that the regular size
36154
36155 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
36156
36157         * UpDownBase.cs: Add abstract methods for the interface.
36158         Add new virtual methods (need to be hooked up to TextEntry when it
36159         exists).
36160         Add override methods for most features.
36161         Computes the size, forces the height of the text entry.
36162
36163         * NumericUpDown.cs: Put here the current testing code.
36164
36165         * Set eol-style property on all files that do not have mixed line
36166         endings, to minimize the future problems.  There are still a few
36167         files with mixed endings, and someone should choose whether they
36168         want to move it or not.
36169
36170 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
36171
36172         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
36173         System.Colors
36174         
36175 2004-11-30  Ravindra <rkumar@novell.com>
36176
36177         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
36178         drawing and replaced use of SystemColors by theme colors.
36179         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
36180         * ListView.cs (ListViewItemCollection.Add): Throw exception when
36181         same ListViewItem is being added more than once.
36182
36183 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
36184
36185         * MonthCalendar.cs:
36186           - ControlStyles love to make the control not flicker
36187           
36188 2004-11-30  Peter Bartok  <pbartok@novell.com>
36189
36190         * CharacterCasing.cs: Added
36191
36192 2004-11-29  Peter Bartok  <pbartok@novell.com>
36193
36194         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36195           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
36196           I am removing these files as they conflict with already completed
36197           work. While it is fantastic to get contributions to MWF, I
36198           respectfully ask that everyone please coordinate their contributions
36199           through mono-winforms-list or #mono-winforms at this time. We're
36200           explicitly avoiding stubbing and don't want controls that don't have
36201           their basic functionality implemented in svn. Please also see
36202           http://www.mono-project.com/contributing/winforms.html
36203
36204
36205 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
36206
36207         * Application.cs (ModalRun): Don't hang after exit.
36208
36209         * Theme.cs: New TreeViewDefaultSize property.
36210
36211         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
36212         with less hardcoded SystemColors constant.
36213         Implemented TreeViewDefaultSize.
36214
36215         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36216         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
36217
36218
36219 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
36220
36221         * MonthCalendar.cs:
36222           - Fix NextMonthDate and PrevMonthDate click moving calendar
36223
36224 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36225
36226         * MonthCalendar.cs:
36227           - Fix usage of ScrollChange Property when scrolling months
36228
36229 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
36230
36231         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
36232          - Fixes menu destroying
36233          - Support adding and removing items on already created menus
36234
36235 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36236
36237         * MonthCalendar.cs:
36238           - Re-worked all bolded dates handling to match win32
36239         * ThemeWin32Classic.cs:
36240           - Fixed rendering with bolded dates
36241
36242 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
36243
36244         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
36245         - Horizontal scroolbar
36246         - Multicolumn
36247         - Fixes
36248
36249
36250 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
36251
36252         * MonthCalendar.cs:
36253           - Fix Usage of MaxSelectionCount from SelectionRange
36254           - Fixed Shift + Cursor Selection
36255           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
36256           - Fixed normal cursor selection to be compat with win32
36257           - Fixed Shift + Mouse Click selection
36258
36259 2004-11-24  Peter Bartok <pbartok@novell.com>
36260
36261         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
36262         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
36263         * XplatUIX11.cs:
36264           - CreatedKeyBoardMsg now updates keystate with Alt key
36265           - Added workaround for timer crash to CheckTimers, Jackson will
36266             develop a proper fix and check in later
36267           - Implemented DispatchMessage
36268           - Removed calling the native window proc from GetMessage (call
36269             now moved to DispatchMessage)
36270
36271         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
36272           the keydata (Fixes bug #69831)
36273
36274         * XplatUIWin32.cs:
36275           - (DispatchMessage): Switched to return IntPtr
36276           - Added DllImport for SetFocus
36277
36278 2004-11-24  Ravindra <rkumar@novell.com>
36279
36280         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
36281         background drawing.
36282         * ListViewItem.cs: Fixed various properties, calculations
36283         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
36284         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
36285         and some internal properties. Fixed MouseDown handler and Paint
36286         method.
36287
36288 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36289
36290         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
36291
36292 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36293
36294         * ContainerControl.cs: correct accidental check in of local changes
36295
36296 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36297
36298         * ThemeWin32Classic.cs:
36299                 - Fixed Drawing Last month in grid (sometimes not showing)
36300         * MonthCalendar.cs:
36301                 - Fixed title width calculation bug (makeing title small)
36302
36303 2004-11-23  Peter Bartok <pbartok@novell.com>
36304
36305         * XplatUIX11.cs:
36306           - Added generation of WM_MOUSEHOVER event
36307           - Added missing assignment of async_method atom
36308           - Fixed WM_ERASEBKGND; now only redraws the exposed area
36309
36310 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
36311
36312         * ThemeWin32Classic.cs:
36313                 - Fixed Drawing of today circle when showtodaycircle not set
36314                 - fixed drawing of first and last month in the grid (gay dates)
36315         * MonthCalendar.cs:
36316                 - Fixed Drawing of today circle
36317                 - Fixed drawing of grady dates
36318                 - Fixed HitTest for today link when ShowToday set to false
36319                 - Fixed DefaultSize to obey ShowToday
36320
36321 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
36322
36323         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
36324         * System.Windows.Forms/Theme.cs
36325         * MonthCalendar.cs: added for MonthCalendar
36326         * SelectionRange.cs: added for MonthCalendar
36327         * Day.cs: added for MonthCalendar: added for MonthCalendar
36328         * DateRangeEventArgs.cs: added for MonthCalendar
36329         * DateRangeEventHandler.cs: added for MonthCalendar
36330
36331 2004-11-22  Ravindra <rkumar@novell.com>
36332
36333         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
36334         property.
36335
36336 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
36337
36338         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
36339         event handler.
36340         
36341         * NumericUpDown.cs: Added new implementation.
36342         * UpDownBase.cs: Added new implementation.
36343
36344         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
36345         implementations.
36346         
36347         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
36348         implementations.
36349
36350         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
36351         methods.
36352
36353 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
36354
36355         * Timer.cs  (Dispose): Should call the base dispose when
36356         overriding.
36357
36358 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
36359
36360         * ScrollBar.cs: updates thumb position when max, min or increment
36361         is changed
36362
36363 2004-11-21  Ravindra <rkumar@novell.com>
36364
36365         * ListView.cs: Implemented item selection, activation and
36366         column header style. Fixed properties to do a redraw, if
36367         required. Added support for MouseHover, DoubleClick, KeyDown
36368         and KeyUp event handling and some minor fixes.
36369         * ListViewItem.cs: Fixed constructor.
36370         * ThemeWin32Classic.cs: Improved drawing for ListView.
36371
36372 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
36373
36374         * ThemeWin32Classic.cs: initial listbox drawing code
36375         * DrawMode.cs: new enumerator
36376         * ListControl.cs: stubbed class
36377         * ListBox.cs: initial implementation
36378         * Theme.cs: new methods definitions
36379         * SelectionMode.cs: new enumerator
36380
36381 2004-11-17  Peter Bartok  <pbartok@novell.com>
36382
36383         * XplatUIWin32.cs: Added double-click events to the class style
36384         * Control.cs (WndProc):
36385           - Added handling of click-count to MouseDown/ MouseUp events.
36386           - Added handling of middle and right mouse buttons
36387           - Removed old debug code
36388
36389 2004-11-17  Jackson Harper  <jackson@ximian.com>
36390
36391         * XplatUIX11.cs: Use the new Mono.Unix namespace.
36392
36393 2004-11-17  Ravindra <rkumar@novell.com>
36394
36395         * ListView.cs: Added event handling for MouseMove/Up/Down.
36396         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
36397         * ThemeWin32Classic.cs: We need to clear the graphics context and
36398         draw column header in a proper state.
36399
36400
36401 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
36402
36403         *  Menu.cs: fixes signature
36404
36405 2004-11-16  Peter Bartok  <pbartok@novell.com>
36406
36407         * XplatUIX11.cs (GetMessage): Implemented generation of
36408           double click mouse messages
36409
36410 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
36411
36412         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
36413         not by menu
36414
36415 2004-11-11  Peter Bartok  <pbartok@novell.com>
36416
36417         * HandleData.cs: Added Visible property
36418         * XplatUIX11.cs (IsVisible): Now uses Visible property from
36419           HandleData
36420         * XplatUIX11.cs: Removed old debug leftovers
36421         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
36422         * Control.cs (WndProc): Removed old debug leftovers,
36423           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
36424           needed WM_SIZE handling
36425
36426 2004-11-11  Jackson Harper  <jackson@ximian.com>
36427
36428         * OwnerDrawPropertyBag.cs:
36429         * TreeViewImageIndexConverter.cs: Initial implementation
36430
36431 2004-11-10  Jackson Harper  <jackson@ximian.com>
36432
36433         * ThemeWin32Classic.cs:
36434         * TabControl.cs: instead of moving tabs by the slider pos just
36435         start drawing at the tab that is offset by the slider. This way
36436         scrolling always moves by exactly one tab.
36437
36438 2004-11-10  Jackson Harper  <jackson@ximian.com>
36439
36440         * TabControl.cs: You can only scroll left when the slider has
36441         already ben moved right.
36442         
36443 2004-11-10  Jackson Harper  <jackson@ximian.com>
36444
36445         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
36446         the clip area.
36447         
36448 2004-11-10  Jackson Harper  <jackson@ximian.com>
36449
36450         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
36451         clip area.
36452         
36453 2004-11-09  Jackson Harper  <jackson@ximian.com>
36454
36455         * TabControl.cs (CalcXPos): New helper method so we can determine
36456         the proper place to start drawing vertical tabs.
36457         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
36458         
36459 2004-11-09  Jackson Harper  <jackson@ximian.com>
36460
36461         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
36462         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
36463         and Bottom, left and right are illegal values for this and
36464         multiline is enabled when the alignment is set to left or right.
36465         (DrawTab): Each alignment block should draw the text itself now
36466         because Left requires special love. Also add rendering for Left
36467         aligned tabs.
36468         
36469 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
36470
36471         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
36472         does not destroy the windows, removes debugging messages
36473
36474 2004-11-09  jba  <jba-mono@optusnet.com.au>
36475
36476         * ThemeWin32Classic.cs
36477         (DrawButtonBase): Fix verticle text rect clipping in windows
36478         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36479         rendering and incorrect text rect clipping
36480         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36481         rendering and incorrect text rect clipping
36482         
36483 2004-11-08  Jackson Harper  <jackson@ximian.com>
36484
36485         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
36486         bottom when they are bottom aligned so the bottoms of the tabs get
36487         displayed.
36488         * TabControl.cs (DropRow): Move rows up instead of down when the
36489         tab control is bottom aligned.
36490
36491 2004-11-08 13:59  pbartok
36492
36493         * XplatUIX11.cs:
36494           - Added handling for various window styles
36495           - Added handling for popup windows
36496           - Added SetTopmost handling
36497
36498 2004-11-08 13:55  pbartok
36499
36500         * XplatUIWin32.cs:
36501           - Added argument to SetTopmost method
36502           - Fixed broken ClientToScreen function
36503
36504 2004-11-08 13:53  pbartok
36505
36506         * XplatUIStructs.cs:
36507           - Added missing WS_EX styles
36508
36509 2004-11-08 13:53  pbartok
36510
36511         * XplatUI.cs, XplatUIDriver.cs:
36512           - Added argument to SetTopmost
36513
36514 2004-11-08 13:52  pbartok
36515
36516         * X11Structs.cs:
36517           - Added XSetWindowAttributes structure
36518           - Improved XWindowAttributes structure
36519           - Added SetWindowValuemask enum
36520           - Added window creation arguments enum
36521           - Added gravity enum
36522           - Added Motif hints structure
36523           - Added various Motif flags and enums
36524           - Added PropertyMode enum for property functions
36525
36526 2004-11-08 13:50  pbartok
36527
36528         * Form.cs:
36529           - Fixed arguments for updated SetTopmost method
36530
36531 2004-11-08 13:49  pbartok
36532
36533         * ToolTip.cs:
36534           - Fixed arguments for updated SetTopmost function
36535           - Fixed usage of PointToClient
36536
36537 2004-11-08 13:44  pbartok
36538
36539         * MenuAPI.cs:
36540           - Added Clipping of children and siblings
36541
36542 2004-11-08 13:41  pbartok
36543
36544         * MainMenu.cs:
36545           - Removed SetMenuBarWindow call. We do this in Form.cs
36546
36547 2004-11-08 13:40  jackson
36548
36549         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
36550           scrolling jimmi in the correct location with bottom aligned tabs
36551
36552 2004-11-08 13:36  pbartok
36553
36554         * ContainerControl.cs:
36555           - Implemented BindingContext
36556           - Implemented ParentForm
36557
36558 2004-11-08 12:46  jackson
36559
36560         * TabControl.cs: Put bottom rendered tabs in the right location
36561
36562 2004-11-08 07:15  jordi
36563
36564         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
36565           removes dead code
36566
36567 2004-11-05 17:30  jackson
36568
36569         * TabControl.cs: When selected tabs are expanded make sure they
36570           don't go beyond the edges of the tab control
36571
36572 2004-11-05 14:57  jackson
36573
36574         * TabControl.cs: Reset show_slider so if the control is resized to
36575           a size where it is no longer needed it's not displayed anymore
36576
36577 2004-11-05 13:16  jackson
36578
36579         * TabControl.cs: Make tab pages non visible when added to the
36580           control
36581
36582 2004-11-05 12:42  jackson
36583
36584         * TabControl.cs: Implement SizeMode.FillToRight
36585
36586 2004-11-05 12:16  jackson
36587
36588         * Control.cs: Do not call CreateHandle if the handle is already
36589           created
36590
36591 2004-11-05 11:46  jackson
36592
36593         * TabControl.cs: Remove superflous call to CalcTabRows
36594
36595 2004-11-05 09:07  jackson
36596
36597         * XplatUIX11.cs: Update for Mono.Posix changes
36598
36599 2004-11-05 07:00  ravindra
36600
36601         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
36602           scrolling.
36603
36604 2004-11-04 22:47  jba
36605
36606         * ThemeWin32Classic.cs:
36607           - Fix Button rendering for FlatStyle = Flat or Popup
36608           - Fix RadioButton and CheckBox rendering when Appearance = Button
36609             (normal and flatstyle).
36610           - Correct outer rectangle color when drawing focus rectangle
36611           - Adjust button bounds to be 1 px smaller when focused
36612           - Make button not draw sunken 3d border when pushed (windows compat)
36613           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
36614           - Offset the text in RadioButton and Checkbox when being rendered as
36615           a button.
36616           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
36617           radiobuttons
36618           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
36619           - Fixed disabled text rendering for normally rendered radiobuttons
36620
36621 2004-11-04 10:26  jackson
36622
36623         * TabControl.cs: Recalculate tab rows when resizing
36624
36625 2004-11-04 07:47  jordi
36626
36627         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
36628           collection completion, drawing issues, missing features
36629
36630 2004-11-04 05:03  ravindra
36631
36632         * ScrollBar.cs:
36633                 - We need to recalculate the Thumb area when
36634                 LargeChange/maximum/minimum values are changed.
36635           - We set the 'pos' in UpdatePos() method to minimum, if it's less
36636                 than minimum. This is required to handle the case if large_change is
36637                 more than max, and use LargeChange property instead of large_change
36638                 variable.
36639           - We return max+1 when large_change is more than max, like MS does.
36640
36641 2004-11-04 04:29  ravindra
36642
36643         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
36644                 - Changed default value signatures (prefixed all with ListView).
36645                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
36646                 ListView.
36647           - Fixed calculations for ListViewItem and implemented Clone()
36648           method.
36649
36650 2004-11-04 04:26  ravindra
36651
36652         * Theme.cs, ThemeWin32Classic.cs:
36653                 - Changed default ListView values signatures (prefixed all with
36654                 ListView).
36655           - Fixed default size values for VScrollBar and HScrollBar.
36656                 - Fixed DrawListViewItem method.
36657
36658 2004-11-04 04:05  ravindra
36659
36660         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
36661
36662 2004-11-04 04:04  ravindra
36663
36664         * ImageList.cs: Implemented the missing overload for Draw method.
36665
36666 2004-11-03 19:29  jackson
36667
36668         * TabControl.cs: Handle dropping rows on selection properly
36669
36670 2004-11-03 11:59  jackson
36671
36672         * TabControl.cs: remove debug code
36673
36674 2004-11-03 11:52  jackson
36675
36676         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
36677           the scrolly widgerywoo
36678
36679 2004-11-02 13:52  jackson
36680
36681         * TabControl.cs: Resize the tab pages and tabs when the tab control
36682           is resized
36683
36684 2004-11-02 13:40  jackson
36685
36686         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
36687           selected tab to the bottom
36688
36689 2004-11-02 13:39  jackson
36690
36691         * TabPage.cs: Store the tab pages row
36692
36693 2004-11-02 12:33  jordi
36694
36695         * MenuItem.cs: fixes handle creation
36696
36697 2004-11-02 11:42  jackson
36698
36699         * TabControl.cs: signature fix
36700
36701 2004-11-02 08:56  jackson
36702
36703         * TabControl.cs: Calculate whether the tab is on an edge properly.
36704           Remove top secret debugging code
36705
36706 2004-11-01 19:57  jackson
36707
36708         * TabControl.cs: Add click handling, and proper sizing
36709
36710 2004-11-01 19:47  jackson
36711
36712         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
36713           tab controls
36714
36715 2004-11-01 19:39  jackson
36716
36717         * TabPage.cs: add internal property to store the bounds of a tab
36718           page
36719
36720 2004-10-30 04:23  ravindra
36721
36722         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
36723           values.
36724
36725 2004-10-30 04:21  ravindra
36726
36727         * ListView.cs, ListViewItem.cs: Added support for scrolling and
36728           fixed calculations.
36729
36730 2004-10-30 03:06  pbartok
36731
36732         * XplatUIX11.cs:
36733           - Removed extension of DllImported libs
36734
36735 2004-10-29 09:55  jordi
36736
36737         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
36738           navigation, itemcollection completion, menu fixes
36739
36740 2004-10-27 22:58  pbartok
36741
36742         * XplatUIX11.cs:
36743           - Now throws a nice error message when no X display could be opened
36744
36745 2004-10-26 13:51  jordi
36746
36747         * ListView.cs: removes warning
36748
36749 2004-10-26 03:55  ravindra
36750
36751         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
36752           ThemeWin32Classic.cs: Some formatting for my last checkins.
36753
36754 2004-10-26 03:36  ravindra
36755
36756         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
36757           control and default values.
36758
36759 2004-10-26 03:35  ravindra
36760
36761         * Theme.cs: Added some default values for ListView control.
36762
36763 2004-10-26 03:33  ravindra
36764
36765         * ToolBar.cs: ToolBar should use the user specified button size, if
36766           there is any. Added a size_specified flag for the same.
36767
36768 2004-10-26 03:33  ravindra
36769
36770         * ColumnHeader.cs: Added some internal members and calculations for
36771           ColumnHeader.
36772
36773 2004-10-26 03:32  ravindra
36774
36775         * ListViewItem.cs: Calculations for ListViewItem.
36776
36777 2004-10-26 03:31  ravindra
36778
36779         * ListView.cs: Added some internal members and calculations for
36780           ListView.
36781
36782 2004-10-22 13:31  jordi
36783
36784         * MenuAPI.cs: speedup menus drawing
36785
36786 2004-10-22 13:16  jackson
36787
36788         * XplatUIX11.cs: Make sure to update exposed regions when adding an
36789           expose event
36790
36791 2004-10-22 11:49  jackson
36792
36793         * Control.cs: oops
36794
36795 2004-10-22 11:41  jackson
36796
36797         * Control.cs: Check to see if the window should have its background
36798           repainted by X when drawing.
36799
36800 2004-10-22 11:31  jackson
36801
36802         * XplatUIX11.cs: When invalidating areas only use XClearArea if
36803           clear is true, this way we do not get flicker from X repainting the
36804           background
36805
36806 2004-10-22 11:28  jackson
36807
36808         * XEventQueue.cs: Queue properly
36809
36810 2004-10-21 09:38  jackson
36811
36812         * XEventQueue.cs: Fix access modifier
36813
36814 2004-10-21 09:36  jackson
36815
36816         * XEventQueue.cs: Don't loose messages
36817
36818 2004-10-21 09:22  jackson
36819
36820         * XEventQueue.cs: Don't loose messages
36821
36822 2004-10-20 04:15  jordi
36823
36824         * BootMode.cs: enum need it by SystemInfo
36825
36826 2004-10-19 21:58  pbartok
36827
36828         * XplatUIWin32.cs:
36829           - Small sanity check
36830
36831 2004-10-19 21:56  pbartok
36832
36833         * Form.cs:
36834           - Added private FormParentWindow class which acts as the container
36835             for our form and as the non-client area where menus are drawn
36836           - Added/Moved required tie-ins to Jordi's menus
36837           - Fixed/Implemented the FormStartPosition functionality
36838
36839 2004-10-19 21:52  pbartok
36840
36841         * Control.cs:
36842           - Removed unneeded locals
36843           - Added code to all size and location properties to understand and
36844             deal with the parent container of Form
36845
36846 2004-10-19 21:33  pbartok
36847
36848         * Application.cs:
36849           - Fixed to deal with new Form subclasses for menus
36850
36851 2004-10-19 17:48  jackson
36852
36853         * XEventQueue.cs: commit correct version of file
36854
36855 2004-10-19 16:50  jackson
36856
36857         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
36858
36859 2004-10-19 16:15  jordi
36860
36861         * MenuAPI.cs: MenuBarCalcSize returns the height
36862
36863 2004-10-19 08:31  pbartok
36864
36865         * Control.cs:
36866           - Added missing call to PreProcessMessage before calling OnXXXKey
36867           methods
36868
36869 2004-10-19 00:04  ravindra
36870
36871         * ToolTip.cs: Fixed constructor.
36872
36873 2004-10-18 09:31  jordi
36874
36875         * MenuAPI.cs: menuitems in menubars do not have shortcuts
36876
36877 2004-10-18 09:26  jordi
36878
36879         * MenuItem.cs: fixes MenuItem class signature
36880
36881 2004-10-18 08:56  jordi
36882
36883         * MenuAPI.cs: prevents windows from showing in the taskbar
36884
36885 2004-10-18 00:28  ravindra
36886
36887         * ToolTip.cs: Suppressed a warning message.
36888
36889 2004-10-18 00:27  ravindra
36890
36891         * Control.cs: Default value of visible property must be true.
36892
36893 2004-10-17 23:19  pbartok
36894
36895         * ToolTip.cs:
36896           - Complete implementation
36897
36898 2004-10-17 23:19  pbartok
36899
36900         * XplatUIX11.cs:
36901           - Added EnableWindow method
36902           - Added SetModal stub
36903           - Added generation of WM_ACTIVATE message (still needs testing)
36904           - Added SetTopMost stub
36905           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
36906
36907 2004-10-17 23:17  pbartok
36908
36909         * XplatUIWin32.cs:
36910           - Removed VirtualKeys to XplatUIStructs
36911           - Implemented SetTopMost method
36912           - Implemented EnableWindow method
36913           - Bugfix in ScreenToClient()
36914           - Bugfixes in ClientToScreen()
36915
36916 2004-10-17 22:51  pbartok
36917
36918         * XplatUIStructs.cs:
36919           - Added WS_EX styles to WindowStyles enumeration
36920
36921 2004-10-17 22:50  pbartok
36922
36923         * XplatUI.cs, XplatUIDriver.cs:
36924           - Added method for enabling/disabling windows
36925           - Added method for setting window modality
36926           - Added method for setting topmost window
36927
36928 2004-10-17 22:49  pbartok
36929
36930         * ThemeWin32Classic.cs:
36931           - Added ToolTip drawing code
36932
36933 2004-10-17 22:49  pbartok
36934
36935         * Theme.cs:
36936           - Added ToolTip abstracts
36937
36938 2004-10-17 22:47  pbartok
36939
36940         * Form.cs:
36941           - Fixed Form.ControlCollection to handle owner relations
36942           - Added Owner/OwnedForms handling
36943           - Implemented Z-Ordering for owned forms
36944           - Removed unneeded private overload of ShowDialog
36945           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
36946             so I hope)
36947           - Fixed Close(), had wrong default
36948           - Added firing of OnLoad event
36949           - Added some commented out debug code for Ownership handling
36950
36951 2004-10-17 22:16  pbartok
36952
36953         * Control.cs:
36954           - Fixed/implemented flat list of controls
36955
36956 2004-10-17 22:14  pbartok
36957
36958         * Application.cs:
36959           - Added code to simulate modal dialogs on Win32
36960
36961 2004-10-17 16:11  jordi
36962
36963         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
36964           mouse event
36965
36966 2004-10-17 13:39  jordi
36967
36968         * MenuAPI.cs: menu drawing fixes
36969
36970 2004-10-15 09:10  ravindra
36971
36972         * StructFormat.cs: General Enum.
36973
36974 2004-10-15 09:09  ravindra
36975
36976         * SizeGripStyle.cs: Enum for Form.
36977
36978 2004-10-15 09:08  ravindra
36979
36980         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
36981           in Theme for ListView.
36982
36983 2004-10-15 09:06  ravindra
36984
36985         * ColumnHeader.cs: Flushing some formatting changes.
36986
36987 2004-10-15 09:05  ravindra
36988
36989         * ListViewItem.cs: Implemented GetBounds method and fixed coding
36990           style.
36991
36992 2004-10-15 09:03  ravindra
36993
36994         * ListView.cs: Implemented Paint method and fixed coding style.
36995
36996 2004-10-15 07:34  jordi
36997
36998         * MenuAPI.cs: fix for X11
36999
37000 2004-10-15 07:32  ravindra
37001
37002         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37003                 - Renamed Paint() method to Draw() for clarity. Also, moved
37004                 DrawImage() to OnPaint().
37005
37006 2004-10-15 07:25  ravindra
37007
37008         * CheckBox.cs, RadioButton.cs:
37009                 - Removed Redraw (), we get it from ButtonBase.
37010                 - Implemented Paint (), to do class specific painting.
37011
37012 2004-10-15 07:16  ravindra
37013
37014         * ButtonBase.cs:
37015                 - Redraw () is not virtual now.
37016                 - Added an internal virtual method Paint (), so that
37017                 derived classes can do their painting on their own.
37018                 - Modified OnPaint () to call Paint ().
37019
37020 2004-10-15 06:43  jordi
37021
37022         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37023           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37024
37025 2004-10-15 00:30  ravindra
37026
37027         * MessageBox.cs:
37028                 - MessageBox on windows does not have min/max buttons.
37029                 This change in CreateParams fixes this on Windows. We
37030                 still need to implement this windowstyle behavior in
37031                 our X11 driver.
37032
37033 2004-10-14 05:14  ravindra
37034
37035         * ToolBar.cs:
37036                 - Changed Redraw () to do a Refresh () always.
37037                 - Fixed the MouseMove event handling when mouse is pressed,
37038                 ie drag event handling.
37039                 - Replaced the usage of ToolBarButton.Pressed property to
37040                 ToolBarButton.pressed internal variable.
37041
37042 2004-10-14 05:10  ravindra
37043
37044         * ToolBarButton.cs:
37045                 - Added an internal member 'inside' to handle mouse move
37046                 with mouse pressed ie mouse drag event.
37047                 - Changed 'Pressed' property to return true only when
37048                 'inside' and 'pressed' are both true.
37049                 - Some coding style love.
37050
37051 2004-10-14 00:17  ravindra
37052
37053         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37054           public method.
37055
37056 2004-10-14 00:15  ravindra
37057
37058         * ButtonBase.cs: Redraw () related improvements.
37059
37060 2004-10-14 00:14  ravindra
37061
37062         * MessageBox.cs: Moved InitFormSize () out of Paint method and
37063           removed unnecessary calls to Button.Show () method.
37064
37065 2004-10-13 17:50  pbartok
37066
37067         * XplatUIX11.cs:
37068           - Formatting fix
37069           - Removed destroying of window until we solve the problem of X
37070             destroying the window before us on shutdown
37071
37072 2004-10-13 16:32  pbartok
37073
37074         * ButtonBase.cs:
37075           - Now Redraws on MouseUp for FlatStyle Flat and Popup
37076
37077 2004-10-13 14:18  pbartok
37078
37079         * XplatUIX11.cs:
37080           - Added code to destroy the X window
37081
37082 2004-10-13 14:18  pbartok
37083
37084         * XplatUIWin32.cs:
37085           - Added code to destroy a window
37086
37087 2004-10-13 14:12  pbartok
37088
37089         * ButtonBase.cs:
37090           - Added the Redraw on Resize that got dropped in the last rev
37091
37092 2004-10-13 09:06  pbartok
37093
37094         * ThemeWin32Classic.cs:
37095           - Path from John BouAntoun:
37096             * Fix check rendering (centre correctly for normal style, offset
37097               correctly for FlatStyle).
37098             * Fix border color usage (use backcolor) for FlatStyle.Popup
37099             * Use checkbox.Capture instead of checkbox.is_pressed when
37100               rendering flatstyle states.
37101
37102 2004-10-12 21:48  pbartok
37103
37104         * ThemeWin32Classic.cs:
37105           - Removed all occurences of SystemColors and replaced them with the
37106             matching theme color
37107
37108 2004-10-12 21:41  pbartok
37109
37110         * ThemeWin32Classic.cs:
37111           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37112             him using the function for flatstyle drawing
37113           - Changed functions to use the new version of CPDrawBorder3D
37114
37115 2004-10-12 21:15  pbartok
37116
37117         * ControlPaint.cs:
37118           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37119             match MS documentation. They need to return defined colors if the
37120             passed color matches the configured control color. Thanks to John
37121             BouAntoun for pointing this out.
37122
37123 2004-10-12 20:57  pbartok
37124
37125         * Control.cs:
37126           - Fix from John BouAntoun: Raise ForeColorChanged event when text
37127             color is changed
37128
37129 2004-10-12 20:46  pbartok
37130
37131         * CheckBox.cs:
37132           - Fix from John BouAntoun: Now properly sets the Appearance property
37133
37134 2004-10-12 20:45  pbartok
37135
37136         * ThemeWin32Classic.cs:
37137           - Fixes from John BouAntoun: now handles forecolors and backcolors
37138             for flatstyle rendered controls much better; It also fixes normal
37139             checkbox rendering when pushed or disabled.
37140
37141 2004-10-08 02:50  jordi
37142
37143         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
37144           work
37145
37146 2004-10-07 08:56  jordi
37147
37148         * ThemeWin32Classic.cs: Removes deletion of cached brushes
37149
37150 2004-10-06 03:59  jordi
37151
37152         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
37153           XplatUIWin32.cs: removes warnings from compilation
37154
37155 2004-10-05 12:23  jackson
37156
37157         * RadioButton.cs: Fix ctor
37158
37159 2004-10-05 11:10  pbartok
37160
37161         * MessageBox.cs:
37162           - Partial implementation by Benjamin Dasnois
37163
37164 2004-10-05 10:15  jackson
37165
37166         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
37167           by John BouAntoun
37168
37169 2004-10-05 03:07  ravindra
37170
37171         * ToolBar.cs:
37172                 - Removed a private method, Draw ().
37173                 - Fixed the ButtonDropDown event handling.
37174                 - Fixed MouseMove event handling.
37175
37176 2004-10-05 03:04  ravindra
37177
37178         * ThemeWin32Classic.cs:
37179                 - Added DrawListView method and ListViewDefaultSize property.
37180                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
37181                 - Changed DOS style CRLF to Unix format (dos2unix).
37182
37183 2004-10-05 03:03  ravindra
37184
37185         * Theme.cs:
37186                 - Added DrawListView method and ListViewDefaultSize property.
37187
37188 2004-10-05 02:42  ravindra
37189
37190         * ToolBarButton.cs: Added an internal member dd_pressed to handle
37191           clicks on DropDown arrow.
37192
37193 2004-10-04 22:56  jackson
37194
37195         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
37196           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
37197           Control handle the buffers, derived classes should not have to
37198           CreateBuffers themselves.
37199
37200 2004-10-04 21:20  jackson
37201
37202         * StatusBar.cs: The control handles resizing the buffers now.
37203
37204 2004-10-04 21:18  jackson
37205
37206         * Control.cs: When resizing the buffers should be invalidated. This
37207           should be handled in Control not in derived classes.
37208
37209 2004-10-04 14:45  jackson
37210
37211         * TabPage.cs: oops
37212
37213 2004-10-04 02:14  pbartok
37214
37215         * LeftRightAlignment.cs:
37216           - Initial check-in
37217
37218 2004-10-04 01:09  jordi
37219
37220         * ThemeWin32Classic.cs: fixes right button position causing right
37221           button not showing on horizontal scrollbars
37222
37223 2004-10-02 13:12  pbartok
37224
37225         * XplatUIX11.cs:
37226           - Simplified the Invalidate method by using an X call instead of
37227             generating the expose ourselves
37228           - Added an expose when the window background is changed
37229           - Implemented ClientToScreen method
37230
37231 2004-10-02 13:08  pbartok
37232
37233         * XplatUIWin32.cs:
37234           - Added Win32EnableWindow method (test for implementing modal
37235           dialogs)
37236           - Added ClientToScreen method and imports
37237
37238 2004-10-02 13:07  pbartok
37239
37240         * XplatUI.cs, XplatUIDriver.cs:
37241           - Added ClientToScreen coordinate translation method
37242
37243 2004-10-02 13:06  pbartok
37244
37245         * KeyPressEventArgs.cs:
37246           - Fixed access level for constructor
37247
37248 2004-10-02 13:06  pbartok
37249
37250         * NativeWindow.cs:
37251           - Changed access level for the window_collection hash table
37252
37253 2004-10-02 13:05  pbartok
37254
37255         * Form.cs:
37256           - Added KeyPreview property
37257           - Added Menu property (still incomplete, pending Jordi's menu work)
37258           - Implemented ProcessCmdKey
37259           - Implemented ProcessDialogKey
37260           - Implemented ProcessKeyPreview
37261
37262 2004-10-02 13:02  pbartok
37263
37264         * Control.cs:
37265           - Added private method to get the Control object from the window
37266           handle
37267           - Implemented ContextMenu property
37268           - Implemented PointToScreen
37269           - Implemented PreProcessMessage
37270           - Implemented IsInputChar
37271           - Implemented IsInputKey
37272           - Implemented ProcessCmdKey
37273           - Completed ProcessKeyEventArgs
37274           - Fixed message loop to call the proper chain of functions on key
37275           events
37276           - Implemented ProcessDialogChar
37277           - Implemented ProcessDialogKey
37278           - Implemented ProcessKeyMessage
37279           - Implemented ProcessKeyPreview
37280           - Added RaiseDragEvent stub (MS internal method)
37281           - Added RaiseKeyEvent stub (MS internal method)
37282           - Added RaiseMouseEvent stub (MS Internal method)
37283           - Added RaisePaintEvent stub (MS Internal method)
37284           - Added ResetMouseEventArgs stub (MS Internal method)
37285           - Implemented RtlTranslateAlignment
37286           - Implemented RtlTranslateContent
37287           - Implemented RtlTranslateHorizontal
37288           - Implemented RtlTranslateLeftRight
37289           - Added generation of KeyPress event
37290
37291 2004-10-02 05:57  ravindra
37292
37293         * ListViewItem.cs: Added attributes.
37294
37295 2004-10-02 05:32  ravindra
37296
37297         * ListView.cs: Added attributes.
37298
37299 2004-10-01 11:53  jackson
37300
37301         * Form.cs: Implement the Close method so work on MessageBox can
37302           continue.
37303
37304 2004-09-30 14:06  pbartok
37305
37306         * XplatUIX11.cs:
37307           - Bug fixes
37308
37309 2004-09-30 11:34  jackson
37310
37311         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
37312
37313 2004-09-30 07:26  ravindra
37314
37315         * ListViewItemConverter.cs: Converter for ListViewItem.
37316
37317 2004-09-30 07:26  ravindra
37318
37319         * SortOrder.cs: Enum for ListView control.
37320
37321 2004-09-30 07:25  ravindra
37322
37323         * ColumnHeader.cs: Supporting class for ListView control.
37324
37325 2004-09-30 07:24  ravindra
37326
37327         * ListView.cs, ListViewItem.cs: Initial implementation.
37328
37329 2004-09-30 07:20  ravindra
37330
37331         * ItemActivation.cs: Enum for ListView Control.
37332
37333 2004-09-29 20:29  pbartok
37334
37335         * XplatUIX11.cs:
37336           - Added lookup of pixel value for background color; tries to get a
37337             color 'close' to the requested color, it avoids having to create a
37338             colormap.  Depending on the display this could mean the used color
37339             is slightly off the desired color. Might have to change it to a more
37340             resource intensive colormap approach, but it will work as a
37341           workaround to avoid red screens.
37342
37343 2004-09-29 14:27  jackson
37344
37345         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
37346
37347 2004-09-28 12:44  pbartok
37348
37349         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
37350           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
37351           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
37352           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
37353           TrackBar.cs, VScrollBar.cs:
37354           - Streamlined Theme interfaces:
37355             * Each DrawXXX method for a control now is passed the object for
37356               the control to be drawn in order to allow accessing any state the
37357               theme might require
37358
37359             * ControlPaint methods for the theme now have a CP prefix to avoid
37360               name clashes with the Draw methods for controls
37361
37362             * Every control now retrieves it's DefaultSize from the current
37363             theme
37364
37365 2004-09-28 12:17  jackson
37366
37367         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
37368           drawing
37369
37370 2004-09-24 14:57  jackson
37371
37372         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
37373           Gives us a nice little performance boost.
37374
37375 2004-09-24 12:02  jackson
37376
37377         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
37378           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
37379           Control and supporting classes. Initial checkin
37380
37381 2004-09-23 13:08  jackson
37382
37383         * Form.cs: Temp build fixage
37384
37385 2004-09-23 01:39  ravindra
37386
37387         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
37388           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
37389           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
37390           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
37391           EventHandlers needed by ListView Control.
37392
37393 2004-09-22 14:12  pbartok
37394
37395         * ScrollableControl.cs:
37396           - Implemented DockPadding property
37397           - Implemented AutoScroll property
37398           - Implemented AutoScrollMargin property
37399           - Implemented AutoScrollMinSize property
37400           - Implemented AutoScrollPosition property
37401           - Implemented DisplayRectangle property (still incomplete)
37402           - Implemented CreateParams property
37403           - Implemented HScroll property
37404           - Implemented VScroll property
37405           - Implemented OnVisibleChanged property
37406
37407 2004-09-22 14:09  pbartok
37408
37409         * Form.cs:
37410           - Added Form.ControllCollection class
37411           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
37412             RemoveOwnedForm (still incomplete, missing on-top and common
37413             minimize/maximize behaviour)
37414           - Added StartPosition property (still incomplete, does not use when
37415             creating the form)
37416           - Added ShowDialog() methods (still incomplete, missing forcing the
37417             dialog modal)
37418
37419 2004-09-22 14:05  pbartok
37420
37421         * Application.cs:
37422           - Added message loop for modal dialogs
37423
37424 2004-09-22 14:02  pbartok
37425
37426         * GroupBox.cs:
37427           - Fixed wrong types for events
37428
37429 2004-09-22 14:00  pbartok
37430
37431         * Shortcut.cs, FormWindowState.cs:
37432           - Fixed wrong values
37433
37434 2004-09-22 12:01  jackson
37435
37436         * Control.cs: Text is never null
37437
37438 2004-09-20 22:14  pbartok
37439
37440         * XplatUIWin32.cs:
37441           - Fixed accessibility level for Idle handler
37442
37443 2004-09-20 18:54  jackson
37444
37445         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37446           XplatUIX11.cs: New message loop that uses poll so we don't get a
37447           busy loop
37448
37449 2004-09-17 10:43  pbartok
37450
37451         * ScrollBar.cs:
37452           - Fixed behaviour of arrow buttons. Now properly behaves like
37453             Buttons (and like Microsoft's scrollbar arrow buttons)
37454
37455 2004-09-17 10:14  pbartok
37456
37457         * ScrollBar.cs:
37458           - Added missing release of keyboard/mouse capture
37459
37460 2004-09-17 06:18  jordi
37461
37462         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
37463           Theme.cs: Very early menu support
37464
37465 2004-09-16 17:45  pbartok
37466
37467         * XplatUIWin32.cs:
37468           - Fixed sending a window to the front
37469           - Added overload for SetWindowPos to avoid casting
37470
37471 2004-09-16 17:44  pbartok
37472
37473         * Control.cs:
37474           - Added SendToBack and BringToFront methods
37475
37476 2004-09-16 07:00  ravindra
37477
37478         * Copyright: Added Novell URL.
37479
37480 2004-09-16 07:00  ravindra
37481
37482         * ToolBar.cs: Invalidate should be done before redrawing.
37483
37484 2004-09-15 21:19  ravindra
37485
37486         * ColumnHeaderStyle.cs: Enum for ListView Control.
37487
37488 2004-09-15 21:18  ravindra
37489
37490         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
37491           ListView Control.
37492
37493 2004-09-13 18:26  jackson
37494
37495         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
37496           properly
37497
37498 2004-09-13 18:13  jackson
37499
37500         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
37501           a second thread and post messages into the main threads message
37502           queue. This makes timing much more consistent. Both win2K and XP
37503           have a minimum timer value of 15 milliseconds, so we now do this
37504           too.
37505
37506 2004-09-13 15:18  pbartok
37507
37508         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37509           XplatUIX11.cs:
37510           - Added Z-Ordering methods
37511
37512 2004-09-13 10:56  pbartok
37513
37514         * Form.cs:
37515           - Fixed #region names
37516           - Moved properties and methods into their proper #regions
37517
37518 2004-09-13 10:51  pbartok
37519
37520         * Form.cs:
37521           - Added Accept and CancelButton properties
37522           - Added ProcessDialogKey() method
37523
37524 2004-09-13 08:18  pbartok
37525
37526         * IWindowTarget.cs:
37527           - Initial check-in
37528
37529 2004-09-10 21:50  pbartok
37530
37531         * Control.cs:
37532           - Added DoDragDrop() [incomplete]
37533           - Properly implemented 'Visible' handling
37534           - Added SetVisibleCore()
37535           - Implemented FindChildAtPoint()
37536           - Implemented GetContainerControl()
37537           - Implemented Hide()
37538
37539 2004-09-10 19:28  pbartok
37540
37541         * Control.cs:
37542           - Moved methods into their appropriate #regions
37543           - Reordered methods within regions alphabetically
37544
37545 2004-09-10 18:57  pbartok
37546
37547         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37548           - Added method to retrieve text from window
37549
37550 2004-09-10 18:56  pbartok
37551
37552         * Control.cs:
37553           - Moved some internal functions into the internal region
37554           - Implemented FontHeight
37555           - Implemented RenderRightToLeft
37556           - Implemented ResizeRedraw
37557           - Implemented ShowFocusCues
37558           - Implemented ShowKeyboardCues
37559           - Implemented FromChildHandle
37560           - Implemented FromHandle
37561           - Implemented IsMnemonic
37562           - Implemented ReflectMessage
37563           - All public and protected Static Methods are now complete
37564
37565 2004-09-10 16:54  pbartok
37566
37567         * Control.cs:
37568           - Implemented remaining missing public instance properties
37569           - Alphabetized some out of order properties
37570
37571 2004-09-10 05:51  ravindra
37572
37573         * PictureBox.cs: Added a check for null image.
37574
37575 2004-09-10 00:59  jordi
37576
37577         * GroupBox.cs: remove cvs tag
37578
37579 2004-09-09 05:25  ravindra
37580
37581         * ToolBar.cs: Make redraw accessible from ToolBarButton.
37582
37583 2004-09-09 05:23  ravindra
37584
37585         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
37586           parent redraw.
37587
37588 2004-09-09 02:28  pbartok
37589
37590         * ThemeWin32Classic.cs:
37591           - Improve disabled string look
37592
37593 2004-09-09 01:15  jordi
37594
37595         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
37596           args and handler
37597
37598 2004-09-08 23:56  ravindra
37599
37600         * ItemBoundsPortion.cs: It's enum, not a class!
37601
37602 2004-09-08 23:47  ravindra
37603
37604         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
37605           Enums for Form.
37606
37607 2004-09-08 21:13  ravindra
37608
37609         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
37610           ListView control.
37611
37612 2004-09-08 21:03  ravindra
37613
37614         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
37615           avoid crash.
37616
37617 2004-09-08 21:01  ravindra
37618
37619         * ScrollableControl.cs: Removed unreachable code.
37620
37621 2004-09-08 06:45  jordi
37622
37623         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
37624
37625 2004-09-08 01:00  jackson
37626
37627         * XplatUIX11.cs: Only run the timers when updating the message
37628           queue. This effectively gives X messages a higher priority then
37629           timer messages. Timers still need love though
37630
37631 2004-09-07 14:01  jackson
37632
37633         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
37634           this for us and the handle is no longer valid.
37635
37636 2004-09-07 13:59  jackson
37637
37638         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
37639           loop that manages to not crash. TODO: Add poll and cleanup timers
37640
37641 2004-09-07 11:12  jordi
37642
37643         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
37644
37645 2004-09-07 03:40  jordi
37646
37647         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
37648           fixes, methods, multiple links
37649
37650 2004-09-06 06:55  jordi
37651
37652         * Control.cs: Caches ClientRectangle rectangle value
37653
37654 2004-09-05 02:03  jordi
37655
37656         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
37657           certain situations
37658
37659 2004-09-04 11:10  jordi
37660
37661         * Label.cs: Refresh when font changed
37662
37663 2004-09-02 16:24  pbartok
37664
37665         * Control.cs:
37666           - Added sanity check to creation of double buffer bitmap
37667
37668 2004-09-02 16:24  pbartok
37669
37670         * ButtonBase.cs:
37671           - Fixed selection of text color
37672           - Fixed handling of resize event; now properly recreates double
37673             buffering bitmap
37674           - Added missing assignment of TextAlignment
37675           - Added proper default for TextAlignment
37676
37677 2004-09-02 14:26  pbartok
37678
37679         * RadioButton.cs:
37680           - Added missing RadioButton.RadioButtonAccessibleObject class
37681
37682 2004-09-02 14:26  pbartok
37683
37684         * Control.cs:
37685           - Added missing Control.ControlAccessibleObject class
37686           - Started to implement Select()ion mechanisms, still very incomplete
37687
37688 2004-09-02 14:25  pbartok
37689
37690         * AccessibleObject.cs:
37691           - Added missing methods
37692
37693 2004-09-02 14:23  pbartok
37694
37695         * AccessibleNavigation.cs, AccessibleSelection.cs:
37696           - Initial check-in
37697
37698 2004-09-02 10:32  jordi
37699
37700         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
37701           pool for pens, brushes, and hatchbruses
37702
37703 2004-09-01 15:30  jackson
37704
37705         * StatusBar.cs: Fix typo
37706
37707 2004-09-01 14:44  pbartok
37708
37709         * RadioButton.cs:
37710           - Fixed state
37711
37712 2004-09-01 14:39  pbartok
37713
37714         * Button.cs, RadioButton.cs:
37715           - Functional initial check-in
37716
37717 2004-09-01 14:01  pbartok
37718
37719         * CheckBox.cs:
37720           - Added missing default
37721           - Added missing region mark
37722
37723 2004-09-01 09:10  jordi
37724
37725         * Label.cs: fixes method signatures, new methods, events, fixes
37726           autosize
37727
37728 2004-09-01 07:19  jordi
37729
37730         * Control.cs: Init string variables with an empty object
37731
37732 2004-09-01 04:20  jordi
37733
37734         * Control.cs: fires OnFontChanged event
37735
37736 2004-08-31 20:07  pbartok
37737
37738         * ButtonBase.cs:
37739           - Enabled display of strings
37740
37741 2004-08-31 20:05  pbartok
37742
37743         * Form.cs:
37744           - Added (partial) implementation of DialogResult; rest needs to be
37745             implemented when the modal loop code is done
37746
37747 2004-08-31 19:55  pbartok
37748
37749         * CheckBox.cs:
37750           - Fixed to match the removal of the needs_redraw concept
37751
37752 2004-08-31 19:55  pbartok
37753
37754         * ButtonBase.cs:
37755           - Removed the rather odd split between 'needs redraw' and redrawing
37756           - Now handles the events that require regeneration (ambient
37757             properties and size)
37758
37759 2004-08-31 19:41  pbartok
37760
37761         * Control.cs:
37762           - Added firing of BackColorChanged event
37763           - Added TopLevelControl property
37764           - Fixed handling of WM_ERASEBKGRND message
37765
37766 2004-08-31 12:49  pbartok
37767
37768         * ButtonBase.cs:
37769           - Removed debug
37770           - Minor fixes
37771
37772 2004-08-31 12:48  pbartok
37773
37774         * CheckBox.cs:
37775           - Finished (famous last words)
37776
37777 2004-08-31 04:35  jordi
37778
37779         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
37780           scrolling bugs, adds new methods
37781
37782 2004-08-30 14:42  pbartok
37783
37784         * CheckBox.cs:
37785           - Implemented CheckBox drawing code
37786
37787 2004-08-30 14:42  pbartok
37788
37789         * ButtonBase.cs:
37790           - Made Redraw() and CheckRedraw() virtual
37791           - Improved mouse up/down/move logic to properly track buttons
37792
37793 2004-08-30 09:44  pbartok
37794
37795         * CheckBox.cs:
37796           - Updated to fix broken build. Not complete yet.
37797
37798 2004-08-30 09:28  pbartok
37799
37800         * CheckState.cs:
37801           - Initial checkin
37802
37803 2004-08-30 09:17  pbartok
37804
37805         * Appearance.cs:
37806           - Initial check-in
37807
37808 2004-08-27 16:12  ravindra
37809
37810         * ToolBarButton.cs: Added TypeConverter attribute.
37811
37812 2004-08-27 16:07  ravindra
37813
37814         * ImageIndexConverter.cs: Implemented.
37815
37816 2004-08-27 14:17  pbartok
37817
37818         * Control.cs:
37819           - Removed unneeded stack vars
37820           - First attempt to fix sizing issues when layout is suspended
37821
37822 2004-08-25 15:35  jordi
37823
37824         * ScrollBar.cs: more fixes to scrollbar
37825
37826 2004-08-25 14:04  ravindra
37827
37828         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
37829           Added the missing divider code and grip for ToolBar Control.
37830
37831 2004-08-25 13:20  pbartok
37832
37833         * Control.cs:
37834           - Control now properly passes the ambient background color to child
37835             controls
37836
37837 2004-08-25 13:20  jordi
37838
37839         * ScrollBar.cs: small bug fix regarding bar position
37840
37841 2004-08-25 12:33  pbartok
37842
37843         * Timer.cs:
37844           - Now only calls SetTimer or KillTimer if the enabled state has
37845           changed
37846
37847 2004-08-25 12:33  pbartok
37848
37849         * XplatUIWin32.cs:
37850           - Fixed timer handling, now seems to work
37851           - Improved error message for window creation
37852
37853 2004-08-25 12:32  pbartok
37854
37855         * Control.cs:
37856           - Fixed generation of MouseUp message
37857
37858 2004-08-25 12:29  jordi
37859
37860         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
37861           and fixes for progressbar
37862
37863 2004-08-24 18:43  ravindra
37864
37865         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
37866           in ToolBar control.
37867
37868 2004-08-24 17:15  pbartok
37869
37870         * Panel.cs:
37871           - Added #region
37872           - Added missing events
37873           - Alphabetized
37874
37875 2004-08-24 17:14  pbartok
37876
37877         * StatusBar.cs, PictureBox.cs:
37878           - Now uses Control's CreateParams
37879
37880 2004-08-24 16:36  pbartok
37881
37882         * XplatUIX11.cs:
37883           - Fixed background color handling
37884           - Fixed sending of enter/leave events on a grab
37885
37886 2004-08-24 16:35  pbartok
37887
37888         * X11Structs.cs:
37889           - Refined definitions for CrossingEvent
37890
37891 2004-08-24 12:37  jordi
37892
37893         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
37894           formmating, methods signature, and adds missing events
37895
37896 2004-08-24 12:24  jordi
37897
37898         * Control.cs: fire OnEnabledChanged event
37899
37900 2004-08-24 11:17  pbartok
37901
37902         * XplatUIWin32.cs:
37903           - Implemented SetTimer() and KillTimer()
37904
37905 2004-08-24 11:16  pbartok
37906
37907         * XplatUIX11.cs:
37908           - Now uses Remove instead of Add to kill the timer
37909
37910 2004-08-24 10:16  jackson
37911
37912         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
37913           picture boxes in the theme now. Draw picture box borders and obey
37914           sizing modes
37915
37916 2004-08-24 05:49  jackson
37917
37918         * Timer.cs: Remove top secret debugging code
37919
37920 2004-08-24 05:34  jackson
37921
37922         * PictureBox.cs: Temp hack to make picture boxes draw their full
37923           image
37924
37925 2004-08-24 05:29  jackson
37926
37927         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37928           XplatUIX11.cs: Move timers to the driver level. On X they are
37929           queued by the driver and checked on idle.
37930
37931 2004-08-24 01:07  jackson
37932
37933         * XplatUIX11.cs: Use a queue for async messages instead of passing
37934           them as ClientMessages since that was totally broken. Also simply
37935           check for events and return an idle message if none are found. This
37936           gives us an idle handler, and prevents deadlocking when no messages
37937           are in the queue.
37938
37939 2004-08-23 18:19  ravindra
37940
37941         * XplatUIWin32.cs: Removed the unwanted destructor.
37942
37943 2004-08-23 17:27  pbartok
37944
37945         * ButtonBase.cs:
37946           - Finishing touches. Works now, just needs some optimizations.
37947
37948 2004-08-23 16:53  jordi
37949
37950         * ScrollBar.cs: small fix
37951
37952 2004-08-23 16:45  pbartok
37953
37954         * Application.cs:
37955           - Removed debug output
37956           - Simplifications
37957
37958 2004-08-23 16:43  jordi
37959
37960         * ScrollBar.cs: [no log message]
37961
37962 2004-08-23 16:10  pbartok
37963
37964         * Form.cs:
37965           - Fixed handling of WM_CLOSE message
37966           - Removed debug output
37967
37968 2004-08-23 16:09  pbartok
37969
37970         * Application.cs:
37971           - Added handling of Idle event
37972           - Added handling of form closing
37973           - Fixed reporting of MessageLoop property
37974           - Removed some unneeded code, should provide a bit of a speedup
37975
37976 2004-08-23 15:22  pbartok
37977
37978         * Control.cs:
37979           - Added InitLayout() method
37980           - Added code to properly perform layout when Anchor or Dock property
37981             is changed
37982           - Changed 'interpretation' of ResumeLayout. MS seems to have a
37983             LAMESPEC, tried to do it in a way that makes sense
37984
37985 2004-08-23 14:10  jordi
37986
37987         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
37988           properties and methods
37989
37990 2004-08-23 13:55  pbartok
37991
37992         * Control.cs:
37993           - Properly fixed Jordi's last fix
37994           - Now uses Cursor's Position property instead of calling XplatUI
37995           directly
37996
37997 2004-08-23 13:44  jordi
37998
37999         * PaintEventHandler.cs: Adding missing attribute
38000
38001 2004-08-23 13:39  pbartok
38002
38003         * Cursor.cs:
38004           - Implemented Position property
38005
38006 2004-08-23 13:39  pbartok
38007
38008         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38009           - Added method to move mouse cursor
38010
38011 2004-08-23 13:39  pbartok
38012
38013         * XplatUIX11.cs:
38014           - Fixed setting of background color
38015           - Added method to move mouse cursor
38016
38017 2004-08-23 13:16  jordi
38018
38019         * Control.cs: avoids null exception
38020
38021 2004-08-22 17:46  jackson
38022
38023         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38024           PictureBox
38025
38026 2004-08-22 17:40  jackson
38027
38028         * XplatUIX11.cs: Add some missing locks
38029
38030 2004-08-22 15:10  pbartok
38031
38032         * Control.cs, Form.cs:
38033           - Removed OverlappedWindow style from Control, instead it's default
38034             now is child
38035           - Made form windows OverlappedWindow by default
38036
38037 2004-08-22 13:34  jackson
38038
38039         * ScrollBar.cs: Update the position through the Value property so
38040           the OnValueChanged event is raised.
38041
38042 2004-08-22 12:04  pbartok
38043
38044         * SWF.csproj:
38045           - Added Cursor.cs and UserControl.cs
38046
38047 2004-08-22 12:03  pbartok
38048
38049         * Cursor.cs:
38050           - Started implementation, not usable yet
38051
38052 2004-08-22 12:00  pbartok
38053
38054         * UserControl.cs:
38055           - Implemented UserControl (complete)
38056
38057 2004-08-21 19:20  ravindra
38058
38059         * ToolBar.cs: Correcting the formatting mess of VS.NET.
38060
38061 2004-08-21 18:49  ravindra
38062
38063         * ToolBar.cs: Probably this completes the missing attributes in
38064           toolbar control.
38065
38066 2004-08-21 18:03  ravindra
38067
38068         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38069           Fixed toolbar control signatures.
38070
38071 2004-08-21 16:32  pbartok
38072
38073         * LinkLabel.cs:
38074           - Signature Fixes
38075
38076 2004-08-21 16:30  pbartok
38077
38078         * Label.cs:
38079           - Signature fixes
38080
38081 2004-08-21 16:19  pbartok
38082
38083         * Control.cs, Label.cs:
38084           - Signature fixes
38085
38086 2004-08-21 15:57  pbartok
38087
38088         * ButtonBase.cs:
38089           - Added loads of debug output for development
38090           - Fixed typo in method name
38091
38092 2004-08-21 15:52  pbartok
38093
38094         * ToolBarButtonClickEventArgs.cs:
38095           - Added missing base class
38096
38097 2004-08-21 14:53  pbartok
38098
38099         * Control.cs:
38100           - Updated to match new GrabWindow signature
38101
38102 2004-08-21 14:51  pbartok
38103
38104         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38105           - Added method to get default display size
38106
38107 2004-08-21 14:23  pbartok
38108
38109         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38110           - Added method to query current grab state
38111           - Added argument to allow confining a grab to a window
38112
38113 2004-08-21 14:22  pbartok
38114
38115         * Keys.cs:
38116           - Added [Flags] attribute so that modifiers can be used in bitwise
38117           ops
38118
38119 2004-08-21 14:21  pbartok
38120
38121         * TrackBar.cs, ScrollBar.cs:
38122           - Replaced direct XplatUI calls with their Control counterpart
38123
38124 2004-08-21 13:32  pbartok
38125
38126         * Control.cs:
38127           - Implemented Created property
38128
38129 2004-08-21 13:28  pbartok
38130
38131         * Control.cs:
38132           - Implemented ContainsFocus
38133
38134 2004-08-21 13:26  pbartok
38135
38136         * Control.cs:
38137           - Implemented CausesValidation
38138
38139 2004-08-21 13:21  pbartok
38140
38141         * Control.cs:
38142           - Implemented CanFocus
38143           - Implemented CanSelect
38144           - Implemented Capture
38145
38146 2004-08-21 12:35  pbartok
38147
38148         * XplatUIWin32.cs:
38149           - Fixed bug with Async message handling
38150           - Implemented getting the ModifierKeys
38151
38152 2004-08-21 12:32  jackson
38153
38154         * AsyncMethodResult.cs: Make sure we have the mutex before we
38155           release it. Fixes BeginInvoke on windows
38156
38157 2004-08-21 11:31  pbartok
38158
38159         * XplatUIWin32.cs, XplatUIX11.cs:
38160           - Drivers now return proper mouse state
38161
38162 2004-08-21 10:54  jackson
38163
38164         * Control.cs: Implement EndInvoke
38165
38166 2004-08-21 10:48  jackson
38167
38168         * Timer.cs: Remove unneeded finalizer
38169
38170 2004-08-20 19:52  ravindra
38171
38172         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
38173           in mouse event handling in the ToolBar control.
38174
38175 2004-08-20 19:50  ravindra
38176
38177         * ImageList.cs: Changed draw method to use the arguments passed in
38178           to draw the image.
38179
38180 2004-08-20 18:58  pbartok
38181
38182         * XplatUIStructs.cs:
38183           - Added private message for async communication
38184
38185 2004-08-20 17:38  ravindra
38186
38187         * Control.cs: Made RightToLeft property virtual and removed a
38188           Console.WriteLine.
38189
38190 2004-08-20 14:39  jordi
38191
38192         * ThemeGtk.cs: use style_attach
38193
38194 2004-08-20 14:39  pbartok
38195
38196         * XplatUIWin32.cs:
38197           - Added jackson's Async code from X11 to Win32
38198
38199 2004-08-20 14:09  pbartok
38200
38201         * SWF.csproj:
38202           - Added all new files
38203
38204 2004-08-20 14:09  pbartok
38205
38206         * Control.cs:
38207           - Added call to set window background color
38208
38209 2004-08-20 14:03  pbartok
38210
38211         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38212           - Added method for setting the window background
38213
38214 2004-08-20 14:02  pbartok
38215
38216         * XplatUIWin32.cs:
38217           - Added method for setting the background color
38218           - Added handling for erasing the window background
38219
38220 2004-08-20 13:45  jordi
38221
38222         * TrackBar.cs: fixes timer, new properties and methods
38223
38224 2004-08-20 13:34  jackson
38225
38226         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
38227           correct thread
38228
38229 2004-08-20 13:22  jackson
38230
38231         * Timer.cs: Timer Tick events are now handed through Controls Async
38232           mechanism so the callbacks are executed in the same thread as X
38233
38234 2004-08-20 13:19  jackson
38235
38236         * XplatUIDriver.cs: Expose functionality to send async messages
38237           through the driver
38238
38239 2004-08-20 13:18  jackson
38240
38241         * Control.cs: Implement Begininvoke
38242
38243 2004-08-20 13:14  jackson
38244
38245         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
38246           messages through the driver
38247
38248 2004-08-20 13:12  jackson
38249
38250         * XplatUIX11.cs: Lock before all X operations. Also added Async
38251           method functionality through XSendEvent
38252
38253 2004-08-20 13:11  jackson
38254
38255         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
38256           This will screw up on 64 bit systems)
38257
38258 2004-08-20 13:10  jackson
38259
38260         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
38261           Async messages through X/Win32
38262
38263 2004-08-19 19:39  pbartok
38264
38265         * XplatUIX11.cs:
38266           - Updated code to match new HandleData.DeviceContext type
38267
38268 2004-08-19 19:38  pbartok
38269
38270         * HandleData.cs:
38271           - Made DeviceContext a generic object to allow usage from various
38272           drivers
38273           - Added support for queueing Windows messages
38274
38275 2004-08-19 19:37  pbartok
38276
38277         * XplatUIWin32.cs:
38278           - Added generation of MouseEnter, MouseLeave and MouseHover events
38279           - Added cleanup on EndPaint
38280
38281 2004-08-19 19:17  pbartok
38282
38283         * Control.cs:
38284           - Added handling of WM_MOUSEHOVER
38285           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
38286           code
38287
38288 2004-08-19 18:55  jordi
38289
38290         * ThemeGtk.cs: fixes button order
38291
38292 2004-08-19 18:12  jordi
38293
38294         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
38295
38296 2004-08-19 17:09  pbartok
38297
38298         * Control.cs:
38299           - Added Right property
38300           - Added RightToLeft property
38301
38302 2004-08-19 16:27  jordi
38303
38304         * ThemeGtk.cs: experimental GTK theme support
38305
38306 2004-08-19 16:26  jordi
38307
38308         * ITheme.cs, Theme.cs: move themes from an interface to a class
38309
38310 2004-08-19 16:25  jordi
38311
38312         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
38313           theme enhancaments
38314
38315 2004-08-19 16:04  pbartok
38316
38317         * XplatUIX11.cs:
38318           - Added colormap basics
38319           - Added a way to re-initialize with a different display handle
38320           - Fixed setting of the window background color
38321           - Added various X11 imports related to colors and colormaps
38322
38323 2004-08-19 15:51  pbartok
38324
38325         * X11Structs.cs:
38326           - Removed packing hints (Paolo suggested this a while back)
38327           - fixed colormap type
38328           - Added default Atom types
38329           - Added Screen and color structs and enums
38330
38331 2004-08-19 15:39  pbartok
38332
38333         * ImageList.cs:
38334           - Added missing Draw() method
38335           - Added missing RecreateHandle event
38336
38337 2004-08-19 15:30  pbartok
38338
38339         * Form.cs:
38340           - Added handling of WM_CLOSE
38341
38342 2004-08-18 13:16  jordi
38343
38344         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
38345           a table
38346
38347 2004-08-18 09:56  jordi
38348
38349         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
38350
38351 2004-08-17 15:31  ravindra
38352
38353         * SWF.csproj: Updated project.
38354
38355 2004-08-17 15:25  pbartok
38356
38357         * Control.cs:
38358           - Drawing improvement; don't call UpdateBounds if we are not visible
38359             (or have been minimized)
38360
38361 2004-08-17 15:24  pbartok
38362
38363         * XplatUIWin32.cs:
38364           - Finished IsVisible
38365           - Added Win32GetWindowPlacement
38366
38367 2004-08-17 15:08  jackson
38368
38369         * Panel.cs: Initial checkin of the Panel
38370
38371 2004-08-17 14:25  pbartok
38372
38373         * Control.cs:
38374           - Fixed broken handling of default window sizes
38375
38376 2004-08-17 13:29  jackson
38377
38378         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
38379           has a large startup time.
38380
38381 2004-08-17 10:25  jackson
38382
38383         * HandleData.cs: union areas properly
38384
38385 2004-08-17 10:12  jackson
38386
38387         * HandleData.cs: union areas properly
38388
38389 2004-08-16 20:00  ravindra
38390
38391         * ToolBar.cs, ToolBarButton.cs: Added attributes.
38392
38393 2004-08-16 18:48  ravindra
38394
38395         * ToolBar.cs: Added attributes.
38396
38397 2004-08-16 17:17  ravindra
38398
38399         * SWF.csproj: Updated project.
38400
38401 2004-08-16 17:16  jackson
38402
38403         * XplatUIX11.cs: Check for more expose events before sending a
38404           WM_PAINT so they can all be grouped together. This makes dragging a
38405           window across another window redraw in a sane way.
38406
38407 2004-08-16 15:47  pbartok
38408
38409         * Control.cs:
38410           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
38411             support OnMouseEnter/Leave()
38412           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
38413             exposure handling
38414
38415 2004-08-16 15:46  pbartok
38416
38417         * XplatUIStructs.cs, XplatUIX11.cs:
38418           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
38419           OnMouseEnter/Leave()
38420
38421 2004-08-16 15:34  jackson
38422
38423         * XplatUIX11.cs: Group multiple expose events in HandleData, make
38424           sure messages get the message field set to WM_NULL if they are not
38425           handled.
38426
38427 2004-08-16 15:24  jackson
38428
38429         * HandleData.cs: HandleData is used for storing message information
38430           for window handles
38431
38432 2004-08-15 17:23  ravindra
38433
38434         * ColorDepth.cs: Added attribute.
38435
38436 2004-08-15 17:23  ravindra
38437
38438         * SWF.csproj: Updated project for ToolBar Control.
38439
38440 2004-08-15 17:20  ravindra
38441
38442         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
38443           control and also dos2unix format.
38444
38445 2004-08-15 17:13  ravindra
38446
38447         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
38448           ToolBarButtonClickEventArgs.cs,
38449           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
38450           ToolBarTextAlign.cs: First Implementation of ToolBar control.
38451
38452 2004-08-15 15:31  pbartok
38453
38454         * ButtonBase.cs:
38455           - First (mostly) working version
38456
38457 2004-08-13 16:15  pbartok
38458
38459         * Control.cs:
38460           - Fixed Anchor default
38461
38462 2004-08-13 15:43  pbartok
38463
38464         * Control.cs:
38465           - Changed GetCursorPos signature
38466
38467 2004-08-13 15:42  pbartok
38468
38469         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38470           - Changed signature for GetCursorPos
38471
38472 2004-08-13 15:25  pbartok
38473
38474         * XplatUIX11.cs:
38475           - Cleanup
38476           - Fixed resizing/exposure handling
38477
38478 2004-08-13 15:22  jordi
38479
38480         * ThemeWin32Classic.cs: removes redundant code and fixes issues
38481           with tickposition
38482
38483 2004-08-13 14:55  jordi
38484
38485         * TrackBar.cs: change from wndproc to events
38486
38487 2004-08-13 13:00  jordi
38488
38489         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38490           XplatUIX11.cs: implements PointToClient (ScreenToClient)
38491
38492 2004-08-13 12:53  pbartok
38493
38494         * XplatUIWin32.cs:
38495           - Changed GetWindowPos to also provide client area size
38496           - Fixed broken prototypes for several win32 functions
38497
38498 2004-08-13 12:53  pbartok
38499
38500         * XplatUI.cs, XplatUIDriver.cs:
38501           - Changed GetWindowPos to also provide client area size
38502
38503 2004-08-13 12:52  pbartok
38504
38505         * XplatUIX11.cs:
38506           - Added generation of WM_POSCHANGED
38507           - Changed GetWindowPos to also provide client area size
38508
38509 2004-08-13 12:52  pbartok
38510
38511         * Control.cs:
38512           - Added Dispose() and destructor
38513           - Fixed resizing and bounds calculation
38514           - Fixed Layout
38515           - Added memory savings for invisible windows
38516
38517 2004-08-13 12:46  jordi
38518
38519         * TrackBar.cs: adds timer and grap window
38520
38521 2004-08-13 10:25  jackson
38522
38523         * Timer.cs: SWF Timer
38524
38525 2004-08-12 16:59  pbartok
38526
38527         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38528           - Implemented method to get current mouse position
38529
38530 2004-08-12 14:29  jordi
38531
38532         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
38533           enhancement, fix mouse problems, highli thumb, etc
38534
38535 2004-08-12 13:31  pbartok
38536
38537         * Control.cs:
38538           - Fixed Anchoring bugs
38539
38540 2004-08-12 13:01  jackson
38541
38542         * StatusBar.cs: Don't forget things
38543
38544 2004-08-12 12:54  jackson
38545
38546         * ThemeWin32Classic.cs: Handle owner draw status bars
38547
38548 2004-08-12 12:54  jackson
38549
38550         * StatusBar.cs: Implement missing properties, events, and methods.
38551           Handle mouse clicking
38552
38553 2004-08-12 10:19  jackson
38554
38555         * StatusBarPanelClickEventArgs.cs,
38556           StatusBarPanelClickEventHandler.cs: Classes for handling status
38557           bar panel click events
38558
38559 2004-08-12 10:10  jackson
38560
38561         * Control.cs: Add missing properties
38562
38563 2004-08-12 09:46  pbartok
38564
38565         * BindingsManagerBase.cs:
38566           - Name changed to BindingManagerBase.cs
38567
38568 2004-08-12 09:25  jordi
38569
38570         * ScrollableControl.cs: calls ctrlbase instead of exeception
38571
38572 2004-08-11 16:28  pbartok
38573
38574         * InputLanguageChangingEventArgs.cs:
38575           - Never check in before compiling. Fixes the last check-in
38576
38577 2004-08-11 16:26  pbartok
38578
38579         * InputLanguageChangingEventArgs.cs:
38580           - More signature fixes
38581
38582 2004-08-11 16:20  pbartok
38583
38584         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
38585           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
38586           ImageListStreamer.cs, InputLanguage.cs,
38587           InputLanguageChangedEventArgs.cs,
38588           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
38589           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
38590           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
38591           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38592           - Signature fixes
38593
38594 2004-08-11 16:16  pbartok
38595
38596         * Application.cs:
38597           - Fixed Signature
38598           - Added .Net 1.1 method
38599
38600 2004-08-11 15:25  pbartok
38601
38602         * SWF.csproj:
38603           - Fixed BindingManagerBase.cs filename
38604
38605 2004-08-11 15:22  pbartok
38606
38607         * BindingManagerBase.cs:
38608           - Was checked in with wrong filename
38609
38610 2004-08-11 14:50  pbartok
38611
38612         * SWF.csproj:
38613           - Updated
38614
38615 2004-08-11 13:41  jordi
38616
38617         * XplatUIWin32.cs: Fixes ClientRect
38618
38619 2004-08-11 13:19  pbartok
38620
38621         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38622           XplatUIX11.cs:
38623           - We had SetWindowPos and MoveWindow to set window positions and
38624             size, removed MoveWindow. We have GetWindowPos, so it made sense to
38625             keep SetWindowPos as matching counterpart
38626           - Added some X11 sanity checking
38627
38628 2004-08-11 12:59  pbartok
38629
38630         * Control.cs:
38631           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
38632             (It seems that SetBounds is just a front for SetBoundsCore and
38633              SetBoundsCore updates the underlying window system and
38634              UpdateBounds is responsible for updating the variables associated
38635              with the Control and sending the events)
38636           - Major cleanup of Size handling; we now have two sizes, client_size
38637             and bounds. Bounds defines the window with decorations, client_size
38638             without them.
38639
38640 2004-08-11 12:55  pbartok
38641
38642         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38643           - Added method to calculate difference between decorated window and
38644             raw client area
38645
38646 2004-08-11 12:54  pbartok
38647
38648         * Label.cs:
38649           - Forcing redraw on resize
38650
38651 2004-08-11 11:43  pbartok
38652
38653         * ImageList.cs:
38654           - Removed disposing of the actual images when the list is disposed
38655
38656 2004-08-11 09:13  pbartok
38657
38658         * Control.cs:
38659           - Now properly reparents windows
38660
38661 2004-08-11 08:37  pbartok
38662
38663         * Control.cs:
38664           - Duh!
38665
38666 2004-08-11 07:47  pbartok
38667
38668         * Control.cs:
38669           - Rewrote the collection stuff. Might not be as fast now, not
38670             keeping the number of children around and accessible directly, but
38671             it's more straightforward
38672
38673 2004-08-11 07:44  pbartok
38674
38675         * AccessibleObject.cs:
38676           - Fixed to match ControlCollection rewrite
38677
38678 2004-08-11 07:43  pbartok
38679
38680         * ImageList.cs:
38681           - Added missing creation of the collection list
38682
38683 2004-08-10 20:08  jackson
38684
38685         * StatusBar.cs: Get the paint message from WndProc
38686
38687 2004-08-10 19:31  jackson
38688
38689         * ThemeWin32Classic.cs: Create Brushes as little as possible
38690
38691 2004-08-10 19:20  jackson
38692
38693         * UICues.cs: Add Flags attribute
38694
38695 2004-08-10 19:19  jackson
38696
38697         * StatusBarPanel.cs: Signature cleanup
38698
38699 2004-08-10 19:10  jackson
38700
38701         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
38702           Initial implementation of status bar item drawing
38703
38704 2004-08-10 17:27  jordi
38705
38706         * TrackBar.cs: add missing methods, properties, and restructure to
38707           hide extra ones
38708
38709 2004-08-10 16:24  jackson
38710
38711         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
38712           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
38713           attribute
38714
38715 2004-08-10 13:21  jordi
38716
38717         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
38718           enhancements and standarize on win colors defaults
38719
38720 2004-08-10 12:52  jackson
38721
38722         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
38723           ThemeWin32Classic.cs: Implement DrawItem functionality
38724
38725 2004-08-10 12:47  jordi
38726
38727         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
38728
38729 2004-08-10 12:32  jordi
38730
38731         * Control.cs: throw ontextchange event
38732
38733 2004-08-10 11:43  pbartok
38734
38735         * Control.cs:
38736           - Added more to the still unfinished Dock/Anchor layout code
38737
38738 2004-08-10 11:39  pbartok
38739
38740         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38741           - Added GetWindowPos method
38742
38743 2004-08-10 11:36  pbartok
38744
38745         * XplatUIWin32.cs:
38746           - Implemented several methods
38747
38748 2004-08-10 09:47  jackson
38749
38750         * TrackBar.cs: Allow control to handle buffering
38751
38752 2004-08-10 09:41  jackson
38753
38754         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
38755
38756 2004-08-10 09:24  jackson
38757
38758         * Label.cs, LinkLabel.cs: Let Control handle buffering.
38759
38760 2004-08-10 09:09  jackson
38761
38762         * StatusBar.cs: Let Control handle all the buffering.
38763
38764 2004-08-10 09:08  jackson
38765
38766         * Control.cs: Control will now handle the buffering code, so each
38767           control does not have to implement this.
38768
38769 2004-08-10 08:34  jackson
38770
38771         * XplatUIDriver.cs: Use default colors from the theme
38772
38773 2004-08-09 17:12  pbartok
38774
38775         * ImageList.cs:
38776           - Fixed several bugs Ravindra pointed out
38777
38778 2004-08-09 16:11  pbartok
38779
38780         * Control.cs:
38781           - Added incomplete dock layout code
38782           - Added support for mouse wheel
38783
38784 2004-08-09 16:09  pbartok
38785
38786         * XplatUIX11.cs:
38787           - Added handling for middle and right mousebutton
38788           - Added handling for mouse wheel
38789           - Added handling for key state and mouse state and position
38790           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
38791           messages
38792
38793 2004-08-09 15:40  jackson
38794
38795         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
38796           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
38797           checkin
38798
38799 2004-08-09 15:37  jackson
38800
38801         * StatusBar.cs: Initial implementation of StatusBar
38802
38803 2004-08-09 15:36  jackson
38804
38805         * ITheme.cs: Add support for drawing status bar and getting status
38806           bar item sizes
38807
38808 2004-08-09 15:35  pbartok
38809
38810         * MouseButtons.cs:
38811           - Fixed values
38812
38813 2004-08-09 15:34  jackson
38814
38815         * ThemeWin32Classic.cs: Add support for drawing status bar and get
38816           status bar item sizes
38817
38818 2004-08-09 15:21  jackson
38819
38820         * ThemeWin32Classic.cs: Use known colors for default control
38821           colours
38822
38823 2004-08-09 15:12  jackson
38824
38825         * ThemeWin32Classic.cs: Make the default font static, it is static
38826           in control so this doesn't change functionality and creating fonts
38827           is sloooooow.
38828
38829 2004-08-09 14:56  pbartok
38830
38831         * X11Structs.cs:
38832           - Added GrabMode enum
38833
38834 2004-08-09 14:55  pbartok
38835
38836         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38837           - Removed Run method, was only required for initial development
38838
38839 2004-08-09 14:51  pbartok
38840
38841         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38842           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
38843           capture
38844
38845 2004-08-09 13:48  pbartok
38846
38847         * XplatUIX11.cs:
38848           - Fixed default sizing for child windows
38849
38850 2004-08-09 12:56  pbartok
38851
38852         * XplatUIX11.cs:
38853           - Added generation of WM_DESTROY message
38854           - Added handling of window manager induced shutdown
38855
38856 2004-08-09 11:31  jackson
38857
38858         * ThemeWin32Classic.cs: New names for control properties
38859
38860 2004-08-09 11:25  jackson
38861
38862         * Control.cs: Use new color names
38863
38864 2004-08-09 11:02  jackson
38865
38866         * XplatUI.cs: Get default window properties from the theme
38867
38868 2004-08-09 11:01  jackson
38869
38870         * ITheme.cs: The theme engine now controls default window
38871           properties
38872
38873 2004-08-09 11:00  jackson
38874
38875         * ThemeWin32Classic.cs: Add default window color properties
38876
38877 2004-08-09 10:17  jackson
38878
38879         * ThemeWin32Classic.cs: Use correct default back color
38880
38881 2004-08-09 10:05  jackson
38882
38883         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
38884           the theme now.
38885
38886 2004-08-09 09:56  jackson
38887
38888         * XplatUI.cs: Remove defaults, these are handled by the theme now.
38889
38890 2004-08-09 09:54  jackson
38891
38892         * Control.cs: Get default properties from the theme.
38893
38894 2004-08-09 09:53  jackson
38895
38896         * ITheme.cs: Themes now handle default control properties
38897
38898 2004-08-09 09:53  jackson
38899
38900         * ThemeWin32Classic.cs: Themes now handle default control
38901           properties so coloring will be consistent
38902
38903 2004-08-08 16:54  jordi
38904
38905         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
38906
38907 2004-08-08 15:08  jordi
38908
38909         * XplatUIX11.cs: fixes keyboard crash
38910
38911 2004-08-08 13:47  jordi
38912
38913         * Label.cs: add cvs header info
38914
38915 2004-08-08 12:09  jackson
38916
38917         * ThemeWin32Classic.cs: Add pen_buttonface
38918
38919 2004-08-08 11:52  jordi
38920
38921         * Label.cs, LinkLabel.cs: [no log message]
38922
38923 2004-08-08 11:34  jordi
38924
38925         * ThemeWin32Classic.cs: Use Windows Standard Colours
38926
38927 2004-08-07 17:32  jordi
38928
38929         * TrackBar.cs: throw exceptions of invalid enums values
38930
38931 2004-08-07 17:31  jordi
38932
38933         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
38934           draw method name
38935
38936 2004-08-07 16:56  jackson
38937
38938         * HorizontalAlignment.cs: Initial checkin
38939
38940 2004-08-07 13:16  jordi
38941
38942         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
38943           methods
38944
38945 2004-08-07 13:05  jordi
38946
38947         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
38948           GetSysColor defines
38949
38950 2004-08-06 18:01  pbartok
38951
38952         * ThemeWin32Classic.cs:
38953           - Fixed some rounding issues with float/int
38954
38955 2004-08-06 18:00  jackson
38956
38957         * DockStyle.cs, AnchorStyles.cs:
38958
38959                   Add flags and serializable attributes.
38960
38961 2004-08-06 17:46  pbartok
38962
38963         * XplatUIX11.cs:
38964           - Implemented GetParent
38965
38966 2004-08-06 17:18  pbartok
38967
38968         * TrackBar.cs:
38969           - Fixed some rounding issues with float/int
38970
38971 2004-08-06 17:17  pbartok
38972
38973         * X11Structs.cs, XplatUIX11.cs:
38974           - Fixed Refresh and Invalidate
38975
38976 2004-08-06 15:30  pbartok
38977
38978         * Control.cs, X11Structs.cs, XplatUIX11.cs:
38979           - Fixed recursive loop when resizing
38980           - Improved/fixed redrawing on expose messages
38981
38982 2004-08-06 09:53  jordi
38983
38984         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
38985           keyboard navigation
38986
38987 2004-08-06 08:02  pbartok
38988
38989         * X11Structs.cs, XplatUIX11.cs:
38990           - Fixed reparenting
38991           - Fixed window border creation
38992
38993 2004-08-05 15:38  pbartok
38994
38995         * XplatUIX11.cs:
38996           - Attempted fix for reparenting problems
38997
38998 2004-08-04 15:14  pbartok
38999
39000         * Control.cs:
39001           - Fixed Invalidation bug (calculated wrong client area)
39002           - Added ClientSize setter
39003
39004 2004-08-04 15:13  pbartok
39005
39006         * Form.cs:
39007           - Added AutoScale properties
39008
39009 2004-08-04 15:13  pbartok
39010
39011         * SWF.csproj:
39012           - Added latest files
39013
39014 2004-08-04 14:11  pbartok
39015
39016         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39017           XplatUIX11.cs:
39018           - Added Invalidate handling
39019
39020 2004-08-03 17:09  jordi
39021
39022         * XplatUIDriver.cs: fixes spelling mistake
39023
39024 2004-07-27 09:53  jordi
39025
39026         * TrackBar.cs: fixes trackbar events, def classname, methods
39027           signature
39028
39029 2004-07-27 09:29  jordi
39030
39031         * ScrollBar.cs: fixes scrollbar events
39032
39033 2004-07-27 04:38  jordi
39034
39035         * Control.cs: changes to be able to run winforms samples
39036
39037 2004-07-26 11:42  jordi
39038
39039         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39040           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39041
39042 2004-07-26 05:41  jordi
39043
39044         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39045           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39046           implementation
39047
39048 2004-07-22 09:22  jordi
39049
39050         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39051           check link overlapping, implement events, and fixes
39052
39053 2004-07-21 10:28  jordi
39054
39055         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39056
39057 2004-07-21 10:19  jordi
39058
39059         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39060           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39061           LinkLabelLinkClickedEventArgs.cs,
39062           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39063           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39064           implementation
39065
39066 2004-07-19 13:09  jordi
39067
39068         * Control.cs, Label.cs: label control re-written: added missing
39069           functionlity, events, and properties
39070
39071 2004-07-19 10:49  jordi
39072
39073         * Control.cs: fixes SetBounds logic
39074
39075 2004-07-19 01:29  jordi
39076
39077         * Control.cs: Call RefreshWindow only if the window has created
39078
39079 2004-07-15 14:05  pbartok
39080
39081         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39082           - Implemented ImageList and ImageList.ImageCollection classes
39083           - Added ColorDepth enumeration
39084           - Updated SWF VS.Net project
39085
39086 2004-07-15 11:06  jordi
39087
39088         * XplatUIStructs.cs: added MsgButons enum
39089
39090 2004-07-15 11:03  jordi
39091
39092         * Control.cs: added basic mouse handeling events
39093
39094 2004-07-15 03:38  jordi
39095
39096         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39097           Vertical TrackBar control implementation
39098
39099 2004-07-13 09:33  jordi
39100
39101         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39102
39103 2004-07-13 09:31  jordi
39104
39105         * Control.cs, Form.cs: commit: new properties and fixes form size
39106           problems
39107
39108 2004-07-09 14:13  miguel
39109
39110         * ProgressBar.cs: Spelling
39111
39112 2004-07-09 11:25  pbartok
39113
39114         * ProgressBar.cs:
39115           - Removed usage of Rectangle for drawing. Miguel pointed out it's
39116           faster
39117
39118 2004-07-09 11:17  miguel
39119
39120         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
39121
39122                 * ProgressBar.cs: Fixed spelling for `block'
39123
39124                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39125                 style guidelines.
39126
39127                 Avoid using the += on rect.X, that exposed a bug in the compiler.
39128
39129 2004-07-08 23:21  pbartok
39130
39131         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
39132           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
39133           BaseCollection.cs, Binding.cs, BindingContext.cs,
39134           BindingMemberInfo.cs, BindingsCollection.cs,
39135           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
39136           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
39137           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
39138           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
39139           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
39140           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
39141           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
39142           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
39143           FrameStyle.cs, GiveFeedbackEventArgs.cs,
39144           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
39145           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
39146           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
39147           InputLanguageChangedEventArgs.cs,
39148           InputLanguageChangedEventHandler.cs,
39149           InputLanguageChangingEventArgs.cs,
39150           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
39151           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
39152           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
39153           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
39154           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
39155           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
39156           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
39157           QueryAccessibilityHelpEventArgs.cs,
39158           QueryAccessibilityHelpEventHandler.cs,
39159           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
39160           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
39161           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
39162           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
39163           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
39164           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
39165           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
39166           XplatUIX11.cs, lang.cs:
39167           - Initial check-in
39168
39169