2009-03-06 Ivan N. Zlatev <contact@i-nz.net>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>
2
3         * DataGridView.cs: Be compatible with MS in that the scroll to 
4         selection has a synchronous effect. The trick here is that in 
5         order to avoid unnecessary calculations each time a row/column 
6         is added/removed we recalculate the whole grid size just before 
7         just before the scroll to selection.
8         [Fixes bug #482478]
9
10 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
11
12         * RichTextBox.cs: LoadFile(string path) should pass by default
13         RichTextBoxStreamType.RichText, without caring about the detection or
14         extension of the file.
15
16 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17
18         * RichTextBox.cs: When calling LoadFile, remove the extra EOL
19         introduced by StreamReader, since it will convert the EOF to an EOL.
20         Fixes #479646.
21
22 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
23
24         * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
25         preferred size twice.
26
27 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
28
29         * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
30         string if we aren't on a ToolStripDropDownMenu.
31
32 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
33
34         * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
35         code from Item to Button.  Patch from Alex Shulgin.
36
37 2009-03-05  Jonathan Pobst  <monkey@jpobst.com>
38
39         * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
40         * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
41         not a ToolStripDropDown.
42         * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
43
44 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
45
46         * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
47
48           Based on a patch by Tom Hindle <tom_hindle@sil.org>
49           [Fixes bug #482133]
50
51 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
52
53         * DataGridView.cs, DataGridViewElement.cs: 
54            - Always calls OnDataGridViewChanged() if the new DGV is 
55            not the same/null as the current one.
56            - Do not throw NREs when setting TopLeftHeaderCell to null
57            - Unset the DGV for TopLeftHeaderCell when replacing it
58           Based on a patch by Tom Hindle <tom_hindle@sil.org>
59           [Fixes bug #481681]
60
61 2009-03-04  Jonathan Pobst  <monkey@jpobst.com>
62
63         * ToolStripDropDown.cs: When dismissing control due to ESC, don't
64         hit a NRE if we are a ContextMenuStrip and do not have a parent.
65         [Fixes bug #478616]
66
67 2009-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
68
69         * ListView.cs: When removing items from a ListViewItemCollection
70         contained in ListView (not in ListViewGroup), before actually removing
71         the items remove them also from their -if any- associated groups. If
72         the item is present in ListViewGroup.Items but not in ListView.Items,
73         then don't remove it - this is *exactly* what .net seems to do.
74         Fixes the remaining bits of #478689.
75
76 2009-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
77
78         * ListView.cs: In our MouseDown handler in ItemControl use the item in
79         the very specific *real* position where the mouse was pressed, using
80         GetItemAtDisplayIndex for that purpose, instead of directly accessing
81         Items - this is specially useful when groups with Details view is
82         used. This is what we do in other places when using groups.
83         Fixes part of #478689.
84
85 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
86
87         * MaskedTextBox.cs: Properly replace selection when a new valid key
88         is pressed - even when IsOverwriteMode is false. This is what .net
89         does.
90
91 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
92
93         * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
94         true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace, 
95         since Set will keep the previous value in case of error (just what we
96         need), but still call MaskedTextProvider.Clear if
97         RejectOnFirstFailure is false - match .net.
98
99 2009-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
100
101         * MaskedTextBox.cs: When setting Text use the very precise algorithm
102         that .net uses: iterate over every char of the new value, trying to
103         use every char, and use a normal call to MaskedTextProvider.Replace
104         call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
105         in case of error in both cases, as well.
106         Fixes #477408.
107
108 2009-02-25  Neville Gao  <nevillegao@gmail.com>
109
110         * ColorDialog.cs: Added UIA Framwork Property:
111         UIASelectedSmallColorControl.
112
113 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
114
115         * MaskedTextBox.cs: Forgot to update the call of the new method
116         introduces in the previous patch.
117
118 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
119
120         * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
121         key. Also create a new method to avoid code duplication between
122         OnKeyDown and OnKeyPress.
123         Fixes #477388.
124
125 2009-02-24  Ivan N. Zlatev  <contact@i-nz.net>
126
127         * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected 
128         or deselected.
129         [Fixes bug #479124]
130
131 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
132
133         * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
134         actually inversed, so put it the right way. Also, don't automatically
135         look for the next editable item after adding a new one, but way for
136         the next insertion (this is what .net does) - this is not needed when
137         MaskedTextProvider.InsertAt is called however, since it already looks for the
138         next editable position.
139         Fixes the remaining bits of #477383.
140
141 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
142
143         * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
144         MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
145         property after the text was modified, adjust the testPosition value
146         depending on what method was called.
147         Fixes part of #477383.
148
149 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
150
151         * ListView.cs: For EnsureVisible, adjust the view port bounds based on
152         the existence of the column headers, as well as using this information
153         to adjust the vscrollbar value, so items never get hidden by the
154         column headers.
155         Fixes #478498.
156
157 2009-02-23  Ivan N. Zlatev  <contact@i-nz.net>
158
159         * DataGridView.cs: Make the ScrollBars property work properly.
160
161 2009-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
162
163         * TextBox.cs: Some code lifting for AutoComplete's support. First,
164         when handling non-navigation keys, save the original Text typed by the
165         user, and don't motify it BEFORE. This was a design mistake, since the
166         re-assignation happens only when navigating the append/suggest list,
167         not while creating the matches. Also, process the Delete key just like 
168         the backspace one. Finally, when handling WM_CHAR, ignore both Escape
169         and Enter keys.
170         Fixes some missing bits of #469967.
171
172 2009-02-22  Ivan N. Zlatev  <contact@i-nz.net>
173
174         * DataGridView.cs: Fix row removal in the data-bound scenario.
175
176 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
177
178         * DataGridViewCell.cs: Use strict equality comparison in order to 
179         prevent superfluous CellValueChanged events.
180
181 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
182
183         * DataGridView.cs: Do not reset the columns when the data list changes, 
184         but only the rows. Fixes multiple bugs related to sorting, custom 
185         column styles being reset and more.
186
187 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
188
189         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
190         drawing the image.
191
192 2009-02-18  Andrés G. Aragoneses  <aaragoneses@novell.com>
193
194         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
195
196 2009-02-17  Andrés G. Aragoneses  <aaragoneses@novell.com>
197
198         * ToolBarButton.cs: Event for Enabled property (needed to fix
199           UIA #474197).
200
201 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
202
203         * TextBox.cs: When handling WndProc with autocomplete activated,
204         event if the new text is not causing any change in the look up
205         algorithm, save it as we normally do when numbers and letters.
206         Fixes #469967.
207
208 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
209
210         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
211         Invalidate the proper bounds in the TreeView, not only resetting the
212         width.
213         Fixes #475542.
214
215 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
216
217         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
218         BackColor property. This is what .net does in both 1.1 and 2.0.
219         * TreeView.cs: When selected_node is not the same as highlighted_node,
220         we need to handle the back color in a different way, trying to use the
221         node's BackColor if it's not Color.Empty.
222         Fixes #464200.
223
224 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
225
226         * TreeView.cs: When canceling selection in our MouseUp handler,
227         invalidate also the previous selected node bounds.
228         Fixes #464191.
229
230 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
231
232         * DataGridView.cs: End or if end fails then cancel the current edit 
233         operation before clearing the data source.
234
235 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
236
237         * DataGridView.cs: Data-bind only after the handle is created.
238         [Fixes bug #473680]
239
240 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
241
242         * TreeView.cs: When handling the MouseMove event, check if
243         focused_node and selected_node fields are null - usually they are non
244         null, since we have always a selected node, but canceling selection by
245         handling BeforeSelect event leaves the two of them as null.
246         Fixes #470451.
247
248 2009-02-06  Neville Gao  <nevillegao@gmail.com>
249
250         * TabControl.cs: Control enabled to support accessibility.
251         [Fixes Bug #472428]
252
253 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
254
255         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
256            - Use ArrayList.Insert instead of the Item property so that the item 
257            is actually inserted and not an existing item replaced.
258            - Call DataGridView.OnRowsAddedInternal and drop internal from 
259            OnRowsAdded for binary compitability. This also fixes several 
260            redrawing issues.
261         [Fixes bug #472968]
262
263 2009-02-05  Andrés G. Aragoneses  <aaragoneses@novell.com>
264
265         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
266           the value.
267
268 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
269
270         * ToolBarButton.cs: Add another event (OnUIATextChanged).
271
272 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
273
274         * ToolBarButton: Fix typo in previous commit (r125704).
275
276 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
277
278         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
279         when a button gets focus, firing the events from the ToolBar.
280         r: jpobst
281
282 2009-02-04  Mario Carrion  <mcarrion@novell.com>
283
284         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
285         Width.
286         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
287         ColumnHeader to raise ColumnWidthChanged.
288         [Fixes Bug #467086]
289
290 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
291
292         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
293         code in the row collection code, so that the completion happens before 
294         the CollectionChanged event, also better encapsulation.
295         [Fixes bug #471987]
296
297 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
298
299         * DataGridView.cs: When editing is finished do not remove the editing 
300         row, because it has already become a real one. Instead add a new one.
301         [Fixes bug #471754]
302
303 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
304
305         * TreeView.cs: When drawing the node's image, check that the index
306         specified by the node is valid for the ImageList.
307         Fixes #471094.
308
309 2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>
310
311         * ToolBar.cs: Add new UIAPerformClick method to be called by
312         UIAutomationWinforms when someone calls Invoke() on the
313         ToolBarButtonProvider. r: jpobst
314
315 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
316
317         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
318         MapNotify/UnmapNotify events - we are already firing those events in
319         the proper places, so we avoid this way to send the same message two
320         times. I'm leaving the handling code in case we could break something
321         in the future, as this change seems dangerous (but needed).
322         Fixes #467546.
323
324 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
325
326         * DataGridView.cs: Complete incomplete rows when they are added to 
327         the grid.
328         [Fixes bug #471068]
329
330 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
331
332         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
333         binding is cleared prior to setting it to null. Fixes a regression 
334         causing exceptions when the DataSource is set to null and then set 
335         again to a data source.
336
337 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
338
339         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
340            - Make Image/Bitmap cells work.
341            - Handle images with size greater than the cell.
342            - Default to MiddleCenter alignment for image cells.
343         [Fixes bug #471101]
344
345 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
346
347         * UpDownBase.cs: Force Height to PreferredHeight.
348
349 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
350
351         * XplatUIX11.cs: We should use utf8 handling clipboard transference
352         with other x11 applications, and use utf16 when handling clipboard
353         data in the class library. Update the related points as well.
354         Fixes #468683.
355
356 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
357
358         * DataGridViewCell.cs: Format strings according to the supplied 
359         CellStyle.Format.
360         [Fixes bug #470384]
361
362 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
363
364         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
365         addition or removal. Fixes multiple crashes in OnMouseMove.
366
367 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
368
369         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
370
371 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
372
373         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
374         current context.
375         [Fixes bug #469239]
376
377 2009-01-26  Andreia Gaita  <avidigal@novell.com>
378
379         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
380         won't be disabled by default.
381         Fixes #468690
382
383 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
384
385         * DataGridView.cs: Do not clear the rows if we are not databound.
386
387 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
388
389         * DataGridView.cs: Do not be too smart about selecting the first cell 
390         when the first row is added as this is not what MS does. Fixes the 
391         failing unit tests.
392
393 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
394
395         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
396         take into account the fact that OpenTreeNodeEnumerator needs to call
397         MoveNext/MovePrevious to actually put the passed node as the one
398         retrieved in Current. This way this property should work as really
399         expected in .net.
400         Fixes part of #467225.
401
402 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
403
404         * TreeView.cs: When calculating the scrollbars, don't use
405         TreeNode.Bounds, since it still can have the values of the previous
406         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
407         could not have been updated as well-, and use the actual number of
408         visible number of nodes to compute the height needed to contain all
409         the nodes. Also reset the value of vbar to 0 when disabled - this way
410         we make sure that, when re-enabled, it will update the visible area of
411         the treeview, even if the previous value before disabling it is the
412         same as now. Finally don't do anything for the vbar.ValueChanged
413         handler - for the case wheer we manually set the value but don't the
414         vbar is disabled already.
415         Fixes part of #467225.
416
417 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
418
419         * ToolStrip.cs: Switch from foreach to for, in case the collection
420         somehow changes while enumerating it.
421
422 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
423
424         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
425         editing control.
426
427 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
428
429         * DataGridView.cs: Fix new row adding/editing in the non-databound 
430         scenario.
431
432 2009-01-21  Mike Gorse  <mgorse@novell.com>
433
434         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
435           use them.
436           Added UIAValueParamChangedEvent.
437
438 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
439
440         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
441         of trying to set as top node the highest parent of the previous top
442         node. Moving to the bottom of the TreeView after a call to CollapseAll
443         is exactly what .net does. This should avoid some nasty issue when
444         CollapseAll is called and we don't need the vertical scroll bar.
445
446 2009-01-21  Mario Carrion <mcarrion@novell.com>
447
448         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
449         and UIATopMostChanged.
450
451 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
452
453         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
454         UIAEnabledChanged, and UIATextChanged events.
455
456         * Form.cs: Add UIAMenuChanged event.
457
458         * Menu.cs:
459         * MenuAPI.cs: Note which internal APIs are being used by UIA.
460
461 2009-01-21  Neville Gao  <nevillegao@gmail.com>
462
463         * ToolBar.cs: Control enabled to support accessibility.
464         [Fixes Bug #455950]
465
466 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
467
468         * TreeView.cs: When handling mouse up event, check whether
469         highlighted_node is null or not - usually it should be non-null
470         alwaays, since the mouse down handler sets it, but some externa
471         operations, such TreeNodeCollection.Clear, could set it to null.
472         Fixes #438650.
473
474 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
475
476         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
477         item is disabled.
478
479 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
480
481         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
482         [Fixes bug #467285]
483
484 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
485
486         * MonthCalendar.cs: When handling the selection changes using the
487         mouse, don't set SelectionRange if the selection range didn't actually
488         change. This matters because, even if we set the range to the same
489         previous range, an extra DateChanged event is fired. Just to be clear:
490         SelectionRage property doesn't check whether the new value is
491         different to the previous one (by ref equals doesn't work here).
492         Fixes other bits of #364914.
493
494 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
495
496         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
497         selection using the keyboard, since we are already firing this event
498         when setting SelectionRange. Also don't set SelectionRange if the
499         previous and the new value are the same (the property, just as .net
500         does, doesn't check whether the previous value and the new one are the
501         same). This saves us from firing OnDateChanged event if the selection
502         range didn't change actually.
503         Fixes the remaining bits of #364914.
504
505 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
506
507         * ListBox.cs: When removing an item and the last item is selected,
508         remove it from the selection, and if selection mode is One try to
509         select the new last item.
510         Fixes #465422.
511
512 2009-01-16  Mike Gorse  <mgorse@novell.com>
513
514         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
515
516 2009-01-16  Mario Carrion <mcarrion@novell.com>
517
518         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
519         when changing Text. 
520
521 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
522
523         * X11Structs.cs:
524         * XplatUIX11.cs: Properly encode/decode the unicode strings we
525         store/retrieve in the Clipboard. Also, since we try to convert the
526         data to different formats, separate the source and the result of
527         it, so we can always fallback to the original and don't mix wrong
528         conversions.
529
530 2009-01-16  Mike Gorse  <mgorse@novell.com>
531
532         * TextControl.cs: Add UIASelectionChanged event.
533
534 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
535
536         * DataGridView.cs: Forward the first key events to the editing control.
537         [Fixes bug #457307]
538
539 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
540
541         * Application.cs: Oops, launch the copied handler of PreRun instead of
542         the global one (gendarme would bark otherwise). (Improving r123375)
543
544 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
545
546         * XplatUI.cs:
547         * Application.cs: Move the PreRun event fire to the end of the XplatUI
548         static ctor (we don't move the PreRun event to this class because its
549         usage would cause the call to the static ctor). This way we can get
550         a11y support for dialogs that run without App.Run.
551
552 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
553
554         * ListView.cs: New internal property to know the inner array's length of
555         the location of items, in order to avoid a try-catch strategy for the
556         case when this array has not been resized yet (for reference, look at
557         r123288). r: jpobst
558
559 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
560
561         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
562         reflection calls. This requires UIAutomationWinforms r123213.
563
564 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
565
566         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
567         handlers and fire the DateSelected event until MouseUp is reached,
568         like .net does, instead of firing it for each mouse event.
569         Fixes part of #364914.
570
571 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
572
573         * TreeView.cs: When the selection gets canceled using the BeforeSelect
574         event, invalidate the previous highlighted_node bounds, to show the
575         user that the item was *not* selected.
576         Fixes #464191.
577
578 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
579
580         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
581         well as -in DropDown and Simple modes- writing in the textbox should
582         try to set the requested item as the top one, but navigating with the
583         keyboard and handling mouse selection don't need that behaviour. Also,
584         when resetting selected_index handling key press events, reset
585         ComboListBox.HighlightIndex. 
586         Fixes the remaining bits of #464188.
587
588 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
589
590         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
591         there are no cells:
592            - CurrentCellAddress should be -1, -1 and not 0, 0.
593            - Be tolerant and fall back to clearing the current cell if either 
594            column or row is -1 in MoveCurrentCell.
595            - Misc. more -1 checks.
596
597 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
598
599         * DataGridView.cs: Preserve the column index. Fixes a regression 
600         introduced by the data binding position tracking code.
601
602 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
603
604         * DataGridView.cs: If the bottom of the row matches the client height 
605         do not regard the row as partially visible. Fixes the weird scrolling 
606         when there is no scrollbar.
607
608 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
609
610         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
611
612 2009-01-09  Mario Carrion  <mcarrion@novell.com>
613
614         * MessageBox.cs: Fixed internal UIAIconRectangle property.
615
616 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
617
618         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
619
620 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
621
622         * DataGridView.cs: Track the Position in the CurrencyManager.
623
624 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
625
626         * DataGridView.cs: Implement data-bound new item editing/addition.
627         * DataGridViewRowCollection.cs: Make it possible for us to internally 
628         remove the edit row.
629         [Fixes bugs #457107, #457308, #325240]
630
631 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
632
633         * CurrencyManager.cs: Even if Position is set to a greater value than the 
634         list count reset it to position of the last item.
635
636 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
637
638         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
639         Fix that in order to make CancelNew to work.
640
641 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
642
643         * BindingSource.cs: When adding a new item try to delegate to the internal 
644         list first before throwing an exception.
645
646 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
647
648         * ComboBox.cs: When setting the text and adjusting the top_item, do it
649         *only* if the current item is *not* visible already.
650         Fixes part of #464188.
651
652 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
653
654         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
655         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
656         Fix that.
657         [Fixes bug #464493]
658
659 2009-01-08  Brad Taylor  <brad@getcoded.net>
660
661         * ComboBox.cs: Expose a few private fields as internal UIA properties.
662
663 2009-01-07  Mario Carrion <mcarrion@novell.com>
664         
665         * DataGrid.cs: CWL removed.
666
667 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
668
669         * RadioButton.cs: When setting Checked, we should first update the
670         check state of the current RadioButton, as well as invalidating it,
671         and after that actually update the siblings. This is done to match
672         .net.
673         Fixes the remaining bits of #463028.
674
675 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
676
677         * RadioButton.cs: Setting Checked to false should set TabStop to stop
678         as well. Also, when we get the focus and no other RadioButton is
679         selected in the parent control, we should mark ourselves as Checked.
680         Fixes part of #463028.
681
682 2009-01-05  Mario Carrion <mcarrion@novell.com>
683
684         * DataGrid.cs: UIA suppport. internal events: 
685         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
686         UIASelectionChanged, UIACollectionChanged. Internal properties: 
687         UIARowHeight, UIACellsArea, UIACaptionArea, 
688         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
689         UIAVScrollBar and UIAHScrollBar.
690
691 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
692
693         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
694         of the buttons are set to Overflow = Always.
695         [Fixes bug #463013]
696
697 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
698
699         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
700         based on whether the binding source is availble or not. Fixes #463008.
701
702 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
703
704         * DataGridViewCell.cs: We should return a value even if we are not bound 
705         to a DataGridView.
706
707 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
708
709         * CurrencyManager.cs, DataGrid.cs: 
710            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
711            concept of "rows".
712            - Add two more internal properties AllowRemove and AllowEdit.
713         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
714         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
715         CurrencyManager data source.
716
717 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
718
719         * DataGridView.cs: Fix crashes caused by assigning negative values to 
720         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
721         the column/row heights/widths.
722         [Fixes bug #462684]
723
724 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
725
726         * DataGridView.cs: Non-autogenerated columns that have a data property 
727         set that exists in the current datasource should be set to be data-bound.
728
729 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
730
731         * DataGridView.cs: Fix column sorting for columns containing null 
732         values. A "null" value is not always "null" (e.g could be String.Empty) 
733         and thus parsing numeric types throwed an exception for "null" values.
734
735 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
736
737         * DataGridView.cs: Detach the editing control when the edit is 
738         finished.
739
740 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
741
742         * DataGridView.cs: Multiple fixes to handle last column/row removal 
743         and cell movement after that instead of throwing exceptions.
744
745 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
746
747         * DataGridViewCellCollection.cs: When cells are removed the column 
748         indices become invalid if the cell is not the last one and have to 
749         be refreshed.
750
751 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
752
753         * DataGridView.cs: Return false in CommitEdit if there was an error.
754
755 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
756
757         * DataGridView.cs: Remove a leftover Console.WriteLine.
758
759 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
760
761         * DataGridViewRow.cs: Access the indexer of the data manager directly 
762         instead of the internal list.
763
764 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
765
766         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
767         Rewrite the value getting, setting, parsing, formatting logic:
768            - If data-bound value get/set should actually get and set from the 
769              data source.
770            - Make proper usage of TypeConverters for value parsing/formatting.
771            - Raise DataError if setting the new value fails.
772            - Get rid off the internal valueType field and get/set the ValueType 
773            property instead.
774         [Fixes bug #462051]
775
776 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
777
778         * DataGridView.cs: Rewrite the DataBinding layer:
779            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
780            specific code.
781            - Get rid off the per DataSource type column autogeneration code.
782            - Use the CurrencyManager for everything that is DataBinding related.
783
784 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
785
786         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
787
788 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
789
790         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
791         DataManager to fetch the CurrencyManager for the DataGridView and to 
792         spare this logic for the other components to follow.
793
794 2008-12-31  Mario Carrion  <mcarrion@novell.com>
795
796         * MessageBox.cs: UIA support: new properties: UIAMessage, 
797         UIAMessageRectangle and UIAIconRectangle.
798
799 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
800
801         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
802         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
803
804 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
805
806         * DataGridView.cs: Do not autogenerate duplicate column for a 
807         data member that has already problematically been assigned one.
808         [Fixes bug #457305]
809
810 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
811
812         * ProfessionalColorTable.cs: Better detection of user's theme.
813         [Fixes bug #462766]
814
815 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
816
817         * DataGridView.cs: In the case where there are no autogenerated 
818         columns and the user adds columns problematically we must generate 
819         the rows after the very first column is added.
820
821 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
822
823         * DateTimePicker.cs: When increasing/decreasing the value of month
824         with ShowUpDown set to true, moving from december to january, and
825         moving from january to december should adjust the year to the next and
826         the previous year, respectively.
827         Fixes the remaining bits of #459674.
828
829 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
830
831         * DataGridView.cs: If a new cell is selected edit mode should be 
832         immediately enabled only if EditOnEnter is set. Whether the mouse 
833         or not was used to select the cell is irrelevant.
834
835 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
836
837         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
838         recursive rebinding.
839
840 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
841
842         * DateTimePicker.cs: Handle the "MMMM" month format.
843         Fixes #459674.
844
845 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
846
847         * DataGridView.cs: 
848            - Make ReBind private and refactor various calls to call ReBind 
849            instead of ClearBinding/DoBinding
850            - Rebind when the column collection changes
851         * DataGridViewColumnCollection.cs: 
852            - Leave the rebinding on change to be handled by the DataGridView.
853
854 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
855
856         * DataGridView.cs: Add a ReBind convenience method.
857         * DataGridViewColumnCollection.cs: Rebind when a column is added.
858         [Fixes bug #462019]
859
860 2008-12-23  Neville Gao  <nevillegao@gmail.com>
861
862         * StatusBar.cs: Modified argument variable.
863         * SplitContainer.cs: Control enabled to support accessibility.
864         [Fixes Bug #455950]
865
866 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
867
868         * ToolStripMenuItem.cs: Guard against an NRE.
869         [Fixes bug #457110]
870
871 2008-12-22  Mario Carrion  <mcarrion@novell.com>
872
873         * Control.cs: AccessibleXXXX properties don't return 
874         AccessibleObject.XXXX, instead a local referece is returned.
875
876 2008-12-22  Neville Gao  <nevillegao@gmail.com>
877
878         * PrintPreviewControl.cs: Added internal properties to support
879         accessibility.
880         [Fixes Bug #459699]
881
882 2008-12-19  Mario Carrion  <mcarrion@novell.com>
883
884         * Control.cs: Reverted r121561. 
885
886 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
887
888         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
889         it has been moved to the bridge.
890
891 2008-12-18  Brad Taylor  <brad@getcoded.net>
892
893         * DateTimePicker.cs: Add a few UIA specific events, and a couple
894         internal methods useful for UIA.
895
896 2008-12-18  Mario Carrion <mcarrion@novell.com>
897
898         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
899         [Fixes Bug #455752]
900
901 2008-12-17  Mike Gorse  <mgorse@novell.com>
902
903         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
904           item's Focused property is set.
905
906 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
907
908         * TreeView.cs:
909         * TreeNode.cs:
910         * TreeNodeCollection.cs: Add events for UIA support:
911         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
912         UIACollectionChanged.
913
914 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
915
916         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
917           SubItemStyle member field. 
918
919         Contributed under MIT/X11 license.
920
921 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
922
923         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
924         y coord, since it's useless in this case, and we need to rely only on
925         the number of rows and ItemHeight to compute this value.
926         Fixes part of #257471.
927
928 2008-12-15  Mike Gorse  <mgorse@novell.com>
929
930         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
931
932 2008-12-15  Mario Carrion  <mcarrion@novell.com>
933
934         * Control.cs: Accessibility properties instantiate AccessibilityObject when
935         needed.
936         [Fixes Bug #459223]
937
938 2008-12-15  Brad Taylor  <brad@getcoded.net>
939
940         * ToolStripItem.cs: Add a UIA specific event for listening for when a
941         ToolStripItem becomes selected or deselected.
942
943 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
944
945         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
946         .net does. Use the date in the point of the mouse move coords as the
947         new range as well, if the left button of the mouse is being pressed.
948         Fixes #364914.
949
950 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
951
952         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
953         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
954         effectively repaint the control.
955         Fixes the remaining bits of #417961.
956
957 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
958
959         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
960         range to contain only dates within the new possible range.
961         Fixes part of #417961.
962
963 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
964
965         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
966         length of the text, but the end position, so we need to substract 1 to
967         have a valid value. Also, in the same InputText method, don't use
968         SelectionLength as the length of the text, since the selected text
969         could actually be empty, but we need to set the value anyway.
970         Fixes #457370.
971
972 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
973
974         * TextBox.cs: Don't do any auto complete task if the custom source is
975         null or empty. Also avoid duplication of code.
976         Fixes #457743.
977
978 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
979
980         * DataGridView.cs: Refresh column sizes when new rows are added.
981         [Fixes bug #457050]
982
983 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
984         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
985         Split to create a line - we are already doing this, by _adding_ a new
986         one when rtf_cursor_x is 0 (this field gets this value just after we
987         receive the newline param as true). This avoids having a proportional number
988         of empty lines in the end of the rich text box.
989         Fixes #396664.
990
991 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
992
993         * RichTextBox.cs: When saving the contents as a plain text, don't add
994         a new line for every Line structure, since the data in Document
995         already contains the new line characters. This avoids duplicated new
996         lines using the Save methods.
997         Fixes #445618.
998
999 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1000
1001         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1002         framework.  Fixes bug #457678.
1003
1004 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1005
1006         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
1007         where datasource is null.
1008         [Fixes exception reported in bug 441240]
1009
1010 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1011
1012         * DataGridView.cs: EndEdit validation fixes.
1013
1014 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1015
1016         * DataGridView.cs: This is the cool patch that adds support for 
1017         actually updating the data in the databinding backend after editing. 
1018         With bonus firing and handling the DataError event.
1019
1020 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1021
1022         * Line.cs: When calculating the text tags's Shift value, store it as
1023         pixels instead of points. This way we can actually handle different
1024         fonts in the same RichTextBox, as well as the right size of the caret.
1025         Fixes part of #351938.
1026
1027 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1028
1029         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
1030         casted to CheckState causing InvalidCastExceptions.
1031
1032 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1033
1034         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
1035         to not depend on the item being clicked.
1036
1037 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1038
1039         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
1040         longer throws a NotImplementedException.
1041
1042 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1043
1044         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
1045         IDataGridViewEditingControl for editing.
1046
1047 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1048
1049         * DataGridViewComboBoxCell.cs: Implement data binding support.
1050
1051 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1052
1053         * DataGridView.cs: Use the CurrencyManager to update the data source 
1054         binding position instead of casting the data sourcde to BindingSource.
1055         This enables position updating for other type of data sources.
1056
1057 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1058
1059         * ComboBox.cs: Update the SelectedIndex before updating the Text 
1060         in OnDisplayMemberChanged.
1061
1062 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
1063
1064         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1065         [Fixes bug #457112]
1066
1067 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1068
1069         * DataGridView.cs: Sorting fixes:
1070            - Be strict when sorting is enabled.
1071            - If there is a data source delegate the sorting request.
1072
1073 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1074
1075         * Binding.cs: When converting the data also try with the destination 
1076         type typeconverter. This indirectly adds support for Nullable types 
1077         in our databinding layer.
1078
1079 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1080
1081         * DataGridView.cs: When cell editing is finished focus back the 
1082         DataGridView. Fixes keyboard navigation post-editing.
1083
1084 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1085
1086         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
1087         setting to after EndEdit is called for the old cell.
1088
1089 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1090
1091         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1092
1093 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1094
1095         * XplatUIX11.cs: Send WM_HELP only to the focused window.
1096
1097 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1098
1099         * CurrencyManager.cs: Fix exceptions when resetting the data source 
1100         for the same time (e.g. in ComboBox): 
1101            - Do not set the list position if we are still transferring data
1102            - When resetting the list firstly push the data then update the 
1103            binding.
1104         * Binding.cs: Check BindingManager.Position == -1 instead of 
1105         BindingManager.Current == null in order to avoid unexpected 
1106         exceptions.
1107
1108 2008-12-05  Brad Taylor  <brad@getcoded.net>
1109
1110         * MonthCalendar.cs: Add UIA specific events so that we can know when
1111         the selection changes, and when MaxSelectedCount changes.
1112
1113 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1114
1115         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
1116         used for anything.
1117
1118 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1119
1120         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
1121         to the control being drawn for the first time by:
1122            - Implement DisplayedRowsCount to not rely on the control being
1123            already painted. Also added support for the partial row flag.
1124            - Fix scrolling to take into account partial rows and scroll to
1125            them.
1126         [Fixes bug #456527]
1127
1128 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1129
1130         * DataGridView.cs: Do not reset the CurrentCell when the handle is
1131         created if the user has already set it.
1132
1133 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1134
1135         * DataGridView.cs: Fix CurrentCell to actually select the cell.
1136
1137 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1138
1139         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
1140         text and then let the underneath users of IDataObject interpret and
1141         parse by themselves. 
1142         Fixes #439251.
1143
1144 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1145
1146         * DataGridView.cs: Fix my previous commit to actually update what it 
1147         was supposed to.
1148
1149 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1150
1151         * DataGridView.cs: Ensure that when a row is removed the all the 
1152         current row/column/cell get updated. Fixes multiple exceptions.
1153
1154 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1155
1156         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
1157         is used.
1158         [Fixes bug #443560]
1159
1160 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1161
1162         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
1163         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
1164         new state.
1165         [Fixes issue 1 in bug #443560]
1166
1167 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1168
1169         * DataGridView.cs: Invalidate after the current row/column seletion 
1170         chagnes.
1171         [Fixes bug #438434]
1172
1173 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1174
1175         * DataGridView.cs: Refresh the data if the data list is reset, etc.
1176
1177 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1178
1179         * DataGridView.cs: Handle datasource state changes:
1180            - IBindingList - list changes
1181            - BindingSource - list changed and datasource changes
1182
1183 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1184
1185         * DataGridView.cs: Select the first cell when databound. 
1186         Visually select when CurrentCell is set.
1187
1188 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1189
1190         * DataGridView.cs: Set the current cell before raising CellClick.
1191
1192 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1193
1194         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
1195         CellLeave events as this is already done in SetCurrentCellAddressCore.
1196
1197 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1198
1199         * DataGridView.cs: Set the minimum size for the columns to be the 
1200         width of their header, so that the columns don't get squashed 
1201         all together.
1202
1203 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1204
1205         * DataGridView.cs: After the data is bound PerformLayout, so that 
1206         the columns get autosized.
1207
1208 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1209
1210         * DataGridView.cs: Move all currentCell setting code into 
1211         one central place - SetCurrentCellAddressCore. That way the 
1212         current cell is properly updated when programatically set.
1213         Fire RowEnter/Leave events.
1214
1215 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1216
1217         * DataGridView.cs: Update the CurrencyManager.Position, so that 
1218         when a BindingSource is used BindingSource.Current will be correct.
1219
1220 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1221
1222         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
1223            - No caption text is drawn because Color.Empty is used.
1224            - Fix top and height off by 1.
1225
1226 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1227
1228         * DataGridViewRow.cs: Implement DataBoundItem.
1229
1230 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1231
1232         * BindingSource.cs: Return null for Current if there is no data present.
1233
1234 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1235
1236         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
1237         menus using the arrow keys. Also when handling the left arrow key, don't 
1238         assign the current menu to the parent one, if the parent is null.
1239         Fixes #446392.
1240
1241 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
1242
1243         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
1244         #413501.
1245
1246 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1247
1248         * Scrollbar.cs:
1249         * ScrollableControl.cs: Simplify the code to manually set the size of
1250         the thum area, avoiding duplication of code, and also preserving the
1251         right value for different code paths - this can happen when size
1252         changes are made to the scrollbar after setting LargeChange, Maximum
1253         or related properties for the ScrollBar.
1254
1255 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1256
1257         * ScrollableControl.cs: When scrolling, don't invalidate the entire
1258         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
1259         what .Net does: copy the visible area, and only invalidate the part of
1260         the area that wasn't visible before scrolling.
1261         Fixes #441738.
1262
1263 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
1264
1265         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
1266         can clear ourselves when it is raised, we don't have a newrowindex
1267         if we don't have any columns.
1268         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
1269         re-index after each delete so the NewRow will have the correct index.
1270         [Fixes bug #448005]
1271
1272 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
1273
1274         * Form.cs: Don't change min/max size if it is empty.
1275         [Fixes bug #447873]
1276
1277 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1278
1279         * ScrollBar.cs:
1280         * ScrollableControl.cs: When the manual thumb size is used, the
1281         maximum allowed value should depend on that thumb size, instead of
1282         LargeChange (using the maximum - LargeChange + 1 value). But
1283         LargeChange should be used normally when incrementing/decrementing.
1284         Fixes the remaining part of #441546.
1285
1286 2008-11-23  Andreia Gaita  <avidigal@novell.com>
1287
1288         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
1289         until an about:blank has been loaded (according to spec). Fix 
1290         ScrollbarsEnabled to set when a document is loaded (since we use js 
1291         for it). Fix url so it reflects the current loading document and not 
1292         the previous one. Send StatusChanged events.
1293
1294 2008-11-23  Andreia Gaita  <avidigal@novell.com>
1295
1296         * Application.cs: If a message comes in for an embedded control
1297         (like webbrowser) when we're capturing the keyboard, release the
1298         capture and continue.
1299         [fixes #429462]
1300
1301 2008-11-22  Andreia Gaita  <avidigal@novell.com>
1302
1303         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
1304
1305 2008-11-21  Andreia Gaita  <avidigal@novell.com>
1306
1307         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
1308         
1309 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1310
1311         * ScrollBar.cs:
1312         * ScrollableControl.cs: Set manually the thumb size for the
1313         ScrollableControl scrollbars, so any further changes to the underneath
1314         scrollbars respect the original size.
1315         Fixes part of #441546.
1316
1317 2008-11-21  Geoff Norton  <gnorton@novell.com>
1318
1319         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
1320         PlatformID.MacOSX now exists.
1321
1322 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1323
1324         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
1325         Having something internal abstract isn't very nice for people who want
1326         to inherit from this class.
1327
1328 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1329
1330         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
1331         invalid value.  Just return null for the Image, and use the ImageList's
1332         ImageSize for calculations.
1333
1334 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1335
1336         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
1337         through DroppedDown so the proper events get called and state gets reset.
1338         [Fixes bug #446805]
1339
1340 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
1341
1342         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
1343         the collection is modified.
1344
1345 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
1346
1347         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
1348         aren't always correct, and fixing them for every case is not worth the
1349         negligible benefit they provide.
1350         [Fixes bug #445713]
1351
1352 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
1353
1354         * DataGridView.cs: We should never add actual cells to the RowTemplate.
1355         Internally, use RowTemplateFull to give us a new row with cells.
1356         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
1357         * DataGridViewRowCollection.cs: Use RowTemplateFull.
1358
1359 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1360
1361         * XplatUIX11.cs: Forms without borders should be able to change its
1362         size - specially they should be able to be maximized, adding the
1363         respective MotifFunctions.Resize bit when setting window properties as
1364         well as *not* marking the Hwnd as size fixed.
1365         Fixes #444347.
1366
1367 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
1368
1369         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
1370         an alpha value.
1371         [Fixes bug #444348]
1372
1373 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
1374
1375         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
1376         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
1377         AutoSizeColumnModeChanged.
1378         [Fixes bug #443609]
1379
1380 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
1381
1382         * DataGridViewRowCollection.cs: Guard against the user deleting the
1383         NewRow.  Add an internal delete so we can still delete it.
1384         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
1385         [Fixes bug #442181]
1386
1387 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
1388
1389         * TextControl.cs: Add some order of operation to our math so
1390         we don't end up with a negative height for our invalidate rect.
1391         [Fixes bug #381889]
1392
1393 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
1394
1395         * Control.cs: When our enabled changes, notify our implicit children
1396         controls as well as our regular controls.
1397         [Fixes bug #441523]
1398
1399 2008-11-08  Andreia Gaita <shana@jitted.com> 
1400
1401         * HtmlElement.cs: Small code cleanup
1402
1403 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1404
1405         * BindingNavigator.cs: MoveFirstItem should be enabled only if
1406         position is larger than 0, not only different than 0. Also Position
1407         and Count items should be enabled if the BindingSource is non null and
1408         non empty.
1409         Fixes #439961.
1410
1411 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
1412
1413         * TabControl.cs: Don't raise SelectedIndexChanged until we have
1414         actually modified the tab collection, so TabCount will be correct.
1415         [Fixes bug #441896]
1416
1417 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1418
1419         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
1420         NonSerialized to fix serialization of ListViewItem.
1421
1422 2008-11-04  Mike Gorse  <mgorse@novell.com>
1423
1424         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
1425           focus change, and always call in SetFocusedItem.
1426         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
1427
1428 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
1429
1430         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
1431         mode.  Based on a patch by John Mortlock.
1432         [Fixes bug #436790]
1433
1434 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1435
1436         * ListView.cs: Use the UsingGroups property where needed, instead of
1437         duplicating the check in other places.
1438
1439 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1440
1441         * ListView.cs: When calculating layout, refresh the count of items
1442         belonging to the default item, insteas of doing it only one time. This
1443         was already working fine for icon views, not not for details.
1444         Fixes #438948.
1445
1446 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1447
1448         * ListView.cs:
1449         * ListViewItem.cs:
1450         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
1451         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
1452         does.
1453         Fixes #437933.
1454
1455 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1456
1457         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
1458
1459 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1460
1461         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
1462         #441280, patch by Mike Gorse <mgorse@novell.com>.
1463
1464 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1465
1466         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
1467         if there is no scrollbar.
1468         [Fixes bug #440885]
1469
1470 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1471
1472         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
1473         patch from Andy Hume that fixes many issues with ProgressBar.
1474         [See bug #440220]
1475
1476 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1477
1478         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
1479         [Fixes bug #438866]
1480
1481 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1482
1483         * UpDownBase.cs:
1484         * DomainUpDown.cs:
1485         * NumericUpDown.cs: Internal events added to UpDownBase:
1486         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
1487         <ngao@novell.com>.
1488
1489 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1490
1491         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
1492
1493 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1494
1495         * ListView.cs:
1496         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
1497         Application.EnableVisualStyles hasn't been called.
1498         Fixes part of #437933.
1499
1500 2008-10-31  Andreia Gaita  <shana@jitted.com>
1501
1502         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
1503           if the container is not focused already, we need to specifically set
1504           focus to the first available control, or to the form itself if there
1505           are no controls.
1506
1507 2008-10-31  Andreia Gaita  <shana@jitted.com>
1508
1509         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
1510         WM_ACTIVATE have been processed before returning, so it is guaranteed that
1511         once it returns and the form is visible, it is actually on the screen on X11
1512
1513         * ContainerControl.cs: Only send focus to the control if the top container
1514           is already focused. This is so that, when a form is first shown, all
1515           the enter/leave events are done first before any focus stuff comes in.
1516           If a control has no top container, there's an extra check on Control.Focus
1517           to make sure it gets focused in this particular case.
1518
1519         * Control.cs: Force focus if the control is active but did not receive
1520           focus after being set as active.
1521
1522         * MdiClient.cs: Dispose the form when closing
1523
1524         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
1525           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
1526           if the window is a top Form.
1527           Reset all hwnd properties when the window has been destroyed so that
1528           we don't land in any codepaths that might try to do something with it.
1529           Added a bunch of debugging messages. If TRACE is defined, all X calls
1530           are logged through DebugHelper. Set a few missing EntryPoint attributes.
1531
1532 2008-10-29  Mario Carrion <mcarrion@novell.com>
1533
1534         * ListViewItem.cs: Control enabled to support Accessibility:
1535         - Internal events: UIATextChanged, UIASubItemTextChanged.
1536         - Internal event UIATextChanged in ListViewSubItem that triggers
1537         UIASubItemTextChanged.
1538         * ListView.cs: Control enabled to support Accessibility:
1539         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
1540         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
1541         - Internal event UIACollectionChanged in ColumnHeaderCollection.
1542         - Internal event UIACollectionChanged in ListViewItemCollection.
1543         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
1544         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
1545         - Internal methods: UIAGetHeaderBounds.
1546
1547 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1548
1549         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
1550         the event from the respective scrollbars.
1551         Fixes #436709.
1552
1553 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1554
1555         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
1556         textbox to know whether any navigation key will be handled or not. If
1557         not, don't pass the message to the textbox, and use it here instead. 
1558         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
1559         is more precise- than the previous AutoCompleteMatches one.
1560         This should the keyboard navigation in ComboBox when using auto
1561         complete modes.
1562
1563 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
1564
1565         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
1566         [Fixes bug #436730]
1567
1568 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
1569
1570         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
1571         overridden methods will get called.
1572         * ToolStripItem.cs: Raise Click before MouseUp.
1573         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
1574         the item's location into account.
1575         [Fixes bug #437683]
1576
1577 2008-10-24  Neville Gao  <nevillegao@gmail.com>
1578
1579         * NumericUpDown.cs: Control enabled to support accessibility.
1580         [Fiexes bug #438135]
1581
1582 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1583
1584         * TextBox.cs: Check that we actually have items no navigate, select
1585         text when pressing enter, as well as handle direction keys only if
1586         mode is different to Suggest or the suggest listbox is visible.
1587
1588 2008-10-23  Andreia Gaita  <shana@jitted.com>
1589
1590         * WebBrowser.cs: Use the new ContentStream property to retrieve
1591           a stream encoded from the document content
1592
1593 2008-10-23  Andreia Gaita  <shana@jitted.com>
1594
1595         * HtmlDocument.cs,
1596           HtmlElement.cs,
1597           HtmlWindow.cs: Fix GetHashcode for null objects
1598
1599 2008-10-22  Andreia Gaita  <shana@jitted.com>
1600
1601         * HtmlDocument.cs,
1602           HtmlElement.cs,
1603           HtmlWindow.cs: Fix equality operators (fixes #428173)
1604
1605 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
1606
1607         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
1608         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
1609         [Fixes bug #436772]
1610
1611 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
1612
1613         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
1614         same item with the mouse as was already selected.
1615         [Fixes bug #436789]
1616
1617 2008-10-21  Brad Taylor  <brad@getcoded.net>
1618         
1619         * TextControl.cs: Break out code to get the visible range into
1620           GetVisibleLineIndexes to be used in UIA code.
1621         
1622         * Line.cs:
1623         * TextControl.cs:
1624         * TextBoxBase.cs: Add comments indicating that the method or property
1625           is used via reflection from UIA code.
1626
1627 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1628
1629         * ListViewItem.cs: Match .net serialization.
1630         Fixes remaining part of #417520.
1631
1632 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
1633
1634         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
1635
1636 2008-10-20  Mario Carrion <mcarrion@novell.com>
1637
1638         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
1639         added: UIAToolTipRectangle.
1640
1641 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1642
1643         * ListViewItem.cs: When deserializing enumerate over the data, instead
1644         of accessing the data directly. This way we handle much better the
1645         cases were we lack information.
1646         Fixes #417520.
1647
1648 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1649
1650         * ListView.cs: When removing an item from a main ListView.Items
1651         collection (and not a ListViewGroupCollection.Items one), remove it
1652         also from the group, as .net does. Patch by Mario Carrion (mario at
1653         novell dot com).
1654         Fixes #436653.
1655
1656 2008-10-19  Andreia Gaita  <avidigal@novell.com>
1657
1658         * Form.cs: Forms that get closed without a handle being created are
1659         disposed in 2.0. Fixes failing FormTest.FormClose and
1660         FormTest.FormClose2 on windows.
1661
1662 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1663
1664         * ListView.cs: If both scrollbars are visible, the vertical one
1665         shouldn't extend too far down.
1666         Fixes #435771.
1667
1668 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
1669
1670         * DataGridView.cs: Add the ability to resize columns and rows with
1671         the mouse.  Also support double-clicking to autoresize.
1672         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
1673         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
1674         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
1675         isn't shown on autoresize.
1676         [Fixes bug #420193]
1677
1678 2008-10-17  Mario Carrion <mcarrion@novell.com>
1679
1680         * ComboBox.cs: Remove UIAListbox.
1681
1682 2008-10-17  Mario Carrion <mcarrion@novell.com>
1683
1684         * ComboBox.cs, ListBox.cs: Using added/removed item in 
1685           OnUIACollectionChangedEvent instead of index.
1686
1687 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
1688
1689         * ComboBox.cs: When we are sorting the items, if the item's type
1690         doesn't support IComparer, use a default one that compares based
1691         off the item's visible text.
1692         [Fixes bug #436328]
1693
1694 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1695
1696         * ColumnHeader.cs: Invalidate ListView.header_control when setting
1697         ImageIndex/ImageKey.
1698         * ThemeWin32Classic.cs: When drawing the column header, draw a image
1699         for the column if available, and make the required adjustments to the
1700         text location.
1701         Fixes #435105.
1702
1703 2008-10-17  Neville Gao  <nevillegao@gmail.com>
1704
1705         * StatusBarPanel.cs: Control enabled to support accessibility.
1706         [Fixes bug #435988]
1707
1708 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1709
1710         * DataGridView.cs: When a user begins an edit in the 'new row',
1711         make that a real row, and add a new 'new row'.  If the user
1712         cancels the edit, remove the new 'new row' and reset everything.
1713         Also, ensure UserAddedRow and UserRemovedRow events are raised.
1714         [Fixes bug #430954]
1715
1716 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
1717
1718         * TableLayoutSettings.cs: Fix NREs when deserializing and 
1719         panel is not yet set.
1720         [Fixes bug #436199]
1721
1722 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1723
1724         * DataGridView.cs: Invalidate after deleting a row.
1725
1726 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1727
1728         * DataGridView.cs: Handle Enter and Escape keys.
1729           - Move call to EndEdit to MoveCurrentCell.
1730           - Remove call to EndEdit from navigation key routines.
1731           - Fire CellLeave and CellEnter.
1732
1733 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1734
1735         * DataGridViewCell.cs: Some fixes to the new cell border
1736         painting code.
1737
1738 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1739
1740         * ThemeEngine.cs: Enable visualstyles rendering by default
1741         (on platforms that support it).
1742
1743 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
1744
1745         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
1746         MainForm.OnLoad has completed unless DoEvents is forced.
1747         [Fixes bug #412536]
1748
1749 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
1750
1751         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
1752
1753 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
1754
1755         * Control.cs: Make our implementation of DrawToBitmap better 
1756         match WmPaint.  [Fixes bug #435579]
1757
1758 2008-10-14  Andreia Gaita  <avidigal@novell.com>
1759
1760         * WebBrowser.cs: Use DocumentElement as the document's root for the
1761         whole content. Should fix DocumentText and DocumentStream problems.
1762
1763 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
1764
1765         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
1766         these will get called in DGV.OnCollectionChanged.  Make sure 
1767         OnCollectionChanged always gets called.
1768         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
1769         from every row.  Call this in OnCollectionChanged.
1770         [Fixes bug #433669]
1771
1772 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1773
1774         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
1775         textbox if auto complete is used, since we need to navigate over it.
1776         And in this case don't pass this messages to the base impl. Also hide
1777         the auto complete list box when displaying the drop down listbox.
1778         * TextBox.cs: new internal members to expose some of the auto complete
1779         functionality to combobox.
1780
1781 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
1782
1783         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
1784         MainForm.OnLoad has completed.
1785         [Fixes bug #412536]
1786
1787 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1788
1789         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
1790         Append support to this controls. We need it to apply new patches.
1791
1792 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1793
1794         * Control.cs: When updating z order in child controls, send to back
1795         the implicit controls. Also, do it explicitly, instead of making
1796         GetAllControls return the implicit controls in a specific order, and
1797         thus avoid depending on that, which could change in the future.
1798         Fixes #434304.
1799
1800 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1801
1802         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
1803         call to StartDrag, since we must fire DragDrop/DragLeave *before*
1804         that, as .net does - instead of firing DragDrop/DragLeave *after* the
1805         call to Control.DoDragDrop has completed. This is needed since at the
1806         point of returning, we have sent related dnd ClientMessages, but we
1807         need to wait for them to fire the wmf respective ones.
1808         Fixes #325076.
1809
1810 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
1811
1812         * LinkLabel.cs: Recreate link pieces when change Padding.
1813
1814 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
1815
1816         * LinkLabel.cs: Take Padding into account when recreate link pieces.
1817         [Fixes bug #412530]
1818
1819 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
1820
1821         * Control.cs: Implement internal property PaddingClientRectangle, it will be
1822         useful for drawing controls that must take care about Padding property.
1823
1824 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
1825
1826         * BindingSource.cs: Make item_type internal so we can access it in DGV.
1827         * DataGridView.cs: Add support for autogenerating columns from a
1828         BindingSource.
1829
1830 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1831
1832         * DataGridView.cs: Comment out an exception that is getting thrown
1833         too often currently.
1834
1835 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1836
1837         * DataGridView.cs: Always rebind to the datasource, as things may
1838         have changed in it that we aren't capturing yet.
1839
1840 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1841
1842         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
1843         drawing mode.  If we are top aligned, give ourselves some top padding.
1844
1845 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1846
1847         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
1848         events on the control under the mouse pointer, instead of firing them
1849         on the window generating the dnd operation. To achieve this re-use the
1850         code used to get the window under the pointer when getting MouseMove
1851         events.
1852         Fixes #381876.
1853
1854 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1855
1856         * X11Dnd.cs: Don't check that that the window sending the dnd events
1857         is the owner of the selection. Although Gtk+ sets it that way, it's
1858         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
1859         So, just as Gtk+ does, we set our window sending the dnd events as the
1860         owner of the selection, but don't check it when receiving them. This
1861         should fix interoperability with Qt/Kde.
1862         Fixes #324251.
1863
1864 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
1865
1866         * DataGridView.cs: Make sure we take the vertical scrollbar into
1867         account when autosizing columns.
1868
1869 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
1870
1871         * DataGridView.cs: Handle sorting datetimes.
1872
1873 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
1874
1875         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
1876         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
1877         compilation warnings.
1878
1879 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1880
1881         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
1882         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
1883         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
1884         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
1885         compilation warnings.
1886
1887 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1888
1889         * DataGridView.cs, DataGridViewCell.cs, 
1890         DataGridViewCellValidatingEventArgs.cs, 
1891         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
1892         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
1893         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
1894
1895 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1896
1897         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
1898         Cleanup compilation warnings.
1899
1900 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1901
1902         * XplatUIWin32.cs: Cleanup compilation warnings.
1903
1904 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1905
1906         * PropertyGrid.cs: Cleanup compilation warnings.
1907
1908 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1909
1910         * DataGridViewRow.cs: Only clear the row background if we
1911         are going to paint a new background.
1912
1913 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1914
1915         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
1916         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
1917         use PaintBorder instead.        
1918
1919 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1920
1921         * DataGridView.cs: When CellBorderStyle is set, update the
1922         AdvancedCellBorderStyle to match.
1923
1924 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1925
1926         * DataGridViewCell.cs: Add helper methods to convert Alignment
1927         to TextFormatFlags and align rectangles.
1928         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
1929         * DataGridViewImageCell.cs: Use Alignment when painting the image.
1930
1931 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
1932
1933         * ToolTip.cs: Display tooltips only for controls on the active form.
1934         [Fixes bug #428115]
1935
1936 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1937
1938         * DataGridView.cs: Make OnCellValueNeeded internal.
1939         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
1940         user can supply their own value if they choose.
1941
1942 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1943
1944         * DataGridViewColumnHeaderCell.cs: Create a new style object
1945         so the DefaultCellStyle doesn't get changed.
1946
1947 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1948
1949         * ToolStripItem.cs: Check to make sure the owner is actually
1950         changing in InternalOwner before doing any work.  Fixes some
1951         failing tests.
1952
1953 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1954
1955         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
1956         * DataGridView.cs: Use a column header's inherited style instead
1957         of just using the default.
1958
1959 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1960
1961         * SplitContainer.cs: Raise SplitterMoved when the splitter is
1962         moved through code.
1963
1964 2008-10-01  Mario Carrion <mcarrion@novell.com>
1965
1966         * ScrollBar.cs: Internal property added: UIAThumbPosition.
1967
1968 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1969
1970         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
1971
1972 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1973
1974         * ToolStripItem.cs: When the user sets Owner, we need to remove
1975         it from its previous owner and then add it to the new owner's
1976         item collection.  Also, create InternalOwner, so we can set the owner
1977         that doesn't do this new stuff.
1978         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
1979
1980 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1981
1982         * ToolStripItem.cs: When our parent changes, recalculate our text
1983         size, since we may be getting our Font from our parent.  When our
1984         owner's Font changes, recalculate ourselves as we may be using
1985         that font.
1986
1987 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
1988
1989         * MenuAPI.cs: Select the first option of a popup when opening the popup via
1990         return key. [Fixes bug #413792].
1991
1992 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1993
1994         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
1995         ambient properties.  (Get their value from their parents if
1996         values haven't been set.)
1997
1998 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1999
2000         * ToolStripSystemRenderer.cs: Call overridden methods' bases
2001         after our logic, so users can do painting by handling the events.
2002         Currently, we draw over any user painting.
2003
2004 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2005
2006         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2007         after our logic, so users can do painting by handling the events.
2008         Currently, we draw over any user painting.
2009
2010 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
2011
2012         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2013
2014 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2015
2016         * TreeNode.cs, TreeView.cs: Move logic that determines the node
2017         image to draw to TreeNode.  Give Index/Keys put on the node
2018         precedence over the global one for the TreeView.
2019
2020 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2021
2022         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2023
2024 2008-09-29  Mario Carrion <mcarrion@novell.com>
2025
2026         * ListBox.cs: Index fixed.
2027
2028 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2029
2030         * TabControl.cs: When expanding the tab -because it's selected now-,
2031         using Right alignment, instead of adding some selected delta value to
2032         the X origin, substract it, so it gets a location adjacent to the panel, 
2033         instead of be more separated.
2034         Fixes #409170.
2035
2036 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
2037
2038         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2039         own copies of them.
2040
2041 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2042
2043         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2044         as well as the other static fields, to avoid using their previous
2045         values my mistake when handling the dnd events. This should avoid
2046         handling any status event after the drop has been finalized/cancelled.
2047
2048 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2049
2050         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2051         operation, instead of waiting until we get any movement - this will
2052         help us to have the data available in case no movement was detected
2053         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2054         Finally add a windows.forms-only fallback to fire the mentioned events
2055         if no movement at all was detected, just like .net does.
2056         Fixes #381876.
2057
2058 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
2059
2060         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2061         return early if the text is empty because the icon doesn't get
2062         drawn then.  [Fixes bug #428113]
2063
2064 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2065
2066         * FileDialog.cs: Implement basic support for sorting by columns in
2067         Details view. Patch by Eric Petit.
2068         Fixes #428006.
2069
2070 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2071
2072         * ThemeWin32Classis.cs: When drawing gridlines take into account the
2073         case where ListView.ItemSize hasn't been computed, and provide a
2074         fallback as well. This prevents a division by 0.
2075
2076 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2077
2078         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2079         correctly draw tooltip backgrounds.
2080
2081 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2082
2083         * ImageList.cs: Change CopyTo implementation to ensure clones are
2084         created of our images.
2085         [Fixes bug #409169]
2086
2087 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2088
2089         * Control.cs: When setting fonts, we need to ensure we change our
2090         reference to the new font object, even if it represents the same
2091         font as before.  If we don't, the original font can get disposed
2092         and we will still try to use it.
2093         [Fixes bug #386450]
2094
2095 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2096
2097         * FileDialog.cs: Take into account Tile view when selecting the view
2098         (2.0 profile).
2099
2100 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2101
2102         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
2103         the item bounds, since we can't iterate over them in virtual mode.
2104         Also fix wrong calculation of the gridlines when using scrolling.
2105         Fixes #400390.
2106
2107 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2108
2109         * XplatUIX11.cs: When handling EnterNotify events, take into account
2110         both the public and implicit controls when trying to detect the
2111         grab/ungrab process. This should fix ListView selection in Details
2112         view.
2113
2114 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2115
2116         * TreeView.cs: Redraw the whole node area when the selected node changes.
2117         Things like state images were not getting redrawn because the invalid
2118         rectangle was too small.
2119         [Fixes bug #428211]
2120
2121 2008-09-23  Mario Carrion  <mcarrion@novell.com>
2122
2123         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
2124         [Fixes bug #428993]
2125
2126 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2127
2128         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
2129         [Fixes bug #428114]
2130
2131 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2132
2133         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
2134         [Fixes bug #427884]
2135
2136 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2137
2138         * StatusBar.cs: Add tooltip support.
2139         [Fixes bug #428113]
2140
2141 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2142
2143         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
2144         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
2145         hlaustralia.com.au).
2146         Fixes #425360.
2147
2148 2008-09-23  Neville Gao  <nevillegao@gmail.com>
2149
2150         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
2151         [Fixes bug #419079]
2152
2153 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
2154
2155         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
2156         [Fixes bug #428107]
2157
2158 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2159
2160         * ListView.cs: Don't do anything when EnsureVisible is called inside a
2161         BeginUpdate/EndUpdate block.
2162         Fixes #425049.
2163
2164 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2165
2166         * ListViewItem.cs: The semantics for the public .ctor of
2167         ListViewSubItemCollection need us to already have a Text value for the
2168         item, which in our implementation have as available *after* adding the
2169         first sub item. So create an internal .ctor that satisfies our needs
2170         and let the public .ctor have the same semantics as .net.
2171         Fixes #427561.
2172
2173 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2174
2175         * ListControl.cs: Changes in Formatting related values should call
2176         RefreshItems, as .net does.
2177         * ComboBox.cs:
2178         * ListBox.cs: In the respective overrides of RefreshItems calculate
2179         layout as well as refreshing - again, this is what .net does.
2180         Fixes #426168.
2181
2182 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2183
2184         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
2185         since we are already doing that when we change the value of the
2186         scrollbar or force the call to ScrollWindow in the same method. This
2187         way we don't cause a Invalidate call for all the listbox bounds for
2188         methods calling UpdateTopItem with an already updated top item. This
2189         was happening specially calling EnsureVisible with already visible
2190         items.
2191
2192 2008-09-18  Mike Gorse <mgorse@novell.com>
2193
2194         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
2195           XplatUIStructs.cs: Added KeyFilter
2196         [Fixes bug #427039]
2197
2198 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2199
2200         * RelatedPropertyManager.cs: The properties returned by
2201         GetItemProperties should be that ones of the *actual* object returned
2202         by the property, not the property type - this is very special when the
2203         property exposes a type, but the returned object actually is a child
2204         class and implements more functionality and properties.
2205
2206 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2207
2208         * Binding.cs: Don't look for the property in the data source if the
2209         passed string is empty.
2210
2211 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2212
2213         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
2214         fix unused variable warnings.
2215
2216 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2217
2218         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
2219         [Fixes bug #427073]
2220
2221 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2222
2223         * XplatUIX11.cs: 
2224          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
2225          leads to the window manager overriding our border style and zorder. 
2226          - Allow the activation of non-modal forms, which are children of a 
2227          modal form.
2228         [Fixes bug #423417]
2229
2230 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2231
2232         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
2233         ask the window manager to do the work instead of changing the property 
2234         directly.
2235         [Fixes bug #423417]
2236
2237 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2238
2239         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
2240         AddNew to fix some navigation for empty datasets. [Fixes #323053]
2241
2242 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2243
2244         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
2245         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
2246         border and fixes some drawing issues when resize form.
2247
2248 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2249
2250         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
2251         
2252         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
2253         AcceptButton.
2254
2255 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2256
2257         * TextBoxBase.cs: For standard textbox the scrollbars are always 
2258         visible if Multiline is true.
2259         [Fixes bug #426896]
2260
2261 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
2262
2263         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
2264         patch.
2265         
2266 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
2267
2268         [Fixes most od DBNull and HeadersVisible problems]
2269         
2270         * DataGrid.cs:
2271         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
2272         returns the value that we need.
2273         - Fixed FromPixelToColumn method that return zero for first     column and for
2274         row header cell, now it returns -1 for row header cell.
2275         - Fixed HitTest to check row header cell in column header area, it now
2276         returns HitTestType.None. [Fixes #322864]
2277         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
2278         checks for RowHeadersVisible and other things.
2279         - If an exception occurs when setting CurrentCell and user type 'yes' in
2280         message dialog, invalidade current and new cell and set setting_current_cell
2281         to false to prevent future errors. [Partially fixes #323050]
2282
2283         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
2284         value (SetColumnValueAtRow), it must be done by grid to properly show 
2285         messages. [Fixes #323050]
2286
2287         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
2288         better draw column and row header. Also dont draw anything when column
2289         headers is not visible.
2290
2291 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2292
2293         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
2294         logic.
2295
2296 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2297
2298         * TreeView.cs: Don't start editing a node on right click, only
2299         left click.
2300
2301 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2302
2303         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
2304         disabled over a year ago.
2305         * Form.cs: Wrap calling Load in a try/catch because it can happen
2306         before the catch-all one in NativeWindow.
2307         [Fixes bug #425414]
2308
2309 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2310
2311         * ToolStripDropDownMenu.cs: Calculate the connected area better
2312         to take into account when the drop down is not directly under the
2313         owner item.
2314         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
2315
2316 2008-09-16  Mario Carrion <mcarrion@novell.com>
2317
2318         * ScrollBar.cs: New event added: UIAValueChanged, generated when
2319           LargeChange, SmallChange, Maximum or Minimum values are changed.
2320         [Fixes bug #426464]
2321
2322 2008-09-16  Mario Carrion <mcarrion@novell.com>
2323
2324         * ErrorProvider.cs: Component enabled to support accessibility.
2325         * Application.cs: Updated to Initialize UIA in ErrorProvider.
2326         [Fixes bug #426459]
2327
2328 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2329
2330         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
2331         so we don't highlight on first focus.
2332         [Fixes bug #360869]
2333
2334 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2335
2336         * TextControl.cs: Correctly calculate the height of the area we 
2337         need to invalidate when we have started scrolling and viewport_y
2338         is used.  [Fixes bug #387608]
2339
2340 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2341
2342         * TextControl.cs: When getting the SelectedText, don't add in
2343         NewLine characters, as they are already contained in the lines.
2344         [Fixes bug #388115]
2345
2346 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2347
2348         * TextBoxBase.cs: Replace the buggy Lines setter with one that
2349         simply concats the lines and send it to the Text setter.
2350         [Fixes issue #2 and #3 of 388115]
2351
2352 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2353
2354         * Binding.cs: The default value of DataSourceNullValue should be
2355         Convert.DBNull actually. Also, the NullValue should only be used *if*
2356         itself is not null, and use the null/Convert.DBNull value instead.
2357
2358 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2359
2360         * TextControl.cs: Add a method to convert a string newline to the
2361         newline enum.
2362         * TextBoxBase.cs: When the user hits enter, insert a native newline.
2363         [Fixes part 1 of bug #388115]
2364
2365 2008-09-15  Mario Carrion <mcarrion@novell.com>
2366
2367         * ToolTip.cs: UnPopup event set to internal to match public API.
2368
2369 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2370
2371         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
2372         have to remove the Ctrl in order for the focus moving code to kick in.
2373         [Fixes bug #426170]
2374
2375 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2376
2377         * CheckedListBox.cs: Return the real item index from Add.  It may not be
2378         the last item if the list is sorted.  The user can change the NewValue in
2379         the ItemCheck event, we need to use that value if so.
2380         * ListBox.cs: Return the real item index from a sorted Add.
2381         [Fixes bug #426166]
2382
2383 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
2384
2385         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
2386         happen that the icons from the theme is missing or the particular size 
2387         unavailable.
2388         [Fixes bug #424981]
2389
2390 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2391
2392         * Binding.cs: When assigning null or DBNull depending on value/ref type,
2393         use IsValueType instead to get the precise desired value.
2394         Fixes #424276.
2395
2396 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2397
2398         * TreeNodeCollection.cs: When adding a new node to an opened node,
2399         we have to invalidate everything below the parent node because
2400         every node scoots down and we have to repaint them.
2401         [Fixes bug #411386]
2402
2403 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2404
2405         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
2406         property into account when drawing.
2407         [Fixes bug #416064]
2408
2409 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2410
2411         * ListBox.cs: When calling Items.Clear(), call
2412         SelectedIndexCollection.ClearCore instead of normal Clear method, to
2413         not fire any Selected*Changed event - this is done to match .net and
2414         don't have invalid values when changing the DataSourceProperty.
2415         Fixes #424273.
2416
2417 2008-09-12  Mario Carrion  <mcarrion@novell.com>
2418
2419         * HelpProvider.cs: Control enabled to support accessibility.
2420         * Application.cs: Updated to Initialize UIA in HelpProvider.
2421         [Fixes bug #425988]
2422
2423 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2424
2425         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
2426         make the dialog TopMost as well.
2427         [Fixes bug #425984]
2428
2429 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2430
2431         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
2432         clipboard data better.
2433         [Fixes bug #414446]
2434
2435 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2436
2437         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
2438         TextChanged and SelectionChanged events fire in the same order as .Net.
2439         [Fixes bug #425725]
2440
2441 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2442
2443         * DataGridView.cs: When sorting a column, if it only contains numbers,
2444         do a numeric sort instead of a string sort.
2445         [Fixes bug #425849]
2446
2447 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2448
2449         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
2450         against NRE's when the settings have a null panel.
2451         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
2452         the panel gets set.
2453         [Fixes bug #425647]
2454
2455 2008-09-11  Mario Carrion  <mcarrion@novell.com>
2456
2457         * ToolTip.cs: Control enabled to support accessibility.
2458         * Application.cs: Updated to Initialize UIA in ToolTip.
2459         [Fixes bug #425277]
2460
2461 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2462
2463         * Control.cs: Make the custom Enumerator internal to fix build.
2464
2465 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2466
2467         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
2468         already in edit mode, begin edit mode.  Generally edit mode isn't
2469         started until the second click, but CheckBoxes are special.
2470
2471 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2472
2473         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
2474         since that can be set to anything.  Always add them to the Control's
2475         parent.  [Fixes bug #416058]
2476
2477 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2478
2479         * ListView.cs: Use a custom enumerator for ListViewItemCollection
2480         so items can be deleted in a foreach.
2481         [Fixes bug #425342]
2482
2483 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2484
2485         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
2486         Store the user set explicit height so that the row can be AutoSized
2487         and then when AutoSize is turned off, it can get its original size back.
2488         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
2489         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
2490         rows' heights back to their explicit values.
2491         [Fixes bug #415780]
2492
2493 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2494
2495         * DateTimePicker.cs: When getting focus, select the checkbox if we are
2496         already showing it. Also, don't change its value when pressing space
2497         if the checkbox is not visible (ShowCheckBox as false). Finally, the
2498         checkbox should remain selected as long as Checked is false, and the
2499         other parts are disabled.
2500         Fixes #424267.
2501         
2502 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2503
2504         * MessageBox.cs: Handle shortcut keys to dialog buttons.
2505         [Fixes bug #425425]
2506
2507 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2508
2509         * Binding.cs: When the value retrieved from the control property is
2510         null, don't return Convert.DBNull for Nullable instances, since they
2511         can *actually* get a null value.
2512         Fixes #424265.
2513
2514 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
2515
2516         * Control.cs: Add an internal field to force doublebuffering regardless
2517         of what the public mechanisms are set to.  This is because MS's native
2518         controls are doublebuffered even though their .Net bits are set to false.
2519         * ProgressBar.cs: Set force_double_buffer to true.
2520         [Fixes bug #406595]
2521
2522 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
2523
2524         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
2525         the cell template.
2526         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
2527         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
2528         without EditingControls, paint background selection for types without
2529         EditingControls, reset the EditingCellValueChanged flag when the
2530         cell's value is committed.
2531         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
2532         have EditingControls, remove a double call to a cell's OnContentClickInternal,
2533         don't do cell changing logic in OnMouseDown if the cell didn't change.
2534         [Fixes bug #420351]
2535
2536 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2537
2538         * DateTimePicker.cs: Fix the edition of am/pm specifier.
2539
2540 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
2541
2542         * TextControl.cs: Add "&" to the list of valid characters in a URL.
2543
2544 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2545
2546         * DateTimePicker.cs: Before incrementing or decrementing any part in
2547         the textbox, end any current edit. Also when ending the current edit
2548         use the editing_part_index field instead of the current selected
2549         value, since they can be out of synch, and we really need to work on
2550         the *real* current edit part. Finally when PartData.Selected changes,
2551         always try to end any ongoing edit.
2552         This should fix some small errors handling mouse navigation and
2553         increase/decrease operations.
2554
2555 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2556
2557         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
2558         respectively) should handled different, since the 12 hours format
2559         needs the value typed by the user to be adjusted depending on the
2560         a.m/p.m value, so it is preserved, and only changed when the value
2561         reaches the 12 value (when it changes from a.m to p.m).
2562         Fixes part of #416555.
2563
2564 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2565
2566         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
2567         * ToolStripDropDownItem.cs: Don't fire events and such again if
2568         ShowDropDown is called on an already dropped down item.
2569         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
2570         subitems, the user may add some in the DropDownOpening event.
2571         [Fixes bug #417877]
2572
2573 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2574
2575         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
2576         [Fixes bug #424270]
2577
2578 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2579
2580         * MdiClient.cs: When looking for menustrips on a child form to merge,
2581         look inside ToolStripContainers.
2582         [Fixes bug #424264]
2583
2584 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
2585
2586         * ErrorProvider.cs: Unbreak my previous commit.
2587
2588 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
2589
2590         * ErrorProvider.cs: Icon should always be 16x16.
2591         [Fixes bug #424380]
2592
2593 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
2594
2595         * GridEntry.cs: Invalidate the child items cache when the property 
2596         value changes.
2597
2598 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
2599
2600         * GridEntry.cs, PropertyGridView.cs: 
2601            - Update the ReadOnly detection and rendering to finally hopefully 
2602            match the one of MSFT.
2603            - Niceify and move the debug CWLS.
2604         [Fixes bug #409028]
2605
2606 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2607
2608         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
2609         since we are already calling Invalidate for the entire control when
2610         needed - and call Redraw() when size changes, since we need to paint
2611         there by ourselved and not anymore from the mentioned method. 
2612         This should improve the layout process. Also clean some not needed calls 
2613         here and there.
2614
2615 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
2616
2617         * MenuAPI.cs: Add a null check to the Alt-F4 code.
2618         [Fixes bug #420309]
2619
2620 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
2621
2622         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
2623         [Fixes bug #423040]
2624
2625 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
2626
2627         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
2628         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
2629         on item expansion. Improves performance and fixes bug #417955.
2630         [Fixes bug #417955]
2631
2632 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
2633
2634         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
2635         fix the build.
2636
2637 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2638
2639         * TextControl.cs: Add "_" to the list of valid characters in a URL.
2640         [Fixes bug #423408]
2641
2642 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2643
2644         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
2645         region gets set.
2646         [Fixes bug #414166]
2647
2648 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2649
2650         * FontDialog.cs: When storing our font size from the starting font,
2651         use SizeInPoints instead of Size in case Size is a different unit
2652         from Points.
2653         [Fixes bug #416489]
2654
2655 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2656
2657         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
2658         don't use it for anything else, check if a directory is highlighted.
2659         If it is, navigate into it.
2660         [Fixes bug #422087]
2661
2662 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2663
2664         * Binding.cs: When acquiring a BindingManagerBase for the first time,
2665         check that the specified property actually exists in the data source,
2666         and throw an ArgumentException if that's not the case - this is only
2667         done for this scenario, since for later cases (such Position changes)
2668         we throw different exceptions (match .Net).
2669
2670 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
2671
2672         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
2673           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
2674           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
2675           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
2676           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
2677           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
2678           properties.
2679           [Fixes bug #418684]
2680
2681 2008-09-03  Neville Gao  <nevillegao@gmail.com>
2682
2683         * StatusBar.cs: Control enabled to support accessibility.
2684         [Fixes bug #419079]
2685
2686 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2687
2688         * Binding.cs: When connecting the event handler for the "Changed"
2689         event for the property, only do it for PropertyManager, and not for
2690         CurrencyManager - this is exactly what does .Net, totally ignoring any
2691         change in the property of the elements of a list.
2692         Fixes the tests.
2693
2694 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
2695
2696         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
2697         to Windows when creating a window, as we fake MDI stuffs.
2698         [Fixes bug #421858]
2699
2700 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
2701
2702         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
2703         change takes effect.
2704
2705 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
2706
2707         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
2708         [Fixes bug #419001]
2709
2710 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
2711
2712         * DataGridView.cs: Raise CellContentClick event.
2713         [Fixes part of bug #420351]
2714
2715 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2716
2717         * ScrollBar.cs: Control enabled to support accessibility.
2718         [Fixes bug #416759]
2719
2720 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2721
2722         * ComboBox.cs: Control enabled to support accessibility.
2723         [Fixes bug #416663]
2724
2725 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2726
2727         * ListBox.cs: Control enabled to support accessibility.
2728         [Fixes bug #416640]
2729
2730 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
2731
2732         * ComboBox.cs: Don't suppress the TextChanged event when changing
2733         the SelectedIndex.
2734         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
2735         and re-raise it.
2736         [Fixes bug #420673]
2737
2738 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
2739
2740         * ErrorProvider.cs: Fix a regression NRE when setting properties
2741         for a control before it has a parent.
2742         [Fixes bug #420305]
2743
2744 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2745
2746         * Binding.cs: Use the BindingManagerBase.Current value to obtain
2747         connect the property "Changed" event, instead of using the data
2748         sources - this is useful when the property specifies actually a
2749         multiple objects path.
2750         Fixes part of #417973.
2751
2752 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2753
2754         * RelatedPropertyManager.cs: PropertyManager instances associated to a
2755         nested properties should return not the properties of the data source
2756         itself, but the properties of the type of a specific property in the
2757         data source - match .net.
2758
2759 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
2760
2761         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
2762         AddRange overloads into AddItems method, and added missing NULL check.
2763         Added extra argument check to RemoveAt for compatibility with MS. 
2764         Modified IList implementation of Add, Contains, IndexOf and Remove to
2765         throw an ArgumentException if item is not an int. Modified IList.Insert
2766         to throw a NotSupportException instead of an Exception. Implemented
2767         ICollection.
2768         (ObjectCollection): To avoid duplication, use AddItems method from
2769         AddRange overloads. On 1.0 profile, first perform NULL check on items
2770         in AddItems.
2771
2772 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
2773
2774         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
2775          #419087.
2776
2777 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
2778
2779         * X11Keyboard.cs : comment out some Console.WriteLine().
2780
2781 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
2782
2783         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
2784           even if premises are not filled. Also XLookupString() was not
2785           receiving correct input, which blocked precise input handling
2786           on non-XIM mode.
2787
2788 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2789
2790         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
2791         type of delegate, instead of EventHandler - this was causing a type
2792         cast exception in all apps handling this event.
2793         Fixes #417876.
2794
2795 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
2796
2797         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
2798         ShowDropDown to give the user a chance to dynamically add
2799         drop down items.  [Step 1 of fixing bug #417877]
2800
2801 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2802
2803         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
2804         had any mouse motion since the call to StartDrag, to match the dnd
2805         behaviour of .net.
2806         Fixes part of #381876.
2807
2808 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2809
2810         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
2811         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
2812         Also, if we are actually moving into a different window after
2813         grabbing, generate a LeaveNotify event for the previous window, since
2814         we need to fire the leave events until the grab ends, not when
2815         actually moving outside of the control.
2816
2817 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2818
2819         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
2820         events only for client windows was wrong - we need to compare the
2821         client window against the window receiving the EnterNotify event, not
2822         against zero (since client window is never Zero, btw).
2823         This prevents having unnecessary handling of EnterNotify events for
2824         non-client windows when a gran begins.
2825
2826 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2827
2828         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
2829         MouseMove/MotionNotify events at all (which should only happen after
2830         MouseUp/ButtonRelease, as .Net does).
2831         This avoids firing an extra and unnecessary MouseMove event just after
2832         every MouseDown event.
2833
2834 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2835
2836         * LinkLabel.cs: Always clear any previous links when LinkArea
2837         is set.  [Fixes bug #410709]
2838
2839 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2840
2841         * ToolStripProfessionalRenderer.cs: Revert last change.
2842         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
2843         for ToolStripDropDownBackground.
2844
2845 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2846
2847         * ToolStripProfessionalRenderer.cs: Use Window color for the 
2848         background of dropdowns to match .Net when the user is not
2849         using the default white.  [Fixes bug #418108]
2850
2851 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
2852
2853         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
2854           it caused timer registration twice. Fixed bug #418107.
2855
2856 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2857
2858         [Correction: This is the actual change to X11Dnd issue, not the
2859         previous one, which was actually a different issue.]
2860
2861         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
2862         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2863         when the pointer is actually in motion, but only when the pointer
2864         seems to stop (as .net does).
2865         Fixes part of #381876.
2866
2867
2868 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
2869
2870         * ListBox.cs: Fix CopyTo implementation.
2871         [Fixes bug #409169]
2872
2873 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
2874
2875         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
2876         drawing a ComboBox's background.  Fixes bad disabled rendering when
2877         the control is not at 0,0.
2878         [Fixes bug #416063]
2879
2880 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
2881
2882         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
2883         ComponentModel layer, which will properly prioritize the attributes.
2884         Avoids wrong prioritization of duplicate attributes when retrieving 
2885         the converter and editor.
2886         [Fixes bug #417729]
2887
2888 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2889
2890         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
2891         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2892         when the pointer is actually in motion, but only when the pointer
2893         seems to stop (as .net does).
2894         Fixes part of #381876.
2895
2896 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
2897
2898         * GridEntry.cs: Perform stricter check for the ParentEntry's 
2899         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
2900         implementation.
2901         [Fixes bug #417567]
2902
2903 2008-08-14  Geoff Norton  <gnorton@novell.com>
2904
2905         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
2906         Fixes #396983.  Properly fix ActiveWindow trackin and do not
2907         prematurely show POPUP windows.
2908
2909 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2910
2911         * XplatUIX11.cs: Handle the obscured regions while scrolling using
2912         GraphicsExpose event, processing it just after we copy the scrolled
2913         area. This ensures that the next calls to ScrollWindow will copy
2914         regions already updated, and the scrolling will be smooth. Also remove
2915         the code that was trying to detect the obscured regions, since we are
2916         not using it anymore (too slow).
2917
2918 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2919
2920         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
2921         MultiExtended mode, by separating some logic between the ctrl/shift
2922         handling. Also ignore any MouseMove events generated together with
2923         MouseDown events - we are only interested in the real motion event.
2924         Fixes part of #414963.
2925
2926 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
2927
2928         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
2929         is selected.  [Fixes bug #414143]
2930
2931 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
2932
2933         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
2934         and not the parent one (the propertyowner). Fixes the behavior of 
2935         GetConverter/GetEditor.
2936         [Fixes bug #415452]
2937
2938 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
2939
2940         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
2941         [Fixes part of bug #415452]
2942
2943 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
2944
2945         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
2946         GridEntry, not the current.
2947         [Fixes bug #413896]
2948
2949 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
2950
2951         * TextBoxBase.cs: De-internalize max_length field.
2952         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
2953         share the same logic.
2954         [Fixes bug #414454]
2955
2956 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2957
2958         * ListBox.cs: Selection changes made in the MouseDown handler should
2959         use the *Core versions of selection in SelectedIndices collection,
2960         since the SelectedIndexChanged/SelectedValueChanged events are fired
2961         until we get a MouseUp event, and thus we need to separate the logic
2962         from the events, as done in the keyboard navigation. Also, fire those
2963         selection events from keyboard navigation in SelectionMode.None, even
2964         if we don't have a selection, as .Net does.
2965
2966 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
2967
2968         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
2969         last change introduced when an item is clicked but isn't on a toolstrip.
2970
2971 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2972
2973         * ListBindingHelper.cs: When looking for an object's properties, check
2974         if it implements ICustomTypeDescriptor, in which case we should
2975         resolve the propertu based on its GetProperties method, not in its
2976         actual properties. This is what .Net seems to do.
2977         Fixes a UsingWebBrowser problem during initialization.
2978
2979 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2980
2981         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
2982         sitting on a MenuStrip.
2983
2984 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2985
2986         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
2987         no children with the keyboard, we need to release the keyboard capture.
2988         [Fixes bug #413567]
2989
2990 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2991
2992         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
2993         no children with the keyboard, we need to release the keyboard capture.
2994         [Fixes bug #413567]
2995
2996 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
2997
2998         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
2999         the GTK+-based implementation of VisualStyles.
3000         * ThemeWin32Classic.cs: Exposed various layout values for use in the
3001         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3002         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3003         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3004         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3005         TrackBarHorizontalTrackHeight.
3006
3007 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3008
3009         * TabControl.cs: Added hot style handling for the scroll buttons.
3010         right_slider_state, left_slider_state are now of type PushButtonState to
3011         allow for a hot state. Added tracking of the mouse button being held down
3012         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3013         LeftScrollButtonArea.
3014         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3015         TabControlGetRightScrollRect.
3016
3017 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3018
3019         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
3020         runtime errors.
3021
3022 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3023
3024         * Form.cs: Ensure that we reset the shown_raised flag after 
3025         the form is closed, so that we raise the show events the next 
3026         time the form is shown.
3027         [Fixes bug #413141]
3028
3029 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3030
3031         * Form.cs: Ensure closing events are raised only once.
3032         [Fixes bug #413143]
3033
3034 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3035
3036         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
3037         so that we can successfully generate the LParam in-place instead of 
3038         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
3039         navigation for menus.
3040
3041 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3042
3043         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
3044         'navigating'. Fixes bug #411356.
3045
3046 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3047
3048         [Fixed remaining issues of #406773 (#1)]
3049         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3050
3051         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3052         MainMenu (already done) and ContextMenu creation.
3053
3054         * ContextMenu.cs: Create tracker on construction. 
3055
3056 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3057
3058         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3059         possible to instantiate MenuTracker without GrabControl.
3060
3061 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3062
3063         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3064
3065         * MainMenu.cs: Set GrabControl on SetForm using current form.
3066
3067 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3068
3069         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3070
3071 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3072
3073         * MenuAPI.cs: Check if menu is activated before deactivate it in 
3074         ProcessShortcut.
3075
3076 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3077
3078         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
3079         ColumnStyle.cs: 
3080         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3081          - One style instance can only participate in a single style collection.
3082          - Styles can request their owner to layout whenever their properties 
3083          change.
3084          [Fixes bugs #412583 and #412582]
3085
3086 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
3087
3088         * X11Keyboard.cs: Implement the generation of the LParam for 
3089         all keyboard messages.
3090         [Fixes bug #378728]
3091
3092 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
3093
3094         * ListBox.cs: Don't let the user set TopIndex so high that it
3095         scrolls up far enough to show empty items.
3096         [Fixes bug #412728]
3097
3098 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3099
3100         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
3101         (I'm an idiot and forgot to commit the actual changes, as well as
3102         specify the right file, which is this one, not ListView.cs).
3103
3104 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3105
3106         * ListView.cs: Don't draw ListViewSubItem instances from
3107         DrawListViewItem - we need to reuse the main item's drawing for the
3108         first sub item in case owner draw is true, but wants the system to
3109         do the default draw for the first sub item, without incurring in a
3110         recursion problem.
3111         Fixes #410880.
3112
3113 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
3114
3115         * ToolStripButton.cs: Update Checked for CheckOnClick before
3116         raising the Click event.  [Fixes bug #412505]
3117
3118 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
3119
3120         * Form.cs: Remove some seems leftover code for non-TopLevel's 
3121         CreateParams, which is breaking ClientSize sizing, because it 
3122         removes the border window styles.
3123
3124 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
3125
3126         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
3127         changes.
3128
3129 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
3130
3131         * WebBrowser.cs: Removed debug output.
3132
3133 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
3134
3135         * FileDialog.cs: Apply patch from Ernesto to clean up some
3136         dialog messages.
3137
3138 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3139
3140         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
3141         that the change has an immediate effect.
3142
3143 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3144
3145         * ScrollableControl.cs: Update PerformLayout calls to include 
3146         provide the name of the property that changed.
3147
3148 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3149
3150         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
3151         location. Fixes drawing of border and cell borders if scrollable.
3152
3153 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3154
3155         * ScrollableControl.cs: Perform layouting after the AutoScroll 
3156         properties have changed, so that the changes have immediate 
3157         effect.
3158         [Fixes bug #409090]
3159
3160 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3161
3162         * XplatUIX11.cs: Non Client area is actually Client such in the 
3163         case of NotifyIcon, so double check WholeWindow == ClientWindow 
3164         when adding an expose.
3165         [Fixes bugs #324237 and #357022]
3166
3167 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3168
3169         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
3170         repaint the cell borders.
3171
3172 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3173
3174         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
3175         disposal to avoid unexpected ObjectDisposedExceptions.
3176
3177 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
3178
3179         * TableLayoutPanel.cs: Layout on Row/Column count change.
3180
3181 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
3182
3183         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
3184         bug #409351.
3185         * PictureBox.cs: When ImageLocation is set to null or an empty string,
3186         only set image to null if it was previously initialized from an url
3187         (or using ImageLocation). In ImageLocation, load specified image
3188         asynchronously if WaitOnLoad is false. Added support for local file
3189         paths to LoadAsync, and added missing argument check.
3190
3191 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3192
3193         * DateTimePicker.cs: 
3194         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
3195         order to set the value as required (which means: when selection
3196         changes for a part being edited, and not before that if not needed).
3197         Also use an enum to describe which part are we using, and use the
3198         selection as a property in PartData, in order to notify the
3199         DateTimePicker owner that we need to end the current edit.
3200         Fixes #383462.
3201
3202 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
3203
3204         * PropertyGridTextBox.cs: Validation should be performed only if we 
3205         are focused. We can lose focus for example if the Return key is used 
3206         to set the entry and there is an error. When the message box is 
3207         displayed we would have validate on click in the message box.
3208
3209 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
3210
3211         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
3212         in order to determine that we are expandable is wrong. There was a bug, 
3213         now fixed, in TypeDescriptor that was causing the wrong converter to be 
3214         returned which caused GetPropertiesSupported == false in most cases.
3215         [Fixes bug #409027]
3216
3217 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
3218
3219         * ImageList.cs: Fix ICollection.CopyTo implementation for
3220         ImageListCollection.  [Fixes bug #409169]
3221
3222 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3223
3224         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
3225         WorkingArea so that menus can appear on the second monitor
3226         when one has dual monitors.
3227
3228 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3229
3230         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
3231         Fixes build.
3232
3233 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3234
3235         * TextBox.cs: Implement navigation support for auto complete in
3236         TextBox, as well as refactor the code to show the auto complete window
3237         when receiving a WM_CHAR message, instead of TextChanged, since
3238         autocomplete itself should be able to set the Text a lot of times and
3239         finally only typing should show it, not changes from code.
3240
3241 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3242
3243         * TabControl.cs: When expanding the selected tab, don't adjust the
3244         width if alignment is Right, since it has a different offset than 0,
3245         as opposed to the other alignments.
3246         Fixes the selected tab not being painted at all with alignment = Right
3247         and using FillToRight size mode.
3248
3249 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3250
3251         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
3252
3253 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3254
3255         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
3256         values from the textbox to the boundary values.  [Fixes bug #409026]
3257
3258 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3259
3260         * TreeNodeCollection.cs: We were copying one too many elements when
3261         doing our array copy.  Fixes a crash when RemoveAt is called.
3262         [Fixes bug #408999]
3263
3264 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3265
3266         * TabControl.cs: When doing the layout and need to call FillRow -using
3267         FillToRight size mode-, use the overload receiving a bool param
3268         indicating whether we need to do a vertical or horizontal calculation.
3269         Fixes part of #399583.
3270
3271 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3272
3273         * TextBox.cs: When painting, use the value returned by
3274         GetLastVisibleItem instead of using the cached last_item field, since
3275         there could be a desynchronization between the layout and the
3276         painting. Fixes a AOOR exception in auto complete mode.
3277
3278 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
3279
3280         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
3281         NonClientAreaEnabled until our VisualStyles is modified to allow it.
3282
3283 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
3284
3285         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
3286
3287 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3288
3289         * TextBox.cs: When focus is lost, if the auto complete listbox is
3290         visible, hide it.
3291
3292 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
3293
3294         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
3295         tracking size for tool windows.
3296         * Theme.cs, ThemeWin32Classic.cs : Extracted
3297         ManagedWindowSpacingAfterLastTitleButton.
3298
3299 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
3300
3301         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
3302         They are bit-rotted and have always been listed as "unsupported".
3303
3304 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
3305
3306         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
3307
3308 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
3309
3310         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
3311
3312 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3313
3314         * ListBox.cs: Make sure last_item_visible gets reset before we try
3315         to do a layout due to scrollbars appearing or disappearing.
3316         [Fixes bug #408139]
3317
3318 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3319
3320         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
3321         for different window themes.  [Fixes bug #339140]
3322
3323 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3324
3325         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
3326         in ManagedWindowBorderWidth.
3327
3328 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3329
3330         * InternalWindowManager.cs: Change MouseMove to take a point, so
3331         we can use the same point later on.
3332         * MdiWindowManager.cs: Store point sent to MouseMove so we can
3333         later reset to it.  On Windows, the Cursor.Position had already
3334         changed by the time we were resetting to it.
3335         [Fixes bug #363239]
3336
3337 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3338
3339         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
3340         are inactive.
3341         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
3342         user requested it.
3343         [Fixes bug #398686]
3344
3345 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3346
3347         * MdiWindowManager.cs: Double-clicking on the title bar should not
3348         maximize a MDI form if MaximizeBox = false.
3349
3350 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3351
3352         * ThemeVisualStyles.cs: Fixed a warning.
3353
3354 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3355
3356         * ThemeVisualStyles.cs: Fixed warnings and formatted.
3357
3358 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3359
3360         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
3361         implementation produces a better result.
3362
3363 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3364
3365         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
3366         windows.
3367
3368 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3369
3370         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
3371         cannot be used from the ThemeEngine constructor.
3372         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
3373         Application.VisualStylesEnabled because it does not work on X11.
3374
3375 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
3376
3377         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
3378         that we did not always check for, as well as fixes to the IList
3379         implementations.  [Fixes bug #402703]
3380
3381 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3382
3383         * IDeviceContext.cs: Added Dispose.
3384
3385 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3386
3387         * Control.cs: Added OnSizeInitializedOrChanged.
3388         * Form.cs: OnLoadInternal: Added a call to
3389         Control.OnSizeInitializedOrChanged.
3390         * InternalWindowManager.cs:
3391          * HandleTitleBarMouseMove: No longer invalidates the parent window.
3392          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
3393          * TitleButton: Added Entered.
3394          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
3395         * MdiWindowManager.cs:
3396          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
3397          move over the maximized title buttons causes a change.
3398          * IsActive: Can now be called before the window is added to a MDI parent.
3399         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
3400         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3401         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
3402         * ThemeWin32Classic.cs:
3403          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
3404          * DrawTitleButton takes a new form parameter.
3405          * Added ManagedWindowTitleButtonHasHotElementStyle,
3406          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3407
3408 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3409
3410         * ThemeEngine.cs: ThemeVisualStyles is now selected if
3411         Application.EnableVisualStyles has been called, even if the current system
3412         configuration does not support rendering with Visual Styles.
3413         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
3414         Styles should not be used.
3415
3416 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
3417
3418         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
3419         ComboBox in FormsTest.
3420
3421 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
3422
3423         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
3424         for fixed toolwindows.
3425
3426 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
3427
3428         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
3429
3430 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3431
3432         * Control.cs: CreateControl just returns if the Control is diposed 
3433         and doesn't throw ObjectDisposedException.
3434         [Fixes bug #406566]
3435
3436 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3437
3438         * Control.cs: Do not create the control if the parent isn't created 
3439         yet, e.g in the case of a parented form on which .Show is called.
3440         It will be created when the parent is made visible/created.
3441         Improves #402446.
3442
3443 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3444
3445         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
3446         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
3447         [Fixes bug #406786]
3448
3449 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3450
3451         * Form.cs: When disposed set owner to null. Improves #402446.
3452
3453 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3454
3455         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
3456         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
3457         if not.
3458         * Form.cs: Take the Padding into account for the PreferredSize.
3459         [Fixes bug #402849]
3460
3461 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3462
3463         * TabControl.cs: Since we don't support more than one direction in
3464         TabControl rows alignment (this is, the row becomes the
3465         bottom row when selected), make Direction return always 1. This way
3466         the layout doesn't get confused about a bad calculation.
3467         Fixes #399582.
3468
3469 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3470
3471         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
3472         so that the wparam is properly set.
3473         Fixes form moving in the test case in bug 402446.
3474
3475 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
3476
3477         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
3478         the full tree instead of nothing.  [Improves bug #406584]
3479
3480 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
3481
3482         * ThemeWin32Classic.cs: Adjusted minimized window painting.
3483
3484 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
3485
3486         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
3487         children.
3488
3489 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
3490
3491         * TreeView.cs: Add a null check when using CollapseAll on an
3492         empty tree.  [Fixes bug #406449]
3493
3494 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3495
3496         * Form.cs: Make OnMenuComplete internal so we can call it.
3497         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
3498         [Fixes bug #399321]
3499
3500 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3501
3502         * TabControl.cs: Handle Up and Down keys when TabControl is in
3503         vertical alignment.
3504         [Fixes bug #399585]
3505
3506 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3507
3508         * TabControl.cs: Invalidate when we remove a tab.  Guard against
3509         an AOORE when trying to remove a tabpage that is not owned by the
3510         parent control.
3511         [Fixes bug #399927]
3512
3513 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3514
3515         * ScrollBar.cs: Change the LargeChange calculation to be correct.
3516         Ensure we are using LargeChange instead of large_change so we our
3517         calculations are correct.
3518         [Fixes bug #403122]
3519
3520 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3521
3522         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
3523         we need to ensure the ColumnCount/RowCount gets set.
3524         [Fixes bug #404851]
3525
3526 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3527
3528         * ListBox.cs: When handling item navigation, if selection mode is
3529         None, call EnsureVisible, since scrolling is normally handled by
3530         selection, that we are not calling in this case.
3531         Fixes #398345.
3532
3533 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
3534
3535         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
3536         a null check to our focus walking code.  [Fixes bug #394332]
3537
3538 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
3539
3540         * ComboBox.cs: Case missed in bug 379596 "Support item
3541         navigation by entering text": On _close_ drop-down select
3542         the first item matching the text in the textbox.  [Fixes bug #397265]
3543
3544 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
3545
3546         * DataGridView.cs: Fix a crash when sorting by column headers, 
3547         mentioned in bug #404841.  Remove some dead switch cases.
3548
3549 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3550
3551         * ComboBox.cs:
3552         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
3553         uses the AutoComplete support in the internal TextBox. Also TextBox
3554         can store a reference to ComboBox, in case AutoCompleteSource is set
3555         to ListItems (this is, ComboBox's items, and we don't want to pass an
3556         additional collection).
3557
3558 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3559
3560         * ListViewItem.cs: Restore the initial value of bounds rect to
3561         Rectangle.Empty, and is this value for Layout detection in virtual
3562         mode. Fixes the tests.
3563
3564 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
3565
3566         * XPlatUI.cs: Remove references to "new" X11 backend.
3567
3568 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
3569
3570         * Control.cs: Add an internal virtual OnDragDropEnd method 
3571         to allow controls such as ListBox, which depend on a sequence 
3572         of MouseDown+Move+End events, to handle the lack of a MouseUp 
3573         when a DnD operation is started in MouseDown.
3574         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
3575         get a MouseUp, so reset our state whenever a DnD operation ends.
3576
3577 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
3578
3579         * PropertyGrid.cs: Clear the root griditem first thing when 
3580         new object/s is/are selected. Fixes some rare cases where 
3581         the View will get a paint request and won't know that the 
3582         grid is in the process of repopulating.
3583
3584 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3585
3586         * XplatUIX11.cs, InternalWindowManager.cs: 
3587         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
3588         doesn't automagically update the FormBorderStyle, so we must 
3589         double check the CreateParams explicitly to determine if the 
3590         window is a toolwindow.
3591         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
3592         instead of doing custom checks.
3593
3594         Fixes toolwindows for the test case in bug #402446
3595
3596 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3597
3598         * Control.cs: Visibility of the control should be false 
3599         when the handle is destroyed in WmDestroy and not immediately 
3600         in Dispose(). This is effectively where the disposing process 
3601         ends even though the control is marked as Disposed immediately 
3602         after calling Dispose().
3603         [Fixes bug #402446]
3604
3605 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3606
3607         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
3608         when the textbox gets focus.
3609         [Fixes bug #402704]
3610
3611 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3612
3613         * PropertyGridTextBox.cs, PropertyGridView.cs: 
3614          - Alt + Down should show the drop down editor.
3615          - Focus the editor when showing it
3616         [Fixes bug #402710]
3617
3618 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
3619
3620         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
3621         that are not the first panel.
3622         * StatusBar.cs: Ensure that the X coordinate of panels is always
3623         stored.  Fix IList implementation of StatusBarPanelCollection to
3624         call the regular methods.
3625         [Fixes bug #403599, #402165]
3626
3627 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
3628
3629         * ThemeWin32Classic.cs: Fix position calculation for centered
3630         text on status bar panels.  [Fixes bug #402165]
3631
3632 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
3633
3634         * Splitter.cs: Fix Splitter to:
3635          - Work for arbitrary splitter size
3636          - Handle MinSize and MinExtra properly
3637          - Get rid of absolute positioning during drag and use relative
3638          - Multiple other fixes 
3639          [Fixes bug #338966]
3640
3641 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
3642
3643         * Cursor.cs: Show shouldn't hide the cursor.
3644
3645 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3646
3647         * ListViewItem.cs: When invalidating, add some extra space to bounds,
3648         since focus rectangle and selection can add some space and need to
3649         take into account those small offsets - specially in Details view.
3650         * ListView.cs: Instead of invalidate using item Bounds directly, call
3651         item.Invalidate, to have the code centralized.
3652         Fixes focused/selection garbage when selecting and deselecting items
3653         that are close.
3654
3655 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3656
3657         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
3658         mode we can check whether we have to force a Layout or not, and can
3659         cache based on this, instead of avoiding caching all the the time. Do
3660         this check in GetBounds and TextBounds.
3661         Fixes selection in Details view.
3662
3663 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3664
3665         * ListView.cs: Make HeaderControl internal, thus the theme engine can
3666         get its *real* height instead of trying to infere it.
3667         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
3668         get the position of them, since it's in general a bad idea in general,
3669         and because we can't do that in virtual mode. Instead get the first
3670         visible item as well as item height, and draw them.
3671         Fixes #400390.
3672
3673 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
3674
3675         * ToolStripSplitButton.cs: We can't add in extra width if
3676         the button is not AutoSize.  [Fixes bug #401279]
3677
3678 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
3679
3680         * PaddingConverter.cs: 
3681          - Implement conversion to InstanceDescriptor
3682          - Handle "All" in CreateInstance by using the supplied 
3683          ITypeDescriptorContext.
3684          [Fixes bugs #396076 and #396078]
3685
3686          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
3687          Code contributed under MIT/X11 license.
3688
3689 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
3690
3691         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
3692         ButtonBase.cs:
3693         Add Category attributes.
3694         Code is contributed under the MIT/X11 license.
3695
3696 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
3697
3698         * Form.cs: 
3699          - Fix a NRE when unparenting a form.
3700          - Do not recreate or destroy a parented form when 
3701         unparenting. 
3702
3703 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3704
3705         * TextBox.cs: Implement basic support for AutComplete with custom
3706         sources.
3707
3708 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
3709
3710         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
3711         DropDownButtonBounds should be from the origin of the button, not the
3712         ToolStrip.  [Fixes bug #401279]
3713
3714 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
3715
3716         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
3717           running gtk_init_check.  This prevents GAIL from loading
3718           unnecessarily, which was breaking UIA support.  Initial fix for bug
3719           #375987.
3720         * Application.cs: Add UIA support to Winforms.  New static constructor
3721           uses reflection to initialize UIAutomationWinforms assembly.  Added
3722           PreRun event so UIA can initialize before the mainloop starts, and
3723           FormAdded event so UIA can provide a11y support for new Forms in an
3724           Application.
3725
3726 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
3727
3728         * DataGridView.cs: When binding to a dataset, subscribe to table
3729         and column change events.  Unsubscribe to these when we clear bindings.
3730         [Fixes bug #399601]
3731
3732 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
3733
3734         [DataGrid drawing refactory]
3735
3736         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
3737
3738         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
3739         must be handle by Theme, now it call DataGridPaintColumnHeader.
3740
3741         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
3742         test cases must be also fixed because it checks for wrong size.
3743
3744         * ThemeWin32Classic.cs: 
3745                 - Draw the bottom line of grid caption.
3746                 - Prevent to draw caption text when it is empty.
3747                 - Use CPDrawBorder3D for 3D efects to simplify code.
3748                 - Uses 3D (when not flat) to paint corner shared between row and column
3749                 header.
3750                 - Fix header drawing issues on win32, now borders are drawing.
3751                 - Fix column header paint issues to mimic win32.
3752                 - Adjust header drawing for last column, like first one it must be draw
3753                 different.
3754                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
3755                 not an character.
3756                 - DataGridPaintColumnHeader created to draw column headers, it also
3757                 paint stuff right on Win32.
3758                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
3759                 class.
3760
3761         * Theme.cs: 
3762                 - DataGridPaintRowHeaderStar method added.
3763                 - DataGridPaintColumnHeader method added.
3764
3765 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
3766
3767         * Control.cs: Don't reset to Dock style layout if DockStyle is
3768         set to none.  [Fixes bug #399316]
3769
3770 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
3771
3772         * Win32DnD.cs: Fix the check for control not equal null.
3773         Fixes bug #341420 and #381886. 
3774
3775 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
3776
3777         * DataGridViewRowCollection.cs: Update the indexes of rows after
3778         one has been removed.
3779         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
3780         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
3781         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
3782         rows for the Rows collection, or deleting rows from the bound DataSet.
3783
3784 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
3785
3786         * DataGridView.cs: Listen to a DataSet's changed event even
3787         when autogeneratecolumns is false.  Refactor the changed event's
3788         add row code to use the same as the existing add row code.
3789         [Fixes bug #399601]
3790
3791 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3792
3793         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
3794         much any time the caret moves and there is text, not just when
3795         the selection changes as one would think.
3796         * RichTextBox.cs: Override RaiseSelectionChanged and fire
3797         SelectionChanged.
3798         [Fixes bug #397271]
3799
3800 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3801
3802         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
3803         instead of trying to duplicate the code.
3804         * ListBox.cs: Make method internal so we can send keyboard events.
3805         [Fixes bug #398344]
3806         
3807 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3808
3809         * TextBoxBase.cs: When pasting and checking the max length,
3810         subtract the selected text length (the text we will be replacing) from
3811         the document length.
3812         * TextControl.cs: Ensure every character insertion is reflected in
3813         charcount, so max length will work properly.
3814         [Fixes bug #398605]
3815
3816 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3817
3818         * ListBox.cs: Ensure scrollbars are updated when a single
3819         column listbox with an already set top-index is created.
3820         [Fixes bug #398342]
3821
3822 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3823
3824         * FontDialog.cs: Typing in the font/style textboxes should search
3825         the list boxes case-insensitively.  [Fixes bug #398343]
3826
3827 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
3828
3829         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
3830         widths of icon and buttons instead of hard coded values.
3831
3832 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3833
3834         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
3835         as well as generating a SelectedIndexChanged event, just like .Net does
3836         -surprise-.
3837         Fixes #398345.
3838
3839 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3840
3841         * ListBox.cs: When navigating items visually, use FocusedItem as the
3842         reference point instead of SelectedIndex, since even in
3843         SelectionMode.None we need to support navigation, and in that case we
3844         just can't use SelectedIndex.
3845         Fixes part of #398345.
3846
3847 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
3848
3849         * Control.cs: Make a SetBoundsInternal that avoids the new
3850         SetBounds code.
3851         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
3852         SetBoundsInternal instead of SetBoundsCoreInternal.
3853
3854 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
3855
3856         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
3857         SetBounds for the scrollbars.
3858
3859 2008-06-10  Andreia Gaita <avidigal@novell.com> 
3860
3861         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
3862           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
3863           OnMouseMove, OnMouseOver, OnMouseUp
3864         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
3865           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
3866         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
3867           to the WebControl object to pass to new collection objects
3868         * HtmlHistory.cs: Implement support for individual window histories.
3869         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
3870           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
3871           GotFocus, LostFocus, OnLoad, OnUnload
3872         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
3873           ContextMenu
3874         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
3875           security level changes and context menu event support.
3876
3877 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3878
3879         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
3880         as happens with Esc, patch my Andy Hume.
3881         Fixes #396294.
3882
3883 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3884
3885         * MdiWindowManager.cs: DrawMaximizedButtons now uses
3886         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
3887         * Theme.cs: Made MenuButtonSize platform dependent. Added
3888         ManagedWindowButtonSize.
3889         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
3890         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
3891
3892 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3893
3894         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
3895         Added support for rendering with VisualStyles.
3896
3897 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3898
3899         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3900         support for rendering the border with VisualStyles.
3901
3902 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3903
3904         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
3905         the icon is not shown.
3906         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
3907         its own logic.
3908
3909 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3910
3911         * InternalWindowManager.cs: Draw minimized windows even if they don't have
3912         borders.
3913
3914 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
3915
3916         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
3917
3918 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
3919
3920         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
3921         [Fixes bug #397943]
3922
3923 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3924
3925         * ComboBox.cs: When snaping height -because of IntegralHeight set to
3926         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
3927         if the requested height leaves the listbox area with *less* than the
3928         required are to see one item. We were setting it to PreferredHeight
3929         even for values matching the height for a single item.
3930         Fixes #396297.
3931
3932 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
3933
3934         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
3935
3936 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
3937
3938         * DataGridViewCell.cs: Use property instead of field.
3939
3940 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3941
3942         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
3943         null checks.
3944
3945 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3946
3947         * Theme.cs: Added #region around the managed window code. Made the managed
3948         window methods abstract.
3949         * ThemeWin32Classic.cs: Added #region around the managed window code.
3950
3951 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3952
3953         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
3954         if it has borders.
3955         * ThemeWin32Classic.cs: Removed HasBorders checks in
3956         DrawManagedWindowDecorations.
3957
3958 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3959
3960         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3961         Extracted ManagedWindowGetTitleBarIconArea.
3962
3963 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3964
3965         * DataGridViewCellStyle.cs: Don't clone the font.
3966
3967 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3968
3969         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
3970
3971 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3972
3973         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
3974         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
3975         in 64 bit machines.
3976
3977 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3978
3979         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
3980         Use Format/FormatProvider before trying converters.
3981         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
3982         are 'set'.  Change constructor to not use ApplyStyle since it wants
3983         everything applied.  Clone the Font.
3984         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
3985         ApplyStyle the rest.
3986
3987 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3988
3989         * ListView.cs: We need to calculate the scrollbars even if the handle
3990         hasn't been created - this is needed when methods using scrollbars
3991         info, such EnsureVisible, are called before control has been created.
3992         Fixes #397272.
3993
3994 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
3995
3996         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
3997         only if the elements are defined. 
3998
3999 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4000
4001         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4002         section. Also, when setting bounds, snap height as well as save the
4003         requested height if Dock has any value affecting the height: Left,
4004         Right and Bottom - important if using IntegralHeight as true.
4005
4006 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4007
4008         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4009         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
4010         instead of doing that only in our SetBoundsCore override, since the 
4011         bounds cached can be the same as saved one and we could not get the
4012         new height applied.
4013         Fixes #396297.
4014
4015 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4016
4017         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4018         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4019         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4020         ToolWindowCaptionButtonSize.
4021         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4022
4023 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4024
4025         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4026         hard coded values.
4027         * Theme.cs: Made DoubleClickTime plaform dependent.
4028
4029 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4030
4031         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4032         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4033         ToolWindowCaptionHeight.
4034
4035 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4036
4037         * InternalWindowManager.cs: The adjustment to ensure positive client area
4038         sizes is now platform dependent (disabled on Windows).
4039         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4040         RequiresPositiveClientAreaSize.
4041
4042 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4043
4044         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4045
4046 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4047
4048         * InternalWindowManager.cs: Changed IconicSize to use
4049         SystemInformation.MinimizedWindowSize.
4050         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4051         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4052
4053 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4054
4055         * ComboBox.cs: If the combobox is anchored both on top and bottom,
4056         adjust height if IntegralHeight is true when calling SetBoundsCore (as
4057         likely the height was modified even if Height wasn't specified in
4058         BoundsSpecified parameter).
4059         Fixes part of #396297.
4060
4061 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
4062
4063         * InternalWindowsManager.cs: Changed minimum window size while resizing to
4064         SystemInformation.MinWindowTrackSize.
4065         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4066         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4067
4068 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4069
4070         * MenuItem.cs: Fixed Dispose.
4071
4072 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4073
4074         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4075         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4076         EnteredHeaderCell, PressedHeaderCell: Added.
4077         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4078         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4079         theme a chance to override default painting.
4080         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4081         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4082         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4083         ListView and DataGridView header rendering.
4084         
4085 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4086
4087         * RichTextBox.cs: GetPositionFromCharIndex should return the 
4088         visual position of the character relative to the viewport.
4089         [Fixes part of bug #396664]
4090
4091 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4092
4093         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
4094         and not just for the existance of an UITypeEditor. In some cases 
4095         there is an editor associated just to do PaintValue, but which 
4096         doesn't actually support editing.
4097         [Fixes bug #396632]
4098
4099 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4100
4101         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
4102         if needed, instead of 0 - this should help us in the corner case where
4103         we have more than one item but we are only partially showing 1 item.
4104         Fixes part of #374713.
4105
4106 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4107
4108         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
4109         control, return immediately if the any parent control's handle hasn't
4110         been created or isn't visible, as well as avoiding creating the parent
4111         Form if the handle hasn't been previously created.
4112         Fixes tests.
4113
4114 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4115
4116         * TableLayoutPanel.cs: Use border sizes when calculating the
4117         panel's preferred size.  [Fixes part of bug #396433]
4118
4119 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4120
4121         * SplitContainer.cs:
4122          - Fix SplitterDistance to update only if needed. 
4123          - Make it force min and max validation.
4124          - Handle properly mouse moves outside the resizeable area.
4125          [Fixes bug #396232]
4126
4127 2008-06-02  Andreia Gaita <avidigal@novell.com> 
4128
4129         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
4130           (which also suppresses all popup dialogs). Throw NotSupported
4131           exceptions for activex getters/setters.
4132         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
4133           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
4134           StatusText, Version, GoSearch
4135         * HtmlDocument.cs: Add DocType support
4136
4137 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
4138
4139         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
4140         [Fixes bug 396124]
4141
4142 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4143
4144         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
4145
4146 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4147
4148         * TableLayoutPanel.cs: When calculating preferred size, use the
4149         actual number of columns and rows, not what the user set them to.
4150         [Fixes bug #396141]
4151
4152 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
4153
4154         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
4155         394311.
4156
4157 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4158
4159         * XplatUIX11.cs: When detecting areas obscured in a control by other
4160         toplevel windows while scrolling, return if the control hasn't a 
4161         container form.
4162         Fixes some tests.
4163
4164 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4165
4166         * XplatUIX11.cs: Properly detect the visible area of a control being
4167         scrolled (obscured by other winforms controls and any X toplevel
4168         windows), to mark as invalid the requested area to be scrolled that
4169         isn't visible and thus can't be copied.
4170         Fixes #324513.
4171
4172 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4173
4174         * ListBox.cs: Compute the precise amount to vertically scroll when
4175         using DrawMode.OwnerDrawVariable.
4176         Patch by jkeymer (j.keymer@gmx.net).
4177
4178 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4179
4180         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
4181         to avoid setting an invalid value for the verticall scrollbar 
4182         when navigating items. And, duh, also remove my silly debug messages
4183         from previous commits.
4184         Fixes #374713.
4185
4186 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4187
4188         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
4189         make it MS compatible.
4190
4191 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4192
4193         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
4194          - Allow the editing of entries even if their parent is read-only.
4195          - Do not render expandable properties read-only.
4196          - Refactor expansion checks form PropertyGrid into PropertyGrid.
4197
4198 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
4199
4200         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4201         support for the hover style.
4202
4203 2008-05-29  Andreia Gaita <avidigal@novell.com> 
4204
4205         * ContainerControl.cs: Check for null dead-end when traversing the tree
4206           of parent controls.
4207         
4208           [Fixes #394332, patch by Ernesto Carrea]
4209
4210 2008-05-29  Geoff Norton  <gnorton@novell.com>
4211
4212         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
4213         constant that it is.  Fixes #393981
4214
4215 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4216
4217         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
4218         that the user probably doesn't want to set this.
4219
4220 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4221
4222         * ThemeWin32Classic.cs: Don't let the text size be bigger than
4223         the control size for CheckBox/RadioBox.
4224         [Fixes part of bug #394645]
4225
4226 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4227
4228         * PropertyGrid.cs: Update the state of the sorting buttons in 
4229         the toolbar if PropertySort is set programatically.
4230
4231 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4232
4233         * GridItemCollection.cs: Add multiple items with conflicting names 
4234         support and also preserve name ordering.
4235         [Fixes #395345]
4236
4237 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4238
4239         * GridItemCollection.cs: Revert my multiple items with same 
4240         name patch.
4241
4242 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4243
4244         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
4245         or middle ones.
4246         Fixes part of #393908.
4247
4248 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
4249
4250         * ToolStripDrowDown.cs: When using the Show () methods that have a
4251         Control parameter, set the menu owner to that Control.
4252         [Fixes bug #394345]
4253
4254 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
4255
4256         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
4257         [Fixes bug #362756]
4258
4259 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4260
4261         * GridItemCollection.cs: Refactor to support multiple items with the 
4262         same name.
4263         [Fixes bug #394314]
4264
4265 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
4266
4267         * Control.cs: The 2.0 check for illegal cross thread calls in 
4268         Control.Handle were throwing an exception when we were getting
4269         the Handle in order to invoke correctly.  Created a private
4270         version that does not contain this check.
4271         [Fixes bug #394531]
4272
4273 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4274
4275         * PropertyGrid.cs: Respect DefaultTabType.
4276
4277 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4278
4279         * ListView.cs: SPACE selects an item.
4280         [Fixes bug #393023]
4281
4282 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4283
4284         * ListView.cs: Reset the search string whenever the items are 
4285         modified.
4286         [Fixes bug #393020]
4287
4288 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4289
4290         * ListControl.cs: For the first added item PositionChanged is fired
4291         _before_ ItemChanged, which leave us in a temporary invalid state - so
4292         we need to set the selected index from ItemChanged handler *if* we
4293         know that the first item has just been added *and* the items have been
4294         actually added to the ListControl.
4295         Fixes #369048.
4296
4297 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4298
4299         * TabControl.cs: Only clicks with the left button should be
4300         handled.
4301         Fixes #393908.
4302
4303 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4304
4305         * ComboBox.cs: 
4306         * FIleDialog.cs:
4307         * TextBox.cs: Expose an internal method in TextBox to restore the
4308         original context menu, and call it from ComboBox to re-use it in the
4309         combobox containing the file name in FileDialog.cs.
4310         Fixes part of #393775.
4311
4312 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
4313
4314         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
4315         style.
4316
4317 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
4318
4319         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
4320         down button style.
4321
4322 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4323
4324         * ComboBox.cs: Minor correction to previous patch: PageDown should
4325         also *try* to move by one item if the computed offset is negative,
4326         just like the PageUp case.
4327
4328 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4329
4330         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
4331         should be done for at least 1 item, and not stay at the same item.
4332         Fixes part of #374713.
4333
4334 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
4335
4336         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
4337         directories.  [Fixes bug #393931]
4338
4339 2008-05-22  Andreia Gaita <avidigal@novell.com> 
4340
4341         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
4342           Don't fire events until the initial about:blank page has finished
4343           loading. Clean up events.
4344
4345 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
4346
4347         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
4348           FocusIn() too. This should fix the issue on switching
4349           scim keyboards.
4350
4351 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
4352
4353         * X11Keyboard.cs : set XIM font size to somewhat reasonable
4354           number (ideally the input textbox size, but that could be
4355           too messy).
4356
4357 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
4358
4359         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
4360         the ToolStripItem's TextChanged.  [Fixes bug #393597]
4361
4362 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4363
4364         * TabControl.cs: When invalidating in SelectedIndex and we need to
4365         inflate to take into account the border of the tabs, make sure that
4366         the invalidated rect doesn't overflow the control bounds, since that
4367         would avoid updating at all.
4368
4369 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4370
4371         * TabControl.cs: Don't substract scroller width from the row width,
4372         since we need to take into account the total width of the control when
4373         calculating the position of the tabs. This avoids showing scroller
4374         when it is actually not needed.
4375         Fixes part of #322325.
4376
4377 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4378
4379         * ThemeVisualStyles.cs: Added support for TextBoxBase.
4380
4381 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4382
4383         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4384         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
4385
4386 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4387
4388         * DataGridView.cs: Only paint the top left header cell if there
4389         are columns.
4390
4391 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4392
4393         * DataGridView.cs: When binding to a BindingSource, get the underlying
4394         list to bind to.  [Fixes bug #345483]
4395
4396 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4397
4398         * DataGridView.cs: Do not bind to collection properties.
4399         [Fixes bug #337470]
4400
4401 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4402
4403         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
4404
4405 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4406
4407         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
4408         thumb style.
4409
4410 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4411
4412         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
4413
4414 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4415
4416         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
4417         background.
4418
4419 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4420
4421         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
4422
4423 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4424
4425         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
4426         checked styles.
4427
4428 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4429
4430         * TabControl.cs: Extended to handle the hot style.
4431
4432 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4433
4434         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
4435         Extended UpDownBase code to handle hot and disabled styles.
4436
4437 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4438
4439         * DataGridView.cs: Handle databinding to generic list type things.
4440         [Fixes bug #325239]
4441
4442 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4443
4444         * DataGridViewCellCollection.cs: Add a method to find the cell
4445         with the given DataPropertyName.
4446         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
4447         * DataGridViewColumnCollection.cs: Add a method to clear all
4448         autogenerated columns.
4449         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
4450         columns.
4451         [Fixes bug #348082]
4452
4453 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4454
4455         * DataGridView.cs: Don't try to update the RowTemplate with
4456         a null CellTemplate.
4457
4458 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4459
4460         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
4461         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
4462         * DataGridView.cs: Lots of fixes/enhancements to databinding to
4463         a DataSet.
4464
4465 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4466
4467         * Control.cs: Remove invalidating implicit child controls when
4468         control is invalidated.  It was causing too many redraws on
4469         controls with implicit scrollbars.
4470         * ListView.cs: Listen to the Invalidated event and invalidate
4471         child controls.
4472
4473 2008-05-20  Andreia Gaita <avidigal@novell.com> 
4474
4475         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
4476         * HtmlDocument.cs: Check for nulls
4477
4478 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4479
4480         * Control.cs: In ControlCollection.RemoveInternal, remove the
4481         internal control before calling PerformLayout and OnControlRemoved,
4482         which was leaving us in an invalid state and causing a X error (bad
4483         match). Observe that Remove () call has the same order.
4484         Fixes an X error changing ComboBoxStyle.DropDownStyle.
4485
4486 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4487
4488         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
4489         being fired if ControlStyles.UserPaint style is activated.
4490         Fixes #371905.
4491
4492 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4493
4494         * GridEntry.cs: Don't be so strict when setting the value - 
4495         do not check if what we set is what we get.
4496         [Fixes bug #389245]
4497
4498 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4499
4500         * XplatUIX11.cs: If there are no timers timeout should be 0
4501         [Fixes bug #363522]
4502
4503 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
4504
4505         * Control.cs: As a followup to invalidating implicit children when
4506         a control is invalidated, only invalidate them if they are in the
4507         clip rectangle.
4508
4509 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4510
4511         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
4512
4513 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4514
4515         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
4516
4517 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4518
4519         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
4520         * XplatUIWin32.cs: Made Win32DeleteObject public.
4521
4522 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4523
4524         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
4525         PropertyDescriptor.ShouldSerializeValue.
4526         [Fixes bug #391924]
4527
4528 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4529
4530         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
4531         in the classic theme.
4532
4533 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4534
4535         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
4536         ThumbPressed.
4537         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
4538         ScrollBarHasPressedThumbStyle.
4539
4540 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4541
4542         * TextRenderer.cs: Included some methods in the 1.1 profile.
4543
4544 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
4545
4546         * Control.cs: When we make a control visible, it may have been
4547         previously visible and while it wasn't visible, the z-order of
4548         things may have been shuffled, so the control needs to have its
4549         z-order updated just in case.  [Fixes bug #391518]
4550
4551 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4552
4553         * ThemeVisualStyles.cs: Added support for GroupBox.
4554
4555 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4556
4557         * GroupBoxRenderer.cs: Included in the 1.1 profile.
4558
4559 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
4560
4561         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
4562           bug #389996; XSelectInput() behaved as mouse handler robber,
4563           so remove extra call to it.
4564
4565 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4566
4567         * Control.cs: Simplify ControlCollection.Contains method.
4568
4569 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4570
4571         * DataGridViewRow.cs: Implement GetPreferredSize.
4572
4573 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4574
4575         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
4576
4577 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4578
4579         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
4580         painting and edit control fixes.
4581
4582 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4583
4584         * DataGridView.cs, DataGridViewCell.cs: Work around some external
4585         checks to make sure we are in an actual row/col for top left header cell.
4586         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
4587
4588 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4589
4590         * Control.cs: Use long instead of int when handling WParam from
4591         mousewheel scrolling.  Int was overflowing on Win64.
4592
4593 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4594
4595         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
4596         flow panel without scrolling first, and then calculate the 
4597         scrolling based on the new layout.  [Fixes bug #390149]
4598
4599 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4600
4601         * ListBox.cs: Invalidate after scrolling up when selected index
4602         changes.  [Fixes bug #390151]
4603
4604 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4605
4606         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
4607         set, default height to 150. I tried first with DefaultSize, but this
4608         is not generating a SetBoundsCore call before handle creation time, so
4609         we can take it into account. This is just what .net does.
4610
4611 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
4612
4613         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
4614         as it broke some stuff.  Calberto is filing a bug for eno to
4615         work with.
4616
4617 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4618
4619         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
4620         to 0 is the current value is -1, and if style is not Simple, just
4621         return, like .net does.
4622         Fixes part of #374713.
4623
4624 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
4625
4626         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
4627         progress bar stuffs, use doubles instead of ints to prevent
4628         overflow.  [Fixes bug #389798]
4629
4630 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
4631
4632         * XplatUIX11.cs, X11Keyboard.cs :
4633           Significant refactoring on XIM support. Now IM engine UI
4634           should show up, at mostly-correct preedit position.
4635           - Eliminated use of FocusWindow, as it is never mapped
4636             and hence blocks correct preedit position. XIC is now
4637             created per window, and it must be destroyed too when
4638             the window is destroyed.
4639           - WM_QUIT messages should not be filtered even when hwnd
4640             is zombie. Filtering it could cause endless loop.
4641           - Preedit position must move only when the window is alive.
4642           - Make it IDisposable and make sure to release XIM/XICs.
4643
4644 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
4645
4646         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
4647           XplatUIX11.cs, XplatUIWin32.cs :
4648           fix for bug #325033 and #387693;
4649           - WM_QUIT should not be sent when no running application
4650             exists.
4651           - SetTimer/KillTimer (especially on win32) should be
4652             invoked for the window that the timer is/will_be attached.
4653           - There could be unattached timers to a window when it's
4654             started. For those timers, hold pending timers and when
4655             a window is mapped, attach them to it.
4656           - WaitForHwndMessage() could run into loop when
4657             WM_SHOWWINDOW is handled before this method is called.
4658             So, strictly check wm_showwindow state.
4659           - Tick handler should not be invoked while one Tick handler
4660             call is still running (introduced Busy state).
4661
4662 2008-05-13  Andreia Gaita <avidigal@novell.com> 
4663
4664         * WebBrowserBase.cs: Override Internal alternative methods for
4665           SetBoundsCore and OnResize instead of the protected ones.
4666         * Control.cs: Move SetBoundsCore and OnResize implementations to
4667           SetBoundsCoreInternal and OnResizeInternal, so they can be
4668           overriden internally (WebBrowserBase needs to catch them but can't
4669           override the protected methods without api compat problems)
4670
4671 2008-05-13  Andreia Gaita <avidigal@novell.com> 
4672
4673         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
4674
4675 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4676
4677         * Binding.cs:
4678         * ListView.cs: Remove debug messages.
4679
4680 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4681
4682         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
4683         area is empty. Also calculate scrollbars in Simple mode based in area
4684         height and total number of items, not in MaxDropDownItems.
4685         Fixes part of #371991.
4686
4687 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4688
4689         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
4690
4691 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4692
4693         * BindingSource.cs: GetListSortDescription is not public.
4694
4695 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4696
4697         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
4698
4699 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4700
4701         * HtmlElement.cs: Fix parameter names to match MS.
4702         * HtmlWindowCollection.cs: Should not be sealed.
4703
4704 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4705
4706         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
4707         button, because the thumb button will not get drawn if the scrollbar
4708         is disabled.  [Fixes bug #389262]
4709
4710 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4711
4712         * ListBox.cs: Handle End key for multi-column listboxen.
4713         [Fixes bug #389266]
4714
4715 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4716
4717         * ListBox.cs: Fix algorithm to determine which column our item is in.
4718         [Fixes bug #389265]
4719
4720 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4721
4722         * ListBox.cs: Invalidate when the listbox is resized.
4723         [Fixes bug #389256]
4724
4725 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4726
4727         * ListBox.cs: There is always at least one row in the ListBox (if
4728         we are doing these calculations.)  [Fixes bug #389253]
4729
4730 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4731
4732         * ListBox.cs: There is always at least one column in the ListBox.
4733         [Fixes bug #389250]
4734
4735 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4736
4737         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
4738         ensure in Simple mode that the height is exactly the requested one.
4739         Also add the ComboBoxListControl to the controls collection in Simple
4740         mode even if handle hasn't been created.
4741         Fixes part of #371991.
4742
4743 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4744
4745         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
4746         our ComboBox owner instead of giving it back to the previous control (
4747         as done in other controls). Also remove the empty override of Select
4748         method, since we want to be selected *and* give focus to our owner.
4749         This should let the user do keys-navigation in Simple mode. 
4750
4751 2008-05-10  Geoff Norton  <gnorton@novell.com>
4752
4753         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
4754         problems with rapid scrolling of treeviews. Fixes #381084
4755
4756 2008-05-10  Geoff Norton  <gnorton@novell.com>
4757
4758         * XplatUICarbon.cs: Deactivate the active window before
4759         activating the desired window.  Completes fixing #386504
4760
4761 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4762
4763         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
4764         SmallChange to the item size width plus the padding, to match .net.
4765
4766 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4767
4768         * FileDialog.cs: Apply the custom filter typed by the user in the file
4769         name combobox as much as possible while navigating in the file dialog.
4770         Fixes #385261.
4771
4772 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4773
4774         * Binding.cs: Actually use NullValue if the retrieved value of
4775         data source is null or DBNull. Makes a test pass.
4776
4777 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
4778
4779         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
4780         * MimeIcon.cs: Provide a way to get icons from resources.
4781
4782 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4783
4784         * Binding.cs: When the value retrieved from the control to be assigned
4785         to the data source is null, actually use the 2.0 DataSourceNullValue
4786         value. Make pass a data binding test.
4787
4788 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4789
4790         * Control.cs: We need to invalidate implicit children even when
4791         invalidate is called with invalidatechildren = false.  (Implicit
4792         children are really part of the parent.)
4793         * ListView.cs: Double-buffer internal child controls for less
4794         flicker.
4795         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
4796         owner ListView subitems for greatly increased performance.
4797         [Fixes bug #388477]
4798
4799 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
4800
4801         * FileDialog.cs: When the user types a wildcard character in the
4802         filename combobox, update the contents of the folder using the text as
4803         a filter.
4804         Fixes part of #385261.
4805
4806 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4807
4808         * ListBox.cs: Various fixes for MultiColumn listboxen.
4809         [Fixes bug #388114]
4810
4811 2008-05-08  Andreia Gaita <avidigal@novell.com> 
4812
4813         * HtmlElement.cs: Implement Style property
4814
4815 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4816
4817         * ListBox.cs: Respect checkboxes when measuring item size.
4818         * ThemeWin32Classis.cs: When drawing list items, don't draw
4819         text outside of the item's bounds to prevent overlapping.
4820         (.Net actually overlaps, but that's just silly.)
4821         [Fixes bug #388117]
4822
4823 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
4824
4825         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
4826         Gert Driesen. Fixes bug #324830. 
4827
4828 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
4829
4830         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
4831         method implemented.
4832
4833 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4834
4835         * BindingSource.cs: When calling IsSynchronized, return the value of
4836         the related IList list.
4837
4838 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4839
4840         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
4841         make a test pass.
4842
4843 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
4844
4845         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
4846         navigation to scroll the grid if the current cell is not visible.
4847
4848 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4849
4850         * HtmlElement.cs: Implement TabIndex
4851
4852 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
4853
4854         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
4855         properties, even when there are no items.
4856         [Fixes bug #387611]
4857
4858 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
4859
4860         * NativeWindow.cs: Add support for multiple handles per window.
4861         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
4862         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
4863         directly - use FromHandle instead.
4864         [Fixes bug #374660]
4865
4866 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4867
4868         * HtmlElement.cs: Implement InnerHTML setter
4869
4870 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4871
4872         * HtmlDocument.cs: Implement Focused
4873
4874 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4875
4876         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
4877         methods, as well as add messages to the exceptions.
4878
4879 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4880
4881         * BindingSource.cs: Setting DataSource should only reset DataMember if
4882         the previous value was null (make pass a not working test).
4883
4884 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4885
4886         * BindingSource.cs: When EndInit call is postponed and is called until
4887         DataSource.EndInit is called, remove the handler for data source.
4888
4889 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4890
4891         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
4892
4893 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4894
4895         * ToolStripManager.cs: Store references to toolstrips as
4896         weak references so they do not prevent forms from getting collected.
4897         [Fixes bug #386483]
4898
4899 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4900
4901         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
4902         on .Net.  So do the same thing in WndProc.
4903
4904 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4905
4906         * TrackBar.cs: Commit patch from Andy Hume that corrects
4907         the clickable areas to better match .Net.
4908         [Fixes bug #387074]
4909
4910 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4911
4912         * TrackBar.cs: Commit patch from Andy Hume that adds the
4913         ResizeRedraw control flag so the track bar repaints itself
4914         when it is resized.  [Fixes bug #387072]
4915
4916 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4917
4918         * TrackBar.cs: Commit patch from Andy Hume that adds better
4919         support for keyboard navigation when the TrackBar is vertical.
4920         [Fixes bug #387071]
4921
4922 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4923
4924         * BindingSource.cs: Implement ISupportInitializeNotification support.
4925
4926 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
4927
4928         * ThemeVisualStyles.cs: Added support for ToolBar.
4929
4930 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
4931
4932         * ToolBar.cs: Made the Vertical property internal.
4933
4934 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4935
4936         * ThemeVisualStyles.cs: Added support for TrackBar.
4937
4938 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4939
4940         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
4941         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
4942         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
4943         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
4944         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
4945         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
4946
4947 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4948
4949         * ThemeVisualStyles.cs: Added support for UpDownBase.
4950
4951 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4952
4953         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
4954         Extracted Theme.UpDownBaseDrawButton.
4955
4956 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
4957
4958         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
4959         removed from the static toolstrips collection in ToolStripManager
4960         when they are disposed.  Provides a workaround for bug #386483.
4961
4962 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
4963
4964         * GridEntry.cs: Read-only properties with Editor with 
4965         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
4966         [Fixes bug #384184]
4967
4968 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
4969
4970         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
4971         the menu key and there are no items on the menu.
4972         [Fixes bug #386644]
4973
4974 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
4975
4976         * Control.cs: Avoid calling ToString on a string.
4977         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
4978         * GroupBox.cs: In FlatStyle property throw, not just create, the 
4979         exception. Avoid calling ToString on a string.
4980         * ProgressBar.cs: Avoid calling ToString on a string. 
4981         * ScrollBar.cs: Avoid calling ToString on a string. 
4982         [All issues were found using Gendarme]
4983
4984 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
4985
4986         * NotifyIcon.cs: Prevent click events to be trigger after double click 
4987         events. Fixes remaining issues of bug #324832.
4988
4989 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
4990
4991         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
4992         to mimic win32 behavior. Partially fixes bug #324832.
4993
4994 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4995
4996         * BindingSource.cs: Implement Find methods.
4997
4998 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4999
5000         * BindingSource.cs: Implement Sort, ApplySort overloads, and
5001         RemoveSort methods.
5002
5003 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5004
5005         * ListBindingHelper.cs: When calling GetListItemProperties and the
5006         passed object is ITypedList, return the result of
5007         ITypedList.GetItemProperties instead.
5008
5009 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5010
5011         * LinkLabel.cs: Set default value of name on constructor of Link class
5012         only for 2.0 profile.
5013
5014 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5015
5016         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5017         Fixes remaining issues of bug #346154.
5018
5019 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5020
5021         * LinkLabel.cs: Set a default value for name on internal contructor of
5022         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5023
5024 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5025
5026         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5027         and refer all instances to owner.links. Partially fixes #346154.
5028
5029 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5030
5031         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
5032         length equal zero. Also called CreateLinkPieces in constructor. It fixes
5033         the LinkLabel test 'TestLinkArea'.
5034
5035 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5036
5037         * Form.cs: Remove menu before close form to prevent form to be not gaced.
5038         [Fixes #386460]
5039
5040 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5041
5042         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5043         [Fixes #386463]
5044
5045 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5046
5047         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5048         [Fixed bug #357004]
5049
5050 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5051
5052         * MenuAPI.cs: Remove unused ProcessCmdKey method.
5053
5054 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5055
5056         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
5057         [Fixes bug #375398]
5058
5059 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5060
5061         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5062         of bug #367492.
5063
5064 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5065
5066         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5067         sometimes we open a conext menu on mouse down of some controls and the mouse
5068         up is dispatched to menu and dont need to. It fix remaining issues of 
5069         #363711 and other problems related to menu mouse click events.
5070
5071 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5072
5073         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5074         some var names to better fit changes, now we have month_menu and today_menu
5075         vars. Fixes bug #363711.
5076
5077 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5078
5079         * MonthCalendar.cs: Handle every right mouse click to open context menu,
5080         right now the default month menu but it will be change to have "Go to today"
5081         menu.
5082
5083 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5084
5085         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5086
5087 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5088
5089         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5090
5091 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5092
5093         * ThemeVisualStyles.cs: Added support for TreeView.
5094
5095 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5096
5097         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5098         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
5099
5100 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5101
5102         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
5103
5104 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5105
5106         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
5107         Implement 2.0 SP1 stuffs.
5108
5109 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5110
5111         * FileDialog.cs: Implement 2.0 SP1 stuffs.
5112
5113 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5114
5115         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
5116         Implement CanEnableIme property. (2.0 SP1)
5117
5118 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5119
5120         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
5121         from the 2.0 API.
5122
5123 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5124
5125         * Control.cs: Provide an internal way for a control to override
5126         the setting of Height.
5127         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
5128         set height using new method.
5129
5130 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5131
5132         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
5133
5134 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5135
5136         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5137         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
5138
5139 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5140
5141         * ThemeVisualStyles.cs: Added support for StatusBar.
5142
5143 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5144
5145         * DataObject.cs: Add the other IDataObject interface.
5146
5147 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5148
5149         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
5150         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
5151
5152 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5153
5154         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
5155         * ListView.cs: Hide non-public API.
5156         * MaskedTextBox.cs: Remove extra attribute.
5157
5158 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5159
5160         * DataGridViewImageCell.cs: Use formatted value instead of value
5161         to calculate preferred size.
5162
5163 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5164
5165         * ListBox.cs: Move some initialization around so that selected_indices
5166         is not accessed before it is created.
5167
5168 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5169
5170         * InputLanguageCollection.cs: Implement the collection better.
5171         [Fixes bug #385506]
5172
5173 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5174
5175         * ToolStripDropDownItem.cs: Get the correct event object for
5176         DropDownItemClicked.
5177         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
5178         [Fixes bug #385475]
5179
5180 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5181
5182         * DataGridViewRowCollection.cs: We don't currently support shared 
5183         rows.  Should fix test failures caused by previous commit.
5184
5185 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5186
5187         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
5188         datagridview gets set.  Only paint cells in visible columns.
5189         * DataGridViewCell.cs: Draw border after cell content.
5190         * DataGridView.cs: Invalidate after setting some properties.  Only
5191         use visible columns.  Fit hit test bug with areas in the col/row header
5192         area but not in a row or col.  Implement UpdateCell/Row methods.
5193
5194 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5195
5196         * DataGridViewElement.cs: Don't throw NIEX.
5197         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
5198         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
5199         * DataGridViewCheckBoxColumn.cs: Implement ToString.
5200         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
5201         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
5202         if the user filled in the formatting Value, use it.
5203
5204 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5205
5206         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
5207         to a string.
5208
5209 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5210
5211         * BindingSource.cs: Some corrections to Filter property, as well as
5212         setting it for our list when resetting it.
5213
5214 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
5215
5216         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
5217         than the maximum.  Fixes reopened bug #384182.
5218
5219 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5220
5221         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
5222         Fixes remaining issues of #367490.
5223
5224 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5225
5226         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
5227         SystemInformation.WorkingArea to get max_screen value.
5228
5229 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5230
5231         * BindingSource.cs: Implement Filter and RemoveFilter.
5232
5233 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5234
5235         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
5236
5237 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5238
5239         * X11Dnd.cs: When trying to convert data and we know we started the
5240         dnd loop, don't try to use the cached data if the loop is not running,
5241         which means that the data has been resetted.
5242         Fixes #378191.
5243
5244 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5245
5246         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
5247         win32 behavior.
5248
5249 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5250
5251         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
5252         it to drawn off screen edge. Fixes bug #367490.
5253
5254 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5255
5256         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
5257         menu position to have only one assignment of Location var.
5258
5259 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5260
5261         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
5262         for this patch. Fixes bug #384115.
5263
5264 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5265
5266         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
5267         the same.  If LargeChange is zero, set a minimum size for the scroll
5268         thumb grip.  [Fixes bug #384182]
5269
5270 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5271
5272         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
5273         [Fixes bug #384181]
5274
5275 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5276
5277         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
5278
5279 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5280
5281         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
5282         patch from Ernesto).
5283
5284 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5285
5286         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
5287
5288 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5289
5290         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
5291
5292 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5293
5294         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
5295
5296 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5297
5298         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
5299
5300 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
5301
5302         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
5303
5304 2008-04-27  Andreia Gaita <avidigal@novell.com> 
5305
5306         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
5307           supposed to return a reference to an mshtml interface, which we
5308           don't support).
5309         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
5310           reference to an mshtml interface, which we don't support). Code
5311           formatting cleanup.
5312         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
5313           DomDocument getter (it's supposed to return a reference to an
5314           mshtml interface, which we don't support). Code formatting cleanup.
5315
5316 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5317
5318         * ListView.cs: Ouch, forgot to commit.
5319
5320 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5321
5322         * ListView.cs: 
5323         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
5324
5325 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5326
5327         * ListView.cs: When calculating box selection for virtual mode, don't
5328         look for intersection with item's text, but item bounds, since that
5329         would mean read ListViewItem's text for _every_ item, and that's
5330         something we just can't do in virtual mode (items are only requested
5331         when drawn).
5332
5333 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
5334
5335         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
5336         partial support for managed windows (based on the patch from Ernesto).
5337
5338 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5339
5340         * ListView.cs: When doing a key search use FindItemWithText method
5341         instead of doing the search by ourselves, this way we avoid
5342         duplicating the code and also we handle the special case for virtual
5343         mode. To achieve that make our private overload of FindItemWithText
5344         internal and also have a 'roundtrip' parameter.
5345
5346 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5347
5348         * ListView.cs: When doing the layout don't request the
5349         ListViewItem instance if we are in virtual mode (since we can't request it
5350         until the item is actully drawn).
5351
5352 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5353
5354         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
5355         from Ernesto).
5356
5357 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5358
5359         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
5360         the patch from Ernesto).
5361
5362 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5363
5364         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
5365         * ThemeVisualStyles.cs: Added.
5366
5367 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5368
5369         * IDeviceContext.cs: Added a missing using.
5370
5371 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5372
5373         * ButtonBase.cs: Made IsDefault protected internal.
5374         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
5375
5376 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5377
5378         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
5379         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
5380         RadioButtonRenderer.cs: Included in the 1.1 profile.
5381         * IDeviceContext.cs: Added.
5382         * TextRenderer.cs: Included a member in the 1.1 profile.
5383
5384 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5385
5386         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
5387
5388 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5389
5390         * ErrorProvider.cs: Make the error icons come after the control
5391         they refer to.  It isn't the way the MS does it, but its better
5392         than what we were doing.  See bug #368587.
5393
5394 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5395
5396         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
5397         from Eric Albright that lazy loads the input language as ensures
5398         everything gets properly initialized.  Fixes bug #373871.
5399
5400 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5401
5402         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
5403         implicit mnemonics.  [Fixes bug #383000]
5404
5405 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5406
5407         * X11Dnd.cs: When canceling the operation, automatically restore the
5408         default cursor - normally the default cursor is restored when the
5409         mouse buttons are released, but we should be able to restore it even
5410         if the buttons are still pressed (for example, when pressing ESC to
5411         cancel).
5412         Fixes #381894.
5413
5414 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5415
5416         * X11Dnd.cs: When starting a new drad and drop operation, set control
5417         field to null, just as the other fields, to avoid calling any
5418         operation on a previous control. Also, when calling DndLeave on a
5419         control, set it to null, thus we don't fire that event multiple times
5420         for that control.
5421         Fixes #209264.
5422
5423 2008-04-23  Geoff Norton  <gnorton@novell.com>
5424
5425         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
5426         the whole_window object.  Fixes #377084.
5427
5428 2008-04-23  Andreia Gaita <avidigal@novell.com> 
5429
5430         * HtmlElement.cs: Implement RaiseEvent (event injection into the
5431           embedded browser)
5432
5433 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
5434
5435         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
5436
5437 2008-04-23  Andreia Gaita <avidigal@novell.com> 
5438
5439         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
5440           invocation
5441
5442 2008-04-23  Andreia Gaita <avidigal@novell.com> 
5443
5444         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
5445           attaching/detaching
5446
5447 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5448
5449         * X11Dnd.cs: When the drop was cancelled, or could just not be
5450         performed, return DragDropEffect.None always (match .net).
5451
5452 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5453
5454         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
5455
5456 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5457
5458         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
5459
5460 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5461
5462         * DataGridView.cs: Add support for error icon tool tips.
5463         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
5464         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
5465
5466 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
5467
5468         * X11Structs.cs: Add mouse button masks enum.
5469         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
5470         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
5471         form resize/move operation instead of for each step of it.
5472         [Fixes bug #346529 for the x11 backend]
5473
5474 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5475
5476         * DataGridView*: Implement support for drawing error icons.
5477
5478 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5479
5480         * TreeView.cs: Make vbar and hbar internal.
5481         * TreeNode.cs: If collapsing the node removes one of the TreeView's
5482         scrollbars, invalidate the whole thing.
5483         [Fixes bug #382001]
5484
5485 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5486
5487         * TreeView.cs: Calling Sort() sets Sorted = true.
5488         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
5489         if the nodes need to be sorted.
5490         [Fixes bug #382028]
5491
5492 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
5493
5494         * Form.cs: Fire SizeChanged for both when the form is minimized and 
5495         restored.
5496         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
5497         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
5498
5499 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5500
5501         * ComboBox.cs: If the combobox is disabled, draw a disabled
5502         background before painting anything else.
5503         [Fixes bug #381729]
5504
5505 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5506
5507         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
5508         forget to send a Leave event to the target window - just as .net does
5509         when cancelling dnd operations.
5510
5511 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5512
5513         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
5514         soon as possible - this happens when we send the drop message to the
5515         target window. This way we avoid firing any DragOver _after_ drop finished.
5516         Fixes #378179.
5517
5518 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5519
5520         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
5521         * Form.cs: Handle form minimization as a special state, where size doesn't 
5522         change, but we have to fire SizeChanged.
5523         [Fixes bug #325122 for the win32 and x11 backends]
5524
5525 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5526
5527         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
5528         if the handle is disabled.
5529         [Fixes bug #371751]
5530
5531 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5532
5533         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
5534         for forms with FormBorderStyle.None.
5535         [Fixes bug #349571]
5536
5537 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5538
5539         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
5540         WM_EXITSIZEMOVE.
5541         [Fixes bug #346529 for the X11 backend]
5542
5543 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5544
5545         * XplatUIX11.cs: 
5546           - Send a mouse Enter message after say dragging the mouse with a 
5547           button down and then release it in another client.
5548           - Reset the cursor to prevent X11 from remembering it and setting it 
5549           before the control gets WM_SETCURSOR.
5550           - Qeueue a mouse move after a mouse enter like win32.
5551           [Fixes bug #323234]
5552
5553 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5554
5555         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
5556         It's sent when the form gets moved, resized, closed.
5557         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
5558         [Fixes bug #359193 for X11]
5559
5560 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5561
5562         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
5563         the build.
5564
5565 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5566
5567         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
5568         group. Fixes the 1.1 build.
5569
5570 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5571
5572         * ListView.cs: Use display indexes for selection in Details view, as
5573         well as do the proper layout based on display indexes for that view
5574         too.
5575
5576 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5577
5578         * ListView.cs: Focused item information is now stored as a display
5579         index, and display indexes are used all over the place for selection,
5580         instead of ListViewItem.Index values, which doesn't give us enough
5581         information to modify the selection in groups mode, and was broken.
5582
5583 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
5584
5585         * Control.cs: Do not fire MouseDown if validation of the control has 
5586         failed.
5587         * Form.cs: Validate the form before closing.
5588         [Fixes bugs #330501 and #353310]
5589
5590 2008-04-18  Andreia Gaita <avidigal@novell.com> 
5591
5592         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
5593           CreateWebBrowserSiteBase implementations
5594         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
5595           Style and TabIndex setters
5596
5597 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5598
5599         * ListViewGroup.cs: When returning the actual item count, return the
5600         proper count for default group.
5601         Fix the tests.
5602
5603 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5604
5605         * ListView.cs:
5606         * ListViewGroup.cs: When calculating groups layout, get the actual
5607         number of items per group, since groups added to the group BUT not
5608         added to the ListView are just ignored, and can cause some nasty
5609         exceptions because of the lack of synchronization. Also for
5610         ListViewGroup don't use lazy initialization for items, since we 
5611         the common scenario is to use it always - and it helps us to  refactor
5612         and clean the .ctor overloads.
5613
5614 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5615
5616         * ListView.cs: When adding an item to a ListViewItemCollection
5617         belonging to a group (ListViewGroup.Items), don't generate a redraw if
5618         the added item hasn't beeen previously added to the ListView instance
5619         refered by the group, since it will be ignored. This should avoid some 
5620         really nasty flickering.
5621
5622 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5623
5624         * ListView.cs: When accessing an item in a specific display
5625         position, use the helper method GetItemAtDisplayIndex, instead of
5626         direct access to the reordered_items_indices array. When doing layout
5627         for groups set the correct Items index for the display position (since
5628         in groups mode items don't have the same position as in Items
5629         collection).
5630         * ListViewGroup.cs: Add a field to store the starting item number,
5631         which is later used when calculating the layout.
5632
5633         Fixes #360805.
5634
5635 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
5636
5637         * Application.cs: Fixed ProductVersion to fallback to the assembly
5638         version. Fixes regression for bug #325413.
5639
5640 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5641
5642         * ListView.cs: New helper method to retrieve an item in a _specific
5643         display_ position (the items can be displayed in a different order
5644         than one of Items collection).
5645         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
5646         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
5647         specific display position (again remember that items can be sorted
5648         different than Items).
5649
5650 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5651
5652         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
5653         list and update it when the collection changes.  We were recreating
5654         this several times per row paint and for every pixel the mouse moved
5655         across the grid.
5656         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
5657         changes.
5658
5659 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5660
5661         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
5662         list to use generics.
5663         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
5664         and remove unneccessay casts.
5665
5666 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5667
5668         * DataGridViewBand.cs: Add internal way to set displayed variable.
5669         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
5670         * DataGridView.cs: Make sure we always keep track of Displayed
5671         rows and columns, and only draw things that are displayed.
5672
5673 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
5674
5675         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
5676           whether the key events are filtered or not. Introduced
5677           PreFilter() process for this purpose. This fixes atokx3/iiimx
5678           shift state issue.
5679
5680 2008-04-16  Andreia Gaita <avidigal@novell.com> 
5681
5682         * HtmlHistory.cs: Implement Length property
5683
5684 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
5685
5686         * DataGridView.cs: Call EndEdit when a sort is performed so we take
5687         away the edit textbox.  Refactor to reuse column sort code.
5688
5689 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
5690
5691         * MenuAPI.cs: Remove the code that save and restore capture status of 
5692         grab_control, this fixes some Menu and Context menu bugs but maybe it can
5693         cause some others, I cant figure the possible problems of this patch but
5694         right now remove the code looks to be better than keep it. This patch fixes
5695         bugs #357638, #378721 and #379570.
5696
5697 2008-04-12  Andreia Gaita <avidigal@novell.com> 
5698
5699         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
5700         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
5701         add missing properties and event handlers.
5702         
5703 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
5704
5705         * ListBox.cs: Make sure the LargeChange we are setting is at least
5706         zero, to prevent an IOORE.  [Fixes bug #379531]
5707
5708 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
5709
5710         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
5711         in DropDownList mode, for each key-press select the next item 
5712         starting with that letter.
5713         For other modes, when no item selected, on arrow-up/-down and open 
5714         drop-down select the first item matching the text in the textbox.
5715
5716 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
5717
5718         * X11Keyboard.cs : Control.FromHandle() could return null
5719           in MoveCurrentCaretPos().
5720
5721 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5722
5723         * ListView.cs: When changing the size in VirtualMode, also Reset the
5724         selection.
5725         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
5726         changing selection info for VirtualMode.
5727         Fixes #372618.
5728
5729 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5730
5731         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
5732         view, don't use LineLimit for the first item - use NoWrap *always*
5733         instead, since ListView.LabelWrap is not used for this view.
5734         Fixes #378054.
5735
5736 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5737
5738         * Binding.cs: Call UpdateIsBinding when setting control - probably
5739         Binding is already usable and we don't need to wait to check the
5740         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
5741         Created, just like 2.0 does.
5742         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
5743
5744 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5745
5746         * Binding.cs: Just realized we don't need to have a handler for
5747         BindingContextChanged, since this info should be now consumed directly
5748         in the BindingManagerBase. And also, the manager.IsBindingSuspended
5749         state info is checked directly, instead of caching it.
5750
5751         * CurrencyManager.cs: IsSuspended should return always false if Count
5752         == 0.
5753
5754 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5755
5756         * Binding.cs: When calling PushData, return if manager.Count == 0,
5757         since we just don't have data to be read. Also, when setting the
5758         Control for binding, hook up some events to refresh the IsBinding
5759         state when BindingContext change or control gets created; use
5760         Control.IsHandleCreated instead of Control.Created check to set
5761         IsBinding state - we *actually* need to modify IsBinding when control
5762         is created, but we don't have any Created event, only HandleCreated.
5763         Fixes part of #349364.
5764
5765 2008-04-11  Geoff Norton  <gnorton@novell.com>
5766
5767         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
5768         warping a null Caret.
5769
5770 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5771
5772         * DataGridView.cs: Implement row/column autosizing methods. Implement
5773         autosorting.
5774         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
5775         * DataGridViewRowCollection.cs: Add an internal sorting method.
5776
5777 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5778
5779         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
5780         value in ListView drawing code.
5781
5782 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5783
5784         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
5785         is clicked.  Respect the user setting Cancel in FileOk.
5786
5787 2008-04-11  Geoff Norton  <gnorton@novell.com>
5788
5789         * ListView.cs: Avoid setting and resetting control Width/Heights and
5790         calculate the final value and set it once.  Prevents a feedback loop
5791         on the mac.
5792
5793 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5794
5795         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
5796         [Fixes bug #378869]
5797
5798 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
5799
5800         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
5801           Add some on-the-spot code, but it seems we don't need it.
5802
5803 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5804
5805         * Form.cs: Add method for DataGridView to trigger focus cues
5806         even when it handles the tab keypress.
5807
5808 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5809
5810         * DataGridView.cs: More keyboard handling, tab, esc.
5811         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
5812         when at the beginning or end of the text in the text box.
5813
5814 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5815
5816         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
5817
5818 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5819
5820         * DataGridView.cs: Some fixups for showing and adding the edit control.
5821         * DataGridViewButtonColumn.cs: Implement ToString.
5822         * DataGridViewCell.cs: Size and position the control simultaneously.
5823         * DataGridViewTextBoxCell.cs: Use base to position control.
5824
5825 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5826
5827         * DataGridViewCell.cs: Fix up some formatting and painting code.
5828         * DataGridViewImageCell.cs: Implement some NIEX methods.
5829
5830 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5831
5832         * ToolStripItemCollection.cs: What moving an item from one owner
5833         to another, remove from source owner before adding to destination.
5834         [Fixes bug #378109]
5835
5836 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5837
5838         * PictureBox.cs: Call Load when ImageLocation is set.
5839         [Fixes bug #378308]
5840
5841 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
5842
5843         * X11Keyboard.cs, XplatUIX11.cs :
5844           Implement over-the-spot mode (with some odd offsets).
5845           - set preedit position when caret is set.
5846           - Wrap XMoveResizeWindow() to move preedit position.
5847
5848 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5849
5850         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
5851         array lenght.
5852
5853 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5854
5855         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
5856         and ScanTableIndex public, it fix compilations errors when compiling
5857         WinForms to generate keyboard layout resources.
5858
5859 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5860
5861         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
5862         different element count than scan table. It prevents some errors in non
5863         standard keyboards.
5864
5865 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
5866
5867         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
5868
5869 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
5870
5871         * DataGridView.cs: Call OnContentClick.
5872         * DataGridViewCell.cs: Do a null check on ValueType instead
5873         of valueType.
5874         * DataGridViewCheckBoxCell.cs: Implement.
5875
5876 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5877
5878         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
5879
5880 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5881
5882         * X11Keyboard.cs : Check XGetIMValues() return value in
5883           case it does not return input styles in some environment.
5884
5885 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5886
5887         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
5888
5889 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5890
5891         * BindingContext.cs: Stub UpdateBinding method.
5892
5893 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
5894
5895         * X11Structs.cs : added couple of structs for XIM support.
5896         * X11Keyboard.cs :
5897           Release XIM in case it failed to create XIC. 
5898           Use consts for XNblah string.
5899           Add support for IM style customization and XIC creation
5900           for preedit-position and preedit-callback.
5901           Right now use MONO_WINFORMS_XIM_STYLE environment variable
5902           (list of: over-the-spot | on-the-spot | root). Only root
5903           mode works so far.
5904
5905           (redoing r99172 with fix.)
5906
5907 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5908
5909         * TreeView.cs: Center the checkbox a little better.
5910
5911 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5912
5913         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
5914         Apply very nice patch from Ernesto Carrea that simplifies our
5915         scrollbar drawing.  [From bug #376146]
5916
5917 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5918
5919         * TreeView.cs: Correct the location of the root node checkbox when
5920         ShowRootLines = false.  Don't draw the root lines for the root node
5921         when ShowRootLines = false.  [Fixes bug #377535]
5922
5923 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
5924
5925         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
5926         Fixed line endings.
5927         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
5928         line endings.
5929         * MaskedTextBox.cs: Added missing attribute. Code formatting.
5930         * PageSetupDialog.cs: Added missing attribute. Code formatting.
5931         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
5932         * ImeMode.cs: Added missing field.
5933         * HtmlWindow.cs: Code formatting. Fixed line endings.
5934         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
5935         warnings.
5936         * HtmlHistory.cs: Code formatting. Fixed line endings.
5937         * HtmlDocument.cs: Code formatting. Fixed line endings.
5938         * ToolStripPanel.cs: Added missing IList implementation.
5939         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
5940
5941 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
5942
5943         * BindingContext.cs: Changed argument names to fix corcompare errors.
5944         * DataGridView.cs: Removed extra explicit interface implementation
5945         of IDropTarget. Code formatting.
5946         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
5947         * ComboBox.cs: Changed argument names to fix corcompare errors.
5948         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
5949         errors.
5950         * GridColumnStylesCollection.cs: Changed argument names to fix
5951         corcompare errors. Removed extra tabs.
5952         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
5953         errors.
5954         * Control.cs: Changed argument names to fix corcompare errors. Code
5955         formatting. Removed extra explicit IList implementation.
5956         * TextBox.cs: Changed argument names to fix corcompare errors. Code
5957         formatting. Use string.Empty instead of "".
5958         * GridItemCollection.cs: Changed argument names to fix corcompare
5959         errors. Code formatting.
5960         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
5961         corcompare errors. Code formatting.
5962         * ImageList.cs: Changed argument names to fix corcompare errors.
5963         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
5964         * DataGridViewRowCollection.cs: Changed argument names to fix
5965         corcompare errors. Code formatting.
5966         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
5967         * DataGridViewSelectedCellCollection.cs: Changed argument names to
5968         fix corcompare errors. Code formatting.
5969         * DataGridViewComboBoxCell.cs: Changed argument names to fix
5970         corcompare errors. Code formatting.
5971         * LinkLabel.cs: Changed argument names to fix corcompare errors.
5972         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
5973         formatting.
5974         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
5975         Code formatting.
5976         * BindingSource.cs: Changed argument names to fix corcompare errors.
5977         Removed extra explicit interface implementations.
5978         * DataGridViewSelectedRowCollection.cs: Changed argument names to
5979         fix corcompare errors. Code formatting.
5980         * ToolStripItemCollection.cs: Removed extra explicit interface
5981         implementation of IList.ReadOnly.
5982         * DataGridViewColumnCollection.cs: Changed argument names to fix
5983         corcompare errors. Code formatting.
5984         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
5985         * ListView.cs:  Changed argument names to fix corcompare errors.
5986         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
5987         errors.
5988         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
5989         errors.
5990         * ListBindingHelper.cs: Changed argument names to fix corcompare
5991         errors.
5992         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
5993         fix corcompare errors. Code formatting.
5994         * ToolStripPanel.cs: Removed extra explicit implementation of
5995         IDropTarget interface.
5996         * ListBox.cs: Changed argument names to fix corcompare errors. Code
5997         formatting. Removed extra tabs and spaces.
5998         * DataGridViewCellCollection.cs: Changed argument names to fix
5999         corcompare errors.
6000         * Help.cs: Changed argument names to fix corcompare errors. Code
6001         formatting.
6002         * TabControl.cs: Changed argument names to fix corcompare errors.
6003         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6004         errors.
6005         * TableLayoutSettings.cs: Changed argument names to fix corcompare
6006         errors.
6007
6008 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6009
6010         * ListBindingHelper.cs: When returning properties, only return those
6011         that are browsable. Also, don't do a linear search of the properties,
6012         but use the indexer of the PropertyDescriptorCollection class.
6013
6014 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6015
6016         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6017         Dictionary containing the related (child) currency managers. Also,
6018         when setting DataSource, add datasource to our List if it is not a list.
6019
6020 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6021
6022         * PropertyGridTextBox.cs: Fix background color of the buttons.
6023         * PropertyGridView.cs: Make the entry less jumpy.
6024
6025 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6026
6027         * PropertyGrid.cs: Fix unused variable warnings.
6028
6029 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6030
6031         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
6032         double-click. It expanded it once in the mouse down and then 
6033         again in the double-click handler.
6034
6035 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6036         
6037         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
6038         TypeConverter and UITypeEditors.
6039
6040 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6041
6042         * Control.cs: Visibility should be set synchronously, 
6043         so we must also redraw once it is and not rely on layouting or 
6044         other code to repaint.
6045         [Fixes bug #339898]
6046
6047 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
6048
6049         * DataGridViewCell.cs: Respect DataGridView.GridColor.
6050
6051 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6052
6053         * Control.cs: Invalidate when the alpha channel is less than 255,
6054         not only when control is transparent.
6055
6056 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6057
6058         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6059         Implement some painting convenience methods that threw NIEX.
6060
6061 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6062
6063         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6064         * DataGridViewLinkCell.cs: Implement.
6065
6066 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6067
6068         * GridEntry.cs: Report the conversion exception error description.
6069         [Fixes bug #375792]
6070
6071 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6072
6073         * PropertyGridView.cs: Do not scroll to item on resize.
6074         [Fixes bug #375789]
6075
6076 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6077
6078         * BindingContext.cs: When retrieving a BindingManagerBase, if the
6079         dataSource parameter is ICurrencyManagerProvider, then return
6080         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6081         instead of creating a new one.
6082
6083 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6084
6085         * BindingSource.cs: Implement support for Type instances as
6086         DataSource.
6087
6088 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6089
6090         * DataGridView.cs: Minor cleanups and call CellMouseUp.
6091         * DataGridViewCell.cs: Make some painting routines internally virtual.
6092         * DataGridViewButtonCell.cs: Implement.
6093
6094 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6095
6096         * Control.cs: We always need to invalidate our children with
6097         transparent backgrounds when we are invalidated.
6098         [Fixes bug #376081]
6099
6100 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6101
6102         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
6103         and CancelCurrentEdit on CurrencyManager respectively. Implement
6104         support for ICancelAddNew too.
6105
6106 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6107
6108         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
6109         call EndNew/CancelNew if list is ICancelAddNew.
6110
6111 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6112
6113         * DataGridView.cs: Guard against an exception while painting
6114         if there are no rows.
6115
6116 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6117
6118         * DataGridView.cs: Implement a bunch of keyboard commands.
6119
6120 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
6121
6122         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
6123         isn't set, don't call OnPaint.  [Fixes bug #375300]
6124
6125 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6126
6127         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
6128         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
6129         hookup the remaining events related to CurrencyManager, and fire
6130         OnListChanged also for the Clear () method.
6131
6132 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6133
6134         * BindingSource.cs: Use Current and Position implementations in
6135         CurrencyManager instead of using our own routines, since we need 
6136         to be in synch with it. Count should NEVER return a -1 value, and 
6137         also report ListChanged events for both simple IList data 
6138         sources (manually) as well for IBindingList ones (by hooking up an
6139         event handler for it).
6140
6141 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6142
6143         * BindingSource.cs: Make one .ctor call the another, to avoid
6144         duplicate code. Add the CurrencyManager property, and also for AddNew
6145         throw the proper exceptions and show better error messages.
6146
6147 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6148
6149         * ComboBox.cs: Only adjust selectedindex if Handle has been
6150         created.  Fixes failing test.
6151
6152 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6153
6154         * ComboBox.cs: Adjust selectedindex if we insert a new item
6155         above the current selectedindex in a sorted ComboBox.
6156         [Fixes bug #374654]
6157
6158 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6159
6160         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
6161         [Fixes bug #374712]
6162
6163 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6164
6165         * DataGridViewTextBoxCell.cs: Implement stuffs.
6166
6167 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6168
6169         * TreeView.cs: Create the scrollbars even earlier to be
6170         double dog certain they are created before they are accessed.
6171
6172 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6173
6174         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
6175
6176 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6177
6178         * ScrollBar.cs: Create an internal safe Value setter so we
6179         won't crash if we try to set a value outside the min and max.
6180         * TextBoxBase.cs: Use safe value setter to guard against a
6181         potential NRE that is being reported by Reflector.
6182
6183 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6184
6185         * TreeView.cs: Create the scrollbars earlier in the constructor
6186         to attempt to guard against an NRE in SetTop in Reflector.
6187
6188 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6189
6190         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
6191         DataGridViewRowCollection.cs: Do not scroll column and row headers,
6192         show messagebox on data format error, use column display index
6193         correctly, make sure HitTest supports new layout stuff,
6194         make sure scrollbars support new layout stuff.
6195
6196 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6197
6198         * XplatUIX11.cs : Patch by Doug Rintoul.
6199           For some IM engines, keypress events need to delay call
6200           to XPending() and XNextEvent() in the loop so that it
6201           does not mess the orders in XIM commit callback.
6202           Some KeyRelease events such as shift keys need to be
6203           processed both in the IM engine and winforms driver
6204           itself since winforms holds its own state check.
6205
6206           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
6207
6208 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6209
6210         * X11Keyboard.cs, XplatUIX11.cs :
6211           add primitive support for XIM input support (preedit-
6212           nothing and status-nothing). It requires precise event
6213           capturing (XSelectInput/"filterEvents") and different
6214           call to XFilterEvent against root window.
6215           Get composed string and send dummy WM_IME_COMPOSITION.
6216           Free XIM and XIC instances in finalizer.
6217
6218           (This first patch does not include suggested changes
6219            by Doug Rintoul. It will follow.)
6220
6221 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6222
6223         * DataGridView.cs: When binding to a property, if the property
6224         doesn't have a setter, set the column to readonly.
6225         [Fixes bug #343965]
6226
6227 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6228
6229         * ComboBox.cs: Guard against NRE if an arrow key is hit while
6230         we aren't dropped down.  Support Home/End in DropDownList mode.
6231         [Fixes bug #371990]
6232
6233 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6234
6235         * TreeNodeCollection.cs: Don't increment count until we've
6236         saved our index to return.
6237         [Fixes bug #373603]
6238
6239 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6240
6241         * Label.cs: Add padding to the label's AutoSize calculation.
6242         [Fixes bug #373792]
6243
6244 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6245
6246         * ListBindingHelper.cs: Actually implement GetListName method.
6247
6248 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6249
6250         * BindingSource.cs: Throw the propert expceptions for some methods, as
6251         well as detect the list item type for Add method if DataSource is null.
6252
6253 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6254
6255         * DataGridViewCell.cs: I don't know why I commented this out,
6256         putting it back for now.
6257
6258 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6259
6260         * DataGridViewCell.cs: Remove storage for owning column, just
6261         use column index.
6262         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
6263         * DataGridViewColumnHeaderCell.cs: If the header text has been
6264         explicitly set, return it.
6265         [Fixes bug #325979]
6266
6267 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6268
6269         * DataGridViewRowCollection.cs: Disable row sharing when
6270         using data binding.  Its a great feature, but lets work on
6271         getting DGV usable first before we worry about optimizations.
6272
6273 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6274
6275         * BindingSource.cs: When resetting our internal list, compute list
6276         item type information to be used for indirect list access. Also
6277         implement/tune some properties and methods related to the list access
6278         too.
6279         * ListBindingHelper.cs: Add a stub for GetListName method, used from
6280         BindingSource.
6281
6282 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6283
6284         * DataGridView.cs: If RowCount is increased while ColumnCount
6285         is zero, add a column.  [Fixes bug #331649]
6286
6287 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6288
6289         * DataGridViewRowCollection.cs: When adding new rows for
6290         databinding, make sure they are place before the add row.
6291         [Fixes bug #343961]
6292
6293 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6294
6295         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
6296         instead of Index order.
6297
6298 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6299
6300         * DataGridView.cs: If columns are added by increasing ColumnCount,
6301         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
6302         [Fixes bug #325588]
6303
6304 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6305
6306         * DataGridView.cs: Turn off and on the "new row" when 
6307         AllowUserToAddRows is toggled.  When the handle is created,
6308         set current cell and selected cell/row/col.
6309
6310 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6311
6312         * ComboBox.cs: When navigating the drop down by keyboard, we
6313         need to scroll the list box if our selection moves out of the
6314         currently shown items.  [Fixes bug #371990]
6315
6316 2008-03-24  Luke Page <luke.a.page@gmail.com>
6317
6318         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
6319         on the control. Also now handles unicode compatibility characters and
6320         stores the unicode compatibility length on the stack. Fixes Bugs
6321         #355198 and #366436.
6322
6323 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6324
6325         * BindingSource..cs: Take into account DataMember when re-creating the
6326         List property, and also create a specific kind of list as needed.
6327
6328 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6329
6330         * ListBindingHelper.cs: Add a new case for GetList () method - when we
6331         get an empty IEnumerable, try to detect whether the datamember is
6332         valid or not for that type, if true, return null, and throw exception
6333         otherwise.
6334
6335 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
6336
6337         * ComboBox.cs: Alt-Down should drop down the list, Esc should
6338         retract it.  [Fixes bug #371989]
6339
6340 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
6341
6342         * PropertyGrid.cs: Initialize the sorting button as pushed.
6343
6344 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
6345
6346         * PropertyGrid.cs: 
6347          - Visually select the PropertyTab.
6348          - Filter Properties by Attributes properly.
6349
6350 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6351
6352         * MenuItem.cs: Remove menu item from parent when disposed.
6353         [Fixes bug #372845]
6354
6355 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6356
6357         * ToolBar.cs: Don't reset layout_type if Dock = None.
6358
6359 2008-03-21  Andreia Gaita <avidigal@novell.com> 
6360
6361         * UserControl.cs: Select the first available control when we get focus.
6362           Fixes #372616
6363
6364 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6365
6366         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
6367         the content if we are in edit mode.  [Fixes bug #343964]
6368
6369 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6370
6371         * DataGridViewCell.cs: Fix border painting for column headers.
6372
6373 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6374
6375         * BindingSource.cs: When setting or resetting data source,
6376         use ListBindingHelper.GetList () method, since it will get the list in
6377         case datasource is IListSource.
6378
6379 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
6380
6381         * DataGridViewCell.cs: Implement lots more stuffs.
6382
6383 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6384
6385         * PropertyGridView.cs, GridEntry.cs: Implement support for 
6386         UITypeEditor.IsDropDownResizable.
6387
6388 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
6389
6390         * DataGridViewCell.cs: Remove unused variables, improve how
6391         several of the property getters work.
6392         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
6393         get its size from the parent row/col.
6394
6395 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6396
6397         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
6398         user alters manually the PropertyTabs collection via the 
6399         PropertyTabs property.
6400
6401 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6402
6403         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
6404         new tests for them to be sure to be compatible with .net.
6405
6406 2008-03-20  Andreia Gaita <avidigal@novell.com> 
6407
6408         * WebBrowserBase.cs: Fix attributes, add events
6409         * WebBrowser.cs: Fix Padding signature
6410
6411 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6412
6413         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
6414
6415 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
6416
6417         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
6418         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
6419         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
6420         passes the new suite of tests for it.
6421
6422 2008-03-18  Andreia Gaita <avidigal@novell.com> 
6423
6424         * WebBrowser.cs: Add missing attributes, missing Padding and
6425           DefaultSize properties, remove extraneous getters
6426
6427 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6428
6429         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
6430         method overloads.
6431
6432 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6433
6434         * ComboBox.cs: Move resetting the selected index to keypress
6435         instead of textchanged.  Changing the text programmatically
6436         should not trigger resetting the selected index.  Fixes test.
6437
6438 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6439
6440         * ComboBox.cs: When the user types into the textbox, reset
6441         the selected index to -1.  [Fixes bug #371672]
6442
6443 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6444
6445         * FileDialog.cs: Support Control-A for selecting everything
6446         in an OpenFileDialog.  [Fixes bug #371564]
6447
6448 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
6449
6450         * DataGridView.cs: When row/column visible/height properties
6451         change, invalidate.  Take the NIEX out of InvalidateRow/Column
6452         etc.  We don't support them yet, but we can just invalidate
6453         everything until we do support them.  (Added MonoTODO).  Set
6454         proper control styles.
6455         * DataGridViewRow.cs: Don't call PaintHeader if row headers
6456         are turned off. 
6457
6458 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6459
6460         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
6461
6462 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
6463
6464         * DataGridViewRow.cs: Only paint the white background in
6465         cell bounds, the row bounds extends past the cells if the 
6466         grid width isn't as wide as the DGV.
6467
6468 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
6469
6470         * DataGridView*: Completely revamp the drawing to match the
6471         public API.  Our grids now look better, and call all the
6472         appropriate methods and event to allow users to override
6473         the painting and do their own.
6474
6475 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6476
6477         * ListBindingHelper.cs: Implement 2.0 GetList methods.
6478
6479 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6480
6481         * DataGridView.cs: Implement BorderStyle.
6482
6483 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6484
6485         * FileDialog.cs: Apply patch from Andy Hume: Any time we
6486         are comparing attributes, make sure we only look at the
6487         one we are interested.  These calls were failing if there
6488         were more than one attribute.
6489         [Fixes bug #370385]
6490
6491 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6492
6493         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
6494
6495 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6496
6497         * PageSetupDialog.cs: Stub EnableMetric.
6498         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
6499         * PrintPreviewDialog.cs: Add ProcessDialogKey,
6500         ProcessTabKey.
6501
6502 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6503
6504         * MonthCalendar.cs: Remove unused variable.
6505
6506 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6507
6508         * DataGridView*.cs: corcompare stuffs.
6509
6510 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6511
6512         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
6513         The savings aren't worth the extra code to fix the optimization.
6514         [Fixes bug #368585]
6515
6516 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6517
6518         * ToolBar.cs: Always call base.Dock in the Dock override so that
6519         Control's layout_type gets reset correctly.
6520         [Fixes bug #368882]
6521
6522 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
6523
6524         * X11Dnd.cs: End DnD operation also for the middle mouse button.
6525
6526 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6527
6528         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
6529         at the same time we do explicit ones, because we have to give all
6530         other controls on the container a chance to handle explicit ones
6531         first.  If no one has an explicit mnemonic, then we can let the
6532         MenuStrip have a shot at implicit mnemonics.
6533         * MenuStrip.cs: Create an implicit mnemonic function.
6534         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
6535         mnemonics for MenuStrips.
6536         [Fixes bug #368493]
6537
6538 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6539
6540         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
6541         DataGridColumnStyle.cs: corcompare stuffs.
6542
6543 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6544
6545         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
6546         Details - This is needed after we added the bits to use any available
6547         column also for List and SmallIcon view. 
6548
6549 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6550
6551         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
6552         at the proper place, not only when changing SelectedIndex and changing
6553         the selection using keys/mouse, as .net does.
6554
6555 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6556
6557         * ControlBindingsCollection.cs: Implement last 2.0
6558         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
6559         in the new 2.0 Add methods.
6560
6561 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6562
6563         * ListBox.cs: When calling SelectedIndexCollection.Clear,
6564         return if no items are previously selected - this is done to avoid 
6565         firing OnSelectedIndexChanged without need to do so. Also,
6566         when creating handle ensure that the focused item is visible (as
6567         .net does).
6568
6569 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6570
6571         * ListBox.cs: Rewrote/refactored most of selection code. We require
6572         the following things in selection: a) keep selection sorted (both
6573         indices and items), b) SelectedIndices automatically detect the
6574         selection mode, c) SelectedIndex should be the first selected item
6575         index, d) Need to Focus/adjust scroll bar when selecting a new item,
6576         not only for SelectedIndex, which is specially important in Multi*
6577         selection modes. To achieve this we are moving the selection core to
6578         SelectedIndexCollection and make depend all selection modifications on
6579         it.
6580         Fixes #366438.
6581
6582 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6583
6584         * ToolStrip.cs: Enable implicit mnemonics for drop down
6585         menu strips.  [Fixes part of bug #367692]
6586
6587 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6588
6589         corcompare - fix parameter names [stragglers].
6590         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
6591         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
6592         TabControl.cs.
6593
6594 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6595
6596         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
6597         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
6598         mnemonic, let the ToolStripManager have it even if it doesn't
6599         have a matching mnemonic.
6600         [Fixes bug #367499]
6601
6602 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6603
6604         corcompare - fix warning about implicit implementation
6605         * ToolStrip.cs: Add IToolStripData interface.
6606         * IToolStripData.cs: Add.
6607
6608 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6609
6610         corcompare - fix warning about implicit implementation
6611         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
6612         * IBounds.cs: Add.
6613
6614 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6615
6616         corcompare - fix parameter names [N-Z].
6617         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
6618         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
6619         PropertyManager.cs, RichTextBox.cs,
6620         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
6621         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
6622         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
6623         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
6624         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
6625         ToolStripContentPanel.cs, ToolStripDropDown.cs,
6626         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
6627         ToolStripPanel.cs, ToolStripSeparator.cs,
6628         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
6629         UICuesEventHandler.cs, UpDownBase.cs.
6630
6631 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6632
6633         corcompare - fix parameter names [G-M].
6634         GridColumnStylesCollection.cs, GridItemCollection.cs,
6635         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
6636         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
6637         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
6638         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
6639         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
6640
6641 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6642
6643         corcompare - fix parameter names [A-F].
6644         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
6645         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
6646         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
6647         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
6648         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
6649         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
6650         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
6651
6652 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
6653
6654         * GridEntry.cs: Do not convert not only if the types match, 
6655         but also if the property type is assigneable from the value's
6656         type.
6657         [Fixes bug #366566]
6658
6659 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
6660
6661         * PropertyGridView.cs: 
6662          - Subscribe to the listbox only once and not everytime.
6663          - Update the textbox even if SetValue fails.
6664          - Close the listbox before calling TrySetValue just in case.
6665          [Fixes bug #366569]
6666
6667 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
6668
6669         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
6670
6671 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6672
6673         * ListView.cs: Implement support for custom column width based on
6674         Columns collection (we were previously using this collection only
6675         with Details view).
6676         Fixes #364484.
6677
6678 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6679
6680         * ListViewItem.cs: For Tile view, always set bounds for the first
6681         subitem (which is the main one), and also don't let Width be larger
6682         than ListView.TileSize.Width. Improve code readibility also.
6683         * ThemeWin32Classic.cs: When painting the ListViewItem instances
6684         in Tile view, _always_ use the NoWrap flag.
6685         Fixes #360798.
6686
6687 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
6688
6689         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
6690         in case.
6691         * GridEntry.cs: For MS compitability make all child properties 
6692         readonly if the parent is readonly. Ugh.
6693         [Fixes bug #365945 and #365944]
6694
6695 2008-02-29  Andreia Gaita <avidigal@novell.com> 
6696
6697         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
6698           relative to the history
6699
6700 2008-02-29  Andreia Gaita <avidigal@novell.com>
6701
6702         * HtmlElement.cs: More handlers for mouse and key events
6703
6704 2008-02-28  Andreia Gaita <avidigal@novell.com>
6705
6706         * WebBrowserBase.cs: MouseClick sig changed.
6707         * HtmlHistory.cs: Implement history navigation
6708         * HtmlElement.cs: Add event handlers, and connect them.
6709
6710 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
6711
6712         * GridEntry.cs: 
6713          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
6714            so that DisplayNameAttribute doesn't get ignored.
6715          - Check for ParenthesizeNameAttribute and parenthesize the Label.
6716          - Add support for PasswordPropertyTextAttribute
6717         * PropertyGridView.cs: Check if an entry is a password.
6718         [Fixes bugs #365589, #365586, #365588]
6719
6720 2008-02-28  Andreia Gaita <avidigal@novell.com>
6721
6722         * PropertyGridView.cs: Revert the message filtering change, as we
6723         need it to block after all. Remove block parameter, unnecessary.
6724
6725 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
6726
6727         * UserControl.cs: Better implementation of GetPreferredSize.
6728         First step to fixing bug #361441.
6729
6730 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6731
6732         * Binding.cs: Actually implement data binding support for 
6733         classes implementing IBindableComponent.
6734         * ControlBindingsCollection.cs: Likewise.
6735
6736 2008-02-26  Andreia Gaita  <avidigal@novell.com>
6737
6738         * PropertyGridView.cs: Use a message filter to check when to 
6739         close the dropdown
6740
6741 2008-02-26  Andreia Gaita  <avidigal@novell.com>
6742
6743         * Application.cs: Change the message_filters loop so a filter 
6744         can be removed while looping.
6745
6746 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
6747
6748         * GridEntry.cs: Optimization in ToggleValue so that it caches
6749         the current value.
6750         * PropertyGridView.cs: An optimization so that the property isn't 
6751         re-read twice for each StandardValue added to the drop-down menu.
6752         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
6753         license.
6754         [Fixes bug #362755]
6755
6756 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
6757
6758         * Application.cs: Apply patch from Justin Cherniak to match
6759         MS better for ProductName, ProductVersion, and CompanyName.
6760         [Fixes bug #361709]
6761
6762 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6763
6764         * Binding.cs: Actually implement 2.0 NullValue property. Also
6765         when changing the formatting related properties, only update the state
6766         if formatting_enabled is true (we don't mind otherwise).
6767
6768 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
6769
6770         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
6771         [Fixes bug #364486]
6772
6773 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
6774
6775         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
6776         of GetType on the current value as it uses reflection to 
6777         determine the type. This fixes the case where the new value is 
6778         null. 
6779
6780 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
6781
6782         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
6783         past the view.
6784
6785 2008-02-24  Luke Page  <luke.a.page@gmail.com>
6786
6787         * Line.cs, TextControl.cs: Implement offset x and y so that a
6788         document doesn't have to begin  at (0,0) on the viewpoint.
6789         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
6790         bars and switches the text alignment (and therefore is now
6791         implemented for textbox). Fixes #321383.
6792
6793 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6794
6795         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
6796         properties. Also when changing FormattingEnabled update the control
6797         property -as .Net does-.
6798
6799 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
6800
6801         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
6802         * Binding.cs: Add stubs for the overloads of the Add method in
6803         CBCollection.
6804
6805 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6806
6807         * Binding.cs: PullData () returns a false value if we got an exception.
6808         Also when validating the control and we get an error, instead of
6809         setting the value of the previous one, cancel the event (tested in 1.1
6810         and 2.0).
6811
6812 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
6813
6814         * TreeView.cs: Make selected_node and highlighted_node internal.
6815         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
6816         to null when Nodes.Clear is called.
6817         [Fixes bug #363884]
6818
6819 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6820
6821         * FontDialog.cs: Ensure that when the Font is set in code,
6822         all the gui pieces are updated accordingly.
6823         [Fixes bug #361020]
6824
6825 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6826
6827         * TextRenderer.cs: Respect proposed size for MeasureString.
6828         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
6829         autosize, use a proposed width to force wrapping for long text.
6830         [Fixes bug #360981]
6831
6832 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6833
6834         * TreeView.cs: Factor in checkboxes = false and state images in
6835         to HitTest.  [Fixes bug #363360]
6836
6837 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6838
6839         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
6840         when drawing the selected range.
6841         [Fixes bug #363648]
6842
6843 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6844
6845         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
6846         ResizeRedraw control styles.
6847         [Fixes bug #363555]
6848
6849 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6850
6851         * TreeView.cs: StateImages are basically custom checkboxes, so
6852         factor their size the same as real checkboxes when determining
6853         what got clicked.
6854         [Fixes bug #363367]
6855
6856 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6857
6858         * MessageBox.cs: Make the message box wider if the form caption
6859         is longer than the text in the form.
6860         [Fixes bug #361137]
6861
6862 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
6863
6864         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
6865
6866 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6867
6868         * TreeNode.cs: Guard against an NRE when the parent's
6869         StateImageList hasn't been set.
6870         [Fixes bug #363353]
6871
6872 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6873
6874         * SplitContainer.cs: Add SupportsTransparentBackColor and
6875         OptimizedDoubleBuffering control styles.
6876         [Fixes bug #363303]
6877
6878 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6879
6880         * Application.cs: For the app data paths and the registry key paths,
6881         ensure they are created before returning them to the user.
6882         [Fixes bug #361709]
6883
6884 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6885
6886         * Application.cs: Guard against an NRE in CompanyName and
6887         ProductName.
6888
6889 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6890
6891         * Application.cs: For CompanyName, ProductName, and ProductVersion,
6892         make sure we handle all three cases correctly: attribute is present,
6893         attribute is present but is an empty string, and attribute is not
6894         present.
6895
6896 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
6897
6898         * PropertyGridView.cs: 
6899          - Fix a NRE that caused a test failure
6900          - Another performance improvement - cache the standard values
6901          listbox.
6902
6903 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6904
6905         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
6906         code paths.
6907
6908 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
6909
6910         * PropertyGridView.cs: Fix a big performance bug.
6911
6912 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6913
6914         * SelectionRange.cs: Apply patch from Andy Hume to make
6915         constructor behavior more accurate.  [Fixes bug #362117]
6916
6917 2008-02-19  Andreia Gaita <avidigal@novell.com> 
6918
6919         * Control.cs: Added a new flag is_disposing to track if the
6920         window is currently in the process of being disposed of.
6921         This is used so that, when firing visibility changes triggered
6922         by unparenting controls during Dispose, the control doesn't
6923         get created again.      
6924
6925 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6926
6927         * ComboBox.cs: Set height to preferred height when the handle
6928         is created.  [Fixes bug #360862]
6929
6930 2008-02-18  Andreia Gaita <avidigal@novell.com>
6931
6932         * XplatUIX11.cs: Create FosterParent with border width at 0.
6933         With the previous value of 4, everytime a control got reparented
6934         from parent = null, it's location would be shifted right and 
6935         down by 4, since these coordinates would be offset by the 
6936         FosterParent's border width.
6937
6938 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
6939
6940         * Control.cs: During diposing firstly remove ourselfes from
6941         the parent and *then* destroy our handle, because removing
6942         ourselfes from the parent controls collection causes 
6943         VisibilityChange, etc events, which require a handle and end
6944         up recreating the control.
6945
6946 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
6947
6948         * GridEntry.cs: Set expanded state before notifying that the
6949         expansion has taken place.
6950         * PropertyGridView.cs:
6951          - Set the propertygridtextbox text to the selected 
6952          StandardValue before proceeding to setting it.
6953          - Scrolling bugfixes.
6954
6955 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6956
6957         * GridEntry.cs:
6958          - Fix ValueText to not return null.
6959          - Fix conversion error reporting to actually happen.
6960         * PropertyGridView.cs: Set entry only if the text has changed.
6961         [Fixes bug #362116]
6962
6963 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6964
6965         * GridEntry.cs: 
6966          - Fix handling of a null current value.
6967          - Swallow editor exceptions.
6968         [Fixes bug #362114]
6969
6970 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6971
6972         * PropertyGrid.cs: Clear current items first thing before 
6973         repopulating subitems.
6974         * GridEntry.cs: 
6975          - Handle null StandardValuesCollection.
6976          - Mark as not editable if there is no PropertyDescriptor and
6977          if the Converter cannot convert from string.
6978         [Part of fix for bugs #360666 and #358332]
6979
6980 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6981         * MaskedTextBox.cs: Now skips non editable characters after a
6982         character has been entered and we are progressing to the next
6983         position in the MaskedTextBox.
6984
6985 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6986         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
6987         that it changes the selection rather than just repositioning the
6988         cursor. Fixes Bug #360873.
6989
6990 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6991         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
6992         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
6993         correctly. See #359330
6994
6995 2008-02-15  Andreia Gaita <avidigal@novell.com>
6996
6997         * XplatUIX11.cs: If the handle is null when posting a message, use the
6998         current thread queue to post instead. Fixes #332409
6999
7000         * SendKeys.cs: Slight optimization
7001
7002 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
7003
7004         * PropertyGrid.cs, PropertyGridView.cs:
7005         Fix multiple scrolling and sizing issues.
7006         [Fixes bug #359199]
7007
7008 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7009
7010         * PropertyGridView.cs: Ensure that drop down editors are shown
7011         in the WorkingArea of the screen.
7012         [Fixes bug #359807]
7013
7014 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7015
7016         * GridEntry.cs: Fail silently when UITypeEditor is missing.
7017         [Fixes bug #360666]
7018
7019 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7020
7021         * Binding.cs: Implement 2.0 DataSourceNullValue property.
7022
7023 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7024
7025         * PropertyGridView.cs:
7026          - Clear the controls in the drop down form after it is hidden.
7027          - Fix Width sizing of the dropdown editors to match MSFT.
7028
7029 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7030
7031         * PropertyGridView.cs: 
7032          - Fix height for drawing the grid entry
7033          text value, so that it clips multiline text properly.
7034          - Fix unfocusing to match MSFT.
7035
7036 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7037
7038         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7039         Fixes a bug where on repopulation after value changed items become
7040         expandable.
7041
7042 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7043
7044         * Binding.cs: For the 2.0 profile, look for a 
7045         'PropertyChanged' event in the target control, and add checks for
7046         DataSourceUpdateMode property to change -or not- the data source
7047         from validation/control property change.
7048
7049 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
7050
7051         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7052           not compare struct with null in 2.0).
7053
7054 2008-02-10  Luke Page <luke.a.page@gmail.com>
7055
7056         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7057         updates the provider and if not using a provider, uses the internal document
7058         class implementation of password char. Also when showing text, uses display string
7059         from the provider, instead of the actual text.
7060
7061 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7062
7063         * Binding.cs: Ooooops, forgot to take into account the data_source
7064         and binding_member_info null case (it was breaking the Binding tests).
7065
7066 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7067
7068         * Binding.cs: Implement support for data source changes exposed by
7069         'PropertyNameChanged' events, and update the control property as
7070         needed.
7071
7072 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7073
7074         * Binding.cs: Implement 2.0 WriteValue method.
7075
7076 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7077
7078         Commit patch from James Purcell for better AutoScale implementation:
7079
7080         * ScaleControl should call GetScaledBounds with the control's total size rather
7081         than client size.  GetScaledBounds should handle ignoring the borders in its
7082         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
7083         (for the most part they just call the base code now since that is fixed).
7084         * Added ScaleChildrenInternal to allow controls to disable scaling of children
7085         without having to override ScaleChildren (since none of .NET's controls do). 
7086         This is required for most controls in Mono that have scrollbars to prevent the
7087         scrollbars from being moved/resized.
7088         * Nested ContainerControls can have a different scale mode than their parent. 
7089         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7090         designer produce different results both of which look incorrect).
7091         * Default AutoScaleMode for ContainerControl should be Inherit.
7092         * Simplified workaround for ComboBox scaling issue.
7093         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
7094         1.0 style auto scaling should scale the whole control's size instead of
7095         ignoring the borders (except for Form) and the rounding is done differently to
7096         preserve control alignment.
7097         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7098         GetAutoScaleSize.
7099         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
7100         * CurrentAutoScaleDimensions should round the estimated character width instead
7101         of truncating.
7102         * ListBox's GetScaledBounds should always use the height it was set to instead
7103         of the height that was passed in.  This prevents rounding errors from
7104         accumulating quickly with IntegralHeight.
7105         [Bug #359098]
7106
7107 2008-02-08  Andreia Gaita <avidigal@novell.com>
7108
7109         * Form.cs: Add a null check (darn it). 
7110
7111 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7112
7113         * MdiClient.cs: Make sure the requesting form actually owns the
7114         control menu items before removing them.  Also, use
7115         Suspend/ResumeLayout when adding or removing items so we only
7116         layout once.
7117         [Fixes bug #359887]
7118
7119 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7120
7121         * Control.cs: Guard against an NRE in ShowFocusCues.
7122         [Fixes bug #359830]
7123
7124 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7125
7126         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
7127         property, as well as stubbing DataSourceUpdateMode.
7128
7129 2008-02-08  Andreia Gaita <avidigal@novell.com>
7130
7131         * Form.cs: When closing forms, get focus back to the active control of the
7132         active form. [Fixes #341314, corner case]
7133         
7134 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7135
7136         * MdiClient.cs: After we move the scrollbars, invalidate the NC
7137         area, so any old scrollbar artifacts are cleaned up.
7138         [Fixes bug #336305]
7139
7140 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7141
7142         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
7143         for our menus, display that control box menu instead of the 1.1
7144         menu one.
7145
7146 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7147
7148         * MdiControlStrip.cs: Add property to access the mdi form tied to
7149         each toolstripitem.
7150         * MdiClient.cs: Be smarter about removing and adding toolstripitems
7151         to the implicitly merged menu.  Every time we clicked the form, items
7152         were getting removed and the re-added, causing the form to jump around
7153         as the menu resized.
7154
7155 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7156
7157         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
7158         was being reset by the implicit menu merge for menustrips.
7159         [Fixes bug #336296]
7160
7161 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7162
7163         * Form.cs: Don't do the previous change when WindowState = Normal,
7164         or it messes up where the window is placed.  Fixes test failure.
7165
7166 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7167
7168         * Form.cs: When becoming visible, if we are an MDI child, call
7169         SetWindowState with a dummy old_state so that changes will actually
7170         be made.
7171         [Fixes the 2nd part of bug #325473]
7172
7173 2008-02-07  Andreia Gaita <avidigal@novell.com>
7174
7175         * Control.cs: Reset properties to their pre parent-change values in case
7176         the new parent == null (in which case we're basically removing the control, 
7177         and don't want any events fired due to fake property changes)
7178         [Fixes #355850]
7179
7180 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
7181
7182         * PropertyGridView.cs: 
7183          - Refactor SetValue to allow setting the value
7184         when a custom editor is used, but the entry is not editable.
7185          - Remove the custom editor control on CloseDropDown.
7186         [Fixes #359196]
7187
7188 2008-02-06  Andreia Gaita <avidigal@novell.com>
7189
7190         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
7191         reflection only on 1.1, this property is public on system.drawing on 2.0.
7192         Fixed #359247
7193
7194 2008-02-06  Andreia Gaita  <avidigal@novell.com>
7195         
7196         * WebBrowser.cs: Do a normal page refresh by default.
7197
7198 2008-02-05  Andreia Gaita  <avidigal@novell.com>
7199
7200         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
7201         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
7202         platforms. Fixes #359036
7203         
7204         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
7205         platform-specific flags.
7206
7207 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7208
7209         * Binding.cs: Add 2.0 BindableComponent property - just return control
7210         by now.
7211
7212 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
7213
7214         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
7215         Jonathan for this patch. Fixes #358442.
7216
7217 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
7218
7219         * Form.cs: If we change the active MDI child form, let the others
7220         know they need to repaint their title bar so it will appear inactive.
7221         [Fixes part 1 of bug #325473]
7222
7223 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
7224
7225          * PropertyGridView.cs: Do not trucate custom editors' width
7226          and align them to the left.
7227          [Fixes #358353 and #358349]
7228
7229 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7230
7231         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
7232         Also fix the arguments passed to CollectionChangeEventArgs in the
7233         related methods.
7234
7235 2008-02-04  Geoff Norton  <gnorton@novell.com>
7236
7237         * Hwnd.cs: The conversion to Quartz coordinates happens in
7238         System.Drawing.  Removing this translation from here.
7239
7240 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
7241
7242          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
7243          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
7244          GridItemCollection.cs:
7245          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
7246
7247 2008-02-04  Geoff Norton  <gnorton@novell.com>
7248
7249         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
7250         SYSKEYUP if any other key has been pressed in the mean time.
7251         Fixes #324404
7252
7253 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7254
7255         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
7256         when the item in current position is different than 0. Also, save the
7257         item index in the beginning of the operation, instead of getting the
7258         index of the item when the event is actually performed. Lastly clean
7259         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
7260         triggered.
7261         [Fixes #357873]
7262
7263 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7264
7265         * Form.cs: Alt-Minus for MDI children system menu should work
7266         with both the minus keys on the keyboard.
7267         [Fixes bug #336295]
7268
7269 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7270
7271         * Control.cs: Don't invalidate on region change.  The WM should
7272         take care of this automagically.  Keeps us out of an infinite
7273         paint loop if someone changes the Region in the OnPaint.
7274         [Fixes bug #358327]
7275
7276 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
7277
7278          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
7279
7280 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7281
7282         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
7283         down the MonthCalendar only on F4, not Alt+F4.
7284         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
7285         [Fixes bug #358340]
7286
7287 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7288
7289         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
7290         if its part of a DateTimePicker, else, use the back color.
7291         [Fixes bug #358339]
7292
7293 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7294
7295         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
7296         [Fixes bug #358342]
7297
7298 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7299
7300         * CurrencyManager.cs: When we get a ListChanged event from our source,
7301         always fire our own ListChanged event, as .Net does.
7302
7303 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7304
7305         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
7306         #358379.
7307
7308 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7309
7310         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
7311         property. Removed if for richtext property that was always true.
7312         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
7313
7314 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7315
7316         * TextBoxBase.cs - commited patch from James Purcell that
7317         correctly sets the FixedHeight control style when the MultiLine
7318         property is changed on a TextBox control. Fixes bug 358229.
7319
7320 2008-02-02  Luke Page  <luke.a.page@gmail.com>
7321
7322         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
7323         Fixes bug 351938 - caret is positioned correctly when drawn
7324         and when calculating textual position of caret, no longer
7325         has a NRE in certain situations.
7326         
7327 2008-02-01  Geoff Norton  <gnorton@novell.com>
7328
7329         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
7330         get that region removed from the paint event.
7331         * XplatUICarbon.cs: Remove the window mapping after disposing of 
7332         window.  Prevents a crash with handle reuse.  Optimize exposes
7333         only onto visible windows (rare; but possible).
7334
7335 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7336
7337         * UpDownBase.cs: Make sure the internal textbox calls the base's
7338         OnMouseDown and OnMouseUp so the textbox will function correctly.
7339         There were notes saying it doesn't chain up, but its an internal
7340         class, so our implementation may differ.
7341         [Fixes bug #357482]
7342
7343 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7344
7345         * ListBox.cs: Fix a logic error and don't process MouseDown
7346         for mouse buttons other than Left.
7347
7348 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7349
7350         * Control.cs: Remove HeightInternal.
7351         * ListBox.cs: Commit patch from James Purcell that correctly
7352         calculates heights for ListBoxen.
7353         [Fixes bug #357152]
7354
7355 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7356
7357         * Label.cs: Apply patch from James Purcell that corrects the 
7358         signature of the AutoSize property.
7359         [Fixes bug #357605]
7360
7361 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7362
7363         * ListBox.cs: Don't throw [Mouse]Click events for buttons
7364         other than the left mouse button.
7365
7366 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
7367
7368         * Control.cs: Remove my awesome optimization as it caused some
7369         regressions with control ordering.  :(
7370         [Fixes bug #357467]
7371
7372 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
7373
7374          * PropertyGridView.cs: Fix a NRE on double click when there is no
7375          selected object.
7376
7377 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7378
7379         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
7380
7381 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
7382
7383         * ListBox.cs: Call MouseClick and MouseDoubleClick.
7384         [Fixes bug #357146]
7385
7386 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7387
7388         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
7389         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
7390         instead of Hwnd.bmp_g.
7391
7392 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7393
7394         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
7395         Use the Hwnd one instead.
7396
7397 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7398
7399         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
7400
7401 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7402
7403         * Form.cs: corcompare for RestoreBounds.
7404
7405 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7406
7407         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
7408
7409 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7410
7411         * Form.cs: Handle Alt-Minus for MDI children forms.
7412         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
7413         Add mnemonics to the control menu.
7414         [Fixes bug #336295]
7415
7416 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7417
7418         * Binding.cs: Initial implementation bits of FormattingEnabled
7419         property and BindingComplete event (2.0). 
7420         * BindingCompleteEventArgs.cs: Internal methods for setting error text
7421         and exception.
7422
7423 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
7424
7425         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
7426         table.Location.  [Fixes bug #354672]
7427
7428 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
7429
7430         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
7431         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
7432
7433 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7434
7435         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
7436         of doing all the re-bound work, just invalidate and call SetControlText 
7437         to set the updated text of selected item to our textbox.
7438         Fixes #333750.
7439
7440 2008-01-28  Andreia Gaita <avidigal@novell.com>
7441
7442         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
7443         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
7444         missing properties and methods. Add Load, Unload, Error, GotFocus, 
7445         LostFocus, Resize, Scroll events (only load and unload are connected)
7446
7447 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
7448
7449         * AccessibleObject.cs: Modified argument names to match MS.
7450         * Button.cs: Modified argument names to match MS.
7451         * BindingContext.cs: Modified argument names to match MS.
7452         * BindingMemberInfo.cs: Modified argument names to match MS.
7453         * ButtonBase.cs: Modified argument names to match MS.
7454         * ComboBox.cs: Modified argument names to match MS.
7455         * Control.cs: Modified argument names to match MS.
7456         * CheckedListBox.cs: Modified argument names to match MS.
7457         * CommonDialog.cs: Modified argument names to match MS.
7458         * DataGrid.cs: Modified argument names to match MS.
7459         * CursorConverter.cs: Modified argument names to match MS.
7460         * ControlPaint.cs: Modified argument names to match MS.
7461         * CheckBox.cs: Modified argument names to match MS.
7462         * ControlBindingsCollection.cs: Modified argument names to match MS.
7463         * BindingSource.cs: Modified argument names to match MS.
7464         * DataFormats.cs: Modified argument names to match MS.
7465         * ContainerControl.cs: Modified argument names to match MS.
7466         * CurrencyManager.cs: Modified argument names to match MS.
7467         * Application.cs: Modified argument names to match MS.
7468         * ContextMenuStrip.cs: Modified argument names to match MS.
7469         * ContextMenu.cs: Modified argument names to match MS.
7470         * BindingManagerBase.cs: Modified argument names to match MS.
7471         * WindowsFormsSection.cs: Fixed line ending.    
7472
7473 2008-01-27  Andreia Gaita <avidigal@novell.com>
7474
7475         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
7476         detecting that the dropdown toolwindow is hidden. EndLoop outside the
7477         while.
7478
7479 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
7480
7481         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
7482         MS. Code formatting.
7483
7484 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7485
7486         * Binding.cs: Don't avoid the Format event if the control 
7487         property type is object. Also, if the value retrieved by 
7488         the data source is null _and_ the control proeprty type 
7489         is object, return Convert.DBNull (match .Net).
7490         Fixes part of #324286.
7491
7492 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7493
7494         * ListControl.cs: Since we are getting two BinginContextChanged events
7495         for the same binding context instance (when the control is added to
7496         form, and when the form is actually shown), take it into account only the
7497         first time for a given binding context instance.
7498         Fixes part of #324286.
7499
7500 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
7501
7502          * PropertryGridView.cs: Ops.
7503
7504 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
7505
7506          * PropertyGridView.cs: Close dropdown form if the owner form is
7507          moved or minimized.
7508          [Fixes bug #322446]
7509
7510 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
7511
7512          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
7513          RootGridEntry.cs, CategoryGridEntry.cs:
7514          PropertyGrid rewrite.
7515          - Rewrite all of the control logic in PropertyGrid.
7516          - Rewrite all of the ComponentModel logic in GridEntry.
7517          - Rewrite all UI work in PropertyGridView.
7518          - Many bugfixes, etc.
7519
7520 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
7521
7522         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
7523         when all contained controls are autosize or dock-fill.  Also take into
7524         account when the total percentage of column/row sizes is not 100%.
7525         [Fixes bug #354672]
7526
7527 2008-01-24  Andreia Gaita <avidigal@novell.com>
7528
7529         * HtmlDocument.cs:
7530         - Save a reference to the IDocument in the instance and
7531           use that one instead of going to WebHost.Document; the document that the 
7532           WebHost returns might not be the right one (in case of frames).
7533         - Use the hashcode returned from the IDocument interface.
7534         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
7535           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
7536           LinkColor, Url, VisitedColor, Window
7537
7538         * HtmlElement.cs: 
7539         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
7540           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
7541           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
7542           SetAttribute, Equals, equality operators.
7543         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
7544           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
7545         
7546         * HtmlElementCollection.cs: Change implementation to use a generic
7547         collection. Implemented Enumerator and CopyTo
7548
7549         * HtmlHistory.cs: Add constructor, no implementation yet.
7550
7551         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
7552         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
7553         Equals, equality operators.
7554
7555         * HtmlWindowCollection.cs: Implemented. 
7556
7557         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
7558         has been deprecated).
7559
7560         * WebBrowserBase.cs: Use Completed event to track document loading
7561         (Navigated has been deprecated)
7562
7563 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
7564
7565         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
7566         level MenuItems do not respect tabs.
7567         [Fixes bug #355196]
7568
7569 2008-01-23  Geoff Norton  <gnorton@novell.com>
7570
7571         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
7572         FormWindowState.  Finished fixing Fullscreen windows on Carbon
7573
7574 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7575
7576         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
7577         be used as grab_control. Also save status of capture before show ContextMenu
7578         and restore it after close.
7579
7580 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7581
7582         * Control.cs: Internal FindRootParent method added to return high control
7583         in parent tree.
7584
7585 2008-01-23  Geoff Norton  <gnorton@novell.com>
7586
7587         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
7588         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
7589         it work again.  Handle HITTEST events.
7590
7591 2008-01-23  Geoff Norton  <gnorton@novell.com>
7592
7593         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
7594         a crash in certain cases.  Support for fullscreen windows in certain cases.
7595
7596 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
7597
7598         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
7599         [Fixes bug #355703]
7600
7601 2008-01-23  Geoff Norton  <gnorton@novell.com>
7602         
7603         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
7604
7605 2008-01-23  Geoff Norton  <gnorton@novell.com>
7606
7607         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
7608
7609 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7610
7611         * SplitContainer.cs: Remove unused declarations.
7612         * Binding.cs: Remove unused declarations.
7613
7614 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7615
7616         * Form.cs: Remove unused declaration of 'active' in Activate method.
7617         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
7618         prevent compilation warnings.
7619         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
7620         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
7621         * Bindings.cs: Remove unused formatting_enabled declaration.
7622         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
7623         warnings.
7624         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
7625         warnings.
7626         * PropertyGridView.cs: Remove usused 'ex' declaration.
7627         * DataGridView.cs: Remove unused declarations.
7628
7629 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7630
7631         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
7632         
7633         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
7634         to Control class, it makes possible to grab menu to controls that can't 
7635         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
7636         WmMouseMove removed since it was used only to track menu events.
7637
7638         * Control.cs:
7639         - Moved all active_tracker stuff from Form.
7640         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
7641         can call this method instead of reimplement all necessary code handle for
7642         menu tracker.
7643         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
7644         and WmMouseMove).
7645         
7646         * MenuAPI.cs: 
7647         - Remove special handle to ToolStripOverflow, now we can grab menu to 
7648         controls that can't reach Form using parent tree.
7649         - Change type of grab_control from Form to Control.
7650
7651 2008-01-22  Geoff Norton  <gnorton@novell.com>
7652
7653         * TextBoxBase.cs: Split up the sizing of controls and placing of 
7654         controls.  Fixes a bug where scrollbars in Reflector could be sized
7655         wrong and have non-working thumbers.
7656
7657 2008-01-23  Geoff Norton  <gnorton@novell.com>
7658
7659         * XplatUI.cs: Refactor environment variables to default support to the
7660         Carbon driver on the Mac.
7661
7662 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7663
7664         * Label.cs: Uses new LabelPainter for drawing operations.
7665         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
7666         * Theme.cs: DrawLabel and LabelDefaultSize removed.
7667
7668 2008-01-22  Geoff Norton  <gnorton@novell.com>
7669
7670         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
7671
7672 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7673
7674         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
7675         through the normal flat button code and don't draw the checkbox glyph.
7676         * Theme.cs: Button->ButtonBase signature change.
7677         [Fixes bug #324755]
7678
7679 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
7680
7681         * LinkLabel.cs: Uses new class LinkLabelPainter.
7682
7683 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
7684
7685         * MessageBox.cs: Adjust right border space, we don't need to add 
7686         "space_border*2" two times.
7687
7688 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7689
7690         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
7691         becomes a wrapper around Padding.
7692         [Fixes a part of bug #354676]
7693
7694 2008-01-22 Geoff Norton  <gnorton@novell.com>
7695
7696         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
7697         acquired.  Also ensure the buffer is large enough to grab the header
7698         we need on linux boxes.
7699
7700 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7701
7702         * Control.cs: Implement a custom enumerator so people can delete
7703         from the Controls collection while in a foreach.
7704         [Fixes bug #355074]
7705
7706 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7707
7708          * PropertyGridView.cs: Fix focusing behavior:
7709          - Tab should focus the grid text box.
7710          - Clicking on the labels shouldn't focus the grid text box.
7711
7712 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7713
7714          * PropertyGridView.cs: IsValueTypeGridItem should return true 
7715          for Arrays as well.
7716
7717 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7718
7719          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
7720           - Renamed GridEntry.SelectedObjects to TargetObjects to better
7721           reflect the property name role.
7722           - PropertyGrid.GetTarget is not required as the target is known
7723           (TargetObjects).
7724           - Setting values will handle value types as a special case now and
7725           populate them up in the chain.
7726           [Fixes #354990]
7727
7728 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
7729
7730         * Hwnd.cs: Create a public property for the Graphics we keep around.
7731
7732 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
7733
7734          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
7735          when the current object selection changes. 
7736          Fixes failing test SelectedObject_Null2.B5.
7737
7738 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
7739
7740          * PropertyGrid.cs: Process Browsable properties with 
7741          DesignerSerializationVisibilityAttribute.Content as being expandable.
7742          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
7743          will not be expandable. We should be nested components-friendly now.
7744
7745 2008-01-21  Andreia Gaita <avidigal@novell.com>
7746
7747         * WebBrowserBase.cs: Check if control was loaded properly, 
7748         don't bind if it wasn't.
7749
7750         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
7751         GetElementFromPoint, equality operators, OpenNew, Write.
7752         Remove extra set_Body
7753
7754 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
7755
7756         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
7757         that makes our AutoScale* stuff more tolerant to different orders
7758         of being set.  [Fixes bug #354669]
7759
7760 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
7761
7762          * PropertyGridView.cs, PropertyGridTextBox.cs: 
7763          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
7764          [Fixes #339005 and #348209]
7765
7766 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
7767
7768          * PropertyGridView.cs: Hide the grid text box before adjusting it
7769          for the newly selected GridItem.
7770          [Fixes #338999]
7771
7772 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
7773
7774         * Form.cs: Give MDI children the opportunity to cancel the parent form
7775         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
7776         properly for both the parent and child.
7777         * Application.cs: Signature of internal method changed, pass the previous
7778         default of false.
7779         [Fixes bug #354286]
7780
7781 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
7782
7783         * PropertyGridView.cs: Set the property value only if it has changed.
7784         [Fixes bug #338997]
7785
7786 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
7787
7788         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
7789         If the mouse hasn't actually moved, ignore these messages so the currently
7790         highlighted menuitem isn't reset to the one under the mouse.
7791         [Fixes bug #333668]
7792
7793 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
7794
7795         * PropertyGridView.cs: When the property changes Invalidate the GridItem
7796         in order for the properties with UITypeEditor.GetPaintValueSupported == true
7797         to reflect the change visually.
7798         [Fixes bug #338998]
7799
7800 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
7801
7802         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
7803         to 2.0 button drawing.
7804         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
7805         the button text is tall enough for one line.  LineLimit says it will
7806         always draw at least one line, but it is a lie.
7807         [Fixes bug #324941]
7808
7809 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
7810
7811         * XplatUIStructs.cs, X11Keyboard.cs :
7812           added some more VK_* keys to be handled.
7813
7814 2008-01-16  Andreia Gaita <avidigal@novell.com>
7815
7816         * Control.cs: Check if there is a container before setting or getting
7817         the validation flag.
7818
7819 2008-01-16  Andreia Gaita <avidigal@novell.com>
7820
7821         * ContainerControl.cs: Add flag to track if a control cancels validation, 
7822         so we don't fire click events.
7823
7824         * Control.cs: 
7825         - (HandleClick) Check if validation was cancelled before  firing the click
7826         events (doubleclicks are fired, but not clicks)
7827         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
7828         ContainerControl.set_ActiveControl, but in the case of non-selectable
7829         controls, like a Label, activecontrol is not set. 
7830
7831         * ButtonBase.cs: Only fire clicks if validation passes.
7832         
7833         Fixes #353310
7834
7835 2008-01-16  Geoff Norton  <gnorton@novell.com>
7836
7837         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
7838         trunk
7839
7840 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
7841
7842         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
7843         SelectedPath, just display the default dialog instead of crashing.
7844         [Fixes bug #348989]
7845
7846 2008-01-16  Geoff Norton  <gnorton@novell.com>
7847
7848         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
7849         AddExpose instead of trusting apples compositing manager which doesn't
7850         work for our use case.  Remove some dead code causing warnings and 
7851         redecorate some other code to prevent warnings.
7852
7853 2008-01-16  Geoff Norton  <gnorton@novell.com>
7854
7855         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
7856         carbon signals us to redraw.  Fixes another portion of the flickering bug
7857
7858 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7859
7860         * Form.cs: Prevent the MdiParent property to be set when value is the same
7861         as value already set. Fixes bug #328019.
7862
7863 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7864
7865         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
7866         it prevents NRE when closing mdi child windows. Fixes bug #325211.
7867
7868 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7869
7870         * InternalWindowManager.cs: Invalidade close button after mouse up when 
7871         mdi form is prevented to close.
7872
7873 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7874
7875         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
7876         thanks to Andy Hume. Fixes bug #325433.
7877
7878 2008-01-16  Andreia Gaita <avidigal@novell.com>
7879
7880         * LinkLabel.cs: Reset focused_index when resellecting the control.
7881         Fixes #323190
7882
7883 2008-01-15  Geoff Norton  <gnorton@novell.com>
7884
7885         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
7886         messages.
7887
7888 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
7889
7890         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
7891         of truncate.
7892
7893 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
7894
7895         * ContainerControl.cs: Setting AutoScaleMode to anything should set
7896         Form.AutoScale to false.
7897         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
7898         AutoScaleBaseSize should be changed on Font change unless it has been
7899         explicitly set.
7900         [Fixes bug #353827]
7901
7902 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
7903
7904         * MenuAPI.cs: On instance of MenuTracker check if source control is
7905         ToolStripOverflow and use properly method to find form.
7906         [Fixes bug #338511]
7907
7908 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
7909
7910         [Fixes bug #323241 Transparent toolbar support]
7911
7912         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
7913         is flat.
7914
7915         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
7916         defined in control style to mimic win32 behavior.
7917
7918         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
7919         it will be transparent.
7920
7921 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
7922
7923         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
7924         CreateParams for ToolBar controls.
7925
7926 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7927
7928         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
7929         FixedToolWindow, SizeableToolWindow, or None for border styles have
7930         different minimum sizes than regular forms.  Implemented to fix
7931         regression in PDN with toolbox being too wide.
7932
7933 2008-01-14  Andreia Gaita <avidigal@novell.com>
7934
7935         * HtmlElementCollection.cs: Implemented
7936
7937         * HtmlElement.cs: Implemented:
7938           - All
7939           - InnerHtml
7940           - InnerText
7941           - Id
7942           - Name
7943           - FirstChild
7944
7945         * HtmlDocument.cs: Implemented GetElementsByTagName.
7946
7947 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7948
7949         * Screen.cs: Stub BitsPerPixel to always return 32.
7950
7951 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7952
7953         * Form.cs: Implement RestoreBounds.
7954
7955 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7956
7957         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
7958         Sebastien and his fabulous magical problem-finding machine:
7959         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
7960         respect the value set.
7961
7962 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
7963
7964         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
7965         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
7966
7967 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7968
7969         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
7970         messages (to match .Net), we need to remove the capture ourselves.
7971
7972 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
7973
7974         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
7975         will process the message and close our window.
7976         [Fixes bug #324328]
7977
7978 2008-01-10  Geoff Norton  <gnorton@novell.com>
7979
7980         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
7981         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
7982         window manager.
7983
7984 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7985
7986         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
7987         failing test.
7988
7989 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7990
7991         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
7992         Linux doesn't care, having a minimum matches MS and keeps the window
7993         from becoming too small to use window decorations.
7994         [Fixes bug #338996]
7995
7996 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7997
7998         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
7999         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
8000         control.  [Fixes bug #325419]
8001
8002 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8003
8004         * ComboBox.cs: Guard against an NRE if the user open a new form from a
8005         SelectedIndexChanged event.  This closes the combobox dropdown, and we
8006         were trying to dispose it.  [Fixes bug #352830]
8007
8008 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8009
8010         * Control.cs, Form.cs: Implement the necessary semantics for
8011         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
8012         to determine if a focus rectangle should be drawn.
8013         * PropertyGrid.cs: Fix property visibility to match override.
8014         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8015
8016 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8017
8018         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8019         [Fixes bug #323552]
8020
8021 2008-01-09  Geoff Norton  <gnorton@novell.com>
8022         
8023         * XplatUICarbon.cs: Scroll windows in the correct direction.
8024
8025 2008-01-09  Geoff Norton  <gnorton@novell.com>
8026
8027         * XplatUICarbon.cs: Track all created utility windows so we can hide them
8028         when the app is deactivated or spaces is enabled.
8029
8030 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8031
8032         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8033         extra separation pixel for the label rect origin if SmallImageList is
8034         null, and thus we don't need that separation between icon and label
8035         rects.
8036         Patch by Ernesto Carrea.
8037         Fixes # 340195.
8038
8039 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
8040
8041         * StatusStrip.cs: Invalidate after completing a layout.  The base
8042         OnLayout does this, but we don't call the base.
8043         * ToolStripItem.cs: Revert the previous change to invalidate after
8044         the item moves.
8045         [Fixes bug #351341 better.]
8046
8047 2008-01-07  Geoff Norton  <gnorton@novell.com>
8048
8049         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
8050         not a notification to exit the application.  Listen for WM_QUIT
8051         instead.
8052
8053 2008-01-07  Andreia Gaita <avidigal@novell.com>
8054
8055         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8056
8057 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
8058
8059         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8060         so it can repaint at the correct location.
8061         [Fixes bug #351341]
8062
8063 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8064
8065         * ListControl.cs: SelectedValue should return a null value if
8066         SelectedIndex is -1. Also, when setting it, it should throw an
8067         ArgumentNullException if the value is null, as well as taking
8068         into account the String.Empty value, instead of ignoring it (we have
8069         tests for that now).
8070         Fixes part of #324286.
8071
8072 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
8073
8074         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8075         SelectionStart is updated after pressing enter.  Fixes bug #351918.
8076
8077 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8078
8079         * TextControl.cs: Revert a piece r92316 that prevented the fix
8080         from working when there were multiple tags in the text box.
8081         Fixes bug #351881.
8082
8083 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8084
8085         * TextControl.cs: Apply patch from Luke Page that prevents an
8086         NRE when determining the beginning of a paragraph.
8087         Fixes bug #351886.
8088
8089 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8090
8091         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8092         caret gets moved with clicking away from a selected block of
8093         text.  Fixes bug #351885.
8094
8095 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8096
8097         * TextControl.cs: Apply patch from Luke Page that takes line
8098         alignment into account for mouse selection, so that center and
8099         right aligned text can be selected.
8100         Fixes bug #351881.
8101
8102 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8103
8104         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
8105         issues after loading an RTF file by using the correct line feeds.
8106         Fixes bug #351841.
8107
8108 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8109
8110         * TextControl.cs: When deleting multiple line selections, we need
8111         to invalidate every line beginning at the first line of the selection.
8112         Patch from Luke Page fixes bug #351791.
8113
8114 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8115
8116         * ListControl.cs: When getting a CurrencyManager.PositionChanged
8117         event, don't set SelectedIndex if the number of items is 1. This is
8118         because, for the first item, PositionChanged is fired _before_
8119         ItemChanged (the place where we actually populate the items), and
8120         leave us in a temporary invalid state (since items collection is
8121         empty).
8122         Fixes #349655.
8123
8124 2008-01-04  Geoff Norton  <gnorton@novell.com>
8125
8126         * XplatUICarbon.cs:  Create native toolwindows instead of
8127         the managed drawing ones.
8128
8129 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8130
8131         * LineTag.cs: If the line doesn't have any characters, return
8132         0 for GetCharIndex.  Fixes an AOORE exception after certain
8133         caret movements.  Fixes bug #351683.  Patch by Luke Page.
8134
8135 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8136
8137         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
8138         is hit when there is selected text, only the selected text gets
8139         deleted, not the character in front of the selection as well.
8140         Fixes bug #351578.
8141
8142 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8143
8144         * ComboBox.cs: When the values are displayed, calculate the
8145         ComboListBox scrollbar's LargeChange based on the visible area's
8146         height and  the actuall ItemHeight, instead of calculating it
8147         based on MaxDropItems value, since it's not used by our _current_ 
8148         2.0 profile.
8149         Fixes #332366.
8150
8151 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8152
8153         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8154         Patch from Luke Page that fixes issues with font colors and styles
8155         not showing up in a readonly RichTextBox.  Fixes bug #324354.
8156
8157 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8158
8159         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
8160         from Luke Page.  This one fixes bug #349926.
8161
8162 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8163
8164         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
8165         an item in the IBindingList source changes with
8166         ListChangedType.ItemAdded. Ignore for now firing the event for other
8167         changes, since we want to have tests for those cases as well.
8168
8169 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8170
8171         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
8172         created.
8173
8174 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8175
8176         * TextBoxTextRenderer.cs: Implement a cache for measuring each
8177         character.  This is effective because the typical usage of a
8178         TextBox is with a limited amount of fonts and characters, and
8179         the current implementation of TextBox measures everything one
8180         character at a time.  Another second or two speedup for bug #347238.
8181
8182 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8183
8184         * Control.cs: Rewrite the Font getter to only query the parent's
8185         Font property once instead of twice.  Since this operation is
8186         recursive, the queries were growing exponentially as the control
8187         tree got deeper.  Another second or two speedup for bug #347238.
8188
8189 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8190
8191         * Control.cs: Avoid setting a parent (and more importantly, updating
8192         the zorder of all its children) if the parent is already correct in
8193         WmShowWindow.  Decreases the startup time of the test case on bug
8194         #347238 from 35 seconds to 11 seconds.
8195
8196 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8197
8198         * X11Dnd.cs: When the dnd operation has started and we are 
8199         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
8200         This is done to match .Net, which doesn't send those messages after
8201         dnd operation was completed/cancelled.
8202         Fixes #349922.
8203
8204 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8205
8206         * ToolStrip.cs: Previous change should be != null, not == null.
8207         Thanks Gert!
8208
8209 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8210
8211         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
8212         user may have moved the mouse off the current item during the event.
8213
8214 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8215
8216         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
8217         calling GetItemAt for every MouseMove event by also taking into
8218         account whether any mouse button is pressed (probably dragging); 
8219         if so, we can call GetItemAt, and if not, try to not call it 
8220         (GetItemAt can be quite expensive when used with a large number of items).
8221
8222 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8223
8224         * ListView.cs: Implement -finally- support for dnd, by calling
8225         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
8226         authors list ;-).
8227         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
8228         simple calculation of distances for all the items in the owner
8229         listview.
8230
8231 2007-12-21  Geoff Norton  <gnorton@novell.com>
8232
8233         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
8234         for windows that are originally created as invisible.  Fixes missing
8235         main window in paint-mono.
8236
8237 2007-12-21  Geoff Norton  <gnorton@novell.com>
8238
8239         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
8240         subclass handler for com.novell.mwfview subclassing HIView.  Implement
8241         Pasteboard and Dnd methods.
8242
8243 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8244
8245         * ListBox.cs: When we got focus, give focus to first item if there
8246         wasn't any pervious focused item. Also update navigation to depend on
8247         SelectedIndex rather than FocusedItem, just as .Net does.
8248         Fixes #349174.
8249
8250 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8251
8252         * ListBox.cs: Both FindString and FindStringExact methods must do an
8253         case insensitive search, should allow the last valid index to be
8254         passed in the overload taking an initial index, and should also
8255         continue searching from the top back to the specified index when it
8256         reaches the bottom.
8257
8258 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8259
8260         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
8261         redraw issue, and allows RichTextBox to draw colored text even while
8262         disabled or readonly.
8263
8264 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8265
8266         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
8267         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
8268         and doesn't grey text in a disabled RichTextBox.
8269
8270 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8271
8272         * RichTextBox.cs: Apply patch from Luke Page that adds better support
8273         for many RTF commands: quad alignment, separate formatting for blocks
8274         inside groups, and ParDef support.  Makes the test case from bug #324589
8275         look much better.
8276
8277 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8278
8279         * LineTag.cs: Fix an error in the new Draw method that caused
8280         a crash when rendering the document on bug #324589.
8281
8282 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8283
8284         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
8285         TextControl.cs: Apply patch from Luke Page that adds support
8286         for URL links in RichTextBox.
8287         [Fixes enhancement #342516]
8288
8289 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
8290
8291         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
8292         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
8293
8294 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8295
8296         * ListBox.cs: When a key gets pressed, try to find a string
8297         if the key is a character or a digit.
8298         Fixes #343971.
8299
8300 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8301
8302         * TableLayoutPanel.cs: Remove some unused variables.
8303
8304 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8305
8306         * DateTimePicker.cs: Commit patch from Luke Page that ensures
8307         we don't end up at an invalid date when we click the up/down
8308         spinner to change the month or year.  Fixes bug #348682.
8309
8310 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8311
8312         * Application.cs: Calling Exit in 2.0 should chain to the
8313         Exit (CancelEventArgs) version so it can be cancelled.
8314         * Form.cs: Create a flag to allow raising the Closing
8315         events to be skipped.  We raise them once in Application.Exit
8316         and don't want to raise them again when the Form is actually
8317         closed.  [Fixes bug #349073]
8318
8319 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
8320
8321         * ToolStripDropDown.cs: Guard against an NRE when there
8322         hasn't been a mainform set in the application context.
8323         [Fixes bug #349108]
8324
8325 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8326
8327         * ListBox.cs: When SetBoundsCore gets called, besides
8328         calling UpdateScrollBars, update the value of
8329         last_visible_index, since we could need to show more items
8330         than before, and we need to let the paint routines know that.
8331         Fixes #344445.
8332
8333 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8334
8335         * ListView.cs: Add DesignerSerializationVisibility attribute to
8336         InsertionMark property.
8337         * ListViewItem.cs: Add same attribute to Position property.
8338
8339 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8340
8341         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
8342         is 2.0 only.
8343
8344 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
8345
8346         * ThemeWin32Classic.cs: Don't draw the background on a
8347         flat button if there is a background image.
8348         [Fixes bug #348649]
8349
8350 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8351
8352         * ListBox.cs: If we remove the item currently selected,
8353         remove it not only from SelectedItems, but also
8354         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
8355         the items count decreased and focused_item has bigger value than that.
8356
8357 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
8358
8359         * Control.cs: Perform our layout after we resize ourselves
8360         if we had to adjust our AutoSize.  Missed commit for bug
8361         #346246.
8362
8363 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
8364
8365         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
8366         we can provide an implementation of AutoSize.
8367         [Fixes bug #346246]
8368
8369 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8370
8371         * ListBox.cs: Add the internal overload Sort (bool paint),
8372         to indicate whether we actually need a paint or we will
8373         call Refresh ourselves. This way we don't request a paint
8374         _before_ having an updated and valid layout.
8375         Fixes #347233.
8376
8377 2007-12-12  Andreia Gaita <avidigal@novell.com>
8378
8379         * XPlatUIX11.cs: Send paint messages when updating a systray icon
8380         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
8381         properly invalidated. 
8382         Fixes #324237
8383
8384 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8385
8386         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
8387         don't simply assign it to our internal group field, but instead 
8388         use our Group property, which should do all the neccessary work
8389         required to support groups. Fixes an issue reported to me (mail) by a 
8390         guy using this new feature.
8391
8392 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
8393
8394         * Control.cs: Use Scale instead of ScaleControl to ensure the
8395         whole hierarchy gets scaled.
8396         [Fixes bug #347282]
8397
8398 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
8399
8400         * DateTimePicker.cs: Don't set the internal MonthCalendar's
8401         Parent property.  Doing this causes the control to be hosted by
8402         the Form instead of being a popup window.
8403         [Fixes bug #347665]
8404
8405 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
8406
8407         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
8408         at an index higher than Count, just use Add instead of Insert.
8409         [Fixes bug #347669]
8410
8411 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
8412
8413         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
8414         DrawPictureBox, this is handled by Control.PaintBackground.
8415         [Fixes bug #347276]
8416
8417 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
8418
8419         * MenuAPI.cs: When process menu keys return true by default only if menu is
8420         active. Fixes bug #342892.
8421
8422 2007-12-09  Andreia Gaita <avidigal@novell.com>
8423
8424         * Control.cs: check if windows are actually mapped before
8425         trying to zorder. Fixes #342509, #346955
8426
8427 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8428
8429         * ListView.cs:
8430         * ListViewInsertionMark.cs:
8431         * ThemeWin32Classic.cs: Implement the drawing side of the
8432         new 2.0 ListView.InsertionMark property.
8433
8434 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
8435
8436         * CurrencyManager.cs: Silence some debug spew.
8437
8438 2007-12-07  Geoff Norton  <gnorton@novell.com>
8439         
8440         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
8441         masks for our children as well as siblings to avoid having to query
8442         Quartz for this information.
8443         * XplatUICarbon.cs: Implement a delegate based system to pass
8444         information to System.Drawing.  Implement Async methods.  Remove
8445         the hack for the resize thumb and imlpement a transparent Grow Box.
8446         Rework the messaging system to proplery create window's and messages,
8447         fixes TabControl.
8448
8449 2007-12-06  Andreia Gaita <avidigal@novell.com>
8450
8451         * X11Keyboard.cs: Use Xutf8LookupString to support international 
8452         characters under alternate codepages. Patch from #340878
8453
8454 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8455
8456         * ListView.cs: When doing layout computations, set position in the
8457         ListView instances (we cache the position just as .Net does).
8458         * ListViewItem.cs: New internal setter method for Position. Also set
8459         position field as also available in 1.1, since we are going to use it
8460         now in the common case.
8461
8462 2007-12-06  Andreia Gaita <avidigal@novell.com>
8463
8464         * Control.cs: When removing controls, get the actual container
8465         to notify about active control changes. Fixes 341314.
8466
8467 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8468
8469         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
8470
8471 2007-12-05  Andreia Gaita <avidigal@novell.com>
8472
8473         * Control.cs: When updating the zorder, ignore windows that are not
8474         mapped. Fixes #342509
8475
8476 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8477
8478         * ListViewItem.cs: Actually implement serialization on this class.
8479
8480 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
8481
8482         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
8483         LinkCollection. Spaces to tabs, and removed extra tabs.
8484
8485 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8486
8487         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
8488           tests to fail (hopefully).
8489
8490 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8491
8492         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
8493         the image margin so custom renderers can correctly place it.
8494
8495 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8496
8497         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
8498         so custom renderers can correctly place it.
8499
8500 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8501
8502         * Application.cs: Let WM_CHAR messages flow through to controls
8503         hosted in Strips.  [Fixes bug #343972]
8504
8505 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
8506
8507         * ToolStripManager.cs: Guard against an NRE I ran into.
8508
8509 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
8510
8511         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
8512         a Link is manually added to the Links collection, we need to set
8513         its owner, so it can invalidate properly.
8514         [Fixes bug #344012]
8515
8516 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8517
8518         * ListView.cs: When changing ListViewItem.Position (which calls
8519         ListView.ChangeItemLocation), invalidate not only the area
8520         corresponding to the main item, but also to the area occupied
8521         by the items being moved.
8522
8523 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8524
8525         * ListView.cs: When changing the position of a given item,
8526         don't use item bounds, but item areas (which includes the item spacing
8527         between them). Also, use first/last position if the requested
8528         position is outside bounds (as .Net does). Invalidate the previous and
8529         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
8530         in a specific position, instead of directly accessing Items collection
8531         (this is done to get the right item - remember an Item can have a
8532         different position in the grid than in the Items collection).
8533
8534 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8535
8536         * MessageBox.cs: Calculate text area instead of just top left, this rect 
8537         area will be used in DrawString. Fixes bug #343364.
8538
8539 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8540
8541         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
8542         screen width. Partially fixes bug #343364.
8543
8544 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8545
8546         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
8547         code inside recalculate, it makes code more simple.
8548
8549 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
8550
8551         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
8552         between update or add icon. Fixes bug #324344.
8553
8554 2007-11-21  Andreia Gaita <avidigal@novell.com>
8555
8556         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
8557         window manager, since that stretches the drawing area to include
8558         the window decorations, and they get hidden. Reverts r84444 and fixes
8559         #335849 and #342790 (mdi and pdn3 regression)
8560
8561 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8562
8563         * ListView.cs: When setting focused item, try to give focus to the
8564         previous one _only_ if the previous one remains valid. 
8565         Fixes #342504.
8566
8567 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
8568
8569         * Application.cs: Revert r89650, as it broke a common case to fix
8570         an obscure case.  Fixes bug #342606.
8571
8572 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
8573
8574         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
8575
8576 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
8577
8578         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
8579         alignment. [Fixes #324228]
8580
8581 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
8582
8583         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
8584         [Fixes bug #342123]
8585
8586 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
8587
8588         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
8589         it prevent problems when empty captions. [Fixes #342141]
8590
8591 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
8592
8593         * Label.cs: Use Size instead of None.  Fixes bug #342077.
8594
8595 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8596
8597         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
8598
8599 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
8600
8601         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
8602         but there isn't a MdiContainer.
8603         [Fixes bug #342358]
8604
8605 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
8606
8607         * TextControl.cs: Don't recalculate document if the recalc_start and
8608         recalc_end hasn't changed.
8609         [Fixes bug #342505]
8610
8611 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
8612
8613         * DataGridViewTextBoxCell.cs: Removed CWL.
8614
8615 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8616
8617         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
8618
8619 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
8620
8621         * TextControl.cs: Missed some code for bug 341534 to trigger a
8622         recalculation when the font changes.
8623
8624 2007-11-16  Andreia Gaita <avidigal@novell.com>
8625
8626         * Control.cs: When updating the zorder, check if the child to update is
8627         the same control that is set to always be on top (i.e., scrollbars), and 
8628         just put it on top directly. Fixes BadMatch error on pdn3
8629
8630 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8631
8632         * ListView.cs: Throw the needed exceptions for FindNearestItem.
8633
8634 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
8635
8636         * Control.cs: Don't perform a new layout when a label changes its text,
8637         cause label handles its own autosizing.
8638         [Fixes bug #342077]
8639
8640 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8641
8642         * ListView.cs: Implement 2.0 FindNearestItem methods.
8643
8644 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
8645
8646         * ToolStripPanel.cs: Make Join at least add the control to the panel,
8647         even if the rest of what Join does isn't supported.  Add some more
8648         support for vertical toolbars.
8649         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
8650         [Fixes the application breaking parts of bug #341998]
8651
8652 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
8653
8654         * ToolStripItem.cs: When determining if we have a check/image margin,
8655         we need to look at ShowCheckMargin as well as ShowImageMargin.
8656
8657 2007-11-15  Geoff Norton  <gnorton@novell.com>
8658
8659         * XplatUIOSX.cs: Rename to...
8660         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
8661         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
8662
8663 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
8664
8665         * KeysConverter.cs: The default values should be an array of Keys, not
8666         strings.  Also, the array has more values for 2.0.
8667         [Fixes bug #341851]
8668
8669 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8670
8671         * Application.cs: Change ExecutablePath to use 
8672         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
8673         [Fixes bug #323552]
8674
8675 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8676
8677         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
8678         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
8679         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
8680         be ignored.  Create a new GetLineEnding that can specify which types of
8681         line endings to look for.  On Insert, only create new lines for \n and \r\n.
8682         [Fixes bug #324274]
8683
8684 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8685
8686         * TextBoxBase.cs: As we loop through each line changing the font, tell
8687         the document that the line needs to be recalculated.  Fixes bug #341534.
8688
8689 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
8690         [Another round of refactoring]
8691         * Line.cs: Add DeleteCharacters.
8692         * LineTag.cs: Add Delete.
8693         * TextBoxBase.cs: Update to use new methods.
8694         * TextControl.cs: Refactor the Delete* methods.
8695
8696 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
8697
8698         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
8699         the patch. [Fixes #324856]
8700
8701 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8702
8703         * ListView.cs:
8704         * ListViewItem.cs: Add an initial implementation of
8705         2.0 ListViewItem.Position getter.
8706
8707 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8708
8709         * ListView.cs: Add a reordered_items_indices array, to allow us
8710         to have a different sorting than that of Items (the sorting in Items
8711         could not match the actual sorting in screen). This is needed to
8712         implement a pair of 2.0 features.
8713         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
8714         actual position in the ListView grid, since it could have a position
8715         different than its Index (position in ListViewItemCollection). 
8716
8717 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
8718
8719         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
8720         not draw partial lines.
8721         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
8722         LineLimit flag from the base is preserved.
8723         Fixes the windows part of bug #338965.
8724
8725 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
8726
8727         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
8728         so that it can be canceled in KeyPress.
8729         Fixes bug #340078.
8730
8731 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8732
8733         * ListView.cs: In ItemControl, reset mouse-handling related
8734         fields even if we dont' have items (we still should reset them when
8735         we had items but then called Items.Clear). Partially based in a patch
8736         by George Giolfan.
8737         Fixes #338399.
8738
8739 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
8740
8741         * Application.cs: In ProductVersion first try AssemblyFileVersion
8742         before falling back to assembly version. Fixes bug #339787.
8743
8744 2007-11-08  Andreia Gaita <avidigal@novell.com>
8745
8746         * HtmlElement.cs: Implement InnerText setter.
8747         * WebBrowserBase.cs: Implement Navigated event support.
8748         Add flag to track when the browser "document" is ready to be retrieved.
8749         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
8750         Make sure browser document is ready before retrieving it.
8751         Clean up cached objects (document) when moving to a new page through
8752         any of the navigation methods.
8753         Use the new Mono.WebBrowser.INavigation interface to control navigation.
8754         Implement OnNavigated event.
8755
8756 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
8757
8758         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
8759         DrawLinkLabel, this is handled by OnPaintBackground.
8760         Fixes bug #339565, part II.
8761
8762 2007-11-07  Andreia Gaita <avidigal@novell.com>
8763
8764         * Control.cs: Revert r88915. Selecting text on a textbox depends on
8765         getting a Select call on click, so this call needs to be here for now.
8766         Unfixes #325809
8767
8768 2007-11-07  Geoff Norton  <gnorton@novell.com>
8769
8770         * OSXStructs.cs: Add the kEventClassApplication constants.
8771         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
8772         application is deactivated otherwise Menu overlays linger on top of
8773         other application windows.
8774
8775 2007-11-07  Geoff Norton  <gnorton@novell.com>
8776
8777         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
8778         dont support cursors yet anyways.  This allows Reflector to run.
8779
8780 2007-11-07  Geoff Norton  <gnorton@novell.com>
8781
8782         * XplatUIOSX.cs: Implement DragSize.
8783
8784 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8785
8786         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
8787         ItemControl, request the focus, as .Net does. This is needed after 
8788         Control does not request focus anymore when it receives a
8789         WM_LBUTTONDOWN.
8790
8791 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
8792
8793         * Label.cs: Make DrawImage internal so it can be called from Theme code.
8794         Remove the DrawImage call from OnPaint.
8795         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
8796         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
8797         but before we draw the text for DrawLabel and DrawLinkLabel.
8798         Fixes bug #339565.
8799
8800 2007-11-05  Andreia Gaita <avidigal@novell.com>
8801
8802         * Control.cs: Remove select call on click. Fixes #325809
8803
8804 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8805
8806         * ListViewItem.cs: Add 2.0 Position property getter.
8807
8808 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8809
8810         * ListView.cs: Add 2.0 BackgroundImageTiled property.
8811         Also, to make it work properly, change item's BackColor and
8812         BackgroundImageLayout as needed.
8813         * ThemeWin32Classic.cs: Don't fill any background rectangle 
8814         in ListView.ItemControl when drawing items; just let the Control
8815         base implementation fill it.
8816
8817 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8818
8819         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
8820         as well as adding a custom 'dummy' Converter, as .net does.
8821
8822 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8823
8824         * PropertyGridView.cs: When clicking drop-down button,
8825         select an index in the listbox only if our standard values collection 
8826         has one or more items.
8827
8828 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8829
8830         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
8831         property.
8832
8833 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8834
8835         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
8836         the value is not changed. This ensure a pushed button remains in that
8837         state when clicked again. When switching the value of PropertySort
8838         between Categorized and CategorizedAlphabetical, do not update the
8839         grid items and do not fire a PropertyChangedEvent. When clicking the
8840         sorting buttons, do not modify the PropertySort value when switching
8841         between Categorized and CategorizedAlphabetical but only update the
8842         button state.
8843
8844 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8845
8846         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
8847         formatting.
8848         * PropertyGrid.cs: Also put Categorized button in pushed state when
8849         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
8850         for help description label.
8851
8852 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8853
8854         * ListView.cs: When calculating the biggest item for a given column,
8855         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
8856         the item's width.
8857
8858 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
8859
8860         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
8861         value for PropertySort on 1.0 profile. PropertySortChanged event
8862         should only be fired on 2.0 profile. Fixed NullReferenceException
8863         in UpdateSortLayout when PropertyGrid contains no items.
8864
8865 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
8866
8867         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
8868         [Fixes bug #338554]
8869
8870 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8871
8872         * ListViewItem.cs: Implement 2.0 IndentCount property.
8873
8874 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8875
8876         * X11Dnd.cs: When sending status in a dnd operation, compare current
8877         effect with the 'allowed' field instead of 'drag_data.Allowed', since
8878         the later is only created when a Winforms application is both the
8879         source and the target, but not when we are the target only.
8880         Fixes part of #324251.
8881
8882 2007-11-01  Geoff Norton  <gnorton@novell.com>
8883
8884         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
8885         order of Z-Order.
8886         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
8887         children out of the drawing view on mac.
8888         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
8889         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
8890         
8891 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
8892
8893         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
8894         on the non-hosted-control part of it shouldn't do anything.
8895         Fixes part of bug #327498.
8896
8897 2007-11-01  Andreia Gaita <avidigal@novell.com>
8898
8899         * WebBrowserBase.cs: revert previous change, resize can be called anytime
8900
8901 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
8902
8903         * Application.cs: When a toolstrip has the keyboard input loop, let messages
8904         it does not use flow through to controls that are hosted in menus.
8905         Same with mouse clicks.
8906         * Form.cs: Don't close all menus on click if the click is on a
8907         control hosted in a menu.
8908         Fixes part of bug #327498, and part of bug #325969.
8909
8910 2007-10-31  Andreia Gaita <avidigal@novell.com>
8911
8912         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
8913
8914 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
8915
8916         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
8917         Addresses an issue raised in bug #336218.
8918
8919 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
8920
8921         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
8922         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
8923
8924 2007-10-30  Andreia Gaita <avidigal@novell.com>
8925
8926         * ContainerControl.cs: Check if the active control is a
8927         child of a removed control and update active_control accordingly.
8928         Fixes #329718
8929
8930 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8931
8932         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
8933         or the MaxDate.  Fixed bug #337693.
8934
8935 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8936
8937         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
8938         after calling SetWindowLong for a form, to force an immediate NC refresh.
8939         Fixes first part of bug #325150.
8940
8941 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8942
8943         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
8944         simple.  Fixes the last part of bug #322668.
8945
8946 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8947
8948         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
8949         needs to be TopMost as well, or else the MessageBox is under the form.
8950         Patch by George fixes bug #325300.
8951
8952 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8953
8954         * X11Dnd.cs: When starting a new drag operation, reset the static
8955         'dropped' field to false (previously the implementation didn't reset
8956         it and got confused after the first drag).
8957         Fixes #325071.
8958
8959 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8960
8961         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
8962         items instead of re-creating them all. For this purpose we now cache
8963         both CategoryGridEntry items and the GridEntries for the main object's
8964         properties.
8965         * GridItem.cs: Make SetParent method abstract.
8966         * GridEntry.cs: Override the SetParent method (already there, but now
8967         we override it).
8968         Fixes #324866.
8969
8970 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8971
8972         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
8973         depending on its depth (as .Net does). Update the needed values in
8974         MouseDown handler. Also draw the plus/minus rect after the label,
8975         so we don't draw on top of it.
8976
8977 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
8978
8979         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
8980         processed by forms or controls when menu is active. [Fixes #333548]
8981
8982 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8983
8984         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
8985         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
8986         focus on mouse over.
8987
8988 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8989
8990         * TextControl.cs: Code cleaning, simplifying.
8991
8992 2007-10-24  Geoff Norton  <gnorton@novell.com>
8993
8994         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
8995         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
8996
8997 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8998
8999         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9000         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
9001
9002 2007-10-24  Andreia Gaita <avidigal@novell.com>
9003
9004         * SendKeys.cs: apply jpobst's patch to bug #332409
9005
9006 2007-10-23  Andreia Gaita <avidigal@novell.com>
9007
9008         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
9009         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9010         for some reason
9011
9012 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9013
9014         * PropertyGridView.cs: If a property has an UIEditor available,
9015         make the drop-down/editor button available only if the property
9016         is _not_ read only.
9017
9018 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9019
9020         * PropertyGridView.cs: Don't make the grid item textbox 
9021         editable when a drop-down control is available, but 
9022         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9023         true. The same bur the color of the grid item value's label.
9024
9025 2007-10-22  Geoff Norton  <gnorton@novell.com>
9026
9027         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9028         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9029         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
9030         driver.  Padd the bottom of all real windows so the resize thumb doesn't
9031         obscure scroll/status bars.
9032
9033 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
9034
9035         * WindowsFormsSection.cs: Implement.
9036
9037 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9038
9039         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
9040         closed see #325434 patch.
9041
9042 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9043
9044         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9045         see #325434 patch.
9046
9047 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9048
9049         * PropertyGridView.cs: When showing the textbox for a grid item,
9050         have two local variables to store the read-only and non-editable
9051         status of a grid item (we were previously using just one variable
9052         to do this, when actually they are slightly different).
9053         Fixes part of #325023.
9054
9055 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9056
9057         * PropertyGridView.cs: When showing a drop-down list, try to get the
9058         values using TypeConverter.ConvertTo (to convert to a string). Fixes
9059         part of #325023.
9060
9061 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9062
9063         * PropertyGrid.cs: When updating a property and populating sub grid
9064         items, remove the previous ones, and invalidate the specific area.
9065         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9066         area behind a grid item.
9067         * GridItemCollection.cs: Add an internal Clear method, to allow us to
9068         clean the items if needed (specially for controls implementing 
9069         ICustomTypeDescriptor and returning a variable number of properties).
9070         Fixes #324865.
9071
9072 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
9073
9074         * TextControl.cs: Clean up and document the Insert function.
9075
9076 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9077
9078         * TextControl.cs: Make sure we know our start point for updating the view
9079         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
9080         update the view.
9081
9082 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9083
9084         * ListView: Couple of corcompare fixes.
9085
9086 2007-10-17  Geoff Norton  <gnorton@novell.com>
9087
9088         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
9089         the title caption of real window.
9090
9091 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9092
9093         * ErrorProvider.cs: Add the error provider's internal window to a 
9094         containercontrol when the parent changes.  [Fixes bug #329714]
9095
9096 2007-10-17  Geoff Norton  <gnorton@novell.com>
9097
9098         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
9099         When we make a new window; restore the old active window - fixes dialogs.
9100
9101 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9102
9103         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
9104         when modifying a property, and if found then invalidate as
9105         requested.
9106         Fixes part of #324865.
9107
9108 2007-10-17  Geoff Norton  <gnorton@novell.com>
9109
9110         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
9111         highly experimental.  Fixed coordinate translation.  Fixed window locations.
9112         Initial support for clipping. Implemented NC areas and menus.  Support for
9113         launching from command line from Will Johansson (wjohansson@atacomm.com).
9114         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
9115         wjohansson@atacomm.com)
9116         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
9117         Hwnds now track the existence of all of their children for Mac clipping.
9118     * XplatUI.cs: Re-enabled the native driver on the Mac.
9119
9120 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9121
9122         * Line.cs: Move the InsertString function to here.
9123         * TextControl.cs: Cleanup some duplicate code, move some InsertString
9124         functionality to Line.
9125
9126 2007-10-17  Geoff Norton  <gnorton@novell.com>
9127
9128         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
9129
9130 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
9131
9132         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
9133         always setting value to true.
9134         * Form.cs: When changing AcceptButton, notify new and original button.
9135
9136 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
9137
9138         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
9139         a custom control that implements IButtonControl instead of an actual
9140         button.  [Fixes bug #334244]
9141
9142 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9143
9144         * Form.cs: Change SelectActiveControl to internal, we need to call it in
9145         MdiWindowManager.
9146         
9147         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
9148         active control when activate a new mdi window.
9149         
9150         [Fixes bug #330495]
9151
9152 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9153
9154         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
9155         is already added.
9156         [Fixes bug #333617]
9157
9158 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9159
9160         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
9161         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
9162         so we always recalculate the whole document instead of just the new part.
9163         [Fixes bug #325082]
9164
9165 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9166
9167         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
9168         when the mouse was to the left of the first character in the line.
9169
9170 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9171
9172         * TextBox.cs, TextBoxBase.cs: When setting the document's password
9173         character, use the property instead of the variable so that the
9174         UseSystemPasswordChar property is taken into account.
9175         [Fixes bug #333748]
9176
9177 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9178
9179         * FolderBrowserDialog.cs: When a node is right clicked and the "New
9180         folder" contex menu appears, actually add the new folder to it, even
9181         if the node is not currently selected. Still use SelectedNode in case 
9182         there wasn't found a node under the pointer.
9183         Fixes #325452.
9184
9185 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9186
9187         * ListViewItem.cs: When retrieving the focused state, the index check
9188         should be done only when ListView is in virtualmode, as it is an
9189         expensive check for normal mode.
9190
9191 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9192
9193         * ListViewItem.cs: Make the focus state information be stored
9194         in the ListView, not in the items. This is done to match the MS
9195         behaviour for items that are not yet part of a ListView control;
9196         besides that, since just one item can be focused at the same time,
9197         we save a little space in our items.
9198         Fixes part of #331643.
9199
9200 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9201
9202         * ComboBox.cs: When focus is lost, deselect the text. When setting
9203         text of control, select all text. Do not hide selection when control
9204         does not have focus. Fixes bug #333663.
9205
9206 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9207
9208         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
9209         instead of ArgumentException when SelectionLength is set to negative
9210         value. Added same check to SelectionStart. Code formatting.
9211
9212 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9213
9214         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
9215         or SelectionStart. Code formatting.
9216
9217 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9218
9219         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
9220         indicating that there was not a previous drag-and-drop operation going
9221         on.
9222         Fixes part of #325071.
9223
9224 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9225
9226         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
9227         AllowedEffect, don't let the drop operation happen. 
9228         Fixes #32580.
9229
9230 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9231
9232         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
9233
9234 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9235
9236         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
9237         is called.
9238
9239 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9240
9241         * Line.cs: Add a method that finds the tag that contains an x-coord.
9242         * LineTag.cs: Add a method that finds the character at an x-coord using
9243         a binary search, the old way was a linear search.
9244         * TextControl.cs: Change FindCursor to use the above new methods.
9245
9246 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9247
9248         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
9249         value different than AllowedEffect). This should be possible to
9250         indicate that dragging is not possible in some control/area.
9251
9252 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
9253
9254         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
9255         descent internally when font changes instead of outside code being responsible
9256         for setting it.
9257         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
9258         instead of accessing internal variables.
9259
9260 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
9261
9262         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
9263         remove special treatment for ArrangeIcons since it is already arranged.
9264
9265 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9266
9267         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
9268         the Win32 backend uses Color.
9269         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9270         Refactor to store a Color instead of a Brush for Color.
9271
9272 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9273
9274         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
9275         away.  I didn't realize I needed this when I refactored these earlier.
9276
9277 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9278
9279         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
9280         store a Color structure and use the ResPool for back color instead of
9281         holding onto brushes.
9282
9283 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9284
9285         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
9286         [Fixes bug #325592]
9287
9288 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9289
9290         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
9291         to recalculate its size.  Fixes a part of bug #331052.
9292
9293 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9294
9295         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
9296         button.  Fixes a part of bug #331052.
9297
9298 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9299
9300         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
9301         the CreateParams.
9302         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
9303         decorations.
9304         [Fixes bug #330986]
9305
9306 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9307
9308         * TextBoxTextRenderer.cs: Don't make this a static class, as static
9309         doesn't exist in 1.1.  (Thanks jb!)
9310
9311 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9312
9313         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
9314         class to allow us to use different backends on different platforms.
9315         Linux uses the current [Draw|Measure]String backend.  Windows uses
9316         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
9317         of GDI+.  This leads to better looking text and more accurate measurements
9318         on Windows, fixing many of the reported issues.
9319         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
9320
9321 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9322
9323         * FolderBrowserDialog.cs: When running on Windows,
9324         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
9325         since we must match both "C:" and "C:\" forms. A little hackish, but
9326         works.
9327         Fixes #325247.
9328
9329 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9330
9331         * ListView.cs: When calling EndEdit (after editing an item),
9332         create a new instance of LabelEditEventArgs to keep clean the fields
9333         in case we get a new call to BeginEdit; also do Application.DoEvents
9334         to have focus in synch. This is a fix similar to TreeView's #325244.
9335
9336 2007-10-07  Andreia Gaita <avidigal@novell.com>
9337
9338         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
9339         * WebBrowserBase.cs: Added dialog support, calling the
9340           WebBrowserDialogs classes for each specific dialog type.
9341
9342 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9343
9344         * ListView.cs: When the last item is focused and is removed,
9345         move the focus to the previous item (in Items order). This is what MS
9346         does.
9347         Fixes #330415.
9348
9349 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9350
9351         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
9352         instead of the opposite (RemoveAt call Remove). This is a better
9353         approach since we don't need to to a pair of traversals when using
9354         RemoveAt.
9355
9356 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9357
9358         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
9359         check that the node actually has nodes, and if not, move to the
9360         parent node instead. 
9361         Fixes #325265.
9362
9363 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9364
9365         * TreeView.cs: Move the previous change to the general case (to
9366         call Application.DoEvents in cases where the method was called by
9367         different places).
9368
9369 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9370
9371         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
9372         call Application.DoEvents. This is neccessary when we get a call to
9373         BeginEdit from an AfterLabelEdit handler, because the focus always
9374         goes to the TreeView, even if we try to give it to our
9375         LabelEditTextBox. The call do Application.DoEvents seems to
9376         synchronize the focus, basically.
9377         Fixes #325244.
9378
9379 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9380
9381         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
9382         should be false. This also removes some nasty recursive paths. Fixes
9383         part of #325244.
9384
9385 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
9386
9387         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
9388         state to normal. Also resize window when cascading. Fixes #325433. 
9389
9390 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
9391
9392         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
9393         DefaultForeColor, as drawing empty colored lines isn't very useful.
9394         [Fixes the not drawn lines part of bug #324358]
9395
9396 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
9397
9398         * TextControl.cs: Move Line and LineTag classes into separate files to
9399         make things easier to find.
9400         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
9401         * RichTextBox.cs: Capitalize LineTag.Length property access.
9402         - This is purely an organizational/formatting change, no logic changed. -
9403
9404 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9405
9406         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
9407         text is empty.
9408
9409 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9410
9411         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
9412         text is empty.
9413
9414 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9415
9416         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
9417         prevent calling of OnBackColorChanged. Fixes #325321.
9418
9419 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9420
9421         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
9422         because control can be disabled because owner is disabled.
9423
9424 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
9425
9426         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
9427         string.Empty, test failed from previous change.
9428
9429 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
9430
9431         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
9432         is null, not String.Empty.  See bug #323038.
9433
9434 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
9435
9436         * TextControl.cs: Change the margins to match MS a little better.
9437         Still not perfect for X11 due to some DrawString differences, but
9438         is still an improvement over the old stuff.
9439         Partially fixes #324467.
9440
9441 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9442
9443         * FolderBrowserDialog.cs: When using MyComputer as 
9444         RootFolder, let absolute paths be considered as valid ones. Also, use
9445         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
9446         for Windows compatibility.
9447         Partially fixes #325247.
9448
9449 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9450
9451         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
9452         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
9453         method, since it causes the dialog to not select folders directly
9454         under the root path (when setting SelectedPath property).
9455
9456 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9457
9458         * TreeNode.cs: When calling Expand/Collapse and need to call 
9459         ExpandBelow/CollapseBelow respectively, take into account
9460         partially visible nodes (previously Expanding/Collapsing
9461         a partially visible node in the bottom was not updating its +- sign).
9462
9463 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9464
9465         * TreeView.cs: When calling Expand on a TreeNode, and we need to
9466         expand nodes below (ExpandBelow), scroll the entire Viewport
9467         area if the node is above it and not visible (instead of scrolling
9468         the area from node's Bottom, which applies only when the node is
9469         visible).
9470         Fixes #325266.
9471
9472 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9473
9474         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
9475         node in the bottom area (as .Net does). This is done to preserve the
9476         scroll position when ExpandAll is called before handle is created for
9477         the 1.1 profile (bottom area, as opposed to top area in 2.0).
9478         Fixes #324103.
9479
9480 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9481
9482         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
9483         bottom area if we are in fact not using the vertical scroll bar.
9484         Fixes #324824.
9485
9486 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
9487
9488         * Control.cs: Comment out a double buffering optimization that doesn't
9489         take into account invalidates created in OnPaint, causing the control
9490         to never be redrawn.  It would take quite a bit of work to work around
9491         this, but I left it commented with an explanation for later possible
9492         optimization.
9493         [Fixes bug #328681]
9494
9495 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
9496
9497         * Control.cs: Ask parent to perform a layout if control is AutoSize and
9498         the text changes.
9499         * RadioButton.cs: Implement GetPreferredSizeCore.
9500         [Fixes bug #328672]
9501
9502 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
9503
9504         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
9505         corcompare stuffs.
9506
9507 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
9508
9509         * Application.cs: Move the sync context stuff to Run instead of RunLoop
9510         so that it doesn't get uninstalled on modal forms.
9511         * Control.cs: Install a sync context when a control is created.
9512         * WindowsFormsSyncronizationContext.cs: Create a private static control
9513         to invoke on.  This is easier than trying to find a created control we
9514         can use.
9515         [Fixes bug #327608]
9516
9517 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
9518
9519         * Application.cs: Install a WindowsFormsSynchronizationContext in the
9520         run loop, and uninstall it when done.
9521         * WindowsFormsSynchronizationContext.cs: Implement.
9522         [Fixes the common case in bug #327608]
9523
9524 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
9525
9526         * DataGridViewCellCollection.cs: Added argument checks for indexers.
9527         Use case-insensitive lookup of column name in indexer. Code
9528         formatting.
9529
9530 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9531
9532         * TreeNode.cs: When collapsing or expanding a node, check whether its
9533         change will affect the visible area (we were previously doing a
9534         IsVisible check, but that check is not enough since children nodes
9535         could be still visible). Fixes part of #325266.
9536
9537 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
9538
9539         * TreeView.cs: Always select the first node when the TreeView gets
9540         focus if there is no currently selected node.
9541         [Fixes bug #324279]
9542
9543 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
9544
9545         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
9546         node being selected is null.
9547         [Patch from Yves Bastide fixes bug #326858]
9548
9549 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9550
9551         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
9552         whether all the parent nodes are expanded.
9553         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
9554         call RecalculateVisibleOrder if all previous nodes are expanded.
9555         Before that we were doing a IsVisible check, but sometimes the node
9556         is not in the visible area, but _should_already be ready, because of
9557         all previous nodes are expanded. Fixes #325259.
9558
9559 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9560
9561         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
9562         portion of the item is clicked.
9563
9564 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9565
9566         * TextControl.cs: Do not tell the system to move the cursor if the
9567         textbox isn't focused.  Fixes part of bug #322668.
9568
9569 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9570
9571         * ComboBox.cs: When there are no items, do not show the dropdown if
9572         the down arrow is clicked.  Fixes part of bug #322668.
9573
9574 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9575
9576         * ToolStripComboBox.cs: Manually set the size of this control in the
9577         constructor, as it doesn't seem to be the same as DefaultSize.
9578         Fixes a failing monobuild test.
9579
9580 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
9581
9582         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
9583         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
9584
9585 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
9586
9587         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
9588         Desktop.  This lets it work for people who have moved their desktops
9589         from the default location on windows.  For people who have not, both
9590         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
9591
9592 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9593
9594         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
9595         but when the base constructor sets this, the control is null.  Set it
9596         again in the constructor.  Fixes a failing monobuild test.
9597
9598 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9599
9600         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
9601         get called.
9602         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
9603         called.
9604
9605 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9606
9607         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
9608         will handle it themselves.
9609         * ToolStripItem.cs: When deciding what the text of a tooltip should
9610         be, use the Text property instead of the text field.
9611         * ToolStripTextBox.cs: Handle tooltips.
9612         [Fixes bugs #325417 and #325973]
9613
9614 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9615
9616         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
9617         left click.  Fixes the easy part of bug #325969.
9618
9619 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9620
9621         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
9622         bug #325406, but set a minimum for StatusStrip to 22 to keep
9623         bug #325390 fixed.  I think this minimum would have been figured
9624         up automatically if the grip was actually a ToolStripItem, but it
9625         currently is not.
9626
9627 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9628
9629         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
9630         as this is apparently the actual value used by .Net. Also apply
9631         ItemPadding in Details view only, and decrease the general width padding,
9632         to have only the needed. This should fix #324340 in Windows too.
9633
9634 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9635
9636         * ListViewItem.cs: Don't Invalidate item if parent is inside
9637         a BeginUpdate/EndUpdate block. This prevents to have differences
9638         between the ListView and items state, as well as avoid some exceptions
9639         there.
9640         * ListView.cs: Make 'updating' field internal.
9641
9642 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9643
9644         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
9645         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
9646         size if appropriate.
9647         Fixes reopened bug #325414.
9648
9649 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9650
9651         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
9652         * ToolStripItem.cs: Invalidate before and after our new autosize when
9653         text changes.
9654         Fixes reopened bug #325390.
9655
9656 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9657
9658         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
9659         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
9660         #325044.
9661
9662 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9663
9664         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
9665
9666 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9667
9668         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
9669         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
9670         #82734.
9671
9672 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
9673
9674         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
9675         item to select when the ToolStrip is selected.
9676         * ToolStripControlHost: Realign the control when the bounds or visibility
9677         change.
9678         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
9679         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
9680         preferred height.
9681         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
9682         base.OnPaint.  Was causing text not to be drawn.
9683
9684 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
9685
9686         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
9687
9688 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9689
9690         * TreeView.cs: When creating the label edit text box,
9691         set is initially to Visible = false. This is done to
9692         prevent a confusion in the layout which makes it to lose
9693         focus when shown the first time. Fixes part of #82592.
9694
9695 2007-09-13 Andreia Gaita <avidigal@novell.com>
9696
9697         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
9698
9699 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9700
9701         * ToolStrip.cs: Take Margin into account when calculating preferred
9702         size.  Also, allow preferred size to get smaller than the explicit
9703         size.
9704         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
9705         First step towards fixing bug #82747.
9706
9707 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9708
9709         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
9710         full row select background over the plus/minus glyph.  Also, turn
9711         off the focus rectangle for full row select since MS doesn't seem
9712         to ever paint it.  [Fixes bug #81839]
9713
9714 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9715
9716         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
9717         This was causing keyboard opened dropdowns to lose focus.
9718         [Fixes bug #82803]
9719
9720 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9721
9722         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
9723         ClientRectangle instead.  [Fixes bug #82838]
9724
9725 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9726
9727         * SplitContainer.cs: We can't reset Visible on every layout because
9728         someone may have set Visible = false explicitly on a SplitterPanel.
9729         Make sure when we switch orientation the SplitterDistance does not
9730         change.  Fixes two failing tests.
9731
9732 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9733
9734         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
9735         TextRenderer, since the latter is only available in 2.0.
9736
9737 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
9738
9739         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
9740         * SplitContainer.cs: Implement FixedPanel layouting.
9741
9742 2007-09-12  Andreia Gaita  <avidigal@novell.com>
9743
9744         * WebBrowserBase.cs: setup shutdown routine
9745
9746 2007-09-12  Andreia Gaita  <avidigal@novell.com>
9747
9748         * Application.cs: Let keyboard events that are targetted 
9749                 to non-mwf windows hosted inside mwf (as in, webbrowser),
9750                 propagate properly. Fixes keyboard handling on the webbrowser.
9751
9752 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9753
9754         * ListView.cs: When handling MouseUp event and we are 
9755         highligting a node with the mouse right button, don't trigger
9756         Before/AfterSelecting event, since we are not actually selecting
9757         the node.
9758
9759 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9760
9761         * TreeView.cs: When editing a node, modify the edit text box
9762         depending on the text length (as you are typing), like MS does.
9763
9764 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
9765
9766         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
9767         Override GetPreferredSizeCore to perform calculations.  Remove custom
9768         autosize logic.  [Fixes bug #82739]
9769
9770 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
9771
9772         * TextBoxBase.cs: Modified should default to false.
9773
9774 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9775
9776         * Control.cs: Update the anchoring distances even when layout is supspended.
9777         Patch provided by George fixes bug #82805.
9778
9779 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9780
9781         * Control.cs: Provide a setter for ExplicitHeight.
9782         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
9783         remove the hacks in here for requested_height.
9784         [Fixes bug #82749]
9785
9786 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9787
9788         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
9789         Maximum to lower that its current Value caused an ArgumentException by setting
9790         the Value to the new Maximum.
9791
9792 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9793
9794         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
9795         handle moves to the closest tick when it is being dragged.
9796         [Fixes bug #82751]
9797
9798 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9799
9800         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
9801         can't let them count as real items when calculating where to merge in the
9802         user's items.  [Fixed bug #82786]
9803
9804 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9805
9806         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
9807         who want to add a menu item directly onto a toolstrip.
9808         [Fixes bug #82775, part II]
9809
9810 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9811
9812         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
9813         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
9814         don't set it to available.
9815         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
9816         [Fixes bug #82727, part II]
9817
9818 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9819
9820         * StatusStrip.cs: Change item placement to None if not visible.
9821         * ToolStripItem.cs: Invalidate when InternalVisible changes.
9822         These should have been committed to fix 82723, but I missed them.
9823
9824 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9825
9826         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
9827         Click, and that it is only called once.
9828         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
9829         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
9830         dropped down.
9831         [Fixes bug #82775]
9832
9833 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9834
9835         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
9836         to match .Net.
9837         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
9838         instead of 8, just like above. Partially fixes #82734.
9839
9840 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9841
9842         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
9843         fixes #82734.
9844
9845         * ListView.cs: Remove extra space between rows in Details view (match
9846         .Net). 
9847         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
9848         the DefaultFont.
9849
9850 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
9851
9852         * Application.cs: Modified ProductVersion to return value of
9853         AssemblyInformationVersion if available, and fallback to assembly
9854         version. Fixes bug #82746. Code formatting.
9855         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
9856         instead.
9857
9858 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9859
9860         * Control.cs: When updating ZOrder for a child control,
9861         take into account the implicit ones (we need it in our controls
9862         using them). Fixes #82642.
9863
9864 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
9865
9866         * ToolStripItem.cs: Add support for animated images.
9867         [Fixes bug #82726]
9868
9869 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
9870
9871         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
9872         visible.  [Fixes bug #82727]
9873
9874 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9875
9876         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
9877         so we repaint using the new size.  [Fixes bug #82723]
9878
9879 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9880
9881         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
9882         option.  [Fixes bug #81779]
9883
9884 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9885
9886         * TreeView.cs: Override HandleClick because the StandardClick style is
9887         set to false.  According to MSDN (and testing), the click events should
9888         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
9889
9890 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9891
9892         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
9893         the border will disappear.  Fixes reopened #82653.
9894
9895 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9896
9897         * Control.cs: If the control is autosize, and its preferred size changes
9898         when it lays out its children, tell its parent so it can be re-layed out.
9899         Fixing some of the fallout from r85433.
9900
9901 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9902
9903         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
9904         and CheckBox share some code.
9905
9906 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9907
9908         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
9909         the TrackBar, not every mouse move.  [Fixed bug #82718]
9910
9911 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9912
9913         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
9914         under 2.0 rendering.  [Fixes bug #82657]
9915
9916 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9917
9918         * TreeView.cs: If we found a TreeNode to display a context menu, but
9919         it doesn't have one to show, let the TreeView display its menu
9920         instead.  [Fixes bug #82680]
9921
9922 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9923
9924         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
9925         OnPaintInternal instead.  Give the internal TextBox a Border property
9926         so it can draw itself more correctly.  [Fixes bug #82653]
9927
9928 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
9929
9930         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
9931
9932 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9933
9934         * ComboBox.cs: Adjust combobox button state to reflect current state when
9935         back to enabled = true. Fixes first issue of #82654.
9936
9937 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9938
9939         * Control.cs: Fix last patch regression, prevent forms to update zorder when
9940         setting visible property.
9941
9942 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9943
9944         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
9945         fix zorder for controls initially created as non visible. Fixes #82667.
9946
9947 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
9948
9949         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
9950         mimic win32 look. Fixes #82656.
9951
9952 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
9953
9954         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
9955         Stubs for new net 3.5 classes.
9956
9957 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9958
9959         * ListViewItem.cs: In ListViewItemCollection operations calculate
9960         Layout for owner as well as invalidate it. Fixes part of #82642.
9961
9962 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
9963
9964         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
9965         when returning Enabled.  [Fixes bug #82651]
9966
9967 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
9968
9969         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
9970
9971 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9972
9973         * ListView.cs: Put item padding info in a single place
9974         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
9975         columns again.
9976         * ThemeWin32Classic.cs:
9977         * Theme.cs: Likewise.
9978
9979 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9980
9981         * ListView.cs: When a ListViewSubItem instance is invalidated,
9982         invoke Invalidate on parent ListViewItem, not parent ListView.
9983         Fixes #81570.
9984
9985 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9986
9987         * ListView.cs, ListViewItem.cs: corcompare stuffs.
9988
9989 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9990
9991         * BindingMemberInfo.cs: Implement == and != operators.
9992
9993 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9994
9995         * HtmlElementEventArgs.cs: Implement properties.
9996
9997 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9998
9999         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10000
10001 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10002
10003         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10004         Add (string,string,string) to implement the imagekey.  It turns out, we
10005         use the requested imagekey whereas .Net does not.  So I broke ours to match
10006         theirs.  :(
10007
10008 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10009
10010         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10011
10012 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10013
10014         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10015
10016 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
10017
10018         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10019         up-to-date. Fixes bug #82618.
10020
10021 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
10022
10023         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10024         reflect document changes. Fixes #82367.
10025
10026 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10027
10028         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10029         as well as add new ones. This should make work the BackgroundImage
10030         property for ListView again.
10031
10032 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10033
10034         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10035         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10036         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10037
10038 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10039
10040         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10041         IsKeyLocked.
10042
10043 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10044
10045         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10046         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10047
10048 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10049
10050         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
10051         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10052
10053 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10054
10055         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10056
10057 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10058
10059         * GridEntry.cs: Implement GetService.
10060
10061 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
10062
10063         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10064         for label editting, make sure we focus back on the TreeView.
10065         [Fixes bug #82590]
10066
10067 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10068
10069         * ListView.cs: Add some 2.0 overrides.
10070
10071 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10072
10073         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10074         because getter dont returns right value before handle creation. Thanks 
10075         to George. Fixes #82569.  
10076
10077 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10078
10079         * Theme.cs: Revert last patch, it causes error under win32. 
10080
10081 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10082
10083         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
10084         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
10085         logical Desktop rather than the physical file system location. Fixes #82603. 
10086
10087 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
10088
10089         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10090         for the patch. Fixes #82568.
10091
10092 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10093
10094         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10095         methods.
10096
10097 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10098
10099         * ListViewInsertionMark.cs: New stubbed class.
10100
10101 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10102
10103         * FolderBrowserDialog.cs: When adding folder, immediately create the
10104         directory with temporary name and rename the directory when editing
10105         finishes. This matches MS. Ensure the node for the new folder is 
10106         selected and LabelEdit is disabled, when editing is either finished
10107         or cancelled.
10108
10109 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10110
10111         * TreeView.cs: When editing label of node, ensure node is visible.
10112
10113 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
10114
10115         * PropertyGridView.cs: Set the value only if it has changed.
10116
10117 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10118
10119         * ListView.cs: Some more code refactoring to add support sorting
10120         with groups (now for Details view). Remove unused code also.
10121
10122 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10123
10124         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
10125         Not a big fan of reacting immediately to a field in an EventArg, but that's
10126         the way it's done.  (This is part of the previous commit that got left out.)
10127
10128 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10129
10130         * FolderBrowserDialog.cs: Removed need for separate description field.
10131         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
10132         has focus when dialog box is displayed again, regardless of what
10133         button was pressed the previous time. Set RootFolder and SelectedPath
10134         each time dialog box is displayed. This ensures the treeview is
10135         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
10136         when it does not have focus. Added support for more special folders.
10137
10138 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10139
10140         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
10141         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
10142         it resets the edit_args.
10143         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
10144         [Fixes bug #82577]
10145
10146 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
10147
10148         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
10149         button to match MS. Provide more meaningful exception message for
10150         invalid RootFolder value. Use zero-length string when SelectedPath
10151         is set to null. Allow non-rooted paths in SelectedPath, but ignore
10152         them in FolderBrowserTreeView. Allow folders to be created in
10153         RootFolder. Fixes bug #82576.
10154
10155 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10156
10157         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
10158         since we need to take into account the group headers and the margin
10159         between them.
10160         * ListViewGroup.cs: Add a rows field to store the number of rows per
10161         group.
10162
10163 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10164
10165         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
10166           Anyways, let's just follow the lead.
10167
10168 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10169
10170         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
10171         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
10172         controls in GetPreferredSizeCore.
10173         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
10174         [Fixes bug #82488]
10175
10176 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10177
10178         * PrintDialog.cs: Need to instantiate the form variable here too.
10179
10180 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10181
10182         * ListView.cs: Do some reorganization to support sorting in groups,
10183         by doing the layout sequentially in ListView.Items. Also add support
10184         for the Default Group, which should be available for items with no
10185         group assigned.
10186         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
10187         for storing layout info also.
10188         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
10189         collection, as well as providing internal members to do a traversal
10190         including the default group (needed when doing layout/drawing).
10191         * ThemeWin32Classic.cs: When drawing group headers use internal
10192         ListViewGroupCollection members to take into account the default
10193         group.
10194
10195 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
10196
10197         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
10198
10199 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10200
10201         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
10202         been created.  If handle is created, we want arror keys.  If we are editing
10203         a node, we want things like enter, esc, home, end, page up, page down.
10204         Allows Esc to work for FolderBrowserDialog.
10205
10206 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10207
10208         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
10209         they close when ESC is pressed.  Thanks Andy!
10210
10211 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10212
10213         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
10214         This way we can tell if this is a CommonDialog provided with mono, or one
10215         that is being implemented outside by a developer.  If it is an external one,
10216         the developer is responsible for showing their own form.  We were showing
10217         our blank form after the developer showed his.
10218         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
10219         PageSetupDialog.cs: Instantiate form variable in our constructor.
10220         [Fixes bug #82531]
10221
10222 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10223
10224         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
10225         and always return true.  [Fixes bug #81616]
10226
10227 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10228
10229         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
10230         TextBox.  [Fixes bug #82549]
10231
10232 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
10233
10234         * FileDialog.cs: When Save/Open is clicked and no filename is selected
10235         or entered then do not close the dialog. Fixes bug #82539. Removed
10236         CWLs.
10237
10238 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
10239
10240         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
10241         code to this method. It is calling every time filter changes. This method
10242         will help to fix the bug #80887.
10243
10244 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10245
10246         * CheckBox.cs: Implement AutoSize calculation.
10247
10248 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10249
10250         * CheckBox.cs: Use new 2.0 rendering for 2.0.
10251         * Theme.cs: Method declarations for 2.0 rendering path.
10252         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
10253
10254 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10255
10256         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
10257
10258 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10259
10260         * ListViewGroupCollection.cs: Implement AddRange the right way, to
10261         only call Redraw on the parent one time.
10262
10263 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10264
10265         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
10266           GetClipboardContent.
10267         * DataGridViewCell.cs: Implemented GetClipboardContent,
10268           GetEditedFormattedValue, GetFormattedValue.
10269         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
10270
10271 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
10272
10273         * TableLayoutStyleCollection.cs: corcompare fix.
10274
10275 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10276
10277         * DataObject.cs: Implemented retrieval of convertible / not convertible
10278           objects.
10279
10280 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
10281
10282         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
10283         ourselves.  This ensures the entire old bounds are repainted, in case our new
10284         size is smaller.  [Fixes bug #82518]
10285
10286 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
10287
10288         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
10289         flag to make fast handle of mouse events, without this the mouse move is
10290         handled in some manner, whether it is a mouse move or not. Fixes #81588.
10291
10292 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10293
10294         * ListView.cs: When doing layout calculations don't use a ref
10295         param to keep the current item; instead use its Index value (this 
10296         is specially important when doing the layout with Groups
10297         and Items being sparse). Also don't take into account items added to
10298         the Group but not yet added to the main ListView.Items collection.
10299
10300 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10301
10302         * ListViewGroupCollection.cs: Forgot to mimic an issue
10303         in the indexer (don't assign the ListView owner for new values).
10304
10305 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10306
10307         * ListViewGroupCollection.cs: Make the string indexer use
10308         the int based indexer to re-use code, instead of duplicate the code.
10309         Also Redraw as needed and take into account null values.
10310
10311 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
10312
10313         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
10314         [Fixes bug #82481]
10315
10316 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
10317
10318         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
10319         when other buttons are clicked or navigated to.
10320
10321 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10322
10323         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
10324           it's XplatUIX11 that attaches them.
10325
10326 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10327
10328         * DataGridView.cs: If a column has been added, recreate the editing row.
10329           Fixes #82226.
10330
10331 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10332
10333         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
10334           of the tag to draw. Makes disappearing text show up again.
10335
10336 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10337
10338         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
10339           Contents. Fixes #82487.
10340
10341 2007-08-19  Andreia Gaita  <avidigal@novell.com>
10342
10343         * Added HtmlElement.cs, HtmlElementCollection.cs, 
10344           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
10345           
10346 2007-08-19  Andreia Gaita  <avidigal@novell.com>
10347
10348         * BindingSource.cs: Implement this, dispose and getenumerator.
10349         * DataGridViewRowCollection.cs: Move the InvalidOperationException
10350         out of AddInternal, throw it only on public Add calls. The 
10351         UsingWebBrowser sample was blowing up with this when setting the
10352         DataSource after adding DataBindings, so it's likely that .net
10353         only throws this exception when Add is called directly. 
10354         
10355         * ToolStripControlHost.cs: Return the hosted control's text
10356         property, and not the ToolStripItem one (it would always return
10357         the initial value).
10358         
10359         * HtmlDocument.cs: Implement GetElementById and All
10360         * WebBrowser.cs: Remove exception on set_DocumentStream.        
10361
10362 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10363
10364         * Form.cs: Fix the max and min value for opacity (0~1).
10365
10366 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10367
10368         [Fixes #80118]
10369         * DataGridTableStyle.cs: Default header font is now null, on getter it 
10370         returns datagrid font when is null. On setter permits null.
10371
10372         * DataGrid.cs:
10373         - When ResetHeaderFont set header font to null.
10374         - On EndInit set grid_style.DataGrid.
10375
10376 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10377
10378         * TabControl.cs: Fix regression in default padding x.
10379
10380 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10381
10382         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
10383
10384 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10385
10386         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
10387         not 2. Fixes #82229.
10388
10389 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10390
10391         * TabControl.cs: Fix tab size when image height is less than text height.
10392         Partially fixes #81837.
10393
10394 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10395
10396         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
10397         "alt + tab". It works only for Win32, for X11 theres no way to remove window
10398         from taskbar and keep it on "alt_tab". Fixes #81722.
10399
10400 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10401
10402         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
10403         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
10404         Fixes #80877 and #79418.
10405
10406 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10407
10408         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
10409         between position and one of the screen borders. Fixes #82349.
10410
10411 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10412
10413         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
10414         the MessageBox in the taskbar. Fixes #82457.
10415
10416 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10417
10418         * MessageBox.cs: Fix form size when icon is set and text height is bigger
10419         than icon. Fixes #82468.
10420
10421 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10422
10423         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
10424         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
10425           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
10426           Refactored HandleNCCalcSize somewhat to avoid code duplication.
10427         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
10428           FormBorderStyle to decide if we're calculating a new size from the
10429           client size or not. CreateParams: Don't fake tool windows, only the X11
10430           backend manages toolwindows manually.
10431
10432 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10433
10434         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
10435         ObjectDisposedException.
10436
10437 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10438
10439         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
10440         in OnLoad should not have any effect.  [Fixes bug #82470]
10441
10442 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10443
10444         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
10445         paint for controls that create their own ToolTipWindow instead of
10446         going through ToolTip.
10447
10448 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10449
10450         * ToolTip.cs: Make Hide internal instead of public to match MS API.
10451
10452 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10453
10454         * ListViewGroupCollection.cs: Use generic List instead of an
10455         ArrayList, since this collection is 2.0 only.
10456
10457 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
10458
10459         * ToolTip.cs (Hide): Made public to make the build work (should
10460         this not be public?).
10461
10462 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10463
10464         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
10465         ToolTipWindow.
10466         * ToolTip.cs: Add an internal Visible property to facilitate transition.
10467
10468 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10469
10470         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
10471         PopupEventHandler.cs: Make these internal for 1.1.
10472         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
10473         use ToolTipWindow internals.
10474         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
10475         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
10476
10477 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10478
10479         * X11Dnd.cs: Add a null check.
10480
10481 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10482
10483         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
10484           nothing else succeeds. Fixes #82453.
10485
10486 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10487
10488         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
10489           rectangle if we're painting to another window than the one the paint
10490           message was generated on. Simplify the code somewhat, which makes
10491           PaintEventEnd also simpler.
10492
10493 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10494
10495         * Control.cs: When changing parent of a form, let the form decide whether
10496           XplatUI.SetParent should be called or not.
10497         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
10498           recreating the handle. If the new parent's handle isn't created, don't
10499           recreate our handle, just destroy it. CreateParams: Check if the
10500           parent's handle is created before fetching it.
10501
10502 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10503
10504         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
10505           Update calls to PaintEventStart/End to take a Message argument.
10506         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
10507           take a Message argument.
10508         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
10509           Message argument, and handle the case where we don't paint to the window
10510           for which the paint message was generated.
10511
10512 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10513
10514         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
10515           Marshal.GetLastWin32Error. Plug nasty memory leak in
10516           PaintEventStart/End, we were creating a DC we weren't releasing.
10517
10518 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10519
10520         * ListView.cs: Add Groups support in Details view. Also have a small
10521         method to do the layout of the group header. Don't use a separate
10522         method to do the groups calculation in Icons view, since our methods
10523         are now a little simpler.
10524         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
10525         `Bounds'.
10526         * ThemeWin32Classic.cs: Likewise.
10527
10528 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
10529
10530         * Application.cs: Add FilterMessage method and rework our message loop
10531         logic to use it.
10532
10533 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
10534
10535         * Application.cs: Add some methods and stub a few methods that are
10536         pretty much never used.
10537
10538 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
10539
10540         * TreeNode.cs: Add some serialization methods.
10541
10542 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10543
10544         * ListView.cs: In ListViewItemCollection have a 
10545         'is_main_collection' field to not modify ListViewItem.ListView
10546         when using it as ListViewGroup.Items (and not ListView.Items)
10547         and also don't modify selection state (.Net behaviour). 
10548         Instead, set group for items contained in a ListViewGroup.Items collection.
10549         * ListViewItem.cs: Simplify some code in Group setter.
10550         * ListViewGroup.cs: use the new .ctor to pass the current instance
10551         to the ItemsCollection.
10552         * ListViewGroup.cs: Set the ListView property for ListViewGroup
10553         instances when adding/removing. Also make Remove use RemoveAt, which
10554         should perform better.
10555
10556 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10557
10558         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
10559         that crept into the 1.1 profile.
10560
10561 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10562
10563         * ToolBarButton.cs: Implement ImageKey.
10564
10565 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10566
10567         * ToolBar.cs: Implement ScaleControl/ScaleCore.
10568
10569 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10570
10571         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
10572           created, it might have gotten destroyed since we last checked. Fixes
10573           #82405.
10574
10575 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
10576
10577         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
10578         tooltip will hide when mouse is moved off the control.
10579         [Fixes bug #82407]
10580
10581 2007-08-11 Andreia Gaita <avidigal@novell.com>
10582
10583         * WebBrowserBase.cs, WebBrowser.cs: add implementation
10584         using Mono.Mozilla for loading and navigating webcontrol
10585         with xulrunner.
10586         The initial implementation was done on 
10587         /trunk/mozembed/tests/browser , and copied here.
10588
10589 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
10590
10591         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
10592         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
10593
10594 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10595
10596         * DataGridView.cs: Add support for an editing row. Fixes #82226.
10597           RowTemplateFull: throw an exception if a column doesn't have a template.
10598         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
10599           add the row just before it.
10600         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
10601           selected.
10602         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
10603           DataGridView field to be able to reach the grid's editing row.
10604
10605 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10606
10607         * ToolTip.cs: If the control's handle hasn't been created when it has a
10608         tooltip set on it, don't check to see if we need to show the tooltip.  This
10609         check was causing the control's handle to be created.
10610         [Fixes bug #82399]
10611
10612 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10613
10614         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
10615                                         1.1             2.0
10616         Handle Not Created      -1              0
10617         Handle Created          0               0
10618         [Fixes bug #82371]
10619
10620 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10621
10622         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
10623         [Fixes bug #82348]
10624
10625 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
10626
10627         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
10628         * ToolTip.cs: Implement some properties and owner draw.
10629
10630 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10631
10632         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
10633           show them again, since setting visibility causes a paint, causing an
10634           endless loop (instead use a temporary and set it all when it's known if
10635           they should be shown or not). Fixes #79265.
10636
10637 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10638
10639         * DataGridView.cs: Only do a full column/row selection if a header was
10640           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
10641           isn't pressed, deselect everything before selecting something.
10642
10643 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10644
10645         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
10646           behaviour according to bug #81075 - they are returned in the order they
10647           are selected. Fix HitTest to check if the point is within any of the
10648           headers. Allow for row/column selection when in ColumnHeader or
10649           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
10650           the row and column to call when their selected state changes, and
10651           updated selected_[rows|columns] whenever SetSelected* is called.
10652         * DataGridViewBand.cs: Initialize isRow correctly. Call
10653           SetSelected[Row|Column]CoreInternal when the selected state changes, and
10654           add a SelectedInternal to avoid StackOverflows.
10655         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
10656           ReadOnly no matter what.
10657         * DataGridViewSelectedColumnCollection.cs,
10658           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
10659           the items in reverse order (just as MS does...)
10660
10661 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
10662
10663         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
10664         itself, not part of a mnemonic.  [Fixes bug #82378]
10665
10666 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10667
10668         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
10669         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
10670           the DGV, the column, the row, or the cell itself is readonly.
10671
10672 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
10673
10674         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
10675         OSVersion.Platform.
10676         * FileDialog.cs: Same.
10677         * TextRendered.cs: Same.
10678         * FolderBrowserDialog.cs: Same.
10679         * TextBoxBase.cs: Same.
10680         * Application.cs: Same.
10681         * Cursors.cs: Same.
10682         * ThemeClearLooks.cs: Same.
10683
10684 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
10685
10686         * XplatUI.cs: Added RunningOnUnix property to be used by controls
10687         instead of duplicating these checks everywhere.
10688         * FileDialog.cs: Use case-insensitive comparison for populating the
10689         DirComboBox when not running on unix. Fixes bug #82385.
10690         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
10691         "Look in".
10692
10693 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10694
10695         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
10696           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
10697           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
10698           cell and column selection with ctrl and shift pressed. Call the correct
10699           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
10700           the corresponding virtual method (PaintBackground to paint background,
10701           etc).
10702         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
10703           either the column, row or the cell itself is selected.
10704         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
10705           OnRowsAdded.
10706         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
10707           here. When the row is selected, don't select all cells. Each cell now
10708           queries the row to see if the row is selected.
10709
10710 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10711
10712         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
10713           SelectionMode.
10714
10715 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10716
10717         * ListView.cs: In ListViewItemsCollection check that owner is
10718         not null before trying to access it (this happens quite often
10719         using Groups). Also don't duplicate calls by calling CollectionChanged
10720         method.
10721
10722 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10723
10724         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
10725         when we are dismissed to clear keyboard mnemonics.
10726         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
10727         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
10728         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
10729         was activated by keyboard or the OS tells us to always draw them.
10730         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
10731         [Fixes bugs #82376, #82377]
10732
10733 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10734
10735         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
10736         shot at having it because Alt was pressed.
10737         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
10738         the first real menu item.
10739         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
10740         a mnemonic if Text is null.
10741         [Fixes bug #82374]
10742
10743 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10744
10745         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
10746         search do check whether the item is already contained in the
10747         collection or not; instead check if the owner of the item is the same
10748         as ours. Also, remove a redundant check in the same method. 
10749
10750 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10751
10752         * Control.cs: Allow the clip region to be set back to null.
10753         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
10754         [Fixes button still showing up in bug #82370 when Show Through is turned off]
10755
10756 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10757
10758         * GridEntry.cs: Add a null check.
10759         * PropertyGrid.cs: When checking for existing grid entries, ignore category
10760           entries. Fixes #82297.
10761
10762 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
10763
10764         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
10765         for 2.0.
10766
10767 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
10768
10769         * ListBox.cs: Implement ScaleControl.
10770
10771 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10772
10773         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
10774           have a menu strip.
10775         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
10776           parent has a menu strip. Fixes #81689.
10777
10778 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10779
10780         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
10781           moments, so apply some fuzzy logic to determine if the mouse is still
10782           inside a control or not. Fixes #82288 (for the third time).
10783
10784 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10785
10786         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
10787           Don't create the child if it has been disposed already (may happen if
10788           the user closes the form the Load event).
10789
10790 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10791
10792         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
10793           #82288.
10794
10795 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10796
10797         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
10798           might call us after we've been destroyed, in which case our own private
10799           parent field is null. Fixes #82326.
10800
10801 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
10802
10803         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
10804         check for setting the dropdown's owner.
10805
10806 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
10807
10808         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
10809         before removing system menu items.
10810
10811 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
10812
10813         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
10814         folding.
10815         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
10816         folding.
10817         * ToolStrip.cs: Add a null check to mnemonics.
10818         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
10819         no ConnectedArea.
10820         [Fixes most of bug #81689]
10821
10822 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10823
10824         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
10825
10826 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10827
10828         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
10829
10830 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10831
10832         * DataGridViewCell.cs: EditType: returns
10833           DataGridViewTextBoxEditingControl always.
10834
10835 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
10836
10837         * TextRenderer.cs: Remove the LineLimit string format flag from the
10838         DrawString fallback method so that things like buttons that aren't
10839         tall enough to draw a full line will still draw part of the text.
10840         [Fixes part of bug #82272]
10841
10842 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10843
10844         * DataGridView.cs: Implemented AutoResizeColumn(s).
10845         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
10846           according to the Alignment.
10847         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
10848           Implement alignment and padding when painting.
10849         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
10850           exists.
10851         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
10852           way.
10853         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
10854           a column is added.
10855
10856 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10857
10858         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
10859         which is internal.
10860
10861 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10862
10863         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
10864         hide GetPreferredSize from public API.
10865         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
10866         * ToolStripItem.cs: Stub out drag and drop methods and events.
10867         * ToolStripManager.cs: Stub out Save/LoadSettings.
10868         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
10869         * ToolStripPanel.cs: Fix corcompare error.
10870         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
10871         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
10872         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
10873
10874 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10875
10876         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
10877         bounds height instead of PreferredHeight.  Puts things back the way 
10878         they were for height while still fixing the width.  Fixes broken unit
10879         tests.
10880
10881 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10882
10883         * Binding.cs: Implement 2.0 constructors and add a null check.
10884
10885 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10886
10887         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
10888           and fix row index (off by one).
10889
10890 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10891
10892         * PropertyGridView.cs: Remove debug output.
10893
10894 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10895
10896         * Control.cs: We need to reset the is_created flags when the handle is
10897           destroyed. Fixes #82187.
10898         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
10899           client coordinates if the window doesn't have a parent.
10900           Win32GetParent returns the parent or the owner, and for top-level
10901           windows with no parent (but with an owner) we were calculating the
10902           location from the location of the owner.
10903         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
10904           form has been disposed.
10905         * MdiClient.cs: Add a null-check.
10906
10907 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
10908
10909         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
10910         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
10911         so we can provide an implementation that returns the current width
10912         and preferred height.  Allows anchor = right to work with TextBox 2.0.
10913         [Fixes bug #82233]
10914
10915 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10916
10917         * ListView.cs: Add support for navigating items in Groups mode, by
10918         creating a big matrix containing all rows and cols of all groups. When
10919         are in other mode than Details, pressing Up should have a similar
10920         behaviour as that one of Down (moving to the next available column if
10921         current one doesn't have an item in the requested row). Also, don't
10922         proceed to use groups if ShowGroups is false.
10923         * ListViewGroup.cs: Add an internal int field to store the starting
10924         row of the group (used by the big matrix used for navigating the
10925         ListView).
10926         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
10927         false.
10928
10929 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
10930
10931         * ToolStripDropDown.cs: When we do Show, start with the 
10932         DefaultDropDownDirection, but if our popup menu is going to off-screen,
10933         modify the direction to keep it on screen.  [Fixes bug #82210]
10934
10935 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
10936
10937         * FileDialog.cs: Accept any FilterIndex value, and store it
10938         unmodified. When FilterIndex is less than 1, or greater than number
10939         of filters, then default to first filter. Only add filter extension to
10940         file if user did not specifiy an extension. When type of dialog is
10941         OpenFileDialog and DefaultExt is set, then only use filter extension
10942         if: CheckFileExists is true and no file wih the default extension
10943         exists, or CheckFileExists is false, and user specified file does not
10944         exist. When CheckFileExists is true, then add first extension of 
10945         selected filter that matches existing file. Perform checks for
10946         existing file, overwrite and create after extension has been added to
10947         file name. When CheckFileExists is true and type is SaveFileDialog,
10948         then only consider first filter extension if DefaultExt is set.
10949         When CheckFileExists is true, then ignore DefaultExt if file with that
10950         extension does not exist. Also perform check for existing file when
10951         type is SaveFileDialog. Changed some field to constants.
10952
10953 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10954
10955         * ListView.cs: Take into account the region used by header
10956         control when doing the vertical scroll (this way we invalidate
10957         the precise area, and don't get any dirty one).
10958
10959 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
10960
10961         * FileDialog.cs: Check for valid filterIndex on button open/save. 
10962         Fixes #82184.
10963
10964 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10965
10966         * ListView.cs: Update some layout calculations in details view
10967         and clean the code in a pair of assignations.
10968
10969 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10970
10971         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
10972         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
10973         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
10974         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
10975
10976 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10977
10978         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
10979         performance of thread-safe Graphic methods.  (Thanks rolf!)
10980
10981 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10982
10983         * ListView.cs: When doing the layout calculations, don't calculate
10984         scroll bars before handle is created. This is unnecessary and also
10985         calculating them before handle creation item causes a number of random
10986         bugs (which begin to appear after Chris' big patch for handle creation
10987         fixes). 
10988
10989 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10990
10991         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
10992         for things that don't have a Graphics object.  Currently, things just use
10993         the static Hwnd.bmp_g which is not thread safe.
10994
10995 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10996
10997         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
10998           dialog. Fixes #82187.
10999
11000 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11001
11002         * DataGridViewElement.cs: Initialize state.
11003         * DataGridView.cs: Forward a few Mouse events to cells. Add
11004           GetRowInternal and GetCellInternal that doesn't unshare rows.
11005           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11006           don't use the index, but look it up. Add
11007           DataGridViewControlCollection.RemoveInternal to remove controls
11008           that Remove won't remove (scrollbars, edit control).
11009         * DataGridViewColumn.cs: Initialize State correctly.
11010         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11011           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11012           implementing this.
11013         * DataGridViewRowCollection.cs: Implemented shared rows.
11014         * DataGridViewRow.cs: Throw exceptions as MS do.
11015         * DataGridViewCell.cs: A few properties are implemented by a
11016           Get<Property> method, so move implementation there and remove the
11017           NIEX in the method. Add a bunch of OnXInternal that DataGridView
11018           calls when necessary.
11019         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11020           complicates matters.
11021         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11022           unshare any rows.
11023
11024 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11025
11026         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11027         the children controls.  Instead, we will just set up the proper docking for the
11028         children controls so we don't have to worry about it.  [Fixes bug #82188]
11029
11030 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11031
11032         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11033         canceling and correct Before/AfterLabelEdit properties as layed out in bug
11034         81847.  [Fixes bug #81847]
11035
11036 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11037
11038         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11039         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
11040         an explicit size based on the design-time size of the text.  Since our fonts
11041         may not match this explicit size, we tend to cut off the ends of people's labels.
11042
11043 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
11044
11045         * Menu.cs: Add some missing methods to MenuItemCollection.
11046
11047 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11048
11049         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11050         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11051         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11052         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11053         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11054         * DataGridViewElement.cs: State defaults to Visible.
11055         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11056         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11057
11058 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11059
11060         * Control.cs: Minor 1.1 corcompare fix.
11061
11062 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11063
11064         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11065         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11066
11067 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11068
11069         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11070           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11071           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11072           DataGridViewSelectedColumnCollection.cs,
11073           DataGridViewSelectedRowCollection.cs: Corcompare work.
11074
11075 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11076
11077         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
11078         it is autoset by VS2005 designer and the effect is barely noticeable.
11079
11080 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11081
11082         * TreeView.cs: Implement HitTest.
11083
11084 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11085
11086         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11087           manually adding and removing the control from the Controls
11088           collecftion.
11089         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11090           EditingControlInternal property that tracks the editing control.
11091           Always keeping the scrollbars in the Controls collection, as MS
11092           testing confirms is the right behaviour.
11093
11094 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11095
11096         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11097           according to MSDN and new test.
11098
11099 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11100
11101         * TreeNode.cs: Implement ToolTipText.
11102         * TreeView.cs: Implement tooltips, NodeMouse* events.
11103
11104 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11105
11106         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
11107
11108 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11109
11110         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
11111         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
11112
11113 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
11114
11115         * Control.cs, Form.cs, ContainerControl.cs,
11116         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
11117         for misc properties.
11118
11119 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11120
11121         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
11122         * TreeView.cs: Implement StateImageList.
11123
11124 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11125
11126         * Form.cs: Don't check if the current form is the active form before
11127           activating it. Fixes #81904.
11128
11129 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11130
11131         * Form.cs: Don't check if the current form is the active form before
11132           activating it. Fixes #81904.
11133
11134 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11135
11136         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
11137
11138 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11139
11140         * Form.cs: Don't try to position the form after loading if the form was
11141           disposed. Fixes #81969.
11142
11143 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11144
11145         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
11146           properties. Had to change ToolBar into ToolStrip, which required a
11147           few #ifs.
11148
11149 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11150
11151         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
11152           resized, fixes part of #79829 (vertical lines in toolbar).
11153           PropertyGrid: Refactored Populate* to something that's easier to
11154           follow at least for me, as well as splitting it up into several new
11155           methods, required to update only subitems when something has
11156           changed by a popup editor or listbox. Don't use events to check
11157           when any values are changed, since the events are unreliable (we're
11158           changing the objects the events are registered with, and if the
11159           event handling requires the objects to be immutable (objects stored
11160           in hashtables for instance), the events will never be raised).
11161         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
11162           everytime we change a value, since events are unreliable.
11163           DropDownButtonClicked: For the same reason don't compare objects to
11164           check if it has changed or not, it would require all objects to
11165           derive Equals. Fix dialog location on windows, MS is doing weird
11166           things when creating parented forms.
11167         * GridEntry.cs: Add a SelectedObject setter.
11168
11169 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11170
11171         * TreeNode.cs: Add some corcompare attributes.
11172         * TreeNodeCollection.cs: Implement 2.0 stuffs.
11173         * TreeView.cs: Implement some 2.0 stuffs.
11174
11175 2007-07-18  Andreia Gaita  <avidigal@novell.com>
11176
11177         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
11178         for moma.
11179
11180 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11181
11182         * ListBox.cs: Implement custom tab offsets.
11183
11184 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11185
11186         * ToolStripContentPanel.cs: Support System renderer.
11187         * ToolStripControlHost.cs: Set RightToLeft to default to No.
11188
11189 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11190
11191         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
11192
11193 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11194
11195         * CheckBox.cs: Chain TextAlign to base implementation instead of
11196         maintaining another one.
11197
11198 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11199
11200         * ButtonBase.cs: Fix an incorrect string constant.
11201
11202 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11203
11204         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
11205         of creating one for measuring strings.
11206
11207 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11208
11209         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
11210         Implement MaxItemSize.
11211
11212 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11213
11214         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
11215         for DeviceContext.  Instead, use the static one available in Hwnd.
11216         Informal tests show this saves about 500k on formtest.exe.
11217
11218 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11219
11220         * ContainerControl.cs: Implement 2.0 AutoScaling.
11221
11222 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11223
11224         * ComboBox.cs: Work around bug #82120 (bug in mcs).
11225
11226 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11227
11228         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
11229         Darken the focus color.
11230
11231 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11232
11233         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
11234         for the checkbox.
11235         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
11236         X, Y instead of a rect for drawing text.
11237         - For ControlPaint.DrawCheckBox, center the check a little better when the
11238         checkbox is odd width.  When drawing a flat checkbox, use a white background
11239         when state != inactive.
11240         [Fixes bugs #82097, 82100]
11241
11242 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
11243
11244         * ListControl.cs: When changing CurrencyManager, disconnect event
11245         handlers from previous one. Fixes bug #81771. Code formatting.
11246
11247 2007-07-15  Andreia Gaita <avidigal@novell.com>
11248
11249         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
11250         full preview invalidation from layout invalidation, and only invalidate
11251         the layout when setting zoom or other properties. Invalidation should
11252         always be done even when resetting properties with the same values as
11253         what is there. Fixes #81744 and #79830.
11254
11255 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11256
11257         * ListView.cs: Implement initial support for Groups. Split some of the
11258         LayoutIcons code to render a partial list of the items (needed by
11259         items contained in ListViewGroup instances). Let the
11260         ListViewItemsCollection.ListView property be modifiable (needed when
11261         using Groups, too).
11262         * ListViewGroup.cs: Use a Bounds property rather than a Location
11263         one. Also invalidate the bounds when they get changed.
11264         * ThemeWin32Classic.cs: When drawing items, also draw the group header
11265         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
11266         method as well.
11267
11268 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11269
11270         * ListView.cs: When space gets pressed and CheckBoxes is true, 
11271         don't invoke the Begin and EndUpdate methods. We are generating 
11272         a redraw of the entire control without need to do so.
11273
11274 2007-07-13  William Holmes <billholmes54@gmail.com> 
11275
11276         * Control.cs: Changing logic in FindFlatForward and 
11277           FindFlatBackward to handle multiple Controls with 
11278           the same TabIndex.  
11279           This fixes bug 81687.
11280
11281 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
11282
11283         * OSFeature.cs: Enable IsPresent.
11284
11285 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11286
11287         * Control.cs: Don't do anything in WmShowWindow if the control has been
11288           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
11289           control is created, put on a form, the control is disposed (the
11290           form is never shown), and then we get a MapNotify, triggering a
11291           WM_SHOWWINDOW.
11292         * Form.cs: Exclude the current form when sending Deactivate to all
11293           MdiChildren.
11294         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
11295           there was a race condition because assigning the handle raises
11296           events, we can get more messages, therefore trying to assign the
11297           handle again, which would fail if any of those event handlers
11298           closed/disposed the control.
11299
11300 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11301
11302         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
11303
11304 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
11305
11306         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
11307         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
11308
11309 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11310
11311         * DateTimePicker.cs: If there's no part format specifier, return an
11312           empty string.
11313
11314 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
11315
11316         * FlatButtonAppearance.cs: Throw NotSupportedException for a
11317         Transparent BorderColor.
11318
11319 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11320
11321         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
11322           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
11323           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
11324           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
11325           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
11326           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
11327           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
11328           Remove warnings.
11329         * X11Structs.cs: Remove warnings, add ToString implementations.
11330
11331 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11332
11333         * XplatUIX11.cs: Translate min/max size according to the actual min/max
11334           size, and not the current size. Fixes #81798.
11335
11336 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11337
11338         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
11339           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
11340           to the control yet).
11341
11342 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11343
11344         * PropertyGridTextBox.cs: Add a method that sends any forwarded
11345           mousedowns to the contained textbox.
11346         * X11Structs.cs: More ToString implementation.
11347         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
11348           #81791.
11349
11350 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11351
11352         * PropertyGridView.cs: Add a null-check, fixes a few tests.
11353
11354 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
11355
11356         * TableLayoutPanelCellPosition.cs: TypeConverter.
11357
11358 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11359
11360         [ Fixes #79761]
11361         
11362         * PropertyGridTextBox.cs: Propagate any color changes to all contained
11363           controls.
11364         * PropertyGridView.cs: A few color fixes.
11365
11366 2007-07-10  Jackson Harper  <jackson@ximian.com>
11367
11368         * TextControl.cs: Remove some old unused text formatting stuff.
11369
11370 2007-07-10  Jackson Harper  <jackson@ximian.com>
11371
11372         * TreeView.cs: Update full row select invalidation to match the
11373         newer DrawSelection... method.
11374         - Make sure to invalidate the entire width when selecting a new
11375         node, if we have full row selection enabled.
11376
11377 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11378
11379         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
11380           display of properties again.
11381
11382 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
11383
11384         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
11385         to existing collections.
11386
11387 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11388
11389         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
11390         that changed between 1.1 and 2.0.
11391
11392 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11393
11394         * PowerStatus.cs: Added.  This is just a data class, it is filled
11395         in by SystemInformation.
11396
11397 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11398
11399         * Message.cs: Add op_Equality and op_Inequality.
11400
11401 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11402
11403         * MenuStrip.cs: Finish corcompare work.
11404
11405 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11406
11407         * LinkArea.cs: Add op_Equality and op_Inequality.
11408
11409 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11410
11411         * Application.cs: Add MessageLoopCallback delegate.
11412
11413 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11414
11415         * ListBox.cs: First set of 2.0 stuffs.
11416
11417 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11418
11419         * Control.cs: Make an internal Height property we can override
11420         without messing up the public API.
11421         * ListBox.cs: Override HeightInternal to always return the size
11422         the user set.  [Fixes bug #80466]
11423
11424 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
11425
11426         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
11427         paint cell borders if we haven't calculated where they go yet.
11428         [Fixes bugs #82040 and #82041]
11429
11430 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11431
11432         * ListView.cs: In Details view, set the location of item_control
11433         in the (0,0) position (and the header_control is thus on the
11434         item_control). This way the Bounds of the Items are relative to the
11435         ListView control (before this, they had a Bounds value without the
11436         header_control offset, which wasn't matching .Net). Fixes #82004.
11437
11438 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11439
11440         * ListControl.cs: When DataSource is set to null, pass an empty
11441         array of object to SetItemsCore. This is done to clean the items
11442         in the ListContol children. Fixes #81788.
11443
11444 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11445
11446         * ListControl.cs: Add 2.0 stuffs.
11447
11448 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11449
11450         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
11451         Refresh is overkill for just about every repaint request.
11452
11453 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11454
11455         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
11456         so remove my custom Get method and fix the property getter.
11457
11458 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11459
11460         * Label.cs: DefaultMargin for 2.0.
11461
11462 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11463
11464         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
11465         reported issue where other controls with mnemonics would steal strokes
11466         from a selected ComboBox.
11467
11468 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11469
11470         * ScrollOrientation.cs: Make internal for 1.1.
11471         * ScrollEventArgs.cs: Add 2.0 stuffs.
11472
11473 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
11474
11475         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11476         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
11477         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
11478
11479 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11480
11481         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
11482
11483 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11484
11485         * ListView.cs: Implement the so-incredibly broken 2.0 
11486         VirtualItemsSelectionRangeChanged event.
11487
11488 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11489
11490         * ListView.cs: When enter is pressed and selection is non empty,
11491         an OnItemActivate event must be fired.
11492
11493 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11494
11495         * ListView.cs: Store the FocusedItem information as an
11496         int instead of a ListViewItem (needed by VirtualMode).
11497         Update the calls to SetFocusedItem to pass an index instead of
11498         an item.
11499         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
11500         the Focused state from the owner ListView. 
11501
11502 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11503
11504         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
11505         property. Also, invalidate previous focused item in the mentioned
11506         property (match .Net).
11507
11508 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11509
11510         * ListView.cs: Implement 2.0 FocusedItem property setter.
11511
11512 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11513
11514         * ListView.cs: Implement 2.0 TopItem property setter.
11515
11516 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
11517
11518         * StatusStrip.cs: The default renderer is System.
11519         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
11520         if the user specifies it.
11521         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
11522         if we are ManagerRenderMode.
11523         * ToolStripMenuItem.cs: Calculate our text color better.
11524         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
11525         from Professional to the base class based off working with the System renderer.
11526         * ToolStripSystemRenderer.cs: Added.
11527
11528 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11529
11530         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
11531
11532 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
11533
11534         * ToolTip.cs: Implement 2.0 Tag property.
11535
11536 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11537
11538         * ListView.cs: Implement 2.0 HitTest methods.
11539
11540 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11541
11542         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
11543         item is under the pointer or not (sugar). Also remove the TODO
11544         regarding to the cursor changes in OneClick activation.
11545         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
11546         the subitems use the parent's HotFont if UseItemStyleForSubItems is
11547         true; otherwise don't show the underline style.
11548
11549 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11550
11551         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
11552         the code to retrieve the item at position only one time. Also
11553         change cursor when Activation is ItemActivation.OneClick as well
11554         as invalidate the item if HotTracking is true (to show/hide the
11555         underline style). Add an internal HotItemIndex property to retrieve
11556         the current hot item's index.
11557         * ListViewItem.cs: Add an internal HotFont property to cache the
11558         font used when HotTracking is true and the pointer moves within the
11559         item's borders.
11560         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
11561         HotFont depending on the hot state of the item.
11562
11563 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11564
11565         * ListView.cs: Implement 2.0 HotTracking property.
11566
11567 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11568
11569         * ToolStripControlHost.cs: If our hosted control never got created,
11570         don't try to dispose it.  [Fixes bug #81909]
11571
11572 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11573
11574         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
11575
11576 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11577
11578         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
11579
11580 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11581
11582         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
11583         Details view.
11584         * DrawListViewColumnHeaderEventArgs.cs:
11585         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
11586         using the DrawText () methods.
11587
11588 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
11589
11590         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
11591         background which got erased in my changes yesterday.
11592
11593 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11594
11595         * ListViewItem.cs: Actually set bounds for subitems in Details view
11596         (2.0 feature).
11597         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
11598         can invoke from the owner draw routines if we need it. Also, add
11599         support for Owner draw in Details view.
11600
11601 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11602
11603         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
11604         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
11605         ShowImageMargin setting, properly align text in a ToolStripLabel
11606         hosted on a ToolStripDropDown.
11607
11608 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11609
11610         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
11611         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
11612
11613 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11614
11615         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
11616
11617 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11618
11619         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
11620         location to match ToolStripMenuItems.
11621
11622 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11623
11624         * DrawListViewColumnHeaderEventArgs.cs:
11625         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
11626         column headers in ListView. 
11627
11628 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
11629
11630         * UserControl.cs: Implement AutoSize.
11631
11632 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11633
11634         * DrawListViewItemEventArgs.cs:
11635         * ListView.cs:
11636         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
11637         ListView.
11638
11639 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
11640
11641         * ToolStripDropDownItemAccessibleObject.cs: Added.
11642         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
11643         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
11644         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
11645         ToolStripTextBox.cs: corcompare work.
11646
11647 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
11648
11649         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
11650         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
11651         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
11652                 corcompare.
11653
11654 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
11655
11656         * OSFeature.cs: Add IsPresent.
11657         * PrintPreviewControl.cs: Add RightToLeft.
11658         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
11659         * SplitterPanel.cs: Add AutoSizeMode.
11660
11661 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11662
11663         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
11664         * MdiClient.cs: Add 2.0 ScaleControl.
11665         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
11666         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
11667
11668 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11669
11670         * Form.cs: Implement some scaling methods, stub some RTL methods,
11671         corcompare work.
11672
11673 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11674
11675         * Control.cs: corcompare work.
11676         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
11677
11678 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11679
11680         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
11681         ControlPaint 2.0 stuffs.
11682
11683 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11684
11685         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
11686
11687 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11688
11689         * UpDownBase.cs: Add 2.0 stuffs.
11690
11691 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11692
11693         * NumericUpDown.cs: Add 2.0 stuffs.
11694
11695 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11696
11697         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
11698
11699 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11700
11701         * ErrorProvider.cs: Implement 2.0 stuffs.
11702
11703 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11704
11705         * DomainUpDown.cs: Implement 2.0 stuffs.
11706
11707 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11708
11709         * CheckedListBox.cs: Fix RefreshItems signature.
11710
11711 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11712
11713         * PictureBox.cs: Implement 2.0 stuffs.
11714
11715 2007-06-12  Andreia Gaita  <avidigal@novell.com>
11716         
11717         * TabControl.cs: Check if there are tabpages before checking
11718         the selected index - fix #81802 (font changes raise a ResizeTabs
11719         call on controls.add, which blew up nicely with no tabpages)
11720
11721 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11722
11723         * ListView.cs:
11724         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
11725
11726 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11727
11728         * ListView.cs:
11729         * ListViewItem.cs: In VirtualMode the selection information
11730         resides in the ListView, rather than in the Items. Also, throw
11731         InvalidOperationExceptions when VirtualMode is being used and
11732         CheckedItemCollection is accessed.
11733
11734 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11735
11736         * ComboBox.cs: Add ScaleControl.
11737
11738 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11739
11740         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
11741
11742 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11743
11744         * GroupBox.cs: Add 2.0 stuffs.
11745
11746 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11747
11748         * Panel.cs: Add autosize properties/event.
11749
11750 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
11751
11752         * Control.cs:
11753         - When we remove a control, remove it from the collection before performing the layout.
11754         - Setup an internal property for explicit_bounds.
11755         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
11756         - Perform a layout when we set a new AutoSizeMode.
11757
11758 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
11759
11760         * ScrollableControl.cs: Add 2.0 stuffs.
11761
11762 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11763
11764         * ScrollBar.cs: Add 2.0 stuffs.
11765
11766 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11767
11768         * Splitter.cs: Add 2.0 stuffs.
11769
11770 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11771
11772         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
11773         to have BindingContext simply use base implementation.
11774
11775 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11776
11777         * ColumnHeader.cs: corcompare fix.
11778
11779 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11780
11781         * Button.cs: corcompare fixes.
11782         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
11783
11784 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11785
11786         * Button.cs: Override GetPreferredSizeCore.
11787         * ButtonBase.cs: PerformLayout after changing properties that can affect
11788         AutoSize.  Simplify some mouse/keyboard code.
11789         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
11790         * MouseEventArgs.cs: Make Location internal for 1.1.
11791         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
11792         * Theme.cs: Add CalculateButtonAutoSize.
11793         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
11794
11795 2007-06-05  Miguel de Icaza  <miguel@novell.com>
11796
11797         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
11798
11799 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11800
11801         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
11802         since we can get different item instances every time we retrieve it.
11803
11804 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11805
11806         * ListView.cs: Work around for #81602, since an unkown an pretty
11807         infrequent condition appears only in some systems (old linux boxes, it
11808         seems).
11809
11810 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11811
11812         * Button.cs: Completely reformat and a little refactor to bring
11813         this closer to Mono circa 2007.
11814
11815 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11816
11817         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
11818         to be ButtonBase.Invalidate.
11819
11820 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11821
11822         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
11823
11824 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11825
11826         * ButtonBase.cs: Completely reformat and a little refactor to bring
11827         this closer to Mono circa 2007.
11828
11829 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
11830
11831         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
11832         values for autosize. Fixes #80137.
11833
11834 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11835
11836         * Control.cs: Don't perform layout when AutoSize changes.
11837         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
11838         directly when autosizing, use SetBounds with BoundsSpecified.None.
11839         Fixes unit tests my last commit broke.
11840
11841 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11842
11843         * Control.cs: Perform layout when AutoSize changes.
11844         * Form.cs: Implement AutoSizing.
11845
11846 2007-06-01  Chris Toshok  <toshok@ximian.com>
11847
11848         * DataGrid.cs: remove the XXX'ed check at the top of
11849         ProcessGridKey.  fixes #80464.
11850
11851 2007-06-01  Chris Toshok  <toshok@ximian.com>
11852
11853         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
11854         adding idempotent (add/remove in Edit()), and also make sure we
11855         don't add it until after we set the text, so it's not tripped in
11856         Edit().  Fixes unit test regression.
11857
11858 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11859
11860         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
11861         change is user explicit, not when the layout engine moves stuff.  Fixes
11862         anchoring to bottom and right.  [Fixes bug #81790]
11863
11864 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11865
11866         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
11867
11868 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11869
11870         * ContainerControl.cs: 
11871         Fire enter event for common ancestor if it is not a ContainerControl.
11872         Send focus to the active_control and not the 'value', the active 
11873         control might have been changed in one of the events fired.     
11874         Definitely fixes #80159.
11875
11876 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11877
11878         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
11879
11880 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11881
11882         * PropertyGrid.cs: Anchor the help description to the bottom of the
11883           help panel and refactor SelectGridItem into a
11884           SelectGridItemInternal that can be set to null (and update it to
11885           clear the help texts when it is set to null). Set root item to null
11886           when there's no SelectedObject. Fixes #80438.
11887         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
11888           when we're recalculating after a resize (only).
11889
11890 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11891
11892         * ListView.cs: Implement 2.0 RedrawItems method.
11893
11894 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11895
11896         * ListControl.cs: Disconnect PositionChanged and ItemChanged
11897         handlers from previous data manager when DataSource is set to
11898         null. Fixes #81771.
11899
11900 2007-05-31  Jackson Harper  <jackson@ximian.com>
11901
11902         * TextBoxBase.cs: These seem to be the correct values.
11903
11904 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
11905
11906         * FileDialog.cs: When close dialog with ok set filterindex using combobox
11907         value. Fixes #81784.
11908
11909 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
11910
11911         * Control.cs: Implement 2.0 scaling methods.
11912
11913 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11914
11915         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
11916           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
11917           corcompare issues.
11918
11919 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11920
11921         * ProgressBar.cs: Implemented missing 2.0 members.
11922
11923 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11924
11925         * Control.cs: Corcompare issues.
11926         * MessageBox.cs: Implemented missing 2.0 functions.
11927
11928 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11929
11930         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
11931           Implemented more 2.0 members.
11932
11933 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11934
11935         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
11936           null (strange, but it seems to happen when running unit tests).
11937
11938 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11939
11940         * ContainerControl.cs: Set active_control even earlier, before 
11941         firing any events, and undo it if validation returns false.
11942
11943 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11944
11945         * ContainerControl.cs: Raise Validation and Enter/Leave events
11946         even if there is no Form and set active_control earlier, just
11947         before firing Enter events (toshok's patches). Fixes #80647.
11948
11949 2007-05-30  Jackson Harper  <jackson@ximian.com>
11950
11951         * TextControl.cs: Redid the pageup/pagedown a little to simplify
11952         things and fix bug #81311.
11953
11954 2007-05-30  Jackson Harper  <jackson@ximian.com>
11955
11956         * X11Dnd.cs: Now that we have our own event loop, we need to
11957         cancel when we get a mouseup but it won't be accepted.
11958
11959 2007-05-30  Chris Toshok  <toshok@ximian.com>
11960
11961         * DataGrid.cs (set_CurrentCell): guard against negative
11962         column/row.
11963
11964         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
11965         array index syntax instead of looping over the property names.
11966
11967         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
11968         and set IsInEditOrNavigateMode to false there.
11969
11970 2007-05-30  Jackson Harper  <jackson@ximian.com>
11971
11972         * TreeView.cs: Make sure we don't get a bad visible order when
11973         setting to the top node.  Fixes some misc crashing in
11974         ControlInspector.
11975
11976 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11977
11978         * UserControl.cs: Add 2.0 AutoSizeMode
11979
11980 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11981
11982         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
11983
11984 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11985
11986         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
11987         lines. Fixes #80285. 
11988
11989 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11990
11991         * DataGridColumnStyle.cs: Add char trimming column header text format. 
11992
11993 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11994
11995         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
11996         Fixes #80147.
11997
11998 2007-05-29  Jackson Harper  <jackson@ximian.com>
11999
12000         * TreeNode.cs: Fix off by one on calculating whether or not a node
12001         is visible.
12002
12003 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
12004
12005         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12006         * ScrollableControl.cs: Force an UpdateDistances when we move the
12007         scrollbars.
12008         [Fixes bug #80605]
12009
12010 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12011
12012         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12013         update the page setup screen.
12014
12015 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12016
12017         * PageSetupDialog.cs: Fix landscape mode.
12018
12019 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12020
12021         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12022         IconSizeHorizontalSpacing.
12023
12024 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12025
12026         * ListView.cs: The declaration of prev_tooltip_item should be inside
12027         a NET_2_0 conditional (avoid a warning).
12028
12029 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12030
12031         * PageSetupDialog.cs: Implement PrintPreview control to display
12032         the preview thumbnail. Change unit conversion to use 
12033         PrinterUnitConvert methods.
12034         
12035         Note: there is a huge bug in ms.net where the default margins are 
12036         interpreted as centimeters (?), when in fact they are set in inches. When 
12037         loading the page setup dialog initially (ms.net), the default margins 
12038         are set to 1 inch, and the dialog shows them with value 10, when in fact 
12039         it should be 25 (properly converted). Our dialog doesn't have this bug.
12040         
12041         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
12042         RectangleF.
12043         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12044
12045 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12046
12047         * ListView.cs:
12048         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12049         items.
12050
12051 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12052
12053         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12054         an IntPtr on csc (it builds fine on mcs, could it be a compiler
12055         bug?), convert the ptr to Int32 first.
12056
12057 2007-05-28  Jackson Harper  <jackson@ximian.com>
12058
12059         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12060         recieved, we will exit the dnd tracking loop.
12061
12062 2007-05-28  Jackson Harper  <jackson@ximian.com>
12063
12064         * X11Dnd.cs: Keep tracking until the xdnd finished event is
12065         recieved. TODO: I should probably stick a timer on the dropped
12066         event, and finish the drag if the XDND Finished event never shows
12067         (because some apps don't seem to send it).
12068
12069 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
12070
12071         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12072         #81733.
12073
12074 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12075
12076         * MonthCalendar.cs: Only mark the keypresses we actually handle as
12077           handled.
12078
12079 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12080
12081         * MonthCalendar.cs: Set the size after initializing all the relevant
12082           variables. Fixes #81742.
12083
12084 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12085
12086         * KeyEventArgs.cs: Fix typo.
12087
12088 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
12089
12090         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12091         to match MS. Fixed MinDate to only accept value less than or equal
12092         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12093         Removed TODO's that are now verified by unit tests.
12094
12095 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
12096
12097         * TreeNodeCollection.cs: Minor corrections to exceptions to match
12098         MS.
12099
12100 2007-05-25  Jackson Harper  <jackson@ximian.com>
12101
12102         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
12103         it's own message loop.
12104         * XplatUIX11.cs: Remove some of the dnd hooks
12105
12106 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
12107
12108         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
12109         instead of MinimizedWindowSize.
12110
12111 2007-05-25  Jackson Harper  <jackson@ximian.com>
12112
12113         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
12114
12115 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12116
12117         * KeyEventArgs.cs: Added SuppressKeyPress.
12118         * Control.cs: Added support for SuppressKeyPress.
12119
12120 2007-05-24  Andreia Gaita  <avidigal@novell.com>
12121
12122         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
12123         problems with PieChart. suppress_validation should not be a counter,
12124         if there are several BeginInit calls, the first EndInit will 
12125         activate validation. Fix exceptions thrown by set_Value.
12126         * UpDownBase.cs: ValidateText only if it's the user editing it.
12127
12128 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12129
12130         * ListControl.cs: FilterItemOnProperty should return the filtered
12131         item proeprty even if DataSource is null. The same applies for
12132         GetItemText. Fixes #80427.
12133
12134 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12135
12136         * Control.cs: If a control doesn't have a parent when it's Dock is
12137         set, but it has children, it needs to do a layout.  Fixes some nested
12138         controls issues.  [Fixes bug #81199]
12139
12140 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12141
12142         * ComboBox.cs: If there are few items in the drop down list, make it
12143           the exact size the items need, no bigger. Fixes #81612.
12144
12145 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12146
12147         * Application.cs: When we have captured the keyboard for a menu,
12148         check for mouse down events in case we need to close the menu.
12149         * Control.cs, Form.cs: Remove mouse down checks for menus.
12150
12151 2007-05-24  Jackson Harper  <jackson@ximian.com>
12152
12153         * TextControl.cs: Handle tabs in non multiline mode a little
12154         differently.
12155
12156 2007-05-24  Jackson Harper  <jackson@ximian.com>
12157
12158         * TextControl.cs: We need to manually break apart tabbed text and
12159         move the tabs, since the system.drawing tabbing mechanism relies
12160         on tab stops.
12161         * TextBoxBase.cs: Move the caret properly when the user enters a
12162         tab.
12163
12164 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12165
12166         * ContainerControl.cs: Don't check CanSelect before calling
12167         ProcessMnemonic.
12168         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
12169         release a KeyboardActive on click if it's not ours.
12170
12171 2007-05-23  Andreia Gaita  <avidigal@novell.com>
12172
12173         * ColumnHeader.cs: Add TypeConverter
12174
12175 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12176
12177         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
12178
12179 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12180
12181         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
12182
12183 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12184
12185         * LinkLabel.cs: Implement public Padding property.
12186
12187 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12188
12189         * LinkLabel.cs: Implement public FlatStyle.
12190
12191 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
12192
12193         * Control.cs: Apply patch from George to call parent.PerformLayout
12194         when Visible is changed.  [Fixes bugs #81118, 81718]
12195
12196 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12197
12198         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
12199
12200 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12201
12202         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
12203
12204 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12205
12206         * ContextMenu.cs: Implement Collapse.
12207
12208 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
12209
12210         * ToolBarButton.cs: Implement Name.
12211
12212 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12213
12214         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
12215         use current_item, it prevents some NRE. Fixes #81675.  
12216
12217 2007-05-22  Andreia Gaita  <avidigal@novell.com>
12218
12219         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
12220         without updating the text.
12221
12222 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12223
12224         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
12225         without calling DeleteObject.  [Should fix bug #81709]
12226
12227 2007-05-22  Jackson Harper  <jackson@ximian.com>
12228
12229         * RichTextBox.cs: Set the line endings correctly, when flushing
12230         RTF text.
12231
12232 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
12233
12234         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
12235          {Width=0,Height=0}.
12236
12237 2007-05-22  Jackson Harper  <jackson@ximian.com>
12238
12239         * TreeView.cs: Setting top with a null node should set to the very
12240         top.
12241
12242 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12243
12244         * Form.cs: ShowDialog: destroy the handle when message loop is
12245           finished, matches MS behaviour. Refactor parts of WmClose into
12246           RaiseCloseEvents, that only raises events if they haven't already
12247           been raised. Fixes #81688 and #81521.
12248         * Application.cs: Don't call close on the form when exiting a modal
12249           loop, it will raise all the (Form)Closed/Closing events again if
12250           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
12251           which doesn'r raise any events it they have been raised before.
12252
12253 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12254
12255         * Control.cs: Add OnPrint.
12256         * ToolStrip.cs: Add GetChildAtPoint.
12257         * ToolStripContainer.cs: Add OnRightToLeftChanged.
12258         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
12259
12260 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12261
12262         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
12263
12264 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12265
12266         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
12267           isn't visible anymore. Fixes #81651.
12268
12269 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12270
12271         * Control.cs: WmShowWindow: Update children's z-order after setting
12272           their parent. SetParent may show the window, thereby corrupting
12273           z-order, since the window will be shown on top.
12274         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
12275           multiple (and redundant) WM_SHOWWINDOW messages.
12276         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
12277           event has already been raised.
12278         * Form.cs: Change is_changing_visible_state to a counter, since
12279           SetVisibleCore can be called recursively. CreateHandle: when
12280           creating mdi children, send (De)Activated events.
12281         * MdiClient.cs: Update use of is_changing_visible_state.
12282         * Application.cs: OnThreadException: Surround exception handling with
12283           try/finally to ensure we always reset the error-handling state
12284           before leaving.
12285
12286 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12287
12288         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
12289           (#81704).
12290
12291 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12292
12293         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
12294         SmallIcon views, now that we have a standarized horizontal spacing.
12295
12296         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
12297         4, just like the other views (Match .Net).
12298
12299 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
12300
12301         * Control.cs: Delay calculating anchor distances until we actually layout.
12302         Always query the WM for the actual size and location it put us at instead of
12303         only when we send negative values.
12304         [Fixes bugs #81694, 81695]
12305
12306 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12307
12308         * Application.cs: Avoid a possible stack overflow when trying to exit
12309           the application.
12310
12311 2007-05-19  Marek Safar  <marek.safar@gmail.com>
12312
12313         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
12314         enum value.
12315
12316 2007-05-19  Andreia Gaita  <avidigal@novell.com>
12317
12318         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
12319         * NumericUpDownAcceleration.cs, 
12320           NumericUpDownAccelerationCollection.cs: Added 2.0
12321           implementation.
12322
12323 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
12324
12325         * RichTextBox.cs: Recalculate the document after the ScrollBars
12326         property is changed. Fixes bug #81681.
12327
12328 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
12329
12330         * DataObject.cs: Implement 2.0 methods.
12331
12332 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12333
12334         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
12335         in the center of the checkbox, not in the left-top corner. 
12336         Fixes #80037.
12337
12338 2007-05-18  Jackson Harper  <jackson@ximian.com>
12339
12340         * RichTextBox.cs: Recalculate the document after the scrollbars
12341         property is changed.
12342         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
12343         81486.
12344
12345 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12346
12347         * CreateParams.cs: Make HasWindowManager marginally faster.
12348         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
12349           into Hwnd so that other drivers can use it as well.
12350         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
12351           the default location from Hwnd. Fixes MDI client windows always
12352           showing up at (0,0) in Windows (Win32 won't set the default
12353           location since the window styles aren't correct).
12354
12355 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
12356
12357         * TreeView.cs: Modified DoubleBuffered to just use the base
12358         implementation.
12359
12360 2007-05-18  Jackson Harper  <jackson@ximian.com>
12361
12362         * TreeView.cs: Set the top node to the last child node when
12363         expanding all
12364         - When we get focus, if there is no selected node, use the top
12365         node.
12366
12367 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
12368
12369         * KeysConverter.cs: Add CanConvertTo.
12370         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
12371         * LinkConverter.cs: Added.
12372
12373 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12374
12375         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
12376         it prevents error when file dont have write access. Fixes #81669 and #81667.  
12377
12378 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12379
12380         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
12381         button text. Fixes #79640.  
12382
12383 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12384
12385         * Control.cs: According to MSDN controls created in the designer theres 
12386         keyboard accelerators visible by default. So included check for design
12387         in ShowKeyboardCuesInternal.  
12388
12389 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12390
12391         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
12392         text. Fixes #81621.  
12393
12394 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12395
12396         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
12397         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
12398
12399 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12400
12401         * Control.cs: Finish implementation of UI State using WmChangeUIState
12402         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
12403         in some controls to check for show_keyboard_cues to draw accell keys "_".  
12404
12405 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12406
12407         * ListBox.cs: When calculating the horizontal scrollbar
12408         in single column mode, don't use values less than 0 for
12409         Maximum. Fixes #81474.
12410
12411 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12412
12413         * ListBox.cs: Throw the some missing exceptions in
12414         ListBox.ObjectCollection methods.
12415
12416 2007-05-17  Jackson Harper  <jackson@ximian.com>
12417
12418         * TextBoxBase.cs: Recalculate the document when the word wrap
12419         value has changed. This fixes 81488.
12420
12421 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
12422
12423         * Clipboard.cs: Implement missing GetText overload.
12424
12425 2007-05-17  Chris Toshok  <toshok@ximian.com>
12426
12427         * Control.cs (CheckDataBindings): remove the binding_context arg
12428         to binding.Check.
12429
12430         * CurrencyManager.cs (OnItemChanged): fix this now that
12431         BindingManagerBase is fixed. also remove the comment telling where
12432         the fix should go.  We set transfering_data to true/false around
12433         the call to PushData to keep UpdateIsBinding from being called.
12434         (ListChangedHandler): remove the extra OnMetaDataChanged call for
12435         PropertyDescriptorAdded in the 1.1 case.  The extra call is
12436         actually generated by System.Data generating 2 metadata changed
12437         events of its own per column add.  The fix should go there.  Add a
12438         comment to that affect in our test's Assert.Ignore.
12439
12440         * BindingManagerBase.cs: Rework PullData and PushData slightly.
12441         we keep a boolean flag (transfering_data) that keeps us from
12442         calling UpdateIsBinding multiple times if we re-enter either of
12443         them.
12444
12445         * ControlBindingsCollection.cs (AddCore): remove the
12446         binding_context arg to binding.Check.
12447
12448         * Binding.cs (IsBinding): don't check if we're binding here, just
12449         return our cached value.  we update it in UpdateIsBinding.
12450         (Check): don't take the binding_context arg, we'll just use our
12451         control's.  Also, for some reason MS doesn't use the data member
12452         field when getting the bindingmanager for this binding.  it just
12453         uses the datasource.  Make this method callable multiple times,
12454         and only do the is_null_desc stuff if manager.Position != -1 (so
12455         we don't get an exception accessing manager.Current).
12456         (UpdateIsBinding): move the code from IsBinding here.
12457         (PositionChangedHandler): call Check here to we can initialize
12458         things that require a non- -1 position.
12459
12460 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12461
12462         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
12463         control.
12464
12465 2007-05-17  Andreia Gaita  <avidigal@novell.com>
12466
12467         * TabControl.cs: Add 2.0 methods and events, including
12468         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
12469         * TabPage.cs: Add 2.0 methods
12470
12471 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12472
12473         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
12474         keyboard_cues is properly handled by message method.  
12475
12476 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
12477
12478         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
12479
12480 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
12481
12482         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
12483
12484 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
12485
12486         * Control.cs: 
12487         - WmUpdateUIState added to handle state changes, it make call to
12488         OnChangeUICues event.
12489         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
12490         SystemInformation.
12491
12492 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
12493
12494         * ImageKeyConverter.cs: Added.
12495         * TreeViewImageKeyConverter.cs: Added.
12496
12497 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12498         
12499         * ToolTips.cs: Update Text if SetToolTip is called for a control
12500         already showing the tooltip, as well as restarting its timer; show
12501         tooltip if we are inside the control bounds by the time of calling
12502         SetToolTip. Inside ShowTooltip remove the check to not show the 
12503         tooltip again for the active control (it is allowed by .Net to 
12504         show the tooltip on the same control multiple times).
12505
12506 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12507
12508         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12509
12510 2007-05-16  Andreia Gaita <avidigal@novell.com> 
12511
12512         * ContainerControl.cs: only process tab key if there are no 
12513         modifier keys present, otherwise the control does the 
12514         tab processing, if it needs to. Fixes #81622
12515         * TabControl.cs: Fixes calculation for which tab to select on
12516         shift+ctrl+tab.
12517
12518 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12519
12520         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12521
12522 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
12523
12524         * Control.cs: Make IsInputCharInternal to allow controls to
12525         override it and still match MS API.
12526         * TextBoxBase.cs: Override IsInputCharInternal and always
12527         return true.
12528         [Fixes bug #81616]
12529
12530 2007-05-15  Jackson Harper  <jackson@ximian.com>
12531
12532         * TextBox.cs: Disable some of the menu options when using a
12533         readonly textbox.
12534
12535 2007-05-15  Jackson Harper  <jackson@ximian.com>
12536
12537         * TextBox.cs:
12538         * TextBoxBase.cs:
12539         * RichTextBox.cs: Some new 2.0 methods
12540
12541 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
12542
12543         * FileDialog.cs: On 1.0 profile, do not support multidotted 
12544         extensions.
12545
12546 2007-05-14  Jackson Harper  <jackson@ximian.com>
12547
12548         * TextBoxBase.cs: Implement some of the new 2.0 methods.
12549         * RichTextBox.cs: We need to override these methods on 2.0.
12550         * MaskedTextBox.cs: These are implemented now
12551         * TextControl.cs: This was off by one.
12552
12553 2007-05-14  Jackson Harper  <jackson@ximian.com>
12554
12555         * TextControl.cs: Because the line endings are including in the
12556         text, we don't need to add them in anymore.
12557
12558 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12559
12560         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
12561         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
12562
12563 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12564
12565         * ToolBar.cs: Adjust size to default size when button theres no text and
12566         image, it fixes remaining issues from #81524.
12567
12568 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12569
12570         * ToolBar.cs: 
12571         - When not flat call redraw to recalculate sizes on creare handle to match
12572         win32 behavior.
12573         - Revert 77220 because it causes some regressions in toobar
12574         button.
12575
12576 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12577
12578         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
12579           now actually enters a usable state.
12580
12581 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12582
12583         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
12584         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
12585         3 buttons.
12586
12587 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12588
12589         * ToolBar.cs: Save default_size on create handle to use later for buttons
12590         without text, needed to mimic win32 behavior.
12591
12592 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12593
12594         * ToolBar.cs: Fix button layour to best fit width or height according to
12595         vertical or not. Fixes #81524.
12596
12597 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
12598
12599         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
12600         toolbar size info because different styles theres different sizes.
12601         Fixes #81522.
12602
12603 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12604
12605         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
12606         if we are using checkboxes, checked is true, and we have less
12607         than two images in StateImageList; for the 1.1 in the same scenario
12608         draw the first image if we have at least one image in StateImageList.
12609         Fixes part of #81191.
12610
12611 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12612
12613         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
12614         the owner's Items collection on merge.
12615
12616 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12617
12618         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
12619         * ToolStripItemCollection.cs: Lots of fixes to when events get called
12620         and parent/owner gets changed based on gert's unit tests.
12621
12622 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12623
12624         * MaskedTextBox.cs: Started implementing parts of it.
12625
12626 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12627
12628         * ListView.cs: When clicking the checkbox on the items
12629         take into account the double clicks even if we have only
12630         one image in StateImageList (only for 1.0/1.1). Also 
12631         generate an extra change of checked state when we receive
12632         the second click on checkbox (match .Net behaviour). 
12633         Fixes part of #81191.
12634
12635 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
12636
12637         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
12638
12639 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12640
12641         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
12642         even if OnLoad is overriden and base.OnLoad is not called.
12643         [Fixes bug #81582]
12644
12645 2007-05-10  Andreia Gaita  <avidigal@novell.com>
12646
12647         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
12648         shame. (I blame my ever-persisting and annoying cold)
12649
12650 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12651
12652         * ListView.cs: Don't eat navigation keys.  Let them flow through to
12653         KeyDown/KeyPress routines.  [Fixes bug #81569]
12654
12655 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12656
12657         * ListView.cs: When handling keys for selecting the item based off
12658         keyboard input, do not consider keys pressed with Alt or Control.  Also,
12659         correctly handle keys when the Shift key is down. [Fixes bug #81578]
12660
12661 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12662
12663         * Control.cs: When using UseWaitCursor, we have to store the requested
12664         Cursor to use when UseWaitCursor is turned off.
12665
12666 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12667
12668         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
12669         to false.
12670         * Application.cs: Use PreProcessControlMessage instead of
12671         PreProcessMessage.
12672         * PreProcessControlMessage.cs: Make internal for 1.1.
12673
12674 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12675
12676         * Control.cs: Add InternalContains focus property, which hast the same
12677         functionality of ContainsFocus, but also including implicit controls.
12678         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
12679         since we need to know if the focus is contained in our implicit
12680         ItemControl when calculating Layout. Fixes part of #80888.
12681
12682 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
12683
12684         * ToolTip.cs: Remove center form string alignment as it must be align to
12685         left.
12686
12687 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
12688
12689         * ToolStripItemCollection.cs: Set the new item's parent and owner
12690         in Insert like we do in Add.  [Fixes bug #81568]
12691
12692 2007-05-08  Jackson Harper  <jackson@ximian.com>
12693
12694         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
12695         - Off by one error in SetTop
12696         - Disable DoubeBuffering
12697         
12698 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12699
12700         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
12701           control as much as necessary in order to make it entirely visible,
12702           instead of centering the control in the container (matches MS
12703           behaviour). CalculateCanvasSize: we need to take the current scroll
12704           position into account when calculating the maximum canvas,
12705           otherwise the following scenario will fail: resize so that the
12706           scrollbars appear, use the scrollbars to scroll, resize again
12707           smaller, and now the canvas size is too small. Recalculate: when
12708           showing scrollbars make sure they start off at 0, and try to scroll
12709           the active control into view. Fixes #79540. HandleScrollBar: don't
12710           scroll anywhere if the scrollbar isn't visible.
12711
12712 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12713
12714         * ListView.cs: When focus changed, call Layout/Invalidate
12715         in the focused item to update the selected state (should show
12716         entire label when ListView is focused, and a part of it if is not).
12717         * ListViewItem.cs: When doing layout for LargeIcon, take into account
12718         for displaying the entire label not only the Focused state of the
12719         item, but also the Focused state of the ListView (match .Net
12720         behaviour).
12721
12722 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12723
12724         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
12725         Implement UseWaitCursor. 
12726
12727 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12728         Applying contributed patch from Sergey Volk.
12729
12730         * Clipboard.cs: Implement SetDataObject retry logic and new overload
12731         of SetDataObject.
12732         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
12733
12734 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12735
12736         * Control.cs: Implement DrawToBitmap.
12737
12738 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12739         Applying contributed patch from Stefan Noack.
12740         
12741         * Control.cs: Add [Get|Set]AutoSizeMode.
12742
12743 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12744
12745         * MdiClient.cs: Unmerge menus when the last child is closed.
12746
12747 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12748
12749         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
12750         * ToolStripManager.cs: Call Merge on DropDowns.
12751         [Fixes bug #81477]
12752
12753 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12754
12755         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
12756           uints.
12757         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
12758           visibility. We can't create forms visible, since we have to set the
12759           owner before making the form visible (otherwise Win32 will do
12760           strange things with task bar icons). The problem is that we set the
12761           internal is_visible to true before creating the control, so
12762           is_changing_visible_state is the only way of determining if we're
12763           in the process of creating the form due to setting Visible=true -
12764           this works because SetVisibleCore explicitly makes the form
12765           visibile afterwards anyways. Fixes #80775.
12766
12767 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12768
12769         * ThemeWin32Classic.cs: When drawing ListViewItems,
12770         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
12771         or LargeIcon _and_ item is not focused (match .Net behaviour).
12772
12773 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
12774
12775         * Control.cs, Form.cs: Fix some obsolete method warnings.
12776
12777 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
12778
12779         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
12780         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
12781
12782 2007-05-04  Andreia Gaita  <avidigal@novell.com>
12783
12784         * ContainerControl.cs: Fix active_control attribution when going
12785         up the parent chain so that the first parent container gets the control
12786         and the rest of the parent containers get the child containers (skips
12787         non-containers). Fixes #80729
12788
12789 2007-05-04  Randolph Chung  <tausq@debian.org>
12790
12791         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
12792         [Fixes bug #81499]
12793
12794 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12795
12796         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
12797           takes a size parameter, since the CreateParam's size isn't true for
12798           minimized forms. Fixes #81518,
12799
12800 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12801
12802         * Form.cs: Add OnDeactivateInternal.
12803         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
12804
12805 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12806
12807         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
12808           accessing the parent. Fixes #81508.
12809
12810 2007-05-03  Chris Toshok  <toshok@ximian.com>
12811
12812         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
12813         2.0 block, pass listposition + 1 to ChangeRecordState when a row
12814         was added before the current listposition.  Fixes the
12815         TestInsertRowBeforeCurrent unit test.
12816
12817 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
12818
12819         * Application.cs: Add RaiseIdle.
12820         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12821         XplatUIX11.cs: Implement RaiseIdle.
12822
12823 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
12824         corcompare work: N - Z
12825         * NotifyIcon.cs
12826         * ProgressBar.cs
12827         * RadionButton.cs
12828         * ScrollableControl.cs
12829         * SplitContainer.cs
12830         * SplitterPanel.cs
12831         * StatusBar.cs
12832         * SystemInformation.cs
12833         * TabControl.cs
12834         * TableLayoutControlCollection.cs
12835         * TableLayoutPanel.cs
12836         * TabPage.cs
12837         * ToolBar.cs
12838         * ToolBarButton.cs
12839         * ToolStrip.cs
12840         * ToolStripComboBox.cs
12841         * ToolStripContainer.cs
12842         * ToolStripContentPanel.cs
12843         * ToolStripDropDown.cs
12844         * ToolStripDropDownItem.cs
12845         * ToolStripDropDownMenu.cs
12846         * ToolStripItem.cs
12847         * ToolStripItemCollection.cs
12848         * ToolStripMenuItem.cs
12849         * ToolStripPanel.cs
12850         * ToolStripSplitButton.cs
12851         * ToolTip.cs
12852         * TreeNode.cs
12853         * TreeNodeCollection.cs
12854         * TreeNodeMouseHoverEventArgs.cs
12855         * TreeView.cs
12856
12857 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
12858
12859         * ContextMenu.cs: Add public method Show with alignment property to 2.0
12860         stuff. Thanks aatdark for the patch. 
12861
12862 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12863
12864         * GridItem.cs: Implement 2.0 Tag property.
12865
12866 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
12867
12868         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
12869         count instead of Nodes.Length.  [Fixes bug #81448]
12870
12871 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12872
12873         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
12874         [Fixes bug #81506]
12875
12876 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12877         corcompare work: A - M
12878         * BindingNavigator.cs
12879         * Button.cs
12880         * ButtonBase.cs
12881         * CheckBox.cs
12882         * Control.cs
12883         * FlowLayoutPanel.cs
12884         * Form.cs
12885         * Label.cs
12886         * LinkLabel.cs
12887         * ListView.cs
12888
12889 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12890
12891         * Application.cs: Give toolstrips a chance to process mnemonics.
12892         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
12893         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
12894         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
12895
12896 2007-05-01  Jackson Harper  <jackson@ximian.com>
12897
12898         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
12899         wider area too.
12900         - Don't set the BoundsSpecified
12901
12902 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12903
12904         * Application.cs: When using the toolstrip shortcut mechanism, allow the
12905         message to pass through to a regular control if it hosted by a toolstrip.
12906         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12907         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
12908
12909 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12910
12911         * TextRenderer.cs: Use the flags argument when using the MeasureString
12912         fallback algorithm.
12913
12914 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12915
12916         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
12917         the MDI menu item.  [Fixes bug #81483]
12918
12919 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
12920
12921         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
12922         string. When setting Name to null, use zero-length string instead.
12923
12924 2007-04-29  Andreia Gaita  <avidigal@novell.com>
12925
12926         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
12927         DeselectTab). Implement missing 2.0 TabPageCollection methods
12928         (Add, ContainsKey, RemoveByKey, IndexOfKey)
12929
12930 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
12931
12932         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
12933
12934 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
12935
12936         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
12937         Fixes bug #81479. Include details of exception when LoadFile fails.
12938
12939 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
12940
12941         * DrawListViewSubItemEventArgs.cs: Added missing setter
12942
12943 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12944
12945         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
12946         Hide methods (not complete). Implement missing 2.0 OnPopup event.
12947
12948 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12949
12950         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
12951         removed in ly last commit (it was breaking the Label edit feature).
12952
12953         * ThemeWin32Classic.cs: When drawing a ListViewItem use
12954         StringAlignment.Near for LineAlignment (match .Net).
12955
12956 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12957
12958         * TabControl.cs: Change SetTab so it adds the tabpage to the list
12959         of controls if it isn't already there - was blowing up when doing
12960         tabcontrol.TabPages[i]=new TabPage(). 
12961         SetTab now does a replace by removing the page at the index. 
12962         Add a new InsertTab method that inserts a page in a given index 
12963         instead of replacing. 
12964         Implements TabPageCollection.Insert(int, TabPage).
12965
12966 2007-04-27  Chris Toshok  <toshok@ximian.com>
12967
12968         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
12969         internal handler that can be invoked from our subclasses.)  Also,
12970         add a comment to PushData about how we need to fix it.
12971
12972         * CurrencyManager.cs: tons of changes here.  trying to get things
12973         matching the behavior of .net wrt event orders (ItemChanged,
12974         CurrentChanged, PositionChanged.)  I've implemented a private .net
12975         symbol (ChangeRecordState) that appears in stack traces because
12976         it's actually easier to do this than to effective inline all its
12977         various behaviors at every call site.
12978
12979         * RelatedPropertyManager.cs: guard against an exception here by
12980         not using parent.Current if the position is set to -1 (if the
12981         parent datasource is cleared, for instance).
12982
12983         * Binding.cs: don't parse data in PushData (this might be wrong,
12984         but it jives with MS's behavior.)  Also, don't call PushData when
12985         we get a CurrentChanged event.
12986
12987 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12988
12989         * WebBrowser.cs,
12990           WebBrowserBase.cs,
12991           WebBrowserSiteBase.cs,
12992           HtmlDocument.cs: Added stubbed out classes, no real implementations 
12993           yet.
12994
12995 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
12996
12997         * MainMenu.cs: In draw method without parameters call draw method with 
12998         PaintEvent, another one (just rect) adjust rectangle and we dont need it
12999         as Rect property is already adjusted. Fixes #80694.
13000
13001 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
13002
13003         * Application.cs: Need to handle keyboard menu deselection here.
13004         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13005         navigation, allowing keyboard to work on X11.
13006         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13007
13008 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13009
13010         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13011         menu bar. It fixes some drawing issues in menu bar.
13012
13013 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13014
13015         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
13016         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13017         when <alt> key is pressed.
13018
13019 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13020
13021         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
13022         example just set visible to false and make this prevent from other problems.
13023         In SystrayAdd always remove pending expose. Fixes #81072.
13024
13025 2007-04-26  Marek Safar  <marek.safar@gmail.com>
13026
13027         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13028         value is set.
13029
13030 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13031
13032         * ListView.cs: Added three missing 2.0 events and corresponding
13033         EventHandlers. Added the OwnerDraw property.
13034         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13035
13036 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13037
13038         * DrawListViewItemEventArgs.cs
13039         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13040
13041 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13042
13043         * TextControl.cs: Fixed typo in constructor
13044
13045 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
13046
13047         * Application.cs: Create a shortcut path so that currently selected
13048         MenuStrips can intercept keyboard events without having focus.
13049         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13050         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13051         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13052         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
13053         generate WM_SYSCOMMAND message in X11 for other platforms.
13054         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13055         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13056         * ToolStripSplitButton.cs: Add DefaultItem property.
13057         
13058 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13059
13060         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13061         fixes some menu draw problem on Windows with border diferent from default
13062         it also fixes #81403.
13063
13064 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13065
13066         * Form.cs: Refactor WndProc into separate methods, just like Control is
13067           doing it.
13068
13069 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13070
13071         * Control.cs: set_Text: move the call to the driver into a seperate
13072           virtual method so that Form can override it.
13073         * MaskedTextBox.cs: Corcompare fixes.
13074         * Form.cs: Override UpdateWindowText and only update the styles if the
13075           form has been shown (fixes #81405).
13076
13077 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13078
13079         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13080         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13081         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
13082         the form lost focus or another control was clicked.
13083
13084 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
13085
13086         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13087         fixed.
13088
13089 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13090
13091         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13092           DrawListViewItemEventHandler.cs,
13093           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13094           Added.
13095         * X11Structs.cs: More ToString implementation.
13096
13097 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13098
13099         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
13100         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
13101
13102 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13103
13104         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
13105           handle.
13106         * FormCollection.cs: Don't add a form if it's already in the
13107           collection.
13108         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
13109           according to behaviour and MSDN. The ownerWin32 is the active
13110           window at the moment when we call ShowDialog, not the context's
13111           main form (the context's main form may open another form that opens
13112           a form with ShowDialog, the win32 owner is the second form). Add
13113           and remove forms to the Application.OpenForms in other places to
13114           better match MS behaviour. Add an IsActive property that raises
13115           On(de)Activated only if the active state has changed (we were
13116           raising OnDeactivated before OnActivated while creating forms).
13117         * Application.cs: Refactor Enabling/Disabling of windows for modal
13118           dialog loops out to separate methods, and restore the thread
13119           context when we quit the method. Fixes #81407.
13120
13121 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13122
13123         * ListView.cs: In ItemControl.HandleClicks, also fire 
13124         2.0 MouseClick or MouseDoubleClick events on the parent,
13125         not only the Click/DoubleClick events.
13126
13127 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13128
13129         * TableLayoutSettings.cs: 
13130         - Added a GetControls method and a support structure to help the 
13131         TypeConverter to enumerate the controls for     serialization. 
13132         - Added a new serialization constructor. 
13133         - Added a isSerialized flag initialized to true on the 
13134         serialization constructor so that the TableLayoutPanel.LayoutSettings 
13135         setter does not throw the designed NotSupportedOperation exception
13136         when the object is built through deserialization.
13137         - Implemented GetObjectData
13138         
13139         * TableLayoutPanel.cs: Added check on LayoutSettings.
13140
13141 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13142
13143         * ListView.cs: Report Click and DoubleClick events to the parent
13144         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
13145         from breaking the click count state when using dialog forms (Control
13146         reports the clicks in a similar fashion). In the previous behaviour
13147         the last WM_LBUTTONUP message in a  double click was sent to the
13148         ListView's form, instead of the ListView, which was breaking the click
13149         count for it. Fixes #80387.
13150
13151 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13152
13153         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
13154
13155 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13156
13157         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
13158         us from created dropdowns for menu items that do not have subitems.
13159         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
13160         Check HasDropDownItems before calling DropDown so a dropdown will not be
13161         created if it isn't needed.
13162
13163 2007-04-24  Jackson Harper  <jackson@ximian.com>
13164
13165         * TreeView.cs: Set the first node to the selected node when we get
13166         focus if there is no selected node.
13167
13168 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13169
13170         * MimeIcon.cs: remove using blocks so that image streams are
13171         not disposed of. Fixes #80151
13172
13173 2007-04-24  Jackson Harper  <jackson@ximian.com>
13174
13175         * TextBoxBase.cs: Fixup the height of textboxes when the control
13176         is created.
13177
13178 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13179
13180         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
13181         for each ToolStripItem when the parent's RightToLeftChanged is called.
13182
13183 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13184
13185         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
13186           Fixes #80163.
13187         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
13188           property, so that the setter can be overriden too.
13189         * TextBox.cs: Change GetContextMenuInternal() to use
13190           ContextMenuInternal.
13191
13192 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13193
13194         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13195           #81406.
13196
13197 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13198
13199         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13200           #81406.
13201
13202 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13203
13204         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
13205           avoid duplicate work. Mostily skeleton code, it's not working at
13206           all yet.
13207
13208 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
13209
13210         * NotifyIcon.cs : stub for MouseClick event
13211         * Application.cs: stub for SetUnhandledExceptionMode
13212
13213 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13214
13215         * BindingNavigator.cs : Initial (partial) implementation
13216
13217 2007-04-23  Jackson Harper  <jackson@ximian.com>
13218
13219         * TreeView.cs: Do not create the treeview's handle when setting
13220         the scroll position.
13221         - ExpandAll needs to compute the scrollbars so it knows which
13222         position to set the bar too.
13223         * TreeNode.cs: 
13224         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
13225
13226 2007-04-23  Jackson Harper  <jackson@ximian.com>
13227
13228         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
13229         key. Fixes #81408.
13230
13231 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
13232
13233         * ToolStripItem.cs: Make GetImageSize internal.
13234         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
13235         need to draw an item.  Fixes a reported issue where images on menus
13236         that were not 16x16 were drawing incorrectly.
13237
13238 2007-04-21  Miguel de Icaza  <miguel@novell.com>
13239
13240         * Padding.cs: Use the converter, fixes the resgen2 issue with
13241         XMLNotePad. 
13242
13243 2007-04-21  Jackson Harper  <jackson@ximian.com>
13244
13245         * TreeView.cs: Dont try to unhighlight the selected node if there
13246         isn't a selected node.
13247
13248 2007-04-21  Jackson Harper  <jackson@ximian.com>
13249
13250         * UpDownBase.cs:
13251         * TextBoxBase.cs:
13252         * ListView.cs:
13253         * ListBox.cs:
13254         * TreeView.cs: Use the InternalBorderStyle property to set the
13255         initial border style, this forces the client rectangle to be sized
13256         correctly.
13257
13258 2007-04-20  Jackson Harper  <jackson@ximian.com>
13259
13260         * TreeView.cs: Simplify scrolling to the last node after expanding
13261         all.
13262         - Fix some off by ones with setting the bottom.
13263
13264 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
13265
13266         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
13267         that.  We were incorrectly doing it the other way around.  Also,
13268         update ClientSize if we change the BorderStyle before the control
13269         is created.
13270
13271 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
13272
13273         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13274         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13275         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
13276         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13277         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13278         Caption to CaptionHeight.
13279         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
13280         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
13281         and FixedFrameBorderSize to return value from current XplatUI driver.
13282         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
13283         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
13284         and FixedFrameBorderSize using win32 API. Renamed Caption to
13285         CaptionHeight.
13286         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
13287         * SystemInformation.cs: Fixed typo in BorderSize.
13288
13289 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
13290
13291         * XplatUI.cs: Added MenuAccessKeysUnderlined.
13292         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
13293         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
13294         returning false.
13295         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
13296         value from XplatUI driver.
13297         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
13298         SystemParametersInfo.
13299         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
13300         override.
13301         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
13302         returning false.
13303
13304 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13305
13306         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
13307
13308 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13309
13310         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
13311
13312 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
13313
13314         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
13315         MenuStrips that contain ToolStripSeparators.
13316
13317 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13318
13319         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
13320           DefineStdCursorBitmap.
13321         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
13322           has been created off a standard cursor. This is used to get a
13323           bitmap of the standard cursor when Draw or DrawStretched is called
13324           in order to draw the cursor.
13325         * X11Structs.cs: Added XcursorImage and XcursorImages.
13326         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
13327           DefineStdCursorBitmap.
13328         * Cursors.cs: Update all relevant creations of Cursor to use the new
13329           internal constructor.
13330
13331 2007-04-19  Jackson Harper  <jackson@ximian.com>
13332
13333         * TextBox.cs: Move the has_been_focused into the base control, so
13334         some of the text adding methods can manipulate it (probably time
13335         for a better name for this flag too).
13336         - Call a new version of selectall that doesn't scroll
13337         * TextBoxBase.cs: When we append text, if the document is empty,
13338         don't scroll.  If the document has text already, we scroll to the
13339         end of the appended text.
13340         - When the text is changed, we reset the has_been_focused, so the
13341         next time the control gets focused, all the text is selected.
13342
13343 2007-04-19  Jackson Harper  <jackson@ximian.com>
13344
13345         * TextControl.cs: Move the margins to the document, add a method
13346         so the margin sizes can be updated.
13347         * TextBoxBase.cs: When the border style is changed, update the
13348         border sizes.
13349
13350 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
13351
13352         * Control.cs: Respect DefaultPadding.
13353         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
13354         padding into account.
13355         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
13356
13357 2007-04-19  Jackson Harper  <jackson@ximian.com>
13358
13359         * TextControl.cs: Oops, we need to use the ClientRect not the
13360         bounds here.
13361
13362 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13363
13364         * ListView.cs: In ItemControl.ItemsMouseDown, take into
13365         account the double clicks when CheckBoxes are used and
13366         the pointer is inside the checkbox. Fixes part of #81191.
13367
13368 2007-04-18  Jackson Harper  <jackson@ximian.com>
13369
13370         * TextControl.cs: Pressing the end key shouldn't move the caret
13371         past the line ending.
13372         * TextBoxBase.cs: We can still delete if we are in the line
13373         ending and the combine will just kill the existing line ending.
13374
13375 2007-04-18  Jackson Harper  <jackson@ximian.com>
13376
13377         * TextControl.cs: We can't move lines, then invalidate their
13378         bounds, we need to get the old bounds and combine that with the
13379         new bounds.
13380         * TextBoxBase.cs: Before combining two lines for a delete, we need
13381         to invalidate the area of the old line, since that will be moved
13382         in the combine operation.
13383
13384 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
13385
13386         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
13387         with transparent background. Fixes #80482.
13388
13389 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
13390
13391         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
13392         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
13393         [Fixes bug #81391]
13394
13395 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13396
13397         * CreateParams.cs: Add a couple of helper methods and do a less string
13398           concatenation in ToString.
13399         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
13400           overload that takes a Control parameter, since this method may be
13401           called before a control is assigned to the hwnd (from
13402           CreateWindow), and update CreateWindow to use the new overload. In
13403           GetMenuOrigin subtract the title bar from the y position if the
13404           form has a window manager (since we're painting it and not X).
13405         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
13406           CreateParams to calculate the origin (since border sizes may vary).
13407           In ScreenToMenu only subtract the title height if we actually have
13408           a title.
13409         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
13410           mdi children never have menus of themselves.
13411         * InternalWindowManager.cs: Implement menu handling like form does.
13412           Added GetMenuOrigin to calculate the menu origin, can't use the
13413           CreateParams from the form like normally since it's lying.
13414         * Hwnd.cs: Implement GetBorderSize better (in the sense more
13415           windows-like) and add Inflate and comparison operators to the
13416           Borders type. When calculating MenuOrigin and it's a form with a
13417           window manager, use the window manager to calculate it.
13418
13419 2007-04-17  Chris Toshok  <toshok@ximian.com>
13420
13421         * Control.cs (CreateControl): turns out in 2.0 we don't need this
13422         OnBindingContextChanged thing here.  It's only generated from
13423         ContainerControl.OnCreateControl.  Fixes a newly written unit test
13424         - BindingTest.BindingContextChangedTest4.
13425         
13426 2007-04-17  Jackson Harper  <jackson@ximian.com>
13427
13428         * ScrollBar.cs: When setting values, make sure the current
13429         position stays within the new values range.
13430
13431 2007-04-17  Chris Toshok  <toshok@ximian.com>
13432
13433         * Control.cs (CreateControl): talk about a bizarre corner case.
13434         Don't emit OnBindingContextChanged here if we're a parentless
13435         control (i.e. if we're a form.).  Fixes
13436         BindingTest.BindingContextChangedTest2.
13437
13438 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
13439
13440         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
13441         from win32. Fixes #81255.
13442
13443 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
13444
13445         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
13446         already present in CalculateButtonTextAndImageLayout.
13447
13448 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13449
13450         * XplatUIX11.cs: When setting min/max size for a window we need to
13451           translate the coordinates to x coordinates. Create an overload of
13452           SetWindowMinMax that takes a CreateParams handling this, and change
13453           SetWMStyles to call this function (can't use Control.FromHandle in
13454           the SetWindowMinMax to get the control/CreateParams from the handle
13455           because the handle might not have been assigned to the control
13456           yet). Fixes #81371.
13457
13458 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13459
13460         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
13461         if StateImageList is non-null and it has less than two items (match MS
13462         behaviour). Also, in HandleNavKeys handle the Space key, calling
13463         the new ToggleItemsCheckState method, which tries to change the
13464         checked state of the selected items. Fixes part of #81191.
13465
13466 2007-04-16  Jackson Harper  <jackson@ximian.com>
13467
13468         * RichTextBox.cs: namespace cleanup.
13469
13470 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
13471
13472         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
13473
13474 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
13475
13476         [Fixes #79447]
13477         * Control.cs: Call invalidate in set_Region.
13478
13479         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
13480         it dont works here.
13481
13482 2007-04-16  Jackson Harper  <jackson@ximian.com>
13483
13484         * TextBoxBase.cs: When enter is pressed, we need to update all
13485         lines below the current.
13486
13487 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
13488
13489         * MdiClient.cs: Implement implicit menu merging for MDI
13490         children.  When a child form is active, if it has a menustrip
13491         and the parent form has a MainMenuStrip, automatically merge
13492         the menus.
13493
13494 2007-04-15  Andreia Gaita  <avidigal@novell.com>
13495
13496         * TabControl.cs: Refactored sizing methods to not repeat
13497         code all over the place. Tab bounds are now calculated
13498         as if alignment is top and single line, and only when 
13499         setting the bounds are the positions adjusted according
13500         to alignment. Replaced hardcoded positions, spacings and
13501         paddings by getting the values the ThemeEngine. 
13502         Fixes #79619.
13503         
13504         * Theme.cs: Change TabControl properties and methods so
13505         that all start with TabControl*. Added more properties
13506         to help remove hardcoded values on tabcontrol.
13507         Add CPDrawBorder3D declaration so the Theming classes
13508         can access it.
13509         
13510         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
13511
13512         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
13513         on the Theming namespace, and call the appropriate methods here.
13514         Change CPDrawBorder3D to public.
13515
13516 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13517
13518         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
13519         the control after firing the OnMouseUp event, instead of sending
13520         the message before the mentioned event. This is so we can match the
13521         MS behaviour. Fixes part of #80385.
13522
13523 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
13524
13525         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
13526         RightToLeft property.
13527
13528 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
13529
13530         * ToolStrip.cs: Add properties and internal methods to support merging.
13531         * ToolStripItem.cs: Add MergeAction and MergeIndex.
13532         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
13533         not trigger reparenting or layouts.
13534         * ToolStripManager.cs: Add Merge and RevertMerge methods.
13535         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
13536         is hosting the overflow menu.
13537
13538 2007-04-13  Jackson Harper  <jackson@ximian.com>
13539
13540         * TextControl.cs: Set the line ending correctly for the first
13541         inserted line.
13542
13543 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
13544
13545         * Theme.cs: Update GetMethod to get the new definition for 
13546         KnownColors.Update (and fix theme color updates).
13547
13548 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
13549
13550         * MessageBox.cs: Fix some test and button position.
13551
13552 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13553
13554         * Form.cs: Consider the implicit controls in
13555         GetRealChildAtPoint. We need it since this method
13556         is called on Form when handling the some messages in
13557         WndProc, and need to consider those implicit ones too.
13558         Fixes #80385.
13559
13560 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
13561
13562         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
13563         if there are no ShortcutKeys set.
13564         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
13565         set, use it when painting.
13566
13567 2007-04-12  Jackson Harper  <jackson@ximian.com>
13568
13569         * TextControl.cs: Fix some off-by-one issues in line duplication
13570         and insertion in the undo manager. Also, overwrite the first tag
13571         of a line on insert, if it is just a zero lengthed tag. This
13572         prevents us from getting an extra stranded tag at the beginning of
13573         the first line.
13574
13575 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
13576
13577         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
13578         to calculated proper size including when handle was not created yet.
13579
13580 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13581
13582         * MdiWindowManager.cs: When moving a form, allow the form to be moved
13583           when the mouse is outside of it's parent's client rectangle. Fixes
13584           #79982 (take 3, part 2).
13585
13586 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13587
13588         * X11Structs.cs: Add a few ToString() overrides.
13589         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
13590           the window location in a window-manager independent way. Reworked
13591           FrameExtents, it now actually works. Reworked AddConfigureNotify
13592           and ReparentNotify handling to use GetTopLevelWindowLocation
13593           instead of the earlier, more hacky solution. Reworked SetWMStyles,
13594           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
13595           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
13596           for all other windows (fixes #81281 part 1), a toolwindow is hidden
13597           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
13598           and generally refactored to do as few calculations as possible
13599           inside the lock.
13600
13601 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
13602
13603         * Theme.cs: Change "reflective-contract" between MWF and SD to 
13604         minimize # of calls, avoid Color serialization and avoid updating 
13605         every "known colors" each time a single one is updated.
13606
13607 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
13608
13609         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
13610         when not readonly and the text is explicitly set. Code style updates.
13611         * DataGridTableStyle.cs: Removed extra line.
13612         * DataGrid.cs: Code style updates. Removed extra whitespace.
13613         * DataGridColumnStyle.cs: Code style updates. Removed extra 
13614         whitespace.
13615
13616 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13617
13618         * XplatUIX11.cs: Added comment that "fixes" #80021.
13619
13620 2007-04-09  Jackson Harper  <jackson@ximian.com>
13621
13622         * TextControl.cs: We don't need this -1 on the line count anymore.
13623
13624 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
13625
13626         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
13627         entered value to underlying type, and convert it back to a string to
13628         apply formatting. Modified GetFormattedValue to use TypeConverter
13629         if available.
13630
13631 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
13632
13633         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
13634         Use SubItems property when we want to ensure there's at least one
13635         subitem. Modified SubItems property to ensure there's always at least
13636         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
13637         the NRE's reported by MS.
13638
13639 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
13640
13641         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
13642         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
13643         Spaces to tabs. Removed extra tabs.
13644
13645 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
13646
13647         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13648         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
13649
13650 2007-04-06  Jackson Harper  <jackson@ximian.com>
13651
13652         * TextBoxBase.cs: When a delete removes a line, recalculate all
13653         lines below that line (they need to get offsets setup correctly)
13654         and invalidate.
13655
13656 2007-04-05  Jackson Harper  <jackson@ximian.com>
13657
13658         * TextControl.cs: We need to invalidate across the width of the
13659         document when we are invalidating multiple lines.
13660         * TextBoxBase.cs: Don't delete into the line ending.
13661
13662 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13663
13664         * ListView.cs: Restore the check for the MouseHover event
13665         in ListView. It looks like the ListView fires more than one MouseHover
13666         event when HoverSelection is true  _only_ in weird-corner scenarios, but
13667         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
13668         event.
13669
13670 2007-04-05  Mike Kestner  <mkestner@novell.com>
13671
13672         * ListView.cs : raise MouseDown before updating selection.
13673         [Fixes #80373 tab 1&3]
13674
13675 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
13676
13677         * ToolStripRenderer.cs: Add static method to mirror image.
13678         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
13679         and RightToLeftAutoMirrorImage.
13680         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
13681
13682 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
13683
13684         * ToolStripSplitStackLayout.cs: Support Alignment property.
13685         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
13686
13687 2007-04-05  Jackson Harper  <jackson@ximian.com>
13688
13689         * TextControl.cs: Move around the line endings when crossing line
13690         boundaries.
13691         - When combining lines, strip the ending text off the first line.
13692
13693 2007-04-05  Jackson Harper  <jackson@ximian.com>
13694
13695         * TextControl.cs:
13696         * TextBoxBase.cs: Try to never move the cursor into the line
13697         ending.
13698         
13699 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13700
13701         * ToolStripItem.cs: Make sure we aren't firing mouse events when
13702         the item is disabled.  Also add a few missing methods.
13703
13704 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13705
13706         * ListView.cs: We don't need the MouseEnter/MouseLeave check
13707         to fire just one MouseHover event when HoverSelection is true, since
13708         .Net does fire more than one MouseHover event in that scenario. Also,
13709         fix the selection in HoverSelection, by invoking UpdateMultiSelect
13710         if MultiSelect is true, instead of only setting ListViewItem.Selected.
13711         Finally, we need to reset the Hover logic in MouseMove, even when we
13712         don't have a selected item.
13713
13714 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13715
13716         * ToolStrip.cs: Add several missing methods, properties, and events.
13717
13718 2007-04-04  Chris Toshok  <toshok@ximian.com>
13719
13720         * DataGridTextBoxColumn.cs: set the bounds of the text box to
13721         (0,0,0,0) in Commit, as MS does.
13722
13723         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
13724         make sure we set CurrentRow on a row header click *before* calling
13725         Select.  This moves the current cell (and the textbox) to the new
13726         row.  The call to Select then hides the textbox, giving us the
13727         correct behavior.  Fixes #80362.
13728
13729         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
13730         (ListChangedHandler): reorder the position/current changed events,
13731         and call UpdateIsBinding in the ItemAdded case.
13732
13733         * GridColumnStylesCollection.cs: add some columns events, one of
13734         which raises the CollectionChanged event.
13735
13736 2007-04-04  Jackson Harper  <jackson@ximian.com>
13737
13738         * TextControl.cs: When we delete multiple selection lines
13739         invalidate the selection area, don't need to do that for single
13740         lines because the final update view will handle it.
13741
13742 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13743
13744         * Control.cs: When we CreateControl, we need to also create all of the
13745         control's children.  The child's OnLoad must also fire before the parent's
13746         OnLoad.  Fixes the toolbox size in PDN.
13747
13748 2007-04-04  Jackson Harper  <jackson@ximian.com>
13749
13750         * TextBoxBase.cs: When the user presses enter, insert a line
13751         ending into the text. (Maybe this would be a good spot for
13752         Environment.NewLine).
13753         * TextControl.cs: Remove undo manager hack, line endings get
13754         inserted properly now.
13755         
13756 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
13757
13758         * MenuAPI.cs: 
13759         - Remove unneeded parameters in UpdateCursor.
13760         - Fix UpdateCursor to check if menu is active.
13761         - Call UpdateCursor when menu deactivate my click.
13762         [Fixes remaining issues from #80410]
13763
13764 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
13765
13766         * Control.cs: GetRealChildAtPoint method added, it make an
13767         recursive child control search for the point. 
13768
13769         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
13770         menu.
13771
13772         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
13773
13774 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
13775
13776         * Form.cs: Fix mouse position when send back mouse event after closes
13777         menu.
13778
13779 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
13780
13781         * Form.cs: Simplify the BUTTONDOWN for active tracker.
13782
13783 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
13784
13785         * Control.cs: Fix an issue where if a user resized a control inside
13786         a sizing method like OnResize, we would overwrite their explicit
13787         value.  Also, only call DefaultSize once in the constructor instead
13788         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
13789         nothing actually changed.
13790
13791 2007-04-03  Jackson Harper  <jackson@ximian.com>
13792
13793         * TextControl.cs: Don't attempt to copy text for lines with no
13794         text in them (technically this shouldn't happen, but we aren't
13795         always inserting line endings when we should be).
13796
13797 2007-04-03  Jackson Harper  <jackson@ximian.com>
13798
13799         * TextBoxBase.cs: Calculate the scrollbars before calculating the
13800         document, because this sets some of the document size properties
13801         that are needed.
13802
13803 2007-04-03  Jackson Harper  <jackson@ximian.com>
13804
13805         * TextBoxBase.cs: We need to calculate maximums even if this is
13806         not a multiline control, because the maxs are used for scrolling.
13807         - Display the caret after doing a page up/down, we need to
13808         manually display it because a proper CaretMoved event isn't
13809         triggered (this is because of the way the math is done to
13810         determine how far to scroll).
13811
13812 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
13813
13814         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
13815         (ToolBar was relying on SetBoundsCore to default the values sent 
13816         base off of BoundsSpecified.)
13817
13818 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13819
13820         * DateTimePicker.cs: Change Text so that when a null value or empty
13821           string is assigned to the test we always raise ValueChanged and
13822           TextChanged (earlier implementation would only raise ValueChanged
13823           if the current date value was different from DateTime.Now).
13824
13825 2007-04-03  Andreia Gaita <avidigal@novell.com> 
13826
13827         * ButtonBase: Call update after invalidation, fixes #80194
13828
13829 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13830
13831         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
13832           #79335.
13833
13834 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13835
13836         * XplatUIX11.cs: SetWMStyles: If the control is a form with
13837           FormBorderStyle = None, don't give the window any decorations.
13838           Fixes #81276.
13839
13840 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13841
13842         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13843         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
13844           to check for is a mix of several styles (such as WS_CAPTION for
13845           instance).
13846         * Control.cs: Don't paint an area bigger than the client area when
13847           painting the background colour. Add an internal GetCreateParams.
13848           Update calls to XplatUI.CalculateWindowRect due to API change.
13849         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
13850           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
13851           the size if it hasn't been handled by any windows. When creating
13852           and moving windows, X wants the location of the entire window, but
13853           the size of the client window, so add
13854           TranslateClientRectangleToXClientRectangle,
13855           TranslateWindowSizeToXWindowSIze and
13856           TranslatedXWindowSizeToWindowSize to cope with this, and call them
13857           before every window creation and move. Update CalculateWIndowRect
13858           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
13859           In AddConfigureNotify don't do anything if the hwnd is a zombie
13860           (fixes the BadWindow we were getting while running the tests),
13861           always calculate the offsets when it's a parentless window, not
13862           only when reparented, and translate the window size, since we're
13863           getting the client size of the whole window, excluding entire
13864           window.
13865         * Theme.cs: Added BorderSizableSize.
13866         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13867           anymore. Update calls to XplatUI.CalculateWindowRect due to API
13868           chang
13869         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
13870           change. Fake the window styles here instead of in XplatUIWin32 so
13871           that all back-ends get the same window styles (and it's Form that's
13872           deciding when to use wm, not the Win32 backend anyways)
13873         * Hwnd.cs: Completely reworked GetWindowRectangle and
13874           GetClientRectangle - they are now passed a CreateParams and they
13875           only use Style and ExStyle to determine the rectangles (they should
13876           now work just like Win32AdjustWindowRectEx - though quite a few
13877           special cases are probably missing). They should also be 100%
13878           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
13879           == rect), and all numbers (borders, menu sizes) are taken from the
13880           current theme. Added a GetBorders helper function that will return
13881           the borders for any given CreateParams (including captions and
13882           menus), and GetBorderSize that returns the given border size only.
13883         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13884           Hwnd.GetClientRectangle.
13885
13886 2007-04-02  Chris Toshok  <toshok@ximian.com>
13887
13888         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
13889         logic between the values we present to the user and the values
13890         which are stored in the column's property.  Also, don't call
13891         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
13892
13893 2007-04-02  Jackson Harper  <jackson@ximian.com>
13894
13895         * TextBoxBase.cs: Scroll faster!
13896
13897 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
13898
13899         * StatusStrip.cs: Layout fixes for PDN.
13900         * ToolStrip.cs: Set item's available to true, and placement to main when
13901         added.
13902         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
13903         changing in setter before doing any work, add InternalVisible.
13904         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
13905         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13906         infinite loop.
13907
13908 2007-04-02  Jackson Harper  <jackson@ximian.com>
13909
13910         * TextBox.cs: LBUTTON does not make the textbox select all of it's
13911         text on focus.
13912
13913 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13914
13915         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
13916           Makes ToolStripComboBoxes show up again.
13917
13918 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13919
13920         * ListView.cs: Add a hover_pending field in ListView
13921         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
13922         cycle (we are resetting the MouseHover logic in XplatUI
13923         to handle HoverSelection). Fixes #80429.
13924
13925 2007-04-02  Jackson Harper  <jackson@ximian.com>
13926
13927         * TextControl.cs: Make sure the attributes get set on the last
13928         tag.
13929         - Still have to do the end tag if we have stepped all the ways to
13930         the end.
13931
13932 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
13933
13934         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
13935         on an internal libgdiplus call when the information is already 
13936         available via the public API.
13937
13938 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13939
13940         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
13941           control is removed from a control collecftion.
13942         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
13943           Fixes FormPropertyTest (failed on rare occasions).
13944         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
13945           of Win32SetParent (when changing from no parent to a parent it
13946           might add the new parent's location in screen coordinates to this
13947           window's location).
13948         * Form.cs: Rework ChangingParent once again, now the handle is
13949           recreated whenever a FormWindowManager is added or removed (that is
13950           whenever a normal form is parented or abandoned). Also change
13951           CreateParams so that all non-toplevel windows always get the
13952           specified sice (StartupPosition is never considered for
13953           non-TopLevel forms).
13954         * ContainerControl.cs: Add ChildControlRemoved, the container control
13955           needs to be notified when a control is removed from it's
13956           collection, in the case the removed control is the active control.
13957
13958 2007-04-02  Jackson Harper  <jackson@ximian.com>
13959
13960         * RichTextBox.cs: Use the new methods for setting the font and
13961         color, these methods set the specified attribute without
13962         overriding the other attributes.
13963
13964 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
13965
13966         * ToolStripPanel.cs: Fixes for better layouts in PDN.
13967
13968 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
13969
13970         * TextBox.cs: Added internal ChangeBackColor method to special-case
13971         Color.Empty. Added check for invalid ScrollBars value.
13972         * TextBoxBase.cs: Added internal ChangeBackColor method.
13973         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
13974         internal ChangeBackColor method to special-case Color.Empty. Added
13975         check for invalid ScrollBars value.
13976
13977 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
13978
13979         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
13980
13981 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
13982
13983         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
13984         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
13985         [Based on submitted patch from Olivier Duff.]
13986
13987 2007-03-30  Jackson Harper  <jackson@ximian.com>
13988
13989         * TextBox.cs: Only select all on initial focus if the user has not
13990         specified a selection area.
13991
13992 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
13993
13994         * UserControl.cs: Override CreateParams.
13995
13996 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13997
13998         [ Fixes #80995 ]
13999
14000         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14001         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14002           check for is a mix of several styles (such as WS_CAPTION for instance).
14003         * Control.cs: Don't paint an area bigger than the client area when painting
14004           the background colour. Add an internal GetCreateParams. Update calls to
14005           XplatUI.CalculateWindowRect due to API change.
14006         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14007           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14008           hasn't been handled by any windows. When creating and moving windows, X
14009           wants the location of the entire window, but the size of the client
14010           window, so add TranslateClientRectangleToXClientRectangle,
14011           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14012           to cope with this, and call them before every window creation and move.
14013           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14014           removing DeriveStyles). In AddConfigureNotify don't do anything if the
14015           hwnd is a zombie (fixes the BadWindow we were getting while running the
14016           tests), always calculate the offsets when it's a parentless window, not
14017           only when reparented, and translate the window size, since we're getting
14018           the client size of the whole window, excluding entire window.
14019         * Theme.cs: Added BorderSizableSize.
14020         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14021           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14022         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14023           Fake the window styles here instead of in XplatUIWin32 so that all
14024           back-ends get the same window styles (and it's Form that's deciding when
14025           to use wm, not the Win32 backend anyways)
14026         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14027           they are now passed a CreateParams and they only use Style and ExStyle
14028           to determine the rectangles (they should now work just like
14029           Win32AdjustWindowRectEx - though quite a few special cases are probably
14030           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14031           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14032           sizes) are taken from the current theme. Added a GetBorders helper
14033           function that will return the borders for any given CreateParams
14034           (including captions and menus), and GetBorderSize that returns the given
14035           border size only.
14036         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14037           Hwnd.GetClientRectangle.
14038
14039 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14040
14041         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14042           layout of the mdi children is handled by CreateParams. Fixes
14043           #79964,
14044
14045 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14046
14047         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14048         processed.
14049
14050         * Form.cs: When active tracker mouse down is not processed, send event 
14051         back to control inside mouse position. [Fixes #81227]
14052
14053 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14054
14055         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14056         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14057         stealing focus from the active form on Windows.  (Control will be made
14058         visible in ShowWindow.)
14059
14060 2007-03-29  Mike Kestner  <mkestner@novell.com>
14061
14062         * ImageList.cs : add internal Changed event.
14063         * ListView.cs : hook up to StateImageList.Changed to perform
14064         invalidations when the the state icon list changes. [Fixes #81191]
14065
14066 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14067
14068         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14069         to prevent tooltips from stealing focus from the active form on Windows.
14070
14071 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14072
14073         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
14074
14075         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14076
14077 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14078
14079         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14080         balloons.
14081
14082 2007-03-29  Jackson Harper  <jackson@ximian.com>
14083
14084         * TextControl.cs: When deleting text from non multiline textboxes,
14085         we need to update the entire document, because line offsets will
14086         be shifting.
14087
14088 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14089
14090         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14091         added to theme, now we can create themes that uses diferent notify engines
14092         like notification-daemon from galago project or growl for Mac OS.
14093
14094 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14095
14096         * NotifyIcon.cs: Prevent Balloon to show in task bar.
14097
14098 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14099
14100         * XplatUIX11.cs: Prevent system to open more than one balloon.
14101
14102         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
14103         some compiler warning messages.
14104
14105 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14106
14107         [Fixes #79149]
14108
14109         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
14110
14111         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
14112         implemented, this methods is used by NotifyIcon.BalloonWindow class.
14113
14114         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
14115         systems.
14116
14117 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14118
14119         * ListViewItem.cs: Forgot to make Invalidate internal.
14120
14121 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14122
14123         * ListView.cs: Add a InvalidateSelection method to
14124         invalidate methods which are currently selected, and call
14125         it when setting FullRowSelect and HideSelection, instead of
14126         calling Redraw.
14127
14128 2007-03-28  Chris Toshok  <toshok@ximian.com>
14129
14130         * XplatUIX11.cs (UnmapWindow): reindent this block.
14131
14132         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
14133         the selection_start if we're moving the selection (that is, not
14134         extending it). Fixes bug #80461.
14135
14136 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14137
14138         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
14139         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
14140         create private ControlCollection.
14141
14142 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14143
14144         * Control.cs: We need to call OnVisibleChanged for our implicit
14145         children as well as our normal children.  Fixes scrollbars in
14146         comboboxes not showing up.
14147
14148 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14149
14150         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
14151         the check for IsHandleCreated first.  The check in CreateHandle is not
14152         good enough because CreateHandle can be overriden, and the override 
14153         should not be called if the handle is already created.
14154
14155 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14156
14157         * ToolStrip.cs: Remove MonoTODO for tooltips.
14158         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
14159         * ToolStripContainer.cs: Add custom ControlCollection class.
14160         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
14161         * ToolStripDropDown.cs: Add some missing properties/methods.
14162         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
14163         * ToolStripItem.cs: Remove MonoTODO for tooltips.
14164         * ToolStripManager.cs: Add IsShortcutDefined.
14165         * ToolStripOverflow.cs: Override LayoutEngine.
14166         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
14167         * ToolStripSeparator.cs: Add ImageKey.
14168
14169 2007-03-28  Jackson Harper  <jackson@ximian.com>
14170
14171         * TextControl.cs: If a char delete removes a line ending, we need
14172         to update the ending style.
14173         - Make sure the line ending calcs get called.
14174
14175 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14176
14177         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
14178           it was making the new code not work. Fixed a typo in the new code
14179           as well. Fixes #79826.
14180
14181 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14182
14183         * XplatUIWin32.cs:
14184         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
14185         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
14186         - SystrayBalloon method implemented.
14187         [Add support for notifyicon balloon on win32, #79149]
14188
14189 2007-03-27  Mike Kestner  <mkestner@novell.com>
14190
14191         * ThemeWin32Classic.cs : update StateImageList selection to mirror
14192         the ms behavior when only one image is added to the list.
14193         [Fixes #81191]
14194
14195 2007-03-27  Jackson Harper  <jackson@ximian.com>
14196
14197         * TextControl.cs: Improvements to non multiline line ending
14198         drawing/measuing.
14199
14200 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14201
14202         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
14203
14204 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14205
14206         * NotifyIcon.cs: 
14207         - Balloon message handling added.
14208         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
14209
14210         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14211         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
14212         to SystrayBalloon to me like other Systray method, also a
14213         handle parameter added.
14214
14215 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14216
14217         * ListView.cs: Show scrollbars even when items.Count == 0
14218         but the columns Width is bigger than the ListView.Width.
14219         Also, when columns.Count == 0 set layout_wd and layout_ht
14220         to the ClientRectangle values, so we don't show any scrollbar
14221         in that case.
14222
14223 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14224
14225         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
14226
14227 2007-03-27  Jackson Harper  <jackson@ximian.com>
14228
14229         * RichTextBox.cs: The RTF library decodes the text properly for us
14230         now.
14231
14232 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14233
14234         * ListView.cs: Display HeaderControl even when columns.Count == 0.
14235         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
14236         ListView header (HeaderControl), instead of Control.BackColor.
14237
14238 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14239
14240         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
14241         Fixes tab control issues where controls would not show up because they
14242         never received their OnVisibleChanged call.
14243
14244 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14245
14246         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
14247         BalloonTipShown).
14248
14249 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14250
14251         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
14252         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
14253         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
14254         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
14255         the handle.  Fix WindowState by using the internal variable until we are 
14256         sure that we've been shown.
14257         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
14258         max or min.
14259         [Fixes bug #81198]
14260
14261 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14262
14263         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
14264           (at least borders). Fixes #79386 on Linux (with a small difference
14265           in behaviour: when trying to resize a caption-less window metacity
14266           shows the sysmenu. Resizing is still possible though).
14267         * XplatUIWin32.cs: When setting window styles send request an extra
14268           WM_NCCALCSIZE when it's a form without title (due to no text and no
14269           caption), since Win32 seems to calculate it wrong the first time we
14270           get the message, though the second time things work as they should.
14271         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
14272           newly reparented window might show up unparented. Update
14273           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
14274           there's no title text. Fixes #79386.
14275
14276 2007-03-27  Mike Kestner  <mkestner@novell.com>
14277
14278         * ListBox.cs : don't perform invalidations if the handle hasn't been
14279         created.  [Fixes #80753]
14280
14281 2007-03-27  Mike Kestner  <mkestner@novell.com>
14282
14283         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
14284         [Fixes #80428]
14285
14286 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14287
14288         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
14289         needed to implement Balloon.
14290
14291 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14292
14293         * ListViewItem.cs: In the constructors that take
14294         an array of strings, don't use ListViewSubItemCollection.AddRange
14295         method to add items, since we need to have a different behaviour (in
14296         the constructors we add an item for each null string, opposed to
14297         the behaviour of AddRange, which adds nothing).
14298
14299 2007-03-26  Andreia Gaita  <avidigal@novell.com>
14300
14301         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
14302
14303 2007-03-26  Jackson Harper  <jackson@ximian.com>
14304
14305         * TextControl.cs: Draw and measure line endings when in non
14306         multiline mode.
14307         - When searching the text, count the end of the last line as a
14308         word boundary.
14309
14310 2007-03-26  Jackson Harper  <jackson@ximian.com>
14311
14312         * RichTextBox.cs: The selection_start and selection_end don't
14313         really track the correct tags for the selection. So we'll manually
14314         compute the correct tag here.
14315
14316 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14317
14318         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
14319           and Continuous styles. Fixes #79469.
14320
14321 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
14322
14323         * ToolStrip.cs: Implement Tooltips.
14324         * ToolStripItem.cs: Create internal method for determining tooltip.
14325
14326 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
14327
14328         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
14329
14330 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14331
14332         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
14333         it prevents a problem thak keeps icon visible after application 
14334         closes on win32.
14335
14336 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14337
14338         * NotifyIcon.cs: Balloon properties and methods created.
14339
14340         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14341         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
14342
14343 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
14344
14345         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
14346
14347 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
14348
14349         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
14350         parameter indicates which aspects were explicit/user-set.
14351         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
14352
14353 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
14354
14355         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
14356         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
14357         SmallChange, and Value (2.0).
14358         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
14359
14360 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14361
14362         * ListView.cs: Always set item_control.Width in LayoutDetails
14363         if View is Details. Setting it later in CalculateScrollBars
14364         in a not-so-corner scenario (the sum of columns width is
14365         not bigger than the ListView width when handle is created, and then
14366         that sum gets bigger by increasing the width of the columns)
14367         causes a very weird recursion path (which shouldn't be happening,
14368         since header_control sets it in CalculateScrollBars too). This bug
14369         appeared after Chris' fixes for handle created issues, so probably
14370         it's related to some handle-creation time.
14371
14372 2007-03-23  Chris Toshok  <toshok@ximian.com>
14373
14374         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
14375         case where there's an add row, just so we don't end up in a case
14376         where it's not displayed (this happens when the row is partially
14377         obscured).  Fixes bug #79574.
14378
14379 2007-03-23  Jackson Harper  <jackson@ximian.com>
14380
14381         * TextControl.cs:
14382         * TextBoxBase.cs:
14383         * RichTextBox.cs: Preserve line endings in the lines text buffer,
14384         also added an enum that represents the line ending type. 
14385
14386 2007-03-23  Andreia Gaita  <avidigal@novell.com>
14387
14388         * NumericUpDown.cs: Fix logic so Text and Value properties are not
14389         messed with in every method call, but only from DownButton, 
14390         UpButton, UpdateEditText() and ValidateText. Fixes #80346
14391
14392 2007-03-23  Chris Toshok  <toshok@ximian.com>
14393
14394         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
14395         format objects if the format spec is "".  Fixes bug #80889.
14396
14397 2007-03-22  Miguel de Icaza  <miguel@novell.com>
14398
14399         * ToolStripPanel.cs (Join): added stubs to build PDN3
14400
14401         * Control.cs (AutoScrollOffset): Add.
14402
14403         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
14404         property, its only implemented for Win32, on X11 it defaults to
14405         some hardcoded value.
14406
14407         * ToolStripItem.cs (AllowDrop): Add property
14408
14409 2007-03-22  Mike Kestner  <mkestner@novell.com>
14410
14411         * ListView.cs : in FullRowSelect Details mode, only enable box
14412         selection if the user clicks over the "item" column outside of the
14413         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
14414
14415 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14416
14417         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
14418           handle is not created yet.
14419         * Form.cs: Select: Don't call CreateHandle if the handle is already
14420           created, avoids a stack overflow on Windows when we are recreating
14421           controls.
14422         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
14423           they are made visible, and override AfterTopMostControl to keep
14424           them on top when other controls are brought to front.
14425           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
14426           or force_*scroll_visible is true (old implementation always shows
14427           scrollbars when needed, no matter what auto_scroll was set to).
14428         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
14429           IsHandleCreated check.
14430
14431 2007-03-22  Andreia Gaita  <avidigal@novell.com>
14432
14433         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
14434         row or col separator.
14435         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
14436
14437 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14438
14439         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
14440
14441 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14442
14443         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
14444         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
14445         every time. Fixes #80410.
14446
14447 2007-03-22  Chris Toshok  <toshok@ximian.com>
14448
14449         * BindingSource.cs (AddNew): partially implement.
14450
14451         remove a couple of NotImplementedException's
14452         to get bug #81148 closed.
14453
14454 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14455
14456         [Fixes #80380]
14457         
14458         * Control.cs:
14459         - UpdateCursor method added to update the screen cursor.
14460         - GetAvailableCursor method added to return cursor for enabled tree,
14461         it searches for cursor on control and it's parent's for enabled control.
14462         - Call UpdateCursor method on setter of Cursor property.
14463         - On setter of Enabled call UpdateCursor when it is false, we need to
14464         change cursor to normal (or to this parent cursor) because cursor 
14465         setting theres no effect to disabled controls.
14466         - Some minor source changes to follow the coding style guidelines.
14467
14468         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
14469         controls.
14470
14471 2007-03-22  Chris Toshok  <toshok@ximian.com>
14472
14473         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
14474         generates.
14475
14476 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14477
14478         * XplatUIX11.cs: Implement default locations for forms.
14479         * Form.cs: Completely rework startup location for forms. Fixes #79964.
14480         * Hwnd.cs: Add previous_child_startup_location (to track the current
14481           startup location for any child forms of the current form) and
14482           previous_main_startup_location (to track the startup location for
14483           the current toplevel form).
14484
14485 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14486
14487         * Control.cs: Don't trigger a layout if an implicit control is added
14488         that isn't visible.  Also, don't notify the owner when an implicit control
14489         is added.  (Owners shouldn't even know about their implicit controls.)
14490
14491 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14492
14493         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
14494         to save some re-layouts.
14495
14496 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
14497
14498         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
14499         [Fixes #81203]
14500
14501 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14502
14503         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
14504         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
14505
14506 2007-03-21  Mike Kestner  <mkestner@novell.com>
14507
14508         * ListView.cs : disable selection update for non-left button clicks
14509         with mods and over selected items.  [Fixes #80524]
14510
14511 2007-03-20  Jackson Harper  <jackson@ximian.com>
14512
14513         * TextControl.cs:
14514         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
14515         \r\r\n, \n.
14516
14517 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14518
14519         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
14520           very probably a more complicated calculation there. Update the
14521           textbox' ForeColor and BackColor when the ComboBox' colors are
14522           changed. Change the border change in LayoutComboBox to only affect
14523           the textbox, not all the calculations there. Seems to fix most of
14524           #79436.
14525
14526 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14527
14528         * ComboBox.cs: Handle Home and End keys as well as all combinations of
14529           modifiers + navigation keys as input keys, enables advanced text
14530           selection in the combobox (like Shift+Left Arrow for instance).
14531           ComboTextBox now overrides Focused and returns whatever
14532           ComboBox.Focused returns, since it really should be focused
14533           whenever the ComboBox is. Fixes #80795. Also make the border around
14534           the text box one pixel bigger, as mentioned in #79436.
14535
14536 2007-03-20  Jackson Harper  <jackson@ximian.com>
14537
14538         * TreeView.cs: Don't offset the images, this was causing some
14539         artifacts when expanding/collapsing with images that were the
14540         exact height of the treenode.
14541
14542 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14543
14544         * TrackBar.cs: Query the theme for the correct value when the mouse
14545           moves and the thumb is pressed. 
14546         * Theme.cs: Added TrackBarValueFromMousePosition
14547         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
14548           implementation was updating the trackbar value when drawing, now
14549           the drawing methods only draw. Fixes #80900. Refactored the
14550           calculations out to TrackBarValueFromMousePosition and
14551           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
14552           according to the mouse position whenever it wants to. Changed the
14553           light coloured pen when drawing the thumb from ControlLight to
14554           ControlLightLight, because the ControlLight is the same colour as
14555           the background so the 3D effect is lost. 
14556
14557 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14558
14559         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
14560         defined. Fixes #80784.
14561
14562 2007-03-20  Marek Habersack  <mhabersack@novell.com>
14563
14564         * ContextMenuStrip.cs: align with the change introduced in
14565         revision 74664.
14566
14567 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14568
14569         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
14570         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
14571         in SetTopmost.
14572
14573 2007-03-19  Chris Toshok  <toshok@ximian.com>
14574
14575         * Control.cs (WmPaint): don't make use of the Handle property
14576         after an event is emitted, as the user could have closed the
14577         form/destroyed the control.  Store the Handle in a local variable
14578         and make use of that.  Fixes bug #80768.
14579
14580 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14581
14582         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
14583         behavior in X11 environments.
14584
14585 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14586
14587         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
14588         because on setter of topmost we dont call SetTopmost when handle is not
14589         created.
14590
14591 2007-03-20  Jackson Harper  <jackson@ximian.com>
14592
14593         * TextControl.cs: Need to use SelectionLength () not
14594         selection_length, since that var is reset to -1.
14595         - Draw the caret when we don't have focus.
14596         * TextBox.cs: The selectall actually doesn't occur until the first
14597         focus.
14598         * TextBoxBase.cs: Need to update the caret position after a
14599         selectall.
14600         
14601 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14602
14603         * ListView.cs: Enable scrolling when using Tile view.
14604
14605 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14606
14607         [Fixes #80902]
14608
14609         * XplatUIDriver.cs: Abstract SetOwner method created.
14610
14611         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
14612         must be implemented and was masked as todo.
14613
14614         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
14615         GWL_HWNDPARENT.
14616
14617         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
14618         cheking for null owner to remove transient. The SetTopmost will be change
14619         on a decond step.
14620
14621         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
14622         SetTopmost. Now owned forms will work properly in win32 and X11.
14623
14624 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14625
14626         * MdiWindowManager.cs: Update function name.
14627         * Form.cs: After closing a form MdiParent is always null.
14628         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
14629           better what it should do: necessary book-keeping when the form is
14630           closed, it should not close the form itself.
14631
14632 2007-03-19  Andreia Gaita  <avidigal@novell.com>
14633
14634         * ListViewItem.cs: Fix back and fore color. The subitems only
14635         use their own colors if they are set, otherwise use the listview's
14636         colors. Don't set default colors on constructor for subitem.
14637         Fixes #79315.
14638
14639 2007-03-19  Mike Kestner  <mkestner@novell.com>
14640
14641         * ListView.cs : make box selection for Details views with 
14642         FullRowSelect conform to MS behavior when clicking in the "item" 
14643         column and clicking outside the defined columns.
14644         [Fixes case 5-6 of #80374]
14645
14646 2007-03-19  Chris Toshok  <toshok@ximian.com>
14647
14648         * ScrollableControl.cs: create the controls from within the ctor,
14649         but don't actually add them until our handle is created.  this
14650         fixes a NRE possibility jpobst found (if you override OnLayout in
14651         a subclass, it's called before your ctor).  Also, add a
14652         IsHandleCreated guard to UpdateSizeGripVisibility as well.
14653
14654 2007-03-19  Jackson Harper  <jackson@ximian.com>
14655
14656         * TextBox.cs: Reduce the amount of invalidation we do.
14657         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
14658         some of them are true by default on MS.
14659         - Add some functions to reduce the amount of invalidates we do.
14660         * TextControl.cs: Less invalidation.
14661
14662 2007-03-19  Chris Toshok  <toshok@ximian.com>
14663
14664         [ Fixes #81773, and *seems* to fix #81553 as well ]
14665
14666         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
14667         AccumulateDestroyedHandles.  We need to do it *after* we send
14668         WM_DESTROY, as the user's code can access Control.Handle in
14669         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
14670         move the WM_DESTROY/zombie handling to before the call to
14671         XDestroyWindow.  For some reason without this ordering
14672         FormTest.RecreateHandle hangs.  This ordering is semantically
14673         equivalent, however, as XDestroyWindow is async anyway.
14674
14675 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
14676
14677         * RichTextBox.cs: Reset backcolor_set after setting default.
14678
14679 2007-03-19  Chris Toshok  <toshok@ximian.com>
14680
14681         * ScrollableControl.cs: the scroll position should not effect the
14682         canvas size.  commit patch from georgegiolfan@yahoo.com, which
14683         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
14684         
14685 2007-03-19  Chris Toshok  <toshok@ximian.com>
14686
14687         * ScrollableControl.cs: clean this up a bit.  create the
14688         scrollbars in the ctor and just show/hide them as needed.  Also,
14689         make hscroll_visible/vscroll_visible internal to Recalculate, and
14690         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
14691         everywhere else.  This seems to fix the scrollbars appearing
14692         beneath the content for me (i have *no* idea why that is,
14693         however.)
14694
14695 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
14696
14697         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
14698         some redundacy for stuff in Anchor and Dock that base will take care of.
14699         [Fixes #80762]
14700
14701 2007-03-19  Mike Kestner  <mkestner@novell.com>
14702
14703         * ListView.cs : make box selection for Details views without 
14704         FullRowSelect dependent on the text bounds, not item bounds.
14705         * ListViewItem.cs : add an internal property to obtain the TextBounds
14706         in Details view.  [Fixes case 1-4 of #80374]
14707
14708 2007-03-19  Andreia Gaita  <avidigal@novell.com>
14709
14710         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
14711         we're < 2.0. #78448 && #80316
14712
14713 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
14714
14715         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
14716         have the same style available as the previously selected one.  Also,
14717         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
14718
14719 2007-03-19  Jackson Harper  <jackson@ximian.com>
14720
14721         * TextControl.cs: Add an alignment property that all new lines
14722         will be given.
14723         - Make sure to use the align shift when calculating the line's X
14724         position.
14725         * TextBox.cs: Set the alignment on the document as well as on all
14726         the document lines.
14727
14728 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14729
14730         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
14731           throw if setting the parent of an mdichild that already has an
14732           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
14733           AssemblyProductAttribute in the assembly, use the type's namespace (as
14734           MS seems to do). CreateControl: don't create the handle if the control
14735           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
14736           create handle if the control is not a form. Change FocusInternal to
14737           virtual so that it can be overriden by Form.
14738         * TextBox.cs: Update call to FocusInternal.
14739         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
14740           form is not a toplevel form when it's a mdi child, so update is_toplevel
14741           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
14742           hasn't been created. Show (IWin32Window): Don't allow this overload for
14743           toplevel windows. CenterToParent/CenterToScreen/Select: create the
14744           handle as MS does. SetVisibleCore: if called on a MdiChild and the
14745           parent isn't visible yet, save the visibility and restore it when the
14746           parent is made visible.
14747         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
14748           methods, since the visibility of the scrollbars can be changed from
14749           several places, not only from AutoScroll.
14750           [Fixes #81179]
14751
14752 2007-03-19  Jackson Harper  <jackson@ximian.com>
14753
14754         * RichTextBox.cs: Enable shortcuts by default.
14755         * TextBoxBase.cs: Add conditional shortcuts.  
14756
14757 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
14758
14759         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
14760
14761 2007-03-19  Chris Toshok  <toshok@ximian.com>
14762
14763         [ Fixes bug #80604]
14764         
14765         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
14766         swallow the message we're waiting on, instead of delivering it, as
14767         this is only used for the WM_SHOWWINDOW raised from
14768         MapWindow/UnmapWindow, and the message needs to be generated
14769         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
14770         before doing the Map/Unmap.  Also make sure that the Hwnd is still
14771         alive after the message has been handled.
14772
14773         *before* the window is shown.
14774
14775         * Control.cs (CreateControl): guard a few more things inside the
14776         if (!is_created) block, as we might end up being called again -
14777         yay .net.
14778         (WmShowWindow): call CreateControl if we're showing the control.
14779
14780 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14781
14782         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
14783           controls without a handle if they have any parent with a handle. In
14784           Dispose add a check whether the handle is created or not before
14785           calling BeginInvoke, this removes the need of the extra disposing
14786           parameter (which was bogus anyway since it didn't prevent the
14787           invoke from happening, it only skipped the check for an existing
14788           handle, meaning that the invoke would call on an inexistent
14789           handle).
14790
14791 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
14792
14793         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
14794         appears in taskbar.
14795
14796 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
14797
14798         * MessageBox.cs:
14799         - Fixed a problem that dont show help button for messages with 3 buttons.
14800         - Refactory button size and position calculations, now dont use fixed 
14801         values, also fixed button sizes (#80043) and form's border space.
14802         - AddButton method created, now all other AddButton methods call this one.
14803         - Some other source code cosmetic changes.
14804
14805 2007-03-18  Jackson Harper  <jackson@ximian.com>
14806
14807         * RichTextBox.cs: Don't do this all fonts must match check if
14808         there is only one char selected.
14809
14810 2007-03-18  Jackson Harper  <jackson@ximian.com>
14811
14812         * TreeView.cs: ScrollWindow works properly now, so we don't need
14813         to screw around with the scroll area.  This fixes some artifacts
14814         when expanding and collapsing.
14815
14816 2007-03-18  Jackson Harper  <jackson@ximian.com>
14817
14818         * TextBoxBase.cs: Allow updating the selection position when the
14819         cursor is outside the textarea, but we have a capture.
14820         * TextControl.cs: A special case for when the cursor is outside
14821         the bounds of the TB.
14822         
14823 2007-03-18  Jackson Harper  <jackson@ximian.com>
14824
14825         * TextBoxBase.cs: Remove image pasting code for now.  There is no
14826         way to get an image on the clipboard right now anyways.
14827         * TextControl.cs:
14828         * RichTextBox.cs: Use the new RTF Picture class for pictures.
14829
14830 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
14831
14832         * MessageBox.cs:
14833         - Set window properties in constructor intead of on CreateParams.
14834         - Remove topmost from Window ExStyle.
14835         - Set ShowInTaskbar to false.
14836         - Set form border to FixedDialog.
14837         - Some cosmetic changes and remove unneeded comments.
14838         - It fixes itens 2,3 and 4 of bug #80043.
14839
14840 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
14841
14842         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
14843         none was explicitly set. Fixes part of bug #79949.
14844
14845 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
14846
14847         * ToolStripComboBox.cs: Add AutoComplete*.
14848
14849 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
14850
14851         * ToolStripComboBox.cs: Add FlatStyle.
14852
14853 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
14854
14855         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
14856         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
14857
14858 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14859
14860         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
14861           CheckBox.cs, RadioButton.cs, BindingSource.cs,
14862           DataGridColumnStyle.cs: Remove warnings.
14863
14864 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14865
14866         * Menu.cs: MergeMenu: Check menu argument for null before looping over
14867           it.
14868         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
14869           visibility of mdi child forms. FormSizeChangedHandler: update the
14870           maximized size if size has changed while maximized.
14871         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
14872           creating the handle.
14873         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
14874           avoid creating the handle if not created.
14875         * XplatUI.cs: Update debug output.
14876         * XplatUIStructs.cs: Added ToString's for a couple of structs.
14877
14878 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
14879
14880         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
14881         ProcessCmdKey().
14882         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
14883         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
14884         Implement keyboard shortcuts.
14885
14886 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
14887
14888         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
14889         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
14890         ColorDialog and all derived classes.
14891
14892 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
14893
14894         [ Fixes bug #79828 ]
14895
14896         * ToolBar.cs:
14897         - Rename ToolBarButtonInfor to ToolBarItem.
14898         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
14899         - Maintain an array of ToolBarItem, used instead of ToolBarButton
14900         collection to be able add same button more than one time on a toolbar.
14901         - Refactory all properties and methods to use ToolBarItem. 
14902
14903         * ToolBarButton.cs: 
14904         - Remove all propeties and methods that is now in ToolBarItem.
14905         - Rectangle propery now gets the rectangle from first ToolBarItem to
14906         mimic win32 behavior.
14907         - Size calculation and layout methods also removed.
14908
14909         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
14910         ToolBarItem instead of ToolBarButton to right drawing buttons when
14911         same button/separator was added more than one time to ToolBar.
14912
14913         * ThemeNice.cs: Same as above. 
14914
14915 2007-03-15  Andreia Gaita  <avidigal@novell.com>
14916
14917         * XplatUIX11.cs: Fire extra MouseMove events right after
14918         MouseDown and MouseUp, emulating win32's <censored> behaviour
14919         for apps that rely on it.
14920
14921 2007-03-15  Jackson Harper  <jackson@ximian.com>
14922
14923         * TextControl.cs:
14924         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
14925         it is drawn on the controls client window and there is no NC
14926         area.
14927         - Set the background color to gray on 2.0 when we are readonly.
14928
14929 2007-03-15  Chris Toshok  <toshok@ximian.com>
14930
14931         [ Fixes bug #81144 ]
14932         
14933         * XplatUIX11.cs: implement VirtualScreen independently of
14934         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
14935         property.
14936
14937 2007-03-15  Chris Toshok  <toshok@ximian.com>
14938
14939         * Hwnd.cs: add an internal field for the cached_window_state.
14940
14941         * XplatUIX11.cs: cache the window state, invalidating the cache
14942         (and thus re-querying the X server) only when we see an update to
14943         the _NET_WM_STATE property.
14944
14945 2007-03-15  Chris Toshok  <toshok@ximian.com>
14946
14947         * BindingSource.cs: get a lot of the unit tests working.
14948
14949 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
14950
14951         * Control.cs: Modify UpdateStyles to store distances when bounds >=
14952         0 instead of just bounds > 0.  [Fixes bug #80912]
14953
14954 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
14955
14956         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
14957         and methods.
14958
14959 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
14960         
14961         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
14962         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
14963         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
14964         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
14965
14966 2007-03-15  Chris Toshok  <toshok@ximian.com>
14967
14968         [ Fixes #81101 ]
14969         
14970         * Control.cs: add Ivan's fix for 81101, with a slight modification
14971         - you can set control.Target to null.
14972
14973 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
14974
14975         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
14976         HideDropDown, use Hide instead to prevent an NRE.
14977         [Fixes bug #81147]
14978
14979 2007-03-14  Jackson Harper  <jackson@ximian.com>
14980
14981         * TextBoxBase.cs: Mess with the creation stuff a little. We need
14982         to calculate the document before the handle is created, in some
14983         cases. (Actually just one case).
14984
14985 2007-03-14  Jackson Harper  <jackson@ximian.com>
14986
14987         * TextBoxBase.cs: Need to display the caret after letting the base
14988         wndproc handle the focus methods, because the caret display
14989         methods check the focus state.
14990         - Try to display the caret after updating it's position with SelectWord.
14991         - Don't need to do an immediate update on this recalc, since there
14992         will be an invalidate anyways.
14993
14994 2007-03-14  Jackson Harper  <jackson@ximian.com>
14995
14996         * TreeView.cs: Some workarounds so that we can match event order a
14997         little better.
14998
14999 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
15000
15001         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15002         #80803. Avoid NullReferenceException when Control does not have
15003         parent. Fixed different blinkstyle issues. Only subscribe to Tick
15004         event a single time. Only draw error icon when control is created and
15005         visible. Fixes failing unit tests.
15006
15007 2007-03-14  Andreia Gaita  <avidigal@novell.com>
15008
15009         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15010         Selecting events. Fire Leave and Enter events when changing tabs.
15011
15012 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
15013
15014         * TreeView.cs: Add TreeViewNodeSorter.
15015         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15016
15017 2007-03-14  Chris Toshok  <toshok@ximian.com>
15018
15019         * Form.cs: go ahead and remove the RecreateHandles that jpobst
15020         removed earlier and I had him add back it.  It turns out metacity
15021         *does* in fact handle the MOTIF_WM_HINTS property changing, it
15022         just doesn't redraw the window titlebar until you resize the
15023         window.  This also means we aren't recreating the entire window
15024         hierarchy on X when you change this property.  And it looks better
15025         on windows, too.
15026
15027 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15028
15029         * ListViewItem.cs:
15030         * ListView.cs: Collecting selection information
15031         is now done in SelectedIndexCollection rather than in
15032         SelectedListViewItemCollection. This is done so we can
15033         have the selection information code in one single place
15034         (virtual mode selection information entirely depends on
15035         SelectedIndexCollection).
15036
15037 2007-03-13  Miguel de Icaza  <miguel@novell.com>
15038
15039         * ErrorProvider.cs: Add stubs for ISupportInitialize
15040
15041 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15042
15043         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15044         in the right order with the right values, from the Checked property, 
15045         just as MS does (instead of triggering them from ListView).
15046
15047         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15048
15049 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15050
15051         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
15052         the correct handler in OnItemCheck method (ItemCheckEventHandler 
15053         instead of EventHandler). This used to throw an InvalidCastException.
15054
15055 2007-03-13  Jackson Harper  <jackson@ximian.com>
15056
15057         * TextBoxBase.cs: Calculate the document before the handle is
15058         created, so there isn't an extra invalidate called.
15059
15060 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
15061
15062         * Form.cs: Don't set owner in ShowDialog until we are sure
15063         that we aren't going to throw an exception.  [Fixes bug #80773]
15064
15065 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
15066
15067         * TreeView.cs: Make it compile.
15068
15069 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15070
15071         * Control.cs: Another place we don't call SizeFromClientSize.
15072         * Form.cs: Another place we don't call SizeFromClientSize.
15073         [Fixes bug #81125]
15074
15075 2007-03-12  Jackson Harper  <jackson@ximian.com>
15076
15077         * TreeView.cs: Basically emulating some strangness here with
15078         exanding nodes and setting node positions when windows aren't
15079         created.
15080         - Also attempting to walk the node tree less than previously, and
15081         just use visible order calculations for determining offsets.
15082         - oops made scrolling backwards.
15083         * TreeNode.cs: We need to start nodes with a zero visible order,
15084         because the order calcs are based on the first nodes order.
15085
15086 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15087
15088         * Form.cs: Don't exit the program if RecreateHandle is called on
15089         the main form.
15090
15091 2007-03-12  Chris Toshok  <toshok@ximian.com>
15092
15093         * XEventQueue.cs: remove the use of PostQuitState.
15094
15095         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
15096         WM_QUIT message in GetMessage, return false (and if we're in the
15097         nested WaitForHwndMessage, repost the WM_QUIT message).
15098
15099 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15100
15101         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
15102         or the MaximizeBox properties.  [Part of bug #80640]
15103
15104 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
15105
15106         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
15107         no links.
15108
15109 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15110
15111         * ToolStripItem.cs: Fix some tests I broke by checking Visible
15112         instead of visible.
15113
15114 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
15115
15116         * FileDialog.cs: Use text of File name combobox to determine what
15117         files the user selected. Added tokenizer to parse the file names.
15118         Fixes bug #81123.
15119
15120 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15121
15122         * Control.cs: We can't call SizeFromClientSize in the constructor,
15123         but we still need to do the same work, so make an internal version.
15124         [Fixes bug #80621]
15125
15126 2007-03-12  Jackson Harper  <jackson@ximian.com>
15127
15128         * TreeView.cs:
15129         * TreeNode.cs:
15130         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
15131         IsExpanded.
15132
15133 2007-03-12  Jackson Harper  <jackson@ximian.com>
15134
15135         * TextBoxBase.cs: Now that the handles are being created a little
15136         later, we need to make sure that the document is recalculated when
15137         the handle is created.
15138
15139 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
15140
15141         * Theme.cs: GetLinkFont abstract method added.
15142         
15143         * LinkLabel.cs: 
15144         - Remove CalcTrimRectangle, no longer needed.
15145         - Factor also remove, position issues must be fixed in libgdiplus.
15146         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
15147         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
15148         care about font used to draw links.
15149         - Set TabStop to true when control is "Selectable", control is selectable
15150         when have one or more links. Fixes #80501 (test case is also added).
15151         - Set the LinkArea values after links change, LinkArea values must be
15152         based in first link position and size, a test case was created.
15153         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
15154         the attribute must be true LinkArea.Length > 0. The same was applied to
15155         TabStop.
15156         
15157         * ThemeWin32Classic.cs: 
15158         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
15159         in draw method.
15160         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
15161         color change.
15162         - Draw focus rectangle for every parts focused, including parts that 
15163         is on another line, its because regions returns various rectangles
15164         and not only one. Needed to mimic W32 look.
15165         - Uses Graphics.Clip to delimite region painted, it mean that now 
15166         complete text is passed to DrawString, with this we solve layout
15167         issues without create another text renderer.
15168         - Uses Region.Intersect to fix some flickers problems, now only needed
15169         parts will redrawed.
15170         - This changes fixes #79614 and some other unreported issues, on Linux 
15171         some layout problems still remain, the problem is under 
15172         MeasureCharacterRanges but it is an libgdiplus bug.
15173
15174 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
15175
15176         * TextBox.cs: Set for foreground color.
15177         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
15178         this is already done in Control.
15179
15180 2007-03-10  Jackson Harper  <jackson@ximian.com>
15181
15182         * TextBox.cs: Set the background color, but reset the
15183         backcolor_set flag which is just for the user setting the
15184         background color.
15185
15186 2007-03-09  Chris Toshok  <toshok@ximian.com>
15187
15188         * Control.cs: really remove the call to XplatUI.SetVisible from
15189         CreateHandle(), like I said I did when I merged the branch.
15190
15191         * BindingSource.cs: implement some more of this stuff.
15192
15193 2007-03-09  Jackson Harper  <jackson@ximian.com>
15194
15195         * TextBox.cs: Don't explicitly set our background colors.
15196         * TextControl.cs:
15197         * TextBoxBase.cs: Draw readonly text.
15198         - Need to invalidate when backcolor or readonly are changed.
15199         
15200 2007-03-09  Jackson Harper  <jackson@ximian.com>
15201
15202         * TextBoxBase.cs: Don't set the forecolor until the handle is
15203         created.
15204         - Do not raise OnPaint, and removed some old debug code.
15205
15206 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
15207
15208         * ScrollableControl.cs: Fix mouse wheel scrolling.
15209
15210 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15211
15212         * Control.cs: Wire up MouseDoubleClick event.
15213
15214 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15215
15216         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
15217         top or bottom.
15218         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
15219         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
15220         item is added.  This logic was moved to ToolStrip.OnItemAdded.
15221         [Fixes bug #81090]
15222
15223 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15224
15225         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
15226
15227 2007-03-08  Jackson Harper  <jackson@ximian.com>
15228
15229         * TreeView.cs: Show the correct image for selected node (this used
15230         to work, not sure how the code got deleted). Also implemented 2.0 feature
15231         SelectedImageKey.
15232
15233 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15234
15235         * ListView.cs:
15236         * ListViewItem.cs: Cache index in items when retrieving them
15237         in VirtualMode.
15238
15239 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15240
15241         * ToolStripItem.cs: Don't return the explicit_size if we are using 
15242         AutoSize.  Fixes invalidation issue when user has explicitly set a
15243         size and has AutoSize = true.
15244
15245 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15246
15247         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
15248
15249 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15250
15251         * DataGridView.cs: Remove event handler from DataView when a
15252         DataTable is used as DataSource.
15253
15254 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15255
15256         * Control.cs: Create internal setter for client_size to allow it to be
15257         set without triggering resizing code.
15258         * Form.cs: Calculate client_size in constructor, only change client_size
15259         in FormBorderStyle property if Handle has been created.
15260         [Fixes #80574, #80791]
15261
15262 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
15263
15264         * SystemInformation.cs: Add TerminalServerSession.
15265
15266 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15267
15268         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
15269         TreeView code.
15270
15271 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15272
15273         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
15274         Handle before we were supposed to.  Now checks ActivateOnShow property
15275         in Control.
15276         * Control.cs: Add internal ActivateOnShow property.
15277         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
15278         for ActivateOnShow.
15279         * Hwnd.cs Remove no longer needed no_activate field.
15280
15281 2007-03-07  Jackson Harper  <jackson@ximian.com>
15282
15283         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
15284         2.0 properties
15285         * DrawTreeNodeEventHandler.cs: Add
15286         * DrawTreeNodeEventArgs.cs: Correct default value.
15287         
15288 2007-03-07  Chris Toshok  <toshok@ximian.com>
15289
15290         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
15291         to be called before NativeWindow.WndProc.  Put the HwndCreating
15292         magic there to hook up our Hwnd's to handles.
15293
15294 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
15295
15296         * DataGridView.cs: Comment out debug code.
15297
15298 2007-03-07  Chris Toshok  <toshok@ximian.com>
15299
15300         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
15301         to make the rest of the world happy]
15302
15303         * Control.cs (CreateHandle): there's no need to call
15304         XplatUI.SetVisible here, it's effectively done by
15305         XplatUI.CreateWindow on X now, and always was on windows.
15306
15307         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
15308         shortcircuit out of the loop if we have a message loop running on
15309         this thread.
15310
15311         [Changelog from merge]
15312
15313         2007-03-05  Chris Toshok  <toshok@ximian.com>
15314
15315                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
15316                 causes handle creation.
15317
15318         2007-02-28  Chris Toshok  <toshok@ximian.com>
15319
15320                 * ApplicationContext.cs: Add a flag to make sure we only raise the
15321                 ThreadExit event once (ExitThreadCore can be indirectly called
15322                 from a few places.)  I don't like the additional flag, but it
15323                 makes the event ordering/count correct.
15324
15325                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
15326                 without locking the collection.  An enumerator doesn't give us any
15327                 protection from modification anyway.  Lock the thread hash and
15328                 replace the complicated enumerator loop with a foreach.
15329                 (Application.CloseForms): make internal so it can be called from
15330                 ApplicationContext.  This should probably be moved to MWFThread.
15331                 (Application.ExitThread): don't call MWFThread.Current.Exit()
15332                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
15333                 when the runloop exits (in response to WM_QUIT.)
15334                 (Application.RunLoop): add a comment (and check) for
15335                 context.MainForm being null after setting context.MainForm.Visible
15336                 = true.  This is because you're perfectly free to dispose of a
15337                 form in VisibilityChanged.  Chalk this up to another case where we
15338                 need to synchronously generate WM_ACTIVATE from Control.Show.
15339                 Also, add handling for WM_QUIT here so we'll exit the loop.
15340                 
15341                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
15342                 fact that we don't wait if we're only unmapping the whole_window
15343                 makes me a bit nervous, but it doesn't seem to cause any problems
15344                 yet.
15345
15346                 also, add a comment about the stupid, broken and wrong resetting
15347                 of PostQuitState to false in GetMessage().
15348
15349                 In PostQuitMessage, we need to add a WM_QUIT message to the
15350                 thread's queue.  We use the FosterParent to get the right
15351                 handle/hwnd/queue.
15352
15353                 Lastly, in SetVisible, we need to unmap both windows, since the
15354                 waiting only happens when we're unmapping the client window.  So
15355                 now, the *only* time we unmap just the whole_window is in the hack
15356                 for resizing a control to 0,0.
15357                 
15358         2007-02-21  Chris Toshok  <toshok@ximian.com>
15359
15360                 * Application.cs (CloseForms): rewrite this so that we don't
15361                 modify the list while we're traversing it.
15362
15363         2007-02-20  Chris Toshok  <toshok@ximian.com>
15364
15365                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
15366                 of OnHandleCreated.
15367                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
15368                 handle is created.  otherwise we'll create it here.
15369                 (VerticalScrollEvent): same here.
15370
15371                 * Application.cs (CloseForms): call Form.Dispose, don't post
15372                 WM_CLOSE_INTERNAL.
15373
15374                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
15375                 here. Application should Dispose() of the Form's.
15376
15377                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
15378                 WM_DESTROY as well.
15379                 (MapWindow,UnmapWindow): only actually do the waiting for
15380                 SHOWWINDOW if the control we're dealing with is a Form.
15381                 (CreateWindow): if the control isn't a form, SendMessage
15382                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
15383
15384                 * Control.cs (SetVisibleCore): always use is_visible here, not
15385                 value.  If we use value, we can end up re-setting something
15386                 visible if, for instance, you do Control.Hide() in a delegate
15387                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
15388
15389         2007-02-20  Chris Toshok  <toshok@ximian.com>
15390
15391                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
15392                 the message we need.  PeekMessage returning false should not be a
15393                 condition under which we exit the loop.
15394
15395         2007-02-15  Chris Toshok  <toshok@ximian.com>
15396
15397                 * Control.cs (Refresh): only refresh if we've got a handle and are
15398                 visible.
15399                 (CreateAccessibilityInstance): CreateControl() here.
15400                 (UpdateChildrenZOrder): complicate the code loop even more by
15401                 taking into account controls that haven't had their handle
15402                 created, and those that aren't visible.  But on the flip side,
15403                 simplify the code by splitting it into two loops.  one which
15404                 builds up the list of child controls we're interested in, and the
15405                 other that sets the z order of those children.
15406
15407         2007-02-14  Chris Toshok  <toshok@ximian.com>
15408
15409                 * Control.cs: Control.AccessibilityObject causes the control to be
15410                 created, not just the handle.
15411
15412         2007-02-14  Chris Toshok  <toshok@ximian.com>
15413
15414                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
15415                 problem on X where a window might have its handle created (and be
15416                 visible) while the window is unmapped.  calling XConfigureWindow
15417                 on an unmapped window is bad, and generates X errors.
15418
15419         2007-02-13  Chris Toshok  <toshok@ximian.com>
15420
15421                 * Control.cs (CreateHandle): don't loop over our children setting
15422                 their parent here.  do it when in WndProc when we're shown.
15423                 (UpdateChildrenZOrder): make this internal so we can call it from
15424                 ScrollableControl.
15425                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
15426                 creating its handle.  Also, remove the calls to PerformLayout from
15427                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
15428                 OnVisibleChanged only seems to be called directly here for the
15429                 toplevel control.  It's propagated down the window hierarchy by
15430                 calls to child.OnParentVisibleChanged.
15431                 (OnVisibleChanged): don't do layout here - it's done (oddly
15432                 enough, according to a glance at stack traces on ms.net..) in
15433                 ScrollableControl.
15434                 
15435                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
15436                 z order of our children before calling PerformLayout.
15437
15438         2007-02-12  Chris Toshok  <toshok@ximian.com>
15439
15440                 [big change, fixes #80020]
15441                 
15442                 * AccessibleObject.cs: we need to make owner internal again to fix
15443                 some of ControlAccessibleObject.
15444
15445                 * Control.cs: lots of changes here.  add support for WM_CREATE,
15446                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
15447                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
15448                 we create child controls.  leave the MonoTODO's for the
15449                 accessibility calls, but fix the exceptions so the tests pass.
15450
15451                 Add the InvalidOperationExceptions to Invoke methods, and remove a
15452                 couple of InvokeInternal methods we aren't using.
15453                 
15454                 Also, add a couple of CreateHandle calls in places where we know
15455                 the handles are being created but our code doesn't reference
15456                 .Handle.
15457
15458                 Make SetVisibleCore call OnVisibleChange if the handle isn't
15459                 created.  If the handle is created, we rely on XplatUI.SetVisible
15460                 generating the event synchronously.
15461                 
15462                 Lastly, make sure we don't use this.Handle inside CreateHandle,
15463                 because we can call back into client (and that code can dispose of
15464                 the control).
15465
15466                 * XplatUIStructs.cs: misc/cleanup.
15467
15468                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
15469                 although we don't populate the wParam properly.
15470                 (CreateWindow): generate WM_CREATE.
15471                 (MapWindow,UnmapWindow): make these calls synchronous, at great
15472                 performance expense (particularly in the unmap case), to match
15473                 win32 behavior.
15474
15475                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
15476                 to call it.
15477                 (set_MdiParent): don't recreate the handle unless it's been
15478                 created already.
15479                 
15480                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
15481                 it's created.
15482
15483                 * NativeWindow.cs: this is probably the weirdest part of the
15484                 patch.  We need a way to link up the window being created to the
15485                 WM_CREATE message.  Since we can only be creating one window at a
15486                 time on a given thread, we keep track of a per-thread reference so
15487                 we can dispatch it properly.  We also need to keep track of the
15488                 Hwnd currently being created so that the win32 backend doesn't
15489                 have problems.
15490                 
15491                 * XplatUIWin32.cs: a similar change to the one we made in
15492                 NativeWindow.cs.
15493
15494 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15495
15496         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
15497         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
15498         to draw the menu shortcut string.
15499
15500 2007-03-07  Jackson Harper  <jackson@ximian.com>
15501
15502         * TreeNode.cs: Add the 2.0 collapse method.
15503
15504 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15505
15506         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
15507
15508 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15509
15510         * DataGridView.cs: Change DataSource will clear column and row
15511         lists. Call Invalidate() to reflect DataSource change.
15512
15513 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15514
15515         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
15516         and a new row is added to it.
15517
15518 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15519
15520         * DataGridView.cs: Add columns when DataSource is en empty list but
15521         is a System.Data.DataView (from a System.Data.DataTable).
15522
15523 2007-03-06  Andreia Gaita  <avidigal@novell.com>
15524
15525         * Label.cs: Implement AutoEllipsis (2.0)
15526
15527 2007-03-06  Jackson Harper  <jackson@ximian.com>
15528
15529         * TreeView.cs: Implement 2.0 TopNode setter property.
15530         - Use a local var instead of the skipped_nodes field for computing
15531         how many nodes to skip.  Otherwise we won't scroll because the
15532         valuechanged handler checks if skipped_nodes is equal to the new
15533         value.
15534         - Implement 2.0 Sort method.
15535         - Add useless 2.0 DoubleBuffer property
15536         - Implement 2.0 LineColors property.  Lets you change the color of
15537         the lines in the tree. Terribly useful for creating non cohesive
15538         desktops.
15539         - Implement 2.0 image key feature.
15540
15541 2007-03-06  Jackson Harper  <jackson@ximian.com>
15542
15543         * TreeView.cs: We can't get the bounds of the nodes before raising
15544         the AfterSelect event, because that event could change the node's
15545         bounds (scrolling, font change, etc).
15546
15547 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15548
15549         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
15550         * Form.cs: Don't recreate handle when creating FormWindowManager, just
15551           update window styles. In CreateParams us VisibleInternal instead of
15552           VIsible to get the actual visible flag set for this form.
15553         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
15554           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
15555           handle the case when the form is already maximized, in which case
15556           it should be restored. Fixes #81043.
15557
15558 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15559
15560         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
15561
15562 2007-03-05  Jackson Harper  <jackson@ximian.com>
15563
15564         * TreeViewHitTestInfo.cs: implement.
15565
15566 2007-03-05  Jackson Harper  <jackson@ximian.com>
15567
15568         * InternalWindowManager.cs: class status fix.
15569
15570 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15571
15572         * InternalWindowManager.cs: All windows that have a parent
15573         are confined to their parent when they're being moved.
15574         Fixes #80822.
15575
15576 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
15577
15578         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
15579         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
15580
15581 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15582
15583         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
15584           buttons invisible before deciding which ones should be visible
15585           (fixes minimize/maximize buttons showing up in toolwindows). Remove
15586           an unused variable.
15587         * InternalWindowManager.cs: Remove warning.
15588
15589 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15590
15591         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
15592         to throw an InvalidOperationException is virtual mode is being used.
15593
15594 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
15595
15596         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
15597         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
15598         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
15599         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
15600         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
15601         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
15602
15603 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15604
15605         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
15606           driver.KeyboardDelay from XplatUI.KeyboardDelay 
15607         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
15608           (patch by Sergey Volk)
15609
15610 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15611
15612         * ToolWindowManager.cs: Added, contains logic for
15613           tool windows.
15614         * CreateParams.cs: Add a few helper methods and an
15615           internal variable to know which control the CreateParams belongs
15616           to.
15617         * Control.cs: Call Form.ChangingParent when the
15618           parent is about to be changed.
15619         * XplatUIX11.cs: DeriveStyles (): Set
15620           caption_height for all windows that have captions and are children.
15621           Update to use ToolWindowManager instead of InternalWindowManager
15622           for ToolWindows.
15623         * XplatUIWin32.cs: Set fake window styles for all
15624           windows that have window managers.
15625         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
15626           now duplicated for mdi windows when they are
15627           maximized, first for the buttons the window itself has, then for
15628           the buttons that appear in the menu bar. Makes things a little
15629           easier). Updated UpdateWindowDecorations, SetWindowState and the
15630           mouse eventhandlers accordingly.
15631         * Form.cs: Add ChangingParent (), contains the
15632           logic of what should happen when the parent changes. In MdiParent
15633           don't set things that ChangingParent () is doing. When handling
15634           WM_CLOSE, we can close the form if there are any other modal forms
15635           and the current form is a descendent of the modal form.
15636         * InternalWindowManager.cs: A lot of refactoring,
15637           the title buttons are now extracted to a separate container class
15638           that takes care of all button code (clicks, tooltips, etc). Moved
15639           Iconic|Maximized|Normal Bounds properties to this class from
15640           MdiWindowManager, so that the window state logic can succeed for
15641           other than mdi wm's. Implemented general window state change logic.
15642           Moved CreateButtons to ThemeWin32Classic, since the theme might
15643           override which buttons are available when as well as the exact
15644           location.
15645         * FormWindowManager.cs: Added, contains logic for
15646           normal forms.
15647         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
15648           which buttons go where (and if they are at all visible). 
15649           Removed special handling of maximized windows, since they aren't special. 
15650           In DrawManagedWindowDecorations don't try to draw the text if it is
15651           empty.
15652         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
15653           use whatever the wm gives us.
15654
15655 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
15656
15657         * ButtonBase.cs: Add 2.0 properties.
15658         * Button.cs: Override Draw for 2.0.
15659         * Control.cs: Add Entered and Selected properties.
15660         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
15661         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
15662         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
15663         buttons.
15664         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
15665
15666 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
15667
15668         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
15669
15670 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
15671
15672         * XplatUIWin32.cs: Register a new class with Windows each time we get
15673         a new ClassStyle.  [Fixes bugs #79432, #80817]
15674         * Controls.cs: Set the correct ClassStyle in CreateParams.
15675         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
15676
15677 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
15678
15679         * ListView.cs: Add fireEvent argument to ReorderColumn since the
15680         ColumnReordered event must not be signaled when modifying DisplayIndex
15681         of a ColumnHeader. Added internal ReorderColumns method which takes
15682         care of drawing, and updating the internal DisplayIndex of the
15683         ColumnHeader. Added AddColumn method which is invoked from
15684         ColumnHeaderCollection when adding or inserting columns, and which
15685         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
15686         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
15687         Recalculated dispay indices after removing a ColumnHeader.
15688         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
15689         match MS. Allows last display index to be returned after ListView
15690         is disposed. Update actual location of ColumnHeader when DisplayIndex
15691         is modified.
15692
15693 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
15694
15695         * LinkLabel.cs: Improve CalcTrimRectangle.
15696         
15697         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
15698
15699 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
15700
15701         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
15702         get rectangle as a result value.
15703
15704 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
15705
15706         * LinkLabel.cs: Theres some diferences between rectangle return from 
15707         MeasureCharacterRanges and the area used for DrawString to fix this 
15708         CalcMeasurementFactor method was created, it calcules the diferences
15709         to be use later to adjust rectangle in draw operations. Fixes #80473.
15710         
15711         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
15712         to adjust draw rectangle.
15713
15714 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
15715
15716         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
15717         text and some other changes to reduce and optimize source code.
15718
15719 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
15720
15721         * RadioButton.cs: Implement 2.0 event.
15722         * RelatedImageListAttribute.cs: Implement new class.
15723
15724 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
15725
15726         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
15727
15728 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
15729
15730         * CheckBox.cs: Implement 2.0 functionality.
15731
15732 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15733
15734         * ListView.cs: Refactor Add and AddRange methods of
15735         ListViewItemCollection, to not update the ListView
15736         everytime an item is added in AddRange. Also move the update
15737         code to a new CollectionChanged method, and call it
15738         from other methods that need it as well (this should also fix some
15739         bugs when Sorting is used).
15740
15741 2007-02-27  Jackson Harper  <jackson@ximian.com>
15742
15743         * TextControl.cs: Try to never let the caret stay in a non-text
15744         tag.
15745         * TextBoxBase.cs: Update the caret.
15746
15747 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
15748
15749         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
15750         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
15751         delete POINT structure, duplicate of one in XplatUIStructs.
15752         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
15753
15754 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
15755
15756         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
15757         edit box since otherwise the Label would immediately be set (even if
15758         the user did not modify the label). In OnKeyDown set Handled to true
15759         if Return or Escape was pressed. In ColumnHeaderCollection unlink
15760         columns that are to be removed. In ListViewItemCollection unlink items
15761         that are to be removed.
15762
15763 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
15764
15765         * TextRenderer.cs: If we set a GDI clip region, we need to clear
15766         it when we are done.  [Fixes bug #80949]
15767
15768 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15769
15770         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
15771
15772 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15773
15774         * ListView.cs: I forgot to commit the changes for ListView 
15775         in my previous patch.
15776
15777 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15778
15779         * Clipboard.cs: Partially implement an overload of SetDataObject.
15780         * Form.cs: Implement ShowWithoutActivation.
15781         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
15782
15783 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15784
15785         This is a first set of changes to make the Virtual mode works,
15786         by avoiding the retrieval of ListViewItem instances until
15787         draw time.
15788
15789         * ListView.cs: Store item position in the ListView instead of the
15790         ListViewItem, this way we don't request the Bounds property of
15791         ListViewItem inside the ListView calculations, as well as cache the item
15792         size in item_size field. Store indexes instead of ListViewItem
15793         instances in the matrix used by icon view. Add a ItemMatrixLocation
15794         struct to hold the row and col info of the matrix info.
15795
15796         * ListViewItem.cs: Don't store the location anymore, and only cache
15797         the rectangles for GetBounds. Use the ListView.GetItemLocation
15798         method to retrieve the actual location.
15799
15800 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15801
15802         * TextRenderer.cs: Add clipping support, thanks to George.
15803         [Fixes bug #80949]
15804
15805 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15806
15807         * ListViewItem.cs: Cancel label edit when item is removed from 
15808         ListView.
15809         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
15810         event before the edit textbox is displayed.  Added CancelEdit method
15811         which is used end to editing while ignoring the value set by the
15812         user. In EndEdit, set focus to ListView to avoid losing focus to
15813         other controls. In ListViewItemCollection.Clear, cancel editing of
15814         any of the items.  In Remove, cancel editing of item being removed.
15815         Avoid udplicate code by modifing RemoveAt to invoke Remove.
15816
15817 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15818
15819         * FileDialog.cs: Update FSEntry when move is successful. Fixes
15820         bug #80948.  
15821
15822 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15823
15824         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
15825         compatible with non X11 systems. Fixes #80901.
15826
15827 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15828
15829         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
15830         whether the item should be unselected and reselect. We do no want this
15831         when we're starting to edit the label. Do not fire the 
15832         SelectedIndexChanged event from ListView when its already been fired
15833         by modifying ListViewItem.Selected. Fixes bug #80943.
15834
15835 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15836
15837         * TextRenderer.cs: Previos commit logic was backwards.
15838
15839 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15840
15841         * TextRenderer.cs: Don't add padding on MeasureText if we were
15842         sent the NoPadding flag.
15843
15844 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15845
15846         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
15847         after DrawButton. To prevent image overlaps button borders SetClip and 
15848         ResetClip added before and after draw image. Fixes #79129.
15849
15850 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15851
15852         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
15853         window size, it fix problem when you run under win32 that theres
15854         Size diferent than ClientSize. Also fix controls size and positions
15855         to mimic Win32. Fixes #80837.
15856
15857 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
15858
15859         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
15860         menu area to fix some problems for non X11 systems. Fixes #80613.
15861
15862 2007-02-22  Jackson Harper  <jackson@ximian.com>
15863
15864         * TreeNode.cs: When a node is expanded, set its is_expanded flag
15865         even if it doesn't have any children.
15866
15867 2007-02-22  Jackson Harper  <jackson@ximian.com>
15868
15869         * TreeView.cs: Calculate the top node 'on the fly', this
15870         eliminates issues where you need to click on the tree before
15871         scrolling it to get the top node computed correctly.
15872         * TreeNodeCollection.cs: We don't need to mess with the top node
15873         anymore.
15874
15875 2007-02-22  Jackson Harper  <jackson@ximian.com>
15876
15877         * DataGridViewRow.cs: Fix typo so height can actually be set.
15878         Patch by Peter Grimm.
15879
15880 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15881
15882         * FileDialog.cs: Fixed support for renaming files and directories.
15883         * ListView.cs: Do not lose focus when edit is canceled. Process
15884         Escape as regular key (to prevent closing of dialogs).
15885
15886 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15887
15888         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
15889         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
15890
15891 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15892
15893         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
15894         did not modify label.
15895         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
15896         modified the text. Reset Label when user presses Escape in edit mode.
15897         Move focus to ListView after having cancelled or finished editing the
15898         label.
15899
15900 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
15901
15902         * ComboBox.cs: Removed unnecessary initializations. Marked items field
15903         private. Clear textbox when Text is set to null and SelectedIndex is
15904         already -1.
15905         * FileDialog.cs: Removed unnecessary initializations. Removed 
15906         workarounds for ComboBox bugs that are now fixed. Modified
15907         DefaultExt, InitialDirectory and Title property to change null to
15908         zero-length string in getters. Avoid directly accessing fields.
15909
15910 2007-02-20  Jackson Harper  <jackson@ximian.com>
15911
15912         * TextControl.cs: Remove RecalAlignments call, that was some
15913         debugging leftovers.
15914         - Don't use the line indent when we shouldn't.
15915         * RichTextBox.cs: Add support for paragraph left indents.
15916
15917 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15918
15919         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
15920         Seems like the class status pages doesn't catch params differences.
15921
15922 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
15923
15924         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
15925
15926 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
15927
15928         * ComboBox.cs: Setting Text should have no effect if item text of
15929         selected item exactly matches value. First lookup text using
15930         case-sensitive comparison, and fallback to case-insensitive comparison.
15931         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
15932         allow startIndex to be last index. Changed ArgumentOutOfRangeException
15933         paramname to match MS. Restart from first item if string is not found
15934         after startIndex. Fixed paramname of ArgumentNullException that is
15935         thrown for null value in ObjectCollection.Contains.
15936
15937 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
15938
15939         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
15940
15941 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15942
15943         * ListControl.cs: In SelectedValue use value.Equals to compare for
15944         equality instead of ==, otherwise it will fail for strings.
15945         Fixes #80794.
15946
15947 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15948         
15949         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
15950         since the caret won't show up unless ShowSelection is true. 
15951         Fixes #80795.
15952
15953 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15954
15955         * Application.cs: When disabling all forms but the main form, do not
15956           disable any descendants of the main form (such as mdi children or
15957           other parented forms). Fixes #80822 on Windows.
15958         * Form.cs: If we have a parent, set the WS_CHILD style.
15959         * Control.cs: Update the window styles if the control whose parent has
15960           changed is a form (the WS_CHILD style has to be switched).
15961
15962 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
15963
15964         * XplatUIStructs.cs: MsgUIState structure added.
15965
15966 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
15967
15968         * FileDialog.cs: Removed need for separate fileName field. On 2.0
15969         profile, do not check filename(s) for illegal character if filename(s)
15970         were set non-interactively but always check on 1.0 profile. Fixed NRE
15971          in DefaultExt and only strip off first leading dot. Improve exception
15972         message when invalid Filter is set. Do not ignore InitialDirectory if
15973         it does no exist. Store specified Title, and if empty use default
15974         title (depending on type of dialog). Added an internal DialogTitle 
15975         property for retrieving dialog title. Fixed logic of displayed dir to
15976         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
15977         string as its buggy.
15978         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
15979         FileName is a zero-length string (it can never be null). Override 
15980         DialogTitle property to set default title of dialog box.
15981         * SaveFileDialog.cs: Override DialogTitle property to set default
15982         title of dialog box.
15983
15984 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
15985
15986         * FileDialog.cs: Modify default text of filename and filetype labels
15987         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
15988         after we've updated the SelectedIndex. Fixes part of bug #80887.
15989         * SaveFileDialog.cs: Set text of filetype label.
15990
15991 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15992
15993         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
15994         label field. Needed by latest Jackson's fixes for ListView.
15995
15996 2007-02-16  Andreia Gaita  <avidigal@novell.com>
15997
15998         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
15999         print preview images.
16000
16001 2007-02-16  Jackson Harper  <jackson@ximian.com>
16002
16003         * ListView.cs: Make AfterLabelEdit work correctly.
16004         * FileDialog.cs: After changing the name of the folder, we have to
16005         make sure that it is created, or that we pop up an error because
16006         it already exists.
16007
16008 2007-02-16  Jackson Harper  <jackson@ximian.com>
16009
16010         * X11Dnd.cs: Implement aliases on mime handlers, so things like
16011         System.String are mapped to text.
16012         - Handle dataobjects, getting all the possible formats out of them
16013         - We dont need the drag event args before we give feedback. This
16014         allows feedback cursors to be immediate before selections have
16015         been converted.
16016
16017 2007-02-16  Jackson Harper  <jackson@ximian.com>
16018
16019         * TextBoxBase.cs: Modified the method for inserting images to
16020         taking a line and position instead of tag and position.
16021         * RichTextBox.cs: Handle PngBlip data by inserting the png image
16022         into the RTF file.
16023         * TextControl.cs: Allow images to be inserted as the first tag of
16024         a line.
16025         - Fix some off by one issues when we assume the first tag is a
16026         text tag, not an image tag.
16027
16028 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16029
16030         * ListView.cs: Set focus to ListView when ItemControl gets a
16031         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
16032         Fixes part of #80467.
16033
16034 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16035
16036         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16037           validate Text input (if null or empty string reset Value to default
16038           value). Fixes #80830.
16039
16040 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16041
16042         * ListView.cs: Set owner as null for columns and items when
16043         Dispose is invoked. Fixes #80607.
16044
16045 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
16046
16047         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16048         showing DropDowns, don't show a Grip when doing Flow layout.
16049         [This fixes the toolbox in PDN 2.72.]
16050         * ToolStripItem.cs: Add Anchor property and some internal properties to
16051         reduces needed changes to FlowLayout.
16052         * ToolStripOverflow.cs: Remove unused variable.
16053         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16054         use it in the layout calculations.
16055
16056 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16057
16058         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16059         reported in #79640.
16060         
16061         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16062         size calculation.
16063
16064 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16065
16066         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
16067         MeasureString format, it can make button very large in some cases, it is
16068         strange but is what win32 do.
16069
16070 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16071
16072         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
16073         size calculation.
16074
16075         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16076         rendering, the value is based on MenuAccessKeysUnderlined.
16077
16078 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16079
16080         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16081         for most themes.
16082         
16083         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16084         
16085         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16086         and use MenuAccessKeysUnderlined instead.
16087
16088 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16089
16090         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16091         A selected control would not get a Focus call if:
16092                 - the default active control of the container is the same as
16093                   the one that was selected
16094                 - we are switching from one container to another
16095         Under these conditions, the container being selected already has
16096         an active_control, which is the same as the one being activated, 
16097         so set_ActiveControl would always return and not send the Focus
16098         call. Fix to check if the currently active control of the container
16099         is actually focused.
16100
16101 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
16102
16103         * StatusStrip.cs: Implement the spring layout.
16104         * ToolStripControlHost.cs: Make sure the hosted control's visibility
16105         always matches the host.
16106         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
16107         and TextAfterImage.
16108
16109 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16110
16111         * Control.cs: Code reorganization only.
16112           - Reorganize the WndProc cases so that each case has it's own handling method, 
16113           to help with the no-line-numbering stack traces.
16114           - Formatting changes (it's vstudio's fault, really :p)
16115
16116 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16117
16118         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
16119           Thread.CurrentUICulture to match DateTimePicker's (and MS)
16120           behaviour.
16121
16122 2007-02-12  Jackson Harper  <jackson@ximian.com>
16123
16124         * RichTextBox.cs:
16125         * TextBox.cs: By default we have a non multiline document
16126         - use the multiline property instead of the internal variable
16127         * TextBoxBase.cs: Treat multiline and non multiline the same in
16128         most places.
16129         - Use the documents multiline flag instead of tracking it ourself
16130         * TextControl.cs: Attempt at getting multiline to match MS
16131         behavior.  Lines now track an offset, which is either their X or Y
16132         offset depending on whether or not we are in multiline mode.
16133         - Update all the methods to understand that lines have an X value.
16134         - Fix crash in Undo::Duplicate when empty lines are deleted.
16135
16136 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16137
16138         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
16139         code moved to properties PreferredHeight and PreferredWidth. It solve the
16140         all problems when preferred sizes must be recalculated. Fixes #80801.
16141
16142 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16143
16144         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
16145         font height when compatible_text_rendering is false. Partially fix #80801.
16146
16147 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16148
16149         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
16150
16151 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16152
16153         * Form.cs: Improved exception messages in ShowDialog.
16154
16155 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16156
16157         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
16158         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
16159         if not set. Fixes bug #80764. Avoid accessing current_settings field
16160         directly.
16161
16162 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
16163
16164         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
16165         false.
16166
16167         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
16168         public in 2.0 and for easy maintenance and dont break compatibility it is 
16169         internal in 1.1.
16170         
16171 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16172
16173         * ToolStripItem.cs: Implement using images from ImageList.
16174
16175 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16176
16177         * DateTimePicker.cs: Change default date-formatting culture from
16178           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
16179           seems to be the way MS does it.
16180
16181 2007-02-08  Andreia Gaita  <avidigal@novell.com>
16182
16183         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
16184         (the 6 was cut off on the right side)
16185
16186 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16187
16188         * Form.cs: Tell MenuStrips to close when the form is clicked.
16189         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
16190         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
16191         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
16192         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
16193         support for Overflow, where items that do not fit are automatically
16194         reparented to a drop down menu.
16195         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
16196         Also: fixes bug #80747.
16197
16198 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16199
16200         * ComboBox.cs: Remove warning (unused code).
16201         * ScrollableControl.cs: Remove warning for 1.1 profile.
16202
16203 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16204
16205         * Form.cs: Remove a warning.
16206
16207 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16208
16209         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
16210           'g' specifier, not documented anywhere, but seems to always show up
16211           as a single space (might have something to do with the DateTime 'g'
16212           specifier, which is the era format, but since DateTimePicker can't
16213           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
16214           won't crash if the format has an unmatched quote. Now shows
16215           single-character formats correctly. Fixes #80744.
16216
16217 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16218
16219         * StatusStrip.cs: Stretch property needs to call base.Stretch,
16220         not this.Stretch to fix stack overflow. [Fixes bug #80760]
16221
16222 2007-02-07  Chris Toshok  <toshok@ximian.com>
16223
16224         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
16225         background color.  it overwrites the background image we've
16226         already painted.  Fixes #80599.
16227
16228 2007-02-07  Chris Toshok  <toshok@ximian.com>
16229
16230         * DataGrid.cs: return immediately from Edit() when there are no
16231         columns.  Fixes #80662.
16232
16233 2007-02-07  Chris Toshok  <toshok@ximian.com>
16234
16235         * MessageBox.cs: fix #80625.  don't always show the Help button in
16236         2.0.  use the displayHelpButton parameter to determine if we
16237         should show it. Also, make the internal show_help field private.
16238
16239 2007-02-07  Chris Toshok  <toshok@ximian.com>
16240
16241         * Control.cs (SetVisibleCore): check in the proposed patch for
16242         80604, and set is_visible before calling CreateControl.
16243
16244 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
16245
16246         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
16247         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
16248         on it.
16249
16250 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
16251
16252         * MenuAPI.cs: hotkey_active internal field added, it is required because
16253         we need to know when hotkeys must be draw, before this change a keystate
16254         Navigating was used but we can have menu in navigating state without
16255         hotkeys. Fixes #80694.
16256         
16257         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
16258
16259 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16260
16261         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
16262           corresponding events and methods to be internal for 1.1 profile and
16263           public for 2.0 profile (required by SizeGrip).
16264         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
16265           implicit control list). Don't set the size nor the location of the
16266           SizeGrip anymore as it's not needed.
16267         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
16268           draw directly on the captured control (fixes #80656). Removed
16269           ShowGrip (it wasn't used anywhere), redraw (always true), added
16270           GetDefaultSize and GetDefaultRectangle to calculate defaults.
16271         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
16272           be called from SizeGrip.
16273
16274 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16275
16276         * Timer.cs: Throw ArgumentException if Interval <= 0.
16277
16278 2007-02-05  Jackson Harper  <jackson@ximian.com>
16279
16280         * TreeView.cs: We need to check scrollbar visibility when window
16281         visibility is updated, because non visible trees don't ever add
16282         scrollbars.
16283         * Cursor.cs: We want the override cursor to be reset to NULL when
16284         we set current cursor to the default cursor.
16285
16286 2007-02-05  Jackson Harper  <jackson@ximian.com>
16287
16288         * TextControl.cs: Don't have crlfs when we are non multiline.
16289         - Consolidate the line position.
16290
16291 2007-02-05  Jackson Harper  <jackson@ximian.com>
16292
16293         * X11Keyboard.cs: BACK+CTRL gets a special char code.
16294
16295 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16296
16297         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
16298           handling LeaveNotify->NotifyUngrab in order to send
16299           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
16300           after calling XUngrabPointer, so we call WindowUngrabbed directly
16301           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
16302         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
16303           MouseCaptureChanged correctly. Also create handles if changing
16304           Capture (matches MS behaviour).
16305
16306 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16307
16308         * SizeGrip.cs: Make the last change 2.0 only.
16309
16310 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16311
16312         * SizeGrip.cs: If resizing and the capture is lost, revert any size
16313           changes to initial size (fixes #80597).
16314
16315 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16316
16317         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
16318
16319 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16320
16321         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
16322           background) and only allow dragging if enabled. This way the
16323           sizegrip can be used to fill the open square that otherwise would
16324           have been shown in the bottom right corner of ScrollableControl
16325           when ScrollableControl is not suppose to support sizing.
16326         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
16327           sizegrip is shown and enabled, and hook up with necessary events.
16328
16329 2007-02-01  Chris Toshok  <toshok@ximian.com>
16330
16331         * DataGridTextBoxColumn.cs: clean up the
16332         GetFormattedString/GetColumnValueAtRow combination of functions.
16333         Also fix UpdateUI, and the initial state of
16334         IsInEditOrNavigateMode.
16335
16336         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
16337         aren't supposed to scroll the textbox here, we're supposed to
16338         scroll the datagrid.
16339
16340 2007-02-01  Chris Toshok  <toshok@ximian.com>
16341
16342         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
16343         setting the position.
16344
16345 2007-02-01  Chris Toshok  <toshok@ximian.com>
16346
16347         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
16348         here, since the most recent focus fixes keep us from generating
16349         the Leave event when our textbox gets focus.
16350         (Edit): we should be passing null for the column style's
16351         instantText parameter.
16352         
16353 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
16354
16355         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
16356         raised.  Fixes menu text/icons not showing up in PDN.
16357
16358 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16359
16360         * Control.cs: Remove code in constructor that makes every
16361         control with WS_CHILD set have initial location -1, -1.
16362
16363 2007-01-31  Jackson Harper  <jackson@ximian.com>
16364
16365         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
16366         XplatUIX11.
16367         * XplatUIX11.cs: Give teh keyboard to teh dnd.
16368
16369 2007-01-31  Jackson Harper  <jackson@ximian.com>
16370
16371         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
16372         - Remove some debug code.
16373
16374 2007-01-31  Jackson Harper  <jackson@ximian.com>
16375
16376         * XplatUIX11.cs: If you set the override cursor during a grab, it
16377         should actually override the grab cursor.  This comes into play
16378         when you are setting custom cursors in a DND feedback method.
16379
16380 2007-01-31  Jackson Harper  <jackson@ximian.com>
16381
16382         * X11Dnd.cs: Add support for handling the QueryContinue and
16383         GiveFeedback events.
16384         - Cancel drag and drop actions when the escape key is clicked.
16385         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
16386         can handle the ESCAPE key.
16387         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
16388         done when dnd events are continued after the button is released.
16389         - Add a new helper method so that dnd can translate key events.
16390
16391 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
16392
16393         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
16394         make it more obvious what is happening.
16395
16396 2007-01-30  Jackson Harper  <jackson@ximian.com>
16397
16398         * XplatUIX11.cs: Don't break when handling button release in drag
16399         and drop operations. We need that BUTTONUP message to get through
16400         so capture is released.
16401         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
16402         this is handled automatically when the mouse is down.
16403
16404 2007-01-30  Jackson Harper  <jackson@ximian.com>
16405
16406         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
16407         is closed, so we need to make sure that we aren't changing the
16408         dialog result when the OK (Open or Save) button has been clicked
16409         and we are closing the window ourselves.  Note we don't need to
16410         worry about the cache being written in this case, because it was
16411         already done in the previous FilOk call.
16412
16413 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16414         
16415         * DateTimePicker.cs: Remove a warning.
16416         * ComboBox.cs: Remove a couple of warnings.
16417
16418 2007-01-29  Chris Toshok  <toshok@ximian.com>
16419
16420         * XplatUIX11.cs: don't crash, and remove the icon if the user has
16421         set one, if SetIcon is passed a null icon.
16422
16423 2007-01-29  Andreia Gaita  <avidigal@novell.com>
16424
16425         * TextBox.cs: Redraw when the password characters changes
16426         * TextControl.cs: Check if textbox has a password char and draw 
16427         a line of password chars instead of the text in the line. LineTag gets 
16428         an extra Draw() method which allows document.Draw to override the text 
16429         that will be drawn. Removes 1024 char limitation on length of passworded 
16430         lines.
16431
16432 2007-01-29  Jackson Harper  <jackson@ximian.com>
16433
16434         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
16435         single chars is not.
16436
16437 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
16438
16439         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
16440         one pixel.  Fix a StackOverflowException caused by an overload wrongly
16441         calling itself.
16442
16443 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
16444
16445         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
16446         also remove ProcessArrowKey and put the code inside ProcessKeys.
16447
16448 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
16449
16450         * PaddingConverter.cs: Added.
16451
16452 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16453         
16454         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
16455         ShowPanels is false (fixes #80600). Only draw up to 127 characters
16456         of text (fixes #80601). For panels clip the text to draw to the
16457         panel (fixes #80603).
16458
16459 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16460
16461         * ComboBox.cs: Fixed implementation of ResetText.
16462
16463 2007-01-25  Jackson Harper  <jackson@ximian.com>
16464
16465         * TextControl.cs: For the last char of a line we need to use the
16466         line size, not that chars width, since it won't actually be
16467         computed since the right side of a char is based on the start of
16468         the left side of the next char, and the next char does not exist.
16469
16470 2007-01-25  Chris Toshok  <toshok@ximian.com>
16471
16472         * Splitter.cs: fix the new unit tests, and reindent some switch
16473         statements.
16474
16475 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16476
16477         * ComboBox.cs: Implemented 2.0 methods and events.
16478         * TextBoxBase.cs: Added OnTextUpdate, so that
16479         ComboBox.ComboTextBox can inform ComboBox of it.
16480
16481 2007-01-25  Jackson Harper  <jackson@ximian.com>
16482
16483         * TextControl.cs: Respect ShowSelection when deciding whether or
16484         not to display the caret, this allows comboboxes to have carets
16485         when the combotextbox does not have focus.
16486
16487 2007-01-25  Jackson Harper  <jackson@ximian.com>
16488
16489         * TextControl.cs: Add a Suspend/Resume for updating, basically the
16490         same as the Suspend/Resume for recalc, except this will do actual
16491         Invalidates.
16492         - New Undo manager, works much like the MS version.
16493         - Implemented Redo
16494         * TextBoxBase.cs: The Cut operation is undoable.
16495
16496 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16497         
16498         * TextBoxBase.cs: Don't antialias text. Makes it look way better
16499         on Windows (no difference on Linux).    
16500
16501 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16502
16503         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
16504         we don't want to activate any windows. Fixes #79433.
16505
16506 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
16507
16508         - ButtonBase.cs: Fix capitalization of parameter: disposing.
16509         [Fixes bug #80609]
16510
16511 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
16512
16513         * FileDialog.cs:
16514         - Move to using System.ComponentModel.EventHandlerList
16515         - Replace Refresh with Invalidate
16516         - Clear the mime filecache on closing
16517         - Some other memory reducing work. After beeing closed FD now uses
16518           only about 300 KB for the fdo mime stuff plus the memory of the
16519           cached icons.
16520         * Mime.cs: Changed coding style and removed unnecessary commented
16521         code. Some more memory memory reducing work.
16522
16523 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16524
16525         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
16526         a few other missing 2.0 properties.
16527         * Theme.cs: Added DrawFlatStyleComboBox.
16528         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
16529
16530 2007-01-24  Chris Toshok  <toshok@ximian.com>
16531
16532         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
16533         wake_waiting flag, not just when there's data to be read.  if we
16534         don't, then future wakeup's won't reach us and we'll be doomed to
16535         wait for the entire 1 second timeout forever (unless there are X
16536         events to be had).
16537
16538 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
16539
16540         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
16541         until you pass Items.Count, not Items.Count - 1 like 1.1.
16542
16543 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
16544
16545         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
16546
16547 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
16548
16549         * ToolStripContainer.cs: The recent Dock fix exposed that I was
16550         adding the panels in the wrong order.
16551
16552 2007-01-24  Jackson Harper  <jackson@ximian.com>
16553
16554         * TextBoxBase.cs: When we move the caret we also need to move the
16555         selection, this fixes some random crashing after doing select
16556         text, unselect, delete a char, paste.
16557
16558 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16559
16560         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
16561
16562 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16563
16564         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
16565         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
16566         * ToolBar.cs: Force redraw in BackgroundImageChanged.
16567
16568 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16569
16570         * ToolBar.cs:
16571         - Implement support for vertical toolbars. Fixes #80539;
16572         - Call LayoutToolBar when resize, it fix some other problems in layout.
16573         - Rename requested_height to requested_size, as we can have width on it
16574         when toolbar is vertical.
16575         - Create a private property "Vertical" that uses Dock to verify when 
16576         toolbar is vertical or not.
16577         - Set ControlStyles when change Dock property.
16578         - Refactory in LayoutToolBar to have better variables names and to support
16579         vertical toolbars.
16580         - Fixes default value for ButtonSize when button count is equal zero, size
16581         must be (39, 36) test case writed.
16582
16583 2007-01-23  Chris Toshok  <toshok@ximian.com>
16584
16585         * Control.cs: fix the checks so that they work correctly for mdi
16586         parents/children.
16587
16588 2007-01-23  Chris Toshok  <toshok@ximian.com>
16589
16590         * Control.cs: ControlCollection seems to have super-secret
16591         abstraction breaking knowledge of Mdi containers.  allow MdiClient
16592         to add toplevel controls.
16593
16594 2007-01-23  Chris Toshok  <toshok@ximian.com>
16595
16596         * Control.cs: throw an ArgumentException if a toplevel control is
16597         added to our control collection from ControlCollection.Add, as
16598         well as from ControlCollection.IList.Add.  This fixes the
16599         ControlSetTopLevelTest.TestTopLevelAdd unit test.
16600
16601         Also, in ControlCollection.IList.Add, don't through an
16602         ArgumentNullException, throw an ArgumentException, when value ==
16603         null.  This matches MS.
16604
16605 2007-01-23  Chris Toshok  <toshok@ximian.com>
16606
16607         * BindingSource.cs: initial, incomplete, implementation of
16608         BindingSource.
16609
16610 2007-01-23  Jackson Harper  <jackson@ximian.com>
16611
16612         * TextControl.cs:
16613         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
16614         that I can fix a broken unit test (TextBoxTest::ClearUndo)
16615         
16616 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16617
16618         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
16619
16620 2007-01-23  Andreia Gaita  <avidigal@novell.com>
16621
16622         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
16623         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
16624         IndexOfKey() for 2.0
16625
16626 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16627
16628         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
16629         to prevent it from changing z-order.
16630         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
16631         leave UI updates in MdiWindowManager.
16632         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
16633         1 sized (NC handling goes weird on Linux otherwise).
16634         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
16635         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
16636         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
16637         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
16638         and SetWindowState(s) to allow for changing the size of an activated child
16639         before activating it (reduces a lot of flicker).
16640
16641 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
16642
16643         * Form.cs: Changing FormBorderStyle has different semantics based
16644         on whether the Form is visible or not.  If not visible, don't change
16645         the Size.  But InvalidateNC needs to be called to force the window
16646         to pick up the changes and redraw itself.  [Fixes bug #80574]
16647
16648 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
16649
16650         [Moma work]
16651         * ContainerControl.cs: ProcessCmdKey.
16652         * ErrorProvider.cs: new constructor.
16653         * Form.cs: fix AutoValidateEvent compiler warning.
16654         * Label.cs: fix OnAutoSizeChanged compiler warning.
16655         * MenuStrip.cs: fix CanOverflow compiler warning.
16656         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
16657         * TextBox.cs: Dispose.
16658         * ToolStrip.cs: CanOverflow, re-enable double buffering.
16659         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
16660         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
16661         * ToolStripItem.cs: Overflow, RightToLeft properties.
16662
16663 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16664
16665         * Form.cs: Move the layout of the main form to MdiWindowManager.
16666         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
16667         do a layout of the main window to update MdiClient's client area to
16668         the right area. Fixes #80533. Remove the calculation of nc size, 
16669         it was just wrong and the correct one is the same as for 
16670         InternalWindowManager. 
16671
16672 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
16673
16674         * Control.cs: Setting Anchor or Dock needs to reset the other
16675         to its default.  [Fixes bug #80556]
16676
16677 2007-01-20  Chris Toshok  <toshok@ximian.com>
16678
16679         * CheckedListBox.cs: class status changes.
16680
16681         * ScrollableControl.cs: same.
16682
16683         * RichTextBox.cs: same.
16684
16685         * ContainerControl.cs: same.
16686
16687         * ListView.cs: same.
16688
16689         * NotifyIcon.cs: same.
16690
16691         * MenuStrip.cs: same.
16692
16693         * RadioButton.cs: same.
16694
16695         * CheckBox.cs: same.
16696
16697         * PrintPreviewDialog.cs: same.
16698
16699         * Form.cs: same.
16700
16701 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
16702
16703         * TreeNode.cs: Apply Alan's patch for Name property.
16704
16705 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16706         
16707         * Form.cs: Implemented SizeGripStyle.
16708         * SizeGrip.cs: Check for minimum and maximum size for the
16709         control being resized and only resize if size has actually
16710         changed.
16711
16712 2007-01-19  Chris Toshok  <toshok@ximian.com>
16713
16714         * DataGridColumnStyle.cs: stop setting _readonly in the
16715         PropertyDescriptor setter.  fixes a unit test failure.
16716
16717         also, rename ParentReadOnly to TableStyleReadOnly, and have it
16718         just consult our table style (if we have one).  We don't need to
16719         consult the datagrid readonly attribute because that's passed in
16720         as the _ro arg to Edit.  this simplifies things a little.
16721         
16722         * DataGrid.cs: use CurrentColumn instead of
16723         current_cell.ColumnNumber just to simplify some of the code.
16724
16725         switch the order of some things in the CurrentCell setter to keep
16726         the previous cell from getting a textbox again -
16727         EnsureCellVisibility causes scrolling to happen, which calls Edit.
16728         So we need to set the new cell before calling it.
16729         
16730         call Edit in OnEnter, as does Microsoft.
16731         
16732         also, make sure the current table style isn't the one we create
16733         initially when checking to see if it's different than the one
16734         we're setting it to in BindColumns (this fixes #80421).
16735
16736         * GridTableStylesCollection.cs: table styles can have "" for a
16737         mapping name.  part of the fix for #80421.
16738
16739         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
16740         Edit significantly.
16741
16742 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16743
16744         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
16745         and less GDI object leaky-er.
16746
16747 2007-01-18  Andreia Gaita  <avidigal@novell.com>
16748
16749         * LinkLabel.cs: Add opaque control style
16750
16751 2007-01-18  Jackson Harper  <jackson@ximian.com>
16752
16753         * TextControl.cs: Calculate width properly.
16754         - Don't store the tag's X offset, this can be figured out very
16755         easily.
16756         - When getting the caret tag make sure to get the last empty tag.
16757
16758 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16759
16760         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
16761         [Fixes bug #79959]
16762
16763         * Control.cs: Color.Empty shouldn't count for previous transparent
16764         redraw changes.
16765
16766 2007-01-18  Jackson Harper  <jackson@ximian.com>
16767
16768         * TextBox.cs:
16769         * RichTextBox.cs:
16770         * TextControl.cs: Starting to merge in some pieces of my older
16771         undo work.  Basically just some slight cleanup of the undo API.
16772
16773 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16774
16775         * TrackBar.cs: Fix signature of RightToLeftLayout.
16776         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
16777         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
16778         * Application.cs: Implemented UseWaitCursor.
16779
16780 2007-01-18  Jackson Harper  <jackson@ximian.com>
16781
16782         * TextControl.cs: We can't skip tags if any part of the tag is
16783         visible.
16784
16785 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16786
16787         * ContainerControl.cs: Override OnLayout.
16788
16789 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16790
16791         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
16792
16793         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
16794         everything else.
16795
16796 2007-01-18  Chris Toshok  <toshok@ximian.com>
16797
16798         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
16799         (leftover from the container_selected days, I'd wager).  fixes bug
16800         #80546.
16801
16802 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16803
16804         * Control.cs: Apply patch from George to fix the new testcase on
16805         bug #80451.  We can't just check for Color.Transparent, we need 
16806         to check if the back color's alpha channel is < 255.
16807
16808 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16809
16810         * Form.cs: Move setting show_icon = true to before the constructor
16811         so that the base constructor has that information when it calculates
16812         the form's size.  Was causing forms to be (6, 6) bigger than they
16813         were supposed to be.  Thanks for catching this Rolf!
16814
16815 2007-01-18  Jackson Harper  <jackson@ximian.com>
16816
16817         * TextControl.cs: When replacing a selection we need to invalidate
16818         from the initial selection start, because selection start is moved
16819         to the end of the replacement.
16820
16821 2007-01-18  Andreia Gaita  <avidigal@novell.com>
16822
16823         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
16824
16825 2007-01-18  Chris Toshok  <toshok@ximian.com>
16826
16827         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
16828         I just added.
16829
16830 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
16831
16832         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
16833         layout methods and properties from ToolBarButton must be available
16834         into ToolBarButtonInfo.
16835
16836 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16837
16838         * Control.cs: If the control has a transparent background, we
16839         need to refresh it when it moves and when it's parent's background
16840         image changes.  [Fixes bug #80451]
16841
16842 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16843
16844         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
16845
16846 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16847
16848         * XplatUIWin32.cs: Implement proper double buffering for Windows.
16849         [Fixes bug #80447, and probably speeds up things as well]
16850
16851 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16852
16853         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
16854         * XplatUIWin32.cs: We need to recalculate NC size after changing 
16855         window style to toolwindow (otherwise the client rectangle will be
16856         3 pixels to small for some reason).
16857         * MdiWindowManager.cs: Revert NC size calculations to match how
16858         they are calculated only based on window styles (to match
16859         Win32AdjustWindowRectEx, since otherwise when setting size or 
16860         location, Control will call Win32AdjustWindowRectEx to update client 
16861         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
16862         calculate a different value of client size causing another paint 
16863         (and flickering))
16864         * InternalWindowManager.cs: When moving or resizing a window only
16865         update size or location if they actually changed.
16866         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
16867         (seems to match Windows behaviour better). Cleaned up 
16868         ManagedWindowDecorations to draw what's needed and nothing else
16869         (was drawing borders and lines where they shouldn't be)
16870         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
16871         (style = 0xFFFF) and takes into account caption height when 
16872         calculating window rectangle.   
16873
16874 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
16875
16876         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
16877         can be added to toolbar multiple times, we need to maintain a list of 
16878         button information for each positions.
16879
16880 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
16881
16882         * ToolBar.cs: Some small stetic changes.
16883
16884 2007-01-16  Jackson Harper  <jackson@ximian.com>
16885
16886         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
16887         that allow us to have nested recalc = false blocks.
16888         - Add paste support for images in the RichTextBox
16889         * RichTextBox.cs: flush the text after the color is changed, so
16890         the change takes effect.
16891         - Use SuspendRecalc
16892         - Some extra debugging info
16893         * TextControl.cs: Tags no longer track their length, it is just
16894         computed from the next tags length, this makes things a little
16895         simpler and reduces places that we have to track length changes.
16896         - Refactored the linetag class a little so we could make it
16897         a base class for different kinds of tags
16898         - Created a image tag, a tag that can have a single image inserted
16899         into it
16900         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
16901         that we can call suspend multiple times.
16902         - Add some debugging methods
16903
16904 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16905
16906         * MdiClient.cs: Add ActivatePreviousChild for 
16907         mdi child window navigation.
16908         * Form.cs: Use MdiClient.ActivateNextChild/
16909         ActivatePreviousChild instead of Form.SelectNextControl
16910         to select the next/previous child since 
16911         SelectNextControl doesn't do it in the same order
16912         as mdi children should do it.
16913
16914 2007-01-16  Chris Toshok  <toshok@ximian.com>
16915
16916         * Control.cs: remove container_selected field.
16917
16918 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16919
16920         * MdiClient.cs: Update main form's ActiveChild when
16921         updating keyboard focus for the mdi child.
16922
16923 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
16924
16925         * Control.cs: PreferredSize fix.
16926
16927         * Form.cs: Add several 2.0 events, properties, and methods.
16928
16929 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
16930
16931         * Form.cs: Provide meaningful message when MdiParent is assigned a
16932         Form that is not an MdiContainer.
16933
16934 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16935
16936         * MdiClient.cs: Update main form's ActiveChild when
16937         activating a mdi child.
16938
16939 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16940
16941         * MdiWindowManager.cs: Fix NRE when merging menus and main form
16942         doesn't have a menu.
16943
16944         * Form.cs: Request NCRecalc after creating a mdi child window.
16945         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
16946         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
16947         
16948         * MdiClient.cs: Add new method SendFocusToActiveChild that either
16949         sends keyboard focus to the active child, or to the MdiClient
16950         if there are no child forms.
16951         
16952 2007-01-15  Chris Toshok  <toshok@ximian.com>
16953
16954         * ListView.cs: drop the *Internal overrides, just do our work in
16955         ItemControl's WndProc instead.
16956
16957         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
16958         of the various controls, and forward the events properly (in the
16959         same manner as MS) from the textbox to the UpDown.  Also the
16960         ActiveControl of the UpDownBase gets set properly now.  Finally,
16961         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
16962
16963         * NumericUpDown.cs: set Text in the ctor.
16964
16965         * DomainUpDown.cs: call UpdateEditText in the ctor.
16966         
16967         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
16968         so even a Selectable = false textbox can be focused if you click
16969         in it.  Go figure.
16970
16971         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
16972         just add their handling in their respective WndProc's.  Also add
16973         an explicit FocusInternal method that doesn't consult CanFocus
16974         before calling Select(this).
16975
16976         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
16977         do our work in WndProc instead.
16978
16979         * TabControl.cs: same.
16980
16981         * ComboBox.cs: same.
16982
16983 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
16984
16985         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
16986         Fixes #80006.
16987
16988 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16989
16990         * ListViewItem.cs:
16991         * ThemeWin32Classic.cs: Don't draw the item text outside
16992         item bounds in Details view, as well as use trimming.
16993         Fixes bug #80376.
16994
16995 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
16996
16997         * Form.cs: Implement Form.ShowIcon.
16998         
16999         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17000         null, which when combined with the DlgModalFrame window style removes
17001         the icon from the title bar.
17002
17003 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17004
17005         * Control.cs: Call OnMouseClick after OnClick. (2.0)
17006
17007 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17008
17009         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17010         menu when mdi child windows theres a menu, uses insert to get icon
17011         at first position. Partially fix #80006.
17012
17013 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17014
17015         * Clipboard.cs: Implement 2.0 methods.
17016
17017 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17018
17019         * Menu.cs: Implement Insert method of MenuItemCollection class
17020         to fix MenuMerge.
17021
17022 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17023
17024         * ListView.cs: Implement 2.0 FindItemWithText method.
17025
17026 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17027
17028         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17029         to calculate menu bar size. Fixes #80290.
17030
17031 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17032
17033         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17034
17035 2007-01-11  Chris Toshok  <toshok@ximian.com>
17036
17037         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17038         initial form.
17039
17040 2007-01-11  Chris Toshok  <toshok@ximian.com>
17041
17042         * LinkLabel.cs: make sure to call base.Select in our Select method
17043         if it turns out we're going to be selected (i.e. if we have a link
17044         that is going to receive focus).  That way our container's
17045         ActiveControl is updated properly.
17046
17047 2007-01-11  Chris Toshok  <toshok@ximian.com>
17048
17049         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17050         they have 1 or more links.  this fixes the crash gert reported.
17051
17052 2007-01-11  Andreia Gaita  <avidigal@novell.com>
17053
17054         * ContainerControl.cs: Remove ContainerSelected flag, not needed
17055         anymore.
17056
17057         * Control.cs (Controls.Add): Check if control to be added to the collection
17058         is a top level control, and throw an ArgumentException if it is.
17059         Remove ContainerSelectedFlag, not needed anymore.
17060
17061         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17062         top most control doesn't activate the form. This fixes a problem in the
17063         MessageBox, where the default button wouldn't get focus because the form
17064         was activated before being Loaded - when the Owner is set, SetTopMost is
17065         called, and it would activate it.
17066
17067 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
17068
17069         * Button.cs: When clicked and setting the parent form's DialogResult,
17070         use FindForm instead of Parent, since parent could be a container
17071         control and not the Form.  Fixes bug #80495.
17072
17073 2007-01-10  Chris Toshok  <toshok@ximian.com>
17074
17075         * Form.cs: move the call to SendControlFocus into the same
17076         is_loaded check.
17077
17078 2007-01-10  Chris Toshok  <toshok@ximian.com>
17079
17080         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17081         It breaks in the face of the new ActiveControl stuff, and should
17082         be unnecessary.
17083
17084         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17085         activecontrol's focus if it's not already set, after we set
17086         ActiveControl, but before we call OnActivated.  Re-fixes #79667
17087         after the previous focus/active control fixes regressed it.
17088
17089         * Control.cs: reindent some code.
17090         
17091 2007-01-10  Chris Toshok  <toshok@ximian.com>
17092
17093         * Splitter.cs: clearing some outstanding changes from my tree.
17094         Replace all accesses (not writes) to the internal dock_style field
17095         with the Dock property.
17096
17097 2007-01-10  Chris Toshok  <toshok@ximian.com>
17098
17099         * Control.cs: make FireEnter, FireLeave, FireValidating, and
17100         FireValidated virtual.
17101
17102         * Form.cs: override and don't chain up calls to FireEnter and
17103         FireLeave.
17104
17105 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17106
17107         * ListView.cs: Add more text padding space when using
17108         auto resize for columns (the previous value didn't work fine).
17109
17110         * ThemeWin32Classic.cs: Update text position inside columns,
17111         to match the appeareance of .Net.
17112
17113         * ColumnHeader.cs: When using auto resize, only the Width should
17114         depend on the sub items, not the Height. Also, set width after
17115         auto resizing (the value of Width should never remain as -1 or -2).
17116
17117 2007-01-10  Chris Toshok  <toshok@ximian.com>
17118
17119         * Application.cs: fix compilation errors when debug is enabled.
17120
17121 2007-01-10  Chris Toshok  <toshok@ximian.com>
17122
17123         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
17124         add some nice ascii art pictures and explanation of the process).
17125         (GetMostDeeplyNestedActiveControl): new utility function we need
17126         because our ActiveControl can refer to a child container with its
17127         own ActiveControl.
17128
17129         * Form.cs (OnActivated): remove the call to SelectActiveControl
17130         from here, since you can override this method and not chain up,
17131         and winforms still sets the active control.
17132         (OnCreateControl): also remove the unnecessary SelectActiveControl
17133         call from here.
17134         (WndProc): it's actually called from the WM_ACTIVATE block, just
17135         before calling OnActivated.
17136
17137         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
17138         inside the else.  the ActiveControl setter will end up setting
17139         focus on @control.  This keeps us from setting it again (and
17140         generating an extra LostFocus/GotFocus pair).
17141         (Select (bool, bool)): reindent.
17142
17143 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
17144
17145         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
17146         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
17147         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
17148         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
17149         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
17150         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
17151         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
17152         ToolStripTextBox.cs: Another wave of corcompare work.
17153
17154 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17155
17156         * ColumnHeader.cs: Implement 2.0 AutoResize method using
17157         the Width property.
17158
17159         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
17160         methods by callling Column.AutoResize method on columns.
17161
17162 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17163
17164         * Control.cs: Provide proper implementations of PreferredSize
17165         and GetPreferredSize (2.0).
17166
17167 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17168
17169         * Form.cs: Remove one character (!) to make my previous OnClosing
17170         stuff work for modal windows like MessageBox.
17171
17172 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17173
17174         * ListView.cs:
17175         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
17176         ListView.Columns to get the last displayed column. Fixes #80452.
17177
17178 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
17179
17180         * Label.cs, LinkLabel.cs: Source code identation fixes.
17181
17182 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
17183
17184         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
17185         we dont need to invalidate only borders because when we invalidate four
17186         border lines the invalidate's generates a complete redraw of button, 
17187         because it now invalidate a complete rect some other redraws operations
17188         are fixed. Fixes #80196.
17189         
17190         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
17191         Remove ToolBarInvalidateEntireButton as it is not used.
17192
17193 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17194         
17195         * Form.cs: Make sure that both OnClosing and OnFormClosing are
17196         called for 2.0 profile.
17197         * CloseReason.cs: Make class internal for 1.1.
17198
17199 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17200
17201         * ToolStripManager.cs: Implement FindToolStrip functionality.
17202         * ToolStrip.cs: Register and unregister with ToolStripManager.
17203
17204 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17205
17206         * Control.cs: This was messy.  2.0 moves much of ControlCollection
17207         to ArrangedElementCollection.  Implemented this with as few #if's as 
17208         possible (which is still too many).
17209
17210 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17211
17212         * Control.cs: Implement SizeFromClientSize() [2.0].
17213
17214 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
17215
17216         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
17217         use Theme.BorderSize to calculate area instead of static value 1, 
17218         by the way use new BorderStaticSize instead     Border3DSize when 
17219         border_static is true. Fixes #79537.
17220         
17221         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
17222         
17223         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
17224         it is not needed.
17225
17226 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17227
17228         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
17229
17230 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17231
17232         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
17233         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
17234         
17235         * Hwnd.cs: 
17236         - border_static field added, it will used to define when a control 
17237         theres 3D border but it must be static (thin).
17238         - In GetWindowRectangle use Theme.BorderSize to calculate area 
17239         instead of static value 1, by the way use new BorderStaticSize instead
17240         Border3DSize when border_static is true.
17241
17242         * XplatUIX11.cs, XplatUIOSX.cs: 
17243         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
17244         
17245         * Theme.cs: BorderStaticSize field added.
17246
17247 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17248
17249         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
17250
17251 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17252
17253         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
17254         mimic same behavior than win32 that set border only in CreateParams,
17255         it fix problems under CreateParams overrides. Fix #79442 and partial
17256         fix #79537.
17257         
17258         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
17259         of thi control you must call recreate handle. 
17260         
17261         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
17262         need to do anything as RecreateHangle will take care about borders.
17263
17264 2007-01-05  Mike Kestner  <mkestner@novell.com>
17265
17266         * ListView.cs: hack to eliminate Lost/Got focus notifications on
17267         cycles between the ItemControl and parent.  Fixes #80388.
17268
17269 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
17270
17271         * Control.cs: Lazy init layout engine. Do not directly use 
17272         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
17273
17274 2007-01-05  Chris Toshok  <toshok@ximian.com>
17275
17276         * DataGrid.cs: don't forceably rebind columns in SetDataSource
17277         unless our list manager has changed (i.e. unless we have reason to
17278         believe our columns have changed).  Fixes #80422.
17279         
17280         also, disable the call do BindColumns in
17281         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
17282         1.1 the event isn't raised in response to a column addition on a
17283         table.)
17284
17285 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
17286
17287         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
17288         that inheritors can not call it if they choose.  Fixes bug #80456.
17289
17290 2007-01-05  Andreia Gaita  <avidigal@novell.com>
17291
17292         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
17293         doesn't blow up with a null exception on marshalling.
17294         
17295 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
17296
17297         * Control.cs: Implement several 2.0 protected properties and methods.
17298         Ensure that all necessary events are being called when properties
17299         are set.
17300
17301 2007-01-05  Mike Kestner  <mkestner@novell.com>
17302
17303         * ListView.cs: implement PgUp/PgDn for Details view.  Also
17304         fixes First/LastVisibleIndex to use the item_control.ClientRect 
17305         instead of the parent control.  Fixes #80378.
17306
17307 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
17308
17309         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
17310           determine whether to use yard-pound or not (bug #78399).
17311
17312 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
17313
17314         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
17315         problems. So it is time to bring back the old popupbutton colors.
17316
17317 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17318
17319         * ColumnHeader.cs:
17320         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
17321         property by using the internal information of the
17322         columns order in ListView.
17323
17324 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
17325
17326         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
17327         Add 2.0 Tag properties.
17328
17329         * LinkArea.cs: Add 2.0 ToString method.
17330
17331 2007-01-03  Chris Toshok  <toshok@ximian.com>
17332
17333         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
17334         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
17335         when we're editing, which fixes #80047.
17336
17337 2007-01-03  Chris Toshok  <toshok@ximian.com>
17338
17339         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
17340         #80404.
17341
17342 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
17343
17344         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
17345         property and implementation.
17346
17347         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
17348         for MdiWindowListItem property.
17349
17350         * ToolStripDropDown.cs: Don't consider hidden menu items while
17351         laying out the menu.
17352
17353 2007-01-03  Andreia Gaita  <avidigal@novell.com>
17354
17355         * SendKeys.cs: window handle is not needed in win32, so just
17356         get the active window for X after parsing keys and don't use
17357         it when building the message; it is passed by parameter to the 
17358         Xplat method and used there to build the message instead. Also,
17359         wait for events to be processed on SendWait, as opposed to Send,
17360         which doesn't wait :) Playing with threads and Send() completely 
17361         hangs on ms.net, only SendWait() works.
17362         
17363         XplatUIX11.cs
17364         X11Display.cs: Check for valid window handle.
17365
17366 2007-01-03  Jackson Harper  <jackson@ximian.com>
17367
17368         * TextControl.cs: Need to prevent wrap calculations when replacing
17369         text (this was there before i removed it accidently).
17370         - Don't update the cursor during the positioning, just set it to
17371         selection_start at the end of the operaion.
17372
17373 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17374
17375         * Control.cs:
17376         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
17377         
17378 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17379
17380         * MonthCalendar.cs: Added Click and DoubleClick events again,
17381         but this time they only hide Control's Click and DoubleClick.
17382         
17383 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
17384
17385         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
17386         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
17387
17388 2007-01-02  Jackson Harper  <jackson@ximian.com>
17389
17390         * TextBoxBase.cs: We move the caret with the split now, so we
17391         don't need to explicitly move the caret after splitting.  This
17392         fixes the caret bumping down an extra line on Enter.
17393
17394 2007-01-02  Miguel de Icaza  <miguel@novell.com>
17395
17396         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
17397         2.72). 
17398
17399         * ScrollableControl.cs: Add Scroll event.
17400
17401 2007-01-02  Mike Kestner  <mkestner@novell.com>
17402
17403         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
17404         to fix all hdr height padding codepaths.  Fixes #80207.
17405
17406 2007-01-02  Chris Toshok  <toshok@ximian.com>
17407
17408         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
17409         setting it to the Control defaults anyway, and it being after the
17410         Dock set was screwing up layout.
17411         (set_Dock): don't short circuit out of setting base.Dock.  Also,
17412         no need to call UpdateStatusBar here, as it'll be re-layed out if
17413         it needs to be.
17414
17415 2007-01-02  Mike Kestner  <mkestner@novell.com>
17416
17417         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
17418         to header height for width == -1. Fixes the rest of #80207.
17419
17420 2007-01-02  Mike Kestner  <mkestner@novell.com>
17421
17422         * ListView.cs: rework the mouse event forwarding everaldo added
17423         to translate the coordinates to the parent control not
17424         raise the parent events until after we've done our work. Hover
17425         needs more work, in the case where HoverSelection is on, because
17426         the item control receives more than one MouseHover per Enter
17427         event, so we need to ensure only the "first" hover gets forwarded.
17428         Opening a minor bug for that.
17429
17430 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
17431
17432         * CheckedListBox.cs: Fixed SelectionMode to match MS.
17433         * ListControl.cs: Implemented AllowSelection property. Removed extra
17434         tabs.
17435         * ListBox.cs: Implemented AllowSelection property.
17436
17437 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17438
17439         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
17440         SelectedItem, it prevent for errors when you must disable item
17441         before perform click. Fixes #80409.
17442
17443 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17444
17445         * MenuAPI.cs: Prevent second level and beyond submenus to close
17446         until first level when move out side of popup.
17447         
17448 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17449
17450         * MenuAPI.cs:
17451         - Down submenu positin in three pixels.
17452         - Closes sub menu when mouse leaves from menu. Fixes #80402.
17453
17454 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17455
17456         * ThemeWin32Classic.cs:
17457         - Fix popup menu size adding one pixel on the top.
17458         - Down menu item border from two to one to mimic Win32.
17459         - Some source identation fixes. 
17460
17461 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
17462
17463         * ThemeWin32Classic.cs: Use float numbers to calculate size and
17464         position of menu arrows, it fix wrong arrow size.
17465
17466 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
17467
17468         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
17469         instead of line, it simplify draw operation and fix it using 3D
17470         borders to mimic Win32.
17471
17472 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
17473
17474         * StatusStrip.cs: Add implementation of the sizing grip.
17475
17476         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
17477         StatusStrip rendering.
17478
17479 2006-12-31  Chris Toshok  <toshok@ximian.com>
17480
17481         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
17482         override the layout style (anchor/dock) of the control.  assign to
17483         Dock instead.  Fixes bug #80416.
17484
17485         * ToolStrip.cs: same.
17486
17487 2006-12-31  Andreia Gaita  <avidigal@novell.com>
17488
17489         * ContainerControl.cs: Use ContainerSelected flag to check if 
17490         a Container is directly selected, or if Select is called on a 
17491         non-container. If a container is directly selected, focus events 
17492         should not be raised.
17493         Apply #80411 patch to throw exception on set_ActiveControl if 
17494         control is the same as the current one.
17495         
17496         * Control.cs: Use ContainerSelected flag (see above).
17497         Add invalidation check to raise event but not invalidate if 
17498         dimensions are 0.       
17499         Apply #80411 patch.
17500         
17501
17502 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
17503
17504         * MenuAPI.cs: After click, dont close popup menu when menu is
17505         ContextMenu. Fixes #80399.
17506
17507 2006-12-30  Chris Toshok  <toshok@ximian.com>
17508
17509         * ContainerControl.cs: make sure we throw the exception if the
17510         container control doesn't contain the control we're setting
17511         ActiveControl to.
17512
17513 2006-12-30  Chris Toshok  <toshok@ximian.com>
17514
17515         * Control.cs (SetTopLevel): fix the exception raised by
17516         SetTopLevel for child controls.
17517         (set_Anchor): call UpdateDistances when setting the anchor type.
17518         This fixes bug #80336.
17519
17520 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17521
17522         * Theme.cs: For now, revert back to 8pt font.
17523
17524 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
17525
17526         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
17527         Fixes #80395.
17528
17529 2006-12-29  Chris Toshok  <toshok@ximian.com>
17530
17531         * Control.cs: reorder the code in OnResize to give the same event
17532         ordering as MS.
17533
17534 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17535
17536         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
17537         TileHorizontally and TileVertically.
17538         
17539 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
17540
17541         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
17542         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
17543         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
17544         Corrected copyright and email adress.
17545
17546 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17547
17548         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
17549         of Exception in FullPath property if no TreeView is associated with
17550         the TreeNode.
17551
17552 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17553
17554         * Theme.cs: Marked default_font as private, and initialize it in ctor
17555         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
17556         on 2.0 profile.
17557         * ThemeGtk.cs: Removed default_font intialization.
17558         * ThemeWin32Classic.cs: Removed default_font initialization.
17559
17560 2006-12-28  Chris Toshok  <toshok@ximian.com>
17561
17562         * Control.cs: fix a couple of place where we were creating handles
17563         more aggressively than we should be.  Fixes ControlRefresh unit
17564         tests.
17565
17566 2006-12-28  Chris Toshok  <toshok@ximian.com>
17567
17568         * Control.cs: contrary to what the comment said, Control.Dock does
17569         not supercede Control.Anchor - the last one you assign to decides
17570         the layout behavior.  so we need to keep track of which was the
17571         last set.  Also, fix some of the affected property arguments in
17572         PerformLayout calls, and remove an redundant parent.PerformLayout
17573         call in OnResized.
17574
17575         Add a VisibleInternal property, which returns is_visible.  We
17576         can/should get rid of all the usage of this field elsewhere.
17577
17578 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17579         
17580         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
17581         control style, not DoubleBuffer. Added UseDoubleBuffering property
17582         that indicates whether doublebuffering is enabled and supported.
17583         (comment from and code based on Gert Driesen's patch in #80324).
17584         Fixes #80324.
17585
17586 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17587         
17588         * Control.cs: Fixed a NRE.
17589
17590 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17591
17592         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
17593         for 2.0.
17594
17595 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17596
17597         * Control.cs: Rewrote double buffering, now a seperate
17598         class handles all the buffering, no Graphics is disposed of
17599         until the painting is finished (earlier implementation 
17600         would crash if the control was resized in the OnPaint, 
17601         since it would cause the double buffer to be recreated
17602         and the old one disposed), a separate Graphics is 
17603         created for every paint (MS behaviour and anyways the state
17604         of the Graphics would have to be saved and restored otherwise)
17605         
17606         * XplatUIDriver.cs: 
17607         * XplatUIX11.cs:
17608         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
17609         so that we can get the graphics for the back buffer without
17610         having to create a new one and remove the offscreen_dc parameter
17611         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
17612         
17613 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17614
17615         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
17616         Also make virtual all the key-related methods.
17617
17618         * ListViewItem.cs: Make virtual the key related methods for
17619         ListViewSubItemCollection.
17620
17621 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17622
17623         * ListView.cs:
17624         * ListViewItem.cs:
17625         * ThemeWin32Classic.cs:
17626         * Theme.cs: Initial support for Tile view in ListView,
17627         as well as the implementation of the required bits for it (Item
17628         and Subitem).
17629
17630 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17631
17632         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
17633         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
17634         Provide useful exception messages.
17635
17636 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17637
17638         * TrackBar.cs: Remove a warning.
17639         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
17640         when used by DateTimePicker, fixes #80287. This also requires that 
17641         MonthCalendar implements it's own drawing for the yearly updown control,
17642         otherwise the Capture tracking would be too complicated. Removed the Click 
17643         and DoubleClick events (according to comments they were hiding the base class
17644         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
17645         raise these events, not that they cannot be raised. It is possible to raise 
17646         them by calling OnClick and OnDoubleClick). Added two internal fields in 
17647         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
17648         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
17649         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
17650         event, no longer needed.
17651         
17652 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17653
17654         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
17655         true if new value differs from current value.
17656
17657 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17658
17659         * Control.cs: ControlCollection.Count must be public. Fixed build of
17660         unit tests.
17661
17662 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17663
17664         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
17665
17666 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17667
17668         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
17669
17670 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
17671
17672         * Control.cs: Invalidates control including when Width and Height is 
17673         equal zero or is not visible, only Paint event must be care about 
17674         this. Fixes #79913.
17675
17676 2006-12-26  Chris Toshok  <toshok@ximian.com>
17677
17678         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
17679         more corcompare work.
17680
17681         * DataGridView.cs: fix compiler warning.
17682
17683         * ColumnHeader.cs: some corcompare work, and also take the
17684         opportunity to make the internal fields private.
17685
17686         * ListView.cs: fix the fallout from the above field change.
17687
17688 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
17689
17690         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
17691         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
17692         ToolStripTextBox.cs: Fixes to events and corcompare.
17693
17694 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
17695
17696         * ListView.cs: Call owner.OnMousexx event to propagate events from
17697         item to ListView. Fixes #80367.
17698
17699 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17700
17701         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
17702         if value is less than one. ItemHeight should not be set to a value
17703         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
17704         Removed extra tabs.
17705
17706 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
17707
17708         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
17709         * ToolStripStatusLabel.cs: Add Spring for Moma.
17710
17711 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17712
17713         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
17714         Fixed code formatting. Removed debug code.
17715         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
17716
17717 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17718
17719         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
17720         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
17721         ArgumentOutOfRangeException if ColumnCount is negative. In 
17722         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
17723         less than 4 or higher than 32768.
17724         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
17725         Fixed FormatProvider to return CurrentCulture unless explicitly set.
17726         Fixed IsFormatProviderDefault to return true if FormatProvider has
17727         not been explicitly set.
17728
17729 2006-12-25  Chris Toshok  <toshok@ximian.com>
17730
17731         * Application.cs: add a couple of 2.0 events.
17732
17733 2006-12-25  Chris Toshok  <toshok@ximian.com>
17734
17735         * Control.cs: fix compiler warning.
17736
17737         * AxHost.cs: corcompare fixes.
17738
17739         * ApplicationContext.cs: corcompare fixes.
17740
17741 2006-12-25  Chris Toshok  <toshok@ximian.com>
17742
17743         * Control.cs: only update dist_right/dist_bottom if the
17744         width/height is > 0.  this fixes anchored controls being resized
17745         smaller until they disappear and then resized larger again.
17746
17747 2006-12-25  Chris Toshok  <toshok@ximian.com>
17748
17749         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
17750         since they're nothing more than X/Left and Y/Top, respectively.
17751
17752         Also, move back to a per-control Bitmap/Graphics for
17753         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
17754         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
17755         Height.
17756
17757 2006-12-25  Miguel de Icaza  <miguel@novell.com>
17758
17759         * MessageBox.cs: Implemented overload that takes a new "bool
17760         displayHelpButton" by adding a new internal field "show_help".
17761         When clicked this will raise the HelpRequested on the owner or the
17762         main form. 
17763
17764         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
17765         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
17766
17767         * ListView.cs: Add support ColumnWidthChanged and
17768         ColumnWidthChanging. 
17769
17770         Add support for ColumnReordered event.
17771         (ReorderColumn): Add NET_2_0 specific support for cancelling the
17772         reorder.
17773
17774         Very nice codebase!
17775
17776         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
17777
17778         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
17779
17780 2006-12-24  Chris Toshok  <toshok@ximian.com>
17781
17782         * GridTablesFactory.cs: 2.0 corcompare work.
17783
17784         * ToolStripContainer.cs: add "override" to
17785         ContextMenuStripChanged, and remove the local event object.
17786
17787         * ToolStripDropDown.cs: same with a couple properties.
17788
17789         * ToolStripPanel.cs: same with AutoSizeChanged event.
17790
17791         * TextBoxBase.cs: add "override" to AutoSizeChanged.
17792
17793         * Form.cs: add the remaining 2.0 events, and do some corcompare
17794         attribute work.
17795
17796         * DateTimePicker.cs: add "new" to padding.
17797
17798         * ButtonBase.cs: use Control's use_compatible_text_rendering.
17799
17800         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
17801
17802         * DataGridView.cs: PaddingChanged is overridden.
17803
17804 2006-12-24  Chris Toshok  <toshok@ximian.com>
17805
17806         * Control.cs: corecompare work here too.
17807
17808         * DataGridViewElement.cs, DataGridView.cs,
17809         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
17810         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
17811         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
17812         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
17813         work.
17814
17815 2006-12-24  Miguel de Icaza  <miguel@novell.com>
17816
17817         * Control.cs: Switched the error message on the console for a
17818         todo.  A review of the code will have to cope with this anyways
17819         (since its a large feature, it is in our radar) and it was
17820         producing too much output when running PDN.
17821
17822         * ToolStripComboBox.cs: Set the text when the SelectedIndex
17823         changes.  Applications depend on this (PDN 2.72)
17824
17825 2006-12-23  Chris Toshok  <toshok@ximian.com>
17826
17827         * TableLayoutSettings.cs: finish up the corcompare work for this
17828         class.
17829
17830 2006-12-23  Chris Toshok  <toshok@ximian.com>
17831
17832         * Control.cs: make SetImplicitBounds internal, do some futzing
17833         with LayoutEngine so that it's available in 1.1, and remove the
17834         entire duplicated code mess from PerformLayout.  Use
17835         System.Windows.Forms.Layout.DefaultLayout instead.
17836
17837         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
17838
17839 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
17840
17841         * Form.cs: Add MainMenuStrip property.
17842
17843 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
17844
17845         * Control.cs: Add ContextMenuStrip property and implementation.
17846         Fix ContextMenu implementation to show menu centered on control when
17847         activated using the keyboard instead of showing at screen (0,0).
17848
17849         * ToolStripDropDown.cs: Fix needed overload of Show ().
17850
17851 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17852
17853         * Menu.cs: Name property added for 2.0 profile.
17854         
17855 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17856
17857         * Menu.cs: Update information about FindMenuItem, method to be
17858         implemented soon.
17859
17860 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17861
17862         * MenuAPI.cs: When deselect items deselect also selected subitems.
17863         
17864 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17865
17866         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
17867         FindSubItemByCoord to found itens that is not active, also an
17868         cheking added to FindSubItemByCoord to search for items only 
17869         in visible popup windows. Fixes #80274.
17870
17871 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
17872
17873         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
17874         internal property, it be care about change ExStyle. 
17875
17876 2006-12-22  Andreia Gaita  <avidigal@novell.com>
17877
17878         * ContainerControl.cs: set activeControl for parent forms up the 
17879         tree when the new activecontrol is a container.
17880         When validating the active control, if it is a container, also
17881         raise up the validation for it's active control. Fixes #80280
17882         
17883         * Control.cs: Add internal property flag and check to prevent
17884         Focus events from getting raised when Select() is called for
17885         a ContainerControl. There are still too many focus events being
17886         raised at the moment though.
17887         Cleaned up the code a bit.
17888
17889 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17890
17891         * Control.cs: Added all missing 2.0 events.and
17892         fixed a couple of corcompare issues.
17893         * TrackBar.cs: Implemented missing 2.0 bits.
17894         * MonthCalendar.cs, 
17895         * DateTimePicker.cs, 
17896         * MdiClient.cs: Fixed some corcompare issues.
17897
17898 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17899
17900         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
17901         SplitterPanel.cs: corecompare work.
17902
17903 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17904
17905         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
17906         Clean up warnings for BackgroundImageChanged and PaddingChanged
17907         events now that they are implemented in Control.cs.
17908
17909 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17910
17911         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
17912         
17913         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
17914         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
17915         of TableLayoutPanel and supporting cast.
17916
17917 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17918
17919         * XplatUIWin32.cs: 
17920         - GrabWindow now confines the mouse pointer to the confine window.
17921         - Added Win32ClipCursor and Win32GetClipCursor.
17922
17923         * Control.cs: 
17924         - Added CaptureWithConfine to be able to capture and confine 
17925         mouse pointer.
17926         
17927         * InternalWindowManager.cs: 
17928         - Call CaptureWithConfine instead of Capture if we're an
17929         MdiChild (fixes #79982).
17930
17931 2006-12-21  Chris Toshok  <toshok@ximian.com>
17932
17933         * DataGrid.cs: guard against the initial state of selection, where
17934         selection_start == -1.  make sure we only select from index >= 0.
17935         Fixes bug #80291.
17936
17937 2006-12-21  Chris Toshok  <toshok@ximian.com>
17938
17939         * Control.cs: we don't need to be so draconian with
17940         UpdateDistances, and we thusly don't need to call it before
17941         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
17942
17943 2006-12-21  Daniel Nauck  <dna@mono-project.de>
17944
17945         * ComboBox.cs,
17946         TextBox.cs: Implemented AutoComplete properties.
17947
17948 2006-12-20  Chris Toshok  <toshok@ximian.com>
17949
17950         * DataGridView*.cs: some corecompare work.
17951
17952 2006-12-20  Jackson Harper  <jackson@ximian.com>
17953
17954         * XplatUIX11.cs: We need to hide the caret when deleting it,
17955         otherwise you get carets left lying around everywhere.
17956         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
17957         prevents getting some weird half drawn caret tracers when
17958         scrolling.
17959         * TextControl.cs: Attempt to reduce the number of times we need to
17960         recreate the caret.
17961
17962 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
17963
17964         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
17965
17966 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17967
17968         * DateTimePicker.cs:
17969         - Implemented missing 2.0 bits.
17970         - Changed some default values to match MS.
17971         
17972 2006-12-20  Jackson Harper  <jackson@ximian.com>
17973
17974         * TextBoxBase.cs: When changing the font across the document we
17975         can't recalculate after changing each line, since that will cahnge
17976         the line count.
17977         - PreferredHeight is a little different than i thought.
17978         - When backspacing, move the caret before we do the actual char
17979         delete, because when that delete crosses a wrap boundary the
17980         positional information will change.
17981
17982 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17983
17984         * Control.cs: Added some missing 2.0 bits: 
17985         BackgroundImageLayout, BackgroundImageLayoutChanged, 
17986         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
17987         add IBindableComponent and IDropTarget implementation.
17988         
17989         * MonthCalendar.cs: 
17990         - Added all missing 2.0 features:
17991         BackgroundImageLayout, RightToLeftLayout, 
17992         OnHandleDestroyed, RightToLeftLayoutChanged, 
17993         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
17994         PaddingChanged.
17995         - Rewrote all the BoldDate code, it was completely broken.
17996         - Fixed all the tests (the tests can now be re-enabled, the
17997         problems were not with the tests, but with the control, it was
17998         mostly broken).
17999         
18000         * DateTimePicker.cs: Changed the location where the 
18001         MonthCalendar is shown.
18002         
18003 2006-12-19  Chris Toshok  <toshok@ximian.com>
18004
18005         * DataGridView.cs: add IDropTarget implementation.
18006
18007         * ToolStripPanel.cs: add IDropTarget implementation.
18008
18009 2006-12-19  Jackson Harper  <jackson@ximian.com>
18010
18011         * TextControl.cs: soft now means something different than what it
18012         used to mean, we want to move the caret regardless of whether or
18013         not this break was soft (would we really have wanted the caret
18014         to not move with the break in the old context?)
18015         * TreeView.cs: Make sure we factor in the vert scrollbar when
18016         calculating the horizontal scrollbar's maximum.
18017
18018 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18019
18020         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18021         check for keywords in alternate casing, close bug #80049.
18022
18023 2006-12-19  Chris Toshok  <toshok@ximian.com>
18024
18025         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18026         methods (which all do nothing).
18027
18028         * IDropTarget.cs: add the 4 missing methods.
18029
18030 2006-12-19  Chris Toshok  <toshok@ximian.com>
18031
18032         * TableLayoutRowStyleCollection.cs: corcompare work.
18033         
18034         * TableLayoutSettings.cs: same.
18035
18036         * TableLayoutStyle.cs: same.
18037
18038         * TableLayoutColumnStyleCollection.cs: same.
18039
18040 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
18041
18042         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18043         TableLayoutPanel I've had in my local tree for way too long.
18044
18045 2006-12-19  Miguel de Icaza  <miguel@novell.com>
18046
18047         * TableLayoutSettings.cs: Finish the public API (still needs all
18048         the logic to update on changes). 
18049
18050         * TableLayoutPanelCellPosition.cs: new file.
18051         
18052         * TableLayoutRowStyleCollection.cs,
18053         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18054         TableLayoutSettings.cs: Track the final 2.0 table api.
18055
18056 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18057
18058         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18059         and Image List 2.0 members for ColummnHeader.
18060         * ListView.cs: Add key-related 2.0 methods for
18061         ColumnHeaderCollection.
18062
18063 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18064
18065         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18066         ArgumentNullException if items argument is null. Ignore null item in
18067         arrays. Removed extra tabs.
18068
18069 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18070
18071         * MonthCalendar.cs: Fixed InvalidCastException.
18072
18073 2006-12-19  Jackson Harper  <jackson@ximian.com>
18074
18075         * TextControl.cs: Don't increment the position here.
18076         - When calculating char positions only add in the line break size
18077         for hard line breaks.
18078
18079 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18080
18081         * SendKeys.cs: Changed some things to match ms.net behaviour
18082         when parsing shifted capital letters.
18083         
18084         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
18085         Add window handle as parameter to SendInput. X11 needs the 
18086         window handle, and the handle being passed      to it in the keys 
18087         queue is the active control handle (which windows needs), not 
18088         the window handle.
18089         
18090         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
18091         to support SendKeys on X.       
18092         
18093         * X11Keyboard: Implement helper method to lookup a linux keycode
18094         given the virtual keycode. Added table of keycode-2-virtualkey
18095         values to support this.
18096
18097 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18098
18099         * ListView.cs: Add support for SelectedIndexCollection
18100         and SelectedItemCollection 2.0 methods. Implement support
18101         for ImageKey too.
18102         * ListViewItem.cs: Add support for ListViewSubItemCollection
18103         2.0 methods. Also, fix an incorrect behavior of AddRange method
18104         (it shouldn't call Clear).
18105         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
18106
18107 2006-12-19  Jackson Harper  <jackson@ximian.com>
18108
18109         * RichTextBox.cs: 
18110         * TextBoxBase.cs: New args for FormatText
18111         * TextControl.cs: Rewrote the main drawing method, this version
18112         feels a little easier to understand and debug to me.  Hopefully it
18113         does to others also
18114         - Fix FormatText to OR in the new formating values.  Added
18115         FormatSpecified param, basically this works in the same way as
18116         BoundsSpecified in Control.
18117         - Set the caret properties when the caret is positioned.
18118         - When wrapping text make sure that we calculate the width of the
18119         last character
18120         - when calculating alignments we might have wrapped down to the
18121         next line, so don't search for an individual tag, search for the
18122         end of the line
18123         - We need to invalidate the selection area when we replace the
18124         selection.
18125         
18126 2006-12-19  Daniel Nauck  <dna@mono-project.de>
18127
18128         * Application.cs: add Restart () 2.0 support
18129
18130 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18131
18132         * MenuItem.cs: Invalidate menu item rectangle after change Enable
18133         property. Fixes #80268.
18134         
18135 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18136
18137         * MenuAPI.cs: Dont trigger select event when closes top menu
18138         item. Fixes #80270.
18139
18140 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18141
18142         * MenuAPI.cs: When you click on menuitem only trigger onselect
18143         event for top menu itens. Fixes #80271.
18144         
18145 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18146
18147         * MdiWindowManager.cs: Make IconicBounds depend on
18148         the bottom of MdiClient, not the top (fixes #80267)
18149         
18150 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18151
18152         * MdiClient.cs: Added missing 2.0 attribute
18153
18154 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18155
18156         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
18157         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
18158
18159 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18160
18161         * MenuAPI.cs: Fix click when menuitem is not popup,
18162         this regression was caused by last commit (#80272).
18163
18164 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
18165
18166         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
18167         fire click event or close menu. Fixes #80272.
18168
18169 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18170
18171         * ListViewHitTestInfo.cs: add
18172
18173 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18174
18175         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
18176         * FlatButtonAppearance.cs: add
18177         * DockingAttribute.cs: add
18178
18179 2006-12-17  Chris Toshok  <toshok@ximian.com>
18180
18181         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
18182         and rebind our columns when it does - this way, if you make
18183         changes to the DataTable (or set the Table attribute on a DataView
18184         after setting it as the DataGrid's DataSource, the changes are
18185         made visible.)  Fixes bug #80107.
18186
18187 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18188
18189         * ListViewGroup.cs: add internal Location property for layouting.
18190         * Theme.cs: add abstract ListViewGroupHeight function.
18191         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
18192
18193 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18194
18195         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
18196         Added reset of selected index to 0 when adding first tab page.
18197         Fixes #80264
18198         
18199         * NumericUpDown.cs: Fix NET_2_0 check
18200
18201 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18202
18203         * ListViewGroup.cs: fixed DefaultValueAttribute value
18204
18205 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18206
18207         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
18208
18209 2006-12-15  Miguel de Icaza  <miguel@novell.com>
18210
18211         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
18212         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
18213         ScrollableControl.cs: Add a handful of methods that are
18214         overwritten in 2.0 
18215
18216 2006-12-15  Chris Toshok  <toshok@ximian.com>
18217
18218         * XplatUIWin32.cs: initial implementation of the Reversible
18219         drawing functions.  there are some problems.  DrawReversibleFrame
18220         doesn't seem to work at all for Dashed FrameStyle, and in the
18221         Thick case there are drawing errors at the corners (we probably
18222         need to bind Rectangle instead of doing moveto/lineto's.)
18223
18224 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18225         
18226         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
18227         to send blocks of key messages. Send accumulates keys to send with Flush, 
18228         while SendWait sends all keys immediately.
18229                 
18230         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
18231         XplatUIX11.cs,  XplatUIX11-new.cs:
18232         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
18233         to Win32 SendInput.
18234         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
18235         
18236         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
18237         testing for ms.net on this class is very tricky, as the tests run too fast 
18238         to allow the hook to release, essentially freezing the keyboard and the 
18239         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
18240         category :p
18241
18242 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18243
18244         * Padding.cs: fixed serialization compability to MS ("_var" field names),
18245                         added missing attributes.
18246  
18247 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18248
18249         * ListViewGroup.cs: Added missing attributes.
18250         * ListViewGroupCollection.cs: Added missing attributes.
18251
18252 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18253
18254         * ListViewItem.cs: fixed ListViewSubItem text property.
18255
18256 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18257         
18258         * Control.cs: Added missing 2.0 attributes
18259         
18260 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18261         
18262         * MdiClient.cs: Added missing 2.0 attribute.
18263         * MonthCalendar.cs: Added some missing 2.0 attributes 
18264         and properties.
18265         
18266 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18267
18268         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
18269
18270 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
18271
18272         * MainMenu.cs: Add the new 2.0 constructor to help out people
18273         using the MainMenu in VS2005.
18274
18275 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18276         
18277         * MdiChildContext.cs: Removed it, no longer used.
18278         * MdiClient.cs: Added missing 2.0 attributes.
18279         
18280 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18281         
18282         * InternalWindowManager.cs: Fix a NullRef with previous 
18283         changes for toolwindows.
18284         
18285 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18286
18287         * Control.cs: 
18288         - Added AfterTopMostControl to allow for certain controls 
18289         to always stay on top when normal controls are brought to 
18290         front.
18291         
18292         * XplatUIWin32.cs: 
18293         - (DrawInversibleRectangle): Get window rectangle from Win32 
18294         in stead of from control, since Win32 doesn't calculate
18295         screen coords correctly from control's Location if it 
18296         have docked siblings.
18297         
18298         * MdiWindowManager.cs:
18299         - Correct the control menu popup location when clicked on
18300         the maximized form icon. (fixes #80223.1)
18301         - Don't show moving rectangle if mouse hasn't moved from
18302         the original clicked point.
18303         - Removed FormGotFocus handler (not used).
18304         - Calculate the control buttons location from the main
18305         window's size and not client size (fixes #79770).
18306         - Form is now closed when the form icon is double-clicked
18307         (fixes #79775). 
18308         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
18309         
18310         * InternalWindowManager.cs:
18311         - Moved some MDI-only methods to MdiWindowManager.
18312         - Removed unused properties and methods.
18313         - Unified method naming for methods handling wm messages.
18314         - Moved all message handling to seperate methods for
18315         each message.
18316         
18317         * ThemeWin32Classic.cs:
18318         - DrawManagedWindowDecorations now draws the title bar 
18319         with a gradient brush.
18320         - Add a CPDrawButtonInternal that allows us to specify
18321         light, normal and dark colors for the buttons (control 
18322         buttons for MDI children were drawn with the same light
18323         color as the background, therefore loosing the 3D effect).
18324         
18325         * SizeGrip.cs:
18326         - Add a CapturedControl property that is used to 
18327         determine the control to resize (defaults to parent). 
18328         Needed for MdiClient, since its SizeGrip's parent is
18329         MdiClient, but the control to resize is the main form.
18330         
18331         * MdiClient.cs:
18332         - Set SizeGrip's CapturedControl to the main form in order
18333         to resize the main form and not the MdiClient.
18334         - Override AfterTopMostControl to leave the scrollbars 
18335         always on top.
18336
18337 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18338
18339         * ListView.cs: fixed ListViewItemCollection AddRange and
18340                         implemented ListViewItemCollection AddRange 2.0 support.
18341
18342 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18343
18344         * ListViewGroup.cs: Add.
18345         * ListViewGroupCollection.cs: Add
18346         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
18347         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
18348                                 stub for ImageKey 2.0 support.
18349
18350 2006-12-14  Mike Kestner  <mkestner@novell.com>
18351
18352         * ListView.cs: add text padding to the autocalculation for columns
18353         of width -2.  Fixes #80207.
18354  
18355 2006-12-14  Mike Kestner  <mkestner@novell.com>
18356
18357         * ListView.cs: add some index guarding for partial row navigation 
18358         logic.  Fixes #80250.
18359
18360 2006-12-14  Mike Kestner  <mkestner@novell.com>
18361
18362         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
18363         are added or inserted to the collection.  Fixes #81099.
18364
18365 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
18366
18367         * MenuAPI.cs: Closes menu when right click out side of popup
18368         it fix problem in ContextMenu and MainMenu. Fixes #80252.
18369
18370 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18371
18372         * ListViewItem.cs: Fix dumb error.
18373
18374         * ListView.cs: Add Find and ContainsKey methods in 
18375         ListViewItemCollection, and also return true for IsReadOnly
18376         and IsFixedSize (changes for 2.0). 
18377
18378 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
18379
18380         * Control.cs: Allow Region to be set to null.
18381
18382 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18383
18384         * MdiWindowManager.cs: Remove unused (commented out) code.
18385         * Form.cs: When the MdiChild is maximized, the form needs 
18386         WM_NCMOUSELEAVE, so request it.
18387         * InternalWindowManager.cs: 
18388         - Added tooltips to control buttons.
18389         - Removed duplicated control button handling code.
18390         - Removed unused (commented out) code.
18391         
18392 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
18393
18394         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
18395         was used because we must set cursor without trigger ChangeCursor event
18396         and without change Cursor control property. Fixes #79963.
18397
18398 2006-12-12  Andreia Gaita  <avidigal@novell.com>
18399         
18400         * Control.cs: Check if Region setter value is null, and ignore
18401
18402 2006-12-12  Jackson Harper  <jackson@ximian.com>
18403
18404         * TextControl.cs: We were almost always drawing one more line then
18405         needed, since the GetLineByPixel will return the last line found
18406         at that pixel. In most cases though, we were invalidating up to
18407         the junction between two lines.
18408         - Improve debug code.
18409
18410 2006-12-12  Chris Toshok  <toshok@ximian.com>
18411
18412         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
18413         and FillReversibleRectangle.
18414
18415         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
18416         and FillReversibleRectangle.
18417
18418         * XplatUIWin32.cs: add stubs which do nothing for
18419         DrawReversibleFrame, DrawReversibleLine, and
18420         FillReversibleRectangle.
18421
18422         * XplatUIOSX.cs: add stubs which raise NIE for
18423         DrawReversibleFrame, DrawReversibleLine, and
18424         FillReversibleRectangle.
18425
18426         * XplatUIX11.cs: add working implementation for
18427         DrawReversibleFrame, DrawReversibleLine, and
18428         FillReversibleRectangle.
18429         
18430         * ControlPaint.cs: implement DrawReversibleFrame,
18431         DrawReversibleLine, and FillReversibleRectangle, by calling into
18432         the appropriate XplatUI method.
18433
18434 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18435
18436         * Form.cs: Make MdiClient have the focus even if it's
18437         not selectable, since it should receive WM_KEY* and WM_MOUSE 
18438         messages. Fixes #79907.
18439         
18440 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18441
18442         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
18443         queried after the window is created.
18444         
18445         * XplatUIX11.cs: Added SendParentNotify to implement 
18446         WM_PARENTNOTIFY logic. Fixes #79965.
18447         
18448         * Control.cs: Added MakeParam.
18449         
18450 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18451
18452         * MdiClient.cs: Resume Layout before setting window
18453         states (fixes #80201).
18454
18455 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18456
18457         * MenuAPI.cs: Deselect a menu item after performing
18458         the click (fixes #80197).
18459
18460 2006-12-11  Jackson Harper  <jackson@ximian.com>
18461
18462         * TextBoxBase.cs: We need to cap this value, since Maximum -
18463         ViewPortHeight can be less than zero.
18464         - Only do selection with the left mouse button.
18465         * TextBox.cs: Don't tell the world that we have a context menu.
18466         * Control.cs: New method so that we can control whether or not the
18467         context menu is visible outside MWF.
18468
18469 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
18470
18471         * ToolBarButton.cs: Fix text positon. 
18472
18473 2006-12-11  Miguel de Icaza  <miguel@novell.com>
18474
18475         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
18476
18477         * Control.cs (DoubleBuffered): Add implementation.
18478
18479         * Application.cs (OpenForms): Add.
18480
18481 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
18482
18483         * Form.cs: Use opacity instead of Opactiy to determine if we need
18484         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
18485
18486 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
18487
18488         * Control.cs: Fix NRE if Control.Site was set to null.
18489
18490 2006-12-11  Chris Toshok  <toshok@ximian.com>
18491
18492         * Control.cs: ControlCollection.Remove should return if the arg is
18493         null, and ControlCollection.SetChildIndex should raise a ANE.
18494
18495 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
18496
18497         * Control.cs: Verify value set for Dock property. Code formatting
18498         updates.
18499
18500 2006-12-11  Jackson Harper  <jackson@ximian.com>
18501
18502         * TextControl.cs: Draw the caret and the selection when a flag is
18503         set on the owner.
18504         * TextBoxBase.cs: We want to draw the caret and the selection for
18505         TextBox but not for TextBoxBase.
18506         - If the window is resized and scrolling is no longer needed (the
18507         whole doc is visible) set the scroll position to zero.
18508         - The default SelectWord (the one TextBox uses) should move the
18509         caret to the end of the word.
18510         - SelectAll moves the caret to the end of the selection.
18511         * TextBox.cs: We don't selectall on focus, we just do it when the
18512         control is created.
18513         
18514 2006-12-11  Mike Kestner  <mkestner@novell.com>
18515
18516         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
18517
18518 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18519
18520         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
18521         2.0 support.
18522         * ListViewItem.cs: Add Name 2.0 property.
18523
18524 2006-12-11  Andreia Gaita  <avidigal@novell.com>
18525
18526         * TabControl.cs: Set visibility on selected or default tab 
18527         when tabcontrol handle is created, so that it's contents
18528         actually show up (duh). Fixes #80193
18529         Don't redraw the control if there is no handle created, as
18530         the selected index might be completely invalid. Added some tests
18531         to check for this.
18532
18533 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
18534
18535         * ToolBar.cs: Uses maximun width and height of all buttons as 
18536         button rectangle when ButtonSize specified, it looks strange but
18537         is what happens in Win32. Fixes #80189.
18538
18539 2006-12-11  Jackson Harper  <jackson@ximian.com>
18540
18541         * TextControl.cs: Need to track undo levels ourself, since
18542         compound actions will mess them up.
18543
18544 2006-12-10  Andreia Gaita  <avidigal@novell.com>
18545
18546         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
18547         SelectedIndex value is changed (even if it's not valid).
18548         Reset SelectedIndex to 0 when the handle is created and if
18549         the current index is invalid.
18550         Fixes SelectdeIndex unit tests and #80128
18551
18552 2006-12-08  Chris Toshok  <toshok@ximian.com>
18553
18554         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
18555         calls EndEdit, it needs to be called before we set current_cell to
18556         its new value.  Otherwise, we end up committing the value in the
18557         textbox to the new cell as well.  Fixes bug #80160.
18558
18559 2006-12-08  Chris Toshok  <toshok@ximian.com>
18560
18561         * Form.cs (set_CancelButton): if the button's DialogResult is
18562         None, set it to Cancel.  Fixes bug 80180.
18563
18564 2006-12-08  Jackson Harper  <jackson@ximian.com>
18565
18566         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
18567         to watch ourselves when setting the canvas size and setting the
18568         scrollbar values.
18569
18570 2006-12-08  Chris Toshok  <toshok@ximian.com>
18571
18572         * DataGrid.cs: comment out the two MakeTransparent calls for the
18573         time being so people using trunk (and not 1.2.2) on windows can
18574         actually use the datagrid.  This deals with bug #80151.
18575
18576 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
18577
18578         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
18579         Graphics.DrawImage (image, int, int, int, int) overload instead
18580         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
18581         the dpi difference and was blurring images it drew.
18582         [Fixes bug #79960]
18583
18584 2006-12-08  Chris Toshok  <toshok@ximian.com>
18585
18586         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
18587         rowcnt is 0 (such as with an empty datasource), and make sure we
18588         initialize not_usedarea.Y to cells.Y, so we don't draw over the
18589         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
18590
18591 2006-12-08  Chris Toshok  <toshok@ximian.com>
18592
18593         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
18594         grid.
18595
18596 2006-12-08  Chris Toshok  <toshok@ximian.com>
18597
18598         [ Fixes bug #80167 ]
18599         
18600         * ThemeWin32Classic.cs: don't draw the image if the button's flat
18601         style is FlatStyle.System.
18602
18603         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
18604         ButtonBase.flat_style private, and switch uses of it to the public
18605         property.
18606         
18607 2006-12-08  Chris Toshok  <toshok@ximian.com>
18608
18609         [ Fixes bug #80121 ]
18610         
18611         * ThemeWin32Classic.cs: center the caption text in the datagrid
18612         when we draw it.
18613
18614         * DataGrid.cs: lessen the amount we add to the caption height from
18615         6 to 2.  6 was making it huge.
18616
18617 2006-12-08  Andreia Gaita  <avidigal@novell.com>
18618
18619         * UpDownBase: Handle MouseWheel call directly instead of capturing
18620         the inner textbox's OnMouseWheel. Fixes #80166
18621
18622 2006-12-08  Jackson Harper  <jackson@ximian.com>
18623
18624         * TextControl.cs: We need to invalidate the textbox when we empty
18625         it (how had this not been discovered before?)
18626
18627 2006-12-08  Jackson Harper  <jackson@ximian.com>
18628
18629         * TextBoxBase.cs: Reworked the mouse down code so I could get it
18630         to behave like MS, we now ignore the eventargs.Click and just
18631         track state ourself, which we were already doing anyways.
18632         - Constrain the double click handler to the double click size.
18633         
18634 2006-12-08  Chris Toshok  <toshok@ximian.com>
18635
18636         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
18637         direction if that scrollbar isn't shown.  fixes bug #80158.
18638
18639 2006-12-08  Andreia Gaita  <avidigal@novell.com>
18640
18641         * NumericUpDown.cs: Update value on getter. Fixes #79950
18642
18643 2006-12-08  Chris Toshok  <toshok@ximian.com>
18644
18645         * MenuItem.cs: add back in the event cloning code.  I didn't know
18646         how to do it in the face of the EventHandlerList work i'd done
18647         last week.  Fixes bug #80183.
18648
18649 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
18650
18651         * Control.cs: Add an invalidate to the BackgroundImage setter.
18652         [Fixes 80184]
18653
18654 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
18655
18656         * ToolStrip*: Add some small properties reported by MoMA, fix event
18657         firing and default properties based off of unit tests, and add some
18658         attributes based off of the class status page.
18659
18660 2006-12-07  Jackson Harper  <jackson@ximian.com>
18661
18662         * TextBoxBase.cs: Take HideSelection into account when determining
18663         whether or not to show the selection.
18664         * RichTextBox.cs: After inserting the RTF into the document move
18665         the cursor to the beginning of the document.
18666
18667 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
18668
18669         * Control.cs: Remove static ArrayList "controls" which maintained
18670         a reference to every control created.
18671         * Application.cs: Create a static FormCollection to maintain a reference
18672         to every form created.  Use it in places that formerly enumerated through
18673         the controls one looking for forms.
18674         * Form.cs: Add and remove self from above FormCollection.
18675
18676 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
18677
18678         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
18679           not libgdk (though it makes me wonder why I didn't have any
18680           problems)
18681
18682 2006-12-07  Chris Toshok  <toshok@ximian.com>
18683
18684         [ you had to know this was coming after that last commit...]
18685         
18686         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
18687         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
18688         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
18689         XCopyArea).
18690
18691 2006-12-07  Chris Toshok  <toshok@ximian.com>
18692
18693         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
18694         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
18695         all the behavior we need for double buffering.
18696
18697         * XplatUIDriver.cs: implement the 3 double buffer methods using a
18698         client side Bitmap, just like the old Control-based double buffer
18699         code did.  The methods are virtual, so each XplatUI driver
18700         subclass can replace the implementation to use a faster, platform
18701         specific approach.
18702
18703         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
18704         double buffer code, and clean things up a bit in the process.
18705
18706 2006-12-06  Chris Toshok  <toshok@ximian.com>
18707
18708         * Control.cs: reindent WndProc.
18709
18710 2006-12-06  Chris Toshok  <toshok@ximian.com>
18711
18712         [ I wanna be like BenM when I grow up ]
18713         
18714         * Hwnd.cs: create a single static Graphics object on the static
18715         Bitmap we create.  use this for our text measurements.
18716
18717         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
18718         This was causing us to allocate a backbuffer for every control,
18719         even when it wasn't flagged as double buffered.  Instead use the
18720         single graphics instance.  This might have implications for
18721         multithreaded applications.  If we run into problems we can switch
18722         to creating 1 Graphics per control, on the static Hwnd bitmap.
18723
18724         this change nets us a 7M savings in private dirty mappings when
18725         running FormsTest.exe.
18726
18727 2006-12-06  Chris Toshok  <toshok@ximian.com>
18728
18729         * ListView.cs: the BackgroundImage override is just to set
18730         attributes.  chain up to base.BackgroundImage.
18731
18732         * RichTextBox.cs: same.
18733
18734         * ToolBar.cs: same, but we need to also redraw the toolbar when it
18735         changes, so instead a handler for BackgroundImageChanged.
18736         
18737         * Control.cs: make background_image private.
18738
18739 2006-12-06  Chris Toshok  <toshok@ximian.com>
18740
18741         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
18742         sure we even need this assignment, but roll with it for now.
18743
18744         * Control.cs: make the cursor field private.
18745
18746 2006-12-06  Chris Toshok  <toshok@ximian.com>
18747
18748         * Form.cs: we don't need to explicitly set ImeMode to
18749         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
18750         behavior in the face of ImeMode.Inherit.
18751
18752         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
18753         change the ctor's assignment to use ImeMode instead of ime_mode.
18754
18755         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
18756         ImeModeInherit.  Only check for the parent's imemode (and return
18757         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
18758         This fixes the button unit test, which sets both ImeMode and
18759         DefaultImeMode to ImeMode.Disable.
18760
18761         also make the ime_mode field private.
18762
18763 2006-12-06  Chris Toshok  <toshok@ximian.com>
18764
18765         * Control.cs: make control_style private.
18766
18767         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
18768         setting the styles to true, then setting them to false instead of
18769         reverting to their previous values.
18770
18771         also, call SetStyle on the scrollbars instead of using
18772         control_style directly.
18773
18774 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
18775
18776         * FormCollection.cs: Implement. [2.0]
18777
18778 2006-12-06  Chris Toshok  <toshok@ximian.com>
18779
18780         * Control.cs: make tab_stop private.
18781
18782         * Label.cs: set TabStop, not tab_stop.  reformat some event
18783         add/remove methods to make them more compact.
18784
18785 2006-12-06  Chris Toshok  <toshok@ximian.com>
18786
18787         * RadioButton.cs: fix TabStop handling.
18788
18789 2006-12-06  Chris Toshok  <toshok@ximian.com>
18790
18791         * TextBox.cs: remove the explicit assignments to has_focus.
18792         Control does that.
18793
18794         * ButtonBase.cs: remove the assignment to has_focus.  Control will
18795         manage that.
18796         
18797 2006-12-06  Chris Toshok  <toshok@ximian.com>
18798
18799         * ButtonBase.cs: remove all uses of is_enabled from this code.
18800         it's always true when any of the code containing the checks is
18801         executed.
18802
18803 2006-12-06  Chris Toshok  <toshok@ximian.com>
18804
18805         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
18806         with different semantics (some are present in both 1.1 and 2.0
18807         profiles) so that we match MS's behavior in our unit tests.
18808
18809 2006-12-06  Jackson Harper  <jackson@ximian.com>
18810
18811         * TextControl.cs: Make this operation undoable.
18812         * TextBoxBase.cs: Factor the border width into the preferred
18813         height.
18814         - implement Modified as per the spec.
18815
18816 2006-12-06  Chris Toshok  <toshok@ximian.com>
18817
18818         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
18819
18820 2006-12-06  Chris Toshok  <toshok@ximian.com>
18821
18822         * Control.cs: make right_to_left and context_menu fields private.
18823
18824 2006-12-06  Chris Toshok  <toshok@ximian.com>
18825
18826         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
18827         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
18828         Control.child_controls private.  switch all uses over to
18829         Control.Controls.
18830
18831 2006-12-06  Chris Toshok  <toshok@ximian.com>
18832
18833         * System.Windows.Forms/GroupBox.cs,
18834         System.Windows.Forms/AccessibleObject.cs,
18835         System.Windows.Forms/ErrorProvider.cs,
18836         System.Windows.Forms/Control.cs,
18837         System.Windows.Forms/UpDownBase.cs,
18838         System.Windows.Forms/ScrollBar.cs,
18839         System.Windows.Forms/DateTimePicker.cs,
18840         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
18841         System.Windows.Forms/ToolTip.cs,
18842         System.Windows.Forms/RadioButton.cs,
18843         System.Windows.Forms/LinkLabel.cs,
18844         System.Windows.Forms/Splitter.cs,
18845         System.Windows.Forms/TextBoxBase.cs,
18846         System.Windows.Forms/ToolStripTextBox.cs,
18847         System.Windows.Forms/ContainerControl.cs,
18848         System.Windows.Forms/ThemeWin32Classic.cs,
18849         System.Windows.Forms/SizeGrip.cs,
18850         System.Windows.Forms/ToolStripDropDown.cs,
18851         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
18852         private.  switch all uses over to Control.Parent.
18853
18854 2006-12-06  Chris Toshok  <toshok@ximian.com>
18855
18856         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
18857         Control does this before calling emitting these events.
18858
18859         * TabControl.cs: same.
18860
18861         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
18862         Control.client_rect.
18863
18864         * ButtonBase.cs: use the ClientSize property instead of the
18865         client_size field.
18866
18867         * ScrollableControl.cs: same.
18868
18869         * Control.cs: another pass at making properties private.  also,
18870         move the initialization of tab_stop to the ctor.
18871
18872 2006-12-05  Andreia Gaita <avidigal@novell.com>
18873
18874         * TabControl.cs: Let the selected index be set freely if the 
18875         control handle is not yet created.
18876
18877 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
18878
18879         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
18880         internal until I can rewrite DefaultLayout.
18881         * ToolStrip.cs: Fix build error and some general cleaning.
18882         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
18883         Fix build errors caused by making some of Control's fields private.
18884
18885 2006-12-05  Jackson Harper  <jackson@ximian.com>
18886
18887         * TextControl.cs: Redo Insert a little so that it use IndexOf
18888         instead of Split, this prevents it from messing up on things like
18889         \n\n\n. Also more effecient since the split array doesn't need to
18890         be created.
18891         * TextBoxBase.cs: AppendText doesnt handle multiline and non
18892         multiline text differently, this is the first of many fixes that
18893         will make multiline/non-multiline the same thing as far as the
18894         TextBoxBase is concerned.
18895         - Don't split the text and insert lines, this can lose some line
18896         endings (like is the last line a soft or hard break). Instead use
18897         the new Insert.
18898         - Fix an off by one when combining all the lines in the Text
18899         getter.
18900         - Remove separate multiline handling from the Text getter/setter.
18901
18902 2006-12-05  Chris Toshok  <toshok@ximian.com>
18903
18904         * ButtonBase.cs: a few changes:
18905
18906         - don't reinitialize internal Control fields in the ctor when they
18907         have the same values as Control sets them.
18908
18909         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
18910         this before calling those methods.
18911
18912         - we don't need to call Refresh for anything.  use Invalidate
18913         instead.
18914
18915         - OnEnabledChanged doesn't need to redraw at all - Control.cs
18916         calls Refresh in its OnEnabledChanged.
18917         
18918         - several of the events we were registered for in the ctor to
18919         redraw ourselves already include calls to Invalidate in the
18920         property setters that raise the events.  remove the extra
18921         invalidation.
18922
18923         - reformat a switch statement that was 83274658 columns wide.
18924         
18925 2006-12-05  Mike Kestner  <mkestner@novell.com>
18926
18927         * ComboBox.cs: fix a unit test regression from a TextBox
18928         SelectionLength return of -1 when there's no selection.  
18929
18930 2006-12-05  Chris Toshok  <toshok@ximian.com>
18931
18932         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
18933         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
18934         cleaning up some of the internal Control fields being used by
18935         subclasses.
18936
18937 2006-12-05  Mike Kestner  <mkestner@novell.com>
18938
18939         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
18940         listbox after AddImplicit calls since it defaults to hidden. Add a 
18941         hack to preserve requested heights across DropDownStyle changes.
18942
18943 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
18944
18945         * PropertyGrid.cs: Hide FindFirstItem method from public API.
18946
18947 2006-12-05  Chris Toshok  <toshok@ximian.com>
18948
18949         * DataGridView.cs: fix compiler warnings.
18950
18951         * PrintControllerWithStatusDialog.cs: same.
18952
18953         * ToolBar.cs: same.
18954
18955         * FolderBrowserDialog.cs: same.
18956
18957         * Splitter.cs: same.
18958
18959         * DataGridViewComboBoxCell.cs: same.
18960
18961         * XplatUIWin32.cs: same.
18962
18963         * PictureBox.cs: same.
18964
18965         * Win32DnD.cs: same.
18966
18967         * PageSetupDialog.cs: same.
18968
18969         * FileDialog.cs: same.
18970
18971         * PrintDialog.cs: same.
18972
18973         * DataGridTextBoxColumn.cs: same.
18974
18975         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
18976
18977 2006-12-05  Chris Toshok  <toshok@ximian.com>
18978
18979         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
18980         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
18981         System.ComponentModel.EventHandlerList work.
18982
18983 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
18984
18985         * DrawTreeNodeEventArgs.cs: Added.
18986
18987 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18988         
18989         * InternalWindowManager.cs: Remove an unused field.
18990         
18991 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18992
18993         * InternalWindowManager.cs:
18994         - Save the point where the title bar is clicked.
18995         
18996         * MdiWindowManager.cs:
18997         - Only allow moving of the window as long as the 
18998         clicked point on the title bar does not get out of
18999         MdiClient's rectangle. Fixes #79982.
19000         
19001         * MdiClient.cs:
19002         - Added Horizontal/VerticalScrollbarVisible.
19003         - Simplified the scrollbar sizing algorithm.
19004         - Cache the difference in scrolled value in
19005         H/VBarValueChanged and move the calculation out
19006         of the for loop.
19007
19008 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19009
19010         * Control.cs: Make the Console.WriteLine in WndProc 
19011         write more info.
19012
19013 2006-12-05  Chris Toshok  <toshok@ximian.com>
19014
19015         * ToolStripManager.cs, ToolStripButton.cs,
19016         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19017         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19018         ToolStripSplitButton.cs, ToolStripSeparator.cs,
19019         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19020         ToolStripProgressBar.cs, ToolStripContainer.cs,
19021         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19022         to using System.ComponentModel.EventHandlerList.
19023
19024 2006-12-04  Chris Toshok  <toshok@ximian.com>
19025
19026         * LinkLabel.cs: fix up compiler warnings.
19027
19028         * TableLayoutSettings.cs: same.
19029
19030         * TreeView.cs: same.
19031
19032         * ToolBar.cs: same.
19033
19034         * TabControl.cs: same.
19035
19036         * RichTextBox.cs: same.
19037
19038         * ListViewItem.cs: same.
19039
19040         * PropertyGrid.cs: same.
19041
19042         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19043
19044         * ToolTip.cs same.
19045
19046         * TextRenderer.cs: fix up compiler warnings.
19047
19048         * Label.cs: same.
19049
19050         * Form.cs: corcompare fixes.
19051
19052         * PictureBox.cs: fix up compiler warnings.
19053
19054         * ImageListStreamer.cs: same.
19055
19056         * TrackBar.cs: corcompare fix.
19057
19058         * Control.cs: fix up compiler warnings.
19059
19060         * SplitterPanel.cs: same.
19061
19062         * NumericTextBox.cs: same.
19063
19064         * ImageList.cs: same.
19065
19066         * StatusStrip.cs: same.
19067
19068         * ProgressBar.cs: corcompare fix.
19069
19070         * ToolStripButton.cs: fix up compiler warnings.
19071
19072         * ToolStripStatusLabel.cs: same.
19073
19074         * ToolStripSplitButton.cs: same.
19075
19076         * ToolStripSeparator.cs: same.
19077
19078         * ToolStripProgressBar.cs: same.
19079
19080         * ToolStripDropDownMenu.cs: same
19081
19082         * ToolStripDropDown.cs: same.
19083
19084         * ToolStripDropDownButton.cs: same.
19085
19086         * ToolStrip.cs: same.
19087
19088         * ToolStripControlHost.cs: same.
19089
19090         * ToolStripContentPanel.cs: same.
19091
19092         * ToolStripDropDown.cs: same.
19093
19094         * ToolStripContainer.cs: same.
19095
19096         * ToolStripPanel.cs: same, and add "new" where we need it to work
19097         with the new ArrangedElementCollection.
19098
19099         * ToolStripItemCollection.cs: add "new" where we need it to work
19100         with the new ArrangedElementCollection.
19101
19102 2006-12-04  Andreia Gaita <avidigal@novell.com>
19103
19104         * TabControl.cs: Fix default tab selection to after TabControl
19105         gets focus and not before. Fixes #80128
19106
19107 2006-12-04  Chris Toshok  <toshok@ximian.com>
19108
19109         * DataGridTableStyle.cs: remove the gross calling of
19110         datagrid.Refresh from here.  It's a broken idea and it doesn't
19111         work anyway.
19112
19113         * DataGrid.cs: instead, just register/unregister from the
19114         DataGridTableStyle events in CurrentTableStyle.  we play it
19115         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
19116         even though some would most likely not require it.  Fixes bug
19117         #80115 (and one portion of #80117 as a side effect).
19118
19119 2006-12-04  Chris Toshok  <toshok@ximian.com>
19120
19121         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
19122         so the textbox (if any) goes away.  Fixes bug #80117.
19123
19124 2006-12-04  Chris Toshok  <toshok@ximian.com>
19125
19126         * DataGridColumnStyle.cs: set the column's readonly property
19127         initially based on the property descriptor's IsReadOnly.  Fixes
19128         bug #80044.
19129
19130 2006-12-04  Chris Toshok  <toshok@ximian.com>
19131
19132         * ComboBox.cs: wrap the dropdown style changing work in
19133         SuspendLayout/ResumeLayout.  Fixes bug #79968.
19134
19135 2006-12-04  Jackson Harper  <jackson@ximian.com>
19136
19137         * TextBoxBase.cs: Fix off by one, since these are one-based.
19138         * TextBox.cs: Select all the text when we get focus.  The TextBox
19139         does this but the RTB does not.
19140
19141 2006-12-04  Chris Toshok  <toshok@ximian.com>
19142
19143         * DataGridTextBoxColumn.cs: remove some spew.
19144
19145         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
19146         but some part of me is saying "it shouldn't be here.."  At any
19147         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
19148         setting the value.
19149
19150 2006-12-04  Chris Toshok  <toshok@ximian.com>
19151
19152         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
19153         to reassign the propertydescriptor.
19154
19155 2006-12-04  Jackson Harper  <jackson@ximian.com>
19156
19157         * TextBoxBase.cs:
19158         * TextControl.cs: Remove some unused variables.  Maybe this will
19159         patch things up between mike and I.
19160         - don't split lines less then one char wide, if the viewport is
19161         that small text won't be visible anyways.
19162         
19163 2006-12-04  Jackson Harper  <jackson@ximian.com>
19164
19165         * TextBoxBase.cs: Default selection length is -1, need to do some
19166         more testing on windows to see when this is used for the property.
19167         - Redid the Lines [] property to that we properly remove soft line
19168         breaks
19169         - added support for preserving carriage returns
19170         -  CanUndo is not a variable like 'is undo enabled' it just returns
19171         true if there is undo operations available.
19172         - AppendText doesn't need to grab the last tag itself anymore,
19173         this happens automatically when we move the cursor.
19174         * TextControl.cs: Add CompoundActions to the undo class. This
19175         allows combining the other operations into one big option.  ie a
19176         paste will combine { delete old, insert new, move cursor }
19177         - Add InsertString undo operation
19178         - New method for deleting multiline text
19179         - Add carriage returns to lines. So we can preserve carriage
19180         returns when text is 'roundtripped'
19181
19182 2006-12-04  Chris Toshok  <toshok@ximian.com>
19183
19184         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
19185         minimum 0.  Fixes the scrollbar exception in bug #80136.
19186
19187 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19188
19189         * MdiClient.cs: 
19190         * MdiWindowManager: Removed unused fields and methods.
19191         
19192 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19193         
19194         * StatusBar.cs: Update all panels when a AutoSize=Contents
19195         panel needs updating.
19196         
19197         * StatusBarPanel.cs: Remove twidth and only use initialize.
19198         Fixes #80031.
19199                 
19200 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19201
19202         * Form.cs: When a form's MdiParent is set add it directly
19203         on top of the z-order in stead of relying on MdiClient's
19204         ActivateChild to do it. Fixes #80135.
19205         
19206         * MdiClient.cs: 
19207         - Remove original_order, mdi_child_list is already doing
19208         the same thing.
19209         - Create mdi_child_list on construction in
19210         stead of first use (avoids a few null checks).
19211
19212         * MenuItem.cs: Use an already existing list of mdi children
19213         to get the correct order of children and remove the other
19214         redundant list.
19215
19216 2006-12-04  Chris Toshok  <toshok@ximian.com>
19217
19218         * PropertyGridView.cs: cached_splitter_location is only used in
19219         !DOUBLEBUFFER code.
19220
19221         * PropertyGrid.cs: implement the ComComponentNameChanged event
19222         using Events, hoping that would fix the warning.  Looks like a
19223         compiler bug instead (#80144).
19224
19225         * PropertyManager.cs: remove unused method.
19226
19227 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
19228
19229         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
19230         include parentesis to fix expression evaluation. Fixes #79634.
19231
19232 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
19233         
19234         * MenuAPI.cs:
19235         - Changes to fix behavior in Menu control, some reported in #80097
19236         and other detected during behavior refactory like a select event
19237         problems.
19238         - Remove unneded "if's" conditions.
19239         - Created an internal to flag when popup is active in control, we need 
19240         it because in .NET you can have menu active but without popup active
19241         when you active menu using popup without visible items.
19242         - Mimic win32 behavior for Select and Popup events.  
19243         - Dont open popup menu when you dont have visible subitems.
19244         - Do nothing when click on disabled menu item.
19245         - Some small changes to follow the coding style guidelines.
19246         - Unselect menu only when another control gives focus. Fixes #80097.
19247         - Remove unused code.
19248         
19249         * MenuItem.cs: internal VisibleItems method to check if menu
19250         theres visible subitems, it will be usefull to fix some 
19251         behavior in Menu control.
19252         
19253 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
19254         
19255         * Timer.cs: Tag property for 2.0 profile.
19256         
19257 2006-12-01  Chris Toshok  <toshok@ximian.com>
19258
19259         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
19260         
19261         * Win32DnD.cs: comment out some unused fields.
19262
19263         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
19264         some unused properties/methods.
19265
19266         * XplatUIX11.cs: fix MousePosition so we override the base class's
19267         property instead of conflicting with it.
19268
19269         * PictureBox.cs: comment out some unused fields
19270
19271         * OSXStructs.cs: make some struct fields public.
19272
19273         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
19274         MousePosition so we override the base class's property instead of
19275         conflicting with it.
19276
19277         * X11Dnd.cs: comment out some unused fields
19278
19279         * X11DesktopColors.cs: fix some struct field visibility to quiet
19280         the compiler.
19281
19282         * X11Dnd.cs: remove some debug code.
19283
19284         * ThemeClearlooks.cs: comment out unused field.
19285
19286         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
19287
19288         * ThemeGtk.cs: comment out some unused pinvokes.
19289
19290         * Timer.cs: remove some unused fields.
19291
19292         * ThemeClearlooks.cs: comment out unused field.
19293
19294         * UpDownBase.cs: comment out unused field.
19295
19296         * DataObject.cs: comment out unused field.
19297
19298         * DataGridBoolColumn.cs: reomve unused field.
19299
19300         * DataGrid.cs: remove unused field.
19301
19302         * Cursor.cs: remove old ToBitmap code.
19303
19304         * ControlPaint.cs: remove unused method.
19305
19306         * ScrollBar.cs: remove unused fields.
19307
19308         * ComboBox.cs: remove unused field, and chain up to
19309         AccessibleObject ctor.
19310
19311         * ListBox.cs: remove unused field.
19312
19313         * ButtonBase.cs: wrap a couple fields in NET_2_0.
19314
19315         * GridEntry.cs: remove unused fields.
19316
19317         * Binding.cs: remove unused fields.
19318
19319         * AxHost.cs: remove unused method.
19320
19321         * ContainerControl.cs: remove unused field.
19322
19323         * ScrollableControl.cs: remove unused fields.
19324
19325 2006-12-01  Chris Toshok  <toshok@ximian.com>
19326
19327         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
19328         the Where/WhereString stuff.  it's easy enough to CWL
19329         Environment.StackTrace.
19330
19331         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
19332         unused private fields.
19333
19334 2006-12-01  Jackson Harper  <jackson@ximian.com>
19335
19336         * TextControl.cs: Do not update the view while inserting multiline
19337         text. If we update the view we might wrap lines, before entering
19338         the new lines, which causes the new line insertion calculations to
19339         be totally fubared.
19340         - Remove an old TODO
19341         - Make debug output a little nicer
19342         
19343 2006-12-01  Chris Toshok  <toshok@ximian.com>
19344
19345         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
19346
19347 2006-12-01  Chris Toshok  <toshok@ximian.com>
19348
19349         [ fix the majority of the CS0108 warnings we've been suppressing ]
19350         
19351         * TreeView.cs: mark BackgroundImageChanged as 'new'.
19352
19353         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
19354         to "LayoutToolBar" to quiet mcs.
19355         
19356         * TabControl.cs: mark our ControlCollection class as 'new'.
19357
19358         * TextBoxBase.cs: mark some events as 'new'.
19359
19360         * Splitter.cs: TabStop is 'new'.
19361
19362         * ControlBindingsCollection.cs: mark a few methods as new since
19363         they change the visibility from protected to public.
19364
19365         * RadioButton.cs: DoubleClick -> base class, and remove unused
19366         HaveDoubleClick.
19367
19368         * MonthCalendar.cs: ImeMode property -> base class, and mark many
19369         events as new.
19370
19371         * NumericUpDown.cs: TextChanged -> base class.
19372
19373         * CheckedListBox.cs: mark our ObjectCollection class as new to
19374         quiet mcs.
19375
19376         * FolderBrowserDialog.cs: make HelpRequest event new and have it
19377         muck with the base class.
19378
19379         * StatusBar.cs: fix some mcs warnings about Update being the same
19380         name as a base class method.
19381
19382         * RichTextBox.cs: mark some events as new, and make them do things
19383         to the base class impl.
19384
19385         * UserControl.cs: mark TextChanged as new, and have it manipulate
19386         base.TextChanged.
19387
19388         * UpDownBase.cs: mark some things new.
19389
19390         * CheckBox.cs: mark DoubleClick "new", and add some text about
19391         what we need to look at.
19392
19393         * Panel.cs: make the events "new", and manipulate the base
19394         version.  these are just here for attributes.
19395
19396         * AccessibleObject.cs: make owner private.
19397
19398         * Control.cs: deal with AccessibleObject.owner being private.
19399         cache our own copy if we need it.
19400
19401         * Button.cs: add "new" to the DoubleClickEvent.
19402
19403         * ListBox.cs: no need to track our own has_focus here.  let
19404         Control.has_focus do it for us.  Also some other work to clear up
19405         warnings about not overriding base class methods of the same name.
19406         
19407         * ComboBox.cs: clear up some warnings about not override base
19408         class methods of the same name.
19409
19410 2006-12-01  Chris Toshok  <toshok@ximian.com>
19411
19412         * Form.cs: flag a few things as "new" to quiet some of the mcs
19413         warnings.
19414
19415         * AxHost.cs: same.
19416
19417         * PrintPreviewDialog.cs: same.
19418
19419         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
19420         now DGV isn't so horrible on the class status page.  also, move
19421         all events to using System.ComponentModel.EventHandlerList.  my
19422         wrists hurt.
19423
19424 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19425
19426         * MdiWindowManager.cs:
19427         - Set form to active mdi child if shown,
19428         and update the active mdi child to the next 
19429         remaining child in the z-order if the form is hidden.
19430
19431         * Form.cs: 
19432         - Track if the form has been visible and if its 
19433         visibility is beeing changed, so that the MdiClient
19434         can properly decide the ActiveMdiChild. The MdiClient 
19435         cannot track this since the form can change visibility 
19436         before MdiClient is created.
19437
19438         * MdiClient.cs:
19439         - Don't activate anything of the parent form is changing
19440         its visibility.
19441         - Rework ActiveMdiChild to only return visible mdi 
19442         children and take into account several other corner 
19443         cases.
19444
19445 2006-12-01  Chris Toshok  <toshok@ximian.com>
19446
19447         * IBindableComponent.cs: new 2.0 interface.
19448
19449 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
19450
19451         * DataGrid.cs: Font for caption area is bold by default.
19452
19453 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
19454
19455         * Menu.cs: Tag property for 2.0.
19456         
19457 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
19458
19459         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
19460         
19461 2006-12-01  Chris Toshok  <toshok@ximian.com>
19462
19463         * TreeView.cs: doh, the Begin* events should be
19464         TreeViewCancelEventHandler.
19465
19466 2006-12-01  Chris Toshok  <toshok@ximian.com>
19467
19468         * Form.cs: Form.ControlCollection already stores off the
19469         form_owner field.  don't access the base class's internal "owner"
19470         field.
19471
19472         * Control.cs: make all the fields in Control.ControlCollection
19473         private.  there's no need for any internal fields here.
19474
19475 2006-12-01  Chris Toshok  <toshok@ximian.com>
19476
19477         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
19478         OnHandleCreated.  Fixes bug #80109.
19479
19480 2006-12-01  Chris Toshok  <toshok@ximian.com>
19481
19482         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
19483         SplitContainer.cs, Control.cs, StatusStrip.cs,
19484         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
19485         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
19486         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
19487         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
19488         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
19489         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
19490         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
19491         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
19492         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
19493         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
19494
19495         do most of the work to convert our code over to use
19496         System.ComponentModel.Component.Events for
19497         adding/removing/dispatching events.
19498
19499
19500 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
19501
19502         * DataGridView.cs: Fix an ArgumentNullException reported 
19503         twice today in IRC.
19504
19505 2006-11-30  Mike Kestner  <mkestner@novell.com>
19506
19507         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
19508         grabbed listbox.  Fixes #80036 and #80101.
19509
19510 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
19511
19512         * Message.cs: Changed ToString() to match MS.
19513         
19514 2006-11-30  Jackson Harper  <jackson@ximian.com>
19515
19516         * TextBoxBase.cs: You can still change the selected text on a read
19517         only textbox.
19518         * TextControl.cs: Lower magic number for wrap calculations. This
19519         lets text get closer to the right (far) edge.
19520
19521 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
19522
19523         * Control.cs: Tweak 2.0 layout properties.
19524         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
19525         * TextRenderer.cs: Add a new overload.
19526         * ToolStrip*: Huge amount of changes and new features.
19527
19528 2006-11-30  Mike Kestner  <mkestner@novell.com>
19529
19530         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
19531         scroll range correct.  Fixes #79994.
19532
19533 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
19534
19535         * MdiWindowManager.cs: Update main form's text when
19536         a form is closed. (fixes #80038)
19537         
19538 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
19539
19540         * ToolBar.cs:
19541         - Fix an regression in ButtonSize.
19542         - Get ImeMode default value change to "Disable".
19543         - Get ShowTooltips default value change to true, default value is 
19544         "false" but after make a test in .NET we get "true" result as default.
19545         
19546 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
19547
19548         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
19549
19550 2006-11-29  Chris Toshok  <toshok@ximian.com>
19551
19552         * XplatUIWin32.cs (GetWindowTransparency): check return value of
19553         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
19554         SetWindowTransparency hasn't been called.
19555
19556 2006-11-29  Chris Toshok  <toshok@ximian.com>
19557
19558         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
19559         if it's supported.
19560         (set_AllowTransparency): reorder things a little so that the
19561         WS_EX_LAYERED style is removed properly.
19562
19563 2006-11-29  Chris Toshok  <toshok@ximian.com>
19564
19565         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
19566         
19567         * Form.cs: only call the XplatUI transparency method (get/set) if
19568         SupportsTransparency says it's supported. Otherwise fallback to
19569         doing nothing (in the set case) or returning the instance field we
19570         cache (in the get case).
19571
19572         * XplatUIStructs.cs: add TransparencySupport flag enum.
19573         
19574         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
19575         change to SupportsTransparency.
19576
19577         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
19578         TransparencySupport.None from SupportsTransparency.
19579
19580         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
19581         TransparencySupport.Set from SupportsTransparency.
19582
19583         * XplatUIWin32.cs: implement GetWindowTransparency calling
19584         GetLayeredWindowAttributes, and implement SupportsTransparency by
19585         checking whether or not both
19586         GetWindowTransparency/SetWindowTransparency are available
19587         entrypoints.  We need to do this since SetWindowTransparency is
19588         available as of win2k, but GetWindowTransparency requires winxp.
19589         yay win32 api.
19590
19591         * XplatUI.cs: Add GetWindowTransparency, and change
19592         SupportsTransparency to allow for either/both Get/Set.
19593
19594 2006-11-29  Chris Toshok  <toshok@ximian.com>
19595
19596         * DataGrid.cs: keep from going into an infinite loop redrawing a
19597         datagrid that has no datasource.  Fixes bug #80033.
19598
19599 2006-11-29  Chris Toshok  <toshok@ximian.com>
19600
19601         * MenuItem.cs: fix the NRE when we assign text (and therefore call
19602         Invalidate) before the mainmenu has been assigned to a control.
19603
19604 2006-11-29  Chris Toshok  <toshok@ximian.com>
19605
19606         * DataGrid.cs: detect when we should be double the double click
19607         row/column autosize stuff, although that codepath has yet to be
19608         written.  part of the work for bug #79891.
19609
19610 2006-11-29  Chris Toshok  <toshok@ximian.com>
19611
19612         * Binding.cs (SetControl): fix unit test.
19613
19614 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19615
19616         * PageSetupDialog.cs: Validate the margins and set them in
19617         PageSettings. 
19618         * NumericTextBox.cs: New class to mimic the behavior of the
19619         textboxes used in the printing dialogs.
19620
19621 2006-11-29  Andreia Gaita  <avidigal@novell.com>
19622         
19623         * Form.cs: Revert previous change (remove call UpdateBounds
19624         from form constructor), because it messes with the handle creation
19625         order, and that one needs lots and lots of love.
19626         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
19627         for valid printer and throw InvalidPrinterException if document
19628         is set but printer not valid), adding a MonoTODO. Once 
19629         handle creation is done properly, we can put this back in.
19630
19631 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19632
19633         * MenuItem.cs: Create a invalidate method for menu item, to be
19634         calling from set text, it make text changes to imadiate update
19635         on screen. Fixes #80013. 
19636         
19637 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19638
19639         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
19640         fixes bug #80070 and some other problem on toolbar buttons
19641         layout.
19642
19643 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19644
19645         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
19646         with dotted brush.      Fixes #79564
19647         
19648 2006-11-28  Andreia Gaita  <avidigal@novell.com>
19649
19650         * Form.cs: Removed call to UpdateBounds on Form
19651         constructor, it was causing a call to CreateHandle
19652         before it was supposed to.
19653         * PrintControllerWithStatusDialog: Applied patch
19654         by Chris Toshok to hide controller when there are
19655         no printers available.
19656         PrintDialog.cs: initialize printer settings to 
19657         null - correct DefaultValues test #5
19658         * PrintPreviewControl.cs: Move PrintController
19659         initialization to GeneratePreview
19660         * PrintPreviewDialog.cs: 
19661         - Remove Preview generation     from Document_set(). It is 
19662         called on OnPaint
19663         - Throw InvalidPrinterException on CreateHandle if
19664         a Document is set but there are no printers or 
19665         printer is not valid.
19666         * ThemeWin32Classic: don't paint PrintPreviewControl
19667         if there is nothing to paint    
19668
19669 2006-11-28  Miguel de Icaza  <miguel@novell.com>
19670
19671         * Form.cs: Add another popular method.
19672
19673         * TabPage.cs: ditto.
19674
19675 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19676
19677         * MenuItem.cs: Fixed a warning.
19678         * InternalWindowManager: Fixed a warning.
19679
19680 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19681
19682         * MenuItem.cs:
19683         - When cloning a menu also clone MdiList and clone the 
19684           window menu items properly (as the forms and menuitems
19685           are kept in an internal hashtable, these need updating 
19686           as well)
19687         - Rewrote the window menu code, menu items are added in the
19688           order the forms were added to their parent, and they are
19689           updated every time the window menu is shown (before the
19690           list was only generated once, in the current order of the
19691           forms, and would never be updated). A checkmark is shown
19692           next to the item corresponding to the active mdi child.
19693
19694 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19695
19696         * XplatUIStructs.cs: 
19697         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
19698         
19699         * XplatUIWin32.cs: 
19700         - Added TME_NONCLIENT to TMEFlags.
19701         - Handles WM_NCMOUSEMOVE in GetMessage to 
19702           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
19703
19704         * MdiWindowManager:
19705         - Now merges mdi child menu to parent menu when maximized.
19706         - Recalculate NC areas of both mdi child and mdi parent. 
19707           Fixes #79757 (4).
19708           on window state and size changes.Fixes #79844 (3).
19709         - Handle WM_NCCALCSIZE to properly calculate borders.
19710
19711         * Form.cs:
19712         - Add/remove to the mdi containers list of mdi children 
19713           in the order they are added.
19714         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
19715           to the maximized mdi child.
19716         
19717         * InternalWindowManager.cs:
19718         - Only execute a click on the control buttons on the mouse up,
19719           not on the mouse down. Show the state of the button 
19720           (was only showing Normal state, never Pressed state). The
19721           pressed button now follows the mouse (if you click the Close 
19722           button and move the mouse over the Maximize button, the 
19723           Maximize button will be shown as pressed). Since Win32 does
19724           not generate WM_NCLBUTTONUP if you release the button outside
19725           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
19726           it as a mouse up.
19727         
19728         * ThemeWin32Classic.cs:
19729         - Draw a missing border around mdi child forms. Fixes #79844 (2).
19730
19731         * MdiClient.cs:
19732         - Added a list of forms which contains the order the forms are
19733           added to the mdi parent.
19734         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
19735         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
19736         - If the active form changes set the scrollbars to the top
19737           of the Z order, otherwise the form could hide them.
19738         - Scrollbars are now sized according to ClientSize, not 
19739           to Size, and they take into account the other scrollbar
19740           to determine maximum.
19741         
19742 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
19743         
19744         * XplatUI.cs:
19745         * XplatUIDriver.cs:
19746         * XplatUIX11.cs:
19747         * XplatUIWin32.cs:
19748         * XplatUIOSX.cs:
19749         - Added RequestAdditionalWM_NCMessages for windows to 
19750           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
19751           Currently only implemented in XplatUIWin32.
19752
19753 2006-11-27  Chris Toshok  <toshok@ximian.com>
19754
19755         * Hwnd.cs: only add the hwnd to the windows hash in
19756         set_WholeWindow and set_ClientWindow if whole_window/client_window
19757         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
19758
19759 2006-11-27  Mike Kestner  <mkestner@novell.com>
19760
19761         * ComboBox.cs: remove redundant OnDropDown call.  It is called
19762         from the ComboListBox.ShowWindow code. Fixes #79969.
19763
19764 2006-11-27  Chris Toshok  <toshok@ximian.com>
19765
19766         * Hwnd.cs: remove the setters for ExposePending and
19767         NCExposePending - noone uses them.
19768
19769 2006-11-27  Jackson Harper  <jackson@ximian.com>
19770
19771         * TextControl.cs: new param for ReplaceSelection which determines
19772         whether we select the new selection, or set the cursor to the end
19773         of the new selection.
19774         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
19775         pasting, select the new text.
19776         * RichTextBox.cs: Use new param for ReplaceSelection.
19777
19778 2006-11-27  Jackson Harper  <jackson@ximian.com>
19779
19780         * TextBoxBase.cs: Set the selection to the caret after the caret
19781         is moved, otherwise they get out of sync.
19782
19783 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
19784
19785         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
19786         it fixes #80015
19787
19788 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
19789
19790         * ThemeWin32Classic.cs: 
19791         - Fix toolbar drop down arrow position.
19792         - Fix drop down appearance when ToolBar.Appearance is normal,
19793         it fixes #80018.
19794         
19795 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
19796
19797         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
19798         * Control.cs: Same.
19799         * UpDownBase.cs: Same.
19800         * ButtonBase.cs: Same.
19801         * ScrollBar.cs: Same.
19802         * TrackBar.cs: Same.
19803         * PictureBox.cs: Same.
19804         * UserControl.cs: Same.
19805         * Label.cs: Same.
19806         * ListControl.cs: Same.
19807         * TextBoxBase.cs: Same.
19808         * ListView.cs: Same.
19809         * RichTextBox.cs: Same.
19810         * TreeView.cs: Same.
19811
19812 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
19813
19814         * PrintDialog.cs:
19815         - Text label for where 
19816         - Text label comment was not shown
19817
19818 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
19819
19820         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
19821
19822 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19823
19824         * InternalWindowManager.cs: 
19825         - Handle WM_PARENTNOTIFY to activate the form
19826         if any child control is clicked.
19827         - The form is only sizable if not minimized.
19828
19829         * MdiWindowManager.cs:
19830         - Save the IconicBounds if the form is moved.
19831         - Rework SetWindowState, now the window bounds 
19832         are stored only if the old window state is Normal.
19833         
19834         * MdiClient.cs:
19835         - In SetWindowStates store the old window state if 
19836         the window is maximized and restore window state if
19837         the window looses focus.
19838         - Don't handle any scrollbar value changes if 
19839         initializing the scroll bars. Fixes #79771.
19840         - Reworked ArrangeIconicWindows. Current algorithm
19841         tests bounds agains all other minimized windows, if
19842         any intersections create new bounds (going left to 
19843         right, bottom to top) and then test again. When 
19844         successful the bounds are saved and never computed
19845         again. Fixes #79774.
19846
19847 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19848
19849         * InternalWindowManager.cs: Added HandleTitleBarUp.
19850
19851 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19852
19853         * NumericUpDown.cs: In .NET 1.1, user entered text is still
19854         hexadecimal in ParseUserEdit.
19855
19856         
19857 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19858
19859         * MdiWindowManager.cs: 
19860         - Handle a click on the form's icon to show the 
19861         system menu (when maximized). Fixes #79775.
19862         - Change the existing click handler for the form's
19863         icon when not maximized to show on MouseUp.
19864         Fixes #79776.
19865
19866         * Form.cs: In OnResize only layout the mdi child's
19867         parent if it actually has a parent. Might not if
19868         the window is closing.
19869
19870
19871 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19872
19873         * MdiClient.cs: Ignore active MDI client for text of parent, if
19874         child has no text set.
19875
19876 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19877
19878         * ToolBar.cs: Fixed ToString to match MS.
19879
19880 2006-11-22  Andreia Gaita  <avidigal@novell.com>
19881
19882         * NumericUpDown: 
19883         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
19884         update inner values on set. Fixes #79966.
19885         - Override OnLostFocus to update value on NET 2. Fixes #79950.
19886         - Fix hexadecimal parsing.
19887         
19888         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
19889         parent. Fixes #79957
19890
19891 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19892
19893         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
19894         the actual size has to be queried, since if height /
19895         width is negative Win32 changes it to 0. 
19896         Fixes #79999 on Windows.
19897         
19898         * XplatUIX11.cs: Set height / width to 0 if negative
19899         in SetWindowPos. Fixes #79999 on Linux.
19900         
19901 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
19902
19903         * ThemeWin32Classic.cs: Fix text redenring when button is
19904         pressed.
19905
19906 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
19907
19908         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
19909         and later navigate by mouse. Fixes #79528.
19910
19911 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
19912
19913         * ToolBar.cs: Set default value for TabStop to false in
19914         constructor, it fixes remaining behavior of bug #79863.
19915
19916 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19917
19918         * MdiWindowManager.cs:
19919         * InternalWindowManager.cs:
19920         - Moved a few methods specific to Mdi from 
19921         InternalWindowManager to MdiWindowManager.
19922         Fixes #79996.
19923         
19924 2006-11-21  Chris Toshok  <toshok@ximian.com>
19925
19926         * XplatUIOSX.cs: stub out InvalidateNC.
19927
19928         * XplatUIWin32.cs: implement InvalidateNC using the call I found
19929         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
19930
19931         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
19932
19933         * XplatUIDriver.cs: add InvalidateNC abstract method.
19934
19935         * XplatUI.cs: add InvalidateNC.
19936
19937 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
19938
19939         * ToolBar.cs: Invalidate complete button area when pressed status 
19940         was changed.
19941         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
19942         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
19943         by 1 when button is pressed.
19944
19945 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19946
19947         * ToolButton.cs: Invalidate middle of DropDown button when
19948         ToolBar theres DropDownArrows.
19949         * ThemeWin32Classic.cs: Change position of DropDown arrow and
19950         fix DropDown drawing operations.
19951
19952 2006-11-20  Chris Toshok  <toshok@ximian.com>
19953
19954         * NativeWindow.cs: fix the formatting of functions ('{' on the
19955         following line), and enable the thread exception dialog.
19956
19957         * Application.cs: remove the duplicate exception catching from
19958         here.
19959
19960 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19961
19962         * Toolbar.cs: Triggers button click event when click on icon
19963         of dropdown ToolBarButton. Fixes #79912.
19964         
19965 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19966
19967         * Theme.cs:
19968         * ThemeWin32Classic.cs:
19969         - Added a property WindowBorderFont to enable themeing
19970           of mdi child windows' Text.
19971           
19972 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19973
19974         * InternalWindowManager.cs:
19975         * Form.cs:
19976         * MdiClient.cs:
19977         * MdiWindowManager.cs: 
19978         - If mdi child is maximized, set mdi parent's
19979           text to "Parent - [Child]". Fixes #79770.
19980         - If there is any maximized mdi child windows, only the active 
19981           window (and any new windows) is maximized, the rest are normal.
19982         - On a WindowState change only save mdi child's window bounds 
19983           if the old window state was normal. Fixes #79774.
19984         - The scroll bars are now calculated on hopefully all
19985           necessary events. Fixed #79771 / #79844->6 / #79906.
19986         - MdiClient.SizeScrollBars() now takes into account docked 
19987           controls in the parent when calculating available space.
19988         - InternalWindowManager now always repaints the entire title
19989           area. Fixes #79844->1/4/5.
19990         - Added RequestNCRecalc on mdi child windowstate changes.
19991           Fixes #79772.
19992
19993 2006-11-20  Mike Kestner  <mkestner@novell.com>
19994
19995         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
19996         in the MouseUp handler of the listbox and move the return handling
19997         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
19998
19999 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20000
20001         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
20002
20003 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20004
20005         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20006           working in 1.2.x anymore. So, updated.
20007
20008 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
20009
20010         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20011         NumberGroupSeparator of current culture instead of assuming en-US.
20012         Fixed bug #79967.
20013
20014 2006-11-17  Mike Kestner  <mkestner@novell.com>
20015
20016         * Control.cs: Add the concept of implicit bounds setting so that
20017         dock/undock round trips preserve explicitly set size/locations.
20018         Fixes #79313.
20019
20020 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20021
20022         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20023           can't handle those filters. (Fixes bug #79961)
20024
20025 2006-11-17  Chris Toshok  <toshok@ximian.com>
20026
20027         [ fixes the exit/crashes associated with #79835.  it's clearly
20028         suboptimal though, we need to figure out a better way to solve
20029         this. ]
20030         
20031         * PrintPreviewControl.cs: deal with the new invalid printer
20032         exceptions.
20033
20034         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20035         and return false (so CommonDialog.ShowDialog doesn't actually show
20036         the form.)
20037
20038         * PrintDialog.cs: enable/disable the Ok button depending on
20039         whether or not the printer is valid.
20040
20041         * CommonDialog.cs (ShowDialog): only actually show the form if
20042         RunDialog returns true.
20043
20044 2006-11-17  Jackson Harper  <jackson@ximian.com>
20045
20046         * TextControl.cs: When soft splitting a line, mark it as a soft
20047         split line. Also carry over the current line break to the next
20048         line.
20049
20050 2006-11-17  Chris Toshok  <toshok@ximian.com>
20051
20052         * XplatUIX11.cs: when scrolling a window with an invalid area, we
20053         only want to shift the part of the invalid area that overlaps the
20054         area we're scrolling.  we also don't want to clear the invalid
20055         area unless the invalid area was entirely contained within the
20056         scrolling area.
20057
20058 2006-11-16  Chris Toshok  <toshok@ximian.com>
20059
20060         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20061         also make sure to free the memory returned by XGetWindowProperty
20062         in GetText().
20063
20064         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20065
20066 2006-11-16  Chris Toshok  <toshok@ximian.com>
20067
20068         * XplatUI.cs: add a new super secret way to get at the totally
20069         unsupported X11 backend.
20070
20071 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
20072
20073         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20074
20075 2006-11-16  Jackson Harper  <jackson@ximian.com>
20076
20077         * TreeView.cs: Allow more explicit setting of top node position
20078         for scrollbars. Slower algo, but more accurate.
20079         - CollapseAll should maintain the current top node.
20080         * TextBoxBase.cs: When positioning the caret, use the line, pos
20081         method, since the x, y method does not grab the correct tag, and
20082         the caret height never gets set correctly. (Maybe I should just do
20083         away with the caret having its own height, and always use the
20084         carets current tag for height).
20085
20086 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
20087
20088         [Fixes 79778, 79923]
20089
20090         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20091         Parent to the FosterParent instead.
20092
20093 2006-11-16  Jackson Harper  <jackson@ximian.com>
20094
20095         * TreeView.cs: Need to recalc the topnode when we expand or
20096         collapse. The scrolling methods can't handle this on their own,
20097         since they use differences between the last scroll position, and
20098         those difference get completely messed up since we are expanding
20099         nodes.  This problem should probably be fixed in the scrolling
20100         methods, so they can figure out exactly where they are, but this
20101         will slow things down a little.
20102         * ThemeWin32Classic.cs: Special case for groupboxes with empty
20103         strings, makes nunit-gui look a lot nicer.
20104
20105 2006-11-16  Chris Toshok  <toshok@ximian.com>
20106
20107         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
20108         the broken multithreaded event handling we have in here.  File
20109         this entry under "Why we should move to the new X11 backend".
20110
20111         Any thread can make it into UpdateMessageQueue, which gets events
20112         from the X socket - some of which could belong to hwnds being
20113         managed by a different thread.  We can also have multiple threads
20114         in UpdateMessageQueue at the same time, with each one reading from
20115         the X socket.  This leads to many problems, with the following
20116         solutions:
20117
20118         We can't use hwnd.Queue.Enqueue anywhere in here and must use
20119         EnqueueLocked.
20120
20121         The MotionNotify compression we do can't work across threads
20122         (without locking the entire queue, perhaps) since we call
20123         hwnd.Queue.Peek, so we just punt and don't compress motion events
20124         unless the owning thread is the one which got the X event.
20125
20126         ConfigureNotify is another fun one, since it modifies the hwnd's
20127         bounds and then enqueues the event.  We add a lock to Hwnd which
20128         is held when setting configure_pending to true (and enqueuing the
20129         event).
20130
20131         There is a race wrt the wake socket.  we need to make sure that
20132         only 1 thread is waiting on that socket, or else a thread could
20133         sleep waiting for data that never comes.  It's difficult (but not
20134         impossible) to make happen, because it seems to require something
20135         like the following:
20136
20137             1. Thread 1 polls on wake_receive
20138         
20139             2. poll returns saying there's data to be read on
20140                wake_receive.
20141         
20142             3. Thread 2 polls on wake_receive and immediately returns
20143                saying there's data to be read.
20144
20145             4. Thread 2 reads the wakeup byte from wake_receive
20146
20147             5. Thread 1 attempts to read the wakeup byte from
20148                wake_receive.
20149
20150             6. Thread 2 exits (due to a form closing, perhaps).
20151
20152             7. Thread 1 blocks forever.
20153         
20154         Fun, eh?
20155
20156         Fixing the Expose handling isn't done yet, and the races inherent
20157         in that piece of code are responsible for the drawing mistakes you
20158         see when generating expose events in a MT app (like NPlot).  This
20159         one is the likely to be the hardest to bandaid, and it doesn't
20160         appear to cause anything but drawing problems.  The other issues
20161         caused apps to exit or hang.
20162
20163         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
20164         called from a different thread than the one that should be calling
20165         these functions.
20166
20167         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
20168
20169 2006-11-15  Chris Toshok  <toshok@ximian.com>
20170
20171         * Application.cs: null out the context's MainForm when we exit
20172         RunLoop.  Fixes a newly checked in unit test as well as the last
20173         ODE from bug #79933.
20174
20175 2006-11-15  Chris Toshok  <toshok@ximian.com>
20176
20177         * Form.cs (set_Owner): allow a null value so we can clear the
20178         form's owner.
20179         (Dispose): set all our owned_form's Owner properties to null, and
20180         clear the owned_forms collection.
20181         (WM_CLOSE): clean up this a little bit.. still not right though.
20182
20183         * ApplicationContext.cs: OnMainFormClosed should only call
20184         ExitThreadCore if the main form isn't recreating.  Fixes unit
20185         test.
20186
20187 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20188
20189         [Fixes 78346]
20190
20191         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
20192
20193 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20194
20195         [Fixes 79433]
20196
20197         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
20198         keep popup window types from stealing focus from the main form
20199         on Windows.
20200
20201         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
20202
20203         * MenuAPI.cs: Set above flag to true.
20204
20205 2006-11-15  Chris Toshok  <toshok@ximian.com>
20206
20207         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
20208         the button being released is not in wParam.
20209
20210 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20211
20212         * Form.cs: Add the released button to MouseEventArgs.Button
20213         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
20214         on Win32.
20215
20216 2006-11-15  Chris Toshok  <toshok@ximian.com>
20217
20218         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
20219         GetText().  untested because it's unused in our implementation.
20220         Control.Text always caches the text, even if
20221         ControlStyles.CacheText is not set.
20222
20223         fixes bug #79939.
20224
20225 2006-11-15  Chris Toshok  <toshok@ximian.com>
20226
20227         [ fixes #79933 ]
20228         
20229         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
20230         message.  no hiding, no disposing.
20231
20232         in the WM_CLOSE handler, hide the form if it's modal.
20233
20234 2006-11-15  Chris Toshok  <toshok@ximian.com>
20235
20236         * XplatUIX11.cs: use AddExpose instead of sending a message.
20237         fixes textbox border drawing.
20238
20239 2006-11-15  Chris Toshok  <toshok@ximian.com>
20240
20241         * PropertyGridView.cs: keep from crashing on mouse move/down when
20242         the property grid is empty.
20243
20244 2006-11-14  Jackson Harper  <jackson@ximian.com>
20245
20246         * TextControl.cs: Make PageUp and PageDown more like the MS
20247         versions.
20248         * TextBoxBase.cs: When we set the text property position the
20249         cursor at the beginning of the document.
20250
20251 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20252
20253         * Form.cs: if a mdi child's WindowState has changed
20254         before it's creation, it would display wrong control
20255         buttons.
20256         
20257 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
20258
20259         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
20260           (Fixes bug #79927)
20261
20262 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
20263
20264         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
20265         the window gets to paint its borders even if the window is
20266         getting smaller.
20267         
20268         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
20269         otherwise the old control buttons would still be painted 
20270         if the window gets bigger.
20271         
20272         * PaintEventArgs.cs: add an internal method so that the clip 
20273         rectangle can be changed.
20274         
20275 2006-11-13  Chris Toshok  <toshok@ximian.com>
20276
20277         [ fixes bug #79745 ]
20278         
20279         * NotifyIcon.cs: lots of cleanup.
20280
20281         * X11Structs.cs: add an enum for XEMBED messages.
20282
20283         * XplatUIX11.cs: reindent one of the giant switch statements, it
20284         was taking up an additional tab stop, and this file is already way
20285         too wide for my laptop's screen.
20286
20287         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
20288         we get it, resize the hwnd to the WMNormalHints max_width/height.
20289
20290 2006-11-13  Jackson Harper  <jackson@ximian.com>
20291
20292         * TextBoxBase.cs: Compute the value changes for the mouse wheel
20293         teh simple way.
20294
20295 2006-11-13  Chris Toshok  <toshok@ximian.com>
20296
20297         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
20298         #79898.  force a reference to the Region to stick around so the
20299         unmanaged object isn't collected (rendering our handle in the MSG
20300         stale).
20301
20302 2006-11-13  Chris Toshok  <toshok@ximian.com>
20303
20304         * XplatUIX11.cs: fix #79917 for window managers which support
20305
20306         using XStoreName on the raw utf8, and we need to convert to
20307         COMPOUND_TEXT if it's non-latin1.
20308
20309 2006-11-13  Chris Toshok  <toshok@ximian.com>
20310
20311         * Form.cs (set_DialogResult): we need to set closing to false if
20312         we're setting our result to None.  fixes bug #79908.
20313
20314 2006-11-13  Jackson Harper  <jackson@ximian.com>
20315
20316         * TextControl.cs: When formatting text, compute the adjusted tag
20317         lengths correctly, using FindTag for the end tag instead of trying
20318         to figure it out outselves.
20319         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
20320         the item, ItemHeight doesn't work, because trees with large
20321         imagelists use those for their height
20322         * TreeView.cs: ActualItemHeight factors in the image height
20323         - compute left edge of checkboxes correctly
20324         - when expanding/collapsing move the bottom down one pixel, so we
20325         aren't moving part of the node
20326
20327 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20328
20329         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
20330         stack in PaintEventStart so that it won't get disposed by the gc
20331         before reaching PaintEventEnd.
20332
20333 2006-11-13  Jackson Harper  <jackson@ximian.com>
20334
20335         * TextBoxBase.cs: Don't select the word if we are on a line with
20336         no text.
20337         - We don't need to position the caret on mouse up, since the mouse
20338         move handler should be doing this
20339         - When double clicking a blank line, the caret is advanced to the
20340         next line.
20341
20342 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
20343
20344         * TreeNodeCollection.cs: Avoid duplicating indexer code.
20345
20346 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
20347
20348         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
20349         Fixes part of bug #79910.
20350
20351 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
20352
20353         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
20354           (bug #79903). Some minor string updates to match ms.
20355
20356 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
20357
20358         * FileDialog.cs: Don't add an extension if the filename
20359           already ends with that extension.
20360
20361 2006-11-10  Jackson Harper  <jackson@ximian.com>
20362
20363         * TreeView.cs: Use the currently highlighted node for the
20364         BeforeSelect event.
20365         * TextBoxBase.cs: There is no need to expand selection on
20366         MouseMove.
20367         - CanUndo means 'is there any undo operations', not 'is undo
20368         allowed on this textcontrol. Fixed ClearUndo unit test.
20369
20370 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
20371
20372         * Button.cs: only perform click when button is Selectable (so as 
20373         not to activate default buttons when they're disabled)
20374         
20375         * Control.cs: Rewrite of the SelectNextControl and related 
20376         methods. HandleClick now selects next control if the current one
20377         is being disabled.
20378         
20379         * Form.cs: OnActivated selects next active control only if Load 
20380         has already occurred. If Load hasn't run, there's no point in 
20381         selecting here, Load might change the state of controls.
20382         
20383         * FocusTest.cs: Tests marked as working again for these fixes
20384
20385 2006-11-10  Chris Toshok  <toshok@ximian.com>
20386
20387         * XplatUIX11.cs: a couple of fixes.
20388
20389         - use XInternAtoms with almost all the atoms we need to register,
20390         instead of many, many calls to XInternAtom.  should help a bit on
20391         startup time, at the expense of making the code look a little
20392         worse.
20393
20394         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
20395         isn't reparented (which seems to be a clue that we're running fon
20396         compiz) and they have an Owner form.  This fixes the tool windows
20397         in paint.net when running under compiz.
20398
20399         - when setting the opacity of a window, support both the case
20400         where the window has been reparented and also when it hasn't been.
20401         Since compiz/beryl doesn't seem to reparent windows, and these are
20402         the only window managers which support translucency, I'm not sure
20403         why we need the hwnd.reparented case at all.. but leave it in.
20404         now we get translucent windows in paint.net under compiz/beryl.
20405
20406 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
20407
20408         * FileDialog.cs: Always return the value for FilterIndex that
20409           was set. Internally convert it to values that make sense.
20410
20411 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
20412         
20413         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
20414
20415 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
20416
20417         * Toolbar.cs: Change default value of DropDownArrows to true, the 
20418         signature still using false to make it compatible with MS but the 
20419         initial value is true. Fixes #79855.
20420
20421 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
20422
20423         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
20424           only available on Linux.
20425
20426 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
20427
20428         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
20429         reduce number of calls to redraw method during toolbar creation.
20430
20431 2006-11-09  Mike Kestner  <mkestner@novell.com>
20432
20433         * ListView.cs : raise SelectedIndexChanged when an item is selected
20434         programmatically via the Item.Selected property.  Gert's nice 
20435         ListViewSelectedIndexChanged test fixture now runs clean.
20436
20437 2006-11-09  Mike Kestner  <mkestner@novell.com>
20438
20439         * ListView.cs : raise SelectedIndexChanged when a selected item is
20440         removed from the item collection using Remove or RemoveAt.
20441
20442 2006-11-09  Mike Kestner  <mkestner@novell.com>
20443
20444         * ListView.cs : raise SelectedIndexChanged once per selected item
20445         for compat with MS.  Fixes #79849+.
20446
20447 2006-11-09  Chris Toshok  <toshok@ximian.com>
20448
20449         * TabControl.cs: initialize row_count to 0, and set it to 1 when
20450         we need to (if we have any tab pages).  Fixes unit test.
20451
20452 2006-11-09  Chris Toshok  <toshok@ximian.com>
20453
20454         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
20455         width is 0, not 3.  Fixes a unit test.
20456
20457 2006-11-09  Mike Kestner  <mkestner@novell.com>
20458
20459         * ListView.cs : use Implicit scrollbars so that focus isn't 
20460         stolen from the listview when they are clicked. Fixes #79850.
20461
20462 2006-11-09  Chris Toshok  <toshok@ximian.com>
20463
20464         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
20465         have a root item.  Fixes #79879.
20466
20467 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
20468
20469         * FileDialog.cs:
20470           - Fix ToString ()
20471           - An ArgumentException is now thrown if a wrong filter
20472             is applied (matches ms). The previous filter doesn't change
20473             anymore if an exception is thrown.
20474           - Changing the FileName property also affects FileNames
20475         * ColorDialog.cs: The length of the CustomColors array is always
20476           16. It doesn't matter if we use a smaller array or null to update
20477           or change the custom colors property.
20478         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
20479           for RootFolder if we get a undefined value.
20480
20481 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20482
20483         * StatusBarPanel.cs: 
20484         - Width is set to MinWidth if Width is smaller than
20485         MinWidth. Fixes #79842.
20486         - MinWidth now always overrides Width (MSDN says MinWidth
20487         is set to Width when AutoSize = None, but they do not 
20488         behave like that).
20489         - Style has now the the correct default value.
20490         
20491 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20492  
20493         * TrackBar.cs: 
20494         - The control is completely invalidated on 
20495         Got/LostFocus to draw the focus rectangle correctly.
20496         - When AutoSize then height is always 45 (width for 
20497         vertical controls).
20498         
20499         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
20500         on the mouse when moved and it doesn't move when grabbed
20501         until the mouse moves as well. Also fixed some wrong 
20502         calculations when clicking on the thumb (control thought
20503         click was outside of thumb and didn't grab it).
20504         Fixes some of the issues in #79718.
20505
20506 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
20507
20508         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
20509
20510 2006-11-08  Chris Toshok  <toshok@ximian.com>
20511
20512         * PropertyGridView.cs: only call ToggleValue if the item is not
20513         readonly.
20514
20515 2006-11-08  Jackson Harper  <jackson@ximian.com>
20516
20517         * TextBoxBase.cs: The RichTextBox and textbox have very different
20518         word selection methods.  Implement the textbox's simple word
20519         selection here, and let the RichTextBox override and provide it's
20520         own.
20521         - Don't do extra selection on mouseup
20522         * RichTextBox.cs: Use the documents word selection algorithm, I
20523         think ideally, this function will be pulled into the
20524         RichTextBox.cs code someday.
20525
20526 2006-11-08  Chris Toshok  <toshok@ximian.com>
20527
20528         * RootGridEntry.cs: new class to represent GridItemType.Root.
20529
20530         * CategoryGridEntry.cs: reformat, and add boilerplate.
20531         
20532         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
20533         returns the UI parent anyway, and we need special handling to
20534         implement the GetTarget method in the face of it.  Also, implement
20535         Select().
20536
20537         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
20538         a root grid item, and use that instead of PropertyGrid.grid_items.
20539         Also, make use of TypeConverters (and add limitted support for
20540         ICustomTypeDescriptors) when initially populating the grid.
20541         Arrays now show up more or less properly.
20542
20543 2006-11-08  Chris Toshok  <toshok@ximian.com>
20544
20545         * Application.cs: set the modal dialog to non modal after we close
20546         it.  Fixes bug #79866.
20547
20548 2006-11-08  Jackson Harper  <jackson@ximian.com>
20549
20550         * TextControl.cs: When combining lines carry over the line end
20551         style from the end line.
20552         - Invalidate the selected area when setting it, if it is visible.
20553         * TextBoxBase.cs: Only rich text box can do full line selects.
20554         - Make sure to set the cursor position when there is a click,
20555         otherwise two clicks in separate areas could cause a large chunk
20556         to be selected.
20557
20558 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20559
20560         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
20561         Fixes #79863.
20562
20563 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20564
20565         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
20566         time. Remove tooltips when ToolButton click events.  Fixes #79856.
20567
20568 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20569
20570         * MenuAPI.cs: Ignore right click for menu actions and fixes
20571         menu border when clicked.  Fixes #79846.
20572
20573 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20574
20575         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
20576         MouseState after create wParam for message, this fixes mouse button 
20577         equal none in mouse up events.
20578         
20579 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
20580
20581         * Control.cs : Focus() now calls Select to set the Container's
20582         Active Control and to give it focus. To avoid infinite recursion
20583         (because ActiveControl also calls Focus at one point), a check 
20584         is made in Focus with the help of a new internal variable
20585         is_focusing.
20586
20587 2006-11-07  Mike Kestner  <mkestner@novell.com>
20588
20589         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
20590         if there's a selection.  Fixes #79849.
20591
20592 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
20593
20594         * PropertyGrid.cs: Avoid fixed height of help description label.
20595         Fixes part of bug #79829.
20596
20597 2006-11-07  Chris Toshok  <toshok@ximian.com>
20598
20599         * XplatUIX11.cs: fix #79790 again, by using the
20600         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
20601
20602 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20603
20604         * ToolBar.cs: Fix left click checking.
20605
20606 2006-11-07  Chris Toshok  <toshok@ximian.com>
20607
20608         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
20609
20610 2006-11-07  Chris Toshok  <toshok@ximian.com>
20611
20612         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
20613         PropertyManager unit tests.
20614
20615         * PropertyManager.cs: make property_name internal.
20616
20617 2006-11-07  Chris Toshok  <toshok@ximian.com>
20618
20619         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
20620         pass a unit test.  Also, don't set image_index to anything in
20621         response to setting the ImageList property.
20622
20623 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20624
20625         * ToolBar.cs: Ignore click events when mouse button is not a
20626         left button, only accepts other button for dropdown menus.  
20627         Fixes #79854.
20628
20629 2006-11-07  Chris Toshok  <toshok@ximian.com>
20630
20631         * DataGrid.cs: make the back and parent row buttons a little less
20632         ugly.
20633
20634 2006-11-07  Jackson Harper  <jackson@ximian.com>
20635
20636         * TextBoxBase.cs: When converting to Text don't put line breaks in
20637         for soft line breaks.
20638         * TextControl.cs: There is an initial "fake" line in the document,
20639         this is now a soft break line, so that an extra line feed doesn't
20640         get added to the end of documents.
20641
20642 2006-11-07  Chris Toshok  <toshok@ximian.com>
20643
20644         [ fix bug #79778 ]
20645         
20646         * CurrencyManager.cs: if the list is readonly, don't bother
20647         checking if IBindingList.AllowNew is true.
20648
20649         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
20650         for non-DataRowView datasources..  or rather, make it not crash.
20651         (DataGridPaintRelationRow): make sure we limit the row painting to
20652         the area not covered by the row header, and make our cell width at
20653         least large enough to cover the relation area.  This allows grids
20654         that have relations but no rows to render correctly.
20655         (DataGridPaintRowContents): same type of changes here.
20656         (SetDataSource): move back to always calling
20657         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
20658         navigating back through relations.
20659         (HitTest): handle the case where we have no cells but have
20660         relations.  Right now we generate a hit in cell 0 of whatever the
20661         row is, not sure if this is strictly correct, but it works for our
20662         purposes.
20663         
20664         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
20665         bother doing anything.
20666
20667 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
20668
20669         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
20670         early version of StatusStrip.  Not responsible for eaten
20671         application or firstborn children.
20672
20673 2006-11-06  Chris Toshok  <toshok@ximian.com>
20674
20675         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
20676         call GetTabRect with a -1 index.  Fixes #79847.
20677
20678 2006-11-06  Jackson Harper  <jackson@ximian.com>
20679
20680         * TreeNodeCollection.cs: Update scrollbars after clearing.
20681
20682 2006-11-06  Chris Toshok  <toshok@ximian.com>
20683
20684         * NumericUpDown.cs: fix the ToString method for some unit test
20685         love.
20686
20687 2006-11-06  Chris Toshok  <toshok@ximian.com>
20688
20689         * PropertyGrid.cs:
20690         - set the initial SelectedGridItem if we can.
20691
20692         - Exclude non-mergable properties only if we're merging > 1
20693         object.  Merging 1 object isn't really merging, obviously.
20694
20695         - Handle PropertySort.NoSort just like Alphabetical, which is
20696         wrong of course, but at least gets things on the screen.
20697         
20698         * PropertyGridView.cs:
20699         - Add method "FindFirstItem" which finds the first property grid
20700         item, so we can select it by default.
20701
20702         - make use of GridEntry.CanResetValue.
20703
20704         - Don't call RedrawBelowItemOnExpansion here anymore, the
20705         individual GridEntry's will do that.
20706
20707         - Remove the ITypeDescriptorContextImpl internal class.
20708         
20709         * GridEntry.cs:
20710         - this class needs to implement ITypeDescriptorContext, as it's
20711         what MS's PropertyDescriptorGridEntry does, which means we can
20712         remove the ITypeDescriptorContextImpl internal class from
20713         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
20714
20715         - keep a reference to our PropertyGridView, and move the call to
20716         RedrawBelowItemOnExpansion here from PGV.  This means
20717         programmaticly setting Expanded actually does something visible.
20718
20719         - add a CanResetValue() function which takes into account our
20720         possibly multiple "selected_objects" in the merged case.  Shifting
20721         PropertyGridView to use this method fixes another unreported
20722         crasher found running the test for #79829.
20723
20724         - when Top or Bounds is updated, make sure the PropertyGridTextBox
20725         is updated to reflect this.
20726
20727         * CategoryGridEntry.cs: the ctor takes the PGV now.
20728         
20729 2006-11-06  Jackson Harper  <jackson@ximian.com>
20730
20731         * TextControl.cs: These are 1 based.
20732         * TextBoxBase.cs: When setting the selected text, don't change the
20733         selected text tags, this is done by ReplaceText, just position the
20734         cursor at the end of the new text.
20735
20736 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
20737
20738         * ListView.cs: Allow label edit only when, when LabelEdit is
20739           set to true.
20740
20741 2006-11-06  Jackson Harper  <jackson@ximian.com>
20742
20743         * TextControl.cs: If a suitable wrapping position isn't found,
20744         just wrap right in the middle of a word.
20745
20746 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
20747
20748         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
20749           bug #79820.
20750
20751 2006-11-06  Jackson Harper  <jackson@ximian.com>
20752
20753         * TreeView.cs: Can't use the VisibleCount property when setting
20754         scrollbar heights, because this doesn't take into account whether
20755         or not the horz scrollbar just came visible.
20756
20757 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
20758
20759         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
20760         activated.  Fixes #79369, #79832.
20761
20762 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
20763
20764         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
20765           had to remove support for links that point to a directory. FileInfo
20766           returns no usefull information (means, the directory they point to)
20767           for such links. Replaced some empty string ("") with String.Empty.
20768
20769 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
20770
20771         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
20772         NullReferenceException when attempting to remove node that is not in
20773         collection. Throw NullReferenceException when null is passed to 
20774         Remove. Allow first element of the collection to be removed. Fixes
20775         bug #79831.  In GetEnumerator ().Current return null if positioned 
20776         before the first element of the collection. In GetEnumerator ().Reset,
20777         position before first element of the collection.
20778
20779 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
20780
20781         * PropertyGrid.cs: To match MS, remove default title and description
20782         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
20783         buttons.
20784
20785 2006-11-04  Chris Toshok  <toshok@ximian.com>
20786
20787         * Theme.cs: add a Clamp method, just for kicks.
20788
20789         * ThemeWin32Classic.cs: clamp all color components to [0..255].
20790
20791 2006-11-04  Chris Toshok  <toshok@ximian.com>
20792
20793         * Form.cs: if the form isn't visible, Close() does nothing.
20794
20795 2006-11-03  Chris Toshok  <toshok@ximian.com>
20796
20797         * Form.cs (Close): if the form is modal, don't Dispose of it, only
20798         Hide it.
20799         (WndProc): don't Dispose after handling the WM_CLOSE message.
20800
20801         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
20802         them as such, instead of using casts from Control to Form.  Also,
20803         don't Dispose of the modal dialog when we fall out of the loop -
20804         Close() it instead.
20805
20806         fixes bug #79813.
20807
20808 2006-11-03  Chris Toshok  <toshok@ximian.com>
20809
20810         * Control.cs (Dispose): only go through the dispose thing if we're
20811         @disposing, and we haven't already been disposed.  Fixes bug
20812         #79814.
20813
20814         * Form.cs: no reason to call "base.Dispose()" here instead of
20815         "Dispose()".
20816
20817 2006-11-03  Mike Kestner  <mkestner@novell.com>
20818
20819         * ComboBox.cs : use ToString instead of casts in AddItem for
20820         sorting functionality.  Fixes #79812.
20821
20822 2006-11-03  Chris Toshok  <toshok@ximian.com>
20823
20824         * Application.cs: pave the way for actually using the thread
20825         exception dialog.  it's ifdefed out at the moment.
20826
20827 2006-11-03  Chris Toshok  <toshok@ximian.com>
20828
20829         * ThreadExceptionDialog.cs: until we get a better layout, actually
20830         hide the details textbox and label when we shouldn't see them.
20831
20832 2006-11-03  Jackson Harper  <jackson@ximian.com>
20833
20834         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
20835         multiline textboxes anymore.  This method also determines the
20836         width/height of a textboxes canvas area.
20837         - Sorta a revert of the last patch.  For multiline just position
20838         the controls, then bail.  This way the scrollbar width won't be
20839         altered.
20840
20841 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
20842
20843         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
20844         it dont need.  Fixes #79537.
20845
20846 2006-11-02  Jackson Harper  <jackson@ximian.com>
20847
20848         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
20849         send the status after firing the DndOver event.
20850
20851 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20852
20853         * TrackBar.cs: Now orientation only switches height / width if
20854         the control's handle is created (Win32 does it like this). Also 
20855         fixed a typo in ToString() for a test to pass, changed the 
20856         exception thrown in set_LargeChange and set_SmallChange to 
20857         match Win32 behaviour, and added TrackBar tests to the unit 
20858         tests.
20859
20860 2006-11-02  Chris Toshok  <toshok@ximian.com>
20861
20862         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
20863         not _NET_WM_STATE_NO_TASKBAR.
20864
20865 2006-11-02  Jackson Harper  <jackson@ximian.com>
20866
20867         * TextControl.cs: Increment count by one, since in the update view
20868         count - 1 is used.
20869
20870 2006-11-02  Jackson Harper  <jackson@ximian.com>
20871
20872         * TextBoxBase.cs: Use client rectangle not bounds for checking if
20873         the mouse is in the client rectangle (duh).
20874
20875 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20876         
20877         * TrackBar.cs: Fixed trackbar jumping around when clicking
20878         on it - the trackbar was not detecting correctly at which
20879         side of the thumb the click was done. (fixes #79718)
20880
20881 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
20882
20883         * ListBox.cs: scroll visible area when change SelectedIndex to
20884         a non visible area.  Fixes #79481.
20885
20886 2006-11-01  Jackson Harper  <jackson@ximian.com>
20887
20888         * TextControl.cs: When replacing the selection move the selection
20889         start/end/anchor to the end of the new text.
20890
20891 2006-11-01  Jackson Harper  <jackson@ximian.com>
20892
20893         * XplatUIWin32.cs: When setting the parent change the controls
20894         visibility to it's visibility flag, not to it's old parents
20895         visibility (.Visible walks the parent chain).
20896
20897 2006-11-01  Chris Toshok  <toshok@ximian.com>
20898
20899         * XplatUIX11.cs: revert the #79790 fix, as the simple.
20900         XSetTransientForHint fix breaks paint .net's tool windows.  more
20901         work needed for that one.
20902
20903 2006-11-01  Chris Toshok  <toshok@ximian.com>
20904
20905         * ScrollBar.cs: throw ArgumentException instead of Exception in
20906         LargeChange/SmallChange setters.  fixes unit tests.
20907
20908 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
20909
20910         * ContainerControl.cs: reverted rev.67183 (which was itself
20911         a reversion of rev.66853... eh).
20912         
20913         * Control.cs: Fixes Reflector hang by changing Focus() call
20914         to what it was before rev.66643 (calling Select() here sets 
20915         ActiveControl, which in some situations calls back Focus and 
20916         eventually does a stack overflow). Temp fix.    
20917         Changes to GetNextControl() to not look for children to select when
20918         parent cannot be selectable (so it looks for siblings instead)  
20919         
20920 2006-10-31  Mike Kestner  <mkestner@novell.com>
20921
20922         * CheckedListBox.cs : off by one error in returned index from
20923         ObjectCollection.Add.  Fixes #79758.
20924
20925 2006-10-31  Chris Toshok  <toshok@ximian.com>
20926
20927         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
20928         calls for the textbox/spinner, to keep from recursing to the point
20929         where we crash.  Fixes #79760.
20930
20931 2006-10-31  Chris Toshok  <toshok@ximian.com>
20932
20933         * ListControl.cs (set_SelectedValue): don't throw exceptions on
20934         null/"" value, just return.  matches ms's behavior and fixes some
20935         failing tests.
20936
20937 2006-10-31  Chris Toshok  <toshok@ximian.com>
20938
20939         * Control.cs (set_Capture): make a logic a little easier to
20940         follow.
20941
20942         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
20943         if it's being destroyed.  A necessary fix surely, but a bandaid
20944         also, to fix the stuck capture problem in bug #78413.
20945
20946 2006-10-31  Chris Toshok  <toshok@ximian.com>
20947
20948         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
20949         convention of clearing hwnd.ClientRect when we set the
20950         width/height (so it'll be recalculated by Hwnd).
20951
20952 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
20953
20954         * ContainerControl.cs: reversed Contains check from
20955         ActiveControl due to hanging problems. This fix
20956         partly regresses #79667 (button does not have
20957         initial focus), so this might be a symptom for 
20958         a larger parenting problem (set_ActiveControl
20959         is being called but the child control does
20960         not have the parent set yet?)   
20961         
20962 2006-10-31  Mike Kestner  <mkestner@novell.com>
20963
20964         * MenuAPI.cs : fix keynav when menu is click activated.
20965
20966 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
20967
20968         * ToolStrip*: Version 0.2.
20969
20970         * MenuStrip.cs: Version 0.1.
20971
20972         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
20973
20974 2006-10-30  Chris Toshok  <toshok@ximian.com>
20975
20976         [ fixes the oversized notify icon issue in bug #79745 ]
20977         
20978         * NotifyIcon.cs: scale the icon down to the size we're given by
20979         the XplatUI layer (this would be faster if we did it once instead
20980         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
20981         since it's never invoked.
20982
20983         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
20984         pixels high by default, so let's hardcode our systray icon to that
20985         size.  The SYSTEM_TRAY protocol should really have a way for
20986         client apps to query for the correct icon size.. but oh well.  A
20987         couple of patches to deal with the screwy client_window ==
20988         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
20989         instance, and also make sure we don't XSelectInput twice).
20990
20991 2006-10-30  Chris Toshok  <toshok@ximian.com>
20992
20993         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
20994         recreating forms.  Control recreation is the bane of my existence.
20995         Fix it in a way that keeps everyone happy.
20996
20997 2006-10-30  Chris Toshok  <toshok@ximian.com>
20998
20999         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21000         just non-CHILD ones.  otherwise sometimes scrollbars end up with
21001         client_windows not being resized to the proper size (ReportBuilder
21002         shows this extremely well).
21003
21004 2006-10-30  Chris Toshok  <toshok@ximian.com>
21005
21006         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21007         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
21008         showing up in the gnome taskbar.  Fixes bug #79790.
21009
21010 2006-10-30  Chris Toshok  <toshok@ximian.com>
21011
21012         * ApplicationContext.cs: guard against a NRE.
21013
21014         * Application.cs: null out the old MainForm for the context, so we
21015         don't try to use it again once it's disposed.  Fixes bug #79783.
21016
21017 2006-10-30  Chris Toshok  <toshok@ximian.com>
21018
21019         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21020         BindingContext, set the data source directly, otherwise do the
21021         lazy approach - the actual ListManager will be created when we get
21022         a BindingContext. Fixes bug #79700.
21023
21024 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21025
21026         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21027           XplatUIX11.cs: Remove old 2 parameter SetVisible.
21028
21029         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21030
21031 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21032
21033         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21034         of SetVisible that allows a window to be shown, but not activated.
21035         This is needed on Windows for MenuStrip, and can probably be used
21036         with MainMenu and ComboBox to fix the focus stealing issues on
21037         Windows.
21038
21039         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21040
21041 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
21042
21043         * PictureBox.cs: Fix the output of the ToString method.
21044
21045 2006-10-29  Chris Toshok  <toshok@ximian.com>
21046
21047         * Control.cs (get_TopLevelControl): fix bug #79781.
21048
21049 2006-10-29  Chris Toshok  <toshok@ximian.com>
21050
21051         * ListControl.cs (set_DataSource): throw Exception here, not
21052         ArgumentException, to match MS behavior.
21053
21054 2006-10-29  Chris Toshok  <toshok@ximian.com>
21055
21056         * Form.cs: remove the try-catch's around calls to GetWindowState.
21057         We can just check the return value.
21058
21059         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21060         Instead return -1.
21061
21062         * XplatUI.cs: Add note about additional return value for
21063         GetWindowState.
21064
21065 2006-10-29  Chris Toshok  <toshok@ximian.com>
21066
21067         * Control.cs (CreateHandle): when we create our handle, we also
21068         create the handles of our child controls.  Fixes one of the
21069         Control unit tests (CH11).
21070
21071 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21072
21073         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21074
21075 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21076
21077         * ThemeClearlooks.cs: A little speedup.
21078
21079 2006-10-27  Chris Toshok  <toshok@ximian.com>
21080
21081         * Control.cs: implement Control.FromChildHandle in a way that
21082         matches the docs (and fixes the failed test.)
21083
21084 2006-10-27  Chris Toshok  <toshok@ximian.com>
21085
21086         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21087         comments).
21088
21089         * DataGrid.cs: implement ResetForeColor such that the tests
21090         succeed.
21091         
21092 2006-10-27  Chris Toshok  <toshok@ximian.com>
21093
21094         * ToolBarButton.cs: setting text/tooltiptext to null results in it
21095         being set to "".  Fixes bug #79759.
21096
21097 2006-10-27  Jackson Harper  <jackson@ximian.com>
21098
21099         * TextControl.cs: We need to clear the entire selection area when
21100         setting the start, otherwise multiline selections are still
21101         visible.
21102
21103 2006-10-26  Chris Toshok  <toshok@ximian.com>
21104
21105         * PropertyGridView.cs: 
21106
21107         - ifdef all the code specific to the double
21108         buffer case, and provide some alternatives in the non-doublebuffer
21109         code, which makes heavy use of XplatUI.ScrollWindow to move things
21110         around without having to invalidate (and cause flicker).  There
21111         are still some drawing problems in the non-doublebuffered case, so
21112         DOUBLEBUFFER is defined by default.
21113
21114         - Fix the way dropdowns are handled.  now we explicitly watch for
21115         the events which might cause the dropdown to close, and break out
21116         of the nested event loop there.  This gets rid of all Capture
21117         code, at the expense of the Msg special casing.  Seems to work,
21118         though, and fixes bug #79743.
21119
21120 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
21121         * Control.cs: SetIsRecreating now recreates implicitly added
21122         child controls as well. Finally fixes #79629. The flag passed to 
21123         SetIsRecreating has also been removed since it wasn't used.
21124         
21125 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21126
21127         * PageSetupDialog.cs: Clean some code, fix some bits, 
21128         add some checks, and add a printer sub-dialog.
21129
21130 2006-10-26  Chris Toshok  <toshok@ximian.com>
21131
21132         * PropertyGrid.cs: make set_SelectedObject call
21133         set_SelectedObjects, and move the duplicate logic to the
21134         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
21135
21136         * PropertyGridView.cs: hide the textbox when we get a
21137         SelectedObjectsChanged event.
21138
21139         Fixes bug #79748.
21140
21141 2006-10-26  Chris Toshok  <toshok@ximian.com>
21142
21143         * PropertyGridView.cs: deal with the type converter not supporting
21144         GetStandardValues() or GetStandardValues() returning null, which
21145         is does in the default case.  Fixes #79742.
21146
21147 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21148
21149         * CheckedListBox.cs: nunit no longer crashes when selecting 
21150         Project/Edit menu option
21151         
21152 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21153
21154         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
21155         is no menu selected. fixes #79739
21156
21157 2006-10-25  Chris Toshok  <toshok@ximian.com>
21158
21159         * PropertyGridView.cs: factor out the splitter invalidation code
21160         into the SplitterPercent setter, and for kicks implement the
21161         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
21162         amount in either direction.
21163
21164 2006-10-25  Chris Toshok  <toshok@ximian.com>
21165
21166         * PropertyGridView.cs: do some cleanup of the brush used to draw
21167         text - read only fields should be grayed out.  not sure how to do
21168         this with the textbox, though.  but the textbox's should also be
21169         readonly now at least.  Also, hide/show the textbox when resizing
21170         the control.
21171         
21172         * CursorConverter.cs: use System.Reflection when getting the
21173         properties of Cursors, as TypeDescriptor.GetProperties isn't
21174         returning static properties.
21175
21176 2006-10-25  Chris Toshok  <toshok@ximian.com>
21177
21178         * PropertyGridView.cs: factor out the up/down handling, and reuse
21179         it for page up/down.  also add End/Home support.
21180
21181 2006-10-25  Chris Toshok  <toshok@ximian.com>
21182
21183         * PropertyGridView.cs:
21184
21185         - ensure the selected grid item is visible in the scrolled area,
21186         fixes bug #79572.
21187
21188         - fix Keys.Down handling when you're on the last item in the
21189         propertygrid.
21190
21191 2006-10-25  Mike Kestner  <mkestner@novell.com>
21192
21193         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
21194         clicks too.  Fixes #79725.
21195
21196 2006-10-24  Chris Toshok  <toshok@ximian.com>
21197
21198         * PropertyGrid.cs: use property.Converter instead of
21199         TypeDescriptor.GetConverter(property.PropertyType), so we catch
21200         TypeConverters declared on the property as well as on the
21201         PropertyType.  Fixes bug #79678.
21202
21203 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
21204
21205         * MimeIcon.cs, Mime.cs:
21206           Fallback to the default platform handler if no shared mime info
21207           stuff exists (fixes #79693).
21208
21209 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21210         * ContainerControl.cs: Incorrect contains check in ActiveControl 
21211         from previous fix (duh).
21212
21213 2006-10-20  Chris Toshok  <toshok@ximian.com>
21214
21215         * PropertyGridView.cs: the dropdown should be MIN(number of items
21216         in list, 15).  Fixes #79551.
21217
21218 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21219         Fixes #79384, #79394, #79652, #79667
21220         * Application.cs: 
21221         
21222         - Modal windows are now destroyed in the proper order for windows
21223         
21224         * ContainerControl.cs:
21225         
21226         - ActiveControl setter has more conditions on when to return:
21227                 - if we're reselecting the active control, but it actually
21228                 didn't have focus (window hidden or some such), it runs
21229                 - if the active control being selected doesn't actually 
21230                 exist in the container, it returns
21231         
21232         * Form.cs
21233         
21234         - The ShowDialog now gets the current form as the owner when
21235         invoking without parameters, and correctly activates the owner 
21236         when returning
21237         
21238         * MessageBox.cs
21239         
21240         - MessageBox now catches the Escape key to exit
21241
21242 2006-10-20  Chris Toshok  <toshok@ximian.com>
21243
21244         * PropertyGridView.cs: fix a number of issues (bug #78565, and
21245         most of bug #79676):
21246
21247         - you can navigate around the property grid with the arrow keys.
21248
21249         - the dropdown is sized properly when the pg has a vertical
21250         scrollbar.
21251
21252         - fix the indentation for subentries, and properly select the
21253         entire label rect.
21254
21255         - fix the gray bar's drawing (only draw it to the last element,
21256         not for the height of the control.  Also make sure we draw that
21257         last horizontal grid line.
21258
21259         - use the same mechanism the datagrid uses wrt the editing textbox
21260         when scrolling/resizing/etc.  Namely, we hide it first, do the
21261         operation, then show it again (if it's still visible).
21262         
21263         - aggressively remove a lot of unnecessary refreshes (and also
21264         calls to Invalidate(). call more limited variants, and only redraw
21265         what we need.)
21266         
21267         * PropertyGrid.cs:
21268
21269         - when we're populating the merged collection, fill in the UI
21270         parent with either the passed in item, or the category item we
21271         create.
21272
21273         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
21274
21275         * GridItem.cs: drop some fully qualified names.
21276         
21277         * GridEntry.cs: add a "UIParent", which is basically the parent
21278         treenode.
21279
21280         * GridItemCollection.cs: add an IndexOf method.
21281
21282 2006-10-20  Mike Kestner  <mkestner@novell.com>
21283
21284         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
21285         a working win32 NC invalidation mechanism, we can't invalidate
21286         menus.  [Fixes #79705]
21287
21288 2006-10-20  Mike Kestner  <mkestner@novell.com>
21289
21290         * ListBox.cs : don't update the VScrollbar if the list is empty,
21291         just hide it.  [Fixes #79692]
21292
21293 2006-10-20  Jackson Harper  <jackson@ximian.com>
21294
21295         * RichTextBox.cs: Handle some special chars better, and don't skip
21296         the entire group when we encounter a special char that we don't
21297         handle correctly.
21298
21299 2006-10-18  Chris Toshok  <toshok@ximian.com>
21300
21301         * PropertyGridView.cs: address a number of issues from bug #79676,
21302         mostly of the cosmetic variety.
21303
21304         - The highlight rectangle for indented items not extends all the
21305         way to the left.
21306
21307         - Indented items aren't indented so much.
21308
21309         - the dropdown is properly sized width-wise if the pg has a
21310         vertical scrollbar.
21311
21312 2006-10-18  Chris Toshok  <toshok@ximian.com>
21313
21314         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
21315         systray stuff is rather convoluted to begin with.
21316
21317         systray icons are a single window for some reason (that I haven't
21318         figured out yet), and for them, client_window == whole_window.
21319         Given the way the tests are structured elsewhere to determine
21320         which paints are pending (client vs. nc), that situation will
21321         always yield PAINT, not NCPAINT.  So, if we have a pending
21322         nc_expose and no pending expose, remove the hwnd from the paint
21323         queue, and also set nc_expose_pending to false, to keep us from
21324         blocking further expose's adding the hwnd to the paint queue.
21325
21326         phew.  like i said, a rather convoluted change.  Fixes the
21327         notifyicon repaint issues in bug #79645.
21328
21329 2006-10-18  Chris Toshok  <toshok@ximian.com>
21330
21331         * Form.cs: when getting the backcolor of the form, don't get
21332         base.BackColor, as this allows parents to influence the background
21333         color.  This breaks mdi forms.  Instead, if the background_color
21334         is empty, return the default.
21335
21336 2006-10-18  Chris Toshok  <toshok@ximian.com>
21337
21338         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
21339         to being private instead of internal static.
21340
21341         * Control.cs: remove all the stupid ParentWaitingOnRecreation
21342         crap, it wasn't working for more deeply nested controls anyway,
21343         and we already have the is_recreating flag - use that instead.
21344         Before calling DestroyHandle in RecreateHandle, recurse through
21345         the control tree setting it to true.  this returns the recreate
21346         code to much of its original simplicity, while now guaranteeing we
21347         actually recreate everything we're supposed to.  This change gets
21348         fyireporting actually showing mdi children.
21349
21350 2006-10-17  Chris Toshok  <toshok@ximian.com>
21351
21352         * Form.cs: remove some debug spew, and collapse some duplicate
21353         code at the end of SetClientSizeCore.
21354
21355         * XplatUIX11.cs: 
21356         - add some more debug spew here too wrt Destroy handling.
21357         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
21358         in Control's handling of WM_DESTROY.
21359         - Remove the handling of zombie window DestroyNotifies from the
21360         event loop - we don't need it.  Now the only DestroyNotifies we
21361         actually handle are ones generated by X.
21362         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
21363         match gtk's (functioning) handling of this. This keep metacity
21364         from leaving droppings in the form of wm borders with no window
21365         contents all over the place.
21366
21367         * Control.cs:
21368         - add a bunch of debug spew wrt control recreation.
21369         - fix a bug where we weren't tracking Visible properly on
21370         recreated hwnds.
21371         - fixed the WM_PAINT double buffer handling to support re-entrant
21372         calls (yes, i know it's gross, but it's happening to us).
21373
21374 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21375         * ThemeWin32Classic.cs: changed drawing of selected days
21376         to make them look better.
21377
21378 2006-10-16  Chris Toshok  <toshok@ximian.com>
21379
21380         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
21381         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
21382
21383         * XplatUIX11.cs: move away from using hwnd.client_dc and
21384         hwnd.non_client_dc and on to a stack of dc's (and in window's
21385         case, PAINTSTRUCT's), so we can deal with nested Paint calls
21386         without puking or not disposing of Graphics objects.
21387
21388         * XplatUIOSX.cs: same.
21389
21390         * XplatUIWin32.cs: same.
21391
21392 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
21393
21394         * FileDialog.cs: Don't call on_directory_changed inside
21395           OnSelectedIndexChanged (it changes the SelectedIndex too).
21396           Instead move it to OnSelectionChangeCommitted.
21397
21398 2006-10-13  Chris Toshok  <toshok@ximian.com>
21399
21400         * XplatUIX11.cs: more Destroy work.  the current code does the
21401         following things, in order:
21402
21403         1. Enumerates all handles of all controls at or below the one
21404         being destroyed, in pre-order.  As it is doing this, it marks the
21405         handles as zombie and clears all references to them.
21406         
21407         2. calls XDestroyWindow on the window passed in.
21408
21409         3. SendMessage's WM_DESTROY to all he handles in the accumulated
21410         list.
21411
21412 2006-10-13  Chris Toshok  <toshok@ximian.com>
21413
21414         * XplatUIX11.cs: set hwnd.zombie to true before calling
21415         SendMessage (WM_DESTROY).  this keeps us from marking the new
21416         window a zombie, and also keeps us from calling sendmessage at
21417         all.
21418
21419 2006-10-13  Jackson Harper  <jackson@ximian.com>
21420
21421         * TextControl.cs: Do not show the caret and selection at the same
21422         time.  Reduces ugliness by 35%.
21423
21424 2006-10-13  Chris Toshok  <toshok@ximian.com>
21425
21426         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
21427         zombie after we do the recursive call, so we actually do call
21428         SendMessage on the children controls.
21429         (GetMessage): if we find a pending paint event for a zombie hwnd,
21430         remove the hwnd from the paint queue, or else it will always be
21431         there (and we'll effectively loop infinitely)
21432
21433 2006-10-13  Mike Kestner  <mkestner@novell.com>
21434
21435         * MenuItem.cs : add Selected format under keynav too.
21436         Fixes #79528.
21437
21438 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
21439
21440         * PropertyGrid.cs: Fixed some NRE's and small difference between our
21441         implementation and that of MS.
21442
21443 2006-10-13  Chris Toshok  <toshok@ximian.com>
21444
21445         * Control.cs (OnInvalidated) only futz with the invalid_region if
21446         the control is double buffered.  this fixes the apparent hang in
21447         the ListView unit tests.  Someone needs to make the
21448         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
21449
21450 2006-10-13  Chris Toshok  <toshok@ximian.com>
21451
21452         * PropertyGridView.cs:
21453
21454         - do a little refactoring so that only one place calls
21455         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
21456         else call that.  Also make it Refresh, since there are redraw bugs
21457         otherwise (we should take a look at that...)
21458
21459         - do a little more refactoring work to share the body of code
21460         involved with the drop down.  it was duplicated in the code
21461         dealing with the listbox handling and in the code dealing with the
21462         UITypeEditors.
21463
21464         - add a Capture to the dropdown form's control once it's
21465         displayed, and add a MouseDown handler that checks to make sure
21466         the position is inside the control.  If it's not, close the
21467         dropdown.  This fixes #78190.
21468
21469         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
21470         if the value is different than the initial value.
21471         
21472 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
21473
21474         * Control.cs: see #78650
21475         - Fixed GetNextControl for several cases:
21476                 - Changed FindFlatForward to return 
21477                 correct sibling control when more than one
21478                 control has same TabIndex as the currently 
21479                 focused one.
21480                 - Changed FindFlatBackward to loop children
21481                 from last to first and apply same logic as in
21482                 FindFlatForward
21483                 - Changed FindControlForward to search for
21484                 children when control is not a container
21485                 but has children, or search for siblings if
21486                 control is a container...
21487                 - Changed FindControlBackward   to continue
21488                 searching for child controls when hitting 
21489                 Panel-like parents
21490                 
21491         - Fixed Focus method to update ActiveControl
21492         (FocusTest.FocusSetsActive failure)
21493         
21494         * TabControl.cs:
21495         - Focus rectangle now refreshes when gaining
21496         or losing focus
21497         - Removed grab for Tab key on IsInputKey that 
21498         was keeping tab navigation from working (#78650)
21499
21500 2006-10-13  Chris Toshok  <toshok@ximian.com>
21501
21502         * PropertyGridView.cs:
21503         - Rewrite SetPropertyValue to loop over SelectedGridItem's
21504         SelectedObjects.
21505
21506         - Deal with GridItem.Value == null a few places.
21507
21508         * PropertyGrid.cs: 
21509         - replace the PopulateGridItemCollection with a pair of methods
21510         which compute the intersection of all the properties in the
21511         SelectedObjects array.  Fixes #79615.
21512
21513         - Throw ArgumentException from set_SelectedObjects if there's a
21514         null in the array.
21515
21516         - Add GetTarget method which can be used to traverse up the
21517         GridItem.Parent chain.  It depends on the assumption that
21518         selected_objects for different GridEntries are always in the same
21519         order (a safe assumption).  Use this method and loop over all the
21520         selected objects in the entry when calling RemoveValueChanged and
21521         AddValueChanged.
21522         
21523         * GridEntry.cs: Make this handle multiple selected objects.
21524         .Value returns null if not all the selected objects share the same
21525         value.
21526
21527 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
21528         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
21529           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
21530           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
21531           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
21532           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
21533         add additional functionality.
21534
21535 2006-10-12  Mike Kestner  <mkestner@novell.com>
21536
21537         * ErrorProvider.cs : new ToolTipWindow ctor sig.
21538         * HelpProvider.cs : new ToolTipWindow ctor sig.
21539         * ToolTip.cs : remove ToolTip param from Window sig since it is
21540         not used.
21541         * ToolBar.cs : add tooltip support.  Fixes #79565.
21542
21543 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21544
21545         * ComboBox.cs: move the events in set_SelectedIndex to 
21546         after the call to HighlightIndex in order to avoid 
21547         possible recursion and subsequent problems with the call
21548         to HighlightIndex and include a range check in 
21549         set_HighlightIndex. Fixes #79588
21550         
21551 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21552
21553         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
21554         to ui thread's settings instead of sunday. 
21555         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
21556
21557 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21558
21559         * DateTimePicker.cs
21560         * MonthCalendar.cs
21561         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
21562         and implement missing functionality (selecting different parts 
21563         of the date and edit them individually with the keyboard).
21564         
21565 2006-10-11  Chris Toshok  <toshok@ximian.com>
21566
21567         * Control.cs (OnInvalidated): fix NRE relating to last change.
21568
21569 2006-10-11  Chris Toshok  <toshok@ximian.com>
21570
21571         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
21572         atoms in _NET_WM_STATE here if the window is maximized.  We need
21573         to do this because we're *replacing* the existing _NET_WM_STATE
21574         property, so those atoms will be lost otherwise, and any further
21575         call to GetWindowState will return Normal for a window which is
21576         actually maximized.  Fixes #79338.
21577
21578 2006-10-11  Jackson Harper  <jackson@ximian.com>
21579
21580         * TextControl.cs: Special case for setting selection end to
21581         selection start, we basically kill the anchor.
21582         - some todo comments.
21583
21584 2006-10-11  Chris Toshok  <toshok@ximian.com>
21585
21586         * Control.cs: switch to using an "invalid_region" to track which
21587         parts of the image buffer need updating.  This is more code than
21588         the simple fix from r66532.  That version just attempted to always
21589         fill the entire buffer on redraw, which turns out to be
21590         inefficient when invalidating small rectangles.  This version
21591         simply adds the invalid rectangle to the invalid region.  When we
21592         get any WM_PAINT message we see if it can be filled using the
21593         image buffer, and if it can't (if the paint event's clip rectangle
21594         is visible in the invalid region) we first fill the image buffer.
21595         So, the image buffer is still a cache, we just fill it lazily.
21596
21597         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
21598         need it any longer.
21599
21600 2006-10-11  Chris Toshok  <toshok@ximian.com>
21601
21602         * XplatUIX11.cs (SetWindowPos): we need to update both position as
21603         well as size after calling XMoveResizeWindow.  This keeps us from
21604         ignoring future SetWindowPos calls.  Fixes the disappearing
21605         DateTimePicker in the ToolBarDockExample from bug #72499.
21606
21607 2006-10-11  Chris Toshok  <toshok@ximian.com>
21608
21609         * TextBoxBase.cs: reorder things a bit when it comes to
21610         resizing-causing-recalculation.  we were recalculating the
21611         document when our position was changed, which shouldn't happen.
21612         We only care about size changes.  Clear up some more redundant
21613         recalculation calls while I'm at it.  This makes the toolbar dock
21614         example snappy when you're just dragging toolbars around (since it
21615         causes a relayout whenever you move one.)
21616
21617 2006-10-11  Chris Toshok  <toshok@ximian.com>
21618
21619         * ToolBarButton.cs (get_Rectangle): this only returns
21620         Rectangle.Empty if Visible == false, or Parent == null.
21621         Parent.Visible doesn't matter.
21622
21623 2006-10-10  Chris Toshok  <toshok@ximian.com>
21624
21625         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
21626         by .net 1.1, so switch to an internal method instead.
21627
21628 2006-10-10  Chris Toshok  <toshok@ximian.com>
21629
21630         * Control.cs (WM_PAINT): when a control is double buffered we draw
21631         initially to the ImageBuffer and then copy from there.  But when a
21632         parent control which has child controls is double buffered, the
21633         initial drawing doesn't encompass the entire ClientRectangle of
21634         the parent control, so we end up with uninitialized bits (this is
21635         easily seen by dragging the top toolbar in
21636         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
21637         manually set the ClipRectangle of the paint_event (only the one we
21638         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
21639         of the nastiness in bug #72499.
21640
21641         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
21642         which we use in Control.cs's WM_PAINT handling.
21643
21644 2006-10-10  Jackson Harper  <jackson@ximian.com>
21645
21646         * TextBoxBase.cs: Finish off the autoscrolling stuff.
21647
21648 2006-10-10  Chris Toshok  <toshok@ximian.com>
21649
21650         * Cursor.cs: Apply a slightly different patch to the one suggested
21651         in #79609.
21652
21653 2006-10-10  Jackson Harper  <jackson@ximian.com>
21654
21655         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
21656         not the parent form.
21657         * TextControl.cs: use difference in old line count vs new count to
21658         calculate how many lines were added, this takes into account soft
21659         line breaks properly.
21660
21661 2006-10-10  Chris Toshok  <toshok@ximian.com>
21662
21663         * LinkLabel.cs: don't call MeasureCharacterRanges against a
21664         rectangle located at 0,0 and the size of the text.  Use
21665         ClientRectangle instead.  This fixes rendering of non-left aligned
21666         link labels.
21667
21668 2006-10-10  Jackson Harper  <jackson@ximian.com>
21669
21670         * TextBoxBase.cs: When we set the selection start position the
21671         caret.
21672         * TextControl.cs: Need to update the caret when we decrement it to
21673         zero.
21674         - Make sure that the selection_visible flag gets reset to false if
21675         the selection isn't visible.  Before this you could get it set to
21676         visible by changing the selection start, then changing the end to
21677         equal the start.
21678
21679 2006-10-09  Jackson Harper  <jackson@ximian.com>
21680
21681         * TreeView.cs: Don't update scrollbars when we aren't visible.
21682         * TreeNodeCollection.cs: Only need to update scrollbars if being
21683         added to an expanded visible node or the root node.
21684
21685 2006-10-09  Chris Toshok  <toshok@ximian.com>
21686
21687         * XplatUIX11.cs (SendMessage): fix NRE.
21688
21689 2006-10-09  Jackson Harper  <jackson@ximian.com>
21690
21691         * TextBoxBase.cs: Implement horizontal autoscrolling.
21692         * TextControl.cs: Add a movement types that allows moving forward
21693         and backwards without wrapping.
21694
21695 2006-10-09  Mike Kestner  <mkestner@novell.com>
21696
21697         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
21698         with focus "expansion" of labels.  Fixes #79532 and then some.
21699         * ThemeWin32Classic.cs : add LineLimit to ListView label format
21700         when wrapping.
21701
21702 2006-10-09  Jackson Harper  <jackson@ximian.com>
21703
21704         * TextBoxBase.cs: Set the default max values to MaxValue since
21705         we use the scrollbar for autoscrolling and the default value is
21706         100.  If we don't do this the caret won't keep up with typing
21707         after about 18 characters.
21708         * TextControl.cs: Make sure the selection is offset by the
21709         viewport x.  This fixes selection when using auto scrolling.
21710
21711 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
21712         
21713         * Form.cs: The active control should be selected after the 
21714         OnLoad so that any child control initialization that affects
21715         the selection is done. Fixes #79406
21716
21717 2006-10-06  Chris Toshok  <toshok@ximian.com>
21718
21719         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
21720         to have no evil effects.
21721
21722         - Stop selecting StructureNotifyMask on non-toplevel windows.
21723
21724           The only way children should be resized is by using the SWF api,
21725           and we already send WM_WINDOWPOSCHANGED messages in those cases.
21726           Toplevel windows can be interacted with via the window manager,
21727           and so we keep the input mask there.
21728
21729           The other event StructureNotifyMask gives us (that we care
21730           about) is DestroyNotify.  The code is already structured such
21731           that it assumes we won't be getting a DestroyNotify event for
21732           the window we pass to XDestroyWindow (which is what
21733           StructureNotifyMask is supposed to guarantee.)  So, that code
21734           shouldn't be affected by this either.
21735
21736         - Stop selecting VisibilityChangeMask altogether.
21737
21738           We weren't doing anything with the resulting events anyway.
21739         
21740         This vastly reduces the number of X requests and events we see
21741         when resizing/laying out a large ui.
21742
21743 2006-10-06  Chris Toshok  <toshok@ximian.com>
21744
21745         * ScrollableControl.cs (DisplayRectangle): we need to take into
21746         account the DockPadding regardless of whether or not auto_scroll
21747         == true.  rework this slightly to this effect, and fix bug #79606,
21748         and part of #72499 (you can now see the drag handles and drag
21749         toolbars around).
21750
21751 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
21752
21753         * ListViewItem.cs: Collections of selected and checked items are now
21754         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
21755         we mark the collection "dirty".
21756         * ListView.cs: Marked collections readonly. Modified UpdateSelection
21757         to only clear SelectedItems when a new item is selected and MultiSelect
21758         is enabled. CheckedItems and SelectedItems now subscribe to Changed
21759         event of ListViewItemCollection, and mark its list dirty whenever
21760         that event is fire. This allows us to return selected/checked items 
21761         in the same order as they are in the Items collection. This matches
21762         the MS behavior.
21763
21764 2006-10-06  Chris Toshok  <toshok@ximian.com>
21765
21766         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
21767         right mouse clicks.  Fixes bug #79593.
21768
21769 2006-10-06  Chris Toshok  <toshok@ximian.com>
21770
21771         * Splitter.cs: doh, fix splitters that don't want to cancel the
21772         movement when you drag them.  Also, impose the limits on the
21773         values we send to the SplitterMovingEvent.  Fixes #79598.
21774
21775 2006-10-06  Jackson Harper  <jackson@ximian.com>
21776
21777         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
21778         since we use this for auto scrolling also.
21779
21780 2006-10-05  Chris Toshok  <toshok@ximian.com>
21781
21782         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
21783         beginning to think that most datagrid column types don't need this
21784         method.  Fixes bug #79392.
21785
21786 2006-10-05  Chris Toshok  <toshok@ximian.com>
21787
21788         * DataGrid.cs: move back to a more lazy scheme for creating the
21789         CurrencyManager, so we aren't updating it every time you set
21790         either DataSource or DataMember.  Also, don't call
21791         RecreateDataGridRows if the currency manager hasn't changed.
21792
21793 2006-10-05  Chris Toshok  <toshok@ximian.com>
21794
21795         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
21796         emitted, SelectedIndex should already be updated.  Fixes bug
21797         #78929.
21798
21799 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
21800
21801         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
21802           ToolStripTextBox.cs: Initial commit.
21803         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
21804
21805 2006-10-05  Jackson Harper  <jackson@ximian.com>
21806
21807         * TabControl.cs: We need to invalidate the tab control area when
21808         new ones are added (duh).
21809
21810 2006-10-03  Chris Toshok  <toshok@ximian.com>
21811
21812         * Form.cs (ProcessDialogKey): if the focused control is in this
21813         form and is a button, call its PerformClick method here.  Fixes
21814         #79534.
21815
21816 2006-10-04  Jackson Harper  <jackson@ximian.com>
21817
21818         * TabPage.cs: Ignore setting of Visible, and add an internal
21819         method for setting the controls visibility.  TabPage's Visible
21820         property is a little strange on MS, this seems to make us
21821         compatible, and fixes cases where people set all the tab pages to
21822         visible.
21823         * TabControl.cs: Use the new internal setting on tab pages
21824         visibility.
21825
21826 2006-10-03  Mike Kestner  <mkestner@novell.com>
21827
21828         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
21829
21830 2006-10-03  Mike Kestner  <mkestner@novell.com>
21831
21832         * ListView.cs : use is_visible instead of Visible to check if 
21833         scrollbars should be placed/sized.  Also some max_wrap_width
21834         love for LargeIcon view.  [Fixes #79533]
21835
21836 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
21837
21838         * TextControl.cs :
21839           Make set_TextAlign() do actually update the align. Fixed #78403.
21840
21841 2006-10-03  Chris Toshok  <toshok@ximian.com>
21842
21843         * DataGrid.cs: fix a crash when switching datasources if the
21844         vertical scrollbar is at someplace other than Value = 0.  Also,
21845         reduce the number of recalculation passes we do in SetDataSource
21846         from 2 to 1.
21847
21848 2006-10-03  Jackson Harper  <jackson@ximian.com>
21849
21850         * TextBoxBase.cs: Move the if value the same bail check up, we
21851         don't want to empty the document if it is already empty, this
21852         seems to severly mess up the caret.  TODO: I should probably fix
21853         the empty statement to update teh caret somehow.
21854
21855 2006-10-03  Chris Toshok  <toshok@ximian.com>
21856
21857         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
21858         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
21859         reflection, an internal row type, properties on said type, etc.)
21860         will work with our datagrid.  Fixes #79531.
21861
21862 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
21863
21864         * FileDialog.cs: Don't crash if a path is not accessible
21865           (System.UnauthorizedAccessException). Fixes #79569.
21866         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
21867           a ':' too. Return unknown icon for those paths/files.
21868
21869 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
21870
21871         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
21872         GetContainerControl returns null.
21873
21874 2006-10-02  Chris Toshok  <toshok@ximian.com>
21875
21876         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
21877         call to XGetWindowAttributes instead of "handle".  fixes an X
21878         error using notifyicon after the NotifyIconWindow to Form base
21879         class switch.
21880
21881 2006-10-02  Chris Toshok  <toshok@ximian.com>
21882
21883         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
21884         server grab and looping we need to do to get down to the most
21885         deeply nested child window.
21886         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
21887         QueryPointer again after the WarpPointer so we can generate a
21888         proper (fake) MotionNotify event to be enqueued in the destination
21889         window's queue.
21890         (GetCursorPos): call QueryPointer.
21891
21892         Fixes #79556.
21893
21894 2006-10-02  Jackson Harper  <jackson@ximian.com>
21895
21896         * NotifyIcon.cs: Derive the notify icon from a form, so things
21897         like FindForm work on it.
21898         - Swallow the WM_CONTEXTMENU message, since that is generated on
21899         mouse down, and context menu is a mouse up kinda guy.  I believe
21900         the correct fix here is probably to make the notify icon entirely
21901         NC area, but this seems to work fine for anyone not manipulating
21902         WndProc.
21903
21904 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
21905
21906         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
21907           ToolStripItemCollection.cs, ToolStripLabel.cs,
21908           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
21909           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
21910           Initial implementation.
21911         * TextRenderer.cs: Provide padding to MeasureText.
21912
21913 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
21914
21915         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
21916         of ButtonBaseAccessibleObject. Fix bug #79552.
21917
21918 2006-10-02  Jackson Harper  <jackson@ximian.com>
21919
21920         * MdiWindowManager.cs: When maximizing use the containers client
21921         rect, not it's bounds, so nc area is accounted correctly.
21922         - Use the parent form's size for the menu position, since the
21923         client isn't always the full form size.
21924
21925 2006-10-01  Chris Toshok  <toshok@ximian.com>
21926
21927         * ScrollableControl.cs: make sure neither right_edge or
21928         bottom_edge are < 0, since they're used as LargeChange for the
21929         horiz/vert scrollbars respectively.  Fixes #79539.
21930
21931 2006-10-01  Chris Toshok  <toshok@ximian.com>
21932
21933         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
21934         the xplatuix11 code can cause us to destroy/recreate our handle.
21935
21936         * XplatUIX11.cs
21937         (SystrayAdd):
21938         - this code can be invoked many times for the same Hwnd.  Make
21939           sure we only destroy the client window once (the first time this
21940           method is called).  This fixes bug #79544.
21941         - Remove the call to the improperly bound XSync.  why we had two
21942           bindings to this, I will never know, but this call resulted in
21943           events being discarded from the queue(!).
21944         - correct a misunderstanding of _XEMBED_INFO - the second atom is
21945           not our current state but the state we wish to be in.  So, 0 if
21946           we don't want to be mapped.  Change it to 1.
21947         (SystrayRemove): The XEMBED spec makes mention of the fact that
21948         gtk doesn't support the reparent of client windows away from the
21949         embedder.  Looking at gtksocket-x11.c seems to agree with this.
21950         The only avenue we have for removing systray icons is to destroy
21951         them.  We don't want the handle to go away for good, though, so
21952         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
21953         #79545.
21954         
21955 2006-10-01  Chris Toshok  <toshok@ximian.com>
21956
21957         * Form.cs (WndProc): inline the native_enabled variable usage into
21958         the cases in which it's used.  Fixes #79536.
21959
21960 2006-09-29  Mike Kestner  <mkestner@novell.com>
21961
21962         * ListView.cs : toggle the selection state for ctrl clicks in 
21963         multiselect mode. [Fixes #79417]
21964
21965 2006-09-29  Mike Kestner  <mkestner@novell.com>
21966
21967         * ListView.cs : kill CanMultiSelect and refactor the selection
21968         code to support multiselection in the absence of mod keys. Steal
21969         arrow/home/end keys by overriding InternalPreProcessMessage to
21970         restore regressed keynav behavior.
21971         [Fixes #79416]
21972
21973 2006-09-29  Jackson Harper  <jackson@ximian.com>
21974
21975         * MdiClient.cs: Repaint the titlebars when the active window is
21976         changed.
21977
21978 2006-09-29  Chris Toshok  <toshok@ximian.com>
21979
21980         * Application.cs: when entering a runloop with a modal, make sure
21981         the hwnd is enabled.  Fixes #79480.
21982
21983 2006-09-29  Chris Toshok  <toshok@ximian.com>
21984
21985         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
21986         when ListManager.CanAddRows == false, bump us back one.
21987
21988         * DataGridColumnStyle.cs (ParentReadOnly): remove the
21989         listmanager.CanAddRows check.  This makes ArrayLists uneditable
21990         using a datagrid, which is not right.
21991         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
21992         is an IEditable, but call property_descriptor.SetValue regardless.
21993         fixes #79435.
21994
21995 2006-09-29  Chris Toshok  <toshok@ximian.com>
21996
21997         * DataGridBoolColumn.cs: we need to test equality in the face of
21998         possible null values (as is the case with the default NullValue).
21999         This patch keeps us from crashing in that case.
22000
22001 2006-09-29  Jackson Harper  <jackson@ximian.com>
22002
22003         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22004         here, since it will get called for every node collection in the
22005         tree. This is now done in the treeview once the sorting is
22006         finished.
22007         * TreeView.cs: Recalculate the visible order, and update the
22008         scrollbars after sorting, set the top nope to the root so that the
22009         recalc actually works.
22010
22011 2006-09-29  Chris Toshok  <toshok@ximian.com>
22012
22013         * LinkLabel.cs: more handling of the default link collection in
22014         the face of LinkArea manipulation.  The default link collection
22015         contains 1 element (start=0,length=-1).  If the user sets LinkArea
22016         to anything and the links collection is the default, clear it.
22017         Then only add the link if its nonempty.  Fixes #79518.
22018
22019 2006-09-29  Chris Toshok  <toshok@ximian.com>
22020
22021         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22022         piece correctly when we hit a '\n'.  Fixes #79517.
22023
22024 2006-09-29  Chris Toshok  <toshok@ximian.com>
22025
22026         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22027         change the binding of gdk_init_check to take two IntPtr's, and
22028         pass IntPtr.Zero for both of them.  Fixes #79520.
22029
22030 2006-09-29  Mike Kestner  <mkestner@novell.com>
22031
22032         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22033         [Fixes #78779]
22034
22035 2006-09-28  Jackson Harper  <jackson@ximian.com>
22036
22037         * XplatUIX11.cs: When translating NC messages make sure we go from
22038         whole window to screen, not client window to screen.
22039         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22040         method doesn't exist
22041         - Skip over controls that aren't forms when arranging.
22042
22043 2006-09-28  Jackson Harper  <jackson@ximian.com>
22044
22045         * XplatUIWin32.cs: Clip the rect to the parent window.
22046         * XplatUIStructs.cs: Add clipping modes struct.
22047         * InternalWindowManager.cs: New private method that factors title
22048         bar heights in when calculating the pos of an NC mouse message.
22049         - Use SendMessage to force a paint when the form's size is changed
22050         instead of painting the decorations immediately.
22051         - Don't let the NC button click messages get to DefWndProc,
22052         because they will attempt to handle windowing themself, and this
22053         messes up z-order (it will put them in front of the scrollbars).
22054         * XplatUIX11.cs: Make sure that we don't reset window managers if
22055         we already have one (ie the window is an MDI window).
22056
22057 2006-09-28  Chris Toshok  <toshok@ximian.com>
22058
22059         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
22060         menu code really needs going over.
22061
22062 2006-09-27  Chris Toshok  <toshok@ximian.com>
22063
22064         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
22065         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22066         window is maximizable.  So, we need to make sure that even if we
22067         clear the border/wm frame of those functions, they're still
22068         available (basically, we remove the decoration without removing
22069         the function).  Half the fix for #79338.
22070
22071 2006-09-27  Chris Toshok  <toshok@ximian.com>
22072
22073         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22074         Fixes bug #79515.
22075
22076 2006-09-27  Chris Toshok  <toshok@ximian.com>
22077
22078         * Splitter.cs: reorder things a bit so that we don't actually
22079         draw/move the splitter until after calling OnSplitterMoving.  This
22080         lets users cancel/disallow the movement by explicitly setting
22081         event.SplitX/SplitY.  Fixes #79372.
22082
22083 2006-09-27  Jackson Harper  <jackson@ximian.com>
22084
22085         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22086         because it is most likely on a window being destroyed, and that
22087         will give us an X11 error.
22088
22089 2006-09-27  Chris Toshok  <toshok@ximian.com>
22090
22091         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
22092         the dropdown button now toggles between showing and hiding the
22093         dropdown.  Also, get rid of dropdown_form_showing and just use
22094         dropdown_form.Visible.  We still don't do a grab, but I'll leave
22095         that part to someone who has handled Capture-fu before.
22096
22097 2006-09-27  Chris Toshok  <toshok@ximian.com>
22098
22099         * DataGrid.cs: return false if alt isn't pressed when '0' is
22100         pressed.  this keeps the '0' key from being swallowed, and fixes
22101         bug #79350.
22102
22103 2006-09-27  Chris Toshok  <toshok@ximian.com>
22104
22105         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
22106         Calling Refresh (in response to a scrollbar event) screws up the
22107         scrollbar painting.  Fixes bug #78923.
22108
22109 2006-09-27  Chris Toshok  <toshok@ximian.com>
22110
22111         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
22112         then insert into hashtable" blocks threadsafe.
22113
22114 2006-09-27  Chris Toshok  <toshok@ximian.com>
22115
22116         * MessageBox.cs (CreateParams): the styles should be |'ed with our
22117         baseclass's, since otherwise the
22118         ControlBox/MinimizeBox/MaximizeBox assignments above have no
22119         effect.  This gets the close button back in messageboxes.
22120
22121 2006-09-27  Chris Toshok  <toshok@ximian.com>
22122
22123         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
22124         flag, not just != 0.  this makes flags that are actually multiple
22125         bits (like WS_CAPTION) work.  fixes bug #79508.
22126
22127 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
22128
22129         * PageSetupDialog.cs: add support for getting and settings the 
22130         paper size, source and orientation.
22131
22132 2006-09-26  Chris Toshok  <toshok@ximian.com>
22133
22134         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
22135         and caption == "", we need to remove the resize handles as well as
22136         the title bar.
22137
22138         * Control.cs (set_Text): turns out that setting Text on a form
22139         should change the WM styles on the window, since if ControlBox ==
22140         false, the only way to get a window border is to have a non-""
22141         Text property.  check winforms/forms/text.cs for an example.  so,
22142         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
22143         update both window styles and title.  This fixes a lot of dialogs
22144         (including the preferences dialog in MonoCalendar.)
22145
22146 2006-09-26  Chris Toshok  <toshok@ximian.com>
22147
22148         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
22149         control isn't a Form), call Win32ShowWindow to hide the window,
22150         but don't update the control Visible property.  When we reparent
22151         back to a parent control, call SetVisible in order for the
22152         window's visibility to be reinstated.
22153
22154         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
22155         the FosterParent.
22156
22157         * Control.cs (ControlCollection.Remove): remove that value.Hide()
22158         call for good, since it breaks MonoCalendar (and other things I'm
22159         sure.) Also, set all_controls to null *after* the owner calls,
22160         which end up regenerating it.
22161         (ChangeParent): allow new_parent to be == null, passing
22162         IntPtr.Zero down to XplatUI.
22163
22164         this fixes #79294 the right way.
22165
22166 2006-09-26  Mike Kestner  <mkestner@novell.com>
22167
22168         * GridEntry.cs : internal SetParent method.
22169         * PropertyGrid.cs : attach to property changed on the proper
22170         target if we have a hierarchical grid with subobjects. Setup
22171         GridItem.Parent for hierarchical items.
22172         * PropertyGridView.cs : Set value on the correct target for
22173         hierarchical grids. [Fixes #78903]
22174
22175 2006-09-26  Chris Toshok  <toshok@ximian.com>
22176
22177         * Control.cs (ChildNeedsRecreating): this should return true if
22178         either we're being recreated and the child is in our list, or our
22179         parent is waiting for our recreation.
22180
22181 2006-09-26  Chris Toshok  <toshok@ximian.com>
22182
22183         * Control.cs (ControlCollection.Remove): reinstate the
22184         value.Hide() call as suggested in bug #79294.
22185
22186 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
22187
22188         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
22189         coordinates (versus a relative move).
22190
22191 2006-09-26  Chris Toshok  <toshok@ximian.com>
22192
22193         * Control.cs: rework child recreation a little bit.  It turns out
22194         that we race between the DestroyNotify the WM_DESTROY message.  If
22195         the parent gets its DestroyNotify before the child gets the
22196         WM_DESTROY message, the child ends up not recreating (since the
22197         parent finishes its recreation on DestroyNotify, and the child
22198         checks ParentIsRecreating.)
22199
22200         So, instead we store off a list of all the child controls which
22201         need to be recreated when the parent control starts to recreate
22202         itself.  Then, when child controls get their WM_DESTROY message we
22203         check to see if they're in the parent's pending recreation list,
22204         and if so, we recreate.  This removes all dependency on ordering
22205         from the code and fixes the initial MonoCalendar upgrade dialog.
22206         
22207 2006-09-26  Jackson Harper  <jackson@ximian.com>
22208
22209         * TextControl.cs: Use the Line to get the length of the line,
22210         since soft line breaks can change the end line.
22211
22212 2006-09-26  Chris Toshok  <toshok@ximian.com>
22213
22214         * Control.cs (ControlCollection.AddImplicit): don't add the
22215         control again if it's already in one of our lists.  This keeps us
22216         from adding controls over and over again for comboboxes when their
22217         handle gets recreated (as the combobox adds implicit controls in
22218         OnHandleCreated).  Fixes the X11 errors in bug #79480.
22219
22220 2006-09-26  Jackson Harper  <jackson@ximian.com>
22221
22222         * TextControl.cs: When deleting characters make sure that any
22223         orphaned zero lengthed tags get deleted.
22224         - Fix ToString for zero lengthed tags.
22225
22226 2006-09-25  Jackson Harper  <jackson@ximian.com>
22227
22228         * TextControl.cs: When getting a tag at the location there can be
22229         multiple tags at the same spot, these are 0-lengthed tags that
22230         appear when extra formatting has been stuck in a location.  We
22231         need to pull out the last of these 0 lengthed tags.
22232
22233 2006-09-25  Jackson Harper  <jackson@ximian.com>
22234
22235         * TextControl.cs: Fix print out in debug method.
22236         * TextBoxBase.cs: When text is set bail if we are setting to the
22237         previous value.
22238         
22239 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
22240
22241         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
22242           It is now possible to change the selected index in a FontXXXListBox
22243           with the up and down arrow keys from the FontXXXTextBoxes.
22244           Also, send the FontXXXTextBox mouse wheel event to the corresponding
22245           FontXXXListBoxes to match ms.
22246
22247 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
22248
22249         * SystemInformation.cs: Return a clone of the theme's MenuFont because
22250         anyone can dispose it, anytime. All other properties returns enums, 
22251         structs or basic types so they don't need such tricks.
22252
22253 2006-09-22  Jackson Harper  <jackson@ximian.com>
22254
22255         * XplatUI.cs:
22256         * XplatUIWin32.cs:
22257         * Clipboard.cs:
22258         * DataFormats.cs:
22259         * XplatUIOSX.cs:
22260         * XplatUIDriver.cs: Update interface to add a primary selection
22261         flag, so the driver can use the primary selection buffer if
22262         needed.
22263         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
22264
22265         * RichTextBox.cs: We need to supply the data object to paste now
22266         (so we can choose to supply CLIPBOARD or PRIMARY).
22267         * TextBoxBase.cs: Supply data object to paste (see above).
22268         - Middle click uses the primary selection data object.
22269         
22270 2006-09-21  Chris Toshok  <toshok@ximian.com>
22271
22272         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
22273         of SetWMStyles.  It's still a rat's nest and is largely
22274         order-dependent which I dislike immensely.  This also fixes the X
22275         button disappearing from toplevel forms.
22276
22277 2006-09-21  Mike Kestner <mkestner@novell.com>
22278
22279         * ListBox.cs: move Jordi's click/dblclick raising code to the
22280         mouse up handler.
22281
22282 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
22283
22284         * ListBox.cs: Fixes 79450
22285
22286 2006-09-21  Mike Kestner <mkestner@novell.com>
22287
22288         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
22289         to deal with people updating the TreeNodeCollection after the tree
22290         is disposed.  "Fixes" 79330.
22291
22292 2006-09-20  Jackson Harper <jackson@ximian.com>
22293
22294         * TextControl.cs: Push the cursor record onto the undo stack
22295         before the delete action. This fixes 78651.
22296
22297 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
22298
22299         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
22300         CreateParams. Fixes 79329.
22301
22302 2006-09-19  Chris Toshok  <toshok@ximian.com>
22303
22304         * XplatUIX11.cs: a couple of blanket code massage passes to clean
22305         things up a bit.  First, get rid of the NetAtoms array (and the NA
22306         enum), and just embed the atoms as static fields.  Also, add a
22307         couple of functions (StyleSet and ExStyleSet) to clean up all the
22308         bitmask testing of styles.
22309
22310         * X11Structs.cs: remove the NA enum, not needed anymore.
22311         
22312 2006-09-19  Chris Toshok  <toshok@ximian.com>
22313
22314         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
22315         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
22316         added cleanup to get MessageBox titles appearing again, which were
22317         broken by my earlier fix for caption-less/ControlBox-less windows.
22318
22319 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
22320
22321         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
22322           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
22323           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
22324           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
22325           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
22326           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
22327           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
22328           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
22329           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
22330           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
22331           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
22332             Inital import.
22333         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
22334           ToolStripButton.cs: Stubs needed for above.
22335         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
22336
22337 2006-09-15  Chris Toshok  <toshok@ximian.com>
22338
22339         * XplatUIX11.cs:
22340         - make the MessageQueues hashtable Synchronized.
22341         
22342         - SendMessage: if the Hwnd is owned by a different thread, use the
22343         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
22344         thread.  Fixes bug #79201.
22345
22346 2006-09-15  Chris Toshok  <toshok@ximian.com>
22347
22348         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
22349         ControlBox == false, we disallow maximize/minimize/close.  If the
22350         form Caption is "" we also disallow move (and get rid of the Title
22351         decoration).  Unfortunately, regardless of how things are set,
22352         we're stuck with the Title and WM menu.
22353
22354 2006-09-15  Chris Toshok  <toshok@ximian.com>
22355
22356         * Application.cs: add locking around the static message_filters
22357         ArrayList, part of #79196.
22358
22359 2006-09-15  Chris Toshok  <toshok@ximian.com>
22360
22361         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
22362         Form.ControlBox == false, the window has no titlebar nor resize
22363         handles.  fixes bug #79368.
22364
22365 2006-09-15  Chris Toshok  <toshok@ximian.com>
22366
22367         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
22368         >= 0.  Fixes bug #79370.
22369
22370 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
22371         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
22372         * Control.cs:
22373             Add properties: LayoutEngine, Margin, DefaultMargin.
22374             Add method: GetPreferredSize.
22375             Move layout logic from PerformLayout to layout engines. 
22376
22377 2006-09-13  Chris Toshok  <toshok@ximian.com>
22378
22379         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
22380         fix for #79326 broke #78718, so this change addresses that.
22381
22382         - in SendWMDestroyMessages remove the call to
22383         CleanupCachedWindows, since we might be recreating the control and
22384         need to maintain the references to right Hwnd handles.  Also, set
22385         the zombie flag to true for each of the children in the hierarchy
22386         instead of calling hwnd.Dispose.  This will cause GetMessage to
22387         ignore all events for the window except for DestroyNotify.
22388
22389         - In GetMessage, ignore messages except for DestroyNotify for
22390         zombie hwnds.
22391         
22392         * Control.cs: revert the is_recreating fix from the last
22393         ChangeLog.  It's definitely "right", but it breaks switching from
22394         an MDI form to a non-MDI form.  Will need to revisit that.
22395
22396         * Hwnd.cs: add a zombie flag, which means "the
22397         client_window/whole_window handles are invalid, but we're waiting
22398         for the DestroyNotify event to come in for them".  Set the flag to
22399         false explicitly if setting WholeWindow/ClientWindow, and also
22400         when Disposing.
22401         
22402 2006-09-13  Chris Toshok  <toshok@ximian.com>
22403
22404         * XplatUIX11.cs: rework window destruction slightly.
22405
22406         - when destroying the windows associated with a control, we don't
22407         need 2 separate XDestroyWindow calls.  Just the one for the
22408         whole_window (or for client_window if whole_window is somehow
22409         IntPtr.Zero -- can this happen?) is enough.
22410
22411         - reworked SendWMDestroyMessages slightly, so we always dispose
22412         the child control hwnd's after sending the messages.
22413         
22414         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
22415         the two places it was used (one was even using hwnd.Handle and the
22416         other hwnd.client_window.  ugh), adding another call in
22417         SendWMDestroyMessages.  We need this new call because now the
22418         DestroyNotify events in the queue will be ignored for the child
22419         controls (as their hwnd's were disposed, and the window id's
22420         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
22421
22422         - this fixes bug #79326.
22423
22424 2006-09-13  Chris Toshok  <toshok@ximian.com>
22425
22426         * Control.cs: don't always set is_recreating to false at the end
22427         of RecreateHandle, since sometimes we're not done (and won't be
22428         until WndProc handles the WM_DESTROY message).  Also, set
22429         is_recreating to false in the WM_DESTROY handling code.  Part of
22430         the fix for bug #79326.
22431
22432 2006-09-13  Miguel de Icaza  <miguel@novell.com>
22433
22434         * X11DesktopColors.cs: Start the droppage of debugging messages.
22435
22436         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
22437
22438 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
22439
22440         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
22441
22442 2006-09-12  Chris Toshok  <toshok@ximian.com>
22443
22444         * DataGrid.cs (get_ListManager): if the list_manager is null, try
22445         to create it using SetDataSource.  Fixes bug #79151.
22446
22447 2006-09-11  Chris Toshok  <toshok@ximian.com>
22448
22449         * XEventQueue.cs: add a DispatchIdle property.
22450
22451         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
22452         either the queue is null, or the queue has DispatchIdle set to
22453         true.
22454         (DoEvents): set queue.DispatchIdle to false around the
22455         peek/translate/dispatch message loop in this method.  This keeps
22456         Application.Doevents from emitting idle events.  Part of the fix
22457         for #78823.
22458
22459 2006-09-11  Chris Toshok  <toshok@ximian.com>
22460
22461         * DataGrid.cs (set_DataSource): make this work for both the
22462         winforms/datagrid test and ReportBuilder.  It seems as though when
22463         we've created a ListManager (or maybe it's if we have a
22464         BindingContext?), when we set the DataSource it clears the
22465         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
22466         #79333.
22467
22468 2006-09-11  Chris Toshok  <toshok@ximian.com>
22469
22470         * XplatUIX11.cs: deal with queue being null, which happens in all
22471         the Clipboard functions.  Fixes one of the two problems mentioned
22472         in #78612.
22473
22474 2006-09-11  Chris Toshok  <toshok@ximian.com>
22475
22476         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
22477         button on various spots (including outside the menu) works closer
22478         to MS, and doesn't crash.  Fixes #79343.
22479
22480 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
22481
22482         * ListView.cs: Do not initialize item_sorter in init. To match MS,
22483         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
22484         and the internal comparer is set. When a new ListViewItemSorter is set,
22485         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
22486         was specified. No further processing is necessary if SortOrder is set
22487         to it's current value. If Sorting is modified to None, and View is
22488         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
22489         (either custom or our internal ItemComparer) to null, on 1.0 profile
22490         only set item_sorter to null if its our internal IComparer. If Sorting
22491         is modified to Ascending or Descending, then use our internal IComparer
22492         if none is set, and if the current IComparer is our internal one then:
22493         on 2.0 profile always replace it with one for new Sorting, and on 1.0
22494         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
22495         Enum.IsDefined to verify whether a valid View value is specified in
22496         its setter. Automatically sort listview items when listview is
22497         created. In Sort, do nothing if ListView is not yet created, or if
22498         no item_sorter is set (no Sorting was set, Sorting was explicitly set
22499         to None or ListViewItemSorter was set to null). Added Sort overload
22500         taking a bool to indicate whether the ListView should be redrawn when
22501         items are sorted (we use this in ListViewItemCollection to avoid double
22502         redraws). Modified our internal IComparer to take the sort order into
22503         account. In Add and AddRange methods of ListViewItemCollection, also
22504         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
22505         view), but use overload with noredraw option to avoid double redraw.
22506         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
22507         true when View is Tile, and do the same when attempting to set View to
22508         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
22509         for selected/checked indices, as it involves overhead when sorting is
22510         done while these collections are not used all that often. Instead
22511         we'll build the indices on demand. Modified IList implementation of
22512         CheckedIndexCollection to use public methods if object is int.
22513         Modified CheckedListViewItemCollection to hide checked items if
22514         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
22515         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
22516         IList implementation in SelectedIndexCollection to use public methods
22517         if object is int. Modified SelectedListViewItemCollection to hide
22518         selected items if listview is not yet created.
22519         * ListViewItem.cs: CheckedIndices list no longer needs to be
22520         maintained separately (see ListView changes). Also clone font, fixes
22521         test failure.
22522
22523 2006-09-11  Mike Kestner  <mkestner@novell.com>
22524
22525         * ComboBox.cs: if we are updating the contents of the currently
22526         selected index, refresh the control or the textbox selection.
22527         [Fixes #79066]
22528
22529 2006-09-11  Mike Kestner  <mkestner@novell.com>
22530
22531         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
22532         the 'specified' logic has been moved there.  This seems like a bug 
22533         in Control.cs, since our current SetBoundsCore completely ignores 
22534         the specified parameter.  Peter's commit seems to indicate that is 
22535         the way the MS control implementation works.  [Fixes #79325]
22536
22537 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
22538
22539         * XplatUI.cs: Set default_class_name to be composed
22540         of current domain id. This allows MWF to be loaded in multiple
22541         domains on Win32.
22542
22543 2006-09-09  Miguel de Icaza  <miguel@novell.com>
22544
22545         * X11Keyboard.cs: If we are unable to obtain the input method, do
22546         not call CreateXic to create the input context.   Should fix
22547         #78944/79276.
22548
22549 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
22550
22551         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
22552           Simplified gnome support by adding more pinvokes to get the
22553           icon for a file or mime type.
22554
22555 2006-09-08  Jackson Harper  <jackson@ximian.com>
22556
22557         * MenuAPI.cs: Deslect popup context menu items before closing the
22558         window, so that you don't see the previously selected item
22559         selected when you reopen the menu.
22560         * TextControl.cs: Update the cursor position even if we don't have
22561         focus.  This fixes typing in things like the ComboBox.  I'm not
22562         totally sure we should always set the visibility if we don't have
22563         focus, but couldn't find any corner cases where the cursor showed
22564         up when it shouldn't.
22565
22566 2006-09-08  Chris Toshok  <toshok@ximian.com>
22567
22568         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
22569         our arrays are length 256.  & 0xff before indexing.  Fixes the
22570         crash in bug #78077.
22571         
22572 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22573
22574         * ThemeWin32Classic.cs: 
22575         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
22576         is true. Handle that check box too.
22577
22578 2006-09-07  Chris Toshok  <toshok@ximian.com>
22579
22580         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
22581         79244.
22582
22583 2006-09-07  Chris Toshok  <toshok@ximian.com>
22584
22585         * Control.cs: in set_BackColor only do the work if
22586         background_color != value.
22587
22588         * XplatUIX11.cs: move the clearing of invalid areas (both client
22589         and nc) to the same block of code where we set (nc_)expose_pending
22590         to false.  That is, move it from PaintEventEnd to PaintEventStart,
22591         so things that cause invalidates from within OnPaint will trigger
22592         another call to OnPaint.  Fixes bug #79262.
22593
22594 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
22595
22596         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
22597         * FileDialog.cs: Fix typo
22598
22599 2006-09-07  Jackson Harper  <jackson@ximian.com>
22600
22601         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
22602         for tab pages if they have any.
22603
22604 2006-09-06  Mike Kestner  <mkestner@novell.com>
22605
22606         * Splitter.cs: use the "current" rect when finishing drag handle
22607         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
22608
22609 2006-09-06  Mike Kestner  <mkestner@novell.com>
22610
22611         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
22612         support offset splitters. [Fixes #79298]
22613
22614 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
22615
22616         * Mime.cs: Fixed a bug that could override the global mime type
22617           result.
22618
22619 2006-09-05  Jackson Harper  <jackson@ximian.com>
22620
22621         * TabControl.cs: Better calculation method for setting the slider
22622         pos. Prevents crashes on really wide tabs.
22623         - Draw Image on tab pages if an image list is used.
22624
22625 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22626
22627         * MonthCalendar.cs: When Font changes, the Size should be
22628         updated to fit the new font's space requirements.
22629
22630 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
22631
22632         * ListBox.cs: If the items are cleared with Items.Clear set
22633           top_index to 0.
22634
22635 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22636
22637         * MonthCalendar.cs: Handle arrow keys as input keys. Also
22638         fire DateChanged event instead of DateSelected event when
22639         the date was changed by keyboard interaction.
22640
22641 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22642
22643         * DateTimePicker.cs: Handle DateChanged for the associated
22644         month_calendar control, and set month_calendar.Font from 
22645         OnFontChanged method, as well as resize the height of the
22646         control when needed. Make PreferredHeight proportional.
22647
22648 2006-09-01  Chris Toshok  <toshok@ximian.com>
22649
22650         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
22651         properties.
22652
22653         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
22654
22655 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
22656
22657         * FileDialog.cs: Set ClientSize instead of window size, to allow space
22658           for decorations (Fixes #79219)
22659
22660 2006-09-01  Mike Kestner  <mkestner@novell.com>
22661
22662         * ComboBox.cs: first stab at sorting plus some selection handling
22663         fixes to bring us more in line with MS behavior.  Also switches back
22664         to index based selection.  Alternative patches for index-based 
22665         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
22666         and latency@gmx.de on bug 78848.  I assume they were similar to this
22667         code I've had simmering in my tree forever.
22668         [Fixes #78848]
22669
22670 2006-09-01  Chris Toshok  <toshok@ximian.com>
22671
22672         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
22673         when setting list position guard against ending up with a -1 index
22674         (the other part of the fix for #78812).  Should probably make sure
22675         we don't need the analogous fix in the ItemDeleted case.
22676
22677         * DataGrid.cs:
22678         - in SetDataSource, work around the fact that the way
22679         OnBindingContextChanged is invoked will cause us to re-enter this
22680         method.  I'll remove the hack once I investigate
22681         OnBindingContextChanged.
22682
22683         - fix the logic in set_DataSource and set_DataMember (basically
22684         what to do if the other of the two is null.)
22685         
22686         - in OnListManagerItemChanged, we need to take into account the
22687         edit row when deciding whether or not to call RecreateDataGridRows
22688         (part of the fix for #78812).
22689
22690 2006-09-01  Jackson Harper  <jackson@ximian.com>
22691
22692         * Splitter.cs: Don't do anything if there is no control to affect
22693         (prevents us from crashing in weird tet cases).
22694         * TreeView.cs: Bounding box for the mouse movement reverting
22695         focus/selection back to previously selected node.  This matches
22696         MS, and makes the tree a lot more useable.
22697         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
22698         use clipping so they are not drawn.  This fixes when the control
22699         is set to have a transparent background, or if it was over an
22700         image.
22701
22702 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
22703
22704         * MimeIcon.cs: Improved handling for reading default icons when
22705           using gnome (2.16 made it necessary). Check and read svg icons
22706           first, then 48x48 and then 32x32 icons.
22707
22708 2006-08-31  Chris Toshok  <toshok@ximian.com>
22709
22710         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
22711         visible.
22712
22713         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
22714         ProcessKeyPreview.  Fixes part of #77806.
22715
22716         * DataGrid.cs: big patch.
22717
22718         - revert the queueing up of DataSource/DataMember if inside
22719         BeginInit/EndInit calls.  That's not the way the datagrid achieves
22720         its delayed databinding.  Instead, call SetDataSource in
22721         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
22722         #78811.
22723
22724         - Also, it wasn't mentioned in #78811, but the test case exhibits
22725         behavior that was lacking in our datagrid implementation - Columns
22726         that have mapping names that don't exist in the datasource's
22727         properties aren't shown.  Yuck.  To fix this I added the bound
22728         field to the column style, and basically any calculation to figure
22729         out anything about columns uses a loop to find the bound columns.
22730         still need to investigate if I can cache an array of the bound
22731         columns or if the indices must be the same.
22732
22733         - When setting CurrentCell, we no longer abort if the cell being
22734         edited was in the add row.  This fixes the other part of #77806.
22735
22736         - The new code also fixes #78807.
22737         
22738         * ThemeWin32Classic.cs: perpetrate the same disgusting
22739         column.bound field hack, and only render bound fields.
22740
22741 2006-08-31  Chris Toshok  <toshok@ximian.com>
22742
22743         * DataGridColumnStyle.cs: add bound field.  this field is true if
22744         the datasource has a property corresponding to the mapping name.
22745
22746         * DataGridTableStyle.cs: set the bound field on the column styles
22747         depending on whether or not we have a column for that property.
22748
22749 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
22750
22751         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
22752           splitter control (fixes #79228)
22753
22754 2006-08-31  Chris Toshok  <toshok@ximian.com>
22755
22756         * DataGridColumnStyle.cs: we need to delay the assignment of
22757         property descriptor until the last possible moment due to the lazy
22758         databinding stuff in the datagrid.  Also, fix the exceptions
22759         thrown by CheckValidDataSource to match MS.
22760
22761 2006-08-31  Jackson Harper  <jackson@ximian.com>
22762
22763         * Form.cs: When activated select the active control, if there is
22764         no active control, we select the first control.
22765         * XplatUIX11.cs: If there is no focus control when we get a
22766         FocusIn event, find the toplevel form and activate it.  This
22767         occurs when you popup a window, it becomes the focus window, then
22768         you close that window, giving focus back to the main window.
22769
22770 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22771
22772         * MonthCalendar.cs: 
22773         * ThemeWin32Classic.cs: Cache Font in bold style, as well
22774         as StringFormat with Center alignments in MonthCalendar,
22775         instead of creating new ones when drawing the control. 
22776         Also, draw the month name in bold style.
22777
22778 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
22779
22780         * Control.cs:
22781           - PerformLayout(): It would seem MS performs the fill even if the 
22782             control is not visible (part of #79218 fix)
22783           - ResetBackColor(): Use the setter to reset the color, to allow
22784             overriders to catch the change.
22785         * Form.cs:
22786           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
22787           - CreateHandle(): dito (part of $79218 fix)
22788           - Don't set an icon if we have a dialog
22789         * ScrollableControl.cs:
22790           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
22791           - ScrollIntoView(): No need to scroll if control is already visible
22792             (resolves fixme and fixes #79218)
22793
22794 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22795
22796         * MonthCalendar.cs: Change proportions in SingleMonthSize
22797         to match the aspect of the original control.
22798
22799 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
22800
22801         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
22802           get updated when they get maximized.
22803
22804 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
22805
22806         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
22807
22808 2006-08-29  Chris Toshok  <toshok@ximian.com>
22809
22810         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
22811
22812 2006-08-29  Jackson Harper  <jackson@ximian.com>
22813
22814         * TreeView.cs: Need to track selected node and highlighted node,
22815         they aren't always the same thing, when the mouse is down on a
22816         node it is hilighted, but not selected yet.
22817         - Do the HideSelection stuff right
22818         - Need to focus on rbutton mouse down. And redraw selection when
22819         right click is mouse upped.
22820
22821 2006-08-29  Mike Kestner  <mkestner@novell.com>
22822
22823         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
22824         when SubItems.Count < Columns.Count.  [Fixes #79167]
22825
22826 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
22827
22828         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
22829
22830 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
22831
22832         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
22833           from X. Only send based on ConfigureNotify if we don't have the
22834           correct location in hwnd (if the window manager moved us)
22835
22836 2006-08-28  Mike Kestner  <mkestner@novell.com>
22837
22838         * ListView.cs: remove a TODO. 
22839         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
22840         [Fixes ListView part of #79166]
22841
22842 2006-08-28  Mike Kestner  <mkestner@novell.com>
22843
22844         * ListView.cs: move wheel handler to parent since it is focused
22845         instead of the item_control now.  [Fixes #79177]
22846
22847 2006-08-28  Mike Kestner  <mkestner@novell.com>
22848
22849         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
22850         when the control is focused. [Fixes #79171]
22851
22852 2006-08-28  Mike Kestner  <mkestner@novell.com>
22853
22854         * ListView.cs: size the item and header controls for empty and
22855         unscrollable views.
22856         * ThemeWin32Classic.cs: draw disabled backgrounds.
22857         [Fixes #79187]
22858
22859 2006-08-28  Chris Toshok  <toshok@ximian.com>
22860
22861         * Form.cs: remove unused "active_form" static field.
22862
22863         * Hwnd.cs: lock around accesses to static windows collection.
22864
22865         * Application.cs: lock threads in Exit ().
22866
22867 2006-08-28  Chris Toshok  <toshok@ximian.com>
22868
22869         * NativeWindow.cs: lock around accesses to window_collection.
22870         
22871 2006-08-28  Chris Toshok  <toshok@ximian.com>
22872
22873         * Control.cs: err, fix this the right way, by locking on controls
22874         when using it.  not by making it synchronized.
22875
22876 2006-08-28  Chris Toshok  <toshok@ximian.com>
22877
22878         * Control.cs: make the static "controls" field synchronized, as it
22879         gets updated from multiple threads.
22880
22881 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
22882
22883         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
22884           Prevent other threads from exiting when calling thread sets quit state.
22885         * XEventQueue.cs: Added PostQuitState property
22886
22887 2006-08-27  Chris Toshok  <toshok@ximian.com>
22888
22889         * AsyncMethodData.cs: add a slot for the window handle.
22890
22891         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
22892         window (the destination control's window, not the foster window).
22893
22894         * Control.cs (BeginInvokeInternal): store the window's handle in
22895         the AsyncMethodData.
22896         
22897
22898 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
22899
22900         * XplatUIX11.cs:
22901           - PostQuitMessage: Removed resetting S.D display handle, we might have
22902             another loop started after calling PostQuitMessage (Fixes #79119)
22903           - Created destructor to reset S.D handle
22904
22905 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
22906
22907         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
22908
22909 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22910
22911         * TextControl.cs (Insert): Update the caret position even if we don't
22912           have a handle yet, just don't call the driver in that case.
22913         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
22914           to the end of the new selection text (Fixes #79184)
22915
22916 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22917
22918         * Form.cs (Activate): Only activate if the handle is created)
22919         * Control.c:
22920           - Mark window as invisible when it's disposed
22921           - Check if window handle is created when setting window visible, 
22922             instead of relying just on the is_created variable
22923           - Check if object is disposed when creating the control (Fixes #79155)
22924
22925 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22926
22927         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
22928           when allowing layout again. Otherwise we re-generate the anchoring 
22929           distance to the border again and actually alter what the user wanted
22930           This is ugly, it'd be better if we used DisplayRectangle instead of
22931           ClientRectangle for Control.UpdateDistances, but that causes us to
22932           have other problems (initial anchoring positons would be wrong)
22933           (Fixes #78835)
22934
22935 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22936
22937         * Control.cs:
22938           - The size and location setters shouldn't go directly to 
22939             SetBoundsCore, but to SetBounds, which triggers layout on the
22940             parent, then calls SetBoundsCore. (Related to fix for #78835)
22941           - SetBounds: Moved actual location update code into this function
22942             from SetBoundsCore, to match MS. Added call to PerformLayout if
22943             we have a parent (to trigger resizing of anchored parents if the 
22944             child size has changed (see testcase for #78835) 
22945         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
22946           new control code
22947         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
22948
22949 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22950
22951         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
22952           System.Drawing when a toplevel window gets closed; there might
22953           be other toplevel windows belonging to the same app (Fixes #78052)
22954
22955 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
22956
22957         * FileDialog.cs: After reading FileDialog settings from mwf_config
22958           use Desktop prefix only if a real folder doesn't exist anymore.
22959         * FontDialog.cs: Added char sets.
22960           It is now possible to select the font, size or style with the
22961           textboxes.
22962
22963 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
22964
22965         * PrintPreviewDialog.cs: Use assembly name constants.
22966
22967 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22968
22969         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
22970           scrollbar from whacking it's buttons)
22971
22972 2006-08-24  Chris Toshok  <toshok@ximian.com>
22973
22974         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
22975         in this patch (aggregating setting Left/Top/Width/Height to
22976         setting Bounds on the scrollbars), but the crux of the fix is in
22977         Recalculate, where we scroll by the remaining scroll_position if
22978         we're hiding a scrollbar.  The 2*$5 reward in the comment is
22979         serious.
22980
22981 2006-08-24  Jackson Harper  <jackson@ximian.com>
22982
22983         * MdiClient.cs:
22984         * MdiWindowManager.cs: If the form is made a non-mdi window we
22985         need to remove the form closed event so that closing forms works
22986         correctly.
22987
22988 2006-08-24  Jackson Harper  <jackson@ximian.com>
22989
22990         * Control.cs: Make IsRecreating internal so that the driver can
22991         check it
22992         - Temporarily remove the Hide when controls are removed, its
22993         making a whole bunch of things not work because visibility isn't
22994         getting reset elsewhere correctly
22995         * Form.cs: Need to do a full handle recreation when the mdi parent
22996         is set.
22997         * XplatUIX11.cs: If we are recreating handles don't dispose the
22998         HWNDs.  What was happening is the handles were being recreated in
22999         SendWMDestroyMessages, but then flow continued on in that method
23000         and destroyed the new handles.
23001
23002 2006-08-23  Jackson Harper  <jackson@ximian.com>
23003
23004         * Form.cs: MdiClient is always at the back of the bus
23005         * Control.cs: When the order of items in the collection is changed
23006         we need to reset the all_controls array
23007         - do the same sorta setup thats done when adding a control when a
23008         control is set on the collection.
23009
23010 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23011
23012         * TextBoxBase.cs (get_Text): Return an empty array if our document
23013           is empty (fixes #79052)
23014
23015 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23016
23017         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23018           on WM_SYSCHAR messages (fixes #79053)
23019
23020 2006-08-23  Chris Toshok  <toshok@ximian.com>
23021
23022         * DataGrid.cs: fix flickering when scrolling vertically.
23023
23024 2006-08-23  Chris Toshok  <toshok@ximian.com>
23025
23026         * DataGrid.cs (EndEdit): only invalidate the row header when we
23027         need to.
23028
23029 2006-08-23  Chris Toshok  <toshok@ximian.com>
23030
23031         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23032         methods.  fixes the flicker when scrolling around.
23033
23034 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23035
23036         * FileDialog.cs: Making sure the control is created before we get a 
23037           chance to use it with BeginInvoke (Fixes #79096)
23038
23039 2006-08-23  Chris Toshok  <toshok@ximian.com>
23040
23041         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23042         width to use when painting the rows.
23043
23044 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23045
23046         * TextBoxBase.cs:
23047           - Throw ArgumentException if a negative value is passed to SelectionLength
23048           - Update the selection end if start is moved. end needs to be always
23049             after start. (Fixes #79095)
23050           - Track selection length; MS keeps the selection length even if start
23051             is changed; reset on all other operations affection selection
23052
23053 2006-08-22  Jackson Harper  <jackson@ximian.com>
23054
23055         * TreeView.cs: Make sure both scrollbars get displayed and sized
23056         correctly when the other bar is visible.
23057         - Use the original clip rectangle for checking if the area between
23058         the two scrollbars is visible, not the viewport adjusted clipping
23059         rectangle.
23060
23061 2006-08-22  Jackson Harper  <jackson@ximian.com>
23062
23063         * Binding.cs: We don't use IsBinding because it requires the
23064         control to be created, which really shouldn't be necessary just to
23065         set a property on the control.
23066
23067 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23068
23069         * ComboBox.cs: Some CB.ObjectCollection methods must throw
23070         ArgumentNullReferenceException when the argument is null.
23071
23072 2006-08-21  Jackson Harper  <jackson@ximian.com>
23073
23074         * Timer.cs: Track the thread that the timer is started in (NOT
23075         CREATED), this way messages for it will only be triggered on its
23076         queue.
23077         * XEventQueue.cs: Track the timers here, this makes timers per
23078         thread, like MS.
23079         * XplatUIX11.cs: The timers are moved to the XEventQueue.
23080
23081 2006-08-19  Chris Toshok  <toshok@ximian.com>
23082
23083         * XplatUIX11.cs: after further communication with pdb, we get the
23084         best of both worlds.  SetZOrder working for un-Mapped windows, and
23085         no X errors for un-mapped windows.
23086
23087 2006-08-19  Chris Toshok  <toshok@ximian.com>
23088
23089         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23090         as it was causing pdn toolbars to not have the correct stacking.
23091
23092 2006-08-18  Mike Kestner  <mkestner@novell.com> 
23093
23094         * ListView.cs : guard against negative ClientArea.Width in scrollbar
23095         calculation.  Not sure why control should ever be setting a negative
23096         width though.  Fixes #78931.
23097
23098 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23099
23100         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
23101         null items in ObjectCollection class.
23102         * ListBox.cs.: Likewise.
23103
23104 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
23105
23106         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
23107           as the base method in ThemeWin32Classic should work fine.
23108           Fixed bug #78607.
23109
23110 2006-08-18  Jackson Harper  <jackson@ximian.com>
23111
23112         * Binding.cs: When validating if the value entered doesn't convert
23113         properly reset to the old value.
23114         * RadioButton.cs: Don't fire click when we get focus.
23115
23116 2006-08-18  Jackson Harper  <jackson@ximian.com>
23117
23118         * FileDialog.cs: Paint the selection on the directory combobox the
23119         same way as on MS. 
23120
23121 2006-08-17  Jackson Harper  <jackson@ximian.com>
23122
23123         * ErrorProvider.cs: Don't allow the error control to be selected.
23124         * Control.cs: Don't send the SetFocus messages, the control
23125         activation will do this, and if we do it blindly here validation
23126         does not work.
23127
23128 2006-08-17  Jackson Harper  <jackson@ximian.com>
23129
23130         * Control.cs:
23131         * ContainerControl.cs: Make validation events fire in the correct
23132         order.  TODO: For some reason the first validation event is not
23133         getting fired.
23134
23135 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23136
23137         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
23138
23139 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23140
23141         * ComboBox.cs : implement scroll wheel support for popped-down
23142         state. Fixes #78945. 
23143
23144 2006-08-17  Jackson Harper  <jackson@ximian.com>
23145
23146         * TreeView.cs: Specify treeview actions (old patch that didn't get
23147         committed for some reason).
23148         - Don't let the mouse wheel scroll us too far.  Just want to make
23149         the bottom node visible, not scroll it all the ways to the top.
23150
23151 2006-08-17  Jackson Harper  <jackson@ximian.com>
23152
23153         * XplatUIX11.cs: Mouse wheel events go to the focused window.
23154
23155 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23156
23157         * ComboBox.cs : don't do mouseover selection in simple mode.
23158
23159 2006-08-16  Jackson Harper  <jackson@ximian.com>
23160
23161         * Form.cs: Fire the closing events for all the mdi child windows
23162         when a window is closed.  If the cancel args are set to true, the
23163         main window still gets the event fired, but it doesn't not close.
23164         * MdiWindowManager.cs: Do this closing cleanup in a Closed
23165         handler, instead of when the button is clicked, so cancelling the
23166         close works correctly.
23167         * ComboBox.cs: Send the mouse down to the scrollbar.
23168
23169 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23170
23171         * ListBox.cs: When passing 'null' to SelectedItem,
23172         set SelectedIndex to -1, to unselect items. This is the
23173         observed behaviour in .Net.
23174
23175 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
23176
23177         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
23178           MS flags saying there won't be any. (fixes #78800)
23179         * Control.cs (HandleClick): Made virtual
23180
23181 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
23182
23183         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
23184           cultures. Fixed bug #78399.
23185
23186 2006-08-16  Jackson Harper  <jackson@ximian.com>
23187
23188         * Form.cs: Use the MdiClients MdiChildren property to access
23189         MdiChildren instead of creating the array from the child controls.
23190         * MdiClient.cs: Maintain a separate array of the mdi children, so
23191         that insertion order is maintained when the Z-order is changed.
23192
23193 2006-08-16  Mike Kestner  <mkestner@novell.com> 
23194
23195         * ListView.cs : add an ItemComparer and default to it for sorting.
23196         Fixes #79076, but sorting needs a complete overhaul to be compat with
23197         MS.
23198
23199 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23200
23201         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
23202
23203 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23204
23205         * Hwnd.cs (Mapped): Properly traverse the tree
23206
23207 2006-08-15  Chris Toshok  <toshok@ximian.com>
23208
23209         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
23210         pass manager.Current.GetType() to ParseData.  It has to be the
23211         property type.  So, hold off doing the ParseData until we're in
23212         SetPropertyValue where we know the type.  This fixes the crash in
23213         #78821 but the textbox is still empty.
23214
23215 2006-08-15  Chris Toshok  <toshok@ximian.com>
23216
23217         * DataGrid.cs:
23218         - when we're scrolling, only call Edit() again if the
23219         current cell is still unobscured. Fixes bug #78927.
23220         - when handling mousedown on a cell, ensure the cell is visible
23221         before calling Edit.
23222         - remove the properties from DataGridRow, and remove the
23223         DataGridParentRow class altogether.
23224         
23225
23226 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23227
23228         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
23229           fire OnTextChanged by ourselves. There's no point calling base,
23230           we don't set the base value anywhere else. Fixes #78773.
23231
23232 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23233
23234         * ListBox.cs: Call CollectionChanged when modifying
23235         an item from Items indexer, to update the actual items
23236         in the list box.
23237
23238 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23239
23240         * PrintDialog.cs: Small fixes for focus and a pair of checks,
23241         to match .Net behaviour.
23242
23243 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23244
23245         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
23246
23247 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23248
23249         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
23250
23251 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23252
23253         * MessageBox.cs: Prevent potential NRE exception.
23254         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
23255
23256 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
23257
23258         * MessageBox.cs: Calculate the owner of a messagebox, also make
23259           it topmost. Fixes #78753
23260
23261 2006-08-14  Chris Toshok  <toshok@ximian.com>
23262
23263         * XplatUIX11.cs: A couple of fixes so that metacity will let us
23264         programmatically move windows.  first, set the PPosition hint as
23265         well as the USPosition hint.  Second include some code from pdb
23266         that sets the window type to NORMAL when we set the transient for
23267         hint.  This is because, in the absence of a window type, metacity
23268         thinks any window with TransientFor set is a dialog, and refuses
23269         to let us move it programmatically.  fascists.
23270
23271 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
23272
23273         * XplatUIX11.cs: When setting normal hints, take into consideration
23274           an different hints previously set so we don't delete them (fixes #78866)
23275
23276 2006-08-12  Chris Toshok  <toshok@ximian.com>
23277
23278         * ToolBarButton.cs: make Layout return a boolean, if something to
23279         do with the button's layout changed.
23280
23281         * ToolBar.cs:
23282         - add another parameter to Redraw, @force, which all existing
23283           calls set to true.
23284         - make the Layout function return a boolean which is true if the
23285           layout has actually changed.  Redraw now uses this (and @force)
23286           to determine when to invalidate.  At present the only place
23287           where @force can be false is the call from OnResize, when
23288           background_image == null.  So, resizing a toolbar when the
23289           layout doesn't change results in no drawing.
23290
23291 2006-08-12  Chris Toshok  <toshok@ximian.com>
23292
23293         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
23294         the VScrollBar and HScrollbar reversed.  oops.
23295
23296         * DataGrid.cs: fix the logic that assigns sizes to the implicit
23297         scrollbars.  we were assigning them twice (once in
23298         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
23299         therefore causing two scrollbar resizes (and redraws?) to happen
23300         per grid resize.
23301
23302 2006-08-12  Chris Toshok  <toshok@ximian.com>
23303
23304         * ToolBarButton.cs: redraw the entire button if the theme tells us
23305         to.
23306
23307         * Theme.cs: add ToolBarInvalidateEntireButton.
23308
23309         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
23310         buttons, just the border.
23311
23312         * ThemeNice.cs: redraw the entire toolbar button since we need to
23313         draw the highlight image.
23314
23315         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
23316         we need to redraw the entire button (not just the border).
23317
23318 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
23319
23320         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
23321           for vertical bars. Fixes the mismatches shown by #78513
23322
23323 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
23324
23325         * FileDialog.cs: If a saved/remembered path doesn't exist
23326           anymore, fall back to "Desktop".
23327
23328 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
23329
23330         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
23331           parent. It's apparently legal to not have one
23332         * XplatUIX11.cs:
23333           - SetZOrder: Don't try to set Z-Order on an unmapped window
23334           - CreateWindow: 0,0 are legal coordinates for a window. don't move
23335             it unless the coordinates are negative
23336
23337 2006-08-10  Mike Kestner  <mkestner@novell.com>
23338
23339         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
23340         when setting to null per msdn docs.  Fixes #78854.
23341
23342 2006-08-10  Chris Toshok  <toshok@ximian.com>
23343
23344         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
23345         flickering by setting a clip rectangle on the Graphics when we
23346         need to redraw just a particular menuitem.  Also, rename "OnClick"
23347         to "OnMouseDown" to reflect what it actually is.
23348         
23349         * Form.cs: track the OnMouseDown change.
23350
23351 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
23352
23353         * CommonDialog.cs: Properly inherit the CreateParams from the form
23354           and only change what we need. Fixes #78865
23355
23356 2006-08-10  Chris Toshok  <toshok@ximian.com>
23357
23358         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
23359         flickering in flat mode (and most of the flickering in general) by
23360         only invalidating the button border (and not the entire rectangle)
23361         when the state changes.  A couple of cases still flicker:
23362         ToggleButtons, and the dropdown arrow case when the user mouse
23363         ups.
23364
23365 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
23366
23367         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
23368           for german keyboards. Numlock state shouldn't affect the behaviour
23369           of the Del key. Fixes bug #78291.
23370
23371 2006-08-10  Chris Toshok  <toshok@ximian.com>
23372
23373         * ListControl.cs: remove the items.Clear line from BindDataItems,
23374         as this is the first thing done by both subclasses in their
23375         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
23376         passed -1, refresh the list.  This gets databinding working when
23377         the datasource is set on the list before the datasource is
23378         populated (as in wf-apps/ReportBuilder.)
23379
23380         * ComboBox.cs: remove the argument to BindDataItems.  This call
23381         should really go away, and be initiated by the ListControl code.
23382
23383         * ListBox.cs: same.
23384
23385 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
23386
23387         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
23388           if no data is in the document when the control is displayed
23389
23390 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
23391
23392         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
23393           yes (fixes #78806)
23394         * TextControl.cs: 
23395           - PositionCaret: Allow positioning of caret but don't call methods 
23396             requiring a handle if the window isn't created yet
23397           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
23398           - owner_HandleCreated: Don't position the caret, just update it's 
23399             location. User might have already set a different position
23400
23401 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
23402
23403         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
23404           windows. Screws up the returned coordinates for child windows. 
23405           Fixes #78825. I'm hoping this doesn't break something, since the
23406           code was explicitly put in 8 months ago, but no bug was attached.
23407           Menus still seem to work properly.
23408
23409 2006-08-08  Chris Toshok  <toshok@ximian.com>
23410
23411         * DataGrid.cs: make BeginInit/EndInit actually do what they're
23412         supposed to do - delay data binding until the EndInit call.  Also,
23413         make the table style collection's CollectionChangeAction.Refresh
23414         work properly.
23415
23416         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
23417         (with action = Refresh) when a consituent table's MappingName is
23418         changed.
23419
23420 2006-08-08  Chris Toshok  <toshok@ximian.com>
23421
23422         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
23423         Invalidate, since changing the text can change the size of the all
23424         toolbar buttons.
23425
23426 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
23427
23428         * Form.cs (AddOwnedForm): Still need to add the form to our listif
23429           we don't have it yet
23430
23431 2006-08-08  Chris Toshok  <toshok@ximian.com>
23432
23433         * PrintControllerWithStatusDialog.cs: don't .Close() the status
23434         dialog, as this causes X errors later on, since we actually
23435         destroy the window.  Instead, .Hide() it.
23436
23437 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
23438
23439         * ComboBox.cs: Added focus reflection for popup window
23440         * XplatUIX11.cs: 
23441           - Removed transient setting for non-app windows for now, not sure it
23442             was needed
23443           - Fixed logic checking if we have captions when deciding 
23444             override_redirect, WS_CAPTION is two bits and a 0 check was not
23445             sufficient
23446           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
23447             complicated
23448         * Form.cs: 
23449           - AddOwnedForm: Don't just add the form to the list, call the property
23450             to ensure the driver is informed about the ownership as well
23451           - CreateHandle: Set the TopMost status in the driver if we have an owner
23452         * XplatUI.cs: Fixed debug statement
23453
23454 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
23455         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23456           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
23457           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
23458           TrackBarRenderer.cs: Make constructor private.
23459         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
23460         * ProfessionalColorTable.cs: Make properties virtual.
23461
23462 2006-08-06  Duncan Mak  <duncan@novell.com>
23463
23464         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
23465         is not changing.
23466
23467 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23468         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23469           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
23470           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
23471           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
23472           Initial import of new 2.0 classes.
23473
23474 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23475         * Application.cs: Add 2.0 VisualStyles properties.
23476
23477 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23478         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23479           XplatUIX11.cs: Create property to allow access to existing private
23480           variable "themes_enabled"
23481
23482 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23483
23484         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
23485         file size, as otherwise our class libraries fail using windows. Fixes
23486         bug #78759.
23487
23488 2006-08-04  Jackson Harper  <jackson@ximian.com>
23489
23490         * Form.cs:
23491         * XplatUIX11.cs: Move the toolwindow window manager creation into
23492         the X11 driver, this way on win32 we can let windows create/handle
23493         the toolwindows.
23494
23495 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23496
23497         * PrintDialog.cs: Remove some redundant checks, add some others,
23498         clean some code, and move the focus to the text boxes when the
23499         values are incorrect.
23500
23501 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
23502
23503         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
23504
23505 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
23506
23507         * NumericUpDown.cs: Setting the Minimum and Maximum is now
23508           handled correctly. Fixes bug #79001.
23509
23510 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23511
23512         * PrintDialog.cs: The "Copies" numeric up down must have
23513         set the Minimum property to 1; only if the value is bigger
23514         than 1, activate "Collate" check box. This is the behaviour of .Net.
23515         Also modify the Document elements only if it is not null.
23516
23517 2006-08-03  Jackson Harper  <jackson@ximian.com>
23518
23519         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
23520         length. (We have a larger array then actual node count).
23521                 
23522 2006-08-03  Jackson Harper  <jackson@ximian.com>
23523
23524         * ComboBox.cs: Don't show selection by default.
23525         - The SelectAll isn't needed here, since the focus code should do
23526         that
23527         - DDL style lists to manual selection drawing, so when they
23528         get/lose focus they have to invalidate.
23529
23530 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
23531
23532         * TextBoxBase.cs: Don't always show all selections by default.
23533
23534 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
23535         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
23536           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
23537           Fixed various typos.
23538
23539 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
23540
23541         * Control.cs: Removing the controls in a ControlCollection with
23542           Clear now hides the controls as expected. Fixes bug #78804. 
23543
23544 2006-08-03  Jackson Harper  <jackson@ximian.com>
23545
23546         * Control.cs: Revert previous focus patch, it breaks reflector.
23547
23548 2006-08-03  Jackson Harper  <jackson@ximian.com>
23549
23550         * ComboBox.cs: Cleanup selection and focus with the combobox.
23551         This also eliminates some duplicated keyboard code, since now
23552         everything is handled by the main class.
23553         - Make list selection work on mouse up instead of down, to match
23554         MS.
23555
23556 2006-08-02  Jackson Harper  <jackson@ximian.com>
23557
23558         * Control.cs: Setting focus needs to go through the whole
23559         selection mechanism.
23560
23561 2006-08-02  Chris Toshok  <toshok@ximian.com>
23562
23563         * PrintPreviewDialog.cs: change MinimumSize to use
23564         base.MinimumSize so it works.
23565
23566 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
23567
23568         * TextControl.cs:
23569           - UpdateCaret: Added sanity check in case caret isn't defined yet
23570           - Line.Delete: Now updating selection and caret markers if we're
23571             transfering a node (Properly fixes #78323)
23572           - SetSelectionEnd: Added sanity check
23573         * TextBoxBase.cs: Removed broken attempt to fix #78323
23574
23575 2006-08-01  Chris Toshok  <toshok@ximian.com>
23576
23577         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
23578         Close() call is handled in Form, not here.
23579
23580 2006-08-01  Chris Toshok  <toshok@ximian.com>
23581
23582         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
23583         layout/rendering.
23584
23585         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
23586         for sizes < 100% zoom.  The code now aggressively attempts to keep
23587         from calling document.Print (), and tries not to use the scaling
23588         g.DrawImage whenever possible (it still does if you scale to >
23589         100%, since usually that involves huge images).
23590
23591         * PrintPreviewControl.cs: hook up the close button.
23592
23593 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
23594         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
23595           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
23596           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
23597           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
23598           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
23599           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
23600           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
23601           Removed [Serializable] for 2.0 Event Handlers.
23602
23603 2006-07-31  Jackson Harper  <jackson@ximian.com>
23604
23605         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
23606         * TextControl.cs: Uncomment out the body of this method.
23607
23608 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
23609
23610         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
23611           standard cursors.
23612
23613 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23614
23615         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
23616           that embed TextBox and need selections visible even if textbox is not
23617           focused to enforce that behaviour.
23618         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
23619           selection drawing
23620
23621 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23622
23623         * TextControl.cs:
23624           - Added new SetSelectionStart/SetSelectionEnd overloads
23625           - Fixed viewport width assignment to be accurate
23626           - Adjusted alignment line shift calculations to allow cursor on right
23627             aligned lines to be always visible at the right border (like MS)
23628         * TextBoxBase.cs:
23629           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
23630           - TextBoxBase_SizeChanged: recalculating canvas on size changes
23631           - CalculateScrollBars: Use ViewPort size instead of window size, to
23632             properly consider space occupied by the border and scrollbars 
23633             (Fixes #78661)
23634           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
23635             calculations; no longer leaves artifacts
23636           - CaretMoved: Adjusted window scrolling to match MS and fixed several
23637             calculation bugs (Still missing right/center align calculations)
23638
23639 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
23640
23641         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
23642           use of both scroll rect and clip rect, as they do the same.
23643
23644 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23645
23646         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
23647           in the event handler (fixes #78912)
23648
23649 2006-07-31  Chris Toshok  <toshok@ximian.com>
23650
23651         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
23652         grid.ListManager.Count, since grid.ListManager might be null.
23653         This of course begs the question "why are we drawing rows for a
23654         grid with no list manager (and therefor no rows)?"  Fixes the
23655         crash in bug #78929.
23656
23657 2006-07-31  Chris Toshok  <toshok@ximian.com>
23658
23659         * RelatedPropertyManager.cs: Don't always chain up to the parent
23660         ctor.  instead, call SetDataSource if the parent's position is !=
23661         -1.  Fixes the crash in #78822.
23662
23663 2006-07-31  Chris Toshok  <toshok@ximian.com>
23664
23665         * DataGrid.cs (get_ListManager): use field instead of property
23666         accessors for datasource and datamember.
23667         (RowsCount): make internal again.
23668         (OnMouseDown): end edits before resizing columns/rows.
23669         (OnMouseUp): restart edits after resizing columns/rows.
23670
23671 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
23672
23673         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
23674           This fixes the situation where the last set cursor is displayed
23675           whenever the mouse is over scrollbars.
23676
23677 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23678
23679         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
23680         Document properties, as well as initial values.
23681
23682 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
23683
23684         * XplatUIWin32.cs (SetBorderStyle): Setting both border
23685           and ClientEdge results in a 3-pixel border, which is
23686           wrong.
23687
23688 2006-07-28  Jackson Harper  <jackson@ximian.com>
23689
23690         * TreeNodeCollection.cs: Fix the clear method.
23691         - Fix the Shrink also
23692
23693 2006-07-27  Jackson Harper  <jackson@ximian.com>
23694
23695         * TreeView.cs: Make sure the visible order is computed when we
23696         attempt to size the scrollbars (for trees that mess with the
23697         scrolling when they shouldn't.
23698         - Make sure to give the scrollbars valid values.
23699
23700 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
23701
23702         * XplatUIX11.cs: Move motion compression code to where it
23703           has less performance impact
23704
23705 2006-07-26  Jackson Harper  <jackson@ximian.com>
23706
23707         * UpDownBase.cs: When the control is selected make the child
23708         controls non selectable, so that a click on them won't do a
23709         focus/unfocus cycle.
23710         - Don't give focus to the text box when the spinner is selected.
23711         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
23712
23713 2006-07-26  Chris Toshok  <toshok@ximian.com>
23714
23715         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
23716         satisfied with this solution.  If the bitmaps are small, we should
23717         just cache them in the PrintPreviewDialog and draw them here.
23718         Also, the layout is broken for the 2-up and 3-up cases.
23719
23720         * Theme.cs: add PrintPReviewControlPaint.
23721
23722         * PrintPreviewDialog.cs: first pass implementation.
23723
23724         * PrintPreviewControl.cs: first pass implementation.  No
23725         scrollbars yet.
23726
23727         * PrintDialog.cs: only validate fields if that particular portion
23728         of the UI is enabled.  Also, set the document's controller to a
23729         PrintControllerWithStatusDialog wrapping the document's print
23730         controller.
23731
23732         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
23733         bring up a SaveFileDialog (i hope we don't want to match the
23734         behavior of the crappy windows file entry) and set the
23735         PrinterSettings.PrintFileName accordingly.
23736
23737 2006-07-26  Jackson Harper  <jackson@ximian.com>
23738
23739         * ContainerControl.cs: Add a field that disables auto selecting
23740         the next control in a container when the container is activated.
23741         * UpDownBase.cs: Don't select the text box when the up down is
23742         selected.
23743
23744 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
23745
23746         * XEventQueue.cs: Added methods for peeking (used for compression
23747           of successive events)
23748         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
23749           mouse move events (fixes #78732)
23750
23751 2006-07-25  Jackson Harper  <jackson@ximian.com>
23752
23753         * UpDownBase.cs: Use an internal class for the textbox so that we
23754         can control focus.  the updown control should always have focus,
23755         if either the text area or the buttons are clicked.
23756         - Send the key messages to the textbox, since it never actually
23757         has focus
23758         - Activate and decativate the textbox caret.
23759
23760 2006-07-24  Jackson Harper  <jackson@ximian.com>
23761
23762         * Control.cs: Use the directed select when selecting a control,
23763         this way the container controls override will get called and the
23764         whole ActiveControl chain will get triggered.  TODO: probably need
23765         to make sure this gets done everywhere instead of the old
23766         Select(Control).
23767         * ContainerControl.cs: Implement the directed Select method to
23768         find and activate the correct child control.    
23769         
23770 2006-07-22  Mike Kestner  <mkestner@novell.com>
23771
23772         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
23773         menu handling code so that clicks without a grab work too.
23774         [Fixes #78914]
23775
23776 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
23777
23778         * FileDialog.cs: Enable the BackButton when dirstack has one element.
23779           Added some small optimizations.
23780
23781 2006-07-21  Matt Hargett  <matt@use.net>
23782
23783         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
23784
23785 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
23786
23787         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
23788           tests pass and match MS in some strange border cases.
23789
23790 2006-07-21  Chris Toshok  <toshok@ximian.com>
23791
23792         * ThemeWin32Classic.cs: handle drawing of the relation links and
23793         parent row buttons.
23794
23795         * Theme.cs: change args to DataGridPaintParentRow.
23796
23797         * DataGrid.cs: Don't use controls for the relation links and
23798         parent buttons, so we have to handle all their interactions in
23799         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
23800         when we're navigating through child tables, so we can reinstate
23801         selection, expanded state, current cell, etc.
23802
23803 2006-07-20  Chris Toshok  <toshok@ximian.com>
23804
23805         * ToolBar.cs: When we redraw a button, for whatever reason,
23806         there's no reason to redraw the entire toolbar.  Also, don't call
23807         Control.Refresh from within Redraw, as it's much heavier than
23808         Invalidate (which is really what we want).
23809
23810 2006-07-20  Chris Toshok  <toshok@ximian.com>
23811
23812         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
23813         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
23814         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
23815         traces from within a debug IBindingList datasource
23816         (in mono/winforms/datagrid) for *days*, I've finally gotten things
23817         to work in a similar fashion.
23818
23819 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23820
23821         * ListBox.cs: Don't call Sort () when setting 
23822         the Sorted property to false (avoid an unnecessary sort).
23823
23824 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23825
23826         * ListControl.cs: DataSource should throw an ArgumentException
23827         instead of a normal exception when the argument is not of the 
23828         correct type.
23829
23830 2006-07-20  Mike Kestner  <mkestner@novell.com>
23831
23832         * Control.cs: add InternalPreProcessMessage to allow us to steal
23833         key events before MWF gets its paws on them.  Adapted from a
23834         suggestion by eno.
23835         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
23836         up/down/left/right navigation. Override the new internal control
23837         method to steal the events since they never make it to WndProc.
23838         * ToolBarButton.cs: don't worry about pushed when setting hilight
23839         since the drawing code prefers pushed to hilight. Invalidate on 
23840         Hilight changes. Fixes #78547 and #78525.
23841
23842 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
23843
23844         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
23845           the canvas size. Fixes #78868
23846
23847 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
23848
23849         * Splitter.cs: Track requested split position until first layout
23850           is performed. Fixes #78871
23851
23852 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
23853
23854         * Application.cs: Removed code that forces 1.x for the version
23855           number if the version started with 0. Not sure why that code was
23856           there and I couldn't find any bugs that indicated we needed it.
23857           Fixes #78869
23858
23859 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
23860
23861         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
23862           ResetDefaults(), just write some output to the console until it's
23863           implemented. Fixes bug #78907 for now. Eliminated two warnings.
23864
23865 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
23866
23867         * PropertyGridView.cs: set StartPosition of drop down forms
23868         so they appear in correct initial spot.  Fixes #78190.
23869
23870 2006-07-19  Mike Kestner  <mkestner@novell.com>
23871
23872         * ThemeWin32Classic.cs: use parent background color when drawing
23873         flat toolbars.  Restructure the conditionals to make sure non-flat
23874         non-Divider toolbars are filled too.  Fixes #78837.
23875
23876 2006-07-19  Mike Kestner  <mkestner@novell.com>
23877
23878         * ListBox.cs: Sort on collection changes even if the handle
23879         isn't created yet.  Fixes #78813.
23880
23881 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23882
23883         * ListControl.cs: DisplayMember should never be null,
23884         and now we assign String.Empty when null is passed to it (this
23885         is the .Net way).
23886
23887 2006-07-17  Mike Kestner  <mkestner@novell.com>
23888
23889         * ListViewItem.cs: restructure Font and subitem Font handling 
23890         to hold a specific font and refer back to owner on null.
23891         Fixes #78761.
23892
23893 2006-07-17  Mike Kestner  <mkestner@novell.com>
23894
23895         * ToolBar.cs: bandaid for side-effect of previous patch which was
23896         discarding explicit heights for non-AutoSize toolbars.  Need to
23897         extend my format tester to deal with AutoSize=false. Fixes #78864.
23898
23899 2006-07-15  Jackson Harper  <jackson@ximian.com>
23900
23901         * LabelEditTextBox.cs:
23902         * TreeView.cs: Use a new LabelEdit class for node editing, this
23903         class automatically 'closes' itself when it gets the enter key or
23904         loses focus.
23905         - Use the client rectangle when setting the trees scrollbars, so
23906         border style is taken into account.
23907         
23908 2006-07-14  Jackson Harper  <jackson@ximian.com>
23909
23910         * TreeNode.cs:
23911         * TreeView.cs: Make the editing work similar to MSs, firing the
23912         events correctly and ending edits correctly.
23913
23914 2006-07-14  Mike Kestner  <mkestner@novell.com>
23915
23916         * ToolBarButton.cs:
23917         * ToolBar.cs: layout restructuring and redraw enhancements to support
23918         formatting changes gracefully, like setting TextAlign, ImageList, 
23919         ButtonSize, and Appearance.  Handles explicit button sizing quirks
23920         of the MS controls.  Things like flat toolbars ignoring button size
23921         but becoming constant sized at the largest button's size.  Normal
23922         toolbars with an image set cannot be shrunk smaller than the image,
23923         but text can be clipped/ignored.
23924         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
23925         is zero.  Seems like DrawString should be smart enough to not put
23926         anything on screen though. Also trim labels and ellipsize at the char
23927         boundary, not word.
23928         Fixes #78711 and #78483.
23929
23930 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23931
23932         * FolderBrowserDialog.cs: Disable "New Folder" button and
23933           "New Folder" contextmenu menuitem if a folder like "My Computer"
23934           is selected.
23935
23936 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23937
23938         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
23939         * FolderBrowserDialog.cs:
23940           - Use MWFConfig to store and read size and position settings
23941           - Added code to create a new folder (button or context menu).
23942             Use TreeView labeledit to change the name of the new folder.
23943
23944 2006-07-14  Jackson Harper  <jackson@ximian.com>
23945
23946         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
23947         when the tree is scrolled we end editing.
23948
23949 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23950
23951         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
23952           Down arrows
23953
23954 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
23955
23956         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
23957         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
23958         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
23959         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
23960         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
23961         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
23962         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
23963         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
23964         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
23965         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
23966         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
23967         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
23968         ListViewItemSelectionChangedEventHandler.cs,
23969         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
23970         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
23971         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
23972         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
23973         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
23974         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
23975         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
23976         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
23977         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
23978         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
23979         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
23980         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
23981         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
23982         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
23983         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
23984         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
23985         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
23986         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
23987         WebBrowserNavigatingEventHandler.cs, 
23988         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
23989
23990 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
23991
23992         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
23993         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
23994         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
23995         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
23996         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
23997         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
23998         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
23999         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24000         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24001         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24002         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24003         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24004         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24005         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24006         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24007         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24008         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24009         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24010         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24011         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24012         ListViewItemStates.cs, MaskFormat.cs: Added
24013
24014 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
24015
24016         * PropertyGridView.cs: Fix keyboard navigation of drop down.
24017         Patch from eno for bug 78558.
24018         
24019 2006-07-13  Jackson Harper  <jackson@ximian.com>
24020
24021         * TreeView.cs: When an edit is finished make sure that the
24022         selected node is visible.
24023         - When setting the top/bottom use the scrollbars is_visible, so
24024         everything will be set correctly even if the tree isn't visible
24025         yet.
24026
24027 2006-07-13  Jackson Harper  <jackson@ximian.com>
24028
24029         * ComboBox.cs: Revert the item->index part of my previous patch.
24030         * TreeView.cs: Use LostFocus instead of Leave for detecting when
24031         the edit box has lost focus (duh).
24032         - Just make the edit box not visible when we get return, that will
24033         take the focus, which will call EndEdit
24034         * TreeNode.cs When we start editing, notify the treeview.
24035
24036 2006-07-12  Jackson Harper  <jackson@ximian.com>
24037
24038         * ComboBox.cs: Clear out old items before setting the item list.
24039         This prevents databound controls from having their items added
24040         twice.
24041         - Switch the combobox to use indices whereever possible instead of
24042         using Item's.  This allows usto navigate through lists that have
24043         more then one item with the same string value (ie a, b, b, a).
24044         - Scroll the listboxes scrollbar when a non visible item is
24045         highlighted
24046         - Allow keypress to cycle through all the possible values. For
24047         example if you have b1, b2, b3 and hold down the B key all the
24048         values will be cycled through.
24049         
24050 2006-07-12  Jackson Harper  <jackson@ximian.com>
24051
24052         * TextBoxBase.cs:
24053         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24054         this using the internal methods.
24055         * Control.cs: Add OnGotFocusInternal.  A new method that allows
24056         controls to "override" OnGotFocus and change focus behavior if
24057         needed.
24058         - Same thing for LostFocus
24059         * ComboBox.cs: Pass off focus to the text control properly.
24060
24061 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
24062
24063         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24064         * FolderBrowserDialog.cs: Almost a complete rewrite.
24065           - Better support for Environment.Specialfolders
24066           - Added support for MWFVFS
24067           - Made setting SelectedPath work
24068
24069 2006-07-12  Jackson Harper  <jackson@ximian.com>
24070
24071         * Control.cs: Optimze getting all the controls.
24072
24073 2006-07-11  Jackson Harper  <jackson@ximian.com>
24074
24075         * ContainerControl.cs: Override SETFOCUS in the container control,
24076         so that it is not selected on mouse click.
24077
24078 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
24079
24080         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
24081           Hopefully we will have a better way once all of focus is complete.
24082
24083 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
24084
24085         * ThemeWin32Classic.cs: Commented out some debug code and fixed
24086           a compile error with csc.
24087
24088 2006-07-11  Jackson Harper  <jackson@ximian.com>
24089
24090         * Control.cs: When hiding a control only select the next control
24091         if the current control was focused.
24092         - Don't handle enter/leave when setting/killing focus, this is
24093         done by the container control.
24094         - Remove is_selected, it's not needed anymore.
24095         - Add utility methods for selecting a child control, and for
24096         firing the Enter/Leave events.
24097         * ContainerControl.cs: When a control is activated fire the
24098         enter/leave events.
24099         - Don't wrap when processing the tab key, so that focus can be
24100         moved outside of the container.
24101         - Use the correct active control
24102
24103 2006-07-11  Jackson Harper  <jackson@ximian.com>
24104
24105         * ComboBox.cs: Remove some debug code that was blinding me.
24106         * UpDownBase.cs: These controls actually aren't implicit, they are
24107         visible to the user.
24108
24109 2006-07-10  Chris Toshok  <toshok@ximian.com>
24110
24111         * DataGrid.cs: move back to the is_adding boolean field.  god i
24112         hate this is_editing/is_adding/is_changing stuff.
24113
24114 2006-07-10  Chris Toshok  <toshok@ximian.com>
24115
24116         * DataGridTableStyle.cs: just check if the property type is bool.
24117         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
24118         Don't use CanRenderType.
24119
24120         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
24121         if our text == NullText.  Remove CanRenderType.
24122
24123         * DataGridBoolColumn.cs: nuke CanRenderType.
24124
24125         * DataGrid.cs: reenable some code to end the current edit inside
24126         of set_CurrentCell.  This fixes the other 1.1.16 regression.
24127         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
24128         Also, remove the visible_row_count arg from CalcRowHeaders, since
24129         we don't need to worry about the actual height of the area.
24130
24131 2006-07-10  Chris Toshok  <toshok@ximian.com>
24132
24133         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
24134         mode, just return.
24135
24136         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
24137         the real sense of the IsInEditOrNavigateMode property (true =
24138         navigate, false = edit).  Also, update OnKeyPress to reflect this.
24139
24140         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
24141         column style exists, we still need to set its property descriptor
24142         to match up with our list manager.
24143
24144 2006-07-10  Chris Toshok  <toshok@ximian.com>
24145
24146         * ThemeWin32Classic.cs: implement the new row/header painting
24147         approach.  The parent row painting will likely go away and
24148         replaced with label controls, but the rest seems to work ok (and
24149         efficiently).
24150
24151         * Theme.cs: change the way we draw datagrid rows.  we don't draw
24152         the row headers as a block now.  Instead we draw them in the
24153         normal draw-row loop.  Add some calls for drawing parent rows and
24154         relation rows.
24155
24156         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
24157         a default table style.  Set the defaults from ThemeEngine.Current,
24158         not SystemColors.  Fix lots of misc issues with property setters.
24159
24160         * DataGrid.cs: move loads of style information out of this class
24161         as it's being duplicated with DataGridTableStyle.  keep track of a
24162         special DataGridTableStyle for the properties we used to mirror
24163         here.  Switch all the style properties to access this table style
24164         instead of instance fields of this class.  Also add a internal
24165         class to represent parent rows (more needs to be stored here, like
24166         the selection state from the parent table, as well as the
24167         expansion state.)  Also, for datasources with relations, do the
24168         right thing for collapse/expand, and add support for the
24169         navigation/parent row buttons.
24170
24171         Lastly, fix the crash in the 1.1.16 build.
24172
24173         * GridTableStylesCollection.cs: make the explicit interface
24174         implementations call the class's methods as opposed to duplicating
24175         them.
24176
24177         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
24178         0 so the text doesn't jump around when we move the cursor.
24179
24180 2006-07-10  Jackson Harper  <jackson@ximian.com>
24181
24182         * TextBoxBase.cs:
24183         * ListBox.cs: Match MS's ToString (this makes debugging focus
24184         stuff infinitely easier).
24185
24186 2006-07-10  Jackson Harper  <jackson@ximian.com>
24187
24188         * Control.cs (SelectNextControl): When checking the control's
24189         parent use this instead of ctrl.parent so that null can be passed
24190         to SelectNextControl. (I have unit tests for this).
24191         - Remove unused var.
24192
24193 2006-07-10  Chris Toshok  <toshok@ximian.com>
24194
24195         * CurrencyManager.cs: correct one regression, the removal of the
24196         finalType field.  Also, add a MonoTODO on CanAddRows, implement
24197         Refresh() correctly, and fix some event emission in
24198         ListChangedHandler.
24199
24200 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24201
24202         * FileDialog.cs: Don't use brackets for new folders if they exist
24203           under *nix. Instead use -(number of existing folders +1).
24204
24205 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24206
24207         * FileDialog.cs:
24208           - Fixed really nasty bug #78771
24209           - Don't block the whole GUI when reading directories with a lot of
24210             entries. Use an other thread instead and call BeginInvoke to
24211             update the ListView in MWFFileView
24212
24213 2006-07-07  Chris Toshok  <toshok@ximian.com>
24214
24215         * Control.cs (Dispose): release any Capture when disposing.
24216
24217 2006-07-07  Chris Toshok  <toshok@ximian.com>
24218
24219         * LinkLabel.cs (Select): if we chain up to the parent, set
24220         focused_index to -1 so we'll search for the first available link
24221         the next time the user tabs into us.  Also, if the direction is
24222         backward and focused_index == -1, start the search from the last
24223         element.
24224
24225 2006-07-07  Chris Toshok  <toshok@ximian.com>
24226
24227         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
24228         is beyond the end of the text, don't do anything.
24229         (CreateLinkPieces): set our ControlStyles.Selectable based on
24230         whether or not we have any links.
24231         (Link.Invalidate): use a loop instead of foreach.
24232         (Link.set_Start): null out owner.sorted_links so it'll be
24233         recreated by CreateLinkPieces.
24234
24235 2006-07-06  Chris Toshok  <toshok@ximian.com>
24236
24237         * LinkLabel.cs: revert the SetStyle change.
24238
24239 2006-07-06  Chris Toshok  <toshok@ximian.com>
24240
24241         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
24242         (OnEnableChanged): s/Refresh/Invalidate
24243         (OnGotFocus): if we have a focused index already, refocus it (so
24244         if we mouse out/in to the window it'll focus the right link).
24245         (OnKeyDown): move the tab handling out of here.
24246         (OnLostFocus): don't set focused_index to -1, so we can refocus it
24247         when we lose focus.
24248         (OnMouseDown): don't Capture here - Control handles it.  Also,
24249         focus the active link.
24250         (OnMouseUp): don't deal with Capture.
24251         (OnPaintBackgroundInternal): remove.
24252         (OnTextAlignChanged): CreateLinkPieces before calling the
24253         superclass's method.
24254         (OnTextChanged): call CreateLinkPieces before calling superclass's
24255         method.
24256         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
24257         move around.
24258         (Select): implement this, moving the selection between different
24259         links, and call parent.SelectNextControl if we don't have another
24260         link to focus in the given direction.
24261         (CreateLinkPieces): call Invalidate instead of Refresh.
24262         
24263 2006-07-06  Chris Toshok  <toshok@ximian.com>
24264
24265         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
24266         new LinkLabel internals.
24267
24268         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
24269         over pieces looking for active/focused/etc links.  also, deal with
24270         runs of text (and links) with embedded \n's in them, and use
24271         MeasureCharacterRanges instead of MeasureString to figure out the
24272         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
24273         two-step.
24274
24275 2006-07-04  Jackson Harper  <jackson@ximian.com>
24276
24277         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
24278         XKB or key auto repeat, do it manually.  Without key auto repeat,
24279         when a key is held down we get key press, key release, key press,
24280         key release, ... with auto repeat we get key press, key press, key
24281         press ..., and then a release when the key is actually released.
24282
24283 2006-07-03  Jackson Harper  <jackson@ximian.com>
24284
24285         * TabControl.cs:
24286         * ThemeWin32Classic.cs: Tabs do not obey normal background color
24287         rules, they are always control color regardless of the background
24288         color.
24289
24290 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
24291
24292         * FileDialog.cs: Added internal class MWFConfig.
24293           Removed Registry support and replaced it with support for the new
24294           MWFConfig class. See MWFConfig comments for more information.
24295
24296 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
24297
24298         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
24299           rectangle. Added some patches from eno from bug #78490 and fixed
24300           the arrow position for small up and down CPDrawScrollButtons.
24301
24302 2006-06-30  Jackson Harper  <jackson@ximian.com>
24303
24304         * InternalWindowManager.cs: Remove some debug code.
24305         * Form.cs: When an MdiParent is set to null, the window is
24306         "detatched" and becomes a normal window.
24307         * MdiClient.cs: Don't bring the new child form to the front until
24308         it is activated (setting it as active does this), this makes the
24309         previously active forms titlebar get redrawn as inactive.
24310
24311 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
24312
24313         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
24314           with later controls
24315
24316 2006-06-29  Mike Kestner  <mkestner@novell.com>
24317
24318         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
24319         arrow in keynav state.  Fixes #78682.
24320
24321 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
24322
24323         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
24324           order (fixes #78393)
24325
24326 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
24327
24328         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
24329           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
24330           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
24331           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
24332           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
24333           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
24334           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
24335           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
24336           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
24337           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
24338           enumerations (FlagsAttribute, SerializableAttribute, added/removed
24339           values)
24340
24341 2006-06-28  Mike Kestner  <mkestner@novell.com>
24342
24343         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
24344
24345 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
24346
24347         * PropertyGrid.cs,
24348           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
24349           item lines from other area (It also makes BackColor consistent and
24350           compatible with .NET). Fixed bug #78564.
24351
24352 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
24353
24354         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
24355         Patch from Eno for #78555.
24356
24357 2006-06-27  Chris Toshok  <toshok@ximian.com>
24358
24359         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
24360
24361         * DataGridColumnStyle.cs: same.
24362
24363         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
24364         
24365         * DataGridDrawingLogic.cs: nuke.
24366
24367 2006-06-27  Chris Toshok  <toshok@ximian.com>
24368
24369         * DataGridTableStyle.cs: clean up the constructors, and build the
24370         list of child relations for this table.  I have no idea if this is
24371         where we should be doing it (it probably isn't), but since we're
24372         already iterating over the properties..
24373
24374         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
24375         struct and array for keeping track of row information, similar to
24376         what's shown in a hack on
24377         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
24378
24379         * Theme.cs: be consistent about the naming of DataGrid methods,
24380         prefering ColumnWidths and RowHeights over columnsWidths and
24381         RowsHeights.
24382
24383         * ThemeWin32Classic.cs: same, and also add support for variable
24384         sized rows (and the +/- expansion icons for related rows).
24385
24386 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
24387
24388         * TextBoxBase.cs: Applied Eno's patch from #78660
24389
24390 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
24391
24392         * Form.cs (ScaleCore): We don't want to scale our form if it's
24393           state is minimized or maximized, but we still need to scale our
24394           child windows. Also, added try/finally block to ensure layout
24395           gets reset (Fixes #78697)
24396
24397 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
24398
24399         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
24400
24401 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
24402
24403         * Form.cs: Fixed c+p error and added check to resize form if minimum
24404           size is bigger than current size (Fixes #78709)
24405
24406 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
24407
24408         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
24409
24410 2006-06-26  Mike Kestner  <mkestner@novell.com>
24411
24412         * ComboBox.cs: only do Keypress handling in the combo when there  
24413         are items in the collection. Fixes #78710.
24414
24415 2006-06-26  Chris Toshok  <toshok@ximian.com>
24416
24417         * Binding.cs: make this work bi-directionally.  also, clear up
24418         other mixups between Push/Pull Data (e.g. we're supposed to pull
24419         data when validating).
24420
24421         * BindingManagerBase.cs: trim some fully qualified collection
24422         types.
24423
24424         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
24425
24426 2006-06-23  Chris Toshok  <toshok@ximian.com>
24427
24428         * PropertyManager.cs: It appears (according to the unit tests)
24429         that PropertyManager doesn't use
24430         PropertyDescriptor.AddValueChanged to track propery value changes
24431         in its datasource, but uses the same scheme as Binding, where it
24432         looks for a <Property>Changed event and binds to it.
24433
24434         Also, according to the docs, IsSuspended always returns false for
24435         a property manager with a non-null datasource.
24436
24437 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
24438
24439         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
24440           need to update the actual DialogResult. (Fixes #78613)
24441
24442 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
24443
24444         * Form.cs (ShowDialog): Release any captures before running the
24445           new message pump (fixes #78680)
24446
24447 2006-06-22  Mike Kestner  <mkestner@novell.com>
24448
24449         * ListView.cs: Layout column widths properly in details mode even 
24450         if HeaderStyle.None is set.  Fixes #78691.
24451
24452 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
24453
24454         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
24455
24456 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
24457
24458         * Control.cs (ContainsFocus): Using new driver method to get focused
24459           window, instead of trying to use internal tracking var, which can
24460           recursion issues (Fixes #78685)
24461         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
24462           XplatUIWin32.cs: Added GetFocus method to return focused window
24463
24464 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24465
24466         * ColorDialog.cs: when the mouse button is pressed inside the color
24467         matrix, don't let the cursor move out of it until the button is
24468         released, which is the behavior on windows. Changed 'colours' by
24469         'colors' to use the same word consistently.
24470
24471 2006-06-21  Chris Toshok  <toshok@ximian.com>
24472
24473         * DataGrid.cs: add in some basic navigation stuff (navigating to a
24474         child relation and back, using a stack).  Also, remove
24475         GetDataSource and the code that calls it - it's not needed.  Also,
24476         track CurrencyManager.ListName's removal.
24477
24478 2006-06-21  Chris Toshok  <toshok@ximian.com>
24479
24480         * CurrencyManager.cs: push some of the original type checking from
24481         BindingContext.CreateBindingManager to here, and remove some of
24482         the finalType stuff.  Need more tests to make sure I've got the
24483         ListName part right, and we might need more in SetDataSource.
24484
24485         * PropertyManager.cs: add a ctor that takes just the datasource,
24486         and no property name.  Make SetDataSource work with a null
24487         property_name, and make Current return the data_source if the
24488         property descriptor is null.  this makes 'string foo = "hi";
24489         BindingContext[foo].Current' return "hi" as it should.
24490
24491         * RelatedCurrencyManager.cs: make this code more generic - there's
24492         no reason the parent manager has to be CurrencyManager, and
24493         there's no reason to pass the DataRelation.  It suffices to use a
24494         BindingManagerBase and PropetyDescriptor.
24495
24496         * RelatedPropertyManager.cs: make a similar change here.
24497         
24498         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
24499         flower I knew it could be.
24500
24501 2006-06-20  Chris Toshok  <toshok@ximian.com>
24502
24503         * PropertyManager.cs: the PropertyChangedHandler is invoked when
24504         data in the source has changed and we need to update the control,
24505         so s/PullData/PushData.
24506
24507         * CurrencyManager.cs: Refresh is meant to update the control from
24508         data in the datasource.  So, s/PullData/PushData.
24509
24510         * BindingContext.cs: add more ugliness (we weren't handling the
24511         case where data_source = DataTable and data_member = column_name).
24512
24513         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
24514         from the perspective of the datasource.  PullData pulls from the
24515         control, PushData pushes to the control.
24516
24517 2006-06-20  Chris Toshok  <toshok@ximian.com>
24518
24519         * BindingContext.cs: rewrite the CreateBindingManager code to
24520         handle navigation paths more or less properly.  This could
24521         definitely stand some more work, in particular to push the
24522         recursion up to the toplevel.  But that relies on fixes in other
24523         places (System.Data comes to mind).
24524
24525         Also, move to a flat hashtable (and encode the twolevel nature of
24526         the dictionary into the hash key).  This lets us implement the
24527         IEnumerable.GetEnumerator method.
24528
24529         * RelatedCurrencyManager.cs: new class.  Update our view based on
24530         our relation and our parent CurrencyManager's position.
24531
24532         * CurrencyManager.cs: split out some logic from the ctor into
24533         SetView, so it can be called from the new RelatedCurrencyManager
24534         subclass.
24535
24536         * RelatedPropertyManager.cs: new class.  Update our datasource
24537         based on the position of our parent CurrencyManager.
24538
24539         * PropertyManager.cs: split out some logic from the ctor into
24540         SetDataSource, so it can be called from the new RelatedDataSource
24541         subclass.  Also, make the Current getter return the value
24542         of the PropertyDescriptor, not the data_source.
24543
24544         * Binding.cs: no need to duplicate the string splitting code here.
24545
24546 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
24547
24548         * Control.cs:
24549           - set_Enabled: OnEnabledChanged is not called if the inherited state 
24550             of the control is not altered, even though  we might be changing the
24551             internal state of the control (#78458)
24552           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
24553             OnEnabledChanged, to allow easy altering of any child window state
24554           - OnEnabledChanged: Added code to enable/disable driver window state
24555           - OnParentEnabledChanged: Instead of firing the event, call 
24556             OnEnabledChanged, which will fire the event and also a) set driver
24557             window state and pass the enabled state to any grandchildren (#78458)
24558
24559 2006-06-19  Jackson Harper  <jackson@ximian.com>
24560
24561         * InternalWindowManager.cs: We don't set the cursor explicitly
24562         thats done via the response to NCHITTESTs.
24563         - Don't need to adjust for titlebar heights anymore, the
24564         coordinates are coming in the correct coordinates now (see peters
24565         last patch).
24566
24567
24568 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
24569
24570         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
24571           being translated relative to whole window, instead of client window.
24572           That caused broken offsets on mouseclick (and caused gas for our
24573           InternalWindowManager)
24574
24575 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
24576
24577         * TextControl.cs:
24578           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
24579           - Undo(): Added replay of cursor move on DeleteChars action; added
24580             calling Undo() again if a recorded cursor move is invalid (to
24581             ensure that some action is performed on Undo)
24582         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
24583
24584 2006-06-16  Jackson Harper  <jackson@ximian.com>
24585
24586         * MdiClient.cs: Instead of just sizing maximized windows when
24587         there is a resize we also have to adjust the Y of minimized
24588         windows, so they stay pinned to the bottom of the mdi container.
24589         - Eliminate separate tracking of the active control, we can just
24590         get this from the controls collection.
24591         - Paint the decorations for the newly activated titlebar so we get
24592         a pretty blue bar.
24593         * InternalWindowManager.cs:
24594         * ThemeWin32Classic.cs: Minimized windows get all three buttons
24595         even if they are a tool window.
24596         
24597 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
24598
24599         * TextControl.cs (Undo): Handle non-existent cursor locations in the
24600           undo buffer, these can happen when text was deleted and the cursor
24601           was recorded first. Since we will also have a recorded cursor
24602           after the delete this is not an issue. (Fixes #78651)
24603
24604 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
24605
24606         * AccessibleObject.cs: Remove dependence on Control.is_selected;
24607           instead properly track control states internally (allows us to
24608           remove is_selected from Control)
24609
24610 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24611
24612         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
24613         whose width is not a multiple of 8.
24614
24615 2006-06-13  Jackson Harper  <jackson@ximian.com>
24616
24617         * MdiClient.cs:  Only maximize the next child if the current one
24618         is maximized.
24619
24620 2006-06-13  Chris Toshok  <toshok@ximian.com>
24621
24622         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
24623         modified.  Also, guard against grid or grid_drawing being null in
24624         Invalidate.
24625
24626         * DataGrid.cs: Reformat tons of getters/setters.  In the
24627         DataMember setter, just call SetNewDataSource instead of
24628         duplicating some of its functionality.  In SetNewDataSource, don't
24629         check ListManager for null, since the property getter creates the
24630         object if needed.
24631
24632         * DataGridTableStyle.cs: don't set TableStyle or call
24633         SetDataGridInternal on the column here, it's done in
24634         GridColumnStylesCollection.Add.
24635
24636         * GridColumnStylesCollection.cs: fix all the explicit interface
24637         implementations to just call our methods.  Nuke AddInternal() and
24638         move the body of it to Add().  Also, add a call to
24639         column.SetDataGridInternal to Add().
24640
24641         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
24642         base()+duplicate code.  Also, use the Format property instead of
24643         format to generate an Invalidate ala MS.  Lastly, create the
24644         textbox here, unconditionally.
24645         (set_Format): call Invalidate.
24646         (get_TextBox): no need to call EnsureTextBox.
24647         (Commit): remove the message box.
24648         (Edit) remove the call to EnsureTextBox.
24649         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
24650         (EnterNullValue): no need to check textbox for null.
24651         (HideEditBox): no need to check textbox for null.
24652         (SetDataGridInColumn): add the textbox to the grid's controls.
24653         (EnsureTextBox): nuke.
24654         
24655 2006-06-13  Jackson Harper  <jackson@ximian.com>
24656
24657         * MdiWindowManager.cs: Hook up to the maximized menus paint event
24658         and redraw the buttons when needed. Unhook when the window is
24659         unmaximized.
24660         * MainMenu.cs: Add an internal Paint event, the mdi window manager
24661         needs this so that it can redraw its buttons when the menu is
24662         repainted.
24663         * InternalWindowManager.cs:
24664         * Form.cs: The method order has changed for DrawMaximizedButtons,
24665         so that it can be a PaintEventHandler.
24666         
24667 2006-06-13  Jackson Harper  <jackson@ximian.com>
24668
24669         * MdiClient.cs: When we close a maximized mdi window, the next mdi
24670         window is activated and maximized, even if it wasn't before.
24671         - When  a new window is activated repaint the decorations of the
24672         old one, so that it no longer has the Active "look" (the blue
24673         titlebar).
24674         * InternalWindowManager.cs: Open up CreateButtons to base classes
24675         so they can recreate the buttons on state changes.
24676         - If a window is maximized give it all three buttons
24677         * MdiWindowManager.cs: Create the titlebar buttons when the state
24678         is changed, this is needed because a toolwindow will not have all
24679         three buttons until it is maximized.
24680
24681 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
24682
24683         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
24684           Fixed bug #78609.
24685
24686 2006-06-12  Jackson Harper  <jackson@ximian.com>
24687
24688         * KeysConverter.cs: Make sure we handle the Ctrl special case
24689         if its the only key.
24690         
24691 2006-06-12  Jackson Harper  <jackson@ximian.com>
24692
24693         * Theme.cs: Add a method to get the size of a managed window
24694         toolbar button.
24695         * InternalWindowManager.cs: Remove the ButtonSize property, this
24696         should be retrieved from the theme.
24697         * MdiWindowManager.cs: Get the button size from the theme
24698         * ThemeWin32Classic.cs: Make the method to get the managed window
24699         titlebar button size public.
24700         - Handle the different button sizes of maximized toolwindows
24701         (should match any maximized window).
24702         - Get the titlebar height from the theme, not the WM (which gets
24703         it from the theme).
24704
24705 2006-06-12  Jackson Harper  <jackson@ximian.com>
24706
24707         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
24708         event down to the mdi window manager.
24709         - Expose some extra stuff to base classes
24710         - Make sure to end the Capture on an NC Mouse up, so that we can
24711         get double clicks properly, and the sizing doens't stick.
24712         - When doing PointToClient contain it in the workable desktop
24713         area, this prevents windows from changing size when the cursor is
24714         pulled outside of the working area while sizing.
24715         * MdiWindowManager.cs: When we get a double click maximize the
24716         window.
24717         - Reset the cursor after handling mode changes.
24718
24719 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
24720
24721         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
24722           current desktop, instead of just assuming a 0, 0 origin. This
24723           is needed for our internal window manager, to know the top
24724           margin of the desktop
24725
24726 2006-06-12  Chris Toshok  <toshok@ximian.com>
24727
24728         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
24729         we need this to get rid of the selected background in the bool
24730         column.
24731         (CancelEditing): move the ConcedeFocus call to above the Abort
24732         call.  Also, set is_changing to false and invalidate the row
24733         header if we were changing before.
24734         (ProcessKeyPreviewInternal): remove, since noone outside this
24735         class calls it anymore.  Roll the code into ProcessKeyPreview.
24736         (EndEdit): remove the internal version.
24737         (InvalidateCurrentRowHeader): make private.
24738
24739         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
24740         Keys.Escape handling (and with it the last call to
24741         DataGrid.EndEdit from outside the class.)
24742
24743
24744 2006-06-12  Chris Toshok  <toshok@ximian.com>
24745
24746         * DataGridTextBox.cs (.ctor): isedit defaults to false.
24747         (OnKeyPress): set isedit to true.
24748         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
24749         already handled by the grid.
24750
24751         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
24752         right.  ugh.
24753         (set_DataSource): SetDataSource always returns true, so stop
24754         putting it in an if statement.
24755         (EndEdit): get rid of some {}'s
24756         (ProcessGridKey): return true in case Keys.Escape.
24757         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
24758         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
24759         PositionChanged, stopped connecting to CurrentChanged.
24760         (GetDataSource): simplify this a bunch.
24761         (SetDataSource): change return type from bool to void.
24762         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
24763         to this, and make sure we don't set ListManager.Position inside
24764         set_CurrentCell.
24765         (OnListManagerItemChanged): if we're passed an actual index,
24766         redraw that row.
24767
24768         * CurrencyManager.cs (set_Position): don't call PullData here.
24769
24770 2006-06-09  Jackson Harper  <jackson@ximian.com>
24771
24772         * TreeNode.cs:  Recalculate the visible order before doing the
24773         Expand/Collapse Below calls, because those calls generate an
24774         expose.
24775         - Reduce calls to the TreeView property, which is mildly expensive
24776         by using a local var.
24777         * Form.cs: Layout the MDI child windows when creating the parent
24778         form.
24779         - Don't use the internal constructor anymore
24780         * MdiClient.cs: use the parent form width/height (if available)
24781         when laying out the child windows, we do this because the
24782         mdiclient isn't docked yet when the initial layout is done.
24783         - Don't need an internal constructor anymore.
24784
24785 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24786
24787         * FileDialog.cs: handle access errors when trying to create a folder
24788         or changing to a directory. No need to initialize out parameters.
24789
24790 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24791
24792         * FileDialog.cs: Append a number when creating a new folder if the
24793           folder already exists (use parenthesis instead of square brackets)
24794
24795 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24796
24797         * FileDialog.cs:
24798           - Disabled registry support for windows and added better registry
24799             error checking for other systems (need to investigate why it
24800             works perfectly on my system)
24801           - If a folder already exist show an error MessageBox instead of
24802             trying to create an indexed name.
24803           - Fixed a non intentional typo.
24804
24805 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24806
24807         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
24808
24809 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24810
24811         * FileDialog.cs: When creating a new folder don't crash if the
24812           folder already exists.
24813
24814 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24815
24816         * FileDialog.cs: Allmost a complete rewrite.
24817           - added a "virtual" file system that handles the differences
24818             between unix and windows file systems (especially the directory
24819             structure). Moved most of the directory and file handling code
24820             into the vfs.
24821             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
24822             UnixFileSystem and FSEntry.
24823           - Recently used folder/directory, size, location and used file names
24824             (file name ComboBox) are now stored in the registry and get read
24825             before the dialog shows up (fixes part 6 of bug #78446).
24826           - Creation of new folders/directories is now possible (context menu
24827             or ToolBar). Added TextEntryDialog for this that fills in the gap
24828             until ListView.LabelEdit works.
24829           - Fixed cursor handling (bug #78527) and focus handling for
24830             PopupButtonPanel
24831           - Various "Search in" ComboBox enhancements. The content of the
24832             dropdown listbox now almost matches ms.
24833           - Changed the behaviour when the user switches to SpecialFolder
24834             Recent to show the ListView in View.Details.
24835           - Beside using the ToolBar to change the View property of the
24836             file ListView it is now possible to use the context menu too.
24837
24838 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24839
24840         * ComboBox.cs: Don't create a new ObjectCollection when an item
24841           gets inserted. Just insert the item in the existing object_items
24842           ArrayList.
24843
24844 2006-06-08  Jackson Harper  <jackson@ximian.com>
24845
24846         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
24847         that the treeview and root node checks are done also, this fixes a
24848         regression i caused in the unit tests.
24849
24850 2006-06-07  Wade Berrier <wberrier@novell.com> 
24851
24852         * RichTextBox.cs: More ISO8859-1 -> unicode
24853
24854 2006-06-07  Mike Kestner  <mkestner@novell.com>
24855
24856         * ComboBox.cs : use items to hold highlight/selection so that
24857         collection insertions don't require synchronization.
24858
24859 2006-06-07  Jackson Harper  <jackson@ximian.com>
24860
24861         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
24862         routine.  We now always keep the sized edge at the cursor instead
24863         of computing movement and adjusting rects.  There is one buglet
24864         with this method though when the cursor is moved over area that
24865         the window can not expand too (such as the toolbars on the desktop).
24866
24867 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24868
24869         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
24870         here. Fixes crash on startup in AlbumSurfer.
24871
24872 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
24873
24874         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
24875           values
24876
24877 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24878
24879         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
24880         statement to avoid calling XNextEvent which will block if another thread
24881         took the event that we were expecting. Fixes bug #78605.
24882
24883 2006-06-07  Mike Kestner  <mkestner@novell.com>
24884
24885         * ListView.cs : isolated checkbox clicking from the selection logic.
24886         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
24887
24888 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24889
24890         * Form.cs: Check that the value passed to Form.DialogResult
24891         is a valid enum value.
24892
24893 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24894
24895         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
24896         Computer'. Clicking it in the network view goes to 'My Computer'.
24897         Added CIFS filesystem type. Display the mount point of filesystems.
24898         Avoid duplicate mount points (happens for me with CIFS);
24899
24900 2006-06-06  Jackson Harper  <jackson@ximian.com>
24901
24902         * InternalWindowManager.cs: Draw the maximized windows buttons
24903         when resizing.
24904
24905 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24906
24907         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
24908         all other dialogs. Fixes bug #78585.
24909
24910 2006-06-06  Mike Kestner  <mkestner@novell.com>
24911
24912         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
24913         Only invalidate checkbox on checkstate changes to avoid flicker.
24914         * ListBox.cs : avoid unselect/select when clicking selected item.
24915         avoid reselection flicker for already multiselected items.
24916         Fixes #78382.
24917
24918 2006-06-06  Jackson Harper  <jackson@ximian.com>
24919
24920         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
24921         the parent form so that the menu is removed if needed.
24922
24923 2006-06-06  Mike Kestner  <mkestner@novell.com>
24924
24925         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
24926         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
24927
24928 2006-06-06  Mike Kestner  <mkestner@novell.com>
24929
24930         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
24931
24932
24933 2006-06-06  Jackson Harper  <jackson@ximian.com>
24934
24935         * Control.cs: Use the property (instead of the field) to get the
24936         default cursor so it is instantiated correctly.
24937         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
24938         resizes so we need to manually repaint the window decorations here.
24939         - Set the titlebar button locations as soon as they are created,
24940         otherwise they are not set correctly on win32.
24941         
24942 2006-06-06  Chris Toshok  <toshok@ximian.com>
24943
24944         * CurrencyManager.cs (set_Position): call PullData before
24945         OnCurrentChanged.
24946         (AddNew): after calling IBindingList.AddNew, update our
24947         listposition, and call OnCurrentChanged/OnPositionChanged (without
24948         calling PullData).
24949         (OnCurrentChanged): remove the call to PullData from here.
24950         (OnItemChanged): remove the call to PushData from here.
24951         (OnPositionChanged): change the test from == null to != null to
24952         match the other methods.
24953         (ListChangedHandler): the grossest part of the patch.  Implement
24954         this such that it passes the unit tests in CurrencyManagerTest and
24955         the output more or less matches that of MS's implementation.
24956  
24957 2006-06-06  Mike Kestner  <mkestner@novell.com>
24958
24959         * ListView.cs : only update check state on single click.
24960         * ThemeWin32Classic.cs : fix focus drawing for details view without
24961         fullrowselect.  Fixes #78454.
24962         * XplatUIX11.cs : fix for double click emission.
24963
24964 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
24965
24966         * PropertyGridView.cs : Applied Atsushi's patch to fix
24967         font dialog bug  (#78197).
24968
24969 2006-06-05  Jackson Harper  <jackson@ximian.com>
24970
24971         * TreeNode.cs: Compute the next node for expanding/collapsing
24972         correctly. We now factor in nodes without a NextNode
24973         correctly. (Fixes somes cases in nunit-gui).
24974         * InternalWindowManager.cs: Set the bounds when updating the
24975         virtual position of a tool window.
24976         
24977 2006-06-05  Chris Toshok  <toshok@ximian.com>
24978
24979         * DataGrid.cs: rename cached_currencymgr to list_manager.
24980         (set_CurrentCell): move SetCurrentCell code here, and clean it up
24981         some.
24982         (CurrentRow, CurrentColumn): single accessors so we can make the
24983         cursor movement code a lot easier to understand.
24984         (CurrentRowIndex): implement this in terms of CurrentRow.
24985         (BeginEdit): clean this up a bit.
24986         (CancelEditing): sort out the is_editing/is_changing/is_adding
24987         stuff a little.
24988         (EndEdit): minor changes.
24989         (OnKeyDown): add a comment about a (most likely) unnecessary
24990         check.
24991         (OnMouseDown): cancel editing when we click on a row header.  And
24992         use the CurrentRow setter, not CurrentCell.
24993         (ProcessDialogKey): directly call ProcessGridKey.
24994         (UpdateSelectionAfterCursorMove): factor out this common block of
24995         code (it's used everywhere that we move the cursor by updating row
24996         or column).
24997         (ProcessGridKey): pretty substantial overhaul.  Use the
24998         CurrentRow/CurrentColumn properties to make the code a lot more
24999         readable.  Only use the CurrentCell property when we have to
25000         modify both row and column at once.  Tab behavior is still broken,
25001         and Delete is untested.
25002         (Select): if we have no selected rows, set selection_start to
25003         @row.
25004         (EditCurrentCell): rename EditCell this.  It was only ever invoked
25005         with CurrentCell as the arg, so drop the arg and rename it.
25006
25007         * DataGridColumnStyle.cs: clean up the constructors a little, and
25008         drop CommonConstructor().
25009
25010         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25011         actually get notified when the user hits it.
25012         (ProcessKeyMessage): *substantially* simplify this method.
25013         There's no reason (that I can see) for the textbox to be making
25014         calls into the datagrid at all.  Remove all of them but the ones
25015         for Enter handling.  those will take some more work.
25016
25017         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25018         calling HideEditBox.
25019         (HideEditBox): if we have an active textbox, render it invisible
25020         without causing a re-layout of the datagrid.
25021
25022 2006-06-05  Mike Kestner  <mkestner@novell.com>
25023
25024         * ListView.cs : fix NRE crasher when focuseditem is cleared by
25025         collection changes by resetting it to Items[0].  Fixes #78587.
25026
25027 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25028
25029         * MessageBox.cs: if the height of the text is larger than the icon_size,
25030         use that. Fixes bug #78575.
25031
25032 2006-06-05  Jackson Harper  <jackson@ximian.com>
25033
25034         * TreeView.cs: Fix line drawing when scrolling.  To do this each
25035         node is basically responsible for drawing its entire horizontal
25036         area.  When drawing a node it draws its parent node lines if
25037         needed.
25038         - Adjust the clip area to the viewport rectangle
25039         - Fix Left/Right key handling to match MS. (It expand/collapses
25040         and moves to parents/first child but does not move selection to
25041         sibling nodes).
25042         - Fix SetTop to work with new bound calculation code
25043         - When scrollbars are no longer needed we need to reset scrolling
25044         vars and recalculate the visible order so the redraw is correct
25045         * TreeNode.cs: We can't expand/collapse nodes with no children.
25046
25047 2006-06-03  John Luke  <john.luke@gmail.com> 
25048
25049         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25050         so the colors work without dev packages
25051         
25052 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
25053
25054         * Control.cs 
25055           - Select: Implemented to just use activate. Seems to match MS 
25056             behaviour closest. Documented to only do actual control walking 
25057             based on it's parameters if in a container control so I moved 
25058             the code there.
25059           - Removed selection check logic from our internal Select() method
25060         * ContainerControl.cs:
25061           - Select: Moved selection logic from Control here, since MS documents
25062             that containers obey the bool arguments. No longer calling base
25063
25064 2006-06-02  Jackson Harper  <jackson@ximian.com>
25065
25066         * TreeView.cs: If the selected node isn't changed when we get
25067         focus update the previously selected node so that we see the
25068         selection box.
25069
25070 2006-06-02  Mike Kestner  <mkestner@novell.com>
25071
25072         * ComboBox.cs: restructure grab and general mouse event handling.
25073         Make the composite control raise mouse events like it was a single
25074         control for leaves/enters/motion/up/down events.  fix dropdown list
25075         coordinate mangling and refactor it into the scrollbar subclass to
25076         reduce code duplication.  Fixes #78282 #78361 and #78457.
25077
25078 2006-06-02  Mike Kestner  <mkestner@novell.com>
25079
25080         * ScrollBar.cs: remove Capture setting/clearing, as it happens
25081         automatically in the Control.WndProc.
25082
25083 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25084
25085         * FileDialog.cs: fix crash when running SharpChess, which sets the
25086         FilterIndex to 2 with only one Filter.
25087
25088 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25089
25090         * ToolBar.cs: add SizeSpecified property.
25091         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25092         try to figure out our real size, otherwise fallback to what the
25093         container says.
25094
25095 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25096
25097         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25098         * Control.cs (WndProc): MS always calls the DefWndProc to pass
25099           up the event
25100
25101 2006-06-01  Mike Kestner  <mkestner@novell.com>
25102
25103         * ListView.cs: revamp the focus management in ListView.  It still
25104         causes churn of LostFocus/GotFocus emissions on clicks, but it's
25105         better than not handling focus at all.  Will revisit when pdb feels
25106         the general focus handling is solid.  Fixes #78526.
25107
25108 2006-06-01  Jackson Harper  <jackson@ximian.com>
25109
25110         * TreeView.cs: Set the default border style in the constructor.
25111         - Move painting to use OnPaintInternal instead of capturing
25112         WM_PAINT, this is the correct way of doing things
25113         - UpdateBelow shouldn't invalidate the scrollbar area
25114         - Cap the top on update below in case the node was above the top
25115         of the viewport rectangle.
25116         - ExpandBelow and Collapse below need to obey Begin/End Update.
25117         * TreeNode.cs: Make is_expanded internal so the treenode
25118         collection can change it without firing the whole event chain.
25119         * TreeNodeCollection.cs: When clearing all the child nodes make
25120         sure to recalc the visible order.
25121         - Improve algo for remove the top node
25122
25123 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25124
25125         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
25126           SendMessage directly calling window procedures, which in turn might
25127           call SetFocus()
25128
25129 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
25130
25131         * Control.cs: Don't handle WM_SETFOCUS if the same window already
25132           has focus (works around X11 sending a FocusIn after our SetFocus)
25133         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
25134
25135 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
25136
25137         * Mime.cs: Fix for the NET_2_0 build.
25138           NameValueCollection needs StringComparer now.
25139
25140 2006-05-31  Chris Toshok  <toshok@ximian.com>
25141
25142         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
25143         return (via an out parameter) the starting X of the column.
25144         (UpdateVisibleColumn): track change to FromPixelToColumn.
25145         (HitTest): add a ColumnResize case here.
25146         (DrawResizeLine): new function, probably poorly named.
25147
25148         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
25149         only need to keep one reference.
25150         (set_ListManager): same.
25151         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
25152         Also, add support for HitTestType.ColumnResize.
25153         (OnMouseMove): add column resize behavior here, and change the
25154         cursor to the correct one as we move around the datagrid.
25155         (OnMouseUp): terminate the column resize if we're resizing.
25156         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
25157         for the current cell.
25158         (ConnectListManagerEvents): use cached_currencymgr.
25159         (DisconnectListManagerEvents): fill this in, using
25160         cached_currencymgr.
25161         (SetCurrentCell): remove cached_currencymgr_events handling.
25162         (SetDataMember): only call DisconnectListManagerEvents if
25163         cached_currencymgr is != null.
25164         (SetDataSource): same.
25165         (OnListManagerCurrentChanged): cached_currencymgr_events ->
25166         cached_currencymgr.
25167
25168 2006-05-31  Jackson Harper  <jackson@ximian.com>
25169
25170         * BindingManagerBase.cs: Remove somedebug code that creeped into
25171         SVN.
25172         * TreeNode.cs: We get the indent level dynamically right now, so
25173         don't track it as a member.
25174         * TreeNodeCollection.cs: Make sure all nodes added to the list
25175         have parents, treeviews/topnodes setup properly.
25176         - Don't attempt to track indent level.
25177
25178 2006-05-30  Jackson Harper  <jackson@ximian.com>
25179
25180         * BindingContext.cs: Create the currency manager tables here.
25181         This allows us to more easily create null tables (when bad data
25182         members are used), and more easily create related currency
25183         managers.
25184         * CurrencyManager.cs: All the table creation stuff is done by the
25185         binding context now.
25186         - Current should throw an exception if listposition is -1.
25187         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
25188         been bound yet.
25189
25190 2006-05-30  Mike Kestner  <mkestner@novell.com>
25191
25192         * ListView.cs: allow reexpansion of zero-width column headers.
25193         Fixes #78528.
25194
25195 2006-05-28  Chris Toshok  <toshok@ximian.com>
25196
25197         * CurrencyManager.cs (get_Current): after the late binding
25198         listposition = -1 fix, we need to guard against it here and return
25199         null, otherwise we raise an exception (which is swallowed
25200         elsewhere, and breaks datagrid databinding.)
25201
25202 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25203
25204         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
25205           than WM_SYSKEY, don't throw if get something unexpected (#78507)
25206
25207 2006-05-26  Jackson Harper  <jackson@ximian.com>
25208
25209         * ControlPaint.cs:
25210         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
25211         values, it's faster and it's all we care about (we don't care if
25212         the names aren't equal).
25213         * KeyboardLayouts.cs: Eliminate some dead code.
25214         - Lazy init things
25215         * X11Keyboard.cs: Lazy init keyboard detection.
25216         - Cleanup access modifiers a little.
25217
25218 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25219
25220         * XplatUIX11.cs: Once again, attempting to get layout just right.
25221
25222 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
25223
25224         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
25225           the sizes of each link section, that will result in sizes that
25226           match DrawString's layout (Fixes #78391)
25227
25228 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
25229
25230         * FileDialog.cs: If AddExtension property is true autocomplete the
25231           extensions in SaveFileDialog correctly. Fixes bug #78453.
25232           Set MyNetwork and MyComputer to "C:\" for windows. This should
25233           fix part 8 of bug #78446 for now.
25234
25235 2006-05-26  Chris Toshok  <toshok@ximian.com>
25236
25237         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
25238         invalidate the current row header if we need to, but presumably
25239         we'll invalidate the row corrsponding to the bounds or
25240         editingControl.
25241         (GridHScrolled): switch back to this method, as it's part of the
25242         public api.  *sigh*.
25243         (GridVScrolled): same.
25244         (OnMouseWheel): hack up something that more or less works.  Call
25245         GridHScrolled/GridVScrolled directly, instead of duplicating much
25246         of their code here.
25247         (EnsureCellVisibility): reinstate a bunch of this code, since we
25248         can't just set the scrollbar Value and expect to do all the work
25249         in the ValueChanged handler.  Also, Call Update() after scrolling
25250         in one direction so the other XplatX11.ScrollWindow call has the
25251         proper stuff in the proper places.
25252         (EditCell): set is_editing to true before calling .Edit.
25253
25254         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
25255         don't bother comparing first.
25256         (OnKeyPress): call grid.ColumnStartedEditing before calling
25257         base.OnKeyPress.  this will set is_changing and invalidate the row
25258         header if necessary.
25259         (ProcessKeyMessage): for WM_CHAR messages, call
25260         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
25261         and WM_KEYDOWN.
25262         
25263         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
25264         it's done in the DataGrid.
25265         (NextState): call grid.ColumnStartedEditing, which takes care of
25266         invalidating the row header (and setting is_changing).
25267
25268         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
25269         here.  it's done in the DataGrid.
25270
25271 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25272
25273         * Control.cs: allow changing the cursor when the mouse position is
25274         out of bounds but Capture is set.
25275         * LinkLabel.cs: handle the case when the mouse button is pressed on the
25276         linklabel but released somewhere else.
25277
25278 2006-05-25  Jackson Harper  <jackson@ximian.com>
25279
25280         * TreeView.cs: When we get focus if there is no selected node make
25281         it the top node
25282         - Remove some uneeded setup code from Draw.
25283         * TreeNodeCollection.cs: If the tree doesn't have a top node when
25284         a new node is inserted make the new node the top.
25285         * XplatUIX11.cs:
25286         * Timer.cs: Use Utc time so that no local time zone stuff needs to
25287         be used (should be faster).
25288         
25289 2006-05-25  Chris Toshok  <toshok@ximian.com>
25290
25291         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
25292         problem with the last commit.
25293
25294 2006-05-25  Chris Toshok  <toshok@ximian.com>
25295
25296         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
25297         need the invalidate call here, while scrolling right-to-left via
25298         the left arrow key (i.e. moving the editing cell while scrolling).
25299
25300         * DataGrid.cs (.ctor): remove the initialization of
25301         ctrl_pressed/shift_pressed.  We no longer track them using key
25302         up/down handlers, but by using Control.ModifierKeys.  Also, switch
25303         to using ValueChanged handlers on the scrollbars instead of
25304         Scrolled event handlers.  This simplifies a bunch of the scrolling
25305         code.
25306         (GridHValueChanged): rename from GridHScrolled, and change it to
25307         work with the new event args.
25308         (GridVValueChanged): same.
25309         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
25310         (OnMouseWheel): actually scroll the datagrid.  Don't change the
25311         selected cell.
25312         (ProcessGridKey): correct all the keyboard navigation stuff I
25313         could find.  Ctrl up/down/left/right/home/end work now.
25314         (EnsureCellVisibility): correct method name spelling.  Also,
25315         simplify this a touch by not explicitly calling the
25316         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
25317         scrollbar value.
25318         (OnKeyUpDG): no need for this method now.
25319         
25320 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25321
25322         * LinkLabel.cs: display the OverrideCursor when hovering the label.
25323         Fixes bug #78392.
25324
25325 2006-05-25  Chris Toshok  <toshok@ximian.com>
25326
25327         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
25328         r61019.
25329
25330 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
25331
25332         * Application.cs: Moved setting of is_modal and closing to before
25333           we create the control, to allow the event handlers called as a
25334           result of creation affect closing. Also removed Gonzalo's previous
25335           change to setting DialogResult, the behaviour has been moved to 
25336           Form.ShowDialog()
25337         * Form.cs: 
25338           - ShowDialog(): Removed explicit creation of the form, let RunLoop
25339             handle it instead
25340           - ShowDialog(): If no dialog result is set, we need to return Cancel
25341           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
25342             the close is cancelled
25343
25344 2006-05-25  Jackson Harper  <jackson@ximian.com>
25345
25346         * StatusBar.cs: We only need to update the sizes of the other
25347         panels when we have auto size contents.  Also we are only updating
25348         the contents of the panel, not the borders, so compensate for the
25349         border width (TODO: get this width from the theme somehow).
25350         * TreeView.cs: Scrollable is true by default
25351         - Use invalidate instead of refresh where needed
25352         - Factor the scrollable value into scrollbar updating
25353         - Update the scrollbars if the Scrollable property is altered
25354         - Update the selected node if its ImageIndex is changed
25355         - Handle null nodes in UpdateNode (mainly so we don't have to
25356         check if selected is null when updating it
25357         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
25358         are factored into the visible count
25359         - Use VisibleCount for clarity in the code
25360         - When the font is changed we need to recurse through all the
25361         nodes and invalidate their sizes
25362         
25363 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25364
25365         * Application.cs: set the DialogResult to fixed when the main form is
25366         hidden or destroyed while being modal.
25367
25368 2006-05-25  Miguel de Icaza  <miguel@novell.com>
25369
25370         * Theme.cs: Use Tangoified messagebox icons. 
25371
25372         (GetSizedResourceImage): Also cope with width = 0 and do not
25373         trigger a warning in that case (0 means "give me your icon from
25374         the resouce, no special size needed).
25375
25376 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
25377
25378         * Application.cs: Leave runloop if the the main modal form is 
25379           hidden (fixes #78484)
25380
25381 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
25382
25383         * BindingContext.cs : reject null datasource in Contains() and
25384           Item[].
25385         * CurrencyManager.cs : check data_member validity when data_source
25386           is dataset. When it is late binding, the initial position is -1.
25387
25388 2006-05-24  Jackson Harper  <jackson@ximian.com>
25389
25390         * TreeNodeCollection.cs: Dont't recalculate the visible order on
25391         inserted nodes that aren't visible.  This changes the
25392         max_visible_order which confuses scrollbar settings.
25393         - Use the enumerator to get the prev node instead of duplicating
25394         code.
25395         * TreeView.cs: Use new method for setting scrollbar values
25396         - Don't set the bounds every time the scrollbar is updated
25397         - When updating below the root node use an invalidate instead of a
25398         refresh to prevent the child controls (scrollbars) from being
25399         refreshed. (UpdateBelow still needs to be reworked anyways).
25400         - Reenable SetBottom now that visible orders are set correctly,
25401         added some debug code incase we ever get bad values there again.
25402         - Set the scrollbar max to 2 less then the max value, this
25403         compensates for the max value being one above the node count, and
25404         for scrollbars adding one extra "notch".
25405         - When drawing image nodes if there is an imagelist we draw the
25406         first image in the list if the supplied image index is out of the
25407         image list's bounds.
25408         
25409 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
25410
25411         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
25412           we receive a size change from the WM (Fixes #78503)
25413
25414 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
25415
25416         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
25417           rectangle (Fixes #78501)
25418
25419 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
25420
25421         * ButtonBase.cs: 
25422           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
25423             as a bitfield.
25424           - Fixed MouseMove to no longer switch pressed state unless the left
25425             mouse button is pressed. Atsushi provided the original patch (#78485)
25426           
25427 2006-05-24  Jackson Harper  <jackson@ximian.com>
25428
25429         * ScrollBar.cs: New internal methods that allow us to change a
25430         couple values on the scrollbar (the most common case is maximum
25431         and large change) without getting multiple invalidates.
25432
25433 2006-05-24  Chris Toshok  <toshok@ximian.com>
25434
25435         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
25436         (Edit): save off the original state in oldState, and set
25437         grid.is_editing to true.
25438         (OnKeyDown): abort editing if escape is pressed.  also, call
25439         NextState if space is pressed.
25440         (OnMouseDown): call NextState.
25441         (NextState): factor out shared code from OnKeyDown and OnMouseDown
25442         here.  Also, only invalidate the row header once (on the initial
25443         is_changing switch) to save on redraws.
25444
25445 2006-05-24  Chris Toshok  <toshok@ximian.com>
25446
25447         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
25448         if the value in the cell is different than it was before.  This
25449         keeps us from triggering a layout when we move around a datarid
25450         with a highlighted cell.
25451         (Edit): suspend layout when creating/positining the text box, and
25452         resume passing false so we don't ever actually re-layout.
25453         (ReleaseHostedControl): same.
25454         (EnsureTextBox): reformat slightly, and set WordWrap to false.
25455
25456         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
25457         control-key sequences should go to the datagrid - remove that
25458         lock.  Also, modify the conditions under which we move between
25459         cells when moving the cursor within a cell, and remove the "this"
25460         and "base" from field accesses.  We weren't even consistent, given
25461         they all were in the base class.
25462
25463 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
25464
25465         * Binding.cs : (.ctor)
25466           An obvious NRE fix for BindingTest.CtorNullTest().
25467
25468 2006-05-23  Chris Toshok  <toshok@ximian.com>
25469
25470         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
25471         them between lines.  This fixes some quirks editing cells in the
25472         datagrid.
25473
25474 2006-05-23  Jackson Harper  <jackson@ximian.com>
25475
25476         * TreeView.cs: Use begin/end update when doing expand/collapse all
25477         so that we don't get flicker on the scrollbar.
25478
25479 2006-05-23  Jackson Harper  <jackson@ximian.com>
25480
25481         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
25482         treenode calculations to be independant of the painting code. To
25483         do this nodes track a visible order which is calculated by the
25484         treeview.
25485         - Call new methods for expanding/collapsing nodes.  These methods
25486         use scrollwindow so we don't have to update everything below the
25487         node.
25488         * TreeView.cs: Refactored drawing and scrolling code.  We don't
25489         need to update nodes when drawing anymore or calculate scrollbar
25490         stuff.
25491         - Added new methods for expanding/collapsing nodes. These methods
25492         use ScrollWindow so as to not have to redraw all the nodes below.
25493         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
25494         we add/remove nodes or sort.
25495         - Handle removing the selected and the top node properly.
25496
25497 2006-05-23  Chris Toshok  <toshok@ximian.com>
25498
25499         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
25500         maybe this should actually happen in the datagrid code?
25501         (EndEdit): no need to invalidate anything, given that
25502         ReleaseHostedControl causes the datagrid to relayout, which
25503         invalidates everything anyway.
25504
25505         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
25506         in SetCurrentCell).
25507         (set_SelectionBackColor): call InvalidateSelection instead of
25508         Refresh.
25509         (set_SelectionForeColor): same.
25510         (BeginEdit): Flesh this out a bit.
25511         (CancelEditing): only do any of this if we're editing/adding.
25512         (EndEdit): same.
25513         (OnMouseDown): there's no need to cancel editing here, it's done
25514         in SetCurrentCell.
25515         (SetCurrentCell): only invalidate the current row header if it's a
25516         different row than the new one.
25517         (ShiftSelection): fix this to work like MS does.
25518         (ResetSelection): factor out the invalidation of selected_rows to
25519         InvalidateSelection.
25520         (SetDataSource): cancel any editing that's going on.
25521
25522         * DataGridColumnStyle.cs
25523         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
25524         call the non-interface version.
25525
25526         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
25527         header rectangle with the clip rectangle so we don't redraw the
25528         entire header for just a small area.  Gets rid of the last flicker
25529         when horizontally scrolling.
25530         (DataGridPaintRow): same.
25531
25532 2006-05-23  Mike Kestner  <mkestner@novell.com>
25533
25534         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
25535         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
25536         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
25537         Critical bug report.
25538
25539 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
25540
25541         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
25542           and this fixes #78493
25543
25544 2006-05-23  Miguel de Icaza  <miguel@novell.com>
25545
25546         * Theme.cs (GetSizedResourceImage): Scale images if the proper
25547         size is not found.  
25548         
25549         * FileDialog.cs: Do not change the background for the side bar as
25550         it wont work nicely with the theme, and also reduces the artifacts
25551         in rendering the icons (which I want to fix too).
25552
25553         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
25554         resources, not resgen resources. 
25555
25556         (PlatformDefaultHandler): Pull images using the new API.
25557
25558 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
25559
25560         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
25561           a reference to the hwnd and will not remove it unless there are
25562           no pending exposures (fixes #78341)
25563         * XplatUI.cs: Improved debug
25564
25565 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
25566
25567         * MenuAPI.cs : don't handle OnClick event when it was not the left
25568           button. Fixed bug #78487.
25569
25570 2006-05-23  Mike Kestner  <mkestner@novell.com>
25571
25572         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
25573         prefer submenus to the top menu for item lookup, to avoid popping down
25574         top-row items.
25575
25576 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
25577
25578         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
25579           Graphics.FillRectangle as the visual results are really bad (even
25580           on win). We now draw perfect arrows (and perfect shadows when the
25581           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
25582           Pen.DashPattern to draw the dots of each line.
25583
25584 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
25585
25586         * FileDialog.cs: Update the filename combobox when navigating through
25587           the ListView with the cursor keys. Fixes part 7 of bug #78446.
25588
25589 2006-05-22  Mike Kestner  <mkestner@novell.com>
25590
25591         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
25592         Fixes #78463.
25593
25594 2006-05-22  Mike Kestner  <mkestner@novell.com>
25595
25596         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
25597         requests. Fix a misspelled parameter and a copy paste exception error
25598         in Select.
25599
25600 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
25601
25602         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
25603           to get the same width/height (5/13) on X11 as the default font has on
25604           win32. This means that our DefaultFont emSize is smaller than the 
25605           the MS SWF equivalent (even thought the width/height stays the same)
25606
25607 2006-05-20  Jackson Harper  <jackson@ximian.com>
25608
25609         * MdiClient.cs:
25610         * MdiWindowManager.cs:
25611         * InternalWindowManager.cs: Make sure to use the border width from
25612         the theme.
25613
25614 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
25615
25616         * PrintDialog.cs: Implements printer details
25617
25618 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
25619
25620         * FileDialog.cs: Added focus handling for PopupButtonPanel.
25621           Fixes part 1 and 2 of bug #78446
25622
25623 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
25624
25625         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
25626           instead of sticking to the first ever calculated value
25627
25628 2006-05-19  Mike Kestner  <mkestner@novell.com>
25629
25630         * ComboBox.cs: fix mouse motion selection to use MousePosition and
25631         PointToClient, since Capture is set. Fixes #78344.
25632
25633 2006-05-19  Mike Kestner  <mkestner@novell.com>
25634
25635         * ListView.cs: match MS behavior in Details view where items are not
25636         drawn if Columns.Count == 0. 
25637         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
25638         Use a separate pen to draw the check, since changing the width affects
25639         the box as well.  Fixes #78454.
25640
25641 2006-05-18  Miguel de Icaza  <miguel@novell.com>
25642
25643         * ListView.cs: ArgumentOutOfRangeException, single versions of the
25644         exception should throw the name of the invalid argument.
25645
25646         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
25647         there are no files listed. 
25648
25649 2006-05-18  Jackson Harper  <jackson@ximian.com>
25650
25651         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
25652         up.
25653
25654 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
25655
25656         * Control.cs: Brought back our old UpdateZOrder method as a private
25657           function and switched our calls from UpdateZOrder to the new one.
25658           This fixes the Paint.Net canvas disappearing bug.
25659
25660 2006-05-18  Jackson Harper  <jackson@ximian.com>
25661
25662         * Theme.cs:
25663         * ThemeWin32Classic.cs:
25664         * InternalWindowManager.cs: Move the drawing into the theme,
25665         expose everything the theme should need from the window manager.
25666
25667 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
25668
25669         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
25670           from the call to NativeWindow to avoid walking up the parent chain
25671           further than needed (speeds up setting cursors and avoids setting
25672           the wrong cursor if a parent has another cursor defined)
25673         * Cursor.cs: When loading an icon as cursor, MS uses the center of
25674           the icon as hotspot, not what's contained as hotspot in the icon
25675           file. This fixes the perceived drawing offset seen with Paint.Net
25676         
25677 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
25678
25679         * XplatUIX11.cs: 
25680           - Store the calculated rectangle in Hwnd object and use it when 
25681             setting the client size
25682           - Force Toolwindows to always be type Dock, to ensure they're on top
25683
25684 2006-05-18  Mike Kestner  <mkestner@novell.com>
25685
25686         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
25687         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
25688         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
25689         Substantial refactoring to remove confusing nested classes. Coding
25690         standard and Get+Set->property refactorings.  Shift to index based
25691         highlighting in ComboListBox instead of constantly using IndexOf and
25692         Items[]. Add invalidations on resize for DropDownList to fix ugliness
25693         in FileDialog growth.  Draw borders manually since Simple mode needs
25694         to look like two independent controls.  Make listbox border
25695         conditional to DropDownStyle.  Improved OwnerDraw support.
25696
25697 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
25698
25699         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
25700         Don't set the disposed graphics to null, so we can throw the "right"
25701         exception if the graphics is reused later (added a flag to avoid 
25702         double disposing). Some behaviours are different under 2.0 and are
25703         filled under bug #78448.
25704
25705 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
25706
25707         * Control.cs: When double-buffering is enabled, we need to reset
25708           our graphics context between paint calls. Otherwise, any 
25709           transformations and other alterations on the context will 
25710           become cumulative (#77734)
25711
25712 2006-05-18  Mike Kestner  <mkestner@novell.com>
25713
25714         * ListView.cs: do focused item selection like MS on clicks. 
25715         Rework focus handling for ItemControl so LostFocus invalidates as
25716         well.
25717         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
25718         the ListView ItemControl has focus.
25719
25720 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
25721
25722         * XplatUIX11.cs: If client_window ends up being width or height zero
25723           due to border settings, move it off window inside whole_window (#78433)
25724
25725 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
25726
25727         * Mime.cs: Shrink the mime file cache correctly.
25728
25729 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
25730
25731         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
25732
25733 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25734
25735         * XplatUIX11.cs (AddExpose): More sanity checks
25736
25737 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25738
25739         * XplatUIX11.cs:
25740           - AddExpose: Don't add expose ranges outside the size of our
25741             window
25742           - Cast opacity values to Int32 to avoid crashes with certain
25743             values
25744           - Added disabled code paths that protect against illegal cross-
25745             thread painting (Developers.exe)
25746
25747 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25748
25749         * ProgressBar.cs: Invalidate the control when it's resized
25750           since block size is based on control size. (#78388)
25751
25752 2006-05-16  Miguel de Icaza  <miguel@novell.com>
25753
25754         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
25755         of setting the incoming argument to the "reset" value, we set the
25756         this.datamember to string.empty (before we were invalidating the
25757         incoming data).   
25758
25759         Fixes 78420
25760
25761 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25762
25763         * Form.cs: Only apply transparency settings after the form
25764           is created. (Fixes #77800)
25765
25766 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25767
25768         * ApplicationContext.cs: Grab the HandleDestroyed event so
25769           we know when to fire OnMainFormClosed 
25770
25771 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25772
25773         * Application.cs: Introduced sub-class to allow tracking of
25774           threads and centralized triggering of the event mess for
25775           ThreadExit, AppExit, etc..  (#76156)
25776
25777 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
25778
25779         * MimeIcon.cs:
25780           - Do not return a null icon index value for a mime subclass.
25781             Instead try the main mime type class too.
25782           - Seems that some newer distributions don't have a link to some
25783             gnome default icons anymore. So check the default gnome dir too.
25784           
25785
25786 2006-05-16  Jackson Harper  <jackson@ximian.com>
25787
25788         * MdiClient.cs: Don't paint the parent background image if we have
25789         our own background image.
25790
25791 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25792
25793         * Control.cs:
25794           - PerformLayout: Do not shrink space filled by DockStyle.Fill
25795             controls, all filled controls are supposed to overlap (#78080)
25796           - UpdateZOrder is supposed to update the control's z-order in the
25797             parent's z-order chain. Fixed to behave like that
25798           - BringToFront: Removed obsolete code
25799           - SendToBack: Simplyfied
25800           - SetChildIndex: Trigger layout calculations when Z-order changes
25801             since layout is done by z-order
25802
25803 2006-05-16  Chris Toshok  <toshok@ximian.com>
25804
25805         [ fixes bug #78410 ]
25806         * DataGrid.cs (set_AlternatingBackColor): use
25807         grid_drawing.InvalidateCells instead of Refresh().
25808         (set_BackColor): call grid_drawing.InvalidateCells.
25809         (set_BackgroundColor): use Invalidate instead of Refresh.
25810
25811         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
25812         invalidate the cell area.
25813
25814 2006-05-15  Chris Toshok  <toshok@ximian.com>
25815
25816         [ fixes bug #78011 ]
25817         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
25818         on to DataGridPaintRow.
25819         (DataGridPaintRow): take a clip argument, and only draw the cells
25820         which intersect it.  same with the not_usedarea.
25821
25822         * Theme.cs (DataGridPaintRow) add @clip parameter.
25823
25824         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
25825         XplatUI.ScrollWindow.
25826         (ScrollToRow): same.
25827
25828         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
25829         with last column which was causing a gray swath to appear with the
25830         XplatUI.ScrollWindow code.
25831
25832 2006-05-15  Chris Toshok  <toshok@ximian.com>
25833
25834         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
25835         use XplatUI.ScrollWindow.
25836         (VerticalScrollEvent): use XplatUI.ScrollWindow.
25837
25838 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
25839
25840         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
25841
25842 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
25843
25844         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
25845           file since there are no equivalent X11 cursors
25846
25847 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
25848
25849         * MonthCalendar.cs : DateTimePicker should reflect selected date
25850           on mouse*up*, not mouse*down*. Fixed originally reported part of
25851           bug #76474.
25852
25853 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
25854
25855         * TabControl.cs : When argument index is equal or more than tab
25856           count, just ignore. Fixed bug #78395.
25857
25858 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
25859
25860         * Control.cs: Dispose all child controls when control is diposed (#78394)
25861
25862 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25863
25864         * ColorDialog.cs: Finally it is possible to select the color with
25865           the text boxes
25866
25867 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25868
25869         * PrintDialog.cs: Fix typo
25870
25871 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25872
25873         * PrintDialog.cs: PrintDialog is not resizable
25874         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
25875           color. Made some ToolBar drawing methods protected virtual.
25876
25877 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
25878
25879         * PrintDialog.cs: Implementation of the PrintDialog
25880
25881 2006-05-12  Chris Toshok  <toshok@ximian.com>
25882
25883         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
25884         thumb, instead use MoveThumb.  This has the side effect of making
25885         most of the other thumb moving machinery use MoveThumb as well.
25886         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
25887         need to actually invalidate the rectangle where the new thumb will
25888         go.
25889         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
25890         We force an Update() after, so it's not as fast as it could be,
25891         but at least there's zero flicker and no droppings.
25892         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
25893         (UpdateThumbPos): add another argument (dirty), which says whether
25894         or not to calculate/add dirty regions which we later invalidate.
25895         For cases where we know we're going to use MoveThumb, we pass
25896         false for this.  Otherwise, pass true.
25897
25898 2006-05-12  Jackson Harper  <jackson@ximian.com>
25899
25900         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
25901         the status bar.
25902         
25903 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
25904
25905         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
25906           and GetClipRegion methods and UserClipWontExposeParent property.
25907         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
25908           overriding UserClipWontExposeParent property, setting to false, since
25909           Win32 handles the required expose messages to draw our clipped parent
25910           areas internally
25911         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
25912           PaintEventStart to set the user clip region if set.
25913         * Control.cs: 
25914           - Now internally tracking the Region for the control since we need to
25915             store it if the handle is not yet created and only set it when it
25916             becomes created. Before setting the region forced handle creation
25917           - Added code to draw the parents underneath a user-clipped region
25918         * Hwnd.cs: Added UserClip property
25919
25920 2006-05-12  Chris Toshok  <toshok@ximian.com>
25921
25922         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
25923         (set_Maximum): same.
25924         (set_Minimum): same.
25925         (set_SmallChange): same.
25926         (OnMouseUpSB): remove the call to refresh when releasing the
25927         thumb.  We shouldn't need it.
25928         
25929 2006-05-12  Miguel de Icaza  <miguel@novell.com>
25930
25931         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
25932         AutoSize set to None, we do not need to relayout everything, we
25933         just need to invalidate the current region.
25934
25935         (Draw): Do not draw the entire ClientArea, just redraw the
25936         clip area being passed.
25937
25938         * MdiClient.cs: Make MdiClient constructor with the Form argument
25939         internal. 
25940
25941 2006-05-12  Jackson Harper  <jackson@ximian.com>
25942
25943         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
25944         parents background image,  but strangely not their own.
25945         - (DrawStatusBarPanel): Take into account horizontal alignment
25946         when drawing the strings and icons.
25947
25948 2006-05-12  Mike Kestner  <mkestner@novell.com>
25949
25950         * ListBox.cs: avoid invalidations for focus when the collection is
25951         empty. 
25952
25953 2006-05-12  Chris Toshok  <toshok@ximian.com>
25954
25955         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
25956         invalidate the entire thumb area.  Call InvalidateDirty which
25957         limits the redraw to the thumb itself and surrounding pixels.
25958
25959         * XplatUIX11.cs (ScrollWindow): optimize copying.
25960         
25961 2006-05-12  Chris Toshok  <toshok@ximian.com>
25962
25963         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
25964         Figure out the positioning/layout in a single pass instead of
25965         multiple recursive invocations.  Speeds up the initial display of
25966         the data grid.  Also, make many things private that were
25967         originally public but unused outside this class.
25968
25969 2006-05-11  Jackson Harper  <jackson@ximian.com>
25970
25971         * MdiClient.cs: Improved layout code.
25972
25973 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
25974
25975         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
25976           not SelectedObject.
25977
25978 2006-05-11  Chris Toshok  <toshok@ximian.com>
25979
25980         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
25981         union of that will always be {0,0,width,height}.
25982
25983 2006-05-11  Jackson Harper  <jackson@ximian.com>
25984
25985         * Form.cs: Match MS's DefaultSize for forms (they must have
25986         changed the size in sp2).
25987
25988 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
25989
25990         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
25991
25992 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
25993
25994         * TextControl.cs : Fixed bug #78109. This incorrect position
25995           comparison caused crash on automatic line split.
25996         * TextBoxBase.cs : reduce duplicate code.
25997
25998 2006-05-10  Jackson Harper  <jackson@ximian.com>
25999
26000         * MdiClient.cs: Active form is only sent to the back when using
26001         the Next form functionality, when a form is clicked the current
26002         active shouldn't be sent to the back.
26003         - Layout the mdi windows when the container is first made visible.
26004         * Form.cs: Give the MdiClient a ref to the containing form when we
26005         create it.
26006         
26007 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26008
26009         * LinkLabel.cs : link_font could be uninitialized, so populate one
26010           before actual use. Fixed bug #78340.
26011
26012 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26013
26014         * XplatUIX11.cs : clipboard format native value is IntPtr.
26015           Fixed bug #78283.
26016
26017 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26018
26019         * Control.cs: 
26020           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
26021             which is passed up the parent chain by DefWndProc
26022           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
26023             to DefWndProc (#77956)
26024         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26025
26026 2006-05-10  Jackson Harper  <jackson@ximian.com>
26027
26028         * MdiClient.cs: We need to remove the controls from the mdi
26029         collection, when we close the window.
26030         * MdiWindowManager.cs: Special handling of closing mdi windows.
26031         * InternalWindowManager.cs: Make the close method virtual so the
26032         mdi window manager can handle it specially.
26033
26034 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
26035
26036         * DataGrid.cs:
26037           - Recalculate grid when the data source has changed
26038           - Matches styles provided by user from all data sources types
26039         * DataGridTableStyle.cs: For columns that provided by the user set the
26040         with the preferred value is there was unassigned.
26041         * CurrencyManager.cs: throw OnItemChanged event
26042
26043 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
26044
26045         * PictureBox.cs: Don't animate until handle is created. Start animation
26046           when handle is created.
26047
26048 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26049
26050         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26051           current codebase.
26052         * XEventQueue.cs: We don't need to provide the extra info
26053
26054 2006-05-10  Jackson Harper  <jackson@ximian.com>
26055
26056         * MdiClient.cs: If the mdi clients parent form has a background
26057         image set, we draw that background image for the mdi area's
26058         background.
26059
26060 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26061
26062         * TextBoxBase.cs: Set IBeam cursor (#78347)
26063
26064 2006-05-10  Mike Kestner  <mkestner@novell.com>
26065
26066         * ToolBar.cs: fix some text padding issues with ButtonSize
26067         calculation. Update the default size to match MS documentation.
26068         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26069         button size. Fixes #78296.
26070
26071 2006-05-10  Mike Kestner  <mkestner@novell.com>
26072
26073         * ListBox.cs: use is_visible for scrollbar positioning in case the
26074         control isn't on screen yet.  Fix off by one with Right vs Width
26075         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26076         
26077 2006-05-10  Jackson Harper  <jackson@ximian.com>
26078
26079         * X11Dnd.cs: Drop to a control with another control on top of it.
26080         * ToolBar.cs: Work on a copy of the buttons list, so that it can
26081         be modified in click handlers. TODO: Look for similar problems in
26082         other controls.
26083
26084 2006-05-09  Jackson Harper  <jackson@ximian.com>
26085
26086         * Form.cs: Window managers need the old window state when setting
26087         window state now.
26088         * InternalWindowManager.cs: Allow the base mdi window manager to
26089         handle more of the MDI only stuff (like maximize buttons).
26090         * MdiWindowManager.cs: Fix some snafus in changing the window
26091         state.  Add all the menu functionality, for both popup and
26092         maximized menus.
26093         * MdiClient.cs: When a new form is selected the currently
26094         activated form is sent to the back, this matches MS.
26095         - Implement a new method to activate the next mdi child window.
26096
26097 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
26098
26099         * Control.cs: 
26100           - Added new InternalCapture method to allow controls to prevent
26101             the capture behaviour on the click handlers
26102           - Switched to use InternalCapture
26103         * ComboBox.cs:
26104           - Using InternalCapture to prevent mouse captures from being released
26105             on mouse button release (Fixes #78100)
26106         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
26107           returns Form borders if a caption is present. (Fixes #78310)
26108
26109 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
26110
26111         * TreeNode.cs: Changed serialization .ctor to not require every field
26112           to be present. (#78265)
26113         * OwnerDrawPropertyBag.cs: Added serialization .ctor
26114
26115 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
26116
26117         * MimeIcon.cs: for is faster than foreach for strings.
26118
26119 2006-05-05  Mike Kestner  <mkestner@novell.com>
26120
26121         * CheckedListBox.cs: update check handling code to not use selected.
26122         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
26123         behavior for visual feedback, motion response, shift/ctrl handling,
26124         and properly deal with all 4 selection modes. Updates to bounds
26125         handling logic.  Add scroll wheel support. [Fixes #77842]
26126
26127 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26128
26129         * ListView.cs:
26130           - Moved adding of Implicit controls into .ctor. That way, subsequent
26131             creation of the controls will not cause them to think they are 
26132             toplevel windows (fixes #78200 header problem)
26133           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
26134           - Switched visibility setting of header control to use internal field
26135             to avoid triggering handle creation
26136           - Now checking if handle is created before causing a refresh when items
26137             are added (This makes us now match handle creation time with MS)
26138         * Splitter.cs: Removed loading of private splitter cursor, switched to
26139           Cursors version now that that is loading the right ones
26140         * Cursors.cs: Load proper splitter cursors from resources
26141         * Cursor.cs: Added second method of loading resource cursors for the 
26142           VS.Net users amongst us
26143
26144 2006-05-05  Mike Kestner  <mkestner@novell.com>
26145
26146         * ListView.cs: give header_control a minimum size based on the
26147         ListView size.
26148
26149 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26150
26151         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
26152           window seems to do that with metacity, so set that type. (#78120)
26153
26154 2006-05-05  Mike Kestner  <mkestner@novell.com>
26155
26156         * ListViewItem.cs: fix Details mode checkbox layout bug.
26157         * ThemeWin32Classic.cs: draw a ListView column header for unused space
26158         at the end of the header, if it exists. [Fixes for #78200]
26159
26160 2006-05-04  Jackson Harper  <jackson@ximian.com>
26161
26162         * MdiClient.cs: Add a helper property to get the container form.
26163         * MdiWindowManager.cs: We have to make sure to use the menu origin
26164         when drawing the icons and buttons, this fixes maximized window
26165         icons/buttons on win32.
26166         * InternalWindowManager.cs: Reset the restore captions when a
26167         window goes from Maximized to Minimized and vice versa. Move the
26168         DrawMaximizedButtons into the MdiWindowManager source, tool
26169         windows can't be maximized. NOTE: This could use a little
26170         refactoring if time ever permits.
26171         
26172 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26173
26174         * TextBox.cs: Add MWFCategoryAttributes
26175         * TextBoxBase.cs: Add MWFCategoryAttributes
26176         * Form.cs: Add MWFCategoryAttributes
26177
26178 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26179
26180         * Control.cs: Add MWFCategoryAttributes
26181         * ScrollableControl.cs: Add MWFCategoryAttributes
26182
26183 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
26184
26185         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
26186           Divider is true. Fix a little glitch in PropertyToolBar
26187           drawing code
26188
26189 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
26190
26191         * Control.cs:
26192           - Dispose: Call base.Dispose, this causes the disposed event
26193             to be fired (and probably other, more important stuff)
26194           - SetVisibleCore: Set is_visible to true after creating the
26195             window so that the window still gets created invisible (if
26196             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
26197             to generate a WM_ACTIVE message
26198         * Form.cs: Call Dispose when we want to destroy the window, instead of
26199           just destroying the handle (Dispose will do that for us)
26200         * XplatUIX11.cs:
26201           - RootWindow also needs a queue, so we can properly process the
26202             property change events from RootWindow (like Activate)
26203           - Generatic synthetic WM_ACTIVE message when the active window is
26204             being destroyed
26205
26206 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26207
26208         * LinkLabel.cs: Trigger a recalc of our label dimensions when
26209           bounds are changed
26210
26211 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
26212
26213         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
26214           for determining width and height (image might not be assigned if
26215           we're drawing an imagelist)
26216
26217 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26218
26219         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
26220         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
26221           height from system
26222         * Theme.cs: No longer returns hardcoded menu height, instead calls
26223           new driver method
26224         * Form.cs (OnLoad): Scaling happens before triggering Load events 
26225           on MS (# 78257)
26226
26227 2006-05-01  Mike Kestner  <mkestner@novell.com>
26228
26229         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
26230
26231 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
26232
26233         * TextBoxBase.cs: Removed Fixme
26234         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
26235
26236 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
26237
26238         * XplatUIX11.cs:
26239           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
26240             the rectangle relative to the parent, considering borders. We
26241             don't really want that.
26242           - ScrollWindow: Fixed warning to be more understandable
26243         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
26244           scrollbars and scroll only the visible area
26245         * RichTextBox.cs: Removed debug output
26246
26247 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26248
26249         * NumericUpDown.cs (Text): Just use base
26250         * UpDownBase.cs: Ensure txtView is created before using it
26251
26252 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
26253
26254         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
26255           casting to IntPtr to avoid 64bit overflow errors
26256
26257 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26258
26259         * Control.cs:
26260           - AllowDrop: Don't force handle creation.
26261           - CreateHandle: Added call to tell driver if we're allowed to drop
26262
26263 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26264
26265         * FileDialog.cs: Remember the last directory not only for the
26266           current instance but also for new FileDialog instances.
26267
26268 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
26269         
26270         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
26271           broke sending async messages
26272
26273 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26274
26275         * XplatUIX11.cs:
26276           - ScrollWindow: Fixed method. We finally generate expose events again
26277             for scrolled areas. This was causing 'garbage' when scrolling
26278             textbox and other controls that used ScrollWindow
26279           - Switched from using the regular queue for paint events to the MS 
26280             model of 'generating' paint events when the queue is empty.
26281             We use the new XQueueEvent.Paint subclass to store which windows
26282             need painting.
26283           - AddExpose now takes the x/y/width/height of the exposed area
26284             and inserts the window into the paint queue if not already there
26285           - InvalidateWholeWindow: Switched to use new AddExpose method
26286           - UpdateMessageQueue: Added which queue to monitor for paint events
26287           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
26288             the unlikely case nothing above handles it. We reset the expose
26289             pending states to get them off the queue.
26290           - GetMessage: Now pulls a paint event if no other events are in the
26291             queue
26292           - Invalidate: Switched to new AddExpose method
26293           - PeekMessage: Updated to understand pending paint events
26294           - UpdateWindow: Fixed logic bug. We were only updating if the window
26295             didn't need updating. Also switched to sending WM_PAINT directly,
26296             like MS does.
26297         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
26298           and random access Remove(). The random access is needed to handle
26299           UpdateWindow() where a WM_PAINT is sent directly without accessing
26300           the queue.
26301         * ScrollBar.cs: Added Update() calls to cause immediate updates to
26302           allow for better feedback when scrolling. Scrollbars are small and
26303           the immediate update should make it 'feel' more responsive without
26304           slowing things down. ScrollBar still needs it's invaliate logic
26305           updated to not always invalidate the whole bar on certain changes.
26306
26307 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26308
26309         * Control.cs:
26310         (BackColor): if the control does not support a transparent background,
26311         return the default backcolor when the parent backcolor is transparent.
26312
26313 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
26314
26315         * Application.cs: Updated to new StartLoop/GetMessage API
26316         * RichTextBox.cs: Provide some output on RTF parsing errors
26317         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
26318           new queue_id argument to GetMessage and PeekMessage to allow faster
26319           handling of per-thread queues in drivers.
26320         * Hwnd.cs: Added Queue tracking and property
26321         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
26322         * XEventQueue.cs: Added thread trackingA
26323         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
26324         * XplatUIX11.cs:
26325           - Implemented new per-thread queue
26326           - GetMessage: Fixed return/break behaviour on several cases. We were
26327             returning stale messages in some cases, instead of just processing
26328             the next message
26329
26330 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
26331
26332         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
26333
26334 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
26335
26336         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
26337           fixed off-by-one comparisons between Width/Height and Right/Bottom.
26338
26339 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
26340
26341         * PropertyGridView.cs: Fix drop down width.
26342
26343 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26344
26345         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
26346           a mess in DrawToolBar, so I removed one of them.
26347
26348 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26349
26350         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
26351           needed (clip). Otherwise we get artifacts.
26352
26353 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
26354
26355         * FixedSizeTextBox.cs: Added constructor to allow specifying which
26356           dimension is fixed
26357         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
26358           and switched FixedSizeTextBox to only be fixed vertical (#78116)
26359         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
26360           if it matches the scale base font (avoids unneeded scaling)
26361
26362 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
26363
26364         * X11DesktopColors.cs: One gtk_init_check should be enough
26365
26366 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
26367
26368         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
26369           match MS behaviour
26370
26371 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
26372
26373         * TextBoxBase.cs: 
26374           - Generate OnTextChanged for Backspace even if we're only deleting
26375             the current selection
26376           - When setting the Text property, only select all text if the
26377             control does not have focus when it is being set. Otherwise
26378             just place the cursor at the beginning of the control
26379
26380 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
26381
26382         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
26383           Added a little helper to draw PropertyGrid ToolBar with a different
26384           border and a different BackColor.
26385         * PropertyGrid.cs: Some background parts didn't get painted with the
26386           correct background color. Added a class that helps us to draw the
26387           correct border for PropertyGridView and a class that helps us to
26388           draw ToolBars with a different backcolor
26389         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
26390
26391 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
26392
26393         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
26394         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
26395
26396 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
26397
26398         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
26399           into the palette entries. Also, since we're working on a copy
26400           we needed to copy the palette back onto the bitmap.
26401         * Cursor.cs: Same fix as XplatUIWin32.cs.
26402
26403 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
26404
26405         * ImageListStreamer.cs: Need to read the var (or we're off)
26406
26407 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
26408
26409         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
26410           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
26411           TextBoxBase.cs: Unused var fixes
26412         * AxHost.cs: Small 2.0 fix
26413         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
26414           as it seems that is what at least Metacity expects. This will make
26415           icons show up on 64bit platforms. We still have some 64bit size
26416           issues, though, since the startup app window size still won't match.
26417
26418 2006-04-25  Mike Kestner  <mkestner@novell.com>
26419
26420         * *.cs: cleanup newly reported exception var unused warnings.
26421
26422 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
26423
26424         * ThemeWin32Classic.cs: Button image alignment now matches exactly
26425           ms
26426
26427 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
26428
26429         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
26430           image. The image position is always the same, no matter if the
26431           button is pressed or not.
26432
26433 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
26434
26435         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
26436           selection and set the correct filename for SaveFileDialog.
26437           Patch by Emery Conrad.
26438
26439 2006-04-24  Mike Kestner  <mkestner@novell.com>
26440
26441         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
26442         check for item.X outside the ClientRect instead of item.Y. Fixes
26443         #78151.
26444
26445 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26446
26447         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
26448         trust that value blindly and do some sanity check. Fixes bug #77814.
26449
26450 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26451
26452         * ImageListStreamer.cs: save the mask as a 1bpp image.
26453
26454 2006-04-21  Mike Kestner  <mkestner@novell.com>
26455
26456         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
26457         pass Checked and Indeterminate to the Theme Engine. Improve
26458         encapsulation with ListBox.
26459         * ListBox.cs: Keep a StringFormat instead of calculating it every item
26460         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
26461         nested types.  Move all CheckState functionality to CheckedListBox.
26462         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
26463         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
26464         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
26465         single base list. Fix scrollbar sizing and placement to mirror MS.
26466         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
26467         used.
26468         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
26469         for CheckedListBox by using new DrawItemState info.  Center the
26470         checkboxes on the items. Use new StringFormat property.
26471
26472 2006-04-18  Jackson Harper  <jackson@ximian.com>
26473
26474         * Form.cs: MdiChildren don't do default locations the same way as
26475         regular forms.  This prevents a crash when trying to position the
26476         mdi windows.
26477
26478 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
26479
26480         * PropertyGridTextBox.cs: Formatting, copyright
26481         * PropertiesTab.cs: Formatting
26482         * PropertyGrid.cs: Formatting
26483         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
26484           click toggling of values
26485           
26486 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
26487
26488         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
26489         * Control.cs (.ctor): verify_thread_handle is static, don't reset
26490           every time a control is created
26491         * Application.cs: Removed obsolete EnableRTLMirroring method
26492
26493 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
26494
26495         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
26496         SelectedIndex to -1. Fixes bug #78121.
26497
26498 2006-04-17  Jackson Harper  <jackson@ximian.com>
26499
26500         * Binding.cs: Handle null values for Current and BindingContext.
26501         This occurs when binding is a little delayed.
26502         * CurrencyManager.cs: return null for Current when there are no
26503         items in the list.
26504         - Hookup to the listchanged event on the DataView and update
26505         bindings when the list is changed.  This fixes late binding of
26506         controls.
26507
26508 2006-04-17  Jackson Harper  <jackson@ximian.com>
26509
26510         * X11Dnd.cs:
26511         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
26512         Ringenbach.
26513
26514 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
26515
26516         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
26517           place
26518         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
26519           with the correct ButtonState
26520
26521 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
26522
26523         * XplatUIX11.cs: Improved distinguishing between window types to
26524           tell the WM a type closer to what the app wants (Fixes #78107)
26525
26526 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
26527
26528         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
26529           GrabHandle
26530
26531 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
26532
26533         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
26534           drawing code to reflect the size grip changes
26535
26536 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26537
26538         * ImageListStreamer.cs: fix handling of the mask that follows the main
26539         bitmap when deserializing and serialize it properly. The generated mask
26540         should better be a 1bpp image, but I'll do that later.
26541
26542 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
26543
26544         * FileDialog.cs: Show something in the DirComboBox on *nix if the
26545           path doesn't fit into some of our Current.Places
26546
26547 2006-04-13  Jackson Harper  <jackson@ximian.com>
26548
26549         * ComboBox.cs: Use borders instead of drawing our own decorations,
26550         try to obey correct rules for heights.
26551         * Theme.cs:
26552         * ThemeNice.cs:
26553         * ThemeClearLooks.cs:
26554         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
26555         this is now handled by borders.
26556         - Remove unused DrawListBoxDecorationSize method.
26557         
26558 2006-04-13  Mike Kestner  <mkestner@novell.com>
26559
26560         * MenuAPI.cs: null guarding for the disbled click check fixes crash
26561         reported by Alex.
26562
26563 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
26564
26565         * ThemeWin32Classic.cs: 
26566           - Fixed CPDrawStringDisabled
26567           - Corrected drawing of disabled menu items
26568           - Fixed drawing of disabled radio buttons (bug #78095)
26569           - Draw check in a disabled CheckBox with color ControlDark 
26570
26571 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26572
26573         * Form.cs: Use the provided width when calculating the menu size;
26574           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
26575           and ClientSize.Width won't be updated yet
26576         * Application.cs: Use Visible instead of Show() to make form visible,
26577           this way we create the handle later and menusize is considered
26578
26579 2006-04-12  Mike Kestner  <mkestner@novell.com>
26580
26581         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
26582         reporting.
26583
26584 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26585
26586         * TextBox.cs: Implemented context menu
26587
26588 2006-04-12  Mike Kestner  <mkestner@novell.com>
26589
26590         * ListView.cs: implement box selection. fixes #77838.
26591         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
26592
26593 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
26594
26595         * XplatUIX11.cs: Added setting of window type when transient window
26596           is created (metacity would move it otherwise)
26597         * X11Structs.cs: Added WINDOW_TYPE atoms
26598         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
26599           background (the control is Opaque but still wants transparent
26600           backgrounds)
26601
26602 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26603
26604         * Control.cs: Added OnPaintBackgroundInternal to allow controls
26605           that set Opaque but don't mean it (like all ButtonBase-derived
26606           controls) to still draw their background
26607         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
26608           the background
26609
26610 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
26611
26612         * Control.cs (PaintControlBackground): Set the graphics object
26613           on our PaintEvent to null to prevent it from being disposed
26614           when the PaintEvent gets disposed
26615
26616 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
26617
26618         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
26619         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
26620
26621 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26622
26623         * Control.cs: 
26624           - Added transparency check to BackColor property. Transparent
26625             backgrounds are only allowed if the control styles permit it
26626           - Added recursive painting of parent control background and
26627             foreground if a control with a transparent backcolor is drawn
26628             (Thanks to Tim Ringenback for providing his 'hack' as a base
26629              for this patch) Fixes #77985 and #78026.
26630           - Added Opaque style check before calling OnPaintBackground, no
26631             need to draw the background if the control is opaque
26632           - Removed ControlAccessibleObject owner variable (inherited from
26633             base, no need to define again)
26634           - Added some documentation links explaining the drawing events
26635             and styles
26636
26637 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
26638
26639         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
26640           that the affected control is the located at the left border of our
26641           parent (Fixes #77936)
26642
26643 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26644
26645         * TextBoxBase.cs: When rendering disabled or readonly controls,
26646           draw the background with 'Control' instead of 'Window' color as
26647           long as the user hasn't specifically set a color
26648
26649 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
26650
26651         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
26652           since that won't be updated if the user types text (only if it's
26653           programatically set)
26654
26655 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26656
26657         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
26658           layout changes do to app-triggered resizes will have the proper
26659           display rectangle for layout
26660
26661 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
26662
26663         * ThemeWin32Classic.cs:
26664           - Make use of the SystemBrushes and SystemPens wherever possible
26665           - Corrected some highlight colors
26666           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
26667             drawing
26668         * Theme.cs: Added Empty field to CPColor struct
26669
26670 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26671
26672         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
26673           is displayed when calculating the display rectangle. Thanks to Mike
26674           for teaching me the err of my ways.
26675
26676 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
26677
26678         * ScrollableControl.cs:
26679           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
26680             (instead of 0,0) and we now return the real width/height instead of
26681             just the clientrectangle, adjusted for padding. The rectangle is
26682             now cached and created by the new CalculateDisplayRectangle method.
26683           - Created new CalculateDisplayRectange method, which basically does
26684             what get_DisplayRectangle() did originally, but now using the 
26685             right edge instead of DisplayRectangle to determine the size of
26686             our scrollbars
26687           - get_Canvas(): Fixed it to properly calculate canvas for 
26688             right/bottom controls which seem to be placed to the right/bottom
26689             of any controls that have a fixed location
26690           - Removed TODO that's taken care of
26691           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
26692             and SetDisplayRectLocation according to new MSDN2 docs
26693           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
26694             event when that is called, this is added for compatibility
26695           - ScrollControlIntoView(): Implemented.
26696           - Switched scrollbars to be implicit, they shouldn't be selectable
26697         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
26698           call it when the active control is set/changed
26699         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
26700         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
26701           implicit_control variable (used for native Win32 message generation)
26702         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
26703           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
26704         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
26705         * XplatUIStructs.cs: Added ScrollBarCommands enum
26706
26707 2006-04-10  Jackson Harper  <jackson@ximian.com>
26708
26709         * ButtonBase.cs:
26710         * CheckedListBox.cs:
26711         * ComboBox.cs:
26712         * DataGrid.cs:
26713         * DataGridView.cs:
26714         * Form.cs:
26715         * GroupBox.cs:
26716         * ListBox.cs:
26717         * PrintPreviewControl.cs:
26718         * ProgressBar.cs:
26719         * PropertyGrid.cs:
26720         * Splitter.cs:
26721         * StatusBar.cs:
26722         * TrackBar.cs:
26723         * UpDownBase.cs: Fixup base event overrides.
26724         
26725 2006-04-06  Mike Kestner  <mkestner@novell.com>
26726
26727         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
26728         all user-initiated value changes to min <= value <= max-thumbsz+1.
26729         (set_Value): check for vert/horiz when calculating new thumb position.
26730         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
26731         like MS does.
26732         (OnMouseMoveSB): refactor the thumb dragging code and refine
26733         invalidation logic to reduce flicker.
26734         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
26735         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
26736         (UpdateThumbPosition): small code readability cleanup
26737
26738 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
26739
26740         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
26741           different
26742
26743 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
26744
26745         * ThemeNice.cs: Use a better graphics effect when a button is pressed
26746
26747 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
26748
26749         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
26750         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
26751           This dramatically reduces the number of Pen.Dispose calls. 
26752           Where possible call ResPool methods only once instead of calling it
26753           over and over again (for example for the same color).
26754
26755 2006-04-06  Mike Kestner  <mkestner@novell.com>
26756
26757         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
26758         Also remove an unused private field on the collection. Fixes #77972.
26759
26760 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
26761
26762         * ThemeNice.cs: Added ToolBar drawing code
26763
26764 2006-04-06  Mike Kestner  <mkestner@novell.com>
26765
26766         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
26767         I'm assuming that means we need to look up the toplevel for the
26768         provided control. Fixes the crash trace in #77911 but exposes another
26769         crash in some strange reflection usage in NDocGui.
26770
26771 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
26772
26773         * ThemeNice.cs: Gave it a little silver touch and added Images
26774           method
26775         * FontDialog.cs: FontDialog is not resizable
26776         * FileDialg.cs: Added SizeGripStyle.Show
26777
26778 2006-04-05  Jackson Harper  <jackson@ximian.com>
26779
26780         * KeyboardLayouts.cs: Remove warning.
26781
26782 2006-04-05  Jackson Harper  <jackson@ximian.com>
26783
26784         * Control.cs: Enable OnPaintInternal so we can use it for drawing
26785         all of our controls instead of Paint +=.
26786         * ListBox.cs:
26787         * ListView.cs:
26788         * MenuAPI.cs:
26789         * MessageBox.cs:
26790         * NotifyIcon.cs:
26791         * ProgressBar.cs:
26792         * ScrollBar.cs:
26793         * Splitter.cs:
26794         * StatusBar.cs:
26795         * TabControl.cs:
26796         * TextBoxBase.cs:
26797         * ToolBar.cs:
26798         * TrackBar.cs:
26799         * UpDownBase.cs:
26800         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
26801         use OnPaintInternal. Remove Width/Height and Visible checks in
26802         paint handler, this is done at a higher level now.
26803         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
26804         * PaintEventArgs.cs: Add a handled flag so controls that don't
26805         want anymore painting after OnPaintInternal can make sure OnPaint
26806         isn't called.
26807
26808 2006-04-05  Mike Kestner  <mkestner@novell.com>
26809
26810         * Form.cs: fix the menu WndProc hacks to respect the native enabled
26811         state of the form, so that we don't process events when Modal dialogs
26812         are up. Fixes #77922.
26813
26814 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
26815
26816         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
26817           checking is done.
26818
26819 2006-04-05  Mike Kestner  <mkestner@novell.com>
26820
26821         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
26822
26823 2006-04-05  Mike Kestner  <mkestner@novell.com>
26824
26825         * ListView.cs (HeaderMouseMove): null guarding for the over column
26826         when setting up the drag_to_index.  Fixes #78015.
26827
26828 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
26829
26830         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
26831           in the taskbar. Transient windows seem to accomplish that.
26832
26833 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
26834
26835         * Form.cs:
26836           - Re-enabled CreateParams.X/Y code for FormStartPosition
26837           - Added code for manual placement when creating the Control
26838           - Incomplete patch to treat MDI forms differently when
26839             setting the ClientSizeCore. (Still need to figure out handling
26840             x/y coords there)
26841         * XplatUIX11.cs:
26842           - When we're explicitly setting the X/Y position of a non-Child
26843             window, let the WM know. Metacity really wants this.
26844
26845 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26846
26847         * ThemeNice.cs: Added CPDrawButton
26848
26849 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26850
26851         * ThemeNice.cs: Changed the color for focused buttons and activated
26852           the arrows for small scroll buttons.
26853
26854 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26855
26856         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
26857           anymore. Changed some method modifiers to protected (virtual)
26858         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
26859           changes
26860         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
26861           Updated drawing of menus, buttons and progressbars; added
26862           CPDrawBorder3D 
26863
26864 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26865
26866         * ImageListStreamer.cs: implemented serialization/deserialization
26867         of the images.
26868
26869 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
26870
26871         * ThemeWin32Classic.cs:
26872           - Removed all the DrawFrameControl stuff; CPDrawButton,
26873             CPDrawCheckBox and CPDrawRadioButton are now handled directly
26874             inside the methods
26875           - Updated and corrected the drawing code of CPDrawButton,
26876             CPDrawCheckBox and CPDrawRadioButton to better match ms
26877           - Updated theme checkbox and radiobutton code to use the CP*
26878             methods
26879
26880 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
26881
26882         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
26883           bug is fixed
26884
26885 2006-03-31  Jackson Harper  <jackson@ximian.com>
26886
26887         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
26888         sometimes.
26889         * UpDownBase.cs: Don't CreateGraphics manually, use a
26890         Refresh. Ideally we would invalidate the correct areas here.
26891
26892 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
26893
26894         * XplatUIX11.cs: 
26895           - We now track the mapping state of windows. If a window (or 
26896             one of it's parents) is not mapped we no longer permit
26897             WM_PAINT messages to be generated since we'd otherwise get 
26898             lots of BadMatch X errors. Jackson did all the work figuring
26899             out the problem.
26900           - Destroying the caret if the window it's contained in is 
26901             destroyed. Can't use regular DestroyCaret method since it
26902             might fall into a drawing function (trying to remove the
26903             caret) and with that generate new BadMatch errors. Again,
26904             Jackson tracked this down.
26905           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
26906             make sure we send the messages to all windows. (The old code
26907             would send the WM_DESTROY to the window, and then all child
26908             windows would be 'gone' because the WM_DESTROY handle lookup
26909             would no longer find the destroyed window)
26910         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
26911         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
26912
26913 2006-03-31  Jackson Harper  <jackson@ximian.com>
26914
26915         * ScrollableControl.cs: Dont recalc if we are not visible.
26916
26917 2006-03-31  Mike Kestner  <mkestner@novell.com>
26918
26919         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
26920         the visibility branch.
26921
26922 2006-03-31  Jackson Harper  <jackson@ximian.com>
26923
26924         * ScrollBar.cs: Cap values when incrementing/decrementing.
26925
26926 2006-03-31  Mike Kestner  <mkestner@novell.com>
26927
26928         * MenuAPI.cs: setup menu.tracker for popup/context menus.
26929         * ToolTip.cs: guard against timer expirations with no active control.
26930         Not sure why it happened.
26931
26932 2006-03-31  Mike Kestner  <mkestner@novell.com>
26933
26934         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
26935         text.
26936         * ToolTip.cs: Position the tooltip based on where the cursor is at
26937         popup time, not at MouseEnter time.  Add a Down state so that we don't
26938         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
26939         positioning offset. Lookup DisplaySize at positioning time, since it
26940         can theoretically change during invocation.
26941         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
26942         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
26943
26944 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26945
26946         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
26947           Fixes behaviour when the Text property of the box is String.Empty
26948
26949 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
26950
26951         * XplatUIX11.cs: Only send mouseleave for our client windows, not
26952           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
26953           a window)
26954
26955 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26956
26957         * FileDialog.cs: Visual enhancement for the popup buttons in 
26958           PopupButtonPanel
26959
26960 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26961
26962         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
26963           code
26964
26965 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
26966
26967         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
26968           highlighted menu items to match ms
26969
26970 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
26971
26972         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
26973
26974 2006-03-30  Mike Kestner  <mkestner@novell.com>
26975
26976         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
26977         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
26978         go active to account for HotLight to Selected transition.
26979         * MenuItem.cs: add internal Selected prop. Fill out the Status
26980         property by calculating it from item info. Add HotLight,
26981         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
26982
26983 2006-03-30  Mike Kestner  <mkestner@novell.com>
26984
26985         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
26986
26987 2006-03-29  Jackson Harper  <jackson@ximian.com>
26988
26989         * Form.cs: Implement TODO.
26990
26991 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
26992
26993         * PrintPreviewDialog.cs: Implemented missing methods and events; still
26994           missing proper dialog setup in the constructor
26995
26996 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
26997
26998         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
26999         * Control.cs:
27000           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27001           - Fixed ResetBindings and removed TODO
27002           - Added check for cross-thread calls to get_Handle()
27003           - Added Marshaller attribute for set_Font to satisfy class status
27004         * FontDialog.cs: Removed TODOs that seemed implemented
27005         * UpDownBase.cs: Removed unneeded TODO and Fixme
27006         * MessageBox.cs: Implemented support for Default button and removed TODO
27007         * FileDialog.cs: Removed obsolete TODO
27008         * DomainUpDown.cs: Removed obsolete TODO
27009         * ButtonBase.cs: Removed obsolete TODO
27010         * XplatUIWin32.cs: Removed obsolete TODO
27011         * Form.cs:
27012           - Removed obsolete TODO
27013           - Calling CheckAcceptButton when the acceptbutton is changed to allow
27014             internal status updates
27015           - Making sure the active control is selected when the control is created
27016         * CurrencyManager.cs: Removed obsolete TODO
27017
27018 2006-03-29  Mike Kestner  <mkestner@novell.com>
27019
27020         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27021         of PrintPreviewDialog and RichTextBox.
27022
27023 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27024
27025         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27026           DarkDark, Light and LightLight colors for a specific color
27027         * ThemeWin32Classic.cs:
27028           - Use Button drawing code to draw RadioButtons and CheckBoxes with
27029             Appearance = Button 
27030           - Make use of the new ResPool helper CPColor
27031           - Draw ProgressBar and StatusBar with correct 3D borders
27032
27033 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27034
27035         * ColorDialog.cs: Return selected color. Fixes bug #77940.
27036
27037 2006-03-28  Mike Kestner  <mkestner@novell.com>
27038
27039         * ListView.cs: fix Icon layout to plan for scrollbar widths when
27040         calculating col/row counts.
27041
27042 2006-03-28  Mike Kestner  <mkestner@novell.com>
27043
27044         * ColumnHeader.cs:
27045         * ListView.cs:
27046         * ListViewItem.cs:
27047         * Menu.cs: 
27048         switch to explicit interface method implementation for some methods
27049         corcompare identifies as inconsistent with MS.
27050
27051 2006-03-28  Mike Kestner  <mkestner@novell.com>
27052
27053         * MainMenu.cs: 
27054         * Menu.cs:
27055         add a few missing methods from the class status output.
27056
27057 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
27058
27059         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27060           correct.
27061
27062 2006-03-28  Mike Kestner  <mkestner@novell.com>
27063
27064         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27065
27066 2006-03-27  Mike Kestner  <mkestner@novell.com>
27067
27068         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27069         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27070
27071 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
27072
27073         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27074
27075 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27076
27077         * ThemeWin32Classic.cs:
27078           - GroupBox: Inserted a little gap between the text and the lines
27079             on the right side
27080           - Made the code in CPDrawBorder3D more readable
27081           - Corrected the drawing location of the up and down arrows in 
27082             CPDrawScrollButton
27083
27084 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27085
27086         * ControlPaint.cs: Corrected line widths in DrawBorder for
27087           ButtonBorderStyle Inset and Outset
27088
27089 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27090
27091         * ThemeWin32Classic.cs:
27092           - Rewrote the totally broken CPDrawBorder3D method. That was
27093             one of the main problems for the terrific ThemeWin32Classic
27094             look
27095           - Updated and corrected Button drawing
27096           - Correct the dimensions of the SizeGrip to match ms ones
27097           - Removed a small drawing glitch in DrawComboBoxEditDecorations
27098         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
27099           Border3DStyle.Sunken to match ms.
27100
27101 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27102
27103         * ThemeWin32Classic.cs: First small part of the "de-uglify
27104           ThemeWin32Classic" effort, SizeGrip
27105
27106 2006-03-24  Jackson Harper  <jackson@ximian.com>
27107
27108         * XplatUIX11.cs: Give a max idle time of one second, this matches
27109         MS and forces an Idle event every second when there are no other
27110         events in the queue.
27111
27112 2006-03-24  Mike Kestner  <mkestner@novell.com>
27113
27114         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
27115         * ListView.Item.cs: fix layout issues with null image lists and images
27116         smaller than checkbox size.
27117         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
27118         mode like MS does.  It's weird, but consistent.  ;-)
27119         Fixes #77890.
27120
27121 2006-03-24  Mike Kestner  <mkestner@novell.com>
27122
27123         * ListView.cs: Scroll wheel support for the item control.  Fixes
27124         #77839.
27125
27126 2006-03-23  Jackson Harper  <jackson@ximian.com>
27127
27128         * ScrollableControl.cs: Special case negative sized areas, not
27129         zero.
27130         * MonthCalendar.cs: Save the rect of the clicked date so we can
27131         use it for invalidation.
27132         - Try to cut down on the number of invalidates
27133         - Invalidate the rect the mouse is over and was over when moving
27134         the mouse, so we get the focus box following the cursor.
27135
27136 2006-03-23  Mike Kestner  <mkestner@novell.com>
27137
27138         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
27139         focus rectangle drawing. Fixes #77835.
27140
27141 2006-03-23  Mike Kestner  <mkestner@novell.com>
27142
27143         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
27144         the if and else if and reverting back to the original == check on the
27145         None conditional.
27146
27147 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27148
27149         * FontDialog.cs: Update the example panel if the selected index of
27150           the fontListBox changes.
27151
27152 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27153
27154         * FileDialog.cs: Make FileDialog remember which directory it was in
27155           last in the same execution.
27156
27157 2006-03-22  Mike Kestner  <mkestner@novell.com>
27158
27159         * FileDialog.cs: make the DropDownMenu on the toolbar display
27160         RadioChecks since they are mutually exclusive and that's what MS does.
27161
27162 2006-03-22  Mike Kestner  <mkestner@novell.com>
27163
27164         * Theme.cs: add Color param to CPDrawMenuGlyph.
27165         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
27166         checks and radio marks and arrows are visible on highlighted items.
27167         * ControlPaint.cs: update to use new Theme signature.
27168
27169 2006-03-22  Mike Kestner  <mkestner@novell.com>
27170
27171         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
27172         is active. Fixes #77870.
27173
27174 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27175
27176         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
27177           to be focused/selected after startup
27178
27179 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27180
27181         * ColorDialog.cs: 
27182           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
27183             CustomColors and ShowHelp properties
27184           - Some internal rewrites to get better results when using the
27185             ColorMatrix
27186
27187 2006-03-22  Mike Kestner  <mkestner@novell.com>
27188
27189         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
27190         HoverSelection.  Fixes #77836.
27191
27192 2006-03-22  Mike Kestner  <mkestner@novell.com>
27193
27194         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
27195         ToggleButtons.  (De)Sensitize the Back button around a stack count of
27196         1, not 0.  Update ButtonSize based on a pixel count of the win32
27197         control.  Adjust the toolbar size/location for new button size.
27198
27199 2006-03-22  Jackson Harper  <jackson@ximian.com>
27200
27201         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
27202         true.
27203         * ScrollBar.cs: When doing increments and decrements we need to
27204         set the Value property so that ValueChanged gets raised. A
27205         possible optimization here would be to make an internal SetValue
27206         that doesn't invalidate immediately.
27207         * ToolTip.cs: Tooltips get added to their container (when
27208         supplied) so they get disposed when the container is disposed.
27209         - Don't create tooltips for String.Empty. This prevents all these
27210         little 2-3 pixel windows from showing up when running nunit-gui
27211         and driving me mad.
27212         * Form.cs: Don't set topmost when setting the owner if the handles
27213         haven't been created yet.  The topmost set will happen when the
27214         handles are created.
27215
27216 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
27217
27218         * XplatUIX11.cs:
27219           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
27220           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
27221             visible (to allow them to recalculate their sizes)
27222
27223 2006-03-21  Mike Kestner  <mkestner@novell.com>
27224
27225         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
27226         methods. Removed a ton of redundant code.  Still not really happy with
27227         the border rendering, but I think that's mainly because of the
27228         ControlDarkDark being black instead of a dark grey. Depending on how 
27229         close we want to be, we might want to revisit those color choices.
27230         Among the new features added during the refactor were DropDownArrow
27231         pressed rendering, Disabled image rendering.  Proper flat appearance
27232         boundary rendering.  Removed the Divider and Wrapping dividers since I
27233         can't figure out any combination of themes and conditions to make the
27234         MS control draw a horizontal line on a toolbar despite what the
27235         Divider property docs indicate.
27236         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
27237         conditions and incorrect layout.  Updated to coding standard.
27238         * ToolBarButton.cs: refactored layout and positioning code from
27239         ToolBar to here.  Invalidate wherever possible instead of forcing
27240         redraws of the whole toolbar. 
27241         (Known remaining issues: explicit ButtonSize smaller than provided
27242         images.)
27243
27244 2006-03-21  Mike Kestner  <mkestner@novell.com>
27245
27246         * ContextMenu.cs (Show): use the position parameter instead of just
27247         showing at the MousePosition.
27248
27249 2006-03-21  Jackson Harper  <jackson@ximian.com>
27250
27251         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
27252         control handle this.
27253         * TreeNodeCollection.cs: If we are clearing the root node we need
27254         to reset top_node so calcs can still happen.
27255         * ThemeWin32Classic.cs: This is a Flags so we need to check
27256         properly.
27257         
27258 2006-03-21  Jackson Harper  <jackson@ximian.com>
27259
27260         * DataGrid.cs: Create columns when the binding context has been
27261         changed.
27262         * X11Structs.cs: Keysyms are uints.
27263         - Add size to fix build.
27264
27265 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
27266
27267         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
27268           XplatUIOSX.cs: 
27269           - Added ResetMouseHover method to allow controls to retrigger
27270             hovering if they need it more than once
27271           - Implemented MouseHoverTime and MouseHoverSize properties
27272         * Timer.cs: Start() must reset the interval
27273         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
27274           properties
27275
27276 2006-03-21  Jackson Harper  <jackson@ximian.com>
27277
27278         * X11Keyboard.cs: improved layout detection. Move the nonchar
27279         tables into this file.
27280         * KeyboardLayouts.cs: Move the tables into resource files.
27281
27282 2006-03-21  Mike Kestner  <mkestner@novell.com>
27283
27284         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
27285
27286 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
27287
27288         * Mime.cs: Various speed optimizations. Looking up mime types
27289           is now 2 times faster than before
27290
27291 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
27292
27293         * CreateParams.cs: Added internal menu field
27294         * Control.cs: 
27295           - Switched call order for UpdateBounds; now we always call
27296             the one that also takes ClientSize, and we're calculating the 
27297             client size via driver method in the others. The previous
27298             method of tracking client size by difference wasn't working
27299             for forms where even the starting client size wouldn't match
27300             the overall form size (due to borders) (Part of fix for #77729)
27301           - CreateParams(): Do not use parent.Handle unless the handle is
27302             already created. Causes havoc with Nexxia and throws off our
27303             creation of controls
27304         * XplatUIX11.cs:
27305           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
27306           - Switched handling of ConfigureNotify over to new PerformNCCalc 
27307             method (consolidates code)
27308           - Changed RequestNCRecalc to use new PerformNCCalc method
27309           - Added calls to RequestNCRecalc when menus and borders are changed
27310             to allow app to set NC size. (Part of fix for #77729) This matches
27311             when MS send a WM_NCRECALC on Win32 windows.
27312           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
27313             (Part of fix for #77729). This matches what MS does, they also
27314             send that message when the form is made visible.
27315           - XException.GetMessage: Improved usability of X errors by including
27316             a translation of the window into Hwnd and Control class
27317           - Improved debug info for window creation, reparenting and destruction
27318           - Created helper method WindowIsMapped() [Currently not used]
27319         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
27320         * Form.cs:
27321           - CreateParams: Now setting our menu on the new internal menu field
27322           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
27323             avoid calculating the same property twice
27324         * Hwnd.cs:
27325           - Improved usability of ToString() for debugging purposes
27326           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
27327             determine the height of the menu, instead of just the font. This
27328             required to also create a graphics context and to keep a bmp 
27329             around (for performance reasons)
27330
27331 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
27332
27333         * MenuAPI.cs: Added OnMouseUp method
27334         * Form.cs:
27335           - Now remembering the requested client size, avoids size errors
27336           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
27337             instead of base if the menu is active. This is required due to
27338             control now capturing and releasing on down/up and it would
27339             prematurely release our menu capture
27340
27341 2006-03-17  Jackson Harper  <jackson@ximian.com>
27342
27343         * KeyboardLayouts.cs: Add the czech layouts.
27344
27345 2006-03-16  Jackson Harper  <jackson@ximian.com>
27346
27347         * Control.cs: Use the viewport space when sizing not the controls
27348         client size, so things like ScrollableControl that effect the
27349         viewport size (when scrollbars are added) are computed correctly.
27350         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
27351         of ManagerEntrys.
27352         - Handle creating BindingManagers for null data sources.
27353         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
27354         source, otherwise when rows are added they are added to the 'fake'
27355         datasource and we will crash when trying to set the position in
27356         those rows.
27357         - Use Implicit scrollbars on the datagrid so they arent
27358         selectable.
27359         
27360 2006-03-16  Jackson Harper  <jackson@ximian.com>
27361
27362         * Binding.cs:
27363         * InternalWindowManager.cs:
27364         * MdiWindowManager.cs:
27365         * X11Keyboard.cs: I really want Mike to love me again (fix
27366         compiler warnings).
27367
27368 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
27369
27370         * DataGrid.cs:
27371           - OnMouseDown: Switch to editing mode when clicking on the cell
27372                          even if we're clicking on the cell that's currently 
27373                          selected
27374           - ProcessGridKey: Left/Right now wrap like MS.Net does
27375           - ProcessGridKey: Tab now knows to add a new row when tab is
27376                             pressed in the cell of the last column of the 
27377                             last row
27378           - ProcessGridKey: Enter now adds another row  if pressed in the last
27379                             row and selectes the new row, same column cell
27380           - ProcessGridKey: Home/End navigate columns, not rows, like 
27381                             originally implemented
27382           - Broke ProcessKeyPreview code out into an extra Internal method
27383             so it can be called from the edit code
27384         * DataGridTextBox.cs (ProcessKeyMessage):
27385           - Switched to accept Tab keypresses
27386           - Added F2 handling to allow jumping to the end of the edited cell
27387           - Added logic to allow moving caret left/right inside edited cell
27388             and making the edited cell jump when the caret hits cell borders
27389           - Tab and Enter are now passed to the datagrid after being handled
27390         * TextBoxBase.cs:
27391           - Removed capture code now that Control handles it
27392           - set_SelectionStart now ensures caret is visible
27393
27394 2006-03-16  Jackson Harper  <jackson@ximian.com>
27395
27396         * TrackBar.cs: Debackwards the increment/decrement for handling
27397         mouse clicks on the bar with vertical trackbars.
27398         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
27399         bottom to match MS.
27400
27401 2006-03-16  Mike Kestner  <mkestner@novell.com>
27402
27403         * ListView.cs: make shift/ctrl keyboard and mouse selection 
27404         consistent with the MS control. Fix a bug in
27405         SelectedListViewItemCollection.Clear that was pissing me off for the
27406         better part of a day because the collection was being altered
27407         underneath us as we walked the list.
27408
27409 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
27410
27411         * Control.cs: Not sure how we could miss this so long, but it seems
27412           that MS.Net has Capture set all the way from before calling 
27413           OnMouseDown through sending the mouse events until after
27414           OnMouseUp. This will fix DataGrid's selection being set to end
27415           at the location of the MouseUp.
27416
27417 2006-03-15  Jackson Harper  <jackson@ximian.com>
27418
27419         * BindingContext.cs: Check the binding after its added so that it
27420           can initialize the binding managers and hookup to events.
27421         * Binding.cs: Data members seem to sometimes include rows/cols in
27422           the format Row.Column we now take this into account.
27423           - Hookup to the position changed event so we can update the
27424           control when the position has changed in the data set.
27425         * CurrencyManager.cs: Take into account the row/col naming
27426           convention when creating dataset tables.
27427         * BindingContext.cs: Using a newer better way of storing
27428           datasource/datamember pairs.  Hopefully this better matches MS for
27429           looking up binding managers.
27430
27431
27432 2006-03-15  Jackson Harper  <jackson@ximian.com>
27433
27434         * BindingContext.cs: The currency manager needs the data member
27435         name, if the member is a data set we use the name to find the
27436         correct table.
27437         * CurrencyManager.cs: When creating the list prefer an IList over
27438         an IListSource.
27439         - Attempt to create a DataTable from a DataSet (TODO: might need
27440         some better error checking here, although MS doesn't seem to have much)
27441         - If we have a DataTable create a view and use it as our list.
27442
27443 2006-03-15  Mike Kestner  <mkestner@novell.com>
27444
27445         * ListView.cs: keep a matrix of the icon mode layout to facilitate
27446         keyboard navigation. Support Up/Down/Left/Right selection correctly
27447         for all 4 View modes.
27448         * ListViewItem.cs: add internal row/col fields for icon layouts.
27449
27450 2006-03-15  Jackson Harper  <jackson@ximian.com>
27451
27452         * TabControl.cs: Redraw the tabs when we resize so their newly
27453         calculated sizes are drawn on screen.
27454         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
27455         composite characters.
27456         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
27457         - filter events so that composite characters can be created
27458         patches by peter
27459         * X11Structs.cs: Add XIMProperties enum.
27460
27461 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
27462
27463         * Control.cs (BringToFront, SendToBack): Don't use window or handle
27464           unless it's created
27465
27466 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
27467
27468         * Control.cs (PerformLayout): We don't need to consider visiblity
27469           for anchoring, only for docking. This fixes 'whacky' alignment
27470           in listbox and other controls that use implicit scrollbars after
27471           the previous PerformLayout patch
27472         * ListBox.cs: Switched to use implicit scrollbars
27473           
27474 2006-03-14  Mike Kestner  <mkestner@novell.com>
27475
27476         * ToolBar.cs: 
27477         * VScrollBar.cs:
27478         - chain up the "new event" overrides to base and use
27479         OnEvent to raise them.  Part of fix for bug #76509.
27480
27481 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
27482
27483         * FileDialog.cs: Do not select an item in the parent directory
27484           on backspace
27485
27486 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
27487
27488         * Control.cs (PerformLayout): It would seem that we considered
27489           invisible windows for our layout. Not quite the right thing
27490           to do. Now we don't any longer, thereby fixing bug #76889.
27491
27492 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
27493
27494         * Control.cs (CanFocus): I goofed. A control can have focus 
27495           even though it's not selectable. Made it match MS docs.
27496
27497 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27498
27499         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
27500           center by default (fixes #76895)
27501         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
27502           all uses of Border3DSides.All with the explicit ORd together
27503           Left|Right|Top|Bottom because I assume that nobody was aware 
27504           that All also implies a center fill. Most places I checked had
27505           a fill right above.
27506         * ProgressBarStyle.cs: Added
27507
27508 2006-03-13  Mike Kestner  <mkestner@novell.com>
27509
27510         * ListView.cs: fix breakage in drag shadow header positioning 
27511         from Peter's csc compilation fix.
27512
27513 2006-03-13  Mike Kestner  <mkestner@novell.com>
27514
27515         * ListView.cs: fix NRE produced by backspacing twice in a focused
27516         FileDialog.
27517
27518 2006-03-13  Mike Kestner  <mkestner@novell.com>
27519
27520         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
27521
27522 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27523
27524         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
27525           be changed
27526         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
27527           the allowed size before making programmatic size changes
27528
27529 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
27530
27531         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
27532           set, metacity is broken and will still use the emty sizes in 
27533           the struct. (Fix for #77089)
27534
27535 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27536
27537         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
27538           WindowExStyles and marked both enums as Flags
27539         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
27540           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
27541           to match WindowStyles split
27542         * XplatUIX11.cs:
27543           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
27544           - Updated to match WindowStyles split
27545         * XplatUIWin32.cs:
27546           - Fixed FosterParent creation, was using ExStyle on the Style field
27547             (This should help with Popup focus issues)
27548           - Updated to match WindowStyles split
27549
27550 2006-03-13  Jackson Harper  <jackson@ximian.com>
27551
27552         * MdiWindowManager.cs: Use the system menu height. Fixes some
27553         strange sizing issues.
27554
27555 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
27556
27557         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
27558         * TextBoxBase.cs:
27559           - Scroll to caret after inserting text (#77672)
27560           - Make scroll range one pixel higher, fixes off-by-one error (and
27561             makes underlines visible on the last line)
27562
27563 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
27564
27565         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
27566           the keyboard state from being stuck with keys in 'pressed' state when
27567           focus is switched away via keyboard
27568         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
27569           reset the keyboard if no X11 KeyUp events are expected to come
27570         * X11Structs.cs: Switched type of Visible to bool to match driver
27571
27572 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
27573
27574         * TextControl.cs:
27575           - Switched caret to be just 1 pixel wide, matches MS and looks less
27576             clunky
27577           - Moved caret display 1 pixel down from the top of the control
27578             to improve view
27579           - InsertCharAtCharet: Update the selection start if moving the caret
27580             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
27581           - No longer always creating the caret when the caret methods are
27582             called. Only the actual ShowCaret/HideCaret will do that now
27583           - Only setting caret visible if the owner control has focus
27584           - UpdateView: Added invalidation-shortcut logic for center and right 
27585             aligned text. Previously we'd update all according to the left
27586             logic which caused drawing errors. Also fixed height of invalidated
27587             areas, now properly invalidating the whole area (was off-by-one)
27588           - owner_HandleCreated: Always generate the document when the
27589             handle is created; this ensures that 
27590         * TextBoxBase.cs:
27591           - Fixed situation where caret would disappear under the right
27592             window border, also improved scrolling behaviour on left-
27593             aligned textboxes
27594           - Fixed right-aligned textboxes to have a border to the
27595             right instead of the caret being under the right border
27596         * XplatUIX11.cs:
27597           - Switched from 'nested' to simple visible/not visible tracking 
27598             for caret (part of fix for #77671)
27599           - No longer passing through translated FocusIn/FocusOut messages
27600             since we were notifying too often and the wrong windows. Instead
27601             we just notify our focussed window of receiving or loosing focus
27602         * XplatUIWin32.cs: Switched from 'nested' show/hide 
27603           counting for caret to simple visible yes/no behaviour (part of 
27604           fix for #77671)
27605
27606 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
27607
27608         * Mime.cs: Remove debug code...
27609
27610 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
27611
27612         * MimeGenerated.cs: Removed
27613         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
27614           and subclasses) from /usr/(local/)share/mime and
27615           $HOME/.local/share/mime.
27616
27617 2006-03-10  Jackson Harper  <jackson@ximian.com>
27618
27619         * MdiWindowManager.cs: Recalc the NC area when a window is
27620         maximized/restored so that the menu area is drawn on forms that
27621         don't have a menu.
27622
27623 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27624
27625         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27626           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
27627           us to force a WM_NCCALCRESIZE message being sent. This is needed
27628           for MDI maximizing.
27629
27630 2006-03-10  Jackson Harper  <jackson@ximian.com>
27631
27632         * Form.cs: We need to use the ActiveMenu when calculating menu
27633         height.
27634         - Fix nullref when the window manager hasn't been created yet.
27635         * Control.cs: Fix nullref when we try to bring a control to the
27636         front that has no parent.
27637         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
27638         height.
27639         - Add a dummy item to the maximized menu so it always has the
27640         correct height. Otherwise when there are no menus we don't get our
27641         icon and buttons.
27642         
27643
27644 2006-03-10  Jackson Harper  <jackson@ximian.com>
27645
27646         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
27647         stuff.
27648         * Form.cs: Make the window_state internal so the window managers
27649         can track it.
27650         - When an MDI child is maximized let its window manager create the
27651         main menu (so it can add its icon).
27652         - Notify the window managers of state changes
27653         - Let the window manager paint its buttons and handle button
27654         clicks on the menu when it is maximized.
27655         * InternalWindowManager.cs: Move the prev_bounds into the mdi
27656         window manager, since tool windows don't use it, only mdi windows.
27657         - Tell the main form that we don't want it to handle NCPAINT
27658         itself to avoid extra painting.
27659         - Handle clicks on a maximized windows menu.
27660         - Handle window state changes
27661         - Handle minimize/maximize clicks correctly by setting the window state.
27662         * MdiWindowManager.cs: Add an icon menu that (the menu you get
27663         when clicking on the forms icon).
27664         - New method to create a forms maximized menu. This is its normal
27665         menu + an icon.
27666         - Handle window state changes.
27667         - Handle sizing of maximized windows.  Maximized windows are just
27668         drawn bigger then the parent visible area. All controls are still
27669         there, they are just outside the visible area (this matches windows).
27670         * MdiClient.cs: No scrollbars when a child window is maximized.
27671         - Let the children windows figure out how big they should be when
27672         sizing maximized windows.
27673         - Implement a version of ArrangeIconicWindows somewhat similar to
27674         Windows version.  There are some little differences, but I don't
27675         think any app will rely on the layout of minimized mdi windows.
27676
27677 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27678
27679         * Padding.cs: Several fixes to allow compiling with csc 2.0
27680
27681 2006-03-09  Jackson Harper  <jackson@ximian.com>
27682
27683         * Menu.cs:
27684         * MenuItem.cs: Cheap hack so we can add items to the list without
27685         the events being raised.  This allows adding mdi items during
27686         drawing. TODO: Should probably find a better time to add the items.
27687
27688 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27689
27690         * ThemeWin32Classic.cs:
27691           - CheckBox_DrawText: Added logic to not wrap if not enough space
27692             is available (Fix for bug #77727)
27693           - RadioButton_DrawText: Added logic not to wrap if not enough
27694             space is available (Fix for bug #77727). Also removed some
27695             duplicate code, DrawString always drawing the regular text
27696             before hitting the if statement.
27697
27698 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
27699
27700         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
27701
27702 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27703
27704         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
27705         * ContainerControl.cs: Partial implementation of some 2.0 scaling
27706           methods. Moved the new 2.0 properties into alphabetical order with
27707           other properties and added MonoTODO tags
27708
27709 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27710
27711         * AutoScaleMode.cs: Added. Fix build.
27712
27713 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27714
27715         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
27716           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
27717           and was requiring premature handle creation for calls from above
27718         * Form.cs, Control.cs: Removed handle arguments from calls to
27719           CalculateClientRect()
27720
27721 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27722
27723         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
27724           drag_column.column_rect is MarshalByRef and can't be used that way
27725
27726 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27727
27728         * AxHost.cs: Added deserialization constructor for 
27729           AxHost+State (fixes 77743)
27730
27731 2006-03-09  Mike Kestner  <mkestner@novell.com>
27732
27733         * ListView.cs: 
27734         - Added column drag reordering for details view.
27735         - fixed behavior when mouse is dragged off column and
27736         AllowColumnReorder is false.
27737         * ColumnHeader.cs: clone the format too in Clone.
27738         * Theme.cs: add DrawListViewHeaderDragDetails method.
27739         * ThemeWin32Classic.cs:
27740         - impl new method for drawing drag column shadows and targets.
27741         - support column offset for details mode in DrawListViewItem.
27742
27743 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27744
27745         * TextControl.cs: Reset the char_count when the document is cleared
27746           (Fixes bug reported on mono-winforms mailing list)
27747
27748 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27749
27750         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
27751           of calling base we simply process the key ourselves, since both
27752           DefWindowProc and the handled method would set m.Result. 
27753           (Fixes #77732)
27754
27755 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27756
27757         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
27758           method also moves the window; instead implemented a copy of
27759           Control.ScaleCore (Part of fix for #77456)
27760         * TextBoxBase.cs: 
27761           - Created new CreateGraphicsInternal method to allow providing
27762             a graphics context when no handle is created without triggering
27763             handle creation. (Part of fix for #77456)
27764           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27765         * TextControl.cs: 
27766           - Switched Constructor to require TextBoxBase instead of Control (to
27767             allow uncast access to CreateGraphicsInternal)
27768           - Safeguarded use of owner.Handle property. No longer accessing it
27769             unless the handle is already created.
27770           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27771           - Now triggering a recalc when owning control becomes visible
27772         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
27773           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
27774           premature handle creation (Part of fix for #77456)
27775         * Control.cs:
27776           - We now only destroy our double-buffering buffers when the
27777             control is resized or disposed, but not when visibility
27778             changes. (The code even re-created them twice every time)
27779           - Now requiring a redraw of the buffer on visibility changes
27780             (fixes bug 77654 part 2)
27781           - Not passing OnParentVisibleChanged up unless the control
27782             is visible
27783           - CanFocus: Fixed to match MS documentation
27784           - Focus: Fixed to return actual focus state and to check if
27785             setting focus is legal before setting it
27786
27787 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
27788
27789         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
27790           when to draw focus rectangle by looking at parent focus and
27791           selected state instead. This fixes TabPages on Linux sometimes
27792           having none or multiple focus rectangles.
27793         * XplatUIX11.cs (SetFocus): 
27794           - Don't set the focus if the same window already has focus
27795           - Use SendMessage instead of PostMessage (like it's Win32
27796             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
27797             to match MS behaviour
27798         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
27799           are not selectable.
27800
27801 2006-03-07  Jackson Harper  <jackson@ximian.com>
27802
27803         * PictureBox.cs: Revert line I accidently committed last week.
27804
27805 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
27806
27807         * Control.cs: 
27808           - Added new IsRecreating and ParentIsRecreating properties to
27809             allow testing if RecreateHandle has been called on ourselves
27810             or one of our parents
27811           - WndProc(WM_DESTROY): If our control handle is being recreated
27812             we immediately need to create the handle when receiving the
27813             destroy, that way our child windows find a valid parent handle
27814             when they themselves are being recreated upon WM_DESTROY receipt
27815             (fix for bug #77654 part 1)
27816         * XplatUIX11.cs:
27817           - DestroyWindow: WM_DESTROY must be sent to our own window before
27818             notifying any child windows. MS documents that child windows
27819             are still valid when WM_DESTROY is received. (Control now relies on
27820             this behaviour)
27821           - Added some fine-grain debug options
27822
27823 2006-03-06  Jackson Harper  <jackson@ximian.com>
27824
27825         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
27826         box and base calculations off this.
27827         * MdiChildContext.cs:
27828         * MdiWindowManager.cs: Don't need to ensure scrollbars here
27829         anymore.
27830         
27831 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
27832
27833         * Splitter.cs: In situations where the affected control is added
27834           to the parent's control list after the splitter, we would not
27835           populate affected. Now we try populating it on mousedown, if
27836           it's not already set, and force it to be re-set whenever our
27837           parent changes.
27838
27839 2006-03-03  Matt Hargett  <matt@use.net>
27840
27841         * Control.cs: implement Control.Padding
27842         * Padding.cs: -Padding.All returns -1 when constructing with the
27843         implicit default ctor
27844         -Padding.ToString() matches MS.NET
27845         * ContainerControl.cs: implement
27846         ContainerControl.AutoScaleDimensions
27847         * ListControl.cs: implement ListControl.FormattingEnabled
27848         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
27849         * ButtonBase.cs:
27850         * TabPage.cs: Implement UseVisualStyleBackColor.
27851         * PictureBox.cs: Implement PictureBox.InitialImage.
27852
27853 2006-03-03  Mike Kestner  <mkestner@novell.com>
27854
27855         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
27856         event declarations to proxy to base event.
27857         * ListViewItem.cs: update to use ItemControl.
27858         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
27859         * ThemeWin32Classic.cs: update to new ListView theme API and fix
27860         column header label rendering for 0 width columns.
27861
27862 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
27863
27864         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
27865           that causes the control to be created. Fixes #77476.
27866
27867 2006-03-02  Jackson Harper  <jackson@ximian.com>
27868
27869         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
27870         expose_pending.
27871
27872 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
27873
27874         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
27875           passed in for the EventArgs (fixes #77690)
27876
27877 2006-03-01  Jackson Harper  <jackson@ximian.com>
27878
27879         * ScrollBar.cs: Refresh afterbeing resized.
27880
27881 2006-02-28  Mike Kestner  <mkestner@novell.com>
27882
27883         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
27884         Clean up a tracker compile warning.
27885         * MenuItem.cs: add internal PerformPopup method.
27886         [Fixes #77457]
27887
27888 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
27889
27890         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
27891           implicit expose) when the text is set to null
27892
27893 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
27894
27895         * RichTextBox.cs (FlushText): When newline is true, we always
27896           need to split the line, even if no text is on it and we may
27897           never eat newlines. (Fixes #77669)
27898
27899 2006-02-28  Mike Kestner  <mkestner@novell.com>
27900
27901         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
27902         and set Selected instead.
27903         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
27904         collections.
27905
27906 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
27907
27908         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
27909
27910 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
27911
27912         * FontDialog.cs:
27913           - Got rid of the panel. All controls are now directly added to
27914             the dialog form
27915           - It is now possible to set a font with the Font property
27916           - MinSize and MaxSize property do now what they should
27917           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
27918           - Searching and selecting a font with the font textbox works now,
27919             the same applies to the style and size textbox
27920           - Draw the correct 3D border in the example panel
27921           - Fixed a little mem leak (unused fonts didn't get disposed)
27922           - Many other internal updates/rewrites...
27923           - Fix typo
27924
27925 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
27926
27927         * TextControl.cs: 
27928           - InsertRTFFromStream: Added 'number of characters inserted' argument
27929           - set_SelectedRTF: Now using the number of characters to calculate
27930             the new location for the selection and cursor (x/y cannot be used
27931             due to potentially already wrapped text)
27932
27933 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
27934
27935         * TextControl.cs: Added property and implemented means to allow 
27936           disabling recalculation of a document (can be used to speed up
27937           multiple inserts and is needed to make RTF inserts predictable, see
27938           bug #77659)
27939         * RichTextBox.cs: Using the new NoRecalc property of Document to
27940           keep x/y insert locations predictable. Also makes it faster inserting
27941           large chunks of RTF
27942
27943 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
27944
27945         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
27946           it's easier for a child control to handle the other messages without
27947           having to duplicate the special functionality
27948         * TextBoxBase.cs
27949           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
27950             code to handle processing the key ourselves, in order to get 
27951             access to the result of KeyEventArgs.Handled. We now only call 
27952             ProcessKey if they key hasn't been handled already. Fixes #77526.
27953           - set_Text: If null or empty string is given, just clear the 
27954             document. Fixes part of #77526
27955
27956 2006-02-27  Jackson Harper  <jackson@ximian.com>
27957
27958         * SizeGrip.cs: Paint the background color before painting the grip
27959         so things look right.
27960         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
27961
27962 2006-02-27  Mike Kestner  <mkestner@novell.com>
27963
27964         * ListView.cs:
27965           - Restructure layout and invalidation model to remove a ton of
27966           flicker from the control and speed up performance in general.
27967           - Add manual column resize, flickers like crazy, but I already have
27968           some ideas on how I'll fix that. (#76822)
27969           - Merge the three Icon-based views into a single layout method.
27970           - Move item selection interaction logic from the item since 
27971           interaction with the collections is more appropriate to the view.
27972           - Deselection on non-item clicks.
27973         * ListViewItem.cs:
27974           - Encapsulate most of the layout. Add some internal props to trigger
27975           layout.  Move to a model where Items invalidate themselves instead
27976           of just invalidating the whole control every time something changes.
27977           - Invalidate on Text/Caption changes.
27978           - switch to an offset based layout model to avoid having to absolute
27979           position every element on item moves.
27980           - correct checkbox layout to conform to MS layout.
27981         * ThemeWin32Classic.cs:
27982           - refactor some column header drawing code.
27983           - fix string justification for column headers (#76821)
27984           - make SmallIcon labels top justified for compat with MS impl.
27985         * ThemeClearlooks.cs:
27986           - adjust to new ListViewItem internal checkbox bounds api.
27987
27988 2006-02-27  Jackson Harper  <jackson@ximian.com>
27989
27990         * Control.cs:  Change where implicit controls fall in the zorder.
27991         They are now on top of all children.
27992         - Synced AddImplicit code with Add
27993         - Removed unused enumerator.
27994         * SizeGrip.cs: Remove the TODO as its been TODONE.
27995
27996 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
27997
27998         * TextControl.cs(Insert): Combine the last lines unless the insertion
27999           string ends with \n\n, otherwise we leave one line too many (Fixes
28000           something I noticed with the testapp for #77526; the bug itself was
28001           already fixed in the previous checkin)
28002
28003 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
28004
28005         * RichTextBox.cs:
28006           - SelectionColor and SelectionFont methods no longer set absolute
28007             styles. Instead, the keep font or color respectively (This 
28008             resolves a long-standing FIXME in the code)
28009           - When flushing RTF text, the insert code now considers text trailing
28010             behind the insertion point (Fixes the bug where when replacing
28011             the selected text via SelectedRTF the remainder of the line behind 
28012             the selection would stay on the first insertion line)
28013         * TextBoxBase.cs:
28014           - AppendText now updates the selection points after inserting text
28015           - AppendText now ensures that the last tag (sometimes 0-length) of
28016             the document is used for the style information (Fixes part of 
28017             bug #77220)
28018         * TextControl.cs:
28019           - Created new FontDefiniton class to allow describing partial style
28020             changes
28021           - StreamLine() now takes a lines argument, to allow it to decide
28022             whether an encountered zero-length tag is the last in the document
28023             (which must be kept to not loose the font/color contained in it,
28024             for later appends)
28025           - Created Combine() and Split() methods for Marker structs, to 
28026             support marker updates due to reformatted documents (soft line
28027             wraps)
28028           - Implemented Document.CaretTag setter
28029           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28030             of the last line (Not the cause, but also exposed by bug #77220)
28031           - Added LineTag argument to InsertString method, to allow callers
28032             to force a certain tag to be used (required to force use of the
28033             trailing zero-length tag of a document)
28034           - Now updating markers in Combine(), to avoid stale tag markers
28035           - Added some method descriptions to aid maintenance
28036           - Implemented new FormatText concept, allowing additive/subtractive
28037             formatting by only specifying the components that are to be 
28038             changed. This was needed for resolving the RTB.SelectedColor/
28039             RTB.SelectedFont fixmes
28040           - Added Break() support method to allow breaking up linetags (used
28041             for partial formatting)
28042           - Added GenerateTextFormat() method. It is used for partial 
28043             formatting and allows to generate a full font/color from given
28044             attributes and an existing tag.
28045
28046 2006-02-26  Jackson Harper  <jackson@ximian.com>
28047
28048         * XplatUIX11.cs:  Use the correct caption height.
28049         - Translate hittest coordinates to screen coords to match MS.
28050         * XplatUIWin32.cs: When we create MDI windows we need to reset
28051         some of the style flags, so we get a nice blank window, and can
28052         draw all the decorations ourselves.
28053         - Set a clipping rectangle on the non client paint event, the
28054         window manager drawing code needs one.
28055         * Form.cs: The window manager needs to know when the window state
28056         has been updated.
28057         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28058         don't need to factor in border and title sizes in these
28059         methods. TODO: Remove the args and fix the call points.
28060         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28061         properly.
28062         - Let the driver set the cursors.
28063         - Improve active window handling
28064         - Correct sizes for title bars and buttons.
28065         - Match MS drawing better
28066         * MdiWindowManager.cs: We don't need to handle border style
28067         updates specially anymore.
28068         - Check for scrollbars when windows are done moving
28069         - Handle Active properly.
28070         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28071         correctly. I am spewing the exception though, so we don't hide the
28072         bugs.
28073         
28074 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
28075
28076         * DataGridViewRowPostPaintEventArgs.cs,
28077           DataGridViewCellPaintingEventArgs.cs,
28078           DataGridViewRowCollection.cs,
28079           DataGridViewRowPrePaintEventArgs.cs,
28080           DataGridViewCell.cs: Clear a few warnings and implement a few
28081           exceptions that should be thrown.
28082
28083 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28084
28085         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28086           'inheriting' our parent's (non-default) cursor. (Part of
28087            the fix for #77479)
28088
28089 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
28090
28091         * XplatUIX11.cs: Fixed cast to make csc happy
28092
28093 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28094
28095         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28096           it's for the client area (part of fix for #77479 and needed
28097           for MDI window cursor handling)
28098         * XplatUIX11.cs
28099           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
28100             the appropriate default cursors and also passing the message
28101             up the parent chain 
28102           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
28103             for non-client areas
28104
28105 2006-02-15  Jackson Harper  <jackson@ximian.com>
28106
28107         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
28108         is a real MDI window
28109
28110 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
28111
28112         * X11DesktopColors.cs: Instead of checking the desktop session
28113           string for "KDE" check if it starts with "KDE"
28114
28115 2006-02-10  Jackson Harper  <jackson@ximian.com>
28116
28117         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
28118         systems).
28119
28120 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28121
28122         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
28123           errors
28124         * ColorDialog.cs:
28125           - Got rid of the panel. All controls are now directly added to
28126             the dialog form
28127           - Changed to mono coding style
28128
28129 2006-02-10  Jackson Harper  <jackson@ximian.com>
28130
28131         * InternalWindowManager.cs: We don't need the set visibility to
28132         false hack anymore now that peter has written beautiful shutdown
28133         code.
28134
28135 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
28136
28137         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
28138           where already explicitly destroyed
28139
28140 2006-02-10  Jackson Harper  <jackson@ximian.com>
28141
28142         * MdiClient.cs: Handle the case where windows are too high or to
28143         the left and we need scrollbars.
28144
28145 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28146
28147         * MimeIcon.cs: Added some icons
28148         * FileDialog.cs:
28149           - Fixed bug #77477
28150           - Got rid of the panel. All controls are now directly added to
28151             the dialog form
28152           - Changed to mono coding style
28153           - On Linux "My Computer" and "My Network" will now show some
28154             more usefull information. A new class, MasterMount, gathers
28155             this information from /proc/mount. Updated MWFFileView to make
28156             use of this information
28157           - Fixed a bug that caused FileDialog to crash when
28158             ".recently_used" file had a zero size
28159           - FilterIndex does now what it should
28160           - Some Refactoring
28161         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
28162             FileDialog changes
28163
28164 2006-02-09  Jackson Harper  <jackson@ximian.com>
28165
28166         * ComboBox.cs: Don't touch if null.
28167
28168 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
28169
28170         * Cursor.cs: 64bit safeness fix
28171         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
28172
28173 2006-02-09  Jackson Harper  <jackson@ximian.com>
28174
28175         * Form.cs: If a form is made into an MDI form update the styles so
28176         all the props can get set correctly.
28177         - Kill the mdi_container when we dont need it anymore.
28178         * InternalWindowManager.cs: Add missing NOT
28179
28180 2006-02-08  Jackson Harper  <jackson@ximian.com>
28181
28182         * InternalWindowManager.cs: Respek clipping when drawing MDi
28183         decorations.
28184
28185 2006-02-08  Jackson Harper  <jackson@ximian.com>
28186
28187         * Hwnd.cs: Add bits to track non client expose events.
28188         * XplatUIX11.cs: Track non client expose events on the hwnd. This
28189         gives us a proper invalid rect and will allow for some nice
28190         optimizations with NC client drawing
28191         - MDI windows are children windows, so move their style handling
28192         into the child window block.
28193         * InternalWindowManager.cs: Remove a state reset that was
28194         getting invoked at the wrong time. Fixes managed windows getting
28195         into a 'stuck' captured state.
28196
28197 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28198
28199         * TextControl.cs (Document.ctor): Now initializing 
28200           selection_anchor. Fixes #77493
28201
28202 2006-02-07  Jackson Harper  <jackson@ximian.com>
28203
28204         * TrackBar.cs: The increment/decrements were backwards.
28205
28206 2006-02-07  Mike Kestner  <mkestner@novell.com>
28207
28208         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
28209         to the instance itself.
28210
28211 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28212
28213         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
28214           on ulongs and pointers, the size differs between 32bit and 64bit
28215           systems. 
28216
28217 2006-02-07  Mike Kestner  <mkestner@novell.com>
28218
28219         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
28220         for 64 bit platforms to work around a metacity bug. 
28221
28222 2006-02-07  Jackson Harper  <jackson@ximian.com>
28223
28224         * TrackBar.cs: Process the input keys we need, and hookup to
28225         KeyDown instead of using WndProc, so we get key messages.
28226
28227 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
28228
28229         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
28230           machine we're on. 
28231         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
28232           we need to translate the XdndVersion atoms array before sending it
28233
28234 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
28235
28236         * XplatUIX11.cs: 
28237           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
28238             number of bits for the property, not the number of bytes. The
28239             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
28240             but would not crash since it specified 8 bits instead of 4 bits)
28241           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
28242             defined as XID -> long in the C headers)
28243           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
28244             references since those are now IntPtr to begin with
28245           - Switched all Atom.XXX 'int' casts to IntPtr casts
28246           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
28247           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
28248           - Added XChangeActivePointerGrab DllImport (for X11DnD)
28249         * X11Structs.cs:
28250           - Changed 'int' type for Atoms in XEvent structures to IntPtr
28251           - Changed atom in HoverStruct to be IntPtr
28252         * X11DnD.cs:
28253           - Removed local DllImports, switched code to use those from XplatUIX11
28254           - Removed/fixed casts related to the switch of Atom to be a IntPtr
28255
28256 2006-02-06  Mike Kestner  <mkestner@novell.com>
28257
28258         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
28259         method signatures in the import region.  There may still be some
28260         lingering struct marshaling issues, as I didn't drill down into those.
28261         Yet.
28262
28263 2006-02-06  Jackson Harper  <jackson@ximian.com>
28264
28265         * ComboBox.cs: Dont manually set the top_item, this is computed
28266         when the scrollbar position is set.
28267
28268 2006-02-06  Mike Kestner  <mkestner@novell.com>
28269
28270         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
28271         startup crashes on amd64.  There's other fixes needed.  All pinvoke
28272         usage of Atom needs to be mapped to IntPtr for example.  And there are
28273         likely other int/long issues to be addressed.
28274
28275 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
28276
28277         * FileDialog.cs: One more...
28278
28279 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28280
28281         * FileDialog.cs: Next try
28282
28283 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28284
28285         * FileDialog.cs: First part of fix for #77464
28286
28287 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28288
28289         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
28290           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
28291           AcceptButton border drawing.
28292
28293 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
28294
28295         * Form.cs: Moved positioning of form after auto scaling is applied,
28296           otherwise it would possibly use wrong form size.
28297
28298 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
28299
28300         * Control.cs (RecreateHandle): No need to re-create any child
28301           controls, the child windows will get destroyed automatically by
28302           the windowing system or driver, and re-created when the handle
28303           is being accessed the first time. Fixes #77456
28304         * Form.cs: No longer setting the form to closing if the handle is 
28305           being recreated. This seems like the right thing to do, don't
28306           have a bug or testcase for this, though.
28307
28308 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
28309
28310         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
28311           controls to avoid unwanted side effects
28312
28313 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
28314
28315         * Control.cs: 
28316           - ScaleCore needs to scale the bounds, not the ClientSize of the 
28317             control. Fixes #77416.
28318           - DefaultSize is 0,0 for control
28319         * TextBoxBase.cs: 
28320           - DefaultSize is 100, 20
28321           - SetBoundsCore: Now enforcing the height, no matter if the provided
28322             height is more or less than the preferred one, as long as AutoSize
28323             is on
28324         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
28325
28326 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
28327
28328         * Control.cs:
28329           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
28330             call unless both performLayout is true *and* we have a pending
28331             layout change
28332           - ResumeLayout: MS does not completely nest Suspend and Resume,
28333             they bottom out at 0, fixed our code to match that.
28334           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
28335             SetBoundsCore, we were updating even when we shouldn't. This fixes
28336             swf-anchors mis-anchoring when resizing the app fast and lots.
28337           - UpdateDistances: Now only setting the left and top distance if 
28338             we have a parent and are not suspended, this is based on
28339             a suggestion by Don Edvaldson in bug #77355.
28340           - OnVisibleChanged: Fixed logic when to create the control. We may
28341             not create the control if we have no parent or if it's not visible;
28342             switched to using Visible property instead of is_visible field 
28343             since the property also considers parent states. This fixes a bug
28344             when starting Paint.Net
28345
28346 2006-02-02  Jackson Harper  <jackson@ximian.com>
28347
28348         * Form.cs: If the forms handle hasn't been created yet don't call
28349         into xplatui to make it top most, just set the topmost flag on the
28350         form in CreateParams
28351         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
28352
28353 2006-02-01  Jackson Harper  <jackson@ximian.com>
28354
28355         * ScrollableControl.cs: Refactored the Recalculate method a
28356         little, this wasn't handling all the variants of bottom and right
28357         bars needed to be added and added/removed based on their
28358         counterparts being added/removed (which changes the drawable
28359         size). Also we special case client widths and heights of 0 and
28360         don't add the scrollbar for those.
28361
28362 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
28363
28364         * XplatUIX11.cs: 
28365           - Added method to get AbsoluteGeometry(); currently unused, but might
28366             be used in the future, if we try again to figure out toplevel
28367             coordinates with some more crappy window managers
28368           - Added FrameExtents() method to retrieve the WM set decoration size
28369           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
28370             to deal with at least KDE, FVWM and metacity (Fixes #77092)
28371         * Hwnd.cs: 
28372           - Added whacky_wm tracking var for metacity
28373           - Added logic to have default menu height if the actual menu height
28374             has not yet been calculated (part of fix for #77426)
28375         * Form.cs: Keep track whether client size has been set and re-set 
28376           it if a menu is added/removed afterwards (Fixes #77426)
28377
28378 2006-01-31  Jackson Harper  <jackson@ximian.com>
28379
28380         * Control.cs: When a new Site is set on the component attempt to
28381         pull the AmbientProperties from it.
28382
28383 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
28384
28385         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
28386           in the background of the owning form. Fixes #77332
28387
28388 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
28389
28390         * MimeIcon.cs: Fix for #77409
28391
28392 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
28393
28394         * XplatUIX11GTK.cs: Initial import
28395
28396 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
28397
28398         * FixedSizeTextBox: fixes class signature
28399
28400 2006-01-30  Jackson Harper  <jackson@ximian.com>
28401
28402         * FixedSizeTextBox.cs: New internal class that represents a
28403         textBox that will not be scaled.
28404         * TreeView.cs:
28405         * ComboBox.cs:
28406         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
28407         standard TextBox.
28408                 
28409 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
28410
28411         * XplatUIX11.cs: Retrieve default screen number instead of
28412           assuming 0. Attempted fix for #77318
28413
28414 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
28415
28416         * XplatUIWin32.cs: 
28417           - GetWindowPos: When a window is parented by FosterParent, use 
28418             the desktop instead of FosterParent as the base to get coordinates
28419           - CreateWindow: Don't make FosterParent the parent window for Popups
28420             if we don't want a taskbar entry, Popups automatically don't get one
28421         * Hwnd.cs: Need to call remove to actually remove the key from the
28422           hash table
28423
28424 2006-01-30  Mike Kestner  <mkestner@novell.com>
28425
28426         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
28427
28428 2006-01-30  Jackson Harper  <jackson@ximian.com>
28429
28430         * TreeView.cs:
28431         * TreeNode.cs: Raise events no matter how the treenode is
28432         checked. Patch by Don Edvalson.
28433
28434 2006-01-30  Jackson Harper  <jackson@ximian.com>
28435
28436         * TreeNode.cs: Signature fix.
28437
28438 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
28439
28440         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
28441
28442 2006-01-20  Mike Kestner  <mkestner@novell.com>
28443
28444         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
28445         event forwarding when menus are active.
28446         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
28447         Most of the patch is pdb's with a little rework.
28448
28449 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
28450
28451         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
28452           Removed GetMenuDC and ReleaseMenuDC methods; replaced
28453           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
28454         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
28455         * InternalWindowManager.cs: Added use of PaintEventStart/End to
28456           handling of WM_NCPAINT message, now passing the PaintEventArgs to
28457           the PaintWindowDecorations method
28458         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
28459         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
28460         * MenuAPI.cs: Made tracker window invisible
28461         * XplatUIWin32.cs:
28462           - Removed GetMenuDC and ReleaseMenuDC methods
28463           - Implemented the client=false path for PaintEventStart and
28464             PaintEventEnd
28465
28466 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
28467
28468         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
28469         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
28470           styles
28471         * Form.cs: 
28472           - MaximizeBox, MinimizeBox: Recreate the handle when setting
28473             the style
28474           - CreateParams: Reworked the styles to match MS look'n'feel,
28475             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
28476             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
28477
28478 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
28479
28480         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
28481           window is not mapped, since otherwise every form that's being 
28482           created is considered minimized, which is wrong.
28483         * Form.cs: Catching the exception and returning our internal value
28484           instead
28485
28486 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
28487
28488         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
28489           SetWindowMinMax() to have means to tell the driver about the minimum,
28490           maximum and maximized state window sizes. (Part of the fix for #76485)
28491         * Form.cs:
28492           - Implemented tracking of minimum and maximum window size, now calling
28493             new SetWindowMinMax() driver method to tell the driver (Part of the
28494             fix for #76485)
28495           - Finished handling of WM_GETMINMAXINFO method, now setting all values
28496             (Completes fix for #76485)
28497           - Calling new SetWindowMinMax driver method when the handle for a 
28498             form is created, to make sure the driver knows about it even if
28499             the values have been set before the window was created
28500           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
28501             to avoid messing up our anchoring calculations (partial fix
28502             for #77355)
28503         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
28504         * XplatUIX11.cs:
28505           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
28506           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
28507             (and presumably other freedesktop.org compliant WMs). Left the
28508             assumption unmapped=minimized, needed for SetVisible to work.
28509           - Now setting the window state when creating windows
28510           - Fixed SetVisible to consider/set the window state when mapping
28511             a Form. We cannot set the state before it's mapped, and we cannot
28512             use Form.WindowState once it's mapped (since it would ask the
28513             driver and get 'normal'. Therefore, we grab the state before
28514             mapping, map, and then set state.
28515           - Implmemented SetWindowMinMax method; Metacity does not seem to
28516             honor the ZoomHints, though.
28517         * XplatUIWin32.cs:
28518           - Removed MINMAXINFO (moved to XplatUIStructs)
28519           - Added SetWindowMinMax stub (on Win32 the only way to set that
28520             information is in response to the WM_GETMINMAXINFO message, which
28521             is handled in Form.cs)
28522           - Added logic to SetVisible to set the proper window state when a 
28523             form is made visible (fixes #75720)
28524
28525 2006-01-26  Jackson Harper  <jackson@ximian.com>
28526
28527         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
28528         same way we handle them with Invoke.
28529
28530 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
28531
28532         * Form.cs:
28533           - Added tracking of window state so CreateParams can return
28534             the appropriate style
28535           - Moved setting of WS_CAPTION style in CreateParams to allow
28536             styles without caption
28537         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
28538           control if the TextBox property is accessed. Fixes #77345
28539         * Control.cs:
28540           - get_Created: now uses is_disposed and is_created to determine
28541             return value (suggested by Jackson)
28542           - CreateHandle: No longer exits if the handle is being recreated
28543           - RecreateHandle: If the handle is not yet created call the 
28544             appropriate method to create either control or handle. If the
28545             control is already created CreateHandle will simply exit instead
28546             of just creating the handle
28547         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
28548           now SendMessage WM_DESTROY directly to the control when DestroyWindow
28549           is called.
28550         * XplatUIX11.cs: 
28551           - When DestroyWindow is called, instead of waiting for the 
28552             DestroyNotification from X11, we directly post it to the WndProc
28553             and immediately dispose the hwnd object.
28554             Same applies to DestroyChildWindows, and this obsoletes the
28555             expose_pending tracking. Contrary to Win32 behaviour we destroy our
28556             child windows before our own, to avoid X11 errors.
28557           - Removed the direct sending of WM_PAINT on UpdateWindow
28558         * XplatUIWin32.cs:
28559           - Reworked DoEvents and GetMessage to allow access to internal queue
28560             even when trying non-blocking access to the queue.  Fixes #77335. 
28561             Based on a patch suggestion by Don Edvalson. The new private
28562             GetMessage can now also be used as a backend for a PeekMessage
28563             frontend version.
28564         * XplatUI.cs: Improved debug output for CreateWindow
28565
28566 2006-01-25  Jackson Harper  <jackson@ximian.com>
28567
28568         * Help.cs: Allow param to be null. Patch by Don Edvalson.
28569
28570 2006-01-24  Jackson Harper  <jackson@ximian.com>
28571
28572         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
28573         when we have a MaxDropItems lower then the selected index.
28574
28575 2006-01-24  Jackson Harper  <jackson@ximian.com>
28576
28577         * Control.cs: Don't allow selection of non visible controls, allow
28578         selection of controls without parents.
28579
28580 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
28581
28582         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
28583         * DataGridDrawingLogic.cs: Add editing row only when is necessary
28584
28585 2006-01-23  Jackson Harper  <jackson@ximian.com>
28586
28587         * UpDownBase.cs: Make the textbox handle all the selection and
28588         tabbing. This fixes tabing to updown controls.
28589
28590 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
28591
28592         * TextBoxBase.cs: fixes exception thown the object was null
28593
28594 2006-01-23  Jackson Harper  <jackson@ximian.com>
28595
28596         * ButtonBase.cs: Just use the base CreateParams. They set
28597         visibility and enabled correctly.
28598         * ComboBox.cs:
28599         * TrackBar.cs:
28600         * MonthCalendar.cs: Lets let the base set as much of the
28601         createparams as possible so we don't have duplicate code all over
28602         the place.
28603
28604 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
28605
28606         * ThemeGtk.cs: Added TrackBar and some experimental code to
28607           get double buffering back
28608
28609 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
28610
28611         * DataGrid.cs: Allows row number set internally higher than the last
28612         when creating a new row. Restores the editing functionality.
28613
28614 2006-01-20  Mike Kestner  <mkestner@novell.com>
28615
28616         * MimeIcon.cs: delay Image creation until the icons are accessed
28617         instead of creating 190 scaled images on GnomeHandler startup.
28618
28619 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
28620
28621         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
28622           first call base before processing the event. Fixes #77279
28623
28624 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
28625
28626         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
28627           that the stride for the GDI bitmap would match the stride of
28628           a DIB or a Cursor.
28629
28630 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
28631
28632         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
28633
28634 2006-01-19  Jackson Harper  <jackson@ximian.com>
28635
28636         * ComboBox.cs: Hookup the text controls keydown event so we get
28637         those when the text control has the focus.
28638
28639 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
28640
28641         * Label.cs: Now using the base events instead of defining new ones;
28642           this allows us to just call the base properties without having to
28643           duplicate all base property logic 
28644
28645 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
28646
28647         * Label.cs: A label by default is not a tabstop (Fixes one of our
28648           failing nunit tests)
28649
28650 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
28651
28652         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
28653         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
28654
28655 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
28656
28657         * Cursor.cs: Reimplemented creating cursor bitmaps without using
28658           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
28659           This fixes #77218
28660         * XplatUIWin32.cs: 
28661           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
28662             constructor creates images that can't be saved. Part of the fix
28663             for #76103
28664           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
28665           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
28666             bug fix for handling window state in forms properly)
28667
28668 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28669
28670         * ThemeGtk.cs: Simplify ScrollBar drawing
28671
28672 2006-01-18  Jackson Harper  <jackson@ximian.com>
28673
28674         * Splitter.cs: Set the default dock style for the splitter control
28675         in the constructor.
28676
28677 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28678
28679         * ThemeGtk.cs: Corrected StateType and ShadowType for
28680           gtk_paint_box
28681
28682 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28683
28684         * Control.cs: Make use of Theme.DoubleBufferingSupported
28685         * ThemeGtk.cs:
28686           - Added drawing for flat style buttons
28687           - Added ScrollBar drawing
28688
28689 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28690
28691         * ThemeClearlooks.cs: Removed some unneeded code.
28692         * ThemeGtk.cs: First part of ThemeGtk enhancements.
28693
28694 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
28695
28696         * LinkLabel.cs: We need to update the hover drawing when
28697           leaving the control as well.
28698
28699 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
28700
28701         * DataGrid.cs: Clicking on non empty areas in the columns
28702            area was giving an exception
28703
28704 2006-01-17  Jackson Harper  <jackson@ximian.com>
28705
28706         * ThemeWin32Classic.cs:
28707         * ListView.cs: Do not draw/clip the headers when the header style
28708         is None.
28709
28710 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
28711
28712         * DataGrid.cs: Fixes 77260
28713         
28714 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
28715
28716         * DataGrid.cs: Clicking on a column on a empty grid was giving
28717           an exception
28718
28719 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
28720
28721         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
28722           or any keypress will crash the grid.
28723
28724 2006-01-17  Mike Kestner  <mkestner@novell.com>
28725
28726         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
28727         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
28728         invisible/previously-visible items.
28729         [Fixes #76909]
28730
28731 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
28732
28733         * ThemeClearlooks.cs:
28734         - Added CL_Draw_Button method; now other theme controls that are 
28735           not derived from button or do not have a button can draw buttons
28736           too
28737         - Updated ComboBox drawing
28738         - Beautified RadioButton drawing
28739         - Corrected drawing of bottom and left tabs
28740         - Beautified DateTimePicker and MonthCalendar
28741         - Added CPDrawButton and CPDrawRadioButton
28742
28743 2006-01-16  Jackson Harper  <jackson@ximian.com>
28744
28745         * ComboBox.cs: Set the initial value of the scrollbar to the
28746         current index. Reduce the numbers of refreshs and IndexOfs called.
28747
28748 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
28749
28750         * FileDialog.cs: When the file listview is focused hitting the
28751           backspace key moves the fileview to the parent directory
28752
28753 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
28754
28755         * Form.cs: 
28756           - Added RecreateHandle call when changing taskbar visibility to 
28757             trigger reparenting in Win32 driver (Fixes #75719)
28758           - If a window has minimize or maximize buttons, it cannot have
28759             a help button
28760         * XplatUIWin32.cs:
28761           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
28762             the toplevel form with FosterParent (A toolwindow not on the
28763             taskbar) (Fixes #75719)
28764           - Made FosterParent a toolwindow
28765
28766 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28767
28768         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
28769
28770 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28771
28772         * ToolTip.cs: If SetToolTip is called from a control and the mouse
28773           is currently over that control, make sure that tooltip_window.Text
28774           gets updated
28775
28776 2006-01-13  Mike Kestner  <mkestner@novell.com>
28777
28778         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
28779
28780 2006-01-13  Jackson Harper  <jackson@ximian.com>
28781
28782         * TreeView.cs: On MS GetNodeAt never actually factors in the X
28783         value passed.  Also redraw the selected node when we recieve
28784         focus, so tabbing between trees works correctly.
28785
28786 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28787
28788         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
28789           ~/.gconf/%gconf-tree.xml, so use
28790           .gconf/desktop/gnome/interface/%gconf.xml
28791
28792 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
28793
28794         * TextControl.cs: Draw text in gray if control is disabled
28795
28796 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
28797
28798         * TreeView.cs: Draw the focus rectangle outside the highlight, to
28799           make sure it's always visible. Fixes #76680.
28800
28801 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
28802
28803         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
28804
28805 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
28806
28807         * PageSetupDialog.cs: Added.
28808         * PrintDialog.cs: Attributes.
28809         * PrintPreviewControl.cs: Updates.
28810         * PrintPreviewDialog.cs: Updates.
28811         
28812 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28813
28814         * Control.cs: Undid my selection check fix, since it's not needed
28815         * TextBoxBase.cs:
28816           - Now considering the presence of hscroll/vscroll when sizing
28817             vscroll/hscroll respectively. Fixed bug #77077
28818           - Added Left/Up/Down/Right to IsInputKey list to prevent
28819             ContainerControl from stealing them. This fixes what I broke
28820             with my last checkin.
28821
28822 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
28823
28824         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
28825           I finally understand how the property can be set without a setter :-)
28826
28827 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28828
28829         * Application.cs:
28830           - Switched RunLoop to use static Message.Create to create a 
28831             Message object
28832           - Added PreProcessMessage call in runloop for keyboard events; this
28833             is part of the fix for #77219, I overlooked this originally in the
28834             MSDN doc for PreProcessMessage
28835         * Control.cs:
28836           - Removed call to PreProcessMessage from handling of keyboard 
28837             messages; it's supposed to be done in the message pump
28838           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
28839             per MSDN documentation.
28840           - IsInputChar: All chars are input chars by default; removed the 
28841             parent calling chain, MS does not document that
28842           - PreProcessMessage: If IsInputChar is true, we want to return false
28843             to allow dispatching of the message
28844           - When selecting the next control, now also check that we're not
28845             selecting ourselves again and therefore return a false positive.
28846         * TextBoxBase.cs:
28847           - Tried to match return values for IsInputKey and ProcessDialogKey
28848             to what MS returns; moved processing of our special keys outside
28849             ProcessDialogKey since MS does not seem to return true on those.
28850           - Moved code that previously was in ProcessDialogKey into new private
28851             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
28852           - Reworked handling of WM_CHAR to not have to duplicate code from
28853             Control.cs anymore, instead we simply call down to base.
28854            
28855 2006-01-12  Jackson Harper  <jackson@ximian.com>
28856
28857         * ComboBox.cs: We always need to refresh the text area when
28858         EndUpdate is called. Fixes the combobox in the file dialog.
28859         * Control.cs: Don't create the creator_thread until the controls
28860         handle is created.  Also in InvokeRequired we check if the
28861         creator_thread is null. This gives the effect of InvokeRequired
28862         returning true if the controls handle is not created yet, and
28863         matches MS.
28864
28865 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28866
28867         * XplatUI.cs:
28868           - Added StartLoop() driver method. This is used to allow drivers to
28869             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
28870             loop for a particular thread
28871           - Added EndLoop() driver method. This is called once the message
28872             pump for the thread is shut down
28873           - Added SupportsTransparency method to allow the driver to indicate
28874             opacity support for windows
28875         * Form.cs:
28876           - Removed TODO attribute, completed AllowTransparency property
28877           - Added documented logic to Opacity
28878         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
28879           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
28880           versions of CompatibleTextRendering
28881         * X11Structs.cs: Added opacity atom to our atom enumeration
28882         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
28883           of a form might be set before it's reparented by the WM, and we need
28884           the opacity value without calling up to Form)
28885         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
28886           SupportsTransparency() driver methods
28887         * Application.cs: Now calling StartLoop and EndLoop driver methods
28888         * XplatUIX11.cs:
28889           - Added opacity atom registration
28890           - Added StartLoop()/EndLoop() methods. They're empty right now but
28891             will need to get implemented when we switch to a per-thread queue
28892           - Implemented SupportsTransparency() method
28893           - Implemented SetWindowTransparency() method
28894           - Added support for setting the opacity value when a window is
28895             reparented (since the opacity needs to be set on the WM frame)
28896         * XplatUIOSX.cs, XplatUIWin32.cs:
28897           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
28898
28899 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
28900
28901         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
28902
28903 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
28904
28905         * FileDialog.cs: Added ToolTip for MWFFileView
28906         * MimeIcon.cs: Rewrote GnomeHandler.
28907           - Get currently used gnome icon theme from
28908             ($HOME)/.gconf/%gconf-tree.xml
28909           - Make use of inherited icon themes
28910           - Support SVG icon themes like Tango via librsvg
28911
28912 2006-01-12  Miguel de Icaza  <miguel@novell.com>
28913
28914         Revert's Jackson's revert which broke 2.0 builds.   Fix both
28915         builds. 
28916         
28917         * Application.cs: Move the use_compatible_text_rendering outside
28918         the NET_2_0 define.  If we ever need to use the
28919         use_compatible_text_rendering on the individual controls they will
28920         access the variable from the common shared code paths.
28921
28922 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28923
28924         * XplatUI.cs:
28925           - Added more granular debug options
28926           - Added method to print both window text and id
28927           - Switched debug output to use new Window() debug method
28928           - Added IsEnabled() driver method
28929           - Added EnableWindow() driver method
28930         * Form.cs:
28931           - Removed end_modal; no longer needed, new loop handles termination
28932             via 'closing' variable
28933           - If form is modal, setting DialogResult will now initiate loop
28934             termination via 'closing' variable
28935           - Added support for is_enabled/WS_DISABLED to CreateParams
28936           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
28937             does all the work
28938           - Removed code that's now in RunLoop from ShowDialog()
28939           - Added various documented sanity checks to ShowDialog()
28940           - Added handling of WM_DESTROY message; we set 'closing' on getting
28941             the message to indicate the message pump to terminate
28942           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
28943             send by the Application.ExitThread method. (We send the message
28944             to destroy the window after all other events have been
28945             processed through the queue, instead of destroying the handle 
28946             directly)
28947           - Moved code from Close() method to WM_CLOSE handler; added logic
28948             to only send close-related events if the form is not displayed
28949             modal
28950         * Splitter.cs (..ctor): Fixed typo in resource name
28951         * Control.cs:
28952           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
28953             brush now
28954           - set_Cursor: Now only setting calling into XplatUI if the handle for
28955             the control is already created; this avoids implict handle creation
28956             or crashes if it's not created
28957           - set_Enabled: Now setting the enabled state via the new driver method
28958             instead of just tracking it
28959           - CreateParams: Added logic to set WS_DISABLED based on enabled state
28960           - CreateControl: Reordered event firing and method calls to more
28961             closely fire events in the order MS does. Now setting the
28962             enabled state in the driver when creating the control.
28963           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
28964             match MS order
28965         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
28966           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
28967         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
28968         * Hwnd.cs:
28969           - Added tracking of window enabled state (get_Enabled/set_Enabled)
28970           - Added EnabledHwnd property to easily allow a driver to find the
28971             handle of the first enabled window in the parent chain (this is
28972             used by drivers to pass up input events of disabled windows)
28973         * XplatUIDriver.cs: Added IsEnabled() method
28974         * Application.cs:
28975           - Removed crude and obsolete exiting tracking variable
28976           - Removed internal ModalRun(); replaced by RunLoop()
28977           - Implemented private CloseForms() method to allow closing all 
28978             windows owned by a particular (or all) threads
28979           - Exit() now properly closes all windows without forcing the message
28980             pump to quit
28981           - Removed obsolete InternalExit() method
28982           - Changed Run() methods to use new RunLoop() message pump
28983           - Implemented new RunLoop() method for both modal and non-modal forms
28984         * CommonDialog.cs:
28985           - get_CreateParams: Added setting of WS_DISABLED
28986           - Simplified ShowDialog(); now all the work is done in RunLoop(),
28987             invoked via Form.ShowDialog()
28988         * NativeWindow.cs: We don't remove the window from the collection when
28989           the handle is destroyed; there might still be messages for it in the
28990           queue (mainly the resulting WM_DESTROY); instead it will be removed
28991           when Control calls InvalidateHandle in the WM_DESTROY handler
28992         * XplatUIX11.cs:
28993           - CreateWindow: Added logic to handle the WS_DISABLED window style
28994           - EnableWindow: Implemented based on Hwnd.Enabled
28995           - GetMessage: Reset PostQuitState so the method can be called again
28996           - Implemented support for disabled windows (passing messages to the
28997             first enabled parent) in handling all input messages
28998           - Added optimizations for handling Expose events
28999           - Implemeted new driver method IsEnabled()
29000           - Now always resetting paint pending tracking vars when we start paint
29001           - Re-implemented UpdateWindow via just sending a WM_PAINT message
29002         * XplatUIOSX.cs: Added IsEnabled method stub
29003         * XplatUIWin32.cs: Implemented new IsEnabled() method
29004
29005 2006-01-11  Jackson Harper  <jackson@ximian.com>
29006
29007         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29008         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29009         variables a little.
29010         * ColorDialog.cs: Clear out the old form before adding the new
29011         panel.  
29012
29013 2006-01-11  Jackson Harper  <jackson@ximian.com>
29014
29015         * X11Dnd.cs: Make sure to add all the text formats when adding
29016         strings to the data object.
29017         * TreeNodeCollection.cs: When adding to a sorted tree we need to
29018         do some redrawing too.  Also change the UpdateNode to an
29019         UpdateBelow so the newly added node gets painted.
29020         
29021 2006-01-11  Miguel de Icaza  <miguel@novell.com>
29022
29023         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29024         LinkLabel.cs, PropertyGrid.cs: Implement the
29025         UseCompatibleTextRendering property for 2.x
29026
29027         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
29028
29029 2006-01-11  Jackson Harper  <jackson@ximian.com>
29030
29031         * TreeView.cs: Use the property for setting the selected node so
29032         the correct events get raised.
29033         * TreeNode.cs: Update the tree when the fore/back colours of a
29034         node are set.
29035
29036 2006-01-10  Jackson Harper  <jackson@ximian.com>
29037
29038         * TreeView.cs: Allow setting SelectedNode to null.
29039
29040 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29041
29042         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29043
29044 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29045
29046         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29047
29048 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29049
29050         * PrintDialog.cs: Added attributes and set default property values.
29051
29052 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29053
29054         * PrintControllerWithStatusDialog.cs: 
29055         Added PrintControllerWithStatusDialog.
29056
29057 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29058
29059         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
29060         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29061
29062 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29063
29064         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29065
29066 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29067
29068         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29069         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29070
29071 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29072
29073         * MimeIcon.cs: Added internal class SVGUtil.
29074
29075 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29076
29077         * FileDialog.cs: Don't crash if there are two files with the
29078           same name but different locations.
29079
29080 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
29081
29082         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29083         dates across multiple month grids. Used to not highlight entire 
29084         month, but does now.
29085         
29086 2006-01-06  Jackson Harper  <jackson@ximian.com>
29087
29088         * MonthCalendar.cs: Removed DoEvents call to prevent a running
29089         message loop. Change timer intervals to numbers that seem more
29090         natural.
29091
29092 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
29093
29094         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29095           object for location info since screen object is now implemented.
29096
29097 2006-01-05  Jackson Harper  <jackson@ximian.com>
29098
29099         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
29100         * AsyncMethodResult.cs: We no longer use a WeakReference for the
29101         AsyncMethodResult, this is because we ALWAYS want the
29102         ManualResetEvent to get set.
29103         * Control.cs: When disposing use an async invoke to call shutdown
29104         code, so that thigns don't block on the finalizer thread.  Also
29105         check if we even have a message loop before trying to send
29106         messages, if we don't then don't bother sending messages.
29107         - No more weak references for async methods
29108         * XplatUIDriver.cs: No more weak references for async methods.
29109
29110 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29111
29112         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
29113           returns two FontFamily with the same name
29114
29115 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29116
29117         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
29118           drawing disabled text. Instead using the ColorGrayText color
29119
29120 2006-01-04  Jackson Harper  <jackson@ximian.com>
29121
29122         * TreeNode.cs: redraw the node when its image index is changed.
29123
29124 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29125
29126         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
29127           time I checked there are no others like it.
29128
29129 2006-01-04  Jackson Harper  <jackson@ximian.com>
29130
29131         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
29132         this gives the behavoir I was looking for.
29133         * Control.cs: Special case Invoking EventHandlers, this matches MS
29134         and fixes part of bug #76326.
29135
29136 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29137
29138         * ThemeClearlooks.cs, FileDialog.cs:
29139           - Reflect the latest Theme class changes
29140           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
29141             with DateTime
29142             
29143 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29144
29145         * Theme.cs: Cache UI resource images and resize them if needed
29146
29147 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29148
29149         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
29150           is called. This fixes the crash in Nexxia when setting the font
29151           attributes in the chat. [However, RTF needs a look-over to make sure
29152           that all SelectionXXX methods handle the special case that selection
29153           is empty and therefore the change must be applied to all text starting
29154           at the cursor/selection start]
29155
29156 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
29157
29158         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29159           XplatUIOSX.cs: Added SendMessage and PostMessage methods
29160         * X11Keyboard.cs: Switched to new way of calling PostMessage
29161
29162 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29163
29164         * Theme.cs: Added theme interface for images to allow the theme to
29165           control what images are used for things like FileDialog, MessageBox
29166           icons, etc.
29167         * MessageBox.cs: Now uses the new Theme icon/image interfaces
29168
29169 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
29170
29171         * FileDialog.cs:
29172           - Removed some dead code
29173           - Opening a recently used file does work now
29174           - Small UI enhancements
29175           - Refactoring
29176
29177 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29178
29179         * FileDialog.cs: Forgot too add __MonoCS__
29180
29181 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29182
29183         * FileDialog.cs: We are able to read recently used files now let's
29184           go on and write them.
29185
29186 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
29187
29188         * FileDialog.cs: Breathe some life into "last open"/"recently used"
29189           button
29190         * MimeIcon.cs: Do a check for the top level media type also
29191
29192 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29193
29194         * ThemeClearlooks.cs:
29195           - Added CPDrawStringDisabled
29196           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
29197             some chars if the text doesn't fit into text_rect
29198           - DrawListViewItem: If View = View.LargeIcon center the image;
29199             rewrote the drawing of ListViewItem.Text if View = 
29200             View.LargeIcon
29201
29202 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29203
29204         * MimeIcon.cs: Use default KDE icon theme if there is no
29205           "48x48" directory for the current icon theme, fixes #77114
29206         * Mime.cs: Disable not working and actually not used code. 
29207         * ThemeWin32Classic.cs:
29208           - Replace "new SolidBrush" in GetControlBackBrush and
29209             GetControlForeBrush with ResPool.GetSolidBrush
29210           - Changed DrawListViewItem from private to protected virtual
29211         * FileDialog.cs:
29212           - Added form.MaximizeBox = true
29213           - Don't throw an exception if there is a broken symbolic link
29214
29215 2005-12-23  Jackson Harper  <jackson@ximian.com>
29216
29217         * TabControl.cs: Give the panels focus, keyboard navigation is
29218         fixed so this works correctly now.
29219         - We need these key events also.
29220         * ToolBar.cs: Remove some of the poor mans double buffering.
29221         
29222 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
29223
29224         * ComboBox.cs: The internal TextBox now returns the focus.
29225
29226 2005-12-23  Jackson Harper  <jackson@ximian.com>
29227
29228         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
29229
29230 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29231
29232         * Control.cs: Removed debug code
29233         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
29234           implicit children
29235
29236 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
29237
29238         * Control.cs: When creating the control, update the Z-order after
29239           all it's children are created, too. (Fixes nexxia not showing
29240           picturebox bug)
29241
29242 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29243
29244         * Control.cs: Do not update the anchoring distances if layout is
29245           suspended, instead do it once layout is resumed
29246
29247 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
29248
29249         * Control.cs: 
29250           - After many hours of debugging, for both Jackson and
29251             myself, it turns out that it helps to set the parent of a control
29252             if you want to actually see it onscreen. In the spirit of that
29253             discovery, we're now setting the parent of the control and
29254             it's children when the control's handle is created. This fix
29255             will make Lutz Roeder's Reflector run happily. 
29256           - now just creating the handle instead of the whole control when
29257             getting a graphics context for the control.
29258
29259 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
29260
29261         * ScrollableControl.cs: When calculating the canvas, don't consider
29262           the scrollbar widths. Instead, predict if horizontal scrollbar
29263           will affect canvas when deciding on vertical display and vice versa.
29264
29265 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
29266
29267         * RichTextBox.cs: Set default RTF font for documents that don't
29268           have a font table (Fixes #77076)
29269
29270 2005-12-22  Jackson Harper  <jackson@ximian.com>
29271
29272         * TextBoxBase.cs: It's difficult to do, but you can have an empty
29273         clipboard. This prevents a NullRef in that case.
29274         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
29275         clipboard. PRIMARY is for the currently selected text only. (We
29276         should implement PRIMARY at some point.
29277
29278 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29279
29280         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
29281           a Unicode function with a structure that was defined in Ansi way.
29282           This fixes #76942.
29283
29284 2005-12-21  Jackson Harper  <jackson@ximian.com>
29285
29286         * StatusBar.cs: Statusbar handles its fore/back colours on it's
29287         on. Because thats how it rolls. (and this avoids it using ambient
29288         colours).
29289         * ThemeWin32Classic.cs: Use the proper back color for filling.
29290         * Menu.cs: Use the system menu bar color for drawing menu
29291         bars. Using the window back color will bring ambient colours into
29292         the picture.
29293
29294 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
29295
29296         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
29297           Bitmaps were created and not disposed.
29298
29299 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29300
29301         * Control.cs (CreateControl): Don't do anything if the control is
29302           already created, otherwise we'd fire the OnCreated event more than
29303           once
29304
29305 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
29306
29307         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
29308           will always match. Instead return -1. Fixes #76464.
29309
29310 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29311
29312         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
29313           neither the beginning nor the end of the line (Fixes bug #76479)
29314
29315 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
29316
29317         * Control.cs:
29318           - ControlNativeWindow.ControlFromHandle(): Now handling situation
29319             where handle is invalid
29320           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
29321             instead of slower linear search
29322         * NativeWindow.cs: Don't remove the window from the hashtable until
29323           after the driver has destroyed it (since the driver might use
29324           Control.FromHandle to lookup the control object
29325         * Hwnd.cs: Added DestroyPending property to track if a window is 
29326           already destroyed as far as the driver is concerned and only hasn't
29327           yet notified the control
29328         * XplatUIX11.cs:
29329           - Activate(): Check if the window is still valid before using the 
29330             handle
29331           - Implemented DestroyChildWindow() method to mark child windows as
29332             destroyed when a window is destroyed. This prevents situations 
29333             where we might call an X method based on queued events for a
29334             window that already has been destroyed but we haven't yet pulled
29335             the destroy method from the queue.
29336           - Added a call to the new DestroyChildWindow() method to the drivers
29337             DestroyWindow code. Also now marking the destroyed window itself
29338             as pending
29339
29340 2005-12-20  Jackson Harper  <jackson@ximian.com>
29341
29342         * StatusBar.cs:
29343         * StatusBarPanel.cs: Don't calculate panel sizes on draw
29344         anymore. Just do them when needed, also track the rects of panels
29345         so that we can optimize refreshing more in the future.
29346
29347 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
29348
29349         * ColorDialog.cs: Fixed focus drawing in small color controls
29350
29351 2005-12-19  Jackson Harper  <jackson@ximian.com>
29352
29353         * InternalWindowManager.cs:
29354         * MdiWindowManager.cs: Cleanup some coordinate system changes so
29355         moving windows works properly.
29356
29357 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
29358
29359         * Control.cs: 
29360           - Removed call to InitLayout() from SetBoundsCore(); doc says
29361             it's only called when a control is added to a container
29362           - Split InitLayout logic, moved to separate UpdateDistances() method
29363             since we need to perform those calculations more often than just
29364             when adding the control to a container. (Needed to fix #77022)
29365           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
29366           - Reduced the OnBindingContextChanged events count, don't send them
29367             unless the control is created, we still aren't totally matching
29368             MS, but I can't quite figure out some of their rules
29369
29370 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29371
29372         * ThemeClearlooks.cs: Corrected distance between ProgressBar
29373           stripes
29374
29375 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29376
29377         * ThemeClearlooks.cs:
29378           - Updated ProgressBar drawing
29379           - Corrected drawing of ScrollBars and scroll buttons
29380           - Some temporary fixes for minor pixel artefacts
29381
29382 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
29383
29384         * Control.cs:
29385           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
29386             cause events to be sent in the same order as MS does.
29387           - Added ChangeParent() method to trigger various OnXXXChanged events
29388             that need to be fired when a parent changes (This is a reworking
29389             of the patch from r54254, with the X11 errors fixed)
29390           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
29391             since on MS we get OnLayoutChanged events when calling Clear()
29392           - Changed Enabled property to consider parent state as well, if a
29393             parent is not enabled, the control will not be either
29394           - Changed Parent property to simply call Controls.Add() since that
29395             now does all the work required, this way we avoid code duplication
29396           - Threw in a few OnBindingsContextChanged calls to try and match
29397             when MS sends them. We seem to send a few too many, though.
29398           - Added call to CreateControl when adding the control to a parent.
29399             We were never calling CreateControl. Still needs some work, in
29400             some places we treat HandleCreated and ControlCreated as equal, 
29401             which is wrong
29402           - Removed obsolete commented out code from UpdateZOrder()
29403
29404 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29405
29406         * ThemeClearlooks.cs: Updated TrackBar drawing.
29407
29408 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
29409
29410         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
29411
29412 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
29413
29414         * FileDialog.cs: Add the Help button and the open readonly
29415           checkbox only if needed
29416
29417 2005-12-16  Jackson Harper  <jackson@ximian.com>
29418
29419         * Control.cs: Make sure we have an active menu before trying to
29420         process commands on it. Prevents menu-less forms from crashing
29421         when Alt is pressed.
29422         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
29423         Dieter Bremes.
29424         * RichTextBox.cs: Expand statement to help out gmcs and fix the
29425         2.0 build.
29426
29427 2005-12-16  Jackson Harper  <jackson@ximian.com>
29428
29429         * InternalWindowManager.cs: Don't translate tool windows screen
29430         coordinates. This fixes windows 'bouncing' around when being moved.
29431
29432 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
29433
29434         * TextBoxBase.cs:
29435           - MaxLength now treats 2^31-1 equal to unlimited length (this is
29436             not quite MS compatible, MS uses that number only for single line
29437             and 2^32-1 for multi-line, but I figure it won't hurt keeping
29438             the limit at 2GB)
29439           - Now enforcing the MaxLength limit when entering characters
29440           - Added argument to internal Paste() method to track if it's called
29441             from programatically or via keyboard, since keyboard driven pastes
29442             need to enforce max-length
29443           - Added logic to Paste to only paste as many chars as MaxLength 
29444             allows
29445         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
29446         * TextControl.cs:
29447           - Added Length property to return number of characters in document
29448           - Added private CharCount property which only tracks actual chars
29449             in the document (no linefeeds) and fires event when CharCount
29450             changes
29451           - Added tracking of character count to all methods that alter it
29452           - Added LengthChanged event to allow applications to subscribe
29453             to any changes to the document
29454
29455 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
29456
29457         * TextBox.cs: 
29458           - Removed local password_char field (moved to TextBoxBase)
29459           - Now setting the document's password var when password is
29460             set
29461         * TextBoxBase.cs:
29462           - Added password_char field (needed here so MultiLine can
29463             access it)
29464           - Added logic to MultiLine property setter to set the document's
29465             variable when password display is allowed
29466           - Removed debug code and made some debug code conditional
29467         * TextControl.cs:
29468           - Added RecalculatePasswordLine() method to handle special password
29469             char only lines
29470           - Added PasswordChar property, also added related tracking vars
29471           - Draw() method now uses local text var for grabbing text to draw,
29472             this var is set to line.text unless we're doing password display,
29473             then it is set to the pre-generated all-password-chars line
29474           - Added calling RecalculatePasswordLine() method for password lines
29475
29476 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
29477
29478         * Hwnd.cs: 
29479           - Added Reparented property to allow tracking of Window Manager
29480             reparenting actions (which affect X/Y calculations of toplevel 
29481             windows)
29482           - Made ToString() print window handles in hex
29483         * XplatUIX11.cs:
29484           - AddConfigureNotify(): Now uses reparented state off Hwnd to
29485             determine if X/Y needs offsetting
29486           - AddConfigureNotify(): Fixed offset calculations
29487           - Now adds ReparentNotify messages into the queue
29488           - Now processes ReparentNotify messages and causes a 
29489             WM_WINDOWPOSCHANGED message to be sent upstream if a window
29490             is reparented (as most likely it's X/Y coordinates are changed
29491             due to that)
29492
29493 2005-12-14  Jackson Harper  <jackson@ximian.com>
29494
29495         * XplatUIX11.cs: Tool windows still need to respek focus.
29496
29497 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
29498
29499         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
29500           have a working release
29501
29502 2005-12-13  Jackson Harper  <jackson@ximian.com>
29503
29504         * Form.cs: Update styles after setting the border style regardless
29505         of whether or not the window is using a window manager.
29506
29507 2005-12-13  Jackson Harper  <jackson@ximian.com>
29508
29509         * Form.cs: We now hook into an internal window manager instead of just an
29510         MDI subsystem, this is so we can have properly behaving tool windows.
29511         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
29512         * InternalWindowManager.cs: New internal class that acts as a
29513         window manager for tool windows and as a base for mdi windows.
29514         * MdiWindowManager.cs: New class that acts as a window manager for
29515         mdi windows.
29516
29517 2005-12-12  Jackson Harper  <jackson@ximian.com>
29518
29519         * Control.cs: Updates so we match behavoir for for implicit
29520         controls. Fixes explosions in MDI.
29521
29522 2005-12-12  Jackson Harper  <jackson@ximian.com>
29523
29524         * Control.cs: Implement Invalidate (Region).
29525
29526 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
29527
29528         * Control.cs: 
29529           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
29530             the same events as MS does. MS fires events for each property 
29531             except, for unknown reasons, Cursor, when the control is reparented. 
29532             I can't seem to totally match add/remove since MS also fires some 
29533             VisibleChanged events, which makes no sense. Consolidated the
29534             parenting code into a separate method so it can be called from
29535             both Add and Remove. set_Parent no longer needs any special logic
29536             as it calls the parent's add method which implicitly fires
29537             all events
29538           - Removed some obsolete code and debug output
29539           - Enabled state is inherited from parents, if this is enabled
29540
29541 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
29542
29543         * Form.cs: Removed commented out code
29544
29545 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
29546
29547         * Control.cs:
29548           - Added internal version of Invoke, with additional argument 
29549             indicating if we're calling it from a Dispose() handler. That
29550             way we can avoid BeginInvoke throwing an exception if we're
29551             calling for an already destroyed window.
29552           - Added a dispose argument to BeginInvokeInternal, and made the
29553             check if a valid window handle chain exists conditional on
29554             it not being a dispose call
29555           - Removed code in DestroyHandle to destroy our children. Since we
29556             now handle the WM_DESTROY message we will catch all our children
29557             being destroyed.
29558           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
29559         * Form.cs:
29560           - Added a field to track the application context of the form.
29561           - No need to set closing variable as response to WM_CLOSE, instead
29562             we destroy the window. We also call PostQuitMessage if the form
29563             has an application context (which makes it the main app form,
29564             which, when closed terminates the app)
29565         * XplatUI.cs:
29566           - Dropped Exit() method, it's naming was confusing
29567           - Added PostQuitMessage() which causes GetMessage to return false
29568             once the message queue is empty
29569         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
29570           PostQuitMessage()
29571         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
29572           no longer a valid XplatUI method, but left it in since it's used
29573           internally. Added empty PostQuitMessage() method.
29574         * MenuAPI.cs: Replaced call to Exit() with call to
29575           PostQuitMessage, even though this is probably no longer needed.
29576         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
29577         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
29578         * Application.cs:
29579           - Replaced call to XplatUI.Exit() with PostQuitMessage()
29580           - Removed old debug code that would call XplatUI for exception
29581             display, enabled standard exception handling (Still not enabled
29582             though, until NativeWindow's ExternalExceptionHandler define
29583             is removed
29584         * NativeWindow.cs:
29585           - Added internal method to allow control to update NativeWindow
29586             after a window has been destroyed
29587           - Added handling of already destroyed windows when calling i
29588             DestroyWindow
29589           - Added removal of handle from list on ReleaseHandle
29590         * XplatUIX11.cs:
29591           - Dropped GetMessageResult var and related code
29592           - Added PostQuitState to field to track if PostQuitMessage has been
29593             called
29594           - Dropped Exit() method
29595           - Added PostQuitMessage() method
29596           - GetMessage now will return false if PostQuitState is set and no
29597             more messages are in the queue.
29598           - Expose handler will no longer generate WM_PAINT messages if we are
29599             in PostQuitState since it's very likely any windows have already
29600             been destroyed, and since Hwnd won't get updated until we have
29601             processed the DestroyNotify we'd be causing X errors.
29602         
29603 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29604
29605         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
29606           Thanks to Mike for pointing out the err of my ways.
29607
29608 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29609
29610         * Control.cs(PreProcessMessage): Moved menu handling back, but
29611           after all other key handling, to match MS (who handles Menu in
29612           DefWndProc)
29613         * Menu.cs (WndProc): Removed my brainfart
29614
29615 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29616
29617         * Control.cs(PreProcessMessage): Removed special menu handling 
29618         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
29619
29620 2005-12-07  Mike Kestner  <mkestner@novell.com>
29621
29622         * Control.cs : special case SYSKEYUP so that we can adjust keynav
29623         state according in tracker.
29624         * Menu.cs : promote tracker field to base class and provide a tracker
29625         lookup capability.  Add/Remove shortcuts dynamically if the top menu
29626         has a tracker. Unparent items that are removed from the collection.
29627         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
29628         * Theme*.cs: add always_show_hotkeys field to support configurability
29629         of mnemonic display.  win32 doesn't show mnemonics until Alt is
29630         pressed.
29631
29632 2005-12-07  Jackson Harper  <jackson@ximian.com>
29633
29634         * MdiChildContext.cs: Use Control.ResetCursor.
29635         * Control.cs: ResetCursor needs to set the property so that the
29636         correct XplatUI call gets made.
29637
29638 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29639
29640         * Control.cs: More fixes to make our key events match MS. We
29641           were not setting the modifier state on KeyData, and we were
29642           not generating any events when Alt was pressed with a key
29643           since handling of WM_SYSxxx was missing for the OnKey methods.
29644
29645 2005-12-07  Jackson Harper  <jackson@ximian.com>
29646
29647         * MdiChildContext.cs: reenable the sizing code.
29648         - When the mouse leaves a window reset its cursor.
29649
29650 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
29651
29652         * ThemeClearlooks.cs: Reflect latest Hwnd changes
29653
29654 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29655
29656         * Hwnd.cs: Now using the theme 3d bordersize to calculate
29657           widths of Fixed3D borders
29658
29659 2005-12-07  Jackson Harper  <jackson@ximian.com>
29660
29661         * MdiClient.cs: Fix warnings. Earn Mike's love.
29662
29663 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
29664
29665         * ThemeClearlooks.cs:
29666           - Adjusted mouse over button color
29667           - Added first parts of CheckBox drawing
29668           - Added correct color for selected text background
29669           - Fixed ComboBox drawing
29670           - Added CPDrawBorder3D and CPDrawBorder
29671
29672 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
29673
29674         * XplatUIX11.cs: Added call to XBell for AudibleAlert
29675
29676 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
29677
29678         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29679           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
29680           alert users via sound. We could add an enum arg with different
29681           types of alerts in the future
29682
29683 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
29684
29685         * Control.cs: Fix behaviour problems pointed out by Mike
29686
29687 2005-12-05  Mike Kestner  <mkestner@novell.com>
29688
29689         * StatusBarPanel.cs: add Invalidate method and hook it into all the
29690         prop setters.  Calls parent.Refresh for now, but could be maybe be
29691         optimized with an internal method on StatusBar at some point.
29692         [Fixes #76513]
29693
29694 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
29695
29696         * RichTextBox.cs: Implemented get_SelectionColor
29697
29698 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
29699
29700         * ThemeClearlooks.cs:
29701           - Removed dead code
29702           - Draw black button border only if button is Form.AcceptButton
29703           - Draw correct button color for pressed RadioButton if the mouse 
29704             has entered the button
29705           - Updated ProgressBar drawing!
29706           - Updated CPDrawSizeGrip drawing
29707           - Updated StatusBarPanel drawing
29708
29709 2005-12-05  Mike Kestner  <mkestner@novell.com>
29710
29711         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
29712         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
29713
29714 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
29715
29716         * ThemeClearlooks.cs: Initial check-in, activate with
29717           export MONO_THEME=clearlooks
29718         * ThemeEngine.cs: Added ThemeClearlooks
29719
29720 2005-12-03  Mike Kestner  <mkestner@novell.com>
29721
29722         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
29723         [Fixes #76897]
29724
29725 2005-12-02  Jackson Harper  <jackson@ximian.com>
29726
29727         * Form.cs: If the child form has no menu the default main menu is
29728         used as the active menu.
29729
29730 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
29731
29732         * ListBox.cs: Check if any items exist before trying to resolve 
29733           coordinates into items
29734
29735 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
29736
29737         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
29738           as the second color for the background hatch
29739
29740 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
29741
29742         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
29743         * RichTextBox.cs: FormatText position arguments are 1-based, now making
29744           sure that what we pass to FormatText is always 1-based. Fixes #76885
29745
29746 2005-11-29  Miguel de Icaza  <miguel@novell.com>
29747
29748         * NumericUpDown.cs (EndInit): When we are done initializing,
29749         reflect any updates on the UI.
29750
29751 2005-12-02  Jackson Harper  <jackson@ximian.com>
29752
29753         * ImplicitHScrollBar.cs:
29754         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
29755         their container controls.
29756         * TreeView.cs: Use the new implicit scrollbars.
29757
29758 2005-12-02  Jackson Harper  <jackson@ximian.com>
29759
29760         * TreeView.cs: Make top_node internal so the TreeNodeCollections
29761         can play with it.
29762         * TreeNodeCollection.cs: If we remove the topnode we need to
29763         update topnode to the next node in line.
29764         - When clearing nodes go through the same process as removing
29765         them, so they get depareneted and checked if they are top node.
29766
29767 2005-12-01  Jackson Harper  <jackson@ximian.com>
29768
29769         * TreeView.cs: When imagelists are used the image area is
29770         selectable as well as the text.
29771         - If there are no selected nodes select the first one.
29772         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
29773         so don't do it more then we need to.
29774
29775 2005-12-01  Jackson Harper  <jackson@ximian.com>
29776
29777         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
29778         that arrows can be scaled.
29779
29780 2005-12-01  Jackson Harper  <jackson@ximian.com>
29781
29782         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
29783         fail. Patch by Dieter Bremes
29784
29785 2005-11-30  Jackson Harper  <jackson@ximian.com>
29786
29787         * Form.cs: Property is 2.0 only
29788         * PrintDialog.cs: Signature fix.
29789
29790 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
29791
29792         * TextControl.cs: 
29793           - No longer artificially moves text 2 pixels down (now that we have
29794             borders this is no longer needed)
29795           - Added calcs for left, hanging and right indent
29796
29797 2005-11-23  Mike Kestner  <mkestner@novell.com>
29798
29799         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
29800
29801 2005-11-30  Jackson Harper  <jackson@ximian.com>
29802
29803         * MdiChildContext.cs: Set the cloned menus forms, as these don't
29804         get cloned as part of CloneMenu ().
29805         * Menu.cs: Make sure the parent of the items get set correctly
29806         when they are added.  And the owners are notified of the changes.
29807         * Form.cs: Create an ActiveMenu property, so that when MDI is used
29808         we can change the menu being displayed/handled by the form without
29809         changing the menu assosciated with the form.
29810         - Don't let Mdi children draw/handle menus.
29811         
29812 2005-11-30  Jackson Harper  <jackson@ximian.com>
29813
29814         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
29815         a MenuChanged event. Just to make the API a little more
29816         consistent.
29817         * MainMenu.cs:
29818         * MenuItem.cs: Use the new OnMenuChanged
29819         * MdiChildContext.cs: Handle menu merging.
29820         * Form.cs: Implement MergedMenu.
29821         
29822 2005-11-30  Jackson Harper  <jackson@ximian.com>
29823
29824         * Menu.cs: We were misusing Add. Add goes behind the specified
29825         index according to the docs, and does not replace the specified
29826         index. So I added an Insert method.
29827
29828 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
29829
29830         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
29831           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
29832           is for Jackson
29833         * RichTextBox.cs: Added calls to base for DnD events
29834
29835 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
29836
29837         * TextControl.cs:
29838           - Fixed drag-selection related crash; style fixes
29839           - Implemented undo class
29840             o Implemented method to capture document state for specified
29841               range in document tree
29842             o Implemented method to restore captured document state
29843             o Implemented cursor tracking
29844             o Implemented basic undo stack
29845           - Added undo cursor tracking to methods altering cursor location
29846           - Added undo tracking to selection deletion (still missing
29847             other text-altering hookups)
29848         * RichTextBox.cs:
29849           - Added SelectionLength property
29850           - Implemented CanPaste()
29851           - Implemented Paste()
29852           - Added missing protected methods
29853           - Fixed RTF->Document conversion; now uses font index 0 and color 
29854             index 0 as the default font for the parsed text
29855           - Fixed RTF<->Document font size translation
29856           - Fixed RTF generation, now properly handles cross-tag boundaries
29857             for single line selection
29858           - No longer always appends blank line to generated RTF
29859           - Removed TODOs
29860           - Added missing attributes
29861           - Hooked up undo-related methods
29862         * TextBoxBase.cs:
29863           - Implemented Copy()
29864           - Implemented Paste()
29865           - Implemented Cut()
29866           - Fixed caret mis-behaviour on backspace across line-boundaries
29867
29868 2005-11-29  Jackson Harper  <jackson@ximian.com>
29869
29870         * MdiClient.cs: Add a method for activating mdi children. Very
29871         basic right now. I imagine someday it might need more girth.
29872         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
29873         children windows names are added to the menu item.
29874         * ThemeWin32Classic.cs: Draw the arrow if the item is an
29875         mdilist. This happens regardless of whether or not there are any
29876         mdi windows to see in the list, and according to my tests happens
29877         before the items are even added. Also happens if there isn't even
29878         an mdi client to get windows from.
29879
29880 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
29881
29882         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
29883         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
29884
29885 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
29886
29887         * DataGridTableStyle.cs:
29888           - Create always the styles for the missing columns even if they are
29889             provided by the user (not default table style)
29890         * DataGrid.cs:
29891           - Fixes bug 76770
29892           - Fixes SetDataBinding (always re-attach source)
29893           - Fixes SetNewDataSource (only clear styles if they are not for 
29894             this source)
29895          -  Expands OnTableStylesCollectionChanged to handle style refresh 
29896             and remove properly
29897
29898 2005-11-29  Jackson Harper  <jackson@ximian.com>
29899
29900         * FileDialog.cs: Implement missing bits, remove some dead
29901         code.
29902         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
29903         creation of the panel so that the options set on the dialog are
29904         seen when the panel is created.
29905         * TreeView.cs: raise a click when items are clicked.
29906         
29907 2005-11-29  Jackson Harper  <jackson@ximian.com>
29908
29909         * MdiClient.cs: Pass some signature methods through to base.
29910
29911 2005-11-28  Jackson Harper  <jackson@ximian.com>
29912
29913         * ListView.cs: Raise the click event when items are clicked.
29914
29915 2005-11-28  Jackson Harper  <jackson@ximian.com>
29916
29917         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
29918         a nullref.
29919
29920 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
29921
29922         * ThemeNice.cs: - Removed 1 pixel bitmaps
29923           - Use SmoothingMode.AntiAlias where it makes sense
29924             (ScrollButton arrow for example)
29925           - Enhanced Button focus drawing
29926           - Fixed ComboBox drawing (no artefacts anymore, focus
29927             rectangle is back again, reduced size of ComboButton, etc.)
29928           - Fixed RadioButton focus drawing for Appearence.Button
29929           - Slight ScrollButton redesign
29930           - Some LinearGradientBrush size fixes
29931           - GroupBoxes have now rounded edges
29932           - Fixed StatusBar drawing
29933
29934 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
29935
29936         * ThemeNice.cs: - Remove dead code
29937           - use correct background colors for menus, etc.
29938           - Fake pixel drawing with 1 pixel bitmaps
29939
29940 2005-11-24  Jackson Harper  <jackson@ximian.com>
29941
29942         * MdiClient.cs: Size the scrollbars when resizing the window.
29943         - Resize the maximized windows when the client is resized
29944         * Form.cs: Make the child context available
29945         
29946 2005-11-23  Jackson Harper  <jackson@ximian.com>
29947
29948         * MdiChildContext.cs: Don't size windows if they are maximized.
29949
29950 2005-11-23  Mike Kestner  <mkestner@novell.com>
29951
29952         * ContextMenu.cs: use MenuTracker.
29953         * Control.cs: remove menu handle usage.
29954         * Form.cs: remove menu handle usage.
29955         * Hwnd.cs: remove menu handle usage.
29956         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
29957         motion and clicks to the new Tracker handlers.
29958         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
29959         and handle usage.
29960         * MenuAPI.cs: refactored to combine popup and menubar event handling.
29961         Killed the MENU and MENUITEM data types and associated collections
29962         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
29963         MenuTracker class that exposes the leftovers from the old MenuAPI
29964         static methods. Restructured Capture handling so that only one grab is
29965         done for the entire menu hierarchy instead of handing off grabs to
29966         submenus. Tracker now has an invisible control to Capture when active.
29967         * MenuItem.cs: add sizing accessors, kill Create
29968         and handle usage.
29969         * Theme.cs: remove menu handle and MENU(ITEM) usage.
29970         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
29971         MENU(ITEM). remove menu handle usage, use Menu directly.
29972         * XplatUIDriver.cs: remove menu handle usage.
29973         * XplatUIOSX.cs: remove menu handle usage.
29974         * XplatUIWin32.cs: remove menu handle usage.
29975         * XplatUIX11.cs: remove menu handle usage.
29976
29977 2005-11-22  Jackson Harper  <jackson@ximian.com>
29978
29979         * Hwnd.cs: Don't compute the menu size for
29980         DefaultClientRectangle.
29981         - Reenable menu sizes being computed for GetClienRectangle.
29982         * Form.cs: Remove comment of trechery
29983         
29984 2005-11-22  Jackson Harper  <jackson@ximian.com>
29985
29986         * Hwnd.cs: The adjustments for the menu bar are made when it is
29987         attached to the form.
29988
29989 2005-11-19  Jackson Harper  <jackson@ximian.com>
29990
29991         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
29992         (just like on windows).
29993
29994 2005-11-19  Jackson Harper  <jackson@ximian.com>
29995
29996         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
29997         use real buttons anymore because they are in non client area. The
29998         one TODO here is that I need to somehow invalidate a section of
29999         the non client area.
30000
30001 2005-11-18  Jackson Harper  <jackson@ximian.com>
30002
30003         * Control.cs: Put the enum check back in now that MDI doesnt have
30004         to use this to set border styles.
30005         * Form.cs: Only set mdi child windows borders if the handle has
30006         been created.
30007         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30008         this directly on to the driver.
30009         - Get the move start position before adjusting for the titlebar
30010         height, this fixes the windows "skipping" when they are first
30011         moved.
30012
30013 2005-11-18  Jackson Harper  <jackson@ximian.com>
30014
30015         * XplatUIX11.cs: Just compute the mdi borders separately as they
30016         don't totally match up with normal form borders.
30017
30018 2005-11-18  Jackson Harper  <jackson@ximian.com>
30019
30020         * Control.cs: Set WS_ styles for borders, so that the driver does
30021         not have to retrieve the control instance to figure out what kind
30022         of borders it should have.
30023         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30024         driver can know its an mdi child easily.
30025         * XplatUIX11.cs: Get the border styles and whether the window is
30026         MDI from the Styles and ExStyles params instead of having to get a
30027         control. This prevents a chicken and egg problem.       
30028
30029 2005-11-18  Jackson Harper  <jackson@ximian.com>
30030
30031         * MdiClient.cs: Fix typo so scrollbars show up correctly.
30032
30033 2005-11-18  Jackson Harper  <jackson@ximian.com>
30034
30035         * MdiClient.cs: Calculate when to add and remove scrollbars
30036         correctly.
30037         * MdiChildContext.cs: Adjust the y position to take the titlebar
30038         into account.
30039         - No height for FormBorderStyle.None
30040
30041 2005-11-18  Jackson Harper  <jackson@ximian.com>
30042
30043         * Control.cs: Allow non enum values to be used for
30044         InternalBorderStyle.  MDI does this to set a special border style.
30045         - New utility methods for converting points to/from client coords
30046         - Add the newly created control to the Controls collection before
30047         updating its style. This way UpdateStyle can walk the control
30048         heirarchy to find the control if needed.
30049         so I don't need to create a new Point object all the time.
30050         * Form.cs: Let MDI windows handle their border styles.
30051         - Set styles on MDI windows so the correct title style is derived.
30052         * MdiChildContext.cs: Move all the painting and window handling
30053         into the non client area.
30054         - Use correct sizing and put correct buttons on frames based on
30055         the FormBorderStyle.
30056         - Notify the mdi client about scrolling
30057         - Need to handle the buttons ourselves now, because they are all
30058         in non client areas and we can't add controls there.
30059         * MdiClient.cs: Halfway to scrolling, this implementation is
30060         somewhat broken though, we need to check to make sure other
30061         windows aren't causing scrolling before removing the bars. Also
30062         the bars need to be drawn on top, maybe I can switch implicit
30063         controls to be on top.
30064         * Hwnd.cs: caption_height and tool_caption_height are now
30065         properties of an hwnd, this way they can be set by the driver
30066         based on the type of window they are.  In X11 the window manager
30067         handles the decorations so caption_height is zero unless its an
30068         MDI window.
30069         - Add 3 pixel borders for MDI windows (0xFFFF).
30070         - Get rid of some code duplication, have DefaultClientRectanle
30071         just call GetClientRectangle.
30072         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30073         Hwnd now.
30074         - Set border styles differently for mdi windows.
30075         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30076         Hwnd now.
30077         
30078 2005-11-15  Mike Kestner  <mkestner@novell.com>
30079
30080         * Menu.cs: when adding an item to the collection, if item is already 
30081         parented, remove it from the parent.
30082
30083 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
30084
30085         * X11DesktopColors.cs: Added KDE support
30086
30087 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
30088
30089         * XplatUIWin32.cs: 
30090           - Clipboard methods now can translate Rtf format
30091           - No longer removes clipboard contents whenever a new format is added
30092             to allow placing multiple formats on the clipboard
30093         * Clipboard.cs: Clipboard now supports getting a IDataObject and
30094           will place all formats contained in it onto the clipboard. Also
30095           now cleans the clipboard before placing a new object onto it
30096         * RichTextBox.cs:
30097           - Implemented set_Rtf
30098           - Implemented set_SelectedRtf
30099           - Created InsertRTFFromStream() method to allow single code base
30100             for all properties and methods that insert RTF into document
30101           - Removed debug output
30102         * TextControl.cs:
30103           - Fixed Delete(int) to fix up line numbers
30104           - Fixed ReplaceSelection to combine start and end line
30105           - Fixed serious DeleteChars bug that would leave the document tree
30106             broken
30107           - Improved DumpTree with several logic checks to detect broken
30108             document trees
30109           - Removed debug lines
30110           - Fixed Caret.WordForward/WordBack moving code, now always also 
30111             updates caret.tag (fixes crash when word-selecting across tag
30112             boundaries via keyboard)
30113           - Added Insert() method for inserting multiline text into documents
30114           - Fixed DeleteChars() calculation errors that would cause a broken
30115             tag chain with multiple tag lines
30116           - DeleteChars() no longer crashes on multi-tag lines if not all tags
30117           - Split() no longer moves caret if split is at caret location
30118           - ReplaceSelection() now updates the cursor and re-displays it
30119           - ReplaceSelection() now uses new Insert() method to avoid code
30120             duplication
30121           - FormatText() can now handle formatting partial lines
30122         * TextBoxBase.cs:
30123           - Append now uses new TextControl.Insert() method (this avoids 
30124             duplicate code)
30125           - Implemented Ctrl-X (Cut) (
30126           - Implemented Ctrl-C (Copy)
30127           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
30128             regeneration when pasting text; roundtripping Copy&Paste within
30129             edit control still fails due to some calculation bugs in GenerateRTF)
30130           - The Delete key will now remove the current selection if it is visible
30131         * TextBox.cs: Removed debug lines
30132         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
30133           driver to be initialized and can't therefore be done via a static ctor)
30134
30135 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
30136
30137         * TextControl.cs: Added backend code for finding char arrays and strings
30138         * TextBoxBase.cs:
30139           - Added mouse wheel scroll support
30140           - Added support for VScroll and HScroll events
30141         * RichTextBox.cs:
30142           - Implemented all seven Find() variants
30143           - Implemented GetCharFromPosition()
30144           - Implemented GetCharIndexFromPosition()
30145           - Implemented GetLineFromIndex()
30146           - Implemented GetPositionFromCharIndex();
30147           - Implemented SaveFile for PlainText and UnicodeText
30148           - Fixed set_Font, now setting a new font applies that font to
30149             the whole document
30150           - Implemented generic Document to RTF converter
30151           - Implemented SaveFile for RichText format (still missing unicode
30152             conversion for non-ansi chars)
30153           - Implemented get_Rtf
30154           - Implemented get_SelectedRtf
30155
30156 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
30157
30158         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
30159           to allow any captures to be released before triggering OnClick. This
30160           way a click handler may capture the mouse without interference.
30161         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
30162           This way we send them even though X may not allow a grab (if the window
30163           isn't visible, for example)
30164
30165 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
30166
30167         * DataGridViewRowEventArgs.cs: DataGridView implementation
30168         * DataGridViewElement.cs: DataGridView implementation
30169         * DataGridViewComboBoxCell.cs: DataGridView implementation
30170         * DataGridViewDataErrorContexts.cs: DataGridView implementation
30171         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
30172         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
30173         * ImageLayout.cs: DataGridView implementation
30174         * DataGridViewComboBoxColumn.cs: DataGridView implementation
30175         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
30176         * DataGridViewSelectionMode.cs: DataGridView implementation
30177         * IDataGridViewEditingControl.cs: DataGridView implementation
30178         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
30179         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
30180         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
30181         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
30182         * DataGridViewColumnSortMode.cs: DataGridView implementation
30183         * DataGridView.cs: DataGridView implementation
30184         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
30185         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
30186         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
30187         * Padding.cs: DataGridView implementation
30188         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
30189         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
30190         * DataGridViewRowEventHandler.cs: DataGridView implementation
30191         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
30192         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
30193         * DataGridViewButtonCell.cs: DataGridView implementation
30194         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
30195         * DataGridViewEditMode.cs: DataGridView implementation
30196         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
30197         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
30198         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
30199         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
30200         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
30201         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
30202         * DataGridViewCellEventHandler.cs: DataGridView implementation
30203         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
30204         * DataGridViewCellStyleConverter.cs: DataGridView implementation
30205         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
30206         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
30207         * DataGridViewColumnEventArgs.cs: DataGridView implementation
30208         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
30209         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
30210         * QuestionEventArgs.cs: DataGridView implementation
30211         * IDataGridViewEditingCell.cs: DataGridView implementation
30212         * DataGridViewTriState.cs: DataGridView implementation
30213         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
30214         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
30215         * DataGridViewColumnCollection.cs: DataGridView implementation
30216         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
30217         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
30218         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
30219         * DataGridViewColumn.cs: DataGridView implementation
30220         * DataGridViewCellBorderStyle.cs: DataGridView implementation
30221         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
30222         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
30223         * DataGridViewRow.cs: DataGridView implementation
30224         * DataGridViewImageCellLayout.cs: DataGridView implementation
30225         * DataGridViewImageCell.cs: DataGridView implementation
30226         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
30227         * DataGridViewCheckBoxCell.cs: DataGridView implementation
30228         * DataGridViewHeaderCell.cs: DataGridView implementation
30229         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
30230         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
30231         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
30232         * DataGridViewTextBoxColumn.cs: DataGridView implementation
30233         * QuestionEventHandler.cs: DataGridView implementation
30234         * DataGridViewCellStyleScopes.cs: DataGridView implementation
30235         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
30236         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
30237         * DataGridViewCell.cs: DataGridView implementation
30238         * DataGridViewCellEventArgs.cs: DataGridView implementation
30239         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
30240         * DataGridViewCellStyle.cs: DataGridView implementation
30241         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
30242         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
30243         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
30244         * TextFormatFlags.cs: DataGridView implementation
30245         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
30246         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
30247         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
30248         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
30249         * DataGridViewButtonColumn.cs: DataGridView implementation
30250         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
30251         * HandledMouseEventArgs.cs: DataGridView implementation
30252         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
30253         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
30254         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
30255         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
30256         * DataGridViewRowCollection.cs: DataGridView implementation
30257         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
30258         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
30259         * DataGridViewHitTestType.cs: DataGridView implementation
30260         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
30261         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
30262         * DataGridViewColumnEventHandler.cs: DataGridView implementation
30263         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
30264         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
30265         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
30266         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
30267         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
30268         * DataGridViewContentAlignment.cs: DataGridView implementation
30269         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
30270         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
30271         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
30272         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
30273         * DataGridViewPaintParts.cs: DataGridView implementation
30274         * DataGridViewCellCollection.cs: DataGridView implementation
30275         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
30276         * DataGridViewImageColumn.cs: DataGridView implementation
30277         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
30278         * DataGridViewElementStates.cs: DataGridView implementation
30279         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
30280         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
30281         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
30282         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
30283         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
30284         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
30285         * DataGridViewRowHeaderCell.cs: DataGridView implementation
30286         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
30287         * DataGridViewTextBoxCell.cs: DataGridView implementation
30288         * DataGridViewBand.cs: DataGridView implementation
30289         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
30290         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
30291         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
30292         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
30293         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
30294         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
30295         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
30296         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
30297         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
30298         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
30299         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
30300
30301 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
30302
30303         * ThemeWin32Classic.cs: 
30304           - Draw the outside focus rectangle around buttons
30305           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
30306             doesn't use end caps for every dash of a line anymore. This
30307             workaround ignores the forecolor.
30308
30309 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
30310
30311         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
30312           endian safe.
30313
30314 2005-11-07  Jackson Harper  <jackson@ximian.com>
30315
30316         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
30317
30318 2005-11-07  Jackson Harper  <jackson@ximian.com>
30319
30320         * ScrollableControl.cs: Calculate the maximum and change vars
30321         (more) correctly so that scrollbars appear as a sensible size.
30322
30323 2005-11-04  Jackson Harper  <jackson@ximian.com>
30324
30325         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
30326         collection.
30327         * TreeView.cs: When the tree is sorted null out the top_node so
30328         that it is recalculated.
30329         - Use dotted lines instead of dashed lines to match MS better.
30330
30331 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
30332
30333         * ListView.cs: 
30334           - Implements key search for items. Useful when browsing files with FileDialog
30335           - When changing view mode or when clear the items reset scrollbar positions
30336
30337 2005-11-04  Jackson Harper  <jackson@ximian.com>
30338
30339         * CurrencyManager.cs: Implement the MetaDataChanged event, the
30340         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
30341         as to what the method may do as there is no real way of creating a
30342         derived CurrencyManager and calling the method. 
30343
30344 2005-11-03  Jackson Harper  <jackson@ximian.com>
30345
30346         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
30347         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
30348         method which seems to just be used internally to refresh the tabs.
30349
30350 2005-11-03  Jackson Harper  <jackson@ximian.com>
30351
30352         * TabControl.cs: Implement the remove method. Fix some broken
30353         comments.
30354
30355 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30356
30357         * DateTimePicker.cs:
30358           - Added missing DateTimePickerAccessibleObject class
30359           - Added missing events
30360           - Added OnFontChanged method
30361         * Form.cs: Added missing attributes
30362         * TreeView.cs: Added missing attributes
30363
30364 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
30365
30366         * GridItemCollection.cs: Fix signatures
30367
30368 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30369
30370         * XplatUI.cs: Updated build rev/date
30371         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
30372           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
30373         * Application.cs: Trigger context-specific ExitThread events
30374
30375 2005-11-03  Jackson Harper  <jackson@ximian.com>
30376
30377         * Menu.cs:
30378         * MainMenu.cs:
30379         * GridTableStylesCollection.cs:
30380         * Timer.cs:
30381         * TabPage.cs:
30382         * HelpProvider.cs:
30383         * StatusBar.cs:
30384         * MonthCalendar.cs: Signature fixes
30385
30386 2005-11-03  Jackson Harper  <jackson@ximian.com>
30387
30388         * TreeNodeCollection.cs: Remove should not be virtual.
30389         * TreeView.cs: Implement the last of the missing methods.
30390
30391 2005-11-03  Jackson Harper  <jackson@ximian.com>
30392
30393         * TreeNodeConverter.cs: Implement to get off my class-status back.
30394
30395 2005-11-03  Jackson Harper  <jackson@ximian.com>
30396
30397         * TreeView.cs: Hookup the bits for drag and drop.
30398         * TreeNode.cs: Don't cache the tree_view or index anymore, now
30399         that nodes can be moved from tree to tree easily this just causes
30400         all sorts of problems.
30401         * TreeNodeCollection: Don't need to give treenodes an index and
30402         treeview anymore when they are added, these are computed on the
30403         fly. Also make sure to remove a node before its added.
30404
30405 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30406
30407         * TextControl.cs:
30408           - Added CaretSelection enum
30409           - Added comparison methods to Marker struct, makes selection code
30410             more readable
30411           - Added SelectionStart and SelectionEnd as 'moveable' location for
30412             the CaretDirection enum and handler
30413           - Added selection_prev variable to track optimized invalidation for
30414             word and line selection
30415           - Added SelectionVisible property (returns true if there is a valid 
30416             selection)
30417           - Switched CaretHasFocus to only display the caret if there is no
30418             visible selection
30419           - Avoiding StringBuilder.ToString to retrieve a single char, instead
30420             using the direct character index; should be much faster
30421           - Added various conditional debug statements
30422           - Fixed invalidation calculation for selection ranges
30423           - Added ExpandSelection() method to support word and line selection
30424           - Switched SetSelectionToCaret to use new Marker compare overloads
30425           - Added central IsWordSeparator() method to determine word 
30426             separators/whitespace and FindWordSeparator() to streamline common
30427             usage of IsWordSeparator()
30428         * TextBoxBase.cs:
30429           - Removed unneeded grabbed variable, it was just mirroring
30430             Control.Capture
30431           - No longer firing OnTextChanged event when Text setter is called,
30432             since the base will fire the event for us
30433           - Added handling of Ctrl-Up/Down selection
30434           - Added handling of Shift-Cursorkey selection
30435           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
30436             words
30437           - Added handling of Shift and Ctrl-Shift-Home/End selection
30438           - Removed some debug output
30439           - Added handling for single/double/tripple-click to place caret/
30440             select word/select line respectively (Fixes bug #76031)
30441           - Added support for drag expansion of word/line selection
30442         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
30443           current selection
30444
30445 2005-11-02  Jackson Harper  <jackson@ximian.com>
30446
30447         * X11Dnd.cs: If the drag is going to and from a MWF window just
30448         copy the data instead of sending it out through the X Selection
30449         mechanism.
30450
30451 2005-11-02  Jackson Harper  <jackson@ximian.com>
30452
30453         * X11Dnd.cs:
30454         * XplatUIX11.cs: When in a drag we don't want motion notify
30455         messages to get passed on to the other controls. This prevents
30456         mouse move messages from showing up in the drag source.
30457
30458 2005-11-02  Jackson Harper  <jackson@ximian.com>
30459
30460         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
30461         the correct button is release to end a drag.
30462         * XplatUIX11.cs: Make the button state internal so the drag system
30463         can access it.  Dragging needs to know about all button releases,
30464         not just left button.
30465
30466 2005-11-02  Miguel de Icaza  <miguel@novell.com>
30467
30468         * Form.cs (Icon): If the icon is null, reset the icon to the
30469         default value. 
30470
30471         * Cursor.cs: When writing the AND-mask bitmap do not include the
30472         number of colors, but hardcode those to two (black and white),
30473         fixes the loading of color cursors (Paint Dot Net).
30474
30475         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
30476         turn off autoscaling.
30477
30478         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
30479
30480 2005-11-02  Jackson Harper  <jackson@ximian.com>
30481
30482         * X11Dnd.cs: Make sure to send a status message if the pointer
30483         enters a control that can not accept a drop, otherwise the cursor
30484         isn't updated correctly. Also tried to compress the lines of code
30485         a bit.
30486
30487 2005-11-02  Jackson Harper  <jackson@ximian.com>
30488
30489         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
30490         set actions correctly.  This isn't perfect as XDND and win32 have
30491         some differences on how you allow actions. I'll clear this up by
30492         adding a path for drag from MWF to MWF windows.
30493         * XplatUIX11.cs: Hook into the dnd system.
30494
30495 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
30496
30497         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
30498         previously shown but they are no longer need it. Very obvious when 
30499         browsing files with FileDialog.
30500
30501 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
30502
30503         * Control.cs: We always need to call OnPaintBackground. We pretty much
30504           ignore AllPaintingInWmPaint and always do the painting there, whether 
30505           it's set or not, since we always ignore the WM_ERASEBKGND message 
30506           (which we don't generate on X11). This fixes #76616.
30507         * Panel.cs: Removed unneeded background painting. This happens properly
30508           in Control.cs already
30509
30510 2005-10-31  Mike Kestner  <mkestner@novell.com>
30511
30512         * Menu.cs: Add items to collection before setting their index.
30513         * MenuItem.cs : add range checking with ArgumentException like MS.
30514         [Fixes #76510]
30515
30516 2005-10-31  Jackson Harper  <jackson@ximian.com>
30517
30518         * ListBox.cs: Invalidate if the area is visible at all not just
30519         contained in the visible rect. Fixes unselection of semi visible
30520         items.
30521
30522 2005-10-31  Jackson Harper  <jackson@ximian.com>
30523
30524         * Control.cs: Consistently name the dnd methods. Make them
30525         internal so we can override them to match some MS behavoir
30526         internally.
30527         * Win32DnD.cs: Use the new consistent names.
30528
30529 2005-10-31  Jackson Harper  <jackson@ximian.com>
30530
30531         * TreeView.cs: Don't draw the selected node when we lose focus.
30532
30533 2005-10-31  Jackson Harper  <jackson@ximian.com>
30534
30535         * X11Dnd.cs: We still need to reset the state even though a full
30536         reset isn't being done, otherwise status's still get sent all over
30537         the place.
30538
30539 2005-10-31  Jackson Harper  <jackson@ximian.com>
30540
30541         * Control.cs: Make the dnd_aware flag internal so the dnd
30542         subsystem can check it. Catch exceptions thrown in dnd handlers to
30543         match MS behavoir.
30544         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
30545         * X11Dnd.cs: Handle null data in the converters. Set the XDND
30546         version when sending a XdndEnter. Use the control/hwnd dnd_aware
30547         flags to reduce the number of dnd enters/status's sent.
30548
30549 2005-10-31  Jackson Harper  <jackson@ximian.com>
30550
30551         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
30552
30553 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
30554
30555         * PictureBox.cs: Fixes 76512
30556
30557 2005-10-28  Jackson Harper  <jackson@ximian.com>
30558
30559         * X11Dnd.cs: Early implementation to support winforms being a drag
30560         source for data on X11. Also restructured the converters so they
30561         can go both ways now.
30562         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
30563         
30564 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
30565
30566         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
30567           clipboard requests
30568
30569 2005-10-27  Jackson Harper  <jackson@ximian.com>
30570
30571         * TreeNode.cs: Implement serialization so my DnD examples will work.
30572
30573 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
30574
30575         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
30576           TreeView.cs: Don't dispose objects that are not owned.
30577           
30578 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
30579
30580         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
30581           should retrieve the current cursor and report that, but XplatUI
30582           doesn't (yet) have an interface for that (and I'm not sure I even
30583           can, on X11)
30584         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
30585           until any message loop processing is done (and the WM_SETCURSOR
30586           replaces the cursor to the proper one)
30587         * XplatUIX11.cs: 
30588           - Fixed override behaviour, we can't set the cursor globally on X11, 
30589             just for our windows.
30590           - Invalidating the System.Drawing X11 display handle when we are
30591             shutting down
30592         * Control.cs: Fix to make csc happy
30593
30594 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
30595
30596         * TextBoxBase.cs: 
30597           - get_Text: Add last line (without trailing newline) to returned
30598             value (Fixes 76212)
30599           - get_TextLength: Count last line in returned length
30600           - ToString: Call Text property instead of duplicating code
30601
30602 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
30603
30604         * ImageList.cs: Dispose ImageAttributes objects.
30605
30606 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
30607
30608         * ImageList.cs: Use attribute constructors with less arguments where
30609           possible.
30610
30611 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
30612
30613         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
30614           Use typeof instead of strings when assembly is referenced. Added
30615           some more comments.
30616
30617 2005-10-21  Jackson Harper  <jackson@ximian.com>
30618
30619         * ListView.cs: Raise a double click event. Also tried to somewhat
30620         fix when the selectedindexchanged event is raised. Its still
30621         broken though.
30622
30623 2005-10-21  Jackson Harper  <jackson@ximian.com>
30624
30625         * TreeView.cs: New method to invalidate the plus minus area of a
30626         node without invalidating the whole node (maybe this can be used
30627         in some more places).
30628         * TreeNodeCollection.cs: When adding to an empty node we need to
30629         invalidate its plus minus area so the little block shows up.
30630         
30631 2005-10-21  Jackson Harper  <jackson@ximian.com>
30632
30633         * TreeView.cs: Make sure that when we invalidate a node the bounds
30634         are big enough to cover the selected box and the focus
30635         rectangle. Use a different colour for the lines connecting nodes
30636         so they show up with all themes.
30637
30638 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
30639
30640         * NativeWindow.cs: Don't call anything that could call into the driver,
30641           we might be on a different thread.
30642
30643 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
30644
30645         * Control.cs(Dispose): Since Dispose might run on a different thread,
30646           make sure that we call methods that could call into the driver via
30647           invoke, to avoid thread issues
30648
30649 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
30650
30651         * XplatUI.cs: Removed finalizer
30652         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
30653           not allowing to be called on the finalizer thread.
30654
30655 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
30656
30657         * ImageList.cs:
30658           - Reverted r51889 and r51891.
30659           - Added ImageListItem class that stores unmodified image items and image
30660             properties required to create list images until handle is created.
30661           - Added AddItem and moved image creation logic to AddItemInternal.
30662           - Added CreateHandle method that creates images based on unmodified items.
30663           - Added DestroyHandle that changes state to store unmodified items.
30664           - Add and AddStrip methods no more create handle.
30665           - ReduceColorDepth has no return value.
30666           - Dispose destroys handle.
30667           - Modified other methods to reflect the above changes.
30668           - Implemented key support.
30669           - Added profile 2.0 members and attributes.
30670           - Added private Reset and ShouldSerialize methods that provide the same
30671             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
30672             them as they are private.
30673           - Added some more comments about implementation details.
30674
30675 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30676
30677         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
30678
30679 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30680
30681         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
30682
30683 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30684
30685         * DataGridDrawingLogic.cs: Fixes column hit calcultation
30686         * DataGridColumnStyle.cs: Remove debug message
30687
30688 2005-10-20  Jackson Harper  <jackson@ximian.com>
30689
30690         * TreeView.cs: We can always get input keys regardless of whether
30691         or not editing is enabled. They are used for navigation.
30692
30693 2005-10-20  Jackson Harper  <jackson@ximian.com>
30694
30695         * TreeNode.cs: Use the viewport rect for determining if a node
30696         needs to be moved for visibility. Don't use Begin/End edit. This
30697         calls a full refresh when its done.
30698         * TreeView.cs: New SetBottom works correctly.  Make the viewport
30699         rect property internal so the treenodes can see it. When clicking
30700         on a node we need to ensure that its visible because it might just
30701         be partly visible when clicked.
30702
30703 2005-10-20  Jackson Harper  <jackson@ximian.com>
30704
30705         * TreeNodeCollection.cs: Remove debug code.
30706
30707 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
30708
30709         * Datagrid.cs: Implements column sorting in Datagrid
30710         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
30711
30712 2005-10-20  Jackson Harper  <jackson@ximian.com>
30713
30714         * TreeNodeCollection.cs: Remove items properly. Update the correct
30715         area after removing them.
30716
30717 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
30718
30719         * Datagrid.cs: Should not call base.OnPaintBackground
30720
30721 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
30722
30723         * XplatUIX11.cs (GetMessage):
30724           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
30725             window instead of client window
30726           - Now properly calculates NC_xBUTTONUP message coordinates
30727           - ScreenToMenu now properly calculates it's coordinates of whole 
30728             window, since menus are in the whole window, not in the client
30729             window
30730           - Added WholeToScreen coordinate translation method
30731
30732 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
30733
30734         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
30735           want to return a message, loop back to the beginning of the function
30736           and grab the next real message to process instead.
30737
30738 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
30739
30740         * Splitter.cs: Properly set limits if no filler control is used
30741
30742 2005-10-19  Jackson Harper  <jackson@ximian.com>
30743
30744         * ColorDialog.cs: Don't show the help button if it is not enabled
30745         instead of disabling it (this is what MS does). Don't create the
30746         panel until the dialog is run, otherwise the vars (such as
30747         ShowHelp) are not set yet.
30748
30749 2005-10-19  Jackson Harper  <jackson@ximian.com>
30750
30751         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
30752         are reduced when adding nodes.
30753         * TreeNode.cs:
30754         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
30755         tree.
30756         
30757 2005-10-19  Jackson Harper  <jackson@ximian.com>
30758
30759         * FolderBrowserDialog.cs: End editing our treeview so the window
30760         actually gets refreshed.
30761
30762 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
30763
30764         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
30765           Obsoleted handling of WM_ERASEBKGND, now always draws our background
30766           inside of WM_PAINT
30767
30768 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30769
30770         * MenuAPI.cs: Returns after Hidding window
30771         * XplatUIX11.cs: Added TODO found while debugging menu issues
30772
30773 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
30774
30775         * XplatUIX11.cs: Do not re-map the whole window when it's size
30776           becomes non-zero unless it's supposed to be actually visible
30777
30778 2005-10-18  Jackson Harper  <jackson@ximian.com>
30779
30780         * TreeView.cs: We don't need to keep a count anymore.
30781         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
30782         use the Grow method.
30783
30784 2005-10-18  Jackson Harper  <jackson@ximian.com>
30785
30786         * TreeNodeCollection.cs: Insert is not supported on arrays, so
30787         implement it manually here.
30788
30789 2005-10-18  Jackson Harper  <jackson@ximian.com>
30790
30791         * ImageList.cs: Dont kill the list when the colour depth is
30792         changed, just change the colour depth of all the images.
30793         - Same goes for setting the image size. Just resize them all
30794         instead of killing the list softly.
30795
30796 2005-10-18  Jackson Harper  <jackson@ximian.com>
30797
30798         * Control.cs: Don't invalidate empty rectangles.
30799
30800 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30801
30802         * ListViewItem.cs:
30803           - Adds checked item to the Checked/Item lists (where empty before)
30804           - Do not add items to the Selected lists if they are already present
30805         * ListView.cs:
30806           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
30807           - When deleting items make sure that we delete them for the Selected
30808           and Checked list also.
30809
30810 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30811
30812         * Label.cs: Dispose objects no longer used
30813         * ThemeWin32Classic.cs: Dispose objects no longer used
30814
30815 2005-10-18  Jackson Harper  <jackson@ximian.com>
30816
30817         * TabControl.cs: Don't refresh the whole control when the tabs are
30818         scrolled, we just need to refresh the tab area.
30819
30820 2005-10-17  Jackson Harper  <jackson@ximian.com>
30821
30822         * XplatUIX11.cs: Compress code a little bit. Only calculate the
30823         after handle when we need it.
30824
30825 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
30826
30827         * Control.cs: When the parent size changes, recalculate anchor 
30828           positions. Partial fix for #76462
30829
30830 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
30831
30832         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
30833           drawn. Fixes #76462
30834
30835 2005-10-17  Jackson Harper  <jackson@ximian.com>
30836
30837         * MonthCalendar.cs: Don't create the numeric up down until our
30838         handle is created. Otherwise our handle is created in the
30839         constructor and we don't know if we are a WS_CHILD or WS_POPUP
30840         yet.
30841
30842 2005-10-17  Jackson Harper  <jackson@ximian.com>
30843
30844         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
30845         correctly.
30846
30847 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
30848         * TreeNode.cs : small logical fix (was using local var instead of field)
30849         
30850 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
30851
30852         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
30853
30854 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
30855
30856         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
30857
30858 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
30859
30860         * Control.cs: 
30861           - Re-implemented anchoring code. My first version was really broken.
30862             This fixes bug #76033. Unlike the previous implementation we will
30863             no longer have round errors since all numbers are calculated from
30864             scratch every time. Removed various anchor-related obsolete vars.
30865           - InitLayout no longer causes layout event firing and layout to be 
30866             performed
30867
30868 2005-10-16  Jackson Harper  <jackson@ximian.com>
30869
30870         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
30871         which was broken).
30872
30873 2005-10-16  Jackson Harper  <jackson@ximian.com>
30874
30875         * TabControl.cs: Remove debug code.
30876
30877 2005-10-16  Jackson Harper  <jackson@ximian.com>
30878
30879         * XEventQueue.cs: Increase the default queue size (very simple
30880         apps needed to grow the queue).
30881         * Hwnd.cs: No finalizer so we don't need to suppress
30882         finalization. Compute the invalid area manually so a new rectangle
30883         does not newto be created.
30884         * ScrollableControl.cs: Don't set any params (otherwise visibility
30885         isn't set correctly).
30886         * MdiChildContext.cs: New constructor takes the mdi parent so it
30887         doesn't have to be computed and avoids a crash on windows. Draw
30888         the window icon properly, and allow the text to be seen.
30889         * Form.cs: Use new MdiChildContext constructor. Make sure the
30890         child context isn't null in wndproc.
30891         * TabControl.cs: Don't set focus, this is muddling keyboard
30892         behavoir. Expand the tab rows when a window size increase will
30893         allow extra tabs to be seen. Don't allow tabs smaller than the
30894         width of a window to be scrolled out of view.
30895         * TreeNode.cs:
30896         * TreeView.cs: Use measure string to calculate a nodes width, the
30897         width is cached and only updated when the text or the font is
30898         changed. Don't check for expand/collapse clicks on the first level
30899         nodes if root lines are disabled.
30900         
30901 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
30902
30903         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
30904
30905 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
30906
30907         * DataGridBoolColumn.cs: fixes warning
30908
30909 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
30910
30911         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
30912         to match more to match more precisely the MS Net behavior
30913
30914 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
30915
30916         * Hwnd.cs: Added field to track if window is mapped
30917         * XplatUIX11.cs: 
30918           - Unmap windows if they become 0-size, re-map when 
30919             they are >0 again; fixes #76035
30920           - Re-set our error handler after initializing X11Desktop
30921             to override any error handlers Gtk or whatever was called
30922             may have set.
30923
30924 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
30925
30926         * CheckedListBox.cs: Removed unused vars
30927         * ListView.cs: Fixed signatures
30928         * RichTextBox.cs: Removed unused vars
30929         * TextBoxBase.cs: Removed unused vars
30930         * XplatUIWin32.cs: Removed unused vars
30931         * XplatUIX11.cs: Removed unused vars
30932         * XplatUI.cs: Updated version and date to latest published
30933
30934 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
30935
30936         * Cursor.cs: Added private .ctor to work around a bug in
30937           resourceset (Thanks to Geoff Norton for the help on this)
30938         * SplitterEventArgs.cs: Made fields accessible so we don't
30939           waste boatloads of objects and can reuse the same one
30940           in Splitter
30941         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
30942           any captions and borders when generating screen coordinates
30943         * Splitter.cs: Reimplemented control, now fully complete, uses
30944           rubberband drawing, supports and obeys all properties, has
30945           proper cursors
30946
30947 2005-10-13  Miguel de Icaza  <miguel@novell.com>
30948
30949         * Form.cs (Form): Setup default values for autoscale and
30950         autoscale_base_size;  Make these instance variables, not static
30951         variables. 
30952
30953         (OnLoad): on the first load, adjust the size of the form.
30954
30955 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
30956
30957         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
30958           width argument to DrawReversibleRectangle()
30959         * XplatUIWin32.cs, XplatUIX11.cs: 
30960           - Implemented width for DrawReversibleRectangle()
30961           - Added logic to DrawReversibleRectangle that recognizes a zero
30962             width or height and only draws a line in that situation
30963         
30964 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
30965
30966         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
30967         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
30968         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
30969           method (it uses our FosterParent window to get a graphics context)
30970
30971 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
30972
30973         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
30974           and SetWindowBackground methods
30975         * Control.cs:
30976           - Setting proper ControlStyles
30977           - We no longer call XplatUI.SetWindowBackground and XplatUI.
30978             EraseWindowBackground, instead we draw the window background
30979             ourselves in PaintControlBackground. This behaviour is
30980             required to match MS, where, when OnPaintBackground is not
30981             called, the background is not drawn.
30982           - Removed unneeded Refresh() in set_Text
30983         * Hwnd.cs: Dropped the ErasePending support. No longer needed
30984         * XplatUIX11.cs:
30985           - Created DeriveStyles method to translate from CreateParams to
30986             FormBorderStyle and TitleStyle, also handles BorderStyle (which
30987             matches FormBorderStyle enum values)
30988           - Consolidated SetHwndStyles and CalculateWindowRect border/title
30989             style calculations into single DeriveStyles method
30990           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
30991             from redrawing the whole window on any resize or expose.
30992           - Fixed CreateWindow usage of SetWindowValuemask. Before not
30993             all styles were applied to our whole/client window appropriately
30994           - Removed EraseWindowBackground() and SetWindowBackground() methods
30995           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
30996             no longer clear/redraw the background through X
30997           - Removed handling of erase_pending bit, we have no use for it (or
30998             so it seems)
30999         * XplatUIOSX.cs:
31000           - Removed generation and handling of WM_ERASEBKGND message
31001           - Removed EraseWindowBackground() and SetWindowBackground() methods
31002           - Removed handling of hwnd.ErasePending flag
31003         * XplatUIWin32.cs:
31004           - Removed EraseWindowBackground() and SetWindowBackground() methods
31005           - We no longer call EraseWindowBackground on PaintEventStart, we 
31006             ignore the fErase flag, erasing is handled in Control in the
31007             background handler
31008         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31009           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31010           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
31011           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
31012           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
31013           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31014           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31015
31016 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
31017
31018         * PropertyGrids.cs: Get sub properties
31019         * PropertyGridView.cs: Fix drawing code
31020
31021 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31022
31023         * ListBox.cs: Fixes 76383
31024
31025 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31026
31027         * DataGridTextBoxColumn.cs: Sets location and size before attachment
31028         * ThemeWin32Classic.cs: Fixes border drawing and calculations
31029         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31030
31031
31032 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31033
31034         * ComboBox.cs: Fixes border drawing
31035
31036 2005-10-10  Miguel de Icaza  <miguel@novell.com>
31037
31038         * MimeIcon.cs: Ignore errors if the file can not be read.
31039
31040 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31041
31042         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31043          - Fixed border calculations
31044          - Fixed horizontal scrolling in single column listboxes
31045          - Fixed drawing issues
31046
31047 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
31048
31049         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
31050           FormBorderStyle enum
31051         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
31052           code to determine FormBorderStyles from CreateParams
31053         * Form.cs:
31054           - Fixed bug where we'd set the wrong window styles if we were
31055             not creating an MDI window
31056           - Added call to XplatUI.SetBorderStyle when form borders are set
31057         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31058         * Hwnd.cs:
31059           - Removed obsolete edge style
31060           - Switched from BorderStyle to FormBorderStyle
31061         
31062 2005-10-10  Jackson Harper  <jackson@ximian.com>
31063
31064         * Form.cs: Use the property to get the window handle instead of
31065         accessing it directly. Prevents a null reference exception.
31066
31067 2005-10-10  Jackson Harper  <jackson@ximian.com>
31068
31069         * TreeView.cs: Don't adjust the rect given to DrawString now that
31070         our libgdiplus draws correctly.
31071
31072 2005-10-08  Jackson Harper  <jackson@ximian.com>
31073
31074         * TreeView.cs: Don't try to find the clicked on node if there are
31075         no nodes in the tree.
31076
31077 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31078
31079         * RichTextBox.cs:
31080
31081           restore
31082
31083 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31084
31085         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31086           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31087           ErrorProvider.cs:
31088           Use ResPool for brushes and dispose System.Drawing objects that
31089           are not used anymore.
31090
31091 2005-10-07  Jackson Harper  <jackson@ximian.com>
31092
31093         * MdiChildContext.cs: Use the new borders instead of drawing them
31094         ourselves.
31095
31096 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31097
31098         * Calling UpdateBounds after changing the window's BorderStyle 
31099         since the style can change the ClientSize
31100
31101 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31102
31103         * Control.cs: Made PaintControlBackground virtual
31104         * Panel.cs: Overriding PaintControlBackground instead of using paint
31105           event; paint event method was interfering with 'real' users of the
31106           event.
31107
31108 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31109
31110         * ThemeWin32Classic.cs: remove border drawing since it is handled
31111         by the base control class now and was causing double border drawing.
31112
31113 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31114
31115         * Panel.cs: Redraw our background on paint. Not a pretty solution,
31116           but it does seem to match MS behaviour. This fixes bug #75324
31117
31118 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31119
31120         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
31121           somewhat hackish looking
31122
31123 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31124
31125         * TextBoxBase.cs:
31126           - We now accept Enter even if AcceptEnter is false, if the containing
31127             form does not have an AcceptButton configured (fixes bug #76355)
31128           - Calculations are now fixed to no longer use Width/Height, but
31129             ClientSize.Width/Height, since we now support borders (this was
31130             a result of fixing borders and therefore bug #76166)
31131           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
31132             true (fixes bug #76354)
31133         
31134 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31135
31136         * Control.cs: 
31137           - Defaulting BorderStyle and setting it in XplatUI when our window 
31138             is created
31139           - Added enum check to InternalBorderStyle setter
31140         * XplatUIX11.cs: 
31141           - Added drawing of window borders
31142           - Now properly calculates WM decorations offset for toplevel 
31143             windows (fixes bug #74763)
31144         * XplatUIWin32.cs: 
31145           - Implemented BorderStyles for windows (we're letting win32 draw 
31146             the border for us)
31147           - Fixed the signature for SetWindowLong
31148         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
31149           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
31150           setting borders
31151         * UpDownBase.cs: Remove drawing of borders, this is handled by
31152           the driver, outside the client area
31153         * ListView.cs: Removed bogus border calculations. The control should
31154           be oblivious to borders, since those are not part of the client
31155           area. 
31156         * X11DesktopColors.cs: Commented out (currently) unneeded variables
31157         * ThemeWin32Classic.cs: Removed border calculations from ListView 
31158           drawing code
31159
31160 2005-10-06  Jackson Harper  <jackson@ximian.com>
31161
31162         * MdiChildContext.cs: Clear out the old virtual position remove
31163         all the unneeded calls to CreateGraphics.
31164
31165 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31166
31167         * TextControl.cs: Use proper color for highlighted text; fixes #76350
31168
31169 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31170
31171         * Form.cs: 
31172           - Added loading and setting of our new default icon
31173           - Only set icon if window is already created
31174
31175 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31176
31177         * Label.cs:
31178           - Do not explicitly set the foreground and background colors, to
31179             allow inheriting from parents (fixes #76302)
31180           - Use Control's InternalBorderStyle property to deal with borders
31181
31182 2005-10-06  Jackson Harper  <jackson@ximian.com>
31183
31184         * MdiChildContext.cs: Use the new xplatui function to draw a
31185         reversible rect.
31186
31187 2005-10-06  Jackson Harper  <jackson@ximian.com>
31188
31189         * Form.cs: Add the parent before creating the child context cause
31190         we need the parent when setting up the child.
31191
31192 2005-10-06  Jackson Harper  <jackson@ximian.com>
31193
31194         * FolderBrowserDialog.cs: redo the tree population code so a
31195         second thread isn't used. Should be a lot faster and more stable
31196         now.
31197
31198 2005-10-05  Jackson Harper  <jackson@ximian.com>
31199
31200         * TreeView.cs: There are no expand/collapse boxes if the node has
31201         no children.
31202
31203 2005-10-05  Jackson Harper  <jackson@ximian.com>
31204
31205         * X11DesktopColors.cs: Get menu colours for the gtk theme.
31206
31207 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
31208
31209         * FileDialog.cs: Fix InitialDirectory
31210
31211 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31212
31213         * ComboBox.cs:
31214                 - Fixes changing between styles
31215                 - Fixes simple mode
31216                 - Fixes last item crashing when navigating with keyboard
31217
31218 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31219
31220         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
31221
31222 2005-10-05  Jackson Harper  <jackson@ximian.com>
31223
31224         * TreeView.cs: If updating the root node do a full refresh.
31225         * TreeNode.cs: The root node should be expanded by default. Also
31226         added a utility prop to tell if we are the root node.
31227         * TreeNodeCollection.cs: Only refresh if the node we are being
31228         added to is expanded. Also added a comment on a potential
31229         optimization.
31230         
31231 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
31232
31233         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
31234           in dispose method. Fixes #76330
31235
31236 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
31237
31238         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
31239
31240                 - Implements vertical and horizontal scrolling using XplatUI
31241                 - Fixes keyboard navagation
31242                 - Fixes EnsureVisible
31243                 - Drawing fixes
31244                 - Handles and draws focus properly
31245
31246
31247 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
31248
31249         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
31250           Create handle. NET_2_0: Destroy handle when value is null.
31251
31252 2005-10-03  Jackson Harper  <jackson@ximian.com>
31253
31254         * ScrollBar.cs: My last scrollbar patch was broken. This is a
31255         revert and a new patch to prevent the thumb from refreshing so
31256         much.
31257
31258 2005-10-02  Jackson Harper  <jackson@ximian.com>
31259
31260         * ScrollBar.cs: Don't update position if it hasn't actually
31261         changed. This occurs when you hold down the increment/decrement
31262         buttons and the thumb gets to the max/min.
31263
31264 2005-10-01  Jackson Harper  <jackson@ximian.com>
31265
31266         * Form.cs:
31267         * MdiChildContext.cs:
31268         * MdiClient.cs: Implement ActiveMdiChild in Form.
31269
31270 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
31271
31272         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
31273
31274 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
31275
31276         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
31277           be found
31278
31279 2005-09-30  Jackson Harper  <jackson@ximian.com>
31280
31281         * ListBox.cs: Don't do a full refresh unless some data has
31282         actually changed.
31283
31284 2005-09-30  Jackson Harper  <jackson@ximian.com>
31285
31286         * TreeView.cs: Make sure that the checkboxes size is factored in
31287         even when not visible.
31288
31289 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
31290
31291         * FileDialog.cs: Fix Jordi's build break
31292
31293 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
31294
31295         * FileDialog.cs: 
31296                 - Use standard the Windows colours for the combobox as espected
31297                 - Dispose objects that use resouces when no longer need them
31298
31299 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
31300
31301         * X11DesktopColors.cs: Initial incomplete implementation
31302         * XplatUIX11.cs: Added call to initialize X11DesktopColors
31303
31304 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
31305
31306         * Theme.cs: 
31307           - Switched Theme color names to match the names defined in 
31308             System.Drawing.KnownColors. Life's hard enough, no need to make 
31309             it harder.
31310           - Added setters to all theme color properties so themes can set
31311             their color schemes. The setters also propagate the color changes
31312             to System.Drawing.KnownColors via reflection
31313         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
31314           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
31315           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
31316           use the new, more logical theme color names
31317         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
31318           post-NT colors
31319         * ThemeWin32Classic.cs:
31320           - Removed code to set the old classic Windows colors. Instead it
31321             now relies on the colors returned by System.Drawing.KnownColors
31322             which will be either modern static colors (Unix) or colors
31323             read from the user's configuration (Win32)
31324           - Updated to use the new, more logical theme color names
31325           - Switched DataGrid drawing code to use only Theme colors instead of
31326             a mix of System.Drawing.KnownColors and Theme colors
31327           - DrawFrameControl(): Removed code that fills the button area, the
31328             fill would overwrite any previous fill done by a control. This
31329             fixes bug #75338 
31330           - Added DrawReversibleRectangle() stub
31331         * ScrollableControl.cs: Set visible state to false when scrollbars
31332           are removed (pdn fix)
31333         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
31334           DrawReversibleRectangle() method to allow drawing primitive 
31335           'rubber bands'
31336         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
31337
31338 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31339
31340         * ImageList.cs: Add(Icon): Create handle.
31341
31342 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
31343
31344         * ListView.cs:
31345         * ThemeWin32Classic.cs:
31346                 - Fixes detail mode
31347                 - Sets clippings
31348                 - Issues with drawing
31349
31350 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31351
31352         * ImageList.cs: Moved RecreateHandle back to ImageList as event
31353           source has to be the ImageList.
31354
31355 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31356
31357         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
31358
31359 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31360
31361         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
31362
31363 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31364
31365         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
31366
31367 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
31368         * GridItem.cs: Fixed TODOs
31369         * GridItemCollection.cs: Added ICollection interface
31370
31371 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31372
31373         * ImageList.cs: Resize icons when needed.
31374
31375 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
31376
31377         * ListViewItem.cs
31378                 - Fixes GetBounds and returns on screen rects
31379         * ListView.cs:
31380                 - Fixes vertical and horzintal scrolling of items
31381         * ThemeWin32Classic.cs:
31382                 - Fixes drawing
31383                 
31384 2005-09-29  Raja R Harinath  <harinath@gmail.com>
31385
31386         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
31387
31388 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
31389
31390         * ImageList.cs: Added comments about handle creation. Moved Handle,
31391           HandleCreated and OnRecreateHandle implementations to ImageCollection.
31392           Handle is created in Add methods.
31393
31394 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
31395          
31396         * DataGridDrawingLogic.cs: 
31397                 - Takes rows into account on Colum calculations
31398                 - Returns the column when clickig
31399         * DataGrid.cs:
31400                 - Fixes default HitTestInfo values
31401                 - Fixes HitTestInfo.ToString
31402                 - Fixes ResetBackColor          
31403         
31404 2005-09-28  Jackson Harper  <jackson@ximian.com>
31405
31406         * MdiChildContext.cs: Obey rules for fixed sized windows (no
31407         sizing or cursor changes). Also added some temp code to draw the
31408         titlebars text (Makes dev a little easier).
31409
31410 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
31411
31412         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
31413
31414 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
31415          
31416         * ListBox.cs: Fixes bug 76253
31417
31418 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
31419
31420         * ImageList.cs: Added comments about the current implementation. Added
31421           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
31422           Format32bppArgb to preserve transparency and can use Graphics.FromImage
31423           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
31424           with Bitmap.LockBits for better performance. Revised the whole file to
31425           match MS.NET behaviour and provide better performance. Non-public
31426           interface members are calling public members even when they throw
31427           NotSupportedException for better maintainability. Moved ColorDepth,
31428           ImageSize, ImageStream and TransparentColor implementations to
31429           ImageCollection for better performance as these properties are not used
31430           by ImageList.
31431         * ImageListStreamer.cs: Added a new internal constructor that takes an
31432           ImageList.ImageCollection and serializes Images based on
31433           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
31434           match ImageList property name.
31435
31436 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
31437
31438         * ListBox.cs: Fixes IndexFromPoint for last item
31439
31440 2005-09-27  Jackson Harper  <jackson@ximian.com>
31441
31442         * Form.cs: Set the position of new mdi children correctly.
31443
31444 2005-09-27  Jackson Harper  <jackson@ximian.com>
31445
31446         * MdiClient.cs: New mdi children need to be added to the back of
31447         the controls collection so the zorder is set correctly. Also add a
31448         count of all the child windows that have been created.
31449
31450 2005-09-27  Jackson Harper  <jackson@ximian.com>
31451
31452         * Form.cs (CreateParams): Setup MDI forms correctly.
31453
31454 2005-09-27  Jackson Harper  <jackson@ximian.com>
31455
31456         * MdiChildContext.cs:
31457         * MonthCalendar.cs:
31458         * UpDownBase.cs:
31459         * ListBox.cs:
31460         * ListView.cs:
31461         * TextBoxBase.cs:
31462         * TreeView.cs:
31463         * ScrollableControl.cs:
31464         * ComboBox.cs: Add implicit controls using the new implict control
31465         functionality in ControlCollection. Also try to block multiple
31466         control add in a suspend/resume layout to save some cycles.
31467         
31468 2005-09-27  Jackson Harper  <jackson@ximian.com>
31469
31470         * Control.cs: Add functionality to the controls collection to add
31471         'implicit controls' these are controls that are created by the
31472         containing control but should not be exposed to the user. Such as
31473         scrollbars in the treeview.
31474         * Form.cs: The list var of the ControlsCollection is no longer
31475         available because of the potential of implicit controls getting
31476         ignored by someone accessing the list directly.
31477
31478 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
31479
31480         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
31481           loose it's parent. (Fixed bug introduced in r49103 when we added
31482           setting the child parent to null on Remove)
31483
31484 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
31485
31486         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
31487         * Splitter.cs: Added missing attributes for BorderStyle property.
31488         * TextBoxBase.cs: Marked Calculate* methods internal.
31489         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
31490         MS.NET.
31491
31492 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
31493          
31494         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
31495
31496 2005-09-25  Jackson Harper  <jackson@ximian.com>
31497
31498         * TreeView.cs: Update the node bounds correctly regardless of
31499         whether the node is visible.
31500
31501 2005-09-25  Jackson Harper  <jackson@ximian.com>
31502
31503         * ImageList.cs: Don't dispose the image after it is added to the
31504         image list. Only reformat images that need to be resized.
31505
31506 2005-09-25  Jackson Harper  <jackson@ximian.com>
31507
31508         * ImageList.cs: Don't set the format when changing the image.
31509
31510 2005-09-25  Jackson Harper  <jackson@ximian.com>
31511
31512         * TreeView.cs: We can't just assume the node has a font. Use the
31513         treeviews font if no node font is available.
31514
31515 2005-09-25  Jackson Harper  <jackson@ximian.com>
31516
31517         * TreeView.cs: Allow the scrollbars to be reset with negative
31518         values.
31519         - Don't add scrollbars to negative sized windows.
31520
31521 2005-09-23  Jackson Harper  <jackson@ximian.com>
31522
31523         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
31524         old Mono.Posix. Also remove some stray code that shouldn't have
31525         been committed.
31526
31527 2005-09-23  Jackson Harper  <jackson@ximian.com>
31528
31529         * TreeView.cs: Attempt at proper sizing of the horizontal
31530         scrollbar. Also don't resize the scrollbars unless they are
31531         visible.
31532
31533 2005-09-23  Jackson Harper  <jackson@ximian.com>
31534
31535         * TreeView.cs: We don't need to expand the invalid area when the
31536         selection changes, as this is all drawn in the node's bounding
31537         box. The area needs to be expanded (previous typo was contracting
31538         it) when the focus rect moves.
31539
31540 2005-09-23  Jackson Harper  <jackson@ximian.com>
31541
31542         * TreeView.cs: Display the selection box under the correct
31543         circumstances. We were rendering white text with no selection box
31544         before.
31545
31546 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
31547
31548         * TextControl.cs(Split): Now updates selection start/end if it points 
31549           into a line that's being split. Fixes a FIXME and bug #75258
31550
31551 2005-09-23  Jackson Harper  <jackson@ximian.com>
31552
31553         * Binding.cs:
31554         * ListControl.cs: Don't use the path when retrieving binding
31555         managers from the binding context. My bat sense tells me that the
31556         path is only used on insertion.
31557
31558 2005-09-22  Jackson Harper  <jackson@ximian.com>
31559
31560         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
31561
31562 2005-09-22  Jackson Harper  <jackson@ximian.com>
31563
31564         * Splitter.cs: There are special cursors used for splitting.
31565         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
31566
31567 2005-09-22  Jackson Harper  <jackson@ximian.com>
31568
31569         * Splitter.cs: Change the cursor appropriately when the splitter
31570         is moused over, so the user actually knows there is a splitter
31571         there.
31572
31573 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31574
31575        * Label.cs : Fix ToString method to give same output as MS.NET
31576
31577 2005-09-22  Jackson Harper  <jackson@ximian.com>
31578
31579         * TreeView.cs: Create the scrollbars when the handle is created
31580         and add them right away, just make them invisble. Also account for
31581         the window being shrunk vertically to the point that the vert
31582         scrollbar needs to be added.
31583         - Remove some 0.5 adjustments to get around anti aliasing issues.
31584         
31585 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
31586          
31587         * MainMenu.cs: Fixes default value
31588         * MenuItem.cs: Fixes default value
31589
31590 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
31591
31592         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
31593
31594 2005-09-21  Jackson Harper  <jackson@ximian.com>
31595
31596         * Control.cs: Don't try to set the border style on the window if
31597         it hasn't been created. When the window is created the border
31598         style will be used.
31599
31600 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
31601
31602         * Control.cs (Update): Don't call XplatUI if we don't have a
31603           window handle yet
31604
31605 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
31606
31607         * ContainerControl.cs: Instead of throwing an exception, print
31608           a one-time warning about Validate not being implemented
31609         * XplatUIWin32.cs: Removed debug output
31610
31611 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
31612
31613         * Control.cs: Only set XplatUI background if we expect the windowing
31614           system to handle the background. This stops controls that draw their
31615           own background from flickering
31616
31617         * XplatUIX11.cs: Support custom visuals and colormaps for window 
31618           creation. This allows, amongst other things, using MWF X11 windows 
31619           with OpenGL.
31620
31621 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
31622
31623         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
31624           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
31625           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
31626           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
31627           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
31628           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
31629           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
31630           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
31631           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
31632           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
31633           GridColumnStylesCollection.cs, 
31634           IDataGridColumnStyleEditingNotificationService.cs,
31635           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
31636           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
31637           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
31638           TreeNodeCollection.cs, AmbientProperties.cs, 
31639           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
31640           DataObject.cs, ErrorProvider.cs, Splitter.cs,
31641           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
31642           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
31643           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
31644           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
31645           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
31646           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
31647           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
31648           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
31649           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
31650           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
31651           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
31652           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
31653           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
31654           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
31655           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
31656           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
31657           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
31658           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
31659           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
31660           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
31661           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
31662           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
31663           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
31664           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
31665           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
31666           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
31667           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
31668           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
31669           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
31670           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
31671           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
31672           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
31673           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
31674           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
31675           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
31676
31677 2005-09-21  Jackson Harper  <jackson@ximian.com>
31678
31679         * TreeNode.cs: Call Before/After Expand not Collapse when
31680         expanding.
31681
31682 2005-09-20  Jackson Harper  <jackson@ximian.com>
31683         
31684         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
31685
31686 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
31687          
31688         * ListViewItem.cs:
31689                 - Fixes bug 76120
31690                 - Fixes proper storing of subitems
31691                 - Fixes not updated items
31692
31693 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
31694
31695         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
31696           things if our window handle isn't created yet. Also disabled 
31697           debug for TextBoxBase
31698
31699 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
31700
31701         * MenuAPI.cs: Remove filtering of events to allow menu usage
31702
31703 2005-09-20  Miguel de Icaza  <miguel@novell.com>
31704
31705         * Cursor.cs: Allow null to be passed to Cursor.Current.
31706
31707 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
31708
31709         * ThemeWin32Classic.cs:
31710           - Change some private methods/fields to protected virtual so that 
31711             they can be accessed and overriden in derived classes
31712           - First refactoring of some methods. Derived themes now don't 
31713             need to duplicate the complete code from ThemeWin32Classic
31714         * ThemeNice.cs:
31715           - Added nice StatusBar
31716           - Derive from ThemeWin32Classic and not Theme
31717           - Removed duplicate ThemeWin32Classic code
31718
31719 2005-09-20  Miguel de Icaza  <miguel@novell.com>
31720
31721         * Control.cs (ControlCollection.Add): If the value null is passed
31722         the control is ignored. 
31723
31724         Optimize this loop.
31725
31726 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
31727
31728         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
31729           PostQuitMessage state.
31730         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
31731
31732 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
31733
31734         * Application.cs: Our constructor will never get called, move 
31735           initialization to fields; fixes bug #75933
31736
31737 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31738
31739         * FileDialog.cs :
31740                 - Allow files to be selected properly using file name
31741                 combo box.
31742                 - Add ability to change diretory (absolute / relative)
31743                 using file name combo box.
31744
31745 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
31746          
31747         * ListBox.cs: 
31748                 - Fixes Multicolumn listboxes item wrong calculations
31749                 - Allows to click when only one item is in the listbox
31750                 - Fixes crash when no items using keyboard navigation
31751
31752 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
31753
31754         * ComboBox.cs: Reverted almost everything from the latest patch which
31755           broke ComboBox
31756
31757 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
31758         
31759         * ToolTip.cs:
31760                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
31761         * ComboBox.cs:
31762                 - When DropDownStyle is Simple, it does not show scrollbar 
31763                 to the last item of the list.
31764                 - When DropDownStyle is Simple, it crashed when the list was 
31765                 scrolled down with the down cursor key.
31766                 - Fixed a bug that when DropDownStyle is DropDownList, the 
31767                 selected item was not shown.
31768                 - The position of the selected item was not preserved when 
31769                 the next dropdown happened.
31770         * ThemeWin32Classic.cs:
31771                 - Items were wrapped at the right end.
31772         * CheckedListBox.cs:
31773                 - Fixed Add method
31774         * ListBox.cs:
31775                 - Items should be fully shown.
31776                 - When resizing and vertical scrollbar disappeared, the item 
31777                 of index 0 should be on the top of the list.
31778                 - GetItemRectangle should consider the size of ver. scrollbar
31779         * StatusBar.cs:
31780                 - SizingGrip area should not be allocated when it is not 
31781                 displayed.
31782                 - Now it reflects MinWidth of the containing panel and 
31783                 fixed a crash that happens when its width becomes so small.
31784
31785 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
31786
31787         * CheckedListBox.cs: Fixes bug 76028
31788         * ListBox.cs: Fixes bug 76028
31789
31790 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
31791
31792         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
31793         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
31794
31795 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
31796
31797         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
31798
31799 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
31800
31801         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
31802
31803 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
31804
31805         * IRootGridEntry.cs: Added
31806         * PropertyGridCommands.cs: Added
31807         * PropertiesTab.cs: Added missing methods and property
31808         * PropertyGridView.cs: Made class internal
31809         * PropertyGridTextBox.cs: Made class internal
31810
31811 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31812
31813         * MimeIcon.cs: Try to check some other environment variables
31814           if "DESKTOP_SESSION" returns "default"
31815
31816 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31817
31818         * ThemeNice.cs: Corrected background colors (e.g. menus)
31819         * ColorDialog.cs: Use correct background colors for controls
31820
31821 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31822
31823         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
31824
31825 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
31826
31827         * RichTextBox.cs: Added initial implementation
31828         * lang.cs: Removed. Was accidentally checked in long time ago
31829         * TODO: Removed. Contents were obsolete
31830
31831 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
31832                                                                                 
31833         * PropertiesTab.cs : Added
31834
31835 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
31836                                                                                 
31837         * PropertyGrid.cs : Update
31838         * PropertyGridView.cs : Update
31839         * System.Windows.Forms.resx : Added images and strings
31840
31841 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
31842
31843         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
31844  
31845 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
31846
31847         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
31848           a busy loop right after the Ungrab the X11 display is otherwise 
31849           blocked
31850
31851 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
31852
31853         * ThemeWin32Classic.cs: Optimise the use of clipping
31854
31855 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
31856
31857         * DataGrid.cs: fixes recursion bug
31858
31859 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
31860
31861         * ThemeNice.cs: 
31862           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
31863           - Cleanup
31864
31865 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
31866
31867         * ThemeNice.cs: Draw nice ProgressBars
31868
31869 2005-09-01  Miguel de Icaza  <miguel@novell.com>
31870
31871         * VScrollBar.cs: Another buglet found by Aaron's tool. 
31872
31873         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
31874         bug finder.
31875
31876 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
31877
31878         * ThemeNice.cs:
31879           - Added nicer menu drawing
31880           - Updated DrawTab
31881           - some refactoring
31882
31883 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
31884
31885         * CreateParams.cs (ToString): Made output match MS
31886         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
31887             handle is already created (to avoid forcing window creation)
31888         * XplatUIX11.cs: Set window text to caption after creating window,
31889           in case Text was set before window was created
31890         * Form.cs: Use this.Text instead of a static string as caption
31891
31892 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
31893
31894         * NotifyIcon.cs: Don't set the window to visible; this screws
31895           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
31896           OnPaint without a bitmap)
31897         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
31898           happen very often anyway; we could add the check to the WM_PAINT 
31899           event generation code
31900
31901 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
31902
31903         * NotifyIcon.cs: Fill the icon area with a background color, to 
31904           avoid 'residue' when transparent icons are drawn
31905         * XplatUIX11.cs:
31906           - Handle whole_window == client_window when destroying windows
31907           - SystrayAdd(): Set client_window to whole_window value to
31908             get mouse and other events passed to NotifyIcon
31909
31910 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
31911
31912         * Form.cs: Set proper default for Opacity property
31913         * NotifyIcon.cs:
31914           - ShowSystray(): Don't bother creating telling the OS
31915             about the systray item if no icon is provided
31916           - Now handles WM_NCPAINT message to deal with whole/client window
31917             split
31918           - Create window as visible to not get caught by Expose optimization
31919         * Hwnd.cs: Removed debug message
31920         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
31921           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
31922             PaintEventStart/End to use new client argument
31923         * TextBoxBase.cs:
31924           - Commented out debug messages
31925           - Switched PaintEventStart/End to use new client argument
31926         * XplatUI.cs: Added client window bool to PaintEventStart()/
31927           PaintEventEnd() calls, to support drawing in non-client areas
31928         * XplatUIDriver.cs: 
31929           - Added client window bool to PaintEventStart()/PaintEventEnd() 
31930             calls, to support drawing in non-client areas
31931           - Added conditional compile to allow using MWF BeginInvoke 
31932             on MS runtime
31933         * XplatUIX11.cs:
31934           - Added some conditional debug output
31935           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
31936             whole/client window split
31937           - Implemented handling of client argument to PaintEventStart()/End()
31938         * Control.cs:
31939           - Throw exception if BeginInvoke() is called and the window handle
31940             or one of the window's parent handles is not created
31941           - Added conditional compile to allow using MWF BeginInvoke on
31942             MS runtime
31943           - get_Parent(): Only sets parent if handle is created. This avoids
31944             forcing window handle creation when parent is set.
31945           - Now fires Layout and Parent changed events in proper order
31946           - Switched to use Handle instead of window.Handle for Z-Order setting,
31947             the get_Parent() patch above causes us to possibly get null for 'window'
31948           - Implemented handling of client argument to PaintEventStart()/End()
31949           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
31950             default handling)
31951           - Now sends a Refresh() to all child windows when Refresh() is called
31952
31953 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
31954
31955         * Form.cs: Added (non-functional) Opacity property
31956         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
31957
31958 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
31959         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
31960           use export MONO_THEME=nice to activate it.
31961           Currently supported controls:
31962           - Button
31963           - ComboBox
31964           - ScrollBar
31965           - TabControl (TabAlignment.Top only, other will follow)
31966         * ThemeEngine.cs: Add theme nice
31967         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
31968           if enabled
31969
31970 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
31971
31972         * Splitter.cs: Resize docked control and its neighbor.
31973
31974 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31975         -- Making Windows with Menus layout correctly --
31976         * Form.cs : The first leg of the fix
31977                 Menu setter - adjust Client Size as needed to make space for the menu
31978                 SetClientSizeCore - doesn't call base version to be able to pass the 
31979                         menu handle to XplatUI.CalculateWindowRect
31980         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
31981         * XplatUIX11.cs: The critical second leg of the fix
31982                 GetWindowPos needs to use a recalculated client_rect
31983                 so that resizing the window doesn't break layout of child controls. 
31984                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
31985                 Lots of \t\n killed
31986
31987 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
31988
31989         * Label.cs: Now properly recalculates width and height on Font and Text
31990           changes if AutoSize is set
31991
31992 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31993         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
31994
31995 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
31996
31997         * ImageList.cs: Makes ToString method compatible with MS
31998
31999 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
32000
32001         * MenuAPI.cs: fixes bug 75716
32002
32003 2005-08-11 Umadevi S <sumadevi@novell.com>
32004         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32005
32006 2005-08-11 Umadevi S <sumadevi@novell.com>
32007         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32008
32009 2005-08-10  Umadevi S <sumadevi@novell.com>
32010         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32011
32012 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
32013
32014         * Menu.cs: fixes bug 75700
32015         * MenuAPI.cs: fixes navigation issues
32016
32017 2005-08-09  Umadevi S <sumadevi@novell.com>
32018         * CheckedListBox.cs - simple fix for GetItemChecked.
32019
32020 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
32021
32022         * ComboBox.cs: Serveral fixes
32023         * ListBox.cs: Serveral fixes
32024
32025 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32026
32027         * ComboBox.cs: Fixes FindString methods and GetItemHeight
32028         * ListBox.cs: Fixes FindString methods
32029
32030 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32031
32032         * DataGrid.cs: fixes bugs exposed by new tests
32033
32034 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
32035
32036         * Mime.cs: Compile Mono assembly references only if compiling
32037           with Mono (Allows to build with VS.Net again)
32038
32039 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
32040
32041         * Control.cs (PaintControlBackground): Draw background image
32042         corrrectly.
32043         (CheckForIllegalCrossThreadCalls): Stubbed.
32044         
32045         * Form.cs (OnCreateControl): Center when should be centered.
32046         
32047         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32048
32049 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
32050
32051         * Binding.cs: Binding to properties should be case unsensitive
32052
32053 2005-07-18 vlindos@nucleusys.com
32054
32055         * DataGrid.cs: fixes setmember order
32056
32057 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
32058
32059         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32060         * FileDialog.cs: FileDialog is now resizable and uses the new
32061           MimeIconEngine
32062
32063 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
32064
32065         * DataGridTextBoxColumn.cs: default value
32066         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32067         * GridTableStylesCollection.cs: fixes checking MappingName
32068         * DataGridDrawingLogic.cs: fixes drawing logic issues
32069         * DataSourceHelper.cs: rewritten to make compatible with more data sources
32070         * DataGrid.cs: fixes    
32071
32072 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
32073
32074         * MimeGenerated.cs: Use case sensitive comparer for
32075           NameValueCollections
32076
32077 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
32078
32079         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
32080         * ThemeWin32Classic.cs: bug fixes, code refactoring
32081         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
32082         * DataGrid.cs: bug fixes, code refactoring
32083         * DataGridTextBox.cs: bug fixes, code refactoring
32084         * DataGridColumnStyle.cs:  bug fixes, code refactoring
32085         * Theme.cs:  bug fixes, code refactoring
32086
32087 2005-07-01  Peter Bartok  <pbartok@novell.com> 
32088
32089         * TextControl.cs: Quick fix for the reported crash on ColorDialog
32090           and other text box usage
32091
32092 2005-07-01  Jackson Harper  <jackson@ximian.com>
32093
32094         * TabControl.cs: Make sure the bottom of the tab covers the pages
32095         border.
32096
32097 2005-06-30  Peter Bartok  <pbartok@novell.com> 
32098
32099         * Form.cs (ShowDialog): Assign owner of the dialog
32100         * TextBoxBase.cs: Always refresh caret size when deleting, caret
32101           might have been moved to a tag with different height
32102
32103 2005-06-30  Jackson Harper  <jackson@ximian.com>
32104
32105         * Form.cs: Don't create an infinite loop when setting focus
32106         * MenuItem.cs: Don't dirty the parents if we don't have any
32107
32108 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
32109
32110         * LibSupport.cs: Rename
32111
32112 2005-06-29  Peter Bartok  <pbartok@novell.com>
32113
32114         * TextBoxBase.cs: Re-align caret after deleting a character
32115         * TextControl.cs:
32116           - DeleteChars(): Ensure that tag covers the provided position
32117           - StreamLine(): Drop reference for dropped tag
32118
32119 2005-06-29  Peter Bartok  <pbartok@novell.com> 
32120
32121         * TextControl.cs: 
32122           - Selections now work properly, anchoring at the initial location
32123             and properly extending in either direction (SetSelectionToCaret(),
32124             SetSelectionStart() and SetSelectionEnd())
32125           - No longer redraws the whole control on selection change, now
32126             calculates delta between previous and new selection and only
32127             invalidates/redraws that area
32128           - Fixed FindPos() math off-by-one errors
32129           - Changed DeleteChars() to verify the provided tag covers the
32130             provided position, selections may have a tag that doesn't cover
32131             the position if the selection is at a tag border
32132           - Fixed off-by-one errors in DeleteChars()
32133           - Added missing streamlining check in DeleteChars() to remove
32134             zero-length tags
32135           - Implemented Invalidate() method, now properly calculates exposures
32136             between two given lines/positions
32137           - Implemented SetSelection()
32138           - Obsoleted and removed FixupSelection()
32139           - Improved RecalculateDocument() logic, removing code duplication
32140
32141 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32142
32143         * LibSupport.cs: changes to match different input/output arguments.
32144
32145 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32146
32147         * LibSupport.cs: added libsupport.so init routine.
32148
32149 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
32150         
32151         * ControlBindingsCollection.cs
32152                 - Throws an exception on null datasource when adding
32153                 - Checks for duplicated bindings when adding
32154
32155 2005-06-28  Jackson Harper  <jackson@ximian.com>
32156
32157         * TreeView.cs (OnKeyDown): Support left and right properly
32158         (navigates as well as expanding and collapsing.
32159         - Add support for Multiply, this expands all the selected nodes
32160         children.
32161         - Fix some tabbing.
32162
32163 2005-06-28  Jackson Harper  <jackson@ximian.com>
32164
32165         * TreeView.cs: Implement keyboard navigation, currently supports,
32166         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
32167         support for toggling checkboxes with the space bar.
32168
32169 2005-06-28  Jackson Harper  <jackson@ximian.com>
32170
32171         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
32172         tree.
32173
32174 2005-06-28  Jackson Harper  <jackson@ximian.com>
32175
32176         * TreeView.cs: Add missing event.
32177
32178 2005-06-27  Peter Bartok  <pbartok@novell.com> 
32179
32180         * TextControl.cs:
32181           - Made line ending size configurable (now allows for counting 
32182             lineendings as \n or \r\n)
32183           - Added margin to viewport to keep caret visible on right side
32184           - Fixed translation routines for line/pos to documentpos to consider
32185             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
32186           - Fixed some line-endings to be unix style
32187           - Fixed Document.FormatText to perform it's calculations 1-based
32188           - Added descriptions for a few methods that might otherwise get 
32189             used wrong
32190           - Added NOTE section with some basic conventions to remember at 
32191             the top of the file
32192           - Major fixup for RichTextBox selection drawing:
32193             * Fixed crashes when multiple tags on a single line were selected
32194             * fixed selection box drawing not overlaying text
32195             * fixed bogus offset calculation for tags not starting at index 1
32196             * Switched behaviour from using multiple Substrings of a 
32197               StringBuilder.ToString() to using multiple 
32198               StringBuilder.ToString(start, length) statements, hoping this is
32199               faster (kept original version commented out in the code, in case
32200               original version was faster)
32201         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
32202           alignment != Left
32203         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
32204           call it as well
32205
32206 2005-06-27  Jackson Harper  <jackson@ximian.com>
32207
32208         * TabControl.cs: Move to the left and right with the arrow
32209         keys. These keys don't cycle beyond first and last like
32210         tab. Refresh all the tabs when scrolling them to the left or
32211         right.
32212
32213 2005-06-27  Jackson Harper  <jackson@ximian.com>
32214
32215         * TabControl.cs:
32216           - ToString: Added method
32217           - CreateParams: Remove TODO and comment
32218           - OnKeyDown: Cycle through bounds properly.
32219           - SelectedIndex: Scroll to the right or left if we need to
32220           display the newly selected tab.
32221
32222 2005-06-23  Jackson Harper  <jackson@ximian.com>
32223
32224         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
32225         set.
32226
32227 2005-06-23  Jackson Harper  <jackson@ximian.com>
32228
32229         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
32230         CTRL-SHIFT-TAB, and HOME, END are there any others?
32231
32232 2005-06-23  Jackson Harper  <jackson@ximian.com>
32233
32234         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
32235
32236 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32237         
32238         * DataGridTextBoxColumn.cs: fixes and enhancements
32239         * ThemeWin32Classic.cs: fixes and enhancements
32240         * DataGridBoolColumn.cs:  fixes and enhancements
32241         * DataGridDrawingLogic.cs:  fixes and enhancements
32242         * CurrencyManager.cs: fixes and enhancements
32243         * DataGrid.cs: fixes and enhancements
32244         * DataGridColumnStyle.cs:  fixes and enhancements
32245
32246 2005-06-22  Jackson Harper  <jackson@ximian.com>
32247
32248         * TabControl.cs: Add some missing methods that just call into the
32249         base. Make the TabPageCollection's IList interface behave in the
32250         same manner as the MS implementation.
32251
32252 2005-06-22  Peter Bartok  <pbartok@novell.com> 
32253
32254         * TextControl.cs: Added sanity check
32255         * TextBoxBase.cs: 
32256           - Fixed wrapping behaviour, don't set wrap on single line controls
32257             (this fixes the breakage of colordialog introduced in an earlier
32258              checkin)
32259           - Added rudimentary support for autoscrolling right-aligned controls
32260             (still needs fixing, also, center alignment scroll is missing)
32261
32262 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32263         
32264         * ScrollBar.cs: Fixes thumbpos on Maximum values
32265
32266 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
32267         
32268         * PropertyGridView.cs: Pass context information to UITypeEditors 
32269
32270 2005-06-21  Peter Bartok  <pbartok@novell.com> 
32271
32272         * TextBoxBase.cs:
32273           - Now calling PositionCaret with absolute space coordinates
32274           - Enabled vertical scrolling
32275           - Better tracking of scrollbar changes, tied into WidthChange
32276             event
32277           - Improved cursor tracking
32278           - Removed debug output
32279         * TextControl.cs:
32280           - PositionCaret coordinates are now works in absolute space, not 
32281             the canvas
32282           - Improved tracking of document size
32283           - Added events for width and height changes
32284
32285 2005-06-21  Peter Bartok  <pbartok@novell.com>
32286
32287         * Form.cs: Set focus to active control when form is activated
32288         * TextControl.cs: 
32289           - Added word-wrap functionality to RecalculateLine() 
32290           - Added some short function descriptions for VS.Net to aid in
32291             writing dependent controls
32292           - Added Caret property, returning the current coords of the caret
32293           - Added ViewPortWidth and ViewPortHeight properties
32294           - Added Wrap property
32295           - Added CaretMoved event
32296           - Removed some old debug code
32297           - Split() can now create soft splits
32298           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
32299           - Added method to format existing text
32300           - Fixed size/alignment calculations to use viewport
32301           - RecalculateDocument now can handle changing line-numbers while
32302             calculating lines
32303
32304         * TextBox.cs:
32305           - Added some wrap logic, we don't wrap if alignment is not left
32306           - Added casts for scrollbar var, base class switched types to
32307             also support RichTextBoxA
32308           - Implemented handling of scrollbar visibility flags
32309
32310         * TextBoxBase.cs:
32311           - Switched scrollbars type to RichTextBoxScrollBars to support
32312             RichTextBox
32313           - Added tracking of canvas width/height
32314           - Switched scrollbars to be not selectable (to keep focus on text)
32315           - Added central CalculateDocument() method to handle all redraw
32316             requirements
32317           - Added ReadOnly support
32318           - Added WordWrap support
32319           - Fixed handling of Enter key (we now treat it as a DialogKey)
32320           - Fixed caret positioning when h or v scroll is not zero
32321           - Fixed placing/generation of vertical scrollbar
32322           - Added CalculateScrollBars() method to allow updating scrollbar
32323             limits and visibility
32324           - Fixed handling of horizontal scroll
32325           - Added handling of vertical scroll
32326           - Implemented auto-'jump' when caret moves to close to a left or
32327             right border and there is text to be scrolled into view (currently
32328             there's the potential for a stack overflow, until a bug in
32329             scrollbar is fixed)
32330
32331 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
32332         
32333         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
32334
32335 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
32336
32337         * Mime.cs:
32338         - added inodes.
32339         - return application/x-zerosize for files with size zero
32340           (if no extension pattern matches).
32341         - check matches collection for strings too.
32342         - return only the first mime type if the name value
32343           collection has more than one mime type.
32344
32345 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
32346         
32347         * PropertyGrid.cs: Cleaned up some TODOs
32348         * PropertyGridView.cs: Added support for UITypeEditors
32349
32350 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
32351         
32352         * DataGrid.cs: clears cached value
32353
32354 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
32355
32356         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
32357         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
32358         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
32359         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
32360         
32361 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
32362
32363         * ThemeWin32Classic.cs: fixes colour
32364
32365 2005-06-15  Peter Bartok  <pbartok@novell.com>
32366
32367         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
32368         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
32369         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
32370         * Control.cs: Added some MWFCategory and MWFDescription attributes
32371         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
32372
32373 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
32374
32375         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
32376         usage
32377
32378 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
32379
32380         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
32381         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
32382         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
32383         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
32384         * DataGrid.cs: default datagrid settings for Default Styles, fixes
32385         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
32386
32387 2005-06-13  Jackson Harper  <jackson@ximian.com>
32388
32389         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
32390         isn't printed when the user enables dropping. (X11 does accept
32391         drops).
32392         
32393 2005-06-13  Jackson Harper  <jackson@ximian.com>
32394
32395         * TreeView.cs: Remove some TODOS.
32396
32397 2005-06-13  Jackson Harper  <jackson@ximian.com>
32398
32399         * Form.cs: Hook into the mdi framework.
32400         * MdiClient.cs: Use the base control collections add method so
32401         parents get setup correctly. Set the default back colour and dock
32402         style.
32403         * MdiChildContext.cs: New class, this bad actor handles an
32404         instance of an MDI window. Right now there is only basic
32405         support. You can drag, close, and resize windows. Minimize and
32406         Maximize are partially implemented.
32407
32408 2005-06-13  Jackson Harper  <jackson@ximian.com>
32409
32410         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
32411         freaky when both vals are negative. NOTE: There are probably other
32412         places in XplatUIX11 that this needs to be done.
32413
32414 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
32415
32416         * DataGrid.cs: implement missing methods, move KeyboardNavigation
32417         * DataGridColumnStyle.cs: fixes signature
32418
32419 2005-06-12  Jackson Harper  <jackson@ximian.com>
32420
32421         * XplatUIX11.cs: Use sizing cursors similar to the ones on
32422         windows.
32423
32424 2005-06-11  Jackson Harper  <jackson@ximian.com>
32425
32426         * StatusBarPanel.cs: Signature cleanups. Implement
32427         BeginInit/EndInit.
32428
32429 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
32430
32431         * DataGridTextBoxColumn.cs: Honors aligment
32432         * GridColumnStylesCollection.cs: Contains is case unsensitive
32433         * GridTableStylesCollection.cs: several fixes
32434         * DataGridTableStyle.cs: default column creation
32435         * DataGridDrawingLogic.cs: fixes
32436         * CurrencyManager.cs: ListName property
32437         * DataGrid.cs: multiple styles support
32438         * DataGridColumnStyle.cs: fixes
32439         
32440
32441 2005-06-10  Peter Bartok  <pbartok@novell.com>
32442
32443         * Control.cs(Select): Moved SetFocus call to avoid potential
32444           loops if controls change the active control when getting focus
32445         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
32446           the up/down buttons
32447
32448 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
32449
32450         * ImageListConverter.cs: Implemented
32451
32452 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
32453
32454         * MonthCalendar.cs: Wired in NumericUpDown control for year
32455
32456 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
32457
32458         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
32459           DoubleClick events, since they are not meant to be fired.
32460
32461 2005-06-09  Peter Bartok  <pbartok@novell.com>
32462
32463         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
32464           Jonathan's standalone controls into MWF, implemented missing
32465           events, attributes and methods; added xxxAccessible classes
32466         * AccessibleObject.cs: Made fields internal so other classes
32467           can change them if needed
32468
32469 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
32470
32471         * UpDownBase.cs: Complete implementation
32472         * NumericUpDown.cs: Complete implementation
32473         * DomainUpDown.cs: Complete implementation
32474
32475 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
32476
32477         * DataGridTextBoxColumn.cs: drawing fixes
32478         * DataGridCell.cs: fixes ToString method to match MSNet
32479         * DataGridTableStyle.cs: fixes
32480         * DataGridBoolColumn.cs: fixes, drawing
32481         * DataGridDrawingLogic.cs: fixes, new methods
32482         * DataGridTextBox.cs: Keyboard and fixes
32483         * DataGrid.cs:
32484                 - Keyboard navigation
32485                 - Scrolling fixes
32486                 - Row selection (single, multiple, deletion, etc)
32487                 - Lots of fixes
32488         
32489 2005-06-07  Jackson Harper  <jackson@ximian.com>
32490
32491         * ThemeWin32Classic.cs: Clear the background area when drawing
32492         buttons.
32493
32494 2005-06-06  Peter Bartok  <pbartok@novell.com>
32495
32496         * ImageListStreamer.cs: Fixed signature for GetData
32497         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
32498         * ComboBox.cs:
32499           - Added missing ChildAccessibleObject class
32500           - Added missing OnXXXFocus overrides, switched to using those
32501             instead of the event handler
32502         * Control.cs:
32503           - Added Parent property for ControlAccessibleObject
32504           - Fixed signatures
32505           - Fixed attributes
32506           - Added ResetBindings()
32507         * ListBindingConverter.cs: Implemented some methods
32508         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
32509         * ImageList.cs: Implemented basic handle scheme, removed TODOs
32510         * ContainerControl.cs: Fixed signature, now subscribing to the
32511           ControlRemoved event instead of overriding the handler, LAMESPEC
32512         * CurrencyManager.cs: Added missing attribute
32513         * MonthCalendar.cs: Added missing properties
32514
32515 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
32516
32517         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
32518         
32519 2005-06-06  Gaurav Vaish and Ankit Jain
32520
32521         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
32522         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
32523         
32524 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
32525
32526         * Control.cs: fixes CreateParams Width / Height.
32527
32528 2005-06-05  Peter Bartok  <pbartok@novell.com>
32529
32530         * Win32DnD.cs: Removed compilation warnings
32531
32532 2005-06-05  Peter Bartok  <pbartok@novell.com>
32533
32534         * Control.cs (CreateParams): Since we don't know if one of the
32535           properties we use is overridden, lets make sure if we fail accessing
32536           we continue with a backup plan
32537
32538 2005-06-05  Peter Bartok  <pbartok@novell.com>
32539
32540         * Win32DnD.cs:
32541           - Removed debug output
32542           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
32543             struct
32544           - Plugged resource leak
32545         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
32546           MS size
32547
32548 2005-06-05  Peter Bartok  <pbartok@novell.com>
32549
32550         * XplatUIWin32.cs: Removed DnD code
32551         * Win32DnD.cs: Implemented drop source and drop target functionality
32552
32553 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32554
32555         * UpDownBase.cs: remove duplicate addition of event, enable some code
32556         that was commented out.
32557         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
32558         Validate input when a key is pressed. It works fine now for every
32559         combination of Hexadecimal. Only missing some drawing love when sharing
32560         space with other controls.
32561
32562 2005-06-04  Peter Bartok  <pbartok@novell.com>
32563
32564         * Control.cs:
32565           - We need to pass a window for DragDrop, so enable callback events
32566           - Added DnD callback events when being a DragSource
32567         * XplatUI.cs (StartDrag): Added window handle argument
32568         * XplatUIDriver.cs (StartDrag): Added window handle argument
32569         * QueryContinueDragEventArgs: Made fields internally accessible so
32570           drivers can set them
32571         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
32572           can set them
32573
32574 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
32575
32576         * DataGridTextBoxColumn.cs: column text editing
32577         * DataGridTableStyle.cs: Respect columns styles created by the user
32578         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
32579         * DataGridBoolColumn.cs: bool column editing
32580         * DataGrid.cs: fixes to scrolling, properties, etc
32581         * DataGridTextBox.cs: handle keyboard
32582         * DataGridColumnStyle.cs: fixes
32583
32584 2005-06-02  Jackson Harper  <jackson@ximian.com>
32585
32586         * ImageListStreamer.cs: Somewhat broken implementation of
32587         GetObjectData. The RLE needs some work to match MS properly.
32588
32589 2005-06-02  Jackson Harper  <jackson@ximian.com>
32590
32591         * X11Dnd.cs: Attempting to keep at least one file in MWF
32592         monostyled.
32593
32594 2005-06-02  Peter Bartok  <pbartok@novell.com>
32595
32596         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
32597           that way
32598
32599 2005-06-02  Peter Bartok  <pbartok@novell.com>
32600
32601         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
32602         * XplatUI.cs: Added DoDragDrop() method
32603         * XplatUIDriver.cs: Added DoDragDrop() method
32604
32605 2005-06-02  Jackson Harper  <jackson@ximian.com>
32606
32607         * Splitter.cs: Implement BorderStyle.
32608
32609 2005-06-02  Jackson Harper  <jackson@ximian.com>
32610
32611         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
32612         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
32613         X11 using XDND.
32614
32615 2005-06-02  Peter Bartok  <pbartok@novell.com>
32616
32617         * DataObject.cs:
32618           - Added Data setter
32619           - Fixed broken insertion code for SetData, now also
32620             overwrites any existing entry of the same format name
32621         * Hwnd.cs: Added list of pointers that automatically gets
32622           freed when the window is disposed
32623         * XplatUI.cs: Call driver initialization method when loading
32624           a driver
32625         * Control.cs:
32626           - OnDragLeave takes EventArgs, not DragEventArgs
32627           - Added setting of WS_EX_ACCEPTFILES style when dropping is
32628             supported
32629           - Forces style update when drop state changes
32630         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
32631           not perfect since we cannot (yet) call the IDataObject.GetData()
32632           method, we keep getting 0x80004005 error, dunno why)
32633
32634 2005-06-02  Peter Bartok  <pbartok@novell.com>
32635
32636         * DragEventArgs.cs: Make fields internal so we can cache the
32637           object and re-set the fields from XplatUI
32638
32639 2005-06-02  Jackson Harper  <jackson@ximian.com>
32640
32641         * Control.cs: Add some internal methods so the DnD subsystem can
32642         raise DnD events. Also call into the driver when AllowDrop is set.
32643         * XplatUI.cs:
32644         * XplatUIDriver.cs: New method for setting whether or not a window
32645         is allowed to accept drag and drop messages.
32646                 
32647 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
32648         
32649         * ScrollBar.cs: Make sure that values sent in Scroll events
32650         are always between Maximum and Minimum.
32651
32652 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
32653
32654         * Menu.cs: Call MenuChanged when menuitem visibility has been
32655         changed.
32656         * MenuItem.cs: Rebuild menu when item is (not) visible.
32657         * MainMenu.cs: MainMenu has special MenuChanged.
32658         * Theme.cs: Caption and FrameBorderSize are not fixed.
32659         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
32660         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
32661         * XplatUIX11.cs,
32662         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
32663         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
32664
32665 2005-05-30  Jackson Harper  <jackson@ximian.com>
32666
32667         * DataFormat.cs: We can't statically initialize this stuff because
32668         it calls into the xplatui and could create a loop. So we lazy init
32669         it.
32670
32671 2005-05-28  Jackson Harper  <jackson@ximian.com>
32672
32673         * Control.cs: Proper implementation of Product(Name/Version).
32674
32675 2005-05-27  Jackson Harper  <jackson@ximian.com>
32676
32677         * DataObject.cs: Dont crash if no data is found.
32678
32679 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
32680         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
32681                 as per status page, guessing it should be set to true
32682
32683 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
32684
32685         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
32686         * DataGridTableStyle.cs: set proper formatting text, def header text
32687         * ThemeWin32Classic.cs: new themable paramaters
32688         * DataGridBoolColumn.cs: paint check box, get data, fixes
32689         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
32690         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
32691         * DataGridColumnStyle.cs: fixes
32692         * Theme.cs: new themable paramaters
32693                 
32694 2005-05-26  Peter Bartok  <pbartok@novell.com>
32695
32696         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
32697
32698 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32699         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
32700
32701 2005-05-24  Peter Bartok  <pbartok@novell.com>
32702
32703         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
32704           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
32705           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
32706           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
32707           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
32708           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
32709           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
32710           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
32711           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
32712           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
32713           missing attributes, etc
32714         * DataGridPreferredColumnWidthTypeConverter.cs: Added
32715
32716 2005-05-24  Peter Bartok  <pbartok@novell.com>
32717
32718         * Help.cs: Added, implemented trivial functions, throws up MessageBox
32719           when user tries to get help
32720         * DataObject.cs, DataFormats.cs, LinkArea.cs,
32721           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
32722           to suppress warnings
32723         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
32724           avoid unreachable code warning
32725
32726 2005-05-20  Peter Bartok  <pbartok@novell.com>
32727
32728         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
32729
32730 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32731
32732         * DataGridTextBoxColumn.cs: Basic painting methods
32733         * DataGridTableStyle.cs: Set table style in the column
32734         * ThemeWin32Classic.cs: Use Theme for colors
32735         * DataGridDrawingLogic.cs: Implement more drawing
32736         * DataGrid.cs: drawing, theming, enhacements, fixes
32737         * DataGridColumnStyle.cs: fixes, drawing
32738         * Theme.cs: theming for Datagrid
32739
32740 2005-05-20  Peter Bartok  <pbartok@novell.com>
32741
32742         * Cursor.cs: Implemented GetObjectData() method
32743
32744 2005-05-20  Peter Bartok  <pbartok@novell.com>
32745
32746         * Cursors.cs: Added setting of cursor name
32747         * Cursor.cs:
32748           - Implemented constructors
32749           - Implemented Draw and DrawStretched
32750           - Implemented Current property
32751           - Implemented == and != operators
32752           - Implemented Dispose()
32753           - Implemented ToString
32754           - Added missing attributes
32755         * XplatUIX11.cs:
32756           - Added missing reset for OverrideCursor when DoEvents is called
32757           - Fixed creation of cursor, logic was wrong
32758         * XplatUIWin32.cs:
32759           - Added missing reset for OverrideCursor when DoEvents is called
32760           - Fixed creation of cursor, bit arrays were swapped
32761         * Clipboard.cs: Removed obsolete MonoTODO attribute
32762
32763 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32764
32765         * ComboBox.cs: fixes OnSelectedItemChanged
32766         * ControlBindingsCollection.cs: fixes item range check
32767
32768 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32769
32770         * UpDownBase.cs:
32771                 - Calc preferred height properly
32772                 - Implement missing properties
32773                 
32774         * NumericUpDown.cs: Implement missing events
32775
32776 2005-05-19  Jackson Harper  <jackson@ximian.com>
32777
32778         * TabControl.cs: New method that resizes the tab pages before
32779         redrawing them. This as needed as the control is double buffered
32780         and sizing will not be recalculated unless ResizeTabPages is
32781         called.
32782         * TabPage.cs: Set base.Text instead of Text in the constructor so
32783         that UpdateOwner does not get called. Use the new Redraw method of
32784         TabControl instead of Refresh so the sizing is recalculated.
32785         * ThemeWin32Classic.cs: Draw the text for button tabs.
32786
32787 2005-05-19  Jackson Harper  <jackson@ximian.com>
32788
32789         * Control.cs: Paint control background images. Fix typo where
32790         PaintControlBackground was not getting called correctly.
32791
32792 2005-05-19  Peter Bartok  <pbartok@novell.com>
32793
32794         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
32795           I can investigate, apparently I broke FileDialog
32796
32797 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
32798
32799         * AxHost.cs: Some simple properties.
32800         * Control.cs: window must be accessible after ctor.
32801         * Form.cs: Added TransparencyKey property.
32802         * TextBoxBase.cs: Implemented Clear. Text property can be null.
32803         * XplatUIWin32.cs: SetBorderStyle implemented.
32804
32805 2005-05-18  Peter Bartok  <pbartok@novell.com>
32806
32807         * DataObject.cs: Entries are not global but particular to the
32808           DataObject, now it behaves that way
32809         * XplatUIWin32.cs: Implemented Clipboard methods
32810         * Clipboard.cs: Implemented
32811         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
32812         * XplatUIOSX.cs: Updated to final clipboard prototypes
32813         * XplatUIX11.cs: Implemented Clipboard methods
32814         * XplatUIDriver.cs: Updated to final clipboard prototypes
32815         * XplatUIStructs.cs:
32816           - Added BITMAPINFOHEADER struct
32817           - Added ClipboardFormats enum
32818         * X11Structs.cs:
32819           - Added ClipboardStruct
32820           - Added Atom enum items for clipboard types
32821           - Fixed atom types for Selection event structures
32822         * DataFormats.cs:
32823           - Added internal properties and methods for drivers to enumerate
32824             all known formats
32825           - Switched initialization method to allow drivers to assign their
32826             own IDs even for the MS predefined clipboard IDs
32827         * XplatUI.cs: Updated to final clipboard interface
32828
32829 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32830         * PropertyGridView.cs: Fixed compiler warnings.
32831
32832 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32833         * PropertyGrid.cs: Added some event calls
32834         * PropertyGridView.cs: Change drawing code to use double buffering
32835         * PropertyGridTextBox.cs: Changed Text property name
32836         * GridItem.cs: Added Bounds property.
32837         * GridEntry.cs: Added Bounds property.
32838
32839 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
32840
32841         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
32842         since GetType() may not return the correct type if the object is
32843         a remoting proxy.
32844
32845 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
32846
32847         * TreeNodeCollection.cs: fixes get/set item ranges
32848         
32849 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
32850
32851         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
32852                 
32853 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
32854
32855         * ComboBox.cs: Fix item range comparation
32856         * ListView.cs: Fix item range comparation
32857
32858 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
32859
32860         * FontDialog.cs:
32861           - Clear example panel when OnPaint is called
32862           - Better solution for displaying the example panel text
32863           - Select default indexes in the ListBoxes
32864
32865 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
32866
32867         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
32868
32869 2005-05-11  Peter Bartok  <pbartok@novell.com>
32870
32871         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
32872         * SelectionRangeConverter.cs: Implemented
32873         * PropertyGrid.cs: Fixed attribute value
32874         * Control.cs:
32875           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
32876           - Added Sebastien Pouliot's CAS Stack Propagation fixes
32877         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
32878           that's common to all drivers. First methods to go there are
32879           Sebastien Pouliot's CAS Stack Propagation helper methods
32880         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
32881           Sebastien Pouliot for CAS Stack Propagation
32882
32883 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
32884
32885         * OSXStructs.cs:
32886           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
32887
32888 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
32889
32890         * DataGridTextBoxColumn.cs: fixed some members
32891         * GridColumnStylesCollection.cs: indexed column is case insensitive
32892         * DataGridTableStyle.cs: fixes
32893         * ThemeWin32Classic.cs: add new theme parameter
32894         * Theme.cs: add new theme parameter
32895         * DataGridDrawingLogic.cs: Datagrid's drawing logic
32896         * DataGrid.cs: fixes, new internal properties, etc.
32897         * DataGridColumnStyle.cs: allows to set grid value
32898         *
32899
32900 2005-05-10  Peter Bartok  <pbartok@novell.com>
32901
32902         * AccessibleObject.cs:
32903           - Removed MonoTODO attribute on help, method is correct
32904           - Fixed Bounds property
32905         * AxHost.cs: Moved MonoTODO
32906         * ButtonBase.cs: Now setting AccessibleObject properties
32907         * RadioButton.cs: Setting proper AccessibleObject role
32908         * CheckBox.cs: Setting proper AccessibleObject role
32909         * ControlBindingsCollection.cs: Added properties, methods and attributes
32910         * DataFormats.cs: Fixed awkward internal API, and changed to enable
32911           userdefined DataFormats.Format items as well
32912         * ListControl.cs: Removed data_member from the public eye
32913         * OpenFileDialog.cs:
32914           - Made class sealed
32915           - Added missing attributes
32916         * SaveFileDialog.cs: Added missing attributes
32917         * ImageListStreamer.cs: Fixed code that caused warnings
32918         * LinkLabel.cs: Removed unreachable code
32919         * TreeView.cs: Fixed code that caused warnings
32920         * PropertyGridView.cs: Fixed code that caused warnings
32921         * GridColumnStylesCollection.cs: Added missing attributes
32922         * GridTableStylesCollection: Added missing attribute
32923         * PropertyManager: Added .ctor
32924         * SecurityIDType: Added
32925         * DataObject.cs: Implemented class
32926         * LinkArea.cs: Added missing attribute
32927
32928 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
32929
32930         * RadioButton.cs: call base method to allow to fire OnClick event
32931         * UpDownBase.cs: OnMouseUp call base method
32932         * CheckedListBox.cs: call base method before returning
32933         * TrackBar.cs: call base method before returning
32934         
32935
32936 2005-05-10  Peter Bartok  <pbartok@novell.com>
32937
32938         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
32939           for messages
32940
32941 2005-05-10  Peter Bartok  <pbartok@novell.com>
32942
32943         * DataFormats.cs: Implemented
32944         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
32945           XplatUIX11.cs: Added Clipboard APIs
32946         * XplatUIWin32.cs: Implemented Clipboard APIs
32947         * FolderBrowserDialog.cs: Added missing event, attributes
32948
32949 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
32950
32951         * CheckBox.cs: call base method to allow to fire OnClick event
32952
32953 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
32954
32955         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
32956
32957 2005-05-06  Peter Bartok  <pbartok@novell.com>
32958
32959         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
32960         * Screen.cs: Implemented
32961         * HelpNavigator.cs: Added
32962         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
32963           property
32964         * HelpProvider.cs: Implemented all we can do until we have a CHM
32965           help library (which means that "What's This" does work now)
32966
32967 2005-05-06  Jackson Harper  <jackson@ximian.com>
32968
32969         * XplatUIX11.cs: Fix waking up the main loop.
32970                 
32971 2005-05-05  Peter Bartok  <pbartok@novell.com>
32972
32973         * XplatUI.cs: Updated revision
32974         * Form.cs: Removed enless loop
32975         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
32976         * Label.cs (OnPaint): Added call to base.OnPaint()
32977         * ToolTip.cs: Made ToolTipWindow reusable for other controls
32978         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
32979         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
32980         * AxHost.cs: Added
32981         * ButtonBase.cs: Moved base.OnPaint() call to end of method
32982         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
32983           to ToolTip.ToolTipWindow for drawing and size methods; this allows
32984           reuse of ToolTipWindow by other controls
32985         * SizeGrip.cs: Moved base.OnPaint() call to end of method
32986         * XplatUIX11.cs: Now clipping drawing area (experimental)
32987         * PictureBox.cs: Moved base.OnPaint() call to end of method
32988         * Theme.cs: Fixed ToolTip abstracts to match new format
32989         * ErrorProvider.cs: Implemented
32990
32991 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
32992
32993         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
32994         * LinkLabel.cs:
32995                 - Adds cursors
32996                 - Handles focus
32997                 - Implements LinkBehavior
32998                 - Fixes many issues
32999
33000 2005-05-03  Jackson Harper  <jackson@ximian.com>
33001
33002         * ListView.cs: Calculate the scrollbar positioning on resize and
33003         paint, so they get put in the correct place.
33004
33005 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33006
33007         * ColorDialogs.cs: The small color panels are now handled by
33008           SmallColorControl. This fixes drawing of the focus rectangle
33009           and adds a 3D border.
33010
33011 2005-05-03  Peter Bartok  <pbartok@novell.com>
33012
33013         * Control.cs: Modified version of Jonathan Chamber's fix for
33014           double-buffering
33015
33016 2005-05-03  Jackson Harper  <jackson@ximian.com>
33017
33018         * ListView.cs: Remove redraw variable. Control now handles whether
33019         or not a redraw needs to be done, and will only raise the paint
33020         event if redrawing is needed.
33021
33022 2005-05-03  Jackson Harper  <jackson@ximian.com>
33023
33024         * Splitter.cs: No decorations for the splitter form. Cache the
33025         hatch brush.
33026
33027 2005-05-03  Jackson Harper  <jackson@ximian.com>
33028
33029         * TreeView.cs: Use dashed lines to connect nodes. Use the
33030         ControlPaint method for drawing the focus rect instead of doing
33031         that in treeview.
33032
33033 2005-05-02  Peter Bartok  <pbartok@novell.com>
33034
33035         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33036
33037 2005-04-29  Jackson Harper  <jackson@ximian.com>
33038
33039         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33040         entire image buffer. Just clear the clipping rectangle.
33041
33042 2005-04-29  Jackson Harper  <jackson@ximian.com>
33043
33044         * ThemeWin32Classic.cs: Don't draw list view items that are
33045         outside the clipping rectangle.
33046
33047 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
33048
33049         * ListBox.cs: added horizontal item scroll
33050
33051 2005-04-29  Jackson Harper  <jackson@ximian.com>
33052
33053         * ThemeWin32Classic.cs: Remove some old debug code that was
33054         causing flicker with the new double buffering code.
33055
33056 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
33057
33058         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33059         behave like combobox and comboboxlist (still not sure if this is
33060         correct though).
33061
33062 2005-04-28  Jackson Harper  <jackson@ximian.com>
33063
33064         * ThemeWin32Classic.cs: Don't fill the middle of progress
33065         bars. This fills areas outside of the clip bounds that don't need
33066         to be filled.
33067
33068 2005-04-28  Jackson Harper  <jackson@ximian.com>
33069
33070         * Control.cs: Don't expose functionality to touch the image buffers.
33071         * ProgressBar.cs:
33072         * ListView.cs: We do not need to (and no longer can) manipulate
33073         the image buffers directly. All of this is handled by Control.
33074
33075 2005-04-28  Peter Bartok  <pbartok@novell.com>
33076
33077         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33078           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33079           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33080
33081 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33082
33083         * Combobox:
33084                 - Adjust control's height for non-simple comboboxes (bug fix)
33085                 - Remove dead code
33086         * MenuAPI.cs: remove unused var
33087         * ScrollBar.cs: remove unsed var
33088                  
33089         * ListBox.cs: unselect items when clearing
33090
33091 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33092
33093         * ListControl.cs: honors OnPositionChanged and default Selected Item
33094         * ListBox.cs: unselect items when clearing
33095
33096 2005-04-27  Jackson Harper  <jackson@ximian.com>
33097
33098         * X11Keyboard.cs: Initialize a default keyboard and give a warning
33099         if a "correct" keyboard is not found. This will make us not crash,
33100         but might give some users bad keyboard layouts...seems to be the
33101         same thing rewind does.
33102
33103 2005-04-27  Jackson Harper  <jackson@ximian.com>
33104
33105         * BindingManagerBase.cs: Attach the current/position changed
33106         handlers to their respective events.
33107
33108 2005-04-27  Jackson Harper  <jackson@ximian.com>
33109
33110         * Control.cs: Make sure that the first WM_PAINT does a full draw,
33111         not just a blit.
33112         * ThemeWin32Classic.cs: Don't fill the background for picture
33113         boxes. This could overright user drawing.
33114         * ComboBox.cs: Just fill the clipping rect not the entire client
33115         rect when drawing the background. This prevents pieces of the
33116         image buffer from getting overwritten and is theoretically faster.
33117
33118 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
33119
33120         * ComboBox.cs: Databinding support fixes, fire missing events
33121         * ListControl.cs: implement missing methods and properties, fixes
33122         * ThemeWin32Classic.cs: Databiding support on Drawing
33123         * CheckedListBox.cs: Databinding support fixes, fire missing events
33124         * ListBox.cs: Databinding support fixes, fire missing events
33125         
33126 2005-04-25  Peter Bartok  <pbartok@novell.com>
33127
33128         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
33129
33130 2005-04-25  Jackson Harper  <jackson@ximian.com>
33131
33132         * TreeView.cs: Use the horizontal scrollbars height not width when
33133         determining how much of the client area is available.
33134
33135 2005-04-25  Jackson Harper  <jackson@ximian.com>
33136
33137         * Control.cs: Double buffering is handled differently now. As per
33138         the spec, the extra buffer is created in the WM_PAINT message and
33139         passed down to the control's drawing code.
33140         * GroupBox.cs:
33141         * Label.cs:
33142         * CheckBox.cs:
33143         * ProgressBar.cs:
33144         * RadioButton.cs:
33145         * ColorDialog.cs:
33146         * ComboBox.cs:
33147         * PropertyGridView.cs:
33148         * UpDownBase.cs:
33149         * MessageBox.cs:
33150         * MenuAPI.cs:
33151         * ListView.cs:
33152         * ButtonBase.cs:
33153         * SizeGrip.cs:
33154         * ScrollBar.cs:
33155         * ListBox.cs:
33156         * TrackBar.cs:
33157         * ToolBar.cs:
33158         * PictureBox.cs:
33159         * DateTimePicker.cs:
33160         * StatusBar.cs:
33161         * TreeView.cs: Update to new double buffering system.
33162         * MonthCalendar.cs: Uncomment block, as Capture is now
33163         working. Update to new double buffering
33164         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
33165         * PaintEventArgs.cs: New internal method allows us to set the
33166         graphics object. This is used for double buffering.
33167         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
33168         rectangle. The internal paint_area var has been removed from
33169         StatusBar. The clipping rect should be used instead.
33170         * Theme.cs: Give the PictureBox drawing method a clipping rect.
33171         * TabPage.cs: The RefreshTabs method was removed, so just call the
33172         tab controls Refresh method now.
33173         * TabControl.cs: Update to new double buffering. Make sure the
33174         handle is created before sizing the tab pages, otherwise we will
33175         get stuck in a loop.
33176
33177 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
33178
33179         * LinkLabel.cs: Fix typo, bug #74719; patch
33180           from Borja Sanchez Zamorano
33181
33182 2005-04-22  Jackson Harper  <jackson@ximian.com>
33183
33184         * TreeNode.cs: Implement Handle stuff.
33185         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
33186
33187 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
33188
33189         * DataGridTextBoxColumn.cs: call base constructors, fixes
33190         * GridColumnStylesCollection.cs: missing events, methods, and functionality
33191         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
33192         * DataGridTableStyle.cs: implements create default column styles
33193         * DataGridBoolColumn.cs: which types can handle
33194         * DataGrid.cs: missing methods, fixes, new functionality
33195         * DataGridColumnStyle.cs: fixes
33196
33197 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
33198         * FolderBrowserDialog.cs:
33199         - Use a thread to fill the TreeView
33200         - Adjusted some sizes
33201
33202 2005-04-19  Peter Bartok  <pbartok@novell.com>
33203
33204         * LinkLabel.cs: (Re-)create the pieces when setting the Text
33205           property. Fixes #74360.
33206
33207 2005-04-19  Jackson Harper  <jackson@ximian.com>
33208
33209         * XEventQueue.cs: Lock when getting the lockqueue size.
33210         * PictureBox.cs: Call base OnPaint
33211         
33212 2005-04-19  Peter Bartok  <pbartok@novell.com>
33213
33214         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
33215           messages were no longer being processed (this broke BeginInvoke)
33216
33217           
33218 2005-04-18  Jackson Harper  <jackson@ximian.com>
33219
33220         * TreeView.cs: buglet that caused node images to get drawn
33221         regardless of whether or not they were in the clipping rectangle.
33222
33223 2005-04-18  Jackson Harper  <jackson@ximian.com>
33224
33225         * CurrencyManager.cs: There are four rules for GetItemProperties:
33226         - If the type is an array use the element type of the array
33227         - If the type is a typed list, use the type
33228         - If the list contains an Item property that is not an object, use
33229         that property
33230         - use the first element of the list if there are any elements in
33231         the list.
33232         
33233 2005-04-17  Jackson Harper  <jackson@ximian.oom>
33234
33235         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
33236         click. This handles offsets for scrolling properly and reduces
33237         memory. Also fixed GetNode to not offset now that TopNode works
33238         properly.
33239         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
33240         
33241 2005-04-17  Jackson Harper  <jackson@ximian.com>
33242
33243         * CursorConverter.cs: Initial implementation.
33244
33245 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33246
33247         * ListControl.cs: work towards complex data binding support on ListControl
33248         * CurrencyManager.cs: work towards complex data binding support on ListControl
33249         * ListBox.cs: work towards complex data binding support on ListControl
33250
33251
33252 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33253
33254         * GridTableStylesCollection.cs: fixes name and constructor
33255         * DataGridTableStyle.cs: fixes
33256         * DataGridBoolColumn.cs: fixes names and constructors
33257         * DataGrid.cs: define methods and properties. Some init implementations
33258         * DataGridCell.cs: define methods and properties. Some init implementations
33259         * GridTablesFactory.cs: Define methods and properties
33260
33261 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
33262
33263         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
33264         graphics port changes.  We still want the coordinates in global screen
33265         coordinates.
33266
33267 2005-04-14  Jackson Harper  <jackson@ximian.com>
33268
33269         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
33270         check plus minus or checkbox clicks unless those features are enabled.
33271
33272 2005-04-14  Jackson Harper  <jackson@ximian.com>
33273
33274         * TreeView.cs: Add methods for setting the top and bottom visible
33275         nodes. TreeNode::EnsureVisible uses these methods.
33276         * TreeNode.cs: Implement EnsureVisible
33277
33278 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
33279
33280         * Form.cs: Pospone menu assignation if the window has not been created yet
33281         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
33282         size and position
33283
33284 2005-04-12  Jackson Harper  <jackson@ximian.com>
33285
33286         * TreeView.cs: Set the TopNode properly when scrolling
33287         occurs. This has the added benifit of reducing the amount of
33288         walking that needs to be done when drawing. Also removed an old
33289         misleading TODO.
33290         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
33291         
33292 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
33293
33294         * Timer.cs: fixes interval setting when the timer is already enabled
33295         
33296 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
33297
33298         * FolderBrowserDialog.cs: First approach
33299
33300 2005-04-09  Peter Bartok  <pbartok@novell.com>
33301
33302         * FolderBrowserDialog: Added
33303
33304 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
33305
33306         * LinkLabel.cs: move drawing code into the theme
33307         * ThemeWin32Classic.cs: drawing code and painting background bugfix
33308         * Theme.cs: define DrawLinkLabel method
33309
33310 2005-04-05  Jackson Harper  <jackson@ximian.com>
33311
33312         * BindingContext.cs: Use weak references so these bad actors don't
33313         stay alive longer then they need to.
33314
33315 2005-04-05  Jackson Harper  <jackson@ximian.com>
33316
33317         * ListControl.cs: Basic implementation of complex databinding.
33318         * ComboBox.cs:
33319         * ListBox.cs: Add calls to ListControl databinding methods.
33320
33321 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
33322
33323         * FileDialog.cs:
33324           - Don't change PopupButtonState to Normal when the
33325             PopupButton gets pressed several times.
33326           - Renamed ButtonPanel to PopupButtonPanel
33327
33328 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
33329
33330         * ColorDialog.cs: Use cached objects instead of creating them
33331         * LinkLabel.cs: Use cached objects instead of creating them
33332         * Splitter.cs: Use cached objects instead of creating them
33333         * FontDialog.cs: Use cached objects instead of creating them
33334         * PropertyGridView.cs: Use cached objects instead of creating them
33335         * MessageBox.cs: Use cached objects instead of creating them
33336         * FileDialog.cs: Use cached objects instead of creating them
33337         * ThemeWin32Classic.cs: Use cached objects instead of creating them
33338         * TreeView.cs: Use cached objects instead of creating them
33339         
33340 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
33341
33342         * Control.cs: use Equals to compare the font since no == op
33343         * ScrollBar.cs: use Equals to compare the font since no == op
33344
33345 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
33346
33347         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
33348
33349 2005-04-01  Jackson Harper  <jackson@ximian.com>
33350
33351         * Binding.cs: Implement IsBinding.
33352         * BindingManagerBase.cs:
33353         * PropertyManager.cs:
33354         * CurrencyManager.cs: Add IsSuspended property.
33355
33356 2005-04-01  Jackson Harper  <jackson@ximian.com>
33357
33358         * Binding.cs: Had some IsAssignableFrom calls backwards.
33359
33360 2005-04-01  Jackson Harper  <jackson@ximian.com>
33361
33362         * Binding.cs: Handle null data members when pulling data.
33363         * PropertyManager.cs: Handle the data member being a property that
33364         does not exist.
33365
33366 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
33367
33368         * DataGridTextBoxColumn.cs: fixes signature
33369         * DataGrid.cs: calls right constructor
33370
33371 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
33372
33373         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
33374         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
33375         * GridTableStylesCollection.cs: implements GridTableStylesCollection
33376         * DataGridTableStyle.cs: implements DataGridTableStyle
33377         * DataGridBoolColumn.cs: implements DataGridBoolColumn
33378         * DataGridTextBox.cs: implements DataGridTextBox
33379         * DataGridColumnStyle.cs: implements DataGridColumnStyle
33380
33381 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
33382
33383         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
33384
33385 2005-03-29  Peter Bartok  <pbartok@novell.com>
33386
33387         * Application.cs:
33388           - Properly implemented CompanyName property
33389           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
33390             returns a path that includes CompanyName, ProductName and
33391             Version (fixes bug #70330)
33392
33393 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
33394
33395         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
33396           fixes bug #72588.
33397
33398 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
33399
33400         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
33401         
33402           - Added ReadOnly CheckBox
33403           - Further refactoring: moved some code from Open-/SaveFileDialog
33404             to FileDialog
33405
33406 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
33407
33408         * OpenFileDialog.cs: Fixed CheckFileExists
33409         * FileDialog.cs:
33410           Moved FileView and DirComboBox outside FileDialog class.
33411           They can now be used outside FileDialog
33412
33413 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
33414
33415         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
33416         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
33417
33418 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
33419
33420         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33421           - Added missing CreatePrompt property in SaveDialog
33422           - Overall SaveDialog handling should be better now
33423           - Added non standard ShowHiddenFiles property
33424           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
33425           - Added InitialDirectory and RestoreDirectory support
33426
33427 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
33428
33429         * FileDialog.cs: Made dirComboBox usable
33430
33431 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
33432
33433         * FileDialog.cs: Added Filter support (case sensitiv)
33434
33435 2005-03-24  Jackson Harper  <jackson@ximian.com>
33436
33437         * TabControl.cs: Need a couple more pixels for the lines.
33438
33439 2005-03-23  Jackson Harper  <jackson@ximian.com>
33440
33441         * TabControl.cs: Give the tab page focus when it is selected.
33442
33443 2005-03-23  Jackson Harper  <jackson@ximian.com>
33444
33445         * TabControl.cs: Account for the drawing of tabs borders when
33446         invalidating. If the slider was clicked dont do click detection on
33447         the tabs.
33448
33449 2005-03-23  Jackson Harper  <jackson@ximian.com>
33450
33451         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
33452
33453 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
33454
33455         * CategoryGridEntry.cs: Added
33456         * GridItem.cs: Added helper properties
33457         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
33458         * GridEntry.cs: Updated code for collection
33459         * PropertyGrid.cs: Cleaned up some formatting
33460         * PropertyGridView.cs: Added drop down functionality for enums.
33461         * GridItemCollection.cs: Added enumerator logic
33462         * PropertyGridEntry.cs: Added
33463
33464 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
33465
33466         * FileDialog.cs:
33467           - Removed unnecessary commented code
33468           - Fixed handling for entering the filename manually in the combobox
33469
33470 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
33471
33472         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
33473
33474 2005-03-18  Peter Bartok  <pbartok@novell.com>
33475
33476         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
33477           them being touching the border
33478
33479 2005-03-18  Peter Bartok  <pbartok@novell.com>
33480
33481         * TextControl.cs: Quick hack to center text better
33482
33483 2005-03-18  Peter Bartok  <pbartok@novell.com>
33484
33485         * ControlPaint.cs:
33486           - Don't throw NotImplemented exceptions, just print a notice once
33487             instead (requested by Miguel). This makes running existing SWF
33488             apps a bit easier
33489         * Control.cs:
33490           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
33491           - Added context menu trigger on right click
33492         * Panel.cs: Trigger invalidate on resize
33493         * StatusBar.cs:
33494           - Removed old double-buffer drawing
33495           - Added ResizeRedraw style to force proper update of statusbar
33496         * ListView.cs:
33497           - Removed debug output
33498         * ThemeWin32Classic.cs:
33499           - Fixed drawing of status bar, now draws Text property if there
33500             are no defined panels
33501
33502 2005-03-18  Jackson Harper  <jackson@ximian.com>
33503
33504         * ImageList.cs: When the image stream is set pull all the images
33505         from it.
33506         * ImageListStreamer.cs: Implement reading image list streams.
33507
33508 2005-03-18  Peter Bartok  <pbartok@novell.com>
33509
33510         * ThemeWin32Classic.cs (DrawPictureBox):
33511           - Fixed calculations for centered drawing
33512           - Fixed drawing for normal mode, not scaling the image on normal
33513
33514 2005-03-18  Peter Bartok  <pbartok@novell.com>
33515
33516         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
33517           textbox
33518         * FileDialog.cs:
33519           - Made Open/Save button the accept button for FileDialog
33520           - Tied the cancel button to the IButtonControl cancel button
33521           - Save/Open now properly builds the pathname
33522           - Now handles user-entered text
33523           - Preventing crash on right-click if no item is selected
33524           - Fixed Text property, now uses contents of textbox
33525           - Fixed SelectedText property, now just returns the text part that
33526             is selected in the text box
33527
33528 2005-03-18  Jackson Harper  <jackson@ximian.com>
33529
33530         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
33531         rect, make sure to de-adjust the interior rect after drawing the
33532         tab text.
33533
33534 2005-03-18  Peter Bartok  <pbartok@novell.com>
33535
33536         * MenuAPI.cs: Remove menu *before* executing selected action to
33537           prevent the menu from 'hanging around'
33538           
33539 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
33540
33541         * XplatUIOSX.cs: Implemented WorkingArea property
33542
33543 2005-03-17  Peter Bartok  <pbartok@novell.com>
33544
33545         * XplatUIX11.cs: Fixed menu coord calculations
33546         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
33547           for calculating offsets
33548
33549 2005-03-17  Peter Bartok  <pbartok@novell.com>
33550
33551         * Hwnd.cs: Do not consider menu presence for default client
33552           rectangle location/size
33553         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
33554           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
33555           translation functions
33556         * FileDialog.cs: Fixed (what I presume is a) typo
33557
33558 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
33559
33560         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
33561           X access (avoids X-Async errors)
33562
33563 2005-03-16  Jackson Harper  <jackson@ximian.com>
33564
33565         * TabControl.cs: Raise the SelectedIndexChanged event.
33566
33567 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
33568
33569         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33570           - Removed vertical ToolBar and replaced it with a custom panel
33571             (desktop and home button already work)
33572           - Added Help button (some controls get resized or relocated then)
33573           - Draw correct text depending on Open or Save.
33574           - Fixed some typos...
33575
33576 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
33577
33578         * ScrollBar.cs:
33579           - Only change Maximum and Minimum when need it (bug fix)
33580
33581 2005-03-15  Peter Bartok  <pbartok@novell.com>
33582
33583         * Form.cs: Use Handle for icon, to trigger creation if
33584           the window does not yet exist
33585         * Control.cs:
33586           - CanSelect: Slight performance improvement
33587           - Focus(): Preventing possible recursion
33588           - Invalidate(): Removed ControlStyle based clear flag setting
33589           - WM_PAINT: fixed logic for calling OnPaintBackground
33590           - WM_ERASEBKGND: Fixed logic, added call to new driver method
33591             EraseWindowBackground if the control doesn't paint background
33592         * XplatUIWin32.cs:
33593           - Moved EraseWindowBackground() method to internal methods
33594           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
33595             is sent via SendMessage on BeginPaint call on Win32
33596         * XplatUIX11.cs:
33597           - Added EraseWindowBackground() method
33598           - No longer sends WM_ERASEBKGND on .Expose, but on call to
33599             PaintEventStart, which more closely matches Win32 behaviour
33600           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
33601           - Fixed SetFocus() to properly deal with client and whole windows
33602         * Hwnd.cs: Added ErasePending property
33603         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
33604         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
33605
33606 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
33607
33608         * XplatUIOSX.cs:
33609           - Fix hard loop when timers exist.
33610           - Fix bugs with middle and right click for 3 button mice.
33611
33612 2005-03-11  Peter Bartok  <pbartok@novell.com>
33613
33614         * XplatUIX11.cs:
33615           - get_WorkingArea: Need to call X directly, GetWindowPos only
33616             returns cached data now
33617           - Added sanity check to GetWindowPos hwnd usage
33618
33619 2005-03-11  Jackson Harper  <jackson@ximian.com>
33620
33621         * BindingManagerBase.cs: This method isn't used anymore as
33622         PullData now updates the data in the control.
33623
33624 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
33625
33626         * Form.cs: fixes menu drawing on X11
33627         * MenuAPI.cs:  fixes menu drawing on X11
33628
33629 2005-03-11  Peter Bartok  <pbartok@novell.com>
33630
33631         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
33632           from Jonathan Gilbert; should fix bug #73606
33633         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
33634           in Screen coordinates. Thanks, Jordi.
33635         * Form.cs: Added missing attribute
33636
33637 2005-03-11  Peter Bartok  <pbartok@novell.com>
33638
33639         * Form.cs:
33640           - Rudimentary Mdi support
33641           - Removed outdated FormParent code
33642           - Implemented lots of missing properties and methods, still missing
33643             transparency support
33644           - Added missing attributes
33645           - Implemented support for MaximumBounds
33646           - Added firing of various events
33647         * XplatUI.cs: Added SetIcon() method
33648         * XplatUIDriver.cs: Added SetIcon() abstract
33649         * XplatUIOSX.cs: Stubbed out SetIcon() method
33650         * XplatUIX11.cs:
33651           - Implemented SetIcon() support
33652           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
33653           - Switched to unix line endings
33654         * XplatUIWin32.cs:
33655           - Made POINT internal so for can access it as part of MINMAX
33656           - Implemented SetIcon() support
33657           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
33658             native Mdi support again, might have to go managed)
33659         * Control.cs: Now fires the StyleChanged event
33660         * MdiClient.cs: Added; still mostly empty
33661
33662 2005-03-10  Peter Bartok  <pbartok@novell.com>
33663
33664         * SaveFileDialog.cs: Added emtpy file
33665
33666 2005-03-08  Peter Bartok  <pbartok@novell.com>
33667
33668         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
33669           in turn triggers OnCreateContro) when creating a handle for the
33670           first time.
33671         * TextControl.cs: Fixed endless loop in certain cases when
33672           replacing the current selection
33673
33674 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
33675
33676         * ScrollBar.cs:
33677           - Honors NewValue changes in Scroll events allowing apps to change it
33678           - Adds First and Last Scroll events
33679           - Fixes Thumb events
33680
33681 2005-03-07  Peter Bartok  <pbartok@novell.com>
33682
33683         * Hwnd.cs: Added DefaultClientRectangle property
33684         * XplatUI.cs: Now using the X11 driver Where() method, which provides
33685           more detailed debug information
33686         * XplatUIX11.cs:
33687           - Fixed size-change feedback loop, where we would pull an old size
33688             off the queue and mistakenly change our window's size to an
33689             earlier value
33690           - Now compressing ConfigureNotify events, to reduce looping and
33691             redraw issues
33692         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
33693           is called
33694
33695 2005-03-07  Jackson Harper  <jackson@ximian.com>
33696
33697         * Binding.cs: Push data pushes from data -> property. Check if the
33698         property is readonly when attempting to set it.
33699
33700 2005-03-07  Jackson Harper  <jackson@ximian.com>
33701
33702         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
33703         instead of IsSubclassOf. Pulling data now sets the value on the
33704         control.
33705         * PropertyManager.cs:
33706         * CurrencyManager.cs: Just need to pull data when updating now,
33707         because PullData will set the value on the control.
33708
33709 2005-03-04  Jackson Harper  <jackson@ximian.com>
33710
33711         * Binding.cs: Implement data type parsing and converting on pulled
33712         data. TODO: Are there more ways the data can be converted?
33713
33714 2005-03-04  Jackson Harper  <jackson@ximian.com>
33715
33716         * Binding.cs: Support <Property>IsNull checks. Also bind to the
33717         controls Validating method so we can repull the data when the
33718         control loses focus.
33719
33720 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
33721
33722         * ColumnHeader.cs:
33723           - Fixes null string format
33724           
33725         * ListView.cs:
33726           - Adds enum type checks
33727           - Fixes redrawing and recalc need after changing some properties
33728           - Fixes on focus_item set after the event
33729           - Fixes adding columns after the control has been created
33730           
33731         * ThemeWin32Classic.cs:
33732           - Fixes CheckBox focus rectangle
33733           - Fixes ColumnHeader drawing
33734
33735
33736 2005-03-03  Jackson Harper  <jackson@ximian.com>
33737
33738         * Binding.cs: Bind to <Property>Changed events so we can detect
33739         when properties are changed and update the data.
33740
33741 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
33742
33743         * ImageList.cs:
33744           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
33745           - Fixes ImageList constructor with ImageList container
33746           - Fixes image scaling (wrong parameters at DrawImage)
33747
33748 2005-02-02  Jackson Harper  <jackson@ximian.com>
33749
33750         * Binding.cs: Make property searches case-insensitive. Eliminate
33751         some duplicated code.
33752
33753 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
33754
33755         * ComboBox.cs:
33756                 - Handle focus event
33757                 - Fix scrollbar events
33758                 - Discard highlighted item if remove it
33759                 - Fixes SelectedItem with strings
33760
33761 2005-03-01  Peter Bartok  <pbartok@novell.com>
33762
33763         * Control.cs:
33764           - Fixed Visible property, now follows (once again) parent chain
33765             to return false if any control in the chain is visible=false
33766           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
33767           - Fixed several places where is_visible instead of Visible was used
33768           - Implemented FIXME related to focus selection when setting focused
33769             control to be invisible
33770
33771         * XplatUIWin32.cs: Now using proper method to find out if window is
33772           visible. Thanks to Jordi for pointing it out
33773
33774 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
33775
33776         * ComboBox.cs: show/hide scrollbar instead of creating it
33777
33778 2005-02-27  Jackson Harper  <jackson@ximian.com>
33779
33780         * CurrencyManager.cs: Add PositionChanged stuff.
33781
33782 2005-02-27  Peter Bartok  <pbartok@novell.com>
33783
33784         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
33785         * XplatUIOSX.cs: Added GetMenuOrigin() stub
33786         * XplatUIWin32.cs: Implemented GetMenuOrigin()
33787         * XplatUIX11.cs:
33788           - Implemented GetMenuDC()
33789           - Implemented GetMenuOrigin()
33790           - Implemented ReleaseMenuDC()
33791           - Implemented generation of WM_NCPAINT message
33792           - Implemented generation and handling of WM_NCCALCSIZE message
33793         * Form.cs: Added debug helper message for Jordi's menu work
33794         * Hwnd.cs:
33795           - Modified ClientRect property; added setter, fixed getter to handle
33796             setting of ClientRect
33797           - Added MenuOrigin property
33798
33799 2005-02-26  Peter Bartok  <pbartok@novell.com>
33800
33801         * XplatUIX11.cs:
33802           - Destroys the caret if a window that's being destroyed contains it
33803           - Ignores expose events coming from the X11 queue for windows that
33804             already are destroyed
33805           - Now uses the proper variable for handling DestroyNotify, before we
33806             marked the wrong window as destroyed
33807           - Improved/added some debug output
33808
33809 2005-02-26  Peter Bartok  <pbartok@novell.com>
33810
33811         * X11Keyboard.cs: Fixes to work on 64bit systems
33812
33813 2005-02-26  Peter Bartok  <pbartok@novell.com>
33814
33815         * Control.cs:
33816           - Now calling OnHandleDestroyed from DestroyHandle()
33817             instead of Dispose()
33818           - Removed bogus call to controls.Remove() from DestroyHandle()
33819
33820 2005-02-26  Peter Bartok  <pbartok@novell.com>
33821
33822         * Control.cs: Properly destroy child windows when our handle is
33823           destroyed
33824
33825 2005-02-25  Peter Bartok  <pbartok@novell.com>
33826
33827         * XplatUI.cs:
33828           - Added 'DriverDebug' define to allow tracing XplatUI API calls
33829           - Alphabetized Static Methods and Subclasses
33830
33831         * XplatUIX11.cs:
33832           - Added XException class to allow custom handling of X11 exceptions
33833           - Created custom X11 error handler, tied into XException class
33834           - Added support for MONO_XEXCEPTIONS env var to allow the user
33835             to either throw an exception on X errors or continue running
33836             after displaying the error
33837           - Added handling of DestroyNotify message
33838           - Added handler for CreateNotify message (still disabled)
33839           - Improved (tried to at least) Where method to provide file and lineno
33840         * X11Structs.cs:
33841           - Added XErrorHandler delegate
33842           - Added XRequest enumeration (to suppor translation of errors)
33843
33844 2005-02-25  Jackson Harper  <jackson@ximian.com>
33845
33846         * PropertyManager.cs: Implement editing features
33847         * CurrencyManager.cs:
33848         * Binding.cs: First attempt at UpdateIsBinding
33849         * BindingManagerBase.cs: Call UpdateIsBinding before
33850         pushing/pulling data.
33851
33852 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
33853
33854         * MenuAPI.cs: Respect disabled items
33855         * ThemeWin32Classic.cs
33856                 - Caches ImageAttributes creation for DrawImageDisabled
33857                 - Fixes vertical menu line drawing
33858                 - Draws disabled arrows in disable menu items
33859
33860 2005-02-24  Peter Bartok  <pbartok@novell.com>
33861
33862         * Hwnd.cs:
33863           - Added UserData property to allow associating arbitrary objects
33864             with the handle
33865           - Fixed leak; now removing Hwnd references from static windows array
33866         * XplatUIWin32.cs:
33867           - Fixed Graphics leak in PaintEventEnd
33868           - Removed usage of HandleData, switched over to Hwnd class
33869         * HandleData.cs: Removed, obsoleted by Hwnd.cs
33870
33871 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
33872
33873         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
33874         * ScrollBar.cs: Fixes bug
33875         * TrackBar.cs: removes death code, clipping, mimize refreshes,
33876          keyboard navigation enhancements
33877
33878 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
33879
33880         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
33881         * GroupBox.cs: Add control styles
33882         * Label.cs: Add control styles
33883         * UpDownBase.cs: Add control styles
33884         * ListBox.cs: Add control styles
33885         * XplatUIWin32.cs: Fixes wrong parameter order
33886
33887
33888 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
33889
33890         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
33891
33892 2005-02-23  Jackson Harper  <jackson@ximian.com>
33893
33894         * PropertyManager.cs: Implement property binding. This doesn't
33895         seem to work yet though as (I think) there are some bugs in
33896         System.ComponentModel.PropertyDescriptor.
33897         * BindingContext.cs: Use new PropertyManager constructor.
33898
33899 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
33900
33901         * ProgressBar.cs: use clip region in ProgressBar
33902         * ThemeWin32Classic.cs: use clip region in ProgressBar
33903
33904 2004-02-22  Jackson Harper  <jackson@ximian.com>
33905
33906         * BindingsCollection.cs: Remove some debug code.
33907
33908 2005-02-22  Jackson Harper  <jackson@ximian.com>
33909
33910         * BindingContext.cs:
33911         * ControlBindingsCollection.cs:
33912         * CurrencyManager.cs:
33913         * Binding.cs:
33914         * BindingManagerBase.cs: Initial implementation
33915         * BindingsCollection.cs: Add an internal contains method that the
33916         BindingManagerBase uses to ensure bindings aren't added twice to
33917         the collection.
33918         * PropertyManager.cs: Stubbed out.
33919         * Control.cs:
33920         * ContainerControl.cs: Hook up databinding
33921         
33922 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
33923
33924         * XplatUIOSX.cs:
33925           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
33926           Fixed Invalidate/Update chain.
33927           Fixed tons of other minor bugs (this is almost a complete rewrite).
33928
33929 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
33930
33931         * ComboBox.cs: do subcontrol creation when the control is created
33932
33933 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33934
33935         * Label.cs: fixes image drawing (image and imagelist)
33936         * ThemeWin32Classic.cs: cache brushes
33937         
33938 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33939
33940         * Form.cs: Move menu drawing code to Theme class
33941         * ComboBox.cs: Move ComboBox drawing code to Theme class
33942         * MenuItem.cs: Move menu drawing code to Theme class
33943         * MenuAPI.cs: Move menu drawing code to Theme class
33944         * ThemeWin32Classic.cs: New methods
33945         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
33946         * ListBox.cs: Move Listbox drawing code to Theme class
33947         * Theme.cs: New methods
33948
33949 2005-02-20  Peter Bartok  <pbartok@novell.com>
33950
33951         * Control.cs:
33952           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
33953             only process mnemonics on those)
33954           - Fixed event sequence for key handling; first calling
33955             ProcessKeyEventArgs now
33956         * TextBoxBase.cs:
33957           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
33958             for processing non-character keys
33959           - Fixed WM_CHAR to generate proper event sequence before processing
33960         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
33961           generation
33962
33963 2005-02-19  Peter Bartok  <pbartok@novell.com>
33964
33965         * UserControl.cs: Added TextChanged event; added attributes
33966         * SizeGrip.cs: Implemented resizing and optional display of grip
33967         * Form.cs: Fixed attribute
33968         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33969           Changed meaning of ScrollWindow bool argument; instead of the
33970           clear attribute (which will be true usually anyway), it gives the
33971           option of moving child controls as well.
33972         * XplatUIX11.cs:
33973           - Changed to match new ScrollWindow argument
33974           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
33975             now handles the implicit parent window a WM puts around us
33976         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
33977           to work)
33978         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
33979         * TreeView.cs: Adjusted to new ScrollWindow arguments
33980
33981 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33982
33983         * Form.cs: Menu integration with non-client area
33984         * MenuItem.cs: Menu integration with non-client area
33985         * MenuAPI.cs: Menu integration with non-client area
33986
33987 2005-02-18  Peter Bartok  <pbartok@novell.com>
33988
33989         * MethodInvoker.cs: Added
33990         * MdiLayout.cs: Added
33991         * SendKeys.cs: Started implementation
33992         * ErrorIconAlignment.cs: Added
33993
33994 2005-02-18  Peter Bartok  <pbartok@novell.com>
33995
33996         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
33997         * Form.cs: Added handling for Menu-related Non-client messages
33998
33999 2005-02-17  Peter Bartok  <pbartok@novell.com>
34000
34001         * UpDownBase.cs: Fixed typo, compilation errors
34002         * DomainUpDown.cs: Fixed attribute value
34003
34004 2005-02-16  Miguel de Icaza  <miguel@novell.com>
34005
34006         * UpDownBase.cs: Attach entry events.
34007         Propagate events.
34008         Add ForeColor property, Focused, InterceptArrowKeys (interception
34009         does not work yet).
34010
34011 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
34012
34013         * Form.cs:
34014                 - Redraw non client are on Setmenu
34015                 - Calc proper menu starting point
34016
34017 2005-02-17  Peter Bartok  <pbartok@novell.com>
34018
34019         * Application.cs: Fixed message_filter check
34020
34021 2005-02-17  Peter Bartok  <pbartok@novell.com>
34022
34023         * Application.cs: Now calls registered message filters
34024         * DockStyle.cs: Fixed attribute
34025         * Form.cs: Fixed attribute
34026         * Menu.cs: Fixed attribute
34027         * ToolTip.cs: Fixed attribute
34028         * TreeNode.cs: Added missing attributes and arranged in regions
34029         * PropertyGrid.cs: Fixed signatures
34030         * TreeNodeCollection.cs: Added attributes
34031         * Splitter.cs: Added missing attributes; arranged into regions
34032         * TabPage.cs: Added missing attributes; arranged into regions
34033         * TextBoxBase.cs: Added missing attributes
34034         * TextBox.cs: Added missing attributes
34035         * ArrangeDirection.cs: Added missing attributes
34036         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34037         * ToolBarButton.cs: Fixed attributes
34038         * AnchorStyles.cs: Fixed attribute
34039         * TrackBar.cs: Fixed attributes
34040         * TabControl.cs: Added missing attributes and arranged into regions
34041         * ToolBar.cs: Fixed attribute
34042         * StatusBar.cs: Fixed signature, organized into regions and added
34043           attributes
34044         * StatusBarPanel.cs: Fixed attributes
34045         * ContentsResizedEventArgs.cs: Implemented
34046         * ContentsResizedEventHandler.cs: Implemented
34047         * DateBoldEventArgs.cs: Implemented
34048         * DateBoldEventHandler.cs: Implemented
34049         * UpDownEventArgs.cs: Implemented
34050         * UpDownEventHandler.cs: Implemented
34051         
34052 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
34053
34054         * Form.cs: first Menu NC refactoring
34055         * MenuAPI.cs: first Menu NC refactoring
34056         
34057 2005-02-16  Peter Bartok  <pbartok@novell.com>
34058
34059         * ImeMode.cs: Added missing attributes
34060         * Menu.cs: Fixed attribute
34061         * GroupBox.cs: Fixed attribute
34062         * Label.cs: Fixed attribute
34063         * ColorDialog.cs (RunDialog): Removed TODO attribute
34064         * ComboBox.cs: Fixed attributes
34065         * ListControl.cs: Added missing attributes
34066         * PropertyGrid.cs: Fixed attributes
34067         * Control.cs: Fixed attributes
34068         * ListViewItem.cs: Added TypeConverter attribute
34069         * NotifyIcon.cs: Fixed attributes
34070         * ListView.cs: Fixed attributes
34071         * ButtonBase.cs: Fixed attribute
34072         * ImageList.cs: Added missing attributes
34073         * ContainerControl.cs: Fixed signature
34074         * CheckedListBox.cs: Fixed attribute; added missing attributes
34075         * Panel.cs: Fixed attributes
34076         * PropertyTabChangedEventArgs.cs: Added missing attribute
34077         * PropertyValueChangedEventArgs.cs: Added missing attribute
34078         * Binding.cs: Fixed attribute
34079         * ListViewItemConverter: Implemented ListViewSubItemConverter class
34080         * ListBox.cs: Fixed attribute; added missing attributes;
34081         * ScrollableControl.cs: Added missing attributes
34082         * PictureBox.cs: Added missing attributes; implemented missing property
34083         * DateTimePicker.cs: Added missing attributes
34084         * Theme.cs (ToolWindowCaptionHeight): Fixed type
34085         * MonthCalendar.cs: Fixed attributes
34086         * StatusBarPanel.cs: Added missing attributes
34087         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34088
34089 2005-02-16  Peter Bartok  <pbartok@novell.com>
34090
34091         * TextBoxBase.cs: The previous method to enforce height yet remember
34092           the requested high was less than ideal, this is an attempt to do
34093           it better.
34094         * Control.cs: Added comment about possible problem
34095         * Copyright: Updated format
34096         * GridItemType.cs: Fixed swapped values
34097
34098 2005-02-15  Jackson Harper  <jackson@ximian.com>
34099
34100         * BaseCollection.cs: Use property so we never access an
34101         uninitialized list. Also initialize the list in the property.
34102
34103 2005-02-15  Peter Bartok  <pbartok@novell.com>
34104
34105         * GroupBox.cs (ProcessMnemonic): Implemented
34106         * Label.cs (ProcessMnemonic): Implemented
34107         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
34108           hotkeys
34109
34110 2005-02-15  Peter Bartok  <pbartok@novell.com>
34111
34112         * RadioButton.cs (ProcessMnemonic): Implemented
34113         * CheckBox.cs (ProcessMnemonic): Implemented
34114         * Control.cs:
34115           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
34116             handling
34117           - Added internal method to allow calling ProcessMnemonic from other
34118             controls
34119         * ContainerControl.cs:
34120           - Started support for handling validation chain handling
34121           - Implemented ProcessMnemonic support
34122           - Added Select() call to Active, to make sure the active control
34123             receives focus
34124         * Form.cs: Setting toplevel flag for Forms (this was lost in the
34125           FormParent rewrite)
34126         * ThemeWin32Classic.cs:
34127           - DrawCheckBox(): Fixed stringformat to show hotkeys
34128           - DrawRadioButton(): Fixed stringformat to show hotkeys
34129         * CommonDialog.cs: Removed WndProc override, not needed
34130
34131 2005-02-14  Peter Bartok  <pbartok@novell.com>
34132
34133         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
34134           missed those in the rewrite
34135
34136 2005-02-14  Miguel de Icaza  <miguel@novell.com>
34137
34138         * NumericUpDown.cs (Increment, ToString): Add.
34139         (DecimalPlaces): implement.
34140         
34141         Add attributes.
34142         
34143         * UpDownBase.cs: Add the designer attributes.
34144
34145 2005-02-13  Peter Bartok  <pbartok@novell.com>
34146
34147         * Panel.cs: Removed border_style, now in Control
34148         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
34149           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
34150
34151 2005-02-13  Peter Bartok  <pbartok@novell.com>
34152
34153         * MouseButtons.cs: Added missing attributes
34154         * XplatUIStructs.cs: Added enumeration for title styles
34155         * LeftRightAlignment.cs: Added missing attributes
34156         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
34157           it compatible with Graphics.FromHwnd()
34158         * SelectedGridItemChangedEventArgs.cs: Fixed property type
34159         * Keys.cs: Added missing attributes
34160         * SelectionRange.cs: Added missing attributes
34161         * SelectionRangeConverter.cs: Added
34162         * XplatUI.cs:
34163           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
34164             ReleaseMenuDC methods
34165           - Renamed ReleaseWindow to UngrabWindow
34166           - Added proper startup notice to allow version identification
34167         * Form.cs:
34168           - Added missing attributes
34169           - Removed FormParent concept
34170         * Label.cs: Removed border_style field, now in Control
34171         * RadioButton.cs: Now properly selects RadioButton when focus is
34172           received
34173         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
34174         * Control.cs:
34175           - Added missing attributes
34176           - Added borderstyle handling
34177           - Removed FormParent concept support
34178           - Fixed calls to XplatUI to match changed APIs
34179           - Fixed bug that would case us to use disposed Graphics objects
34180           - Removed unneeded internal methods
34181           - PerformLayout(): Fixed to handle DockStyle.Fill properly
34182           - SelectNextControl(): Fixed to properly check common parents
34183         * TextBoxBase.cs: Removed border_style field (now in Control)
34184         * MessageBox.cs:
34185           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
34186             fixed calculations for form size
34187           - Added support for localized strings and icons
34188           - Improved form size calculations, added border
34189         * ListView.cs: Removed border_style field (now in Control)
34190         * X11Structs.cs: Moved several structs from X11 driver here
34191         * X11Keyboard.cs: Changed debug message
34192         * Application.cs: Removed FormParent concept support
34193         * CommonDialog.cs:
34194           - Resetting end_modal flag
34195           - Removed FormParent concept support
34196         * NativeWindow.cs: Removed FormParent concept support
34197         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
34198           Client area and Non-Client whole window to allow support for WM_NC
34199           messages
34200         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
34201           prevent using it until it supports Hwnd as per Geoff Norton's request
34202         * ToolBar.cs: Fixed drawing, was not doing proper drawing
34203         * PictureBox.cs: Removed border_style field, now in Control
34204         * XplatUIWin32.cs: Added new driver methods
34205
34206 2005-02-12  Peter Bartok  <pbartok@novell.com>
34207
34208         * OpacityConverter.cs: Implemented
34209         * Hwnd.cs: Internal class to support drivers that need to emulate
34210           client area/non-client area window behaviour
34211
34212 2005-02-11  Peter Bartok  <pbartok@novell.com>
34213
34214         * KeysConverter.cs: Implemented
34215
34216 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
34217
34218         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
34219         * LinkLabel: Added missing attributes
34220         * MainMenu.cs: fixes ToString
34221         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
34222         * ListBox.cs: fixes event position
34223         * TrackBar.cs: adds missing attributes and events
34224         
34225 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
34226
34227         * MenuItem.cs: Use SystemInformation and bug fixes
34228         * MenuAPI.cs: Use SystemInformation and bug fixes
34229
34230 2005-02-09  Jackson Harper  <jackson@ximian.com>
34231
34232         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
34233         their keystate otherwise things like VK_MENU get stuck "on".
34234
34235 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
34236
34237         * ListBox.cs: Fixes AddRange bug
34238         
34239 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
34240
34241         * ProgressBar.cs
34242                 - Add missing attributes
34243                 - Add missing method
34244                 
34245         * CheckedListBox.cs: Added missing attributes
34246                 - Add missing attributes
34247                 - Remove extra method
34248         
34249         * ComboBox.cs: Added missing attributes
34250         * VScrollBar.cs: Added missing attributes
34251         * ScrollBar.cs:  Added missing attributes
34252         * ListBox.cs: Fixes signature, add missing consts
34253         * LinkArea.cs:   Added missing attributes
34254         
34255
34256 2005-02-08  Peter Bartok  <pbartok@novell.com>
34257
34258         * Menu.cs: Added missing attributes
34259         * MainMenu.cs: Added missing attributes
34260         * GroupBox.cs: Added missing attributes
34261         * Label.cs: Added missing attributes
34262         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
34263         * ColorDialog.cs:
34264           - Added Instance and Options properties
34265           - Added missing attributes
34266         * Cursor.cs: Made Serializable
34267         * NotifyIcon: Added missing attributes
34268         * MenuItem.cs: Added missing attributes
34269         * TextBoxBase.cs: Implemented AppendText() and Select() methods
34270         * Panel.cs: Added Missing attributes
34271         * MonthCalendar.cs: Fixed CreateParams
34272
34273 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
34274         
34275         * LinkLabel.cs:
34276                 - Fixes signature
34277                 - Fixes issues with links
34278                 - Adds the class attributes
34279
34280 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
34281         
34282         * ComboBox.cs:
34283                 - Fixes button when no items available in dropdown
34284                 - Fixes repainting problems
34285                 - Adds the class attributes
34286                 
34287 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34288
34289         * XplatUIOSX.cs: Detect the menu bar and title bar height from
34290         the current theme.  Cache these on startup.
34291
34292 2005-02-07  Jackson Harper  <jackson@ximian.com>
34293
34294         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
34295         the scrollbar buttons when they are depressed.
34296
34297 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34298
34299         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
34300         Get the display size from the main displayid.  We currently dont
34301         support multiple display configurations.
34302
34303 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34304
34305         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
34306
34307 2005-02-07  Miguel de Icaza  <miguel@novell.com>
34308
34309         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
34310
34311 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
34312
34313         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
34314
34315 2005-02-04  Jackson Harper  <jackson@ximian.com>
34316
34317         * ThemeWin32Classic.cs: Respect the clipping rect when
34318         drawing. Only fill the intersection of clips and rects so there
34319         isn't a lot of large fills.
34320         * ScrollBar.cs: Pass the correct clipping rect to the theme
34321         engine. Remove some debug code.
34322
34323 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
34324         
34325         * DateTimePicker.cs:
34326                 - Fixed crash on DateTime.Parse, use Constructor instead
34327
34328 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
34329         
34330         * MenuItem.cs:
34331         * MenuAPI.cs:
34332                 - Owner draw support (MeasureItem and DrawItem)
34333
34334 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
34335         
34336         *  Menu.cs:
34337                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
34338                 - Fixes MenuItems.Add range
34339         * MenuItem.cs:
34340                 - MergeMenu and Clone and CloneMenu functions
34341
34342 2005-02-03  Jackson Harper  <jackson@ximian.com>
34343
34344         * ScrollBar.cs: Make abstract
34345         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
34346         is abstract.
34347
34348 2005-02-03  Jackson Harper  <jackson@ximian.com>
34349
34350         * ScrollBar.cs: First part of my scrollbar fixups. This removes
34351         all the unneeded refreshes and uses invalidates with properly
34352         computed rects.
34353
34354 2005-02-03  Peter Bartok  <pbartok@novell.com>
34355
34356         * ComponentModel.cs: Added
34357         * IDataGridEditingService.cs: Added
34358         * Timer.cs: Added missing attributes
34359         * ToolTip.cs: Added missing attributes
34360
34361 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
34362
34363         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
34364
34365 2005-02-03  Peter Bartok  <pbartok@novell.com>
34366
34367         * ListBox.cs: Added missing attributes
34368
34369 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
34370         
34371         * ListBox.cs:
34372                 - Fixes font height after font change
34373                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
34374                 
34375 2005-02-02  Peter Bartok  <pbartok@novell.com>
34376
34377         * HandleData.cs: Introduced static methods to allow class
34378           to be more self-contained and track it's own HandleData objects
34379         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
34380           HandleData to use new static methods
34381
34382 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
34383
34384         * Combobox.cs:
34385                 - Fixes default size and PreferredHeight
34386                 - Missing events
34387                 - ObjectCollection.Insert implementation
34388                 
34389         * ListControl.cs
34390                 - Fixes signature
34391         * ListBox.cs:
34392                 - Several fixes
34393                 - ObjectCollection.Insert implementation
34394                 - No selection after clean
34395                 - Small fixes
34396
34397 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
34398
34399         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
34400
34401 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
34402
34403         * Combobox.cs:
34404                 - Caches ItemHeight calculation for OwnerDrawVariable
34405                 - Handles dropdown properly
34406                 - Fixes several minor bugs
34407
34408 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
34409
34410         * ListBox.cs:
34411                 - Fixes 71946 and 71950
34412                 - Fixes changing Multicolumn on the fly
34413                 - Fixes keyboard navigation on Multicolumn listboxes
34414
34415 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
34416         
34417         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
34418         crash reporter log.
34419
34420 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
34421
34422         * XplatUIOSX.cs: Allow applications to actually exit.
34423
34424 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
34425
34426         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
34427         their parent at creation time rather than lazily later.  Fixes a major
34428         regression we were experiencing.
34429
34430 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
34431
34432         * ThemeWin32Classic.cs: more date time picker painting fixes
34433         * DateTimePicker.cs: more monthcalendar drop down fixes
34434         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
34435
34436 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
34437
34438         * ScrollBar.cs:
34439                 - When moving the thumb going outside the control should stop the moving
34440                 - Adds the firing of missing events
34441                 - Fixes no button show if Size is not specified
34442                 - End / Home keys for keyboard navigation
34443
34444 2005-01-30  Peter Bartok  <pbartok@novell.com>
34445
34446         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
34447           sanity check to prevent theoretical loop
34448         * XplatUIWin32.cs (SetVisible): Removed debug output
34449         * XplatUIX11.cs (SystrayChange): Added sanity check
34450         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
34451         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
34452           behaviour, valid until the X11 client window rewrite is done
34453         * TextBox.cs (ctor): Setting proper default foreground and background
34454           colors
34455
34456 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
34457
34458         * Theme: Added DrawDateTimePicker to interface
34459         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
34460         * DateTimePicker.cs: Created (still needs keys and painting code)
34461         * DateTimePickerFormat.cs: added
34462         * MonthCalendar.cs: fixed CreateParams for popup window mode
34463           
34464 2005-01-29  Peter Bartok  <pbartok@novell.com>
34465
34466         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
34467           this should also the calculations for ligher/darker
34468         * Theme.cs: Fixed defaults for ScrollBar widths/heights
34469
34470 2005-01-29  Peter Bartok  <pbartok@novell.com>
34471
34472         * ArrangeDirection.cs: Added
34473         * ArrangeStartingPositon.cs: Added
34474         * SystemInformation.cs: Implemented
34475         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34476           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
34477           used by SystemInformation class
34478         * X11Strucs.cs: Added XSizeHints structure
34479         * MenuAPI.cs:
34480           - Fixed CreateParams to make sure the menu window is always visible
34481           - TrackPopupMenu: Added check to make sure we don't draw the
34482             menu offscreen
34483
34484 2005-01-29  Peter Bartok  <pbartok@novell.com>
34485
34486         * HandleData.cs: Added method for altering invalid area
34487         * TextBoxBase.cs: Implemented TextLength
34488
34489 2005-01-28  Peter Bartok  <pbartok@novell.com>
34490
34491         * XplatUIX11.cs: Improvement over last patch, not sending
34492           the WM_PAINT directly anymore, instead we scroll any pending
34493           exposed areas and let the system pick out the WM_PAINT later
34494
34495 2005-01-28  Peter Bartok  <pbartok@novell.com>
34496
34497         * SWF.csproj: Deleted, no longer used. Instead,
34498           Managed.Windows.Forms/SWF.csproj should be used
34499         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
34500           directly, to avoid a potential race condition with the next
34501           scroll
34502
34503 2005-01-28  Peter Bartok  <pbartok@novell.com>
34504
34505         * XplatUI.cs: Made class internal
34506
34507 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
34508
34509         * CheckedListBox.cs:
34510                 - Draw focus
34511                 - Fixed Drawing
34512                 - Missing methods and events
34513
34514 2005-01-27  Peter Bartok  <pbartok@novell.com>
34515
34516         * Application.cs (Run): Don't use form if we don't have one
34517
34518 2005-01-27  Peter Bartok  <pbartok@novell.com>
34519
34520         * TextBoxBase.cs (get_Lines): Fixed index off by one error
34521
34522 2005-01-27  Peter Bartok  <pbartok@novell.com>
34523
34524         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
34525         * GridItem.cs: Added; Patch by Jonathan S. Chambers
34526         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
34527         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
34528         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
34529         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
34530         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34531         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34532         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34533         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34534         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34535         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34536
34537 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
34538
34539         * Combobox.cs:
34540                 - Draw focus on Simple Combobox
34541                 - Fixes drawing issues
34542                 - fixes 71834
34543
34544 2005-01-27  Peter Bartok  <pbartok@novell.com>
34545
34546         * Form.cs:
34547           - Place window in default location, instead of hardcoded 0/0
34548           - Send initial LocationChanged event
34549         * Control.cs:
34550           - UpdateBounds after creation to find out where the WM placed us
34551           - Make sure that if the ParentForm changes location the Form
34552             is notified
34553         * XplatUIX11.cs: XGetGeometry will not return the coords relative
34554             to the root, but to whatever the WM placed around us.
34555             Translate to root coordinates before returning toplevel
34556             coordinates
34557         * XplatUIWin32.cs: Removed debug output
34558         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
34559           flag to GetWindowPos, to allow translation of coordinates on X11
34560
34561 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
34562
34563         * ListBox.cs: connect LostFocus Event
34564
34565 2005-01-27  Peter Bartok  <pbartok@novell.com>
34566
34567         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34568           XplatUIX11.cs: Extended the Systray API
34569         * Form.cs: Removed debug output
34570         * Application.cs: Fixed focus assignment, always need to call
34571           XplatUI.Activate() since Form.Activate() has rules that may
34572           prevent activation
34573         * NotifyIcon.cs: Should be complete now
34574         * ToolTip.cs: Worked around possible timer bug
34575
34576 2005-01-27  Jackson Harper  <jackson@ximian.com>
34577
34578         * TabControl.cs:
34579         - Only invalidate the effected tabs when the
34580         selected index changes. This reduces drawing and gets rid of some
34581         flicker.
34582         - Only refresh if the tabs need to be shifted, otherwise only
34583         invalidate the slider button.
34584         - On windows the tabs are not filled to right if the slider is
34585         visible.
34586         
34587 2005-01-27  Jackson Harper  <jackson@ximian.com>
34588
34589         * TabControl.cs: Only refresh on mouseup if we are showing the
34590         slider. Also only invalidate the button whose state has changed.
34591
34592 2005-01-26  Peter Bartok  <pbartok@novell.com>
34593
34594         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
34595         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
34596           and SystrayRemove() methods
34597         * XplatUIOSX.cs: Stubbed Systray methods
34598         * XplatUIX11.cs:
34599           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
34600             methods
34601           - Fixed broken XChangeProperty calls (marshalling messed up things)
34602         * X11Structs.cs: Added enums and structs required for Size hinting
34603         * NotifyIcon.cs: Added & implemented
34604
34605 2005-01-26  Jackson Harper  <jackson@ximian.com>
34606
34607         * TabControl.cs: Space vertically layed out tabs properly.
34608
34609 2005-01-26  Peter Bartok  <pbartok@novell.com>
34610
34611         * Form.cs (CreateClientParams): Always set the location to 0,0
34612           since we're a child window.
34613
34614         * Control.cs (SetVisibleCore): Always explicitly setting the location
34615           of a toplevel window, apparently X11 doesn't like to move windows
34616           while they're not mapped.
34617
34618 2005-01-26  Jackson Harper  <jackson@ximian.com>
34619
34620         * TabControl.cs: Implement FillToRight size mode with vertically
34621         rendered tabs.
34622
34623 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
34624
34625         * ControlPaint.cs, ThemeWin32Classic.cs
34626                 - Fixes DrawFocusRectangle
34627
34628 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
34629
34630         * MenuAPI.cs:
34631                 - MenuBar tracking only starts when item is first clicked
34632                 - Fixes menu hidding for multiple subitems
34633                 - Unselect item in MenuBar when item Executed
34634                 - Fixes bug 71495
34635
34636 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
34637
34638         * ListControl.cs:
34639                 - IsInputKey for ListBox
34640         * ListBox.cs:
34641                 - Focus item
34642                 - Shift and Control item selection
34643                 - Implement SelectionMode.MultiExtended
34644                 - Fixes RightToLeft
34645         * ComboBox.cs:
34646                 - IsInputKey implemented
34647                 - Do not generate OnTextChangedEdit on internal txt changes
34648                 
34649 2005-01-23  Peter Bartok  <pbartok@novell.com>
34650
34651         * AccessibleObject.cs: Partially implemented Select()
34652         * MonthCalendar.cs: Added missing attributes and events
34653         * Form.cs: Fixed CreateParams behaviour, now controls derived from
34654           form can properly override CreateParams.
34655         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34656           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
34657           Control performs Invalidate & Update
34658         * NativeWindow (CreateHandle): Added special handling for Form
34659           and Form.FormParent classes to allow overriding of From.CreateParams
34660         * Control.cs:
34661           - ControlNativeWindow: Renamed 'control' variable to more intuitive
34662             name 'owner'
34663           - ControlNativeWindow: Added Owner property
34664           - Removed usage of Refresh() on property changes, changed into
34665             Invalidate(), we need to wait until the queue is processed for
34666             updates, direct calls might cause problems if not all vars for
34667             Paint are initialized
34668           - Added call to UpdateStyles() when creating the window, to set any
34669             styles that CreateWindow might have ignored.
34670           - Added support for Form CreateParent overrides to UpdateStyles()
34671         * MessageBox.cs: Removed no longer needed FormParent override stuff,
34672           CreateParams are now properly overridable
34673         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
34674           CreateParams are now properly overridable
34675
34676 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
34677
34678         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
34679         OnTextBoxChanged.
34680
34681         Capture LostFocus and OnTextBoxChanged.  The later introduces a
34682         recursive invocation that I have not figured out yet.
34683
34684         Reset the timer when not using (it was accumulating).
34685
34686
34687         (OnTextBoxChanged): Set UserEdit to true here to track whether the
34688         user has made changes that require validation.
34689
34690         Reset changing to avoid loops.
34691
34692 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
34693
34694         * NumericUpDown.cs: Display value at startup.
34695
34696         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
34697         ValidateEditText.
34698
34699         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
34700         filled in.  Added some basic parsing of text.
34701
34702         Still missing the OnXXX method overrides, and figuring out the
34703         events that must be emitted.
34704
34705         * UpDownBase.cs: Handle UserEdit on the Text property.
34706         
34707 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
34708
34709         * ComboBox.cs:
34710           - Fixes IntegralHeight
34711           - ToString method
34712
34713 2005-01-21  Jackson Harper  <jackson@ximian.com>
34714
34715         * TabControl.cs: Set the SelectedIndex property when SelectedTab
34716         is set so that the page visibility is updated and the tabs are
34717         sized correctly.
34718
34719 2005-01-21  Jackson Harper  <jackson@ximian.com>
34720
34721         * TabControl.cs: Use cliping rectangle for blitting. Give the
34722         theme the clipping rect so we can do clipping while
34723         drawing. Remove some debug code.
34724
34725 2005-01-21  Jackson Harper  <jackson@ximian.com>
34726
34727         * TabPage.cs: Add a new method so tab pages can force the tab
34728         control to recalculate the tab page sizes.
34729         * TabControl.cs: UpdateOwner needs to make the tab control recalc
34730         sizes.
34731
34732 2005-01-20  Jackson Harper  <jackson@ximian.com>
34733
34734         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
34735
34736 2005-01-20  Jackson Harper  <jackson@ximian.com>
34737
34738         * TreeView.cs: Set the bounds for nodes properly. They were
34739         getting screwed up when checkboxes were not enabled, but images
34740         were.
34741
34742 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
34743
34744         * ListBox.cs:
34745                 - Owner draw support
34746                 - Fixes
34747                 
34748 2005-01-20  Jackson Harper  <jackson@ximian.com>
34749
34750         * XplatUIStructs.cs: More misc keys
34751         * X11Keyboard.cs: Ignore some control keys.
34752
34753 2005-01-20  Jackson Harper  <jackson@ximian.com>
34754
34755         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
34756         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
34757
34758 2005-01-19  Peter Bartok  <pbartok@novell.com>
34759
34760         * Control.cs: Un-selecting the control when it is loosing focus
34761
34762 2005-01-19  Jackson Harper  <jackson@ximian.com>
34763
34764         * TreeView.cs: Hook up to the text controls leave event so we can
34765         end editing when the users clicks outside the text box.
34766         
34767 2005-01-19  Jackson Harper  <jackson@ximian.com>
34768
34769         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
34770         get set in the conversion array.
34771
34772 2005-01-19  Peter Bartok  <pbartok@novell.com>
34773
34774         * Application.cs (ModalRun): Added a call to CreateControl to ensure
34775           focus is properly set
34776         * Button.cs:
34777           - Added missing attributes
34778           - removed styles, those are already set in the base class
34779         * ButtonBase.cs:
34780           - Added missing attributes
34781           - Added clip window styles
34782         * CheckBox.cs: Added missing attributes
34783         * CommonDialog.cs:
34784           - FormParentWindow.CreateParams: Added required clip styles
34785         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
34786           also filters modifier keys
34787         * MessageBox.cs:
34788           - Added assignment of Accept and Cancel button to enable Enter
34789             and Esc keys in MessageBox dialogs
34790           - FormParentWindow.CreateParams: Added required clip styles
34791         * RadioButton.cs: Added missing attributes
34792         * TextControl.cs: No longer draws selection if control does not
34793           have focus
34794         * TextBoxBase.cs:
34795           - Now draws simple rectangle around test area to make it obvious
34796             there's a control. This is a hack until we properly support borders
34797           - A few simple fixes to support selections better, now erases selected
34798             text when typing, and resets selection when using movement keys
34799
34800 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
34801
34802         * UpDownBase.cs: Added some new properties.
34803
34804         * DomainUpDown.cs: Implement a lot to get my test working.
34805
34806 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34807
34808         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
34809
34810 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34811
34812         * OSXStructs (WindowAttributes): Fixed csc complaints
34813
34814 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34815
34816         * XplayUIOSX.cs:
34817           OSXStructs.cs: Initial refactor to move enums and consts into
34818           OSXStructs and use them in the driver for greater readability.
34819
34820 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34821
34822         * XplatUIOSX.cs: Initial support for Standard Cursors.
34823         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
34824
34825 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
34826
34827         * ComboBox.cs: ability to change style when the ctrl is already
34828         created, missing methods and events, bug fixes, signature fixes
34829
34830 2005-01-19  Peter Bartok  <pbartok@novell.com>
34831
34832         * Cursors.cs (ctor): Added ctor to fix signature
34833
34834 2005-01-18  Peter Bartok  <pbartok@novell.com>
34835
34836         * Button.cs: Implemented DoubleClick event
34837         * ButtonBase.cs:
34838           - Fixed keyboard handling to behave like MS, where the press of
34839             Spacebar is equivalent to a mousedown, and the key release is
34840             equivalent to mouseup. Now a spacebar push will give the same
34841             visual feedback like a mouse click.
34842           - Added missing attributes
34843           - Added ImeModeChanged event
34844           - Added support for generating DoubleClick event for derived classes
34845         * CheckBox.cs:
34846           - Implemented DoubleClick event
34847           - Added missing attributes
34848         * CommonDialog.cs: Added missing attribute
34849         * ContextMenu.cs: Added missing attributes
34850         * RadioButton.cs:
34851           - AutoChecked buttons do not allow to be unselected when clicked
34852             (otherwise we might end up with no selected buttons in a group)
34853           - Added missing attributes
34854           - Implemented DoubleClickEvent
34855         * ThreadExceptionDialog.cs: Enabled TextBox code
34856
34857 2005-01-18  Peter Bartok  <pbartok@novell.com>
34858
34859         * Form.cs: Removed debug output
34860         * Button.cs: Added support for DoubleClick method
34861
34862 2005-01-18  Peter Bartok  <pbartok@novell.com>
34863
34864         * Form.cs:
34865           - Added method to parent window that allows triggering size
34866             calculations when a menu is added/removed
34867           - set_Menu: Cleaned up mess from early days of Form and Control,
34868             now properly triggers a recalc when a menu is added/removed
34869           - Added case to select form itself as focused form if no child
34870             controls exist
34871           - Added PerformLayout call when showing dialog, to ensure properly
34872             placed controls
34873         * Control.cs:
34874           - Select(): Made internal so Form can access it
34875           - Focus(): Only call Xplat layer if required (avoids loop), and sets
34876             status
34877         * Application.cs (Run): Removed hack and calls PerformLayout instead
34878           to trigger calculation when Form becomes visible
34879
34880 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
34881
34882         * ComboBox.cs: fixes for ownerdraw
34883
34884 2005-01-18  Peter Bartok  <pbartok@novell.com>
34885
34886         * TextControl.cs:
34887           - Sentinel is no longer static, each Document gets it's own, this
34888             avoids locking or alternatively overwrite problems when more
34889             than one text control is used simultaneously.
34890           - Switched to use Hilight and HilightText brushes for text selection
34891
34892         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
34893
34894 2005-01-18  Peter Bartok  <pbartok@novell.com>
34895
34896         * Control.cs:
34897           - Hooked up the following events:
34898                 o ControlAdded
34899                 o ControlRemoved
34900                 o HandleDestroyed
34901                 o ImeModeChanged
34902                 o ParentChanged
34903                 o TabStopChanged
34904                 o Invalidated
34905                 o SystemColorsChanged
34906                 o ParentFontChanged
34907                 o Move
34908           - Removed debug output
34909           - Added a call to the current theme's ResetDefaults when a color change
34910             is detected
34911         * Form.cs: Now setting the proper ImeMode
34912         * Theme.cs: Defined a method to force recreation of cached resources
34913           and rereading of system defaults (ResetDefaults())
34914         * ThemeWin32Classic.cs: Added ResetDefaults() stub
34915
34916 2005-01-17  Peter Bartok  <pbartok@novell.com>
34917
34918         * Control.cs: Added missing attributes
34919
34920 2005-01-17  Jackson Harper  <jackson@ximian.com>
34921
34922         * TreeNode.cs: Implement editing. Add missing properties selected
34923         and visible.
34924         * TreeView.cs: Implement node editing. Also some fixes to use
34925         Invalidate (invalid area) instead of Refresh when selecting.
34926
34927 2005-01-17  Peter Bartok  <pbartok@novell.com>
34928
34929         * Control.cs:
34930           - Implemented InvokeGotFocus() method
34931           - Implemented InvokeLostFocus() method
34932           - Implemented InvokePaint() method
34933           - Implemented InvokePaintBackground() method
34934           - Implemented InvokeClick() method
34935           - Implemented FindForm() method
34936           - Implemented RectangleToClient() method
34937           - Implemented ClientToRectangle() method
34938           - Implemented ResetBackColor() method
34939           - Implemented ResetCursor() method
34940           - Implemented ResetFont() method
34941           - Implemented ResteForeColor() method
34942           - Implemented ResetImeMode() method
34943           - Implemented ResetLeftToRight() method
34944           - Implemented ResetText() method
34945           - Implemented Scale() methods
34946           - Implemented ScaleCore() method
34947           - Implemented Update() method
34948           - Removed unused variables
34949           - Stubbed AccessibilityNotifyClients and
34950             ControlAccessibleObject.NotifyClients() methods (dunno what to do
34951             with those yet)
34952           - Now setting proper default for RightToLeft property
34953           - Fixed bug in SetClientSizeCore that would cause windows to get
34954             really big
34955           - Now sending Click/DoubleClick events
34956           - Now selecting controls when left mouse button is clicked on
34957             selectable control
34958         * AccessibleEvents.cs: Added
34959         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
34960         * XplatUIOSX.cs: Stubbed UpdateWindow() method
34961         * XplatUIWin32.cs: Implemented UpdateWindow() method
34962         * XplatUIX11.cs: Implemented UpdateWindow() method
34963         * Form.cs: Removed stray semicolon causing CS0162 warning
34964         * ThemeWin32Classic.cs: Fixed unused variable warnings
34965         * ScrollableControl.cs: Now calls base method for ScaleCore
34966         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
34967           style to avoid interference with internal click handler (which is
34968           different than standard Control click handling)
34969         * RadioButton.cs:
34970           - Now unchecks all sibling radio buttons when control is
34971             selected (Fixes #68756)
34972           - Removed internal tabstop variable, using the one inherited from
34973             Control
34974
34975 2005-01-17  Jackson Harper  <jackson@ximian.com>
34976
34977         * NavigateEventArgs.cs: Fix base type.
34978         * LinkLabel.cs: Sig fix
34979         
34980 2005-01-17  Jackson Harper  <jackson@ximian.com>
34981
34982         * TreeView.cs: Only invalidate the effected nodes bounds when
34983         selecting nodes.
34984
34985 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34986
34987         * XplatUIWin32.cs: fixes Win32 marshaling
34988         * XplatUIX11.cs: fixes method signature
34989
34990 2005-01-17  Peter Bartok  <pbartok@novell.com>
34991
34992         * XplatUIX11.cs: Clean up resources when we no longer need them
34993
34994 2005-01-17  Peter Bartok  <pbartok@novell.com>
34995
34996         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
34997           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
34998           and DestroyCursor() methods.
34999         * Cursor.cs: Partially implemented, now supports standard cursors;
35000           still contains some debug code
35001         * Cursors.cs: Implemented class
35002         * Control.cs:
35003           - WndProc(): Added handling of WM_SETCURSOR message, setting the
35004             appropriate cursor
35005           - Implemented Cursor property
35006           - Replaced break; with return; more straightforwar and possibly
35007             faster
35008           - Now properly setting the result for WM_HELP
35009         * X11Structs.cs: Added CursorFontShape enum
35010         * XplatUIStructs.cs:
35011           - Added StdCursor enum (to support DefineStdCursor() method)
35012           - Added HitTest enum (to support sending WM_SETCURSOR message)
35013         * XplatUIX11.cs:
35014           - Now sends the WM_SETCURSOR message
35015           - Implemented new cursor methods
35016         * XplatUIOSX.cs: Stubbed new cursor methods
35017         * XplatUIWin32.cs:
35018           - Implemented new cursor methods
35019           - Added GetSystemMetrics function and associated enumeration
35020
35021 2005-01-15  Peter Bartok  <pbartok@novell.com>
35022
35023         * Control.cs:
35024           - WndProc(): Now handles EnableNotifyMessage
35025           - SelectNextControl(): Fixed bug where if no child or sibling
35026             controls exist we looped endlessly
35027
35028 2005-01-14  Jackson Harper  <jackson@ximian.com>
35029
35030         * TreeView.cs: Recalculate the tab pages when a new one is added
35031         so that the proper bounding rects are created.
35032
35033 2005-01-14  Jackson Harper  <jackson@ximian.com>
35034
35035         * TreeView.cs: Draw a gray box instead of a grip in the lower
35036         right hand corner when there are both horizontal and vertical
35037         scroll bars.
35038
35039 2005-01-14  Jackson Harper  <jackson@ximian.com>
35040
35041         * Control.cs: When erasing backgrounds use FromHwnd instead of
35042         FromHdc when there is a NULL wparam. This occurs on the X driver.
35043         * XplatUIX11.cs: Set the wparam to NULL.
35044
35045 2005-01-13  Jackson Harper  <jackson@ximian.com>
35046
35047         * PictureBox.cs: Implement missing methods (except ToString, need
35048         to test that on windows) and events. When visibility is changed we
35049         need to redraw the image because the buffers are killed. When size
35050         is changed refresh if the sizemode needs it.
35051
35052 2005-01-13  Peter Bartok  <pbartok@novell.com>
35053
35054         * Control.cs (SelectNextControl): Was using wrong method to select
35055           a control
35056
35057 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35058
35059         * ComboBox.cs: fixes dropstyle
35060
35061 2005-01-13  Peter Bartok  <pbartok@novell.com>
35062
35063         * Form.cs:
35064           - Implemented Select() override
35065           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35066           - Now sets keyboard focus on startup
35067         * Control.cs (SelectNextControl): Now properly handles directed=true
35068         * TextBoxBase.cs:
35069           - WndProc: Now passes tab key on to base if AcceptTabChar=false
35070           - Added (really bad) focus rectangle (mostly for testing)
35071         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35072           to enforce redraw on focus changes
35073         * ContainerControl.cs:
35074           - Fixed detection of Shift-Tab key presses
35075           - Fixed traversal with arrow keys
35076         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35077           gonna keep this or if it's complete yet
35078         
35079 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35080
35081         * ComboBox.cs: missing properties, fixes
35082
35083 2005-01-13  Peter Bartok  <pbartok@novell.com>
35084
35085         * Panel.cs (ctor): Setting Selectable window style to off
35086         * Splitter.cs (ctor): Setting Selectable window style to off
35087         * GroupBox.cs (ctor): Setting Selectable window style to off
35088         * Label.cs (ctor): Setting Selectable window style to off
35089
35090 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
35091
35092         * UpDownBase.cs (InitTimer): If the timer has been already
35093         created, enable it.
35094
35095         Use a TextBox instead of a Label.
35096
35097 2005-01-12  Jackson Harper  <jackson@ximian.com>
35098
35099         * TreeView.cs: Refresh the tree after sorting the nodes. Always
35100         draw the connecting node lines (when ShowLines is true).
35101         * TreeNode.cs: The nodes index can now be updated. This is used
35102         when a node collection is sorted.
35103         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
35104         insert or an existing unsorted node collection can be sorted.
35105         
35106 2005-01-12  Peter Bartok  <pbartok@novell.com>
35107
35108         * ContainerControl.cs: Implemented ProcessDialogKeys()
35109
35110 2005-01-12  Peter Bartok  <pbartok@novell.com>
35111
35112         * Control.cs:
35113           - Implemented SelectNextControl() method
35114           - Several focus related bug fixes
35115           - Fixed Docking calculations to match MS documentation and
35116             behaviour
35117
35118 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
35119
35120         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
35121         bug fixes
35122
35123 2005-01-12  Peter Bartok  <pbartok@novell.com>
35124
35125         * Control.cs:
35126           - Fixed broken Contains() method
35127           - Implemented GetNextControl() method. Finally. This is the pre-
35128             requisite for focus handling.
35129
35130 2005-01-12  Peter Bartok  <pbartok@novell.com>
35131
35132         * OSXStrucs.cs: Added
35133
35134 2005-01-12  Peter Bartok  <pbartok@novell.com>
35135
35136         * XplatUIWin32.cs:
35137           - Removed PeekMessageFlags
35138           - Implemented SetWindowStyle() method
35139         * XplatUIStructs.cs: Added PeekMessageFlags
35140         * X11Structs: Added missing border_width field to XWindowChanges struct
35141         * XplatUIX11.cs:
35142           - PeekMessage: Now throws exception if flags which are not yet
35143             supported are passed
35144           - Implemented SetWindowStyle() method
35145           - Fixed SetZOrder to handle AfterHwnd properly
35146         * XplatUI.cs: Added SetWindowStyle() method
35147         * XplatUIDriver.cs: Added SetWindowStyle() abstract
35148         * Control.cs:
35149           - Implemented UpdateStyles() method
35150           - Implemented UpdateZOrder() method
35151         * XplatUIOSX.cs: Added SetWindowStyle() stub
35152
35153 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
35154
35155         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
35156         button mouse).
35157
35158
35159 2005-01-11  Jackson Harper  <jackson@ximian.com>
35160
35161         * TreeView.cs: Still need to draw lines to siblings even if out of
35162         the current node is out of the clip.
35163
35164 2005-01-11  Jackson Harper  <jackson@ximian.com>
35165
35166         * TreeView.cs: When setting the hbar/vbar/grip position use
35167         SetBounds so that perform layout is only called once. Also suspend
35168         and resume layout so layout is only done once for all controls.
35169         - Removed some debug fluff
35170         * SizeGrip.cs: Call base implmentation in overriding methods.
35171         - When visibility is changed the drawing buffers are killed so we
35172         need to redraw.
35173
35174 2005-01-11  Jackson Harper  <jackson@ximian.com>
35175
35176         * TreeView.cs: Calculate the open node count while drawing. This
35177         saves us an entire tree traversal for every paint operation. Use
35178         a member var for the open node count so less vars are passed around.
35179
35180 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
35181
35182         * MonthCalendar.cs:
35183         - fixed selection to use mousemove, not mouse polling on timer
35184         * ThemeWin32Classic.cs
35185         - removed redundant unused variable "no_more_content"
35186         
35187 2005-01-11  Peter Bartok  <pbartok@novell.com>
35188
35189         * XplatUIX11.cs (DoEvents): Needs to return when no more events
35190           are pending, so it now calls PeekMessage instead of GetMessage;
35191           implemented a incomplete version of PeekMessage
35192         
35193 2005-01-11  Peter Bartok  <pbartok@novell.com>
35194
35195         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
35196           I18n issues
35197         * TextBoxBase.cs: Added sending of TextChanged event
35198
35199 2005-01-10  Jackson Harper  <jackson@ximian.com>
35200
35201         * TreeView.cs: Try not to draw outside the clipping rectangle on
35202         each node element.
35203
35204 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
35205
35206         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
35207
35208 2005-01-10  Jackson Harper  <jackson@ximian.com>
35209
35210         * TreeView.cs:
35211         - Implement fast scrolling. Now only the newly
35212         exposed nodes are drawn and the old image is moved using the
35213         XplatUI::ScrollWindow method.
35214         - Factor in height of nodes when calculating whether or not the
35215         node is in the clipping rect.
35216
35217 2005-01-10  Jackson Harper  <jackson@ximian.com>
35218
35219         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
35220
35221 2005-01-10  Peter Bartok  <pbartok@novell.com>
35222
35223         * Application.cs: Added temporary hack to resolve all our resize
35224           required issues on startup. This will get fixed properly at
35225           some point in the future
35226
35227 2005-01-10  Jackson Harper  <jackson@ximian.com>
35228
35229         * SizeGrip.cs: New internal class that is used as a sizing
35230         grip control...hence the name.
35231
35232 2005-01-10  Peter Bartok  <pbartok@novell.com>
35233
35234         * Control.cs: Implemented proper TabIndex handling, now assigning
35235           a tabindex when a control is added to a container
35236         * GroupBox.cs (ctor): Now sets the Container style bit, required
35237           for Control.GetNextControl()
35238
35239 2005-01-09  Jackson Harper  <jackson@ximian.com>
35240
35241         * TextBoxBase.cs: Clear window when scrolling (fixes build).
35242
35243 2005-01-09  Peter Bartok <pbartok@novell.com>
35244
35245         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35246           XplatUIX11.cs: Added ability to control ScrollWindow expose and
35247           an overload for ScrollWindow to allow only scrolling a rectangle
35248
35249 2005-01-09  Peter Bartok <pbartok@novell.com>
35250
35251         * Form.cs:
35252           - Implemented SetDesktopBounds method
35253           - Implemented SetDesktopLocation method
35254
35255 2005-01-08  Jackson Harper  <jackson@ximian.com>
35256
35257         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
35258         the node count has changed, this removes to VScroll::Refresh calls
35259         when drawing.
35260
35261 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
35262
35263         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
35264
35265 2005-01-07  Jackson Harper  <jackson@ximian.com>
35266
35267         * TreeNode.cs: Just update the single node when it is
35268         checked. Don't refresh after toggling, the Expand/Collapse already
35269         handles this.
35270         * TreeView.cs: Respect clipping a little more when drawing. Try
35271         not to redraw things that don't need to be redrawn. Just hide the
35272         scrollbars when they are no longer needed instead of removing
35273         them, so they don't have to be created again and again.
35274         
35275 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
35276
35277         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
35278         coordinates to window space to place the caret properly, FIXED.
35279         Implement GetWindowState & SetWindowState
35280
35281 2005-01-06  Peter Bartok <pbartok@novell.com>
35282
35283         * Form.cs:
35284           - Implemented ClientSize property
35285           - Implemented DesktopBounds property
35286           - Implemented DesktopLocation property
35287           - Implemented IsRestrictedWindow property
35288           - Implemented Size property
35289           - Implemented TopLevel property
35290           - Implemented FormWindowState property
35291         * Control.cs:
35292           - Implemented GetTopLevel() method
35293           - Implemented SetTopLevel() method
35294         * X11Structs.cs (Atom):
35295           - Added AnyPropertyType definition
35296           - Added MapState definiton and updated XWindowAttribute struct
35297         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
35298         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
35299         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
35300         * XplatUIWin32.cs:
35301           - Implemented GetWindowState() and SetWindowState() methods
35302           - Fixed Win32GetWindowLong return type
35303         * XplatUIX11.cs:
35304           - Introduced central function for sending NET_WM messages
35305           - Implemented GetWindowState() and SetWindowState() methods
35306         * TextBoxBase.cs (set_Lines):
35307           - Now uses Foreground color for text added via Text property (Duh!)
35308           - Added code to remember programmatically requested size (fixes
35309             behaviour when Multiline is set after Size)
35310           - Added AutoSize logic
35311
35312 2005-01-06  Jackson Harper  <jackson@ximian.com>
35313
35314         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
35315
35316 2005-01-06  Jackson Harper  <jackson@ximian.com>
35317
35318         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
35319         set to less then 0.
35320
35321 2005-01-06  Jackson Harper  <jackson@ximian.com>
35322
35323         * ScrollableControl.cs: Lazy init the scrollbars.
35324         
35325 2005-01-06  Jackson Harper  <jackson@ximian.com>
35326
35327         * Theme.cs: Speed up getting pens and solid brushes, by using
35328         their ARGB as a hash instead of tostring and not calling Contains.
35329
35330 2005-01-06  Peter Bartok <pbartok@novell.com>
35331
35332         * Form.cs:
35333           - Implemented OnActivated and OnDeactivate event trigger
35334           - Implemented Activate() method
35335           - Fixed ShowDialog() to activate the form that was active before
35336             the dialog was shown
35337         * XplatUIX11.cs:
35338           - Added global active_window var that tracks the currently active
35339             X11 window
35340           - Now always grabs Property changes from the root window to always
35341             catch changes on the active window property
35342           - Added code to PropertyNotify handler to send Active/Inactive
35343             messages when state changes. This puts X11 and Win32 en par on
35344             WM_ACTIVATE notifications (except for double notifications when
35345             the user clicks away from our modal window to another one of our
35346             windows)
35347
35348 2005-01-05  Jackson Harper  <jackson@ximian.com>
35349
35350         * ImageList.cs: Implment ctor
35351
35352 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35353
35354         * XplatUIOSX.cs: Implement Activate/SetTopmost
35355
35356 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35357
35358         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
35359
35360 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35361
35362         * XplatUIOSX.cs: Implement GetActive/SetFocus.
35363
35364 2005-01-05  Peter Bartok <pbartok@novell.com>
35365
35366         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
35367           XplatUIOSX.cs: Added GetActive method to return the currently
35368           active window for the application (or null, if none is active)
35369         * Form.cs:
35370           - Implemented ActiveForm
35371           - Commented out owner assignment for modal dialogs (causes problems
35372             on Win32, since the owner will be disabled)
35373           - Reworked some Active/Focus handling (still incomplete)
35374         * CommonDialog.cs: Commented out owner assignment for modal dialogs
35375           (causes problems on Win32, since the owner will be disabled)
35376         * IWin32Window: Added ComVisible attribute
35377
35378 2005-01-05  Peter Bartok <pbartok@novell.com>
35379
35380         * ToolTip.cs (WndProc): Enable setting focus now that we have the
35381           required XplatUI functions.
35382
35383 2005-01-05  Peter Bartok <pbartok@novell.com>
35384
35385         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
35386           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
35387           to implement focus and activation handling; still incomplete and
35388           with debug output
35389
35390 2005-01-04  Peter Bartok <pbartok@novell.com>
35391
35392         * TextBoxBase.cs: Changed access level for Document property to
35393           match switch to internal for TextControl
35394
35395 2005-01-04  Peter Bartok <pbartok@novell.com>
35396
35397         * AccessibleObject: Added ComVisible attribute
35398
35399 2005-01-04  Jackson Harper  <jackson@ximian.com>
35400
35401         * X11Keyboard.cs: Remove unneeded var.
35402
35403 2005-01-04  Jackson Harper  <jackson@ximian.com>
35404
35405         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
35406         but PAINT.
35407         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
35408         ClientMessage. This makes apps exit cleanly (more often).
35409         
35410 2005-01-04  Jackson Harper  <jackson@ximian.com>
35411
35412         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
35413         handling focus, return correct colors and fonts,
35414         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
35415         handle selection, horizontal scrolling, and mouse interaction.
35416
35417 2005-01-04  Peter Bartok <pbartok@novell.com>
35418
35419         * ICommandExecutor.cs: Added
35420         * IDataGridColumnStyleEditingNotificationService.cs: Added
35421         * IFeatureSupport.cs: Added
35422         * IFileReaderService.cs: Added
35423         * IDataObject.cs: Added ComVisible attribute
35424         * AmbientProperties.cs: Added
35425         * BaseCollection.cs: Added missing attributes
35426         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
35427         * BaseCollection.cs: Added missing attributes
35428         * Binding.cs: Added TypeConverter attribute
35429         * BindingContext.cs: Added DefaultEvent attribute
35430         * BindingsCollection.cs: Added DefaultEvent attribute
35431         * Button.cs: Added DefaultValue attribute
35432         * DragEventArgs.cs: Added ComVisible attribute
35433         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
35434         * KeyEventArgs.cs: Added ComVisible attribute
35435         * KeyPressEventArgs.cs: Added ComVisible attribute
35436         * MouseEventArgs.cs: Added ComVisible attribute
35437         * NavigateEventArgs.cs: Added
35438         * NavigateEventHandler.cs: Added
35439         * FeatureSupport.cs: Added
35440         * OSFeature.cs: Added
35441         * Theme.cs: Added abstract Version property to support OSFeature
35442         * ThemeWin32Classic.cs: Added Version property to
35443           support OSFeature.Themes
35444         * ProgressBar.cs: Removed OnPaintBackground override, not required since
35445           the proper styles to avoid background drawing are set, also doesn't
35446           match MS signature
35447         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
35448         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
35449         * ScrollEventArgs.cs: Added ComVisible attribute
35450         * SplitterEventArgs.cs: Added ComVisible attribute
35451         * AccessibleSelection.cs: Added Flags attribute
35452         * Appearance.cs: Added ComVisible attribute
35453         * Border3DSide.cs: Added ComVisible attribute
35454         * Border3DStyle.cs: Added ComVisible attribute
35455         * BorderStyle.cs: Added ComVisible attribute
35456         * DragAction.cs: Added ComVisible attribute
35457         * ErrorBlinkStyle.cs: Added
35458         * ScrollEventType.cs: Added ComVisible attribute
35459         * AnchorStyles.cs: Added Editor attribute
35460         * DockStyle.cs: Added Editor attribute
35461         * HorizontalAlignment.cs: Added ComVisible attribute
35462         * HelpEventArgs.cs: Added ComVisible attribute
35463         * PaintEventArgs.cs: Added IDisposable
35464
35465 2005-01-04  Peter Bartok <pbartok@novell.com>
35466
35467         * TextControl.cs: Switched Line, LineTag and Document classes to
35468           internal
35469
35470 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
35471
35472         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
35473         Simple mode, fixes, IntegralHeight, etc.
35474
35475 2005-01-04  Peter Bartok <pbartok@novell.com>
35476
35477         * TextBoxBase.cs: Using proper font variable now
35478
35479 2005-01-04  Peter Bartok <pbartok@novell.com>
35480
35481         * Form.cs (ShowDialog): Set parent to owner, if provided
35482         * GroupBox.cs: Removed unused vars
35483         * TextControl.cs:
35484           - Added GetHashCode() for Document and LineTag classes
35485           - Removed unused variables
35486           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
35487             to allow translation between continuous char position and line/pos
35488         * CheckBox.cs: Removed vars that are provided by base class
35489         * RadioButton.cs: Removed vars that are provided by base class, added
35490           new keyword where required
35491         * LinkLabel.cs: Added new keyword where required
35492         * Control.cs (WndProc): Removed unused variable
35493         * TextBoxBase.cs:
35494           - Finished SelectionLength property
35495           - Implemented SelectionStart property
35496           - Implemented Text property
35497           - Removed unused vars
35498         * MessageBox.cs: Added new keyword where required
35499         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
35500           WndProc signature
35501         * MenuAPI.cs: Added new keyword where required
35502         * ButtonBase.cs: Removed vars that are provided by base class, added
35503           new keyword where required
35504         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
35505           argument to double, to allow compiling with csc 2.0 (Atsushi ran
35506           into this)
35507         * Application.cs (Run): Now triggers the ThreadExit event
35508         * CommonDialog.cs: Added new keyword where required; now properly sets
35509           parent (owner) for dialog
35510         * XplatUIX11.cs: Commented out unused vars
35511         * StatusBar.cs: Fixed signature for Text property
35512         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
35513
35514 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
35515
35516         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
35517         TrackBar.cs, MonthCalendar.cs: remove unused vars
35518
35519 2005-01-03  Jackson Harper  <jackson@ximian.com>
35520
35521         * ThemeWin32Classic.cs:
35522         * X11Keyboard.cs: Remove unused vars.
35523
35524 2005-01-03  Peter Bartok  <pbartok@novell.com>
35525
35526         * TextBox.cs:
35527           - set_Text: Tied into TextControl
35528           - set_TextAlignment: Tied into TextControl
35529         * TextControl.cs:
35530           - Added alignment properties and implemented alignment handling
35531             and drawing (still has a bug, not generating proper expose events)
35532           - Added new Line() constructor to allow passing the line alignment
35533           - Fixed selection setting, properly handling end<start now
35534           - Added aligment considerations to RecalculateDocument()
35535         * TextBoxBase.cs:
35536           - Now properly enforces control height for single line controls
35537           - Added support for CharacterCasing
35538           - Added IsInputKey override
35539           - Fixed Keys.Enter logic
35540           - Added SetBoundsCore override
35541           - Fixed mouse selection handling
35542
35543 2005-01-03  Jackson Harper  <jackson@ximian.com>
35544
35545         * TreeView.cs:
35546           - Collapse and uncheck all nodes when CheckBoxes is disabled.
35547           - Checkboxes are always aligned to the bottom of the node,
35548           regardless of item height.
35549           - Use the node bounds to draw the text so we can center it when
35550           the item height is greater then the font height.
35551           - Node::Bounds are only the text part of the node.
35552         * TreeNode.cs: New method to combine collapsing and unchecking all
35553           nodes recursively.
35554
35555 2005-01-02  Jackson Harper  <jackson@ximian.com>
35556
35557         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
35558         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
35559         tree when a check is changed. TODO: Only refresh the checked node.
35560
35561 2004-12-30  Jackson Harper  <jackson@ximian.com>
35562
35563         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
35564         * TreeNode.cs: When collapsing make sure to never collapse the
35565         root node.
35566
35567 2004-12-29  Jackson Harper  <jackson@ximian.com>
35568
35569         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
35570         
35571 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
35572
35573         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
35574
35575 2004-12-28  Peter Bartok  <pbartok@novell.com>
35576
35577         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
35578           not yet assigned
35579
35580 2004-12-28  Peter Bartok  <pbartok@novell.com>
35581
35582         * Control.cs (WndProc): Added WM_HELP handler, now generates
35583           HelpRequested event
35584         * Form.cs: Added HelpButton property and required support code
35585         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
35586
35587 2004-12-28  Peter Bartok  <pbartok@novell.com>
35588
35589         * CommonDialog.cs:
35590           - Made DialogForm.owner variable internal
35591           - Added check to ensure owner form is set before setting
35592             owner properties in CreateParams
35593
35594 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
35595
35596         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
35597           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
35598           GetCursorPos.  Fix major visibility issues.  Rework the windowing
35599           system to support borderless/titleless windows (implements menus).
35600           Fix GetWindowPos.  Implement initial background color support for
35601           views.
35602
35603 2004-12-28  Peter Bartok  <pbartok@novell.com>
35604
35605         * Form.cs (get_CreateParams): Make sure we have an owner before using
35606           the owner variable. Implement proper default if no owner exists
35607
35608 2004-12-28  Peter Bartok  <pbartok@novell.com>
35609
35610         * In preparation for making Managed.Windows.Forms the default build target
35611           for System.Windows.Forms, the following stubbed files were added.
35612           Dialogs are currently being implemented by contributors and are only
35613           short-term place holders.
35614         * ColorDialog.cs: Initial check-in (minmal stub)
35615         * DataGrid.cs: Initial check-in (minimal stub)
35616         * DataGridLineStyle.cs: Initial check-in (minimal stub)
35617         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
35618         * DataGridTableStyle.cs: Initial check-in (minimal stub)
35619         * FontDialog.cs: Initial check-in (minimal stub)
35620         * FileDialog.cs: Initial check-in (minimal stub)
35621         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
35622         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
35623         * OpenFileDialog: Initial check-in (minimal stub)
35624         * IComponentEditorPageSite.cs: Initial check-in
35625         * Splitter.cs: Initial check-in (for Jackson)
35626         * SplitterEventArgs.cs: Initial check-in (for Jackson)
35627         * SplitterEventHandler.cs: Initial check-in (for Jackson)
35628         * TextBox.cs: Initial check-in; still needs some wiring to
35629           TextControl backend
35630         * Form.cs: Implemented ControlBox property
35631         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
35632         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
35633         * TextControl.cs: Added selection functionality; added todo header
35634         * TextBoxBase.cs:
35635           - Implemented Lines property
35636           - Implemented TextHeight property
35637           - Implemented SelectedText property
35638           - Implemented SelectionLength property
35639           - Implemented SelectAll method
35640           - Implemented ToString method
35641           - Removed and cleaned up some debug code
35642           - Implemented (still buggy) mouse text selection
35643
35644 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
35645
35646         * ComboBox.cs: Complete DropDownList implementation, fixes.
35647
35648 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
35649
35650         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
35651         * ComboBoxStyle.cs: ComboBoxStyle enum
35652         * ComboBox.cs: Initial work on ComboBox control
35653
35654 2004-12-21  Peter Bartok  <pbartok@novell.com>
35655
35656         * Control.cs (ctor, CreateParams): Moved setting of is_visible
35657           forward so that anything that creates a window gets the default,
35658           also no longer uses Visible property in CreateParams to avoid
35659           walking up the parent chain and possibly get the wrong visible
35660           status. Fixed IsVisible to no longer walk up to the parent.
35661
35662 2004-12-21  Peter Bartok  <pbartok@novell.com>
35663
35664         * Form.cs (ShowDialog): Unset modality for the proper window
35665  
35666 2004-12-20  Peter Bartok  <pbartok@novell.com>
35667
35668         * CommonDialog.cs: Initial check-in
35669
35670 2004-12-20  Peter Bartok  <pbartok@novell.com>
35671
35672         * Control.cs (Visible): Now uses the parent window instead of the
35673           client area window for the property
35674
35675         * Form.cs
35676           - ShowDialog(): Now uses the proper window for modality
35677           - The default visibility state for the form parent is now false. This
35678             will prevent the user from seeing all the changes to the form and
35679             its controls before the application hits Application.Run()
35680           - Removed some stale commented out code
35681
35682         * NativeWindow.cs:
35683           - Added FindWindow() method to have a method to check for existence
35684             of a window handle
35685           - Added ability to override default exception handling (for example
35686             when debugging with VS.Net; to do this the ExternalExceptionHandler
35687             define must be set
35688           - Removed some useless debug output
35689
35690         * XplatUIX11.cs:
35691           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
35692             not working as expected
35693           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
35694             property to allow switching back to the modal window if focus is
35695             given to another one of our windows (Application Modal)
35696           - Now only sets override_redirect if we create a window
35697             without WS_CAPTION
35698           - Moved EventMask selection before mapping of newly created window
35699             so we can catch the map event as well
35700           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
35701           - Added various Atom related DllImports
35702           - Implemented Exit() method
35703           - .ctor() : No longer shows window if WS_VISIBLE is not defined
35704             in the CreateParams
35705
35706         * MessageBox.cs: Now properly deals with the FormParent window by
35707           providing an override the FormParent CreateParams property to
35708           set as POPUP instead of OVERLAPPED window.
35709
35710 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
35711
35712         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
35713         Minor code cleanup.
35714
35715 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
35716         
35717         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
35718
35719 2004-12-18  Peter Bartok  <pbartok@novell.com>
35720
35721         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
35722           implementing SetModal() method
35723
35724 2004-12-18  Peter Bartok  <pbartok@novell.com>
35725
35726         * X11Structs.cs (XGCValues): Fixed type of function element
35727         * XplatUI.cs: Added ScrollWindow() method
35728         * XplatUIDriver.cs: Added ScrollWindow() abstract
35729         * XplatUIWin32.cs: Implemented ScrollWindow() method
35730         * XplatUIX11.cs: Implemented ScrollWindow() method
35731         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
35732
35733 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35734
35735         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
35736         Some more keyboard support (INCOMPLETE)
35737
35738 2004-12-17  Peter Bartok  <pbartok@novell.com>
35739
35740         * TextControl.cs:
35741         - Added color attribute to line tags.
35742         - Added color argument to all functions dealing with tags
35743         - Added color argument support to various functions
35744         - Fixed miss-calculation of baseline/shift in certain circumstances
35745
35746         * TextBoxBase.cs: Added new color option to test code
35747
35748 2004-12-17  Jackson Harper  <jackson@ximian.com>
35749
35750         * TreeNode.cs:
35751         * MonthCalendar.cs: Signature fixes
35752
35753 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35754
35755         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
35756         keyboard event moved it.  Create a new graphics context for each paint resolves this
35757
35758 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35759
35760         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
35761         Make caret exist and go blink blink.  Initial keyboard support.
35762         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
35763         works.
35764
35765 2004-12-17  Jackson Harper  <jackson@ximian.com>
35766
35767         * XplatUIStructs.cs: Updated set of virtual keycodes.
35768         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
35769
35770 2004-12-17  Jackson Harper  <jackson@ximian.com>
35771
35772         * XplatUIX11.cs: Prune old keyboard code.
35773
35774 2004-12-17  Jackson Harper  <jackson@ximian.com>
35775
35776         * XplatUIX11.cs: When generating mouse wparams get the modifier
35777         keys from the ModifierKeys property.
35778
35779 2004-12-17  Jackson Harper  <jackson@ximian.com>
35780
35781         * X11Keyboard.cs: Send up/down input when generating
35782         messages. Remove some unused vars.
35783
35784 2004-12-17  Jackson Harper  <jackson@ximian.com>
35785
35786         * TabControl.cs:
35787         * TreeView.cs: get rid of warnings.
35788
35789 2004-12-17  Jackson Harper  <jackson@ximian.com>
35790
35791         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
35792
35793 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
35794
35795         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
35796           CheckedListBox.cs: Implementation
35797
35798 2004-12-17  Peter Bartok  <pbartok@novell.com>
35799
35800         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
35801
35802 2004-12-16  Peter Bartok  <pbartok@novell.com>
35803
35804         * TextControl.cs:
35805           - InsertCharAtCaret(): Fixed start pos fixup
35806           - CaretLine_get: No longer derives the line from the tag, the tag
35807             could be stale if lines in the document have been added or deleted
35808           - RebalanceAfterDelete(): Fixed bug in balancing code
35809           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
35810           - Line.Streamline(): Now can also elminate leading empty tags
35811           - DumpTree(): Added a few more tests and prevented exception on
35812             uninitialized data
35813           - Added Debug section for Combining lines
35814           - Delete(): Now copies all remaining properties of a line
35815           
35816         * TextBoxBase.cs:
35817           - Left mousebutton now sets the caret (and middle button still acts
35818             as formatting tester, which must go away soon)
35819           - Added Debug section for Deleting/Combining lines
35820           - Fixed calculations for UpdateView after Combining lines
35821
35822 2004-12-16  Peter Bartok  <pbartok@novell.com>
35823
35824         * TextControl.cs: Now properly aligns text on a baseline, using the
35825           new XplatUI.GetFontMetrics() method. Simplified several calculations
35826         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
35827           defined
35828
35829 2004-12-16  Peter Bartok  <pbartok@novell.com>
35830
35831         * XplatUI.cs: Added GetFontMetrics() method
35832         * XplatUIDriver.cs: Added GetFontMetrics() abstract
35833         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
35834           into libgdiplus, our private GetFontMetrics function
35835         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
35836         * XplatUIWin32.cs: Implemented GetFontMetrics() method
35837
35838 2004-12-16  Jackson Harper  <jackson@ximain.com>
35839
35840         * XplatUIStruct.cs: Add enum for dead keys
35841         * X11Keyboard.cs: Map and unmap dead keys.
35842
35843 2004-12-16  Jackson Harper  <jackson@ximian.com>
35844
35845         * X11Keyboard.cs: Detect and use the num lock mask.
35846
35847 2004-12-16  Peter Bartok  <pbartok@novell.com>
35848
35849         * Control.cs (CreateGraphics): Added check to make sure the
35850           handle of the window exists before calling Graphics.FromHwnd()
35851
35852 2004-12-16  Peter Bartok  <pbartok@novell.com>
35853
35854         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
35855           contains a lot of code that's not supposed to be there for the
35856           real thing, but required for developing/testing the textbox
35857           backend.
35858
35859 2004-12-16  Peter Bartok  <pbartok@novell.com>
35860
35861         * TextControl.cs:
35862         - Fixed Streamline method
35863         - Added FindTag method to Line
35864         - Added DumpTree method for debugging
35865         - Added DecrementLines() method for deleting lines
35866         - Fixed UpdateView to update the cursor to end-of-line on single-line
35867           updates
35868         - Added PositionCaret() method
35869         - Fixed MoveCaret(LineDown) to move into the last line, too
35870         - Added InsertChar overload
35871         - Fixed InsertChar tag offset calculations
35872         - Added DeleteChar() method
35873         - Added Combine() method for folding lines
35874         - Fixed Delete() method, no longer allocates wasted Line object and
35875           now copies all properties when swapping nodes
35876         - Delete() method now updates document line counter
35877
35878 2004-12-15  Jackson Harper  <jackson@ximian.com>
35879
35880         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
35881         * X11Keyboard.cs: Expose the currently selected modifier keys
35882         through a property.
35883
35884 2004-12-15  Peter Bartok  <pbartok@novell.com>
35885
35886         * TextControl.cs: Initial check-in. Still incomplete
35887
35888 2004-12-15  Jackson Harper  <jackson@ximian.com>
35889
35890         * TreeNode.cs:
35891         * TreeView.cs: Fix build on csc (second time today ;-))
35892
35893 2004-12-15  Jackson Harper  <jackson@ximian.com>
35894
35895         * TreeView.cs: Store the treenodes plus/minus box bounds when it
35896         is calculated and use this for click testing.
35897         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
35898
35899 2004-12-15  Jackson Harper  <jackson@ximian.com>
35900
35901         * TreeView.cs: Pass the nodes image index to the image list when
35902         drawing that image.
35903
35904 2004-12-15  Jackson Harper  <jackson@ximian.com>
35905
35906         * X11Keyboard.cs: Set messages hwnd.
35907         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
35908         post_message calls.
35909
35910 2004-12-15  Jackson Harper  <jackson@ximian.com>
35911
35912         * X11Keyboard.cs: Fix to compile with csc.
35913         
35914 2004-12-15  Jackson Harper  <jackson@ximian.com>
35915
35916         * X11Structs.cs: Add key mask values
35917         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
35918         * X11Keyboard.cs: New file - Extrapolates and interpolates key
35919         down/up foo into WM_CHAR foo
35920         * KeyboardLayouts.cs: Common keyboard layouts
35921         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
35922         post messages into the main queue.
35923
35924 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
35925
35926         * Button.cs: implement ProcessMnemonic
35927         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
35928           brushes everytime
35929         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
35930         * ButtonBase.cs: Show HotkeyPrefix (not the &)
35931
35932 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
35933         
35934         * MonthCalendar.cs: Implemented click-hold for next/previous month
35935           and date selection
35936           
35937 2004-12-11  Peter Bartok  <pbartok@novell.com>
35938
35939         * X11Structs.cs:
35940           - Added XKeyboardState (moved from XplatUIX11.cs)
35941           - Added XCreateGC related enums and structures
35942           - Added GXFunction for XSetFunction
35943
35944         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
35945
35946         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
35947           CaretVisible() calls
35948
35949         * ToolTip.cs: Added code to prevent stealing focus from app windows
35950
35951         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
35952           DestroyCaret, SetCaretPos and CaretVisible)
35953
35954         * XplatUIX11.cs:
35955           - Added implementation for caret functions
35956           - Moved hover variables into a struct, to make it a bit easier
35957             on the eyes and to debug
35958           - Removed XKeyboardState (moved to XplatUIX11.cs)
35959           - Moved Keyboard properties into the properties region
35960
35961         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
35962           call to get a graphics context for our control
35963
35964         * XplatUIOSX.cs: Added empty overrides for the new caret functions
35965
35966         * TreeView.cs: Fixed bug. No matter what color was set it would always
35967           return SystemColors.Window
35968
35969         * XplatUIWin32.cs: Implemented caret overrides
35970
35971 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
35972
35973         * ListBox.cs: fire events, implement missing methods and properties,
35974         sorting.
35975
35976 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
35977
35978         * MonthCalendar.cs: invalidation bug fixing
35979         * ThemeWin32Classic.cs: paint fixing
35980
35981 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
35982
35983         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
35984         prepare the CGContextRef there now.
35985
35986 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
35987
35988         * MonthCalendar.cs:
35989           - optimisationL only invalidate areas that have changed
35990         * ThemeWin32Classic.cs:
35991           - only paint parts that intersect with clip_area
35992
35993 2004-12-09  Peter Bartok  <pbartok@novell.com>
35994
35995         * Application.cs: Undid changes from r37004 which cause problems
35996         on X11
35997
35998 2004-12-09  Ravindra  <rkumar@novell.com>
35999
36000         * ToolBar.cs: Added support for displaying ContextMenu
36001         attached to a button on ToolBar.
36002         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36003         property.
36004
36005 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36006
36007         * Label.cs: autosize works in text change and removes unnecessary
36008         invalidate
36009
36010 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36011
36012         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36013         remove warnings
36014
36015 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
36016
36017         * XplatUIOSX.cs: Added mouse move/click/grab support
36018         Remove some debugging WriteLines not needed anymore.
36019         Add window resizing/positioning.
36020         Fix visibility on reparenting.
36021
36022 2004-12-08  Peter Bartok  <pbartok@novell.com>
36023
36024         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36025
36026 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
36027
36028         * XplatUIOSX.cs: Initial checkin
36029         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36030
36031 2004-12-03  Ravindra <rkumar@novell.com>
36032
36033         * ListView.cs: Added some keybindings and fixed scrolling.
36034         ScrollBars listen to ValueChanged event instead of Scroll
36035         Event. This would let us take care of all changes being
36036         done in the scrollbars' values programmatically or manually.
36037         * ListView.cs (CanMultiselect): Added a check for shift key.
36038         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36039         * ListViewItem.cs (Clone): Fixed. We need to make a copy
36040         of ListViewSubItemCollection as well.
36041
36042 2004-12-06  Peter Bartok <pbartok@novell.com>
36043
36044         * Control.cs (Parent): Added check and exception to prevent
36045         circular parenting
36046
36047 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
36048
36049         * ListBox.cs: implemented clipping, selection single and multiple,
36050         bug fixing
36051
36052 2004-12-03  Ravindra <rkumar@novell.com>
36053
36054         * ListView.cs (ListView_KeyDown):
36055         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36056         when CTRL key is pressed.
36057         * ListViewItem.cs (Selected): Fixed setting the property.
36058
36059 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36060
36061         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36062
36063         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36064         MinimizeBox, ShowInTaskbar, TopMost properties.
36065
36066         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36067         will be implemented).
36068
36069 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36070
36071         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36072
36073         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36074         tests.
36075         
36076         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36077         
36078         * TreeView.cs: BackColor is Colors.Window.
36079
36080 2004-12-01  Jackson Harper  <jackson@ximian.com>
36081
36082         * TreeView.cs: When resizing the tree if the user is making it
36083         smaller we don't get expose events, so we need to handle adding
36084         the horizontal scrollbar in the size changed handler as well as
36085         the expose handler.
36086
36087 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
36088
36089         * DrawItemState.cs: fixes wrong enum values
36090
36091 2004-12-01  Jackson Harper  <jackson@ximian.com>
36092
36093         * TreeView.cs: Resize the hbar as well as the vbar on resize.
36094
36095 2004-12-01  Jackson Harper  <jackson@ximian.com>
36096
36097         * NodeLabelEditEventArgs.cs:
36098         * NodeLabelEditEventHandler.cs:
36099         * OpenTreeNodeEnumerator.cs:
36100         * TreeNode.cs:
36101         * TreeNodeCollection.cs:
36102         * TreeView.cs:
36103         * TreeViewAction.cs:
36104         * TreeViewCancelEventArgs.cs:
36105         * TreeViewCancelEventHandler.cs:
36106         * TreeViewEventArgs.cs:
36107         * TreeViewEventHandler.cs: Initial implementation.
36108
36109 2004-12-01  Ravindra <rkumar@novell.com>
36110
36111         * ListView.cs (CalculateListView): Fixed scrolling related
36112         calculations. Also, removed some debug statements from other
36113         places.
36114         * ListViewItem.cs: Changed access to 'selected' instance variable
36115         from private to internal.
36116         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
36117
36118 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
36119
36120         * ThemeWin32Classic.cs: remove cache of brush and pens for
36121         specific controls and use the global system, fixes scrollbutton
36122         bugs (for small sizes, disabled, etc)
36123         
36124         * ScrollBar.cs: does not show the thumb for very small controls
36125         (as MS) and allow smaller buttons that the regular size
36126
36127 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
36128
36129         * UpDownBase.cs: Add abstract methods for the interface.
36130         Add new virtual methods (need to be hooked up to TextEntry when it
36131         exists).
36132         Add override methods for most features.
36133         Computes the size, forces the height of the text entry.
36134
36135         * NumericUpDown.cs: Put here the current testing code.
36136
36137         * Set eol-style property on all files that do not have mixed line
36138         endings, to minimize the future problems.  There are still a few
36139         files with mixed endings, and someone should choose whether they
36140         want to move it or not.
36141
36142 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
36143
36144         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
36145         System.Colors
36146         
36147 2004-11-30  Ravindra <rkumar@novell.com>
36148
36149         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
36150         drawing and replaced use of SystemColors by theme colors.
36151         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
36152         * ListView.cs (ListViewItemCollection.Add): Throw exception when
36153         same ListViewItem is being added more than once.
36154
36155 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
36156
36157         * MonthCalendar.cs:
36158           - ControlStyles love to make the control not flicker
36159           
36160 2004-11-30  Peter Bartok  <pbartok@novell.com>
36161
36162         * CharacterCasing.cs: Added
36163
36164 2004-11-29  Peter Bartok  <pbartok@novell.com>
36165
36166         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36167           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
36168           I am removing these files as they conflict with already completed
36169           work. While it is fantastic to get contributions to MWF, I
36170           respectfully ask that everyone please coordinate their contributions
36171           through mono-winforms-list or #mono-winforms at this time. We're
36172           explicitly avoiding stubbing and don't want controls that don't have
36173           their basic functionality implemented in svn. Please also see
36174           http://www.mono-project.com/contributing/winforms.html
36175
36176
36177 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
36178
36179         * Application.cs (ModalRun): Don't hang after exit.
36180
36181         * Theme.cs: New TreeViewDefaultSize property.
36182
36183         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
36184         with less hardcoded SystemColors constant.
36185         Implemented TreeViewDefaultSize.
36186
36187         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36188         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
36189
36190
36191 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
36192
36193         * MonthCalendar.cs:
36194           - Fix NextMonthDate and PrevMonthDate click moving calendar
36195
36196 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36197
36198         * MonthCalendar.cs:
36199           - Fix usage of ScrollChange Property when scrolling months
36200
36201 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
36202
36203         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
36204          - Fixes menu destroying
36205          - Support adding and removing items on already created menus
36206
36207 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36208
36209         * MonthCalendar.cs:
36210           - Re-worked all bolded dates handling to match win32
36211         * ThemeWin32Classic.cs:
36212           - Fixed rendering with bolded dates
36213
36214 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
36215
36216         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
36217         - Horizontal scroolbar
36218         - Multicolumn
36219         - Fixes
36220
36221
36222 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
36223
36224         * MonthCalendar.cs:
36225           - Fix Usage of MaxSelectionCount from SelectionRange
36226           - Fixed Shift + Cursor Selection
36227           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
36228           - Fixed normal cursor selection to be compat with win32
36229           - Fixed Shift + Mouse Click selection
36230
36231 2004-11-24  Peter Bartok <pbartok@novell.com>
36232
36233         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
36234         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
36235         * XplatUIX11.cs:
36236           - CreatedKeyBoardMsg now updates keystate with Alt key
36237           - Added workaround for timer crash to CheckTimers, Jackson will
36238             develop a proper fix and check in later
36239           - Implemented DispatchMessage
36240           - Removed calling the native window proc from GetMessage (call
36241             now moved to DispatchMessage)
36242
36243         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
36244           the keydata (Fixes bug #69831)
36245
36246         * XplatUIWin32.cs:
36247           - (DispatchMessage): Switched to return IntPtr
36248           - Added DllImport for SetFocus
36249
36250 2004-11-24  Ravindra <rkumar@novell.com>
36251
36252         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
36253         background drawing.
36254         * ListViewItem.cs: Fixed various properties, calculations
36255         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
36256         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
36257         and some internal properties. Fixed MouseDown handler and Paint
36258         method.
36259
36260 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36261
36262         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
36263
36264 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36265
36266         * ContainerControl.cs: correct accidental check in of local changes
36267
36268 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36269
36270         * ThemeWin32Classic.cs:
36271                 - Fixed Drawing Last month in grid (sometimes not showing)
36272         * MonthCalendar.cs:
36273                 - Fixed title width calculation bug (makeing title small)
36274
36275 2004-11-23  Peter Bartok <pbartok@novell.com>
36276
36277         * XplatUIX11.cs:
36278           - Added generation of WM_MOUSEHOVER event
36279           - Added missing assignment of async_method atom
36280           - Fixed WM_ERASEBKGND; now only redraws the exposed area
36281
36282 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
36283
36284         * ThemeWin32Classic.cs:
36285                 - Fixed Drawing of today circle when showtodaycircle not set
36286                 - fixed drawing of first and last month in the grid (gay dates)
36287         * MonthCalendar.cs:
36288                 - Fixed Drawing of today circle
36289                 - Fixed drawing of grady dates
36290                 - Fixed HitTest for today link when ShowToday set to false
36291                 - Fixed DefaultSize to obey ShowToday
36292
36293 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
36294
36295         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
36296         * System.Windows.Forms/Theme.cs
36297         * MonthCalendar.cs: added for MonthCalendar
36298         * SelectionRange.cs: added for MonthCalendar
36299         * Day.cs: added for MonthCalendar: added for MonthCalendar
36300         * DateRangeEventArgs.cs: added for MonthCalendar
36301         * DateRangeEventHandler.cs: added for MonthCalendar
36302
36303 2004-11-22  Ravindra <rkumar@novell.com>
36304
36305         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
36306         property.
36307
36308 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
36309
36310         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
36311         event handler.
36312         
36313         * NumericUpDown.cs: Added new implementation.
36314         * UpDownBase.cs: Added new implementation.
36315
36316         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
36317         implementations.
36318         
36319         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
36320         implementations.
36321
36322         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
36323         methods.
36324
36325 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
36326
36327         * Timer.cs  (Dispose): Should call the base dispose when
36328         overriding.
36329
36330 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
36331
36332         * ScrollBar.cs: updates thumb position when max, min or increment
36333         is changed
36334
36335 2004-11-21  Ravindra <rkumar@novell.com>
36336
36337         * ListView.cs: Implemented item selection, activation and
36338         column header style. Fixed properties to do a redraw, if
36339         required. Added support for MouseHover, DoubleClick, KeyDown
36340         and KeyUp event handling and some minor fixes.
36341         * ListViewItem.cs: Fixed constructor.
36342         * ThemeWin32Classic.cs: Improved drawing for ListView.
36343
36344 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
36345
36346         * ThemeWin32Classic.cs: initial listbox drawing code
36347         * DrawMode.cs: new enumerator
36348         * ListControl.cs: stubbed class
36349         * ListBox.cs: initial implementation
36350         * Theme.cs: new methods definitions
36351         * SelectionMode.cs: new enumerator
36352
36353 2004-11-17  Peter Bartok  <pbartok@novell.com>
36354
36355         * XplatUIWin32.cs: Added double-click events to the class style
36356         * Control.cs (WndProc):
36357           - Added handling of click-count to MouseDown/ MouseUp events.
36358           - Added handling of middle and right mouse buttons
36359           - Removed old debug code
36360
36361 2004-11-17  Jackson Harper  <jackson@ximian.com>
36362
36363         * XplatUIX11.cs: Use the new Mono.Unix namespace.
36364
36365 2004-11-17  Ravindra <rkumar@novell.com>
36366
36367         * ListView.cs: Added event handling for MouseMove/Up/Down.
36368         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
36369         * ThemeWin32Classic.cs: We need to clear the graphics context and
36370         draw column header in a proper state.
36371
36372
36373 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
36374
36375         *  Menu.cs: fixes signature
36376
36377 2004-11-16  Peter Bartok  <pbartok@novell.com>
36378
36379         * XplatUIX11.cs (GetMessage): Implemented generation of
36380           double click mouse messages
36381
36382 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
36383
36384         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
36385         not by menu
36386
36387 2004-11-11  Peter Bartok  <pbartok@novell.com>
36388
36389         * HandleData.cs: Added Visible property
36390         * XplatUIX11.cs (IsVisible): Now uses Visible property from
36391           HandleData
36392         * XplatUIX11.cs: Removed old debug leftovers
36393         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
36394         * Control.cs (WndProc): Removed old debug leftovers,
36395           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
36396           needed WM_SIZE handling
36397
36398 2004-11-11  Jackson Harper  <jackson@ximian.com>
36399
36400         * OwnerDrawPropertyBag.cs:
36401         * TreeViewImageIndexConverter.cs: Initial implementation
36402
36403 2004-11-10  Jackson Harper  <jackson@ximian.com>
36404
36405         * ThemeWin32Classic.cs:
36406         * TabControl.cs: instead of moving tabs by the slider pos just
36407         start drawing at the tab that is offset by the slider. This way
36408         scrolling always moves by exactly one tab.
36409
36410 2004-11-10  Jackson Harper  <jackson@ximian.com>
36411
36412         * TabControl.cs: You can only scroll left when the slider has
36413         already ben moved right.
36414         
36415 2004-11-10  Jackson Harper  <jackson@ximian.com>
36416
36417         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
36418         the clip area.
36419         
36420 2004-11-10  Jackson Harper  <jackson@ximian.com>
36421
36422         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
36423         clip area.
36424         
36425 2004-11-09  Jackson Harper  <jackson@ximian.com>
36426
36427         * TabControl.cs (CalcXPos): New helper method so we can determine
36428         the proper place to start drawing vertical tabs.
36429         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
36430         
36431 2004-11-09  Jackson Harper  <jackson@ximian.com>
36432
36433         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
36434         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
36435         and Bottom, left and right are illegal values for this and
36436         multiline is enabled when the alignment is set to left or right.
36437         (DrawTab): Each alignment block should draw the text itself now
36438         because Left requires special love. Also add rendering for Left
36439         aligned tabs.
36440         
36441 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
36442
36443         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
36444         does not destroy the windows, removes debugging messages
36445
36446 2004-11-09  jba  <jba-mono@optusnet.com.au>
36447
36448         * ThemeWin32Classic.cs
36449         (DrawButtonBase): Fix verticle text rect clipping in windows
36450         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36451         rendering and incorrect text rect clipping
36452         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36453         rendering and incorrect text rect clipping
36454         
36455 2004-11-08  Jackson Harper  <jackson@ximian.com>
36456
36457         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
36458         bottom when they are bottom aligned so the bottoms of the tabs get
36459         displayed.
36460         * TabControl.cs (DropRow): Move rows up instead of down when the
36461         tab control is bottom aligned.
36462
36463 2004-11-08 13:59  pbartok
36464
36465         * XplatUIX11.cs:
36466           - Added handling for various window styles
36467           - Added handling for popup windows
36468           - Added SetTopmost handling
36469
36470 2004-11-08 13:55  pbartok
36471
36472         * XplatUIWin32.cs:
36473           - Added argument to SetTopmost method
36474           - Fixed broken ClientToScreen function
36475
36476 2004-11-08 13:53  pbartok
36477
36478         * XplatUIStructs.cs:
36479           - Added missing WS_EX styles
36480
36481 2004-11-08 13:53  pbartok
36482
36483         * XplatUI.cs, XplatUIDriver.cs:
36484           - Added argument to SetTopmost
36485
36486 2004-11-08 13:52  pbartok
36487
36488         * X11Structs.cs:
36489           - Added XSetWindowAttributes structure
36490           - Improved XWindowAttributes structure
36491           - Added SetWindowValuemask enum
36492           - Added window creation arguments enum
36493           - Added gravity enum
36494           - Added Motif hints structure
36495           - Added various Motif flags and enums
36496           - Added PropertyMode enum for property functions
36497
36498 2004-11-08 13:50  pbartok
36499
36500         * Form.cs:
36501           - Fixed arguments for updated SetTopmost method
36502
36503 2004-11-08 13:49  pbartok
36504
36505         * ToolTip.cs:
36506           - Fixed arguments for updated SetTopmost function
36507           - Fixed usage of PointToClient
36508
36509 2004-11-08 13:44  pbartok
36510
36511         * MenuAPI.cs:
36512           - Added Clipping of children and siblings
36513
36514 2004-11-08 13:41  pbartok
36515
36516         * MainMenu.cs:
36517           - Removed SetMenuBarWindow call. We do this in Form.cs
36518
36519 2004-11-08 13:40  jackson
36520
36521         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
36522           scrolling jimmi in the correct location with bottom aligned tabs
36523
36524 2004-11-08 13:36  pbartok
36525
36526         * ContainerControl.cs:
36527           - Implemented BindingContext
36528           - Implemented ParentForm
36529
36530 2004-11-08 12:46  jackson
36531
36532         * TabControl.cs: Put bottom rendered tabs in the right location
36533
36534 2004-11-08 07:15  jordi
36535
36536         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
36537           removes dead code
36538
36539 2004-11-05 17:30  jackson
36540
36541         * TabControl.cs: When selected tabs are expanded make sure they
36542           don't go beyond the edges of the tab control
36543
36544 2004-11-05 14:57  jackson
36545
36546         * TabControl.cs: Reset show_slider so if the control is resized to
36547           a size where it is no longer needed it's not displayed anymore
36548
36549 2004-11-05 13:16  jackson
36550
36551         * TabControl.cs: Make tab pages non visible when added to the
36552           control
36553
36554 2004-11-05 12:42  jackson
36555
36556         * TabControl.cs: Implement SizeMode.FillToRight
36557
36558 2004-11-05 12:16  jackson
36559
36560         * Control.cs: Do not call CreateHandle if the handle is already
36561           created
36562
36563 2004-11-05 11:46  jackson
36564
36565         * TabControl.cs: Remove superflous call to CalcTabRows
36566
36567 2004-11-05 09:07  jackson
36568
36569         * XplatUIX11.cs: Update for Mono.Posix changes
36570
36571 2004-11-05 07:00  ravindra
36572
36573         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
36574           scrolling.
36575
36576 2004-11-04 22:47  jba
36577
36578         * ThemeWin32Classic.cs:
36579           - Fix Button rendering for FlatStyle = Flat or Popup
36580           - Fix RadioButton and CheckBox rendering when Appearance = Button
36581             (normal and flatstyle).
36582           - Correct outer rectangle color when drawing focus rectangle
36583           - Adjust button bounds to be 1 px smaller when focused
36584           - Make button not draw sunken 3d border when pushed (windows compat)
36585           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
36586           - Offset the text in RadioButton and Checkbox when being rendered as
36587           a button.
36588           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
36589           radiobuttons
36590           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
36591           - Fixed disabled text rendering for normally rendered radiobuttons
36592
36593 2004-11-04 10:26  jackson
36594
36595         * TabControl.cs: Recalculate tab rows when resizing
36596
36597 2004-11-04 07:47  jordi
36598
36599         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
36600           collection completion, drawing issues, missing features
36601
36602 2004-11-04 05:03  ravindra
36603
36604         * ScrollBar.cs:
36605                 - We need to recalculate the Thumb area when
36606                 LargeChange/maximum/minimum values are changed.
36607           - We set the 'pos' in UpdatePos() method to minimum, if it's less
36608                 than minimum. This is required to handle the case if large_change is
36609                 more than max, and use LargeChange property instead of large_change
36610                 variable.
36611           - We return max+1 when large_change is more than max, like MS does.
36612
36613 2004-11-04 04:29  ravindra
36614
36615         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
36616                 - Changed default value signatures (prefixed all with ListView).
36617                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
36618                 ListView.
36619           - Fixed calculations for ListViewItem and implemented Clone()
36620           method.
36621
36622 2004-11-04 04:26  ravindra
36623
36624         * Theme.cs, ThemeWin32Classic.cs:
36625                 - Changed default ListView values signatures (prefixed all with
36626                 ListView).
36627           - Fixed default size values for VScrollBar and HScrollBar.
36628                 - Fixed DrawListViewItem method.
36629
36630 2004-11-04 04:05  ravindra
36631
36632         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
36633
36634 2004-11-04 04:04  ravindra
36635
36636         * ImageList.cs: Implemented the missing overload for Draw method.
36637
36638 2004-11-03 19:29  jackson
36639
36640         * TabControl.cs: Handle dropping rows on selection properly
36641
36642 2004-11-03 11:59  jackson
36643
36644         * TabControl.cs: remove debug code
36645
36646 2004-11-03 11:52  jackson
36647
36648         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
36649           the scrolly widgerywoo
36650
36651 2004-11-02 13:52  jackson
36652
36653         * TabControl.cs: Resize the tab pages and tabs when the tab control
36654           is resized
36655
36656 2004-11-02 13:40  jackson
36657
36658         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
36659           selected tab to the bottom
36660
36661 2004-11-02 13:39  jackson
36662
36663         * TabPage.cs: Store the tab pages row
36664
36665 2004-11-02 12:33  jordi
36666
36667         * MenuItem.cs: fixes handle creation
36668
36669 2004-11-02 11:42  jackson
36670
36671         * TabControl.cs: signature fix
36672
36673 2004-11-02 08:56  jackson
36674
36675         * TabControl.cs: Calculate whether the tab is on an edge properly.
36676           Remove top secret debugging code
36677
36678 2004-11-01 19:57  jackson
36679
36680         * TabControl.cs: Add click handling, and proper sizing
36681
36682 2004-11-01 19:47  jackson
36683
36684         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
36685           tab controls
36686
36687 2004-11-01 19:39  jackson
36688
36689         * TabPage.cs: add internal property to store the bounds of a tab
36690           page
36691
36692 2004-10-30 04:23  ravindra
36693
36694         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
36695           values.
36696
36697 2004-10-30 04:21  ravindra
36698
36699         * ListView.cs, ListViewItem.cs: Added support for scrolling and
36700           fixed calculations.
36701
36702 2004-10-30 03:06  pbartok
36703
36704         * XplatUIX11.cs:
36705           - Removed extension of DllImported libs
36706
36707 2004-10-29 09:55  jordi
36708
36709         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
36710           navigation, itemcollection completion, menu fixes
36711
36712 2004-10-27 22:58  pbartok
36713
36714         * XplatUIX11.cs:
36715           - Now throws a nice error message when no X display could be opened
36716
36717 2004-10-26 13:51  jordi
36718
36719         * ListView.cs: removes warning
36720
36721 2004-10-26 03:55  ravindra
36722
36723         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
36724           ThemeWin32Classic.cs: Some formatting for my last checkins.
36725
36726 2004-10-26 03:36  ravindra
36727
36728         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
36729           control and default values.
36730
36731 2004-10-26 03:35  ravindra
36732
36733         * Theme.cs: Added some default values for ListView control.
36734
36735 2004-10-26 03:33  ravindra
36736
36737         * ToolBar.cs: ToolBar should use the user specified button size, if
36738           there is any. Added a size_specified flag for the same.
36739
36740 2004-10-26 03:33  ravindra
36741
36742         * ColumnHeader.cs: Added some internal members and calculations for
36743           ColumnHeader.
36744
36745 2004-10-26 03:32  ravindra
36746
36747         * ListViewItem.cs: Calculations for ListViewItem.
36748
36749 2004-10-26 03:31  ravindra
36750
36751         * ListView.cs: Added some internal members and calculations for
36752           ListView.
36753
36754 2004-10-22 13:31  jordi
36755
36756         * MenuAPI.cs: speedup menus drawing
36757
36758 2004-10-22 13:16  jackson
36759
36760         * XplatUIX11.cs: Make sure to update exposed regions when adding an
36761           expose event
36762
36763 2004-10-22 11:49  jackson
36764
36765         * Control.cs: oops
36766
36767 2004-10-22 11:41  jackson
36768
36769         * Control.cs: Check to see if the window should have its background
36770           repainted by X when drawing.
36771
36772 2004-10-22 11:31  jackson
36773
36774         * XplatUIX11.cs: When invalidating areas only use XClearArea if
36775           clear is true, this way we do not get flicker from X repainting the
36776           background
36777
36778 2004-10-22 11:28  jackson
36779
36780         * XEventQueue.cs: Queue properly
36781
36782 2004-10-21 09:38  jackson
36783
36784         * XEventQueue.cs: Fix access modifier
36785
36786 2004-10-21 09:36  jackson
36787
36788         * XEventQueue.cs: Don't loose messages
36789
36790 2004-10-21 09:22  jackson
36791
36792         * XEventQueue.cs: Don't loose messages
36793
36794 2004-10-20 04:15  jordi
36795
36796         * BootMode.cs: enum need it by SystemInfo
36797
36798 2004-10-19 21:58  pbartok
36799
36800         * XplatUIWin32.cs:
36801           - Small sanity check
36802
36803 2004-10-19 21:56  pbartok
36804
36805         * Form.cs:
36806           - Added private FormParentWindow class which acts as the container
36807             for our form and as the non-client area where menus are drawn
36808           - Added/Moved required tie-ins to Jordi's menus
36809           - Fixed/Implemented the FormStartPosition functionality
36810
36811 2004-10-19 21:52  pbartok
36812
36813         * Control.cs:
36814           - Removed unneeded locals
36815           - Added code to all size and location properties to understand and
36816             deal with the parent container of Form
36817
36818 2004-10-19 21:33  pbartok
36819
36820         * Application.cs:
36821           - Fixed to deal with new Form subclasses for menus
36822
36823 2004-10-19 17:48  jackson
36824
36825         * XEventQueue.cs: commit correct version of file
36826
36827 2004-10-19 16:50  jackson
36828
36829         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
36830
36831 2004-10-19 16:15  jordi
36832
36833         * MenuAPI.cs: MenuBarCalcSize returns the height
36834
36835 2004-10-19 08:31  pbartok
36836
36837         * Control.cs:
36838           - Added missing call to PreProcessMessage before calling OnXXXKey
36839           methods
36840
36841 2004-10-19 00:04  ravindra
36842
36843         * ToolTip.cs: Fixed constructor.
36844
36845 2004-10-18 09:31  jordi
36846
36847         * MenuAPI.cs: menuitems in menubars do not have shortcuts
36848
36849 2004-10-18 09:26  jordi
36850
36851         * MenuItem.cs: fixes MenuItem class signature
36852
36853 2004-10-18 08:56  jordi
36854
36855         * MenuAPI.cs: prevents windows from showing in the taskbar
36856
36857 2004-10-18 00:28  ravindra
36858
36859         * ToolTip.cs: Suppressed a warning message.
36860
36861 2004-10-18 00:27  ravindra
36862
36863         * Control.cs: Default value of visible property must be true.
36864
36865 2004-10-17 23:19  pbartok
36866
36867         * ToolTip.cs:
36868           - Complete implementation
36869
36870 2004-10-17 23:19  pbartok
36871
36872         * XplatUIX11.cs:
36873           - Added EnableWindow method
36874           - Added SetModal stub
36875           - Added generation of WM_ACTIVATE message (still needs testing)
36876           - Added SetTopMost stub
36877           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
36878
36879 2004-10-17 23:17  pbartok
36880
36881         * XplatUIWin32.cs:
36882           - Removed VirtualKeys to XplatUIStructs
36883           - Implemented SetTopMost method
36884           - Implemented EnableWindow method
36885           - Bugfix in ScreenToClient()
36886           - Bugfixes in ClientToScreen()
36887
36888 2004-10-17 22:51  pbartok
36889
36890         * XplatUIStructs.cs:
36891           - Added WS_EX styles to WindowStyles enumeration
36892
36893 2004-10-17 22:50  pbartok
36894
36895         * XplatUI.cs, XplatUIDriver.cs:
36896           - Added method for enabling/disabling windows
36897           - Added method for setting window modality
36898           - Added method for setting topmost window
36899
36900 2004-10-17 22:49  pbartok
36901
36902         * ThemeWin32Classic.cs:
36903           - Added ToolTip drawing code
36904
36905 2004-10-17 22:49  pbartok
36906
36907         * Theme.cs:
36908           - Added ToolTip abstracts
36909
36910 2004-10-17 22:47  pbartok
36911
36912         * Form.cs:
36913           - Fixed Form.ControlCollection to handle owner relations
36914           - Added Owner/OwnedForms handling
36915           - Implemented Z-Ordering for owned forms
36916           - Removed unneeded private overload of ShowDialog
36917           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
36918             so I hope)
36919           - Fixed Close(), had wrong default
36920           - Added firing of OnLoad event
36921           - Added some commented out debug code for Ownership handling
36922
36923 2004-10-17 22:16  pbartok
36924
36925         * Control.cs:
36926           - Fixed/implemented flat list of controls
36927
36928 2004-10-17 22:14  pbartok
36929
36930         * Application.cs:
36931           - Added code to simulate modal dialogs on Win32
36932
36933 2004-10-17 16:11  jordi
36934
36935         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
36936           mouse event
36937
36938 2004-10-17 13:39  jordi
36939
36940         * MenuAPI.cs: menu drawing fixes
36941
36942 2004-10-15 09:10  ravindra
36943
36944         * StructFormat.cs: General Enum.
36945
36946 2004-10-15 09:09  ravindra
36947
36948         * SizeGripStyle.cs: Enum for Form.
36949
36950 2004-10-15 09:08  ravindra
36951
36952         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
36953           in Theme for ListView.
36954
36955 2004-10-15 09:06  ravindra
36956
36957         * ColumnHeader.cs: Flushing some formatting changes.
36958
36959 2004-10-15 09:05  ravindra
36960
36961         * ListViewItem.cs: Implemented GetBounds method and fixed coding
36962           style.
36963
36964 2004-10-15 09:03  ravindra
36965
36966         * ListView.cs: Implemented Paint method and fixed coding style.
36967
36968 2004-10-15 07:34  jordi
36969
36970         * MenuAPI.cs: fix for X11
36971
36972 2004-10-15 07:32  ravindra
36973
36974         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
36975                 - Renamed Paint() method to Draw() for clarity. Also, moved
36976                 DrawImage() to OnPaint().
36977
36978 2004-10-15 07:25  ravindra
36979
36980         * CheckBox.cs, RadioButton.cs:
36981                 - Removed Redraw (), we get it from ButtonBase.
36982                 - Implemented Paint (), to do class specific painting.
36983
36984 2004-10-15 07:16  ravindra
36985
36986         * ButtonBase.cs:
36987                 - Redraw () is not virtual now.
36988                 - Added an internal virtual method Paint (), so that
36989                 derived classes can do their painting on their own.
36990                 - Modified OnPaint () to call Paint ().
36991
36992 2004-10-15 06:43  jordi
36993
36994         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
36995           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
36996
36997 2004-10-15 00:30  ravindra
36998
36999         * MessageBox.cs:
37000                 - MessageBox on windows does not have min/max buttons.
37001                 This change in CreateParams fixes this on Windows. We
37002                 still need to implement this windowstyle behavior in
37003                 our X11 driver.
37004
37005 2004-10-14 05:14  ravindra
37006
37007         * ToolBar.cs:
37008                 - Changed Redraw () to do a Refresh () always.
37009                 - Fixed the MouseMove event handling when mouse is pressed,
37010                 ie drag event handling.
37011                 - Replaced the usage of ToolBarButton.Pressed property to
37012                 ToolBarButton.pressed internal variable.
37013
37014 2004-10-14 05:10  ravindra
37015
37016         * ToolBarButton.cs:
37017                 - Added an internal member 'inside' to handle mouse move
37018                 with mouse pressed ie mouse drag event.
37019                 - Changed 'Pressed' property to return true only when
37020                 'inside' and 'pressed' are both true.
37021                 - Some coding style love.
37022
37023 2004-10-14 00:17  ravindra
37024
37025         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37026           public method.
37027
37028 2004-10-14 00:15  ravindra
37029
37030         * ButtonBase.cs: Redraw () related improvements.
37031
37032 2004-10-14 00:14  ravindra
37033
37034         * MessageBox.cs: Moved InitFormSize () out of Paint method and
37035           removed unnecessary calls to Button.Show () method.
37036
37037 2004-10-13 17:50  pbartok
37038
37039         * XplatUIX11.cs:
37040           - Formatting fix
37041           - Removed destroying of window until we solve the problem of X
37042             destroying the window before us on shutdown
37043
37044 2004-10-13 16:32  pbartok
37045
37046         * ButtonBase.cs:
37047           - Now Redraws on MouseUp for FlatStyle Flat and Popup
37048
37049 2004-10-13 14:18  pbartok
37050
37051         * XplatUIX11.cs:
37052           - Added code to destroy the X window
37053
37054 2004-10-13 14:18  pbartok
37055
37056         * XplatUIWin32.cs:
37057           - Added code to destroy a window
37058
37059 2004-10-13 14:12  pbartok
37060
37061         * ButtonBase.cs:
37062           - Added the Redraw on Resize that got dropped in the last rev
37063
37064 2004-10-13 09:06  pbartok
37065
37066         * ThemeWin32Classic.cs:
37067           - Path from John BouAntoun:
37068             * Fix check rendering (centre correctly for normal style, offset
37069               correctly for FlatStyle).
37070             * Fix border color usage (use backcolor) for FlatStyle.Popup
37071             * Use checkbox.Capture instead of checkbox.is_pressed when
37072               rendering flatstyle states.
37073
37074 2004-10-12 21:48  pbartok
37075
37076         * ThemeWin32Classic.cs:
37077           - Removed all occurences of SystemColors and replaced them with the
37078             matching theme color
37079
37080 2004-10-12 21:41  pbartok
37081
37082         * ThemeWin32Classic.cs:
37083           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37084             him using the function for flatstyle drawing
37085           - Changed functions to use the new version of CPDrawBorder3D
37086
37087 2004-10-12 21:15  pbartok
37088
37089         * ControlPaint.cs:
37090           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37091             match MS documentation. They need to return defined colors if the
37092             passed color matches the configured control color. Thanks to John
37093             BouAntoun for pointing this out.
37094
37095 2004-10-12 20:57  pbartok
37096
37097         * Control.cs:
37098           - Fix from John BouAntoun: Raise ForeColorChanged event when text
37099             color is changed
37100
37101 2004-10-12 20:46  pbartok
37102
37103         * CheckBox.cs:
37104           - Fix from John BouAntoun: Now properly sets the Appearance property
37105
37106 2004-10-12 20:45  pbartok
37107
37108         * ThemeWin32Classic.cs:
37109           - Fixes from John BouAntoun: now handles forecolors and backcolors
37110             for flatstyle rendered controls much better; It also fixes normal
37111             checkbox rendering when pushed or disabled.
37112
37113 2004-10-08 02:50  jordi
37114
37115         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
37116           work
37117
37118 2004-10-07 08:56  jordi
37119
37120         * ThemeWin32Classic.cs: Removes deletion of cached brushes
37121
37122 2004-10-06 03:59  jordi
37123
37124         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
37125           XplatUIWin32.cs: removes warnings from compilation
37126
37127 2004-10-05 12:23  jackson
37128
37129         * RadioButton.cs: Fix ctor
37130
37131 2004-10-05 11:10  pbartok
37132
37133         * MessageBox.cs:
37134           - Partial implementation by Benjamin Dasnois
37135
37136 2004-10-05 10:15  jackson
37137
37138         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
37139           by John BouAntoun
37140
37141 2004-10-05 03:07  ravindra
37142
37143         * ToolBar.cs:
37144                 - Removed a private method, Draw ().
37145                 - Fixed the ButtonDropDown event handling.
37146                 - Fixed MouseMove event handling.
37147
37148 2004-10-05 03:04  ravindra
37149
37150         * ThemeWin32Classic.cs:
37151                 - Added DrawListView method and ListViewDefaultSize property.
37152                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
37153                 - Changed DOS style CRLF to Unix format (dos2unix).
37154
37155 2004-10-05 03:03  ravindra
37156
37157         * Theme.cs:
37158                 - Added DrawListView method and ListViewDefaultSize property.
37159
37160 2004-10-05 02:42  ravindra
37161
37162         * ToolBarButton.cs: Added an internal member dd_pressed to handle
37163           clicks on DropDown arrow.
37164
37165 2004-10-04 22:56  jackson
37166
37167         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
37168           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
37169           Control handle the buffers, derived classes should not have to
37170           CreateBuffers themselves.
37171
37172 2004-10-04 21:20  jackson
37173
37174         * StatusBar.cs: The control handles resizing the buffers now.
37175
37176 2004-10-04 21:18  jackson
37177
37178         * Control.cs: When resizing the buffers should be invalidated. This
37179           should be handled in Control not in derived classes.
37180
37181 2004-10-04 14:45  jackson
37182
37183         * TabPage.cs: oops
37184
37185 2004-10-04 02:14  pbartok
37186
37187         * LeftRightAlignment.cs:
37188           - Initial check-in
37189
37190 2004-10-04 01:09  jordi
37191
37192         * ThemeWin32Classic.cs: fixes right button position causing right
37193           button not showing on horizontal scrollbars
37194
37195 2004-10-02 13:12  pbartok
37196
37197         * XplatUIX11.cs:
37198           - Simplified the Invalidate method by using an X call instead of
37199             generating the expose ourselves
37200           - Added an expose when the window background is changed
37201           - Implemented ClientToScreen method
37202
37203 2004-10-02 13:08  pbartok
37204
37205         * XplatUIWin32.cs:
37206           - Added Win32EnableWindow method (test for implementing modal
37207           dialogs)
37208           - Added ClientToScreen method and imports
37209
37210 2004-10-02 13:07  pbartok
37211
37212         * XplatUI.cs, XplatUIDriver.cs:
37213           - Added ClientToScreen coordinate translation method
37214
37215 2004-10-02 13:06  pbartok
37216
37217         * KeyPressEventArgs.cs:
37218           - Fixed access level for constructor
37219
37220 2004-10-02 13:06  pbartok
37221
37222         * NativeWindow.cs:
37223           - Changed access level for the window_collection hash table
37224
37225 2004-10-02 13:05  pbartok
37226
37227         * Form.cs:
37228           - Added KeyPreview property
37229           - Added Menu property (still incomplete, pending Jordi's menu work)
37230           - Implemented ProcessCmdKey
37231           - Implemented ProcessDialogKey
37232           - Implemented ProcessKeyPreview
37233
37234 2004-10-02 13:02  pbartok
37235
37236         * Control.cs:
37237           - Added private method to get the Control object from the window
37238           handle
37239           - Implemented ContextMenu property
37240           - Implemented PointToScreen
37241           - Implemented PreProcessMessage
37242           - Implemented IsInputChar
37243           - Implemented IsInputKey
37244           - Implemented ProcessCmdKey
37245           - Completed ProcessKeyEventArgs
37246           - Fixed message loop to call the proper chain of functions on key
37247           events
37248           - Implemented ProcessDialogChar
37249           - Implemented ProcessDialogKey
37250           - Implemented ProcessKeyMessage
37251           - Implemented ProcessKeyPreview
37252           - Added RaiseDragEvent stub (MS internal method)
37253           - Added RaiseKeyEvent stub (MS internal method)
37254           - Added RaiseMouseEvent stub (MS Internal method)
37255           - Added RaisePaintEvent stub (MS Internal method)
37256           - Added ResetMouseEventArgs stub (MS Internal method)
37257           - Implemented RtlTranslateAlignment
37258           - Implemented RtlTranslateContent
37259           - Implemented RtlTranslateHorizontal
37260           - Implemented RtlTranslateLeftRight
37261           - Added generation of KeyPress event
37262
37263 2004-10-02 05:57  ravindra
37264
37265         * ListViewItem.cs: Added attributes.
37266
37267 2004-10-02 05:32  ravindra
37268
37269         * ListView.cs: Added attributes.
37270
37271 2004-10-01 11:53  jackson
37272
37273         * Form.cs: Implement the Close method so work on MessageBox can
37274           continue.
37275
37276 2004-09-30 14:06  pbartok
37277
37278         * XplatUIX11.cs:
37279           - Bug fixes
37280
37281 2004-09-30 11:34  jackson
37282
37283         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
37284
37285 2004-09-30 07:26  ravindra
37286
37287         * ListViewItemConverter.cs: Converter for ListViewItem.
37288
37289 2004-09-30 07:26  ravindra
37290
37291         * SortOrder.cs: Enum for ListView control.
37292
37293 2004-09-30 07:25  ravindra
37294
37295         * ColumnHeader.cs: Supporting class for ListView control.
37296
37297 2004-09-30 07:24  ravindra
37298
37299         * ListView.cs, ListViewItem.cs: Initial implementation.
37300
37301 2004-09-30 07:20  ravindra
37302
37303         * ItemActivation.cs: Enum for ListView Control.
37304
37305 2004-09-29 20:29  pbartok
37306
37307         * XplatUIX11.cs:
37308           - Added lookup of pixel value for background color; tries to get a
37309             color 'close' to the requested color, it avoids having to create a
37310             colormap.  Depending on the display this could mean the used color
37311             is slightly off the desired color. Might have to change it to a more
37312             resource intensive colormap approach, but it will work as a
37313           workaround to avoid red screens.
37314
37315 2004-09-29 14:27  jackson
37316
37317         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
37318
37319 2004-09-28 12:44  pbartok
37320
37321         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
37322           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
37323           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
37324           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
37325           TrackBar.cs, VScrollBar.cs:
37326           - Streamlined Theme interfaces:
37327             * Each DrawXXX method for a control now is passed the object for
37328               the control to be drawn in order to allow accessing any state the
37329               theme might require
37330
37331             * ControlPaint methods for the theme now have a CP prefix to avoid
37332               name clashes with the Draw methods for controls
37333
37334             * Every control now retrieves it's DefaultSize from the current
37335             theme
37336
37337 2004-09-28 12:17  jackson
37338
37339         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
37340           drawing
37341
37342 2004-09-24 14:57  jackson
37343
37344         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
37345           Gives us a nice little performance boost.
37346
37347 2004-09-24 12:02  jackson
37348
37349         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
37350           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
37351           Control and supporting classes. Initial checkin
37352
37353 2004-09-23 13:08  jackson
37354
37355         * Form.cs: Temp build fixage
37356
37357 2004-09-23 01:39  ravindra
37358
37359         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
37360           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
37361           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
37362           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
37363           EventHandlers needed by ListView Control.
37364
37365 2004-09-22 14:12  pbartok
37366
37367         * ScrollableControl.cs:
37368           - Implemented DockPadding property
37369           - Implemented AutoScroll property
37370           - Implemented AutoScrollMargin property
37371           - Implemented AutoScrollMinSize property
37372           - Implemented AutoScrollPosition property
37373           - Implemented DisplayRectangle property (still incomplete)
37374           - Implemented CreateParams property
37375           - Implemented HScroll property
37376           - Implemented VScroll property
37377           - Implemented OnVisibleChanged property
37378
37379 2004-09-22 14:09  pbartok
37380
37381         * Form.cs:
37382           - Added Form.ControllCollection class
37383           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
37384             RemoveOwnedForm (still incomplete, missing on-top and common
37385             minimize/maximize behaviour)
37386           - Added StartPosition property (still incomplete, does not use when
37387             creating the form)
37388           - Added ShowDialog() methods (still incomplete, missing forcing the
37389             dialog modal)
37390
37391 2004-09-22 14:05  pbartok
37392
37393         * Application.cs:
37394           - Added message loop for modal dialogs
37395
37396 2004-09-22 14:02  pbartok
37397
37398         * GroupBox.cs:
37399           - Fixed wrong types for events
37400
37401 2004-09-22 14:00  pbartok
37402
37403         * Shortcut.cs, FormWindowState.cs:
37404           - Fixed wrong values
37405
37406 2004-09-22 12:01  jackson
37407
37408         * Control.cs: Text is never null
37409
37410 2004-09-20 22:14  pbartok
37411
37412         * XplatUIWin32.cs:
37413           - Fixed accessibility level for Idle handler
37414
37415 2004-09-20 18:54  jackson
37416
37417         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37418           XplatUIX11.cs: New message loop that uses poll so we don't get a
37419           busy loop
37420
37421 2004-09-17 10:43  pbartok
37422
37423         * ScrollBar.cs:
37424           - Fixed behaviour of arrow buttons. Now properly behaves like
37425             Buttons (and like Microsoft's scrollbar arrow buttons)
37426
37427 2004-09-17 10:14  pbartok
37428
37429         * ScrollBar.cs:
37430           - Added missing release of keyboard/mouse capture
37431
37432 2004-09-17 06:18  jordi
37433
37434         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
37435           Theme.cs: Very early menu support
37436
37437 2004-09-16 17:45  pbartok
37438
37439         * XplatUIWin32.cs:
37440           - Fixed sending a window to the front
37441           - Added overload for SetWindowPos to avoid casting
37442
37443 2004-09-16 17:44  pbartok
37444
37445         * Control.cs:
37446           - Added SendToBack and BringToFront methods
37447
37448 2004-09-16 07:00  ravindra
37449
37450         * Copyright: Added Novell URL.
37451
37452 2004-09-16 07:00  ravindra
37453
37454         * ToolBar.cs: Invalidate should be done before redrawing.
37455
37456 2004-09-15 21:19  ravindra
37457
37458         * ColumnHeaderStyle.cs: Enum for ListView Control.
37459
37460 2004-09-15 21:18  ravindra
37461
37462         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
37463           ListView Control.
37464
37465 2004-09-13 18:26  jackson
37466
37467         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
37468           properly
37469
37470 2004-09-13 18:13  jackson
37471
37472         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
37473           a second thread and post messages into the main threads message
37474           queue. This makes timing much more consistent. Both win2K and XP
37475           have a minimum timer value of 15 milliseconds, so we now do this
37476           too.
37477
37478 2004-09-13 15:18  pbartok
37479
37480         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37481           XplatUIX11.cs:
37482           - Added Z-Ordering methods
37483
37484 2004-09-13 10:56  pbartok
37485
37486         * Form.cs:
37487           - Fixed #region names
37488           - Moved properties and methods into their proper #regions
37489
37490 2004-09-13 10:51  pbartok
37491
37492         * Form.cs:
37493           - Added Accept and CancelButton properties
37494           - Added ProcessDialogKey() method
37495
37496 2004-09-13 08:18  pbartok
37497
37498         * IWindowTarget.cs:
37499           - Initial check-in
37500
37501 2004-09-10 21:50  pbartok
37502
37503         * Control.cs:
37504           - Added DoDragDrop() [incomplete]
37505           - Properly implemented 'Visible' handling
37506           - Added SetVisibleCore()
37507           - Implemented FindChildAtPoint()
37508           - Implemented GetContainerControl()
37509           - Implemented Hide()
37510
37511 2004-09-10 19:28  pbartok
37512
37513         * Control.cs:
37514           - Moved methods into their appropriate #regions
37515           - Reordered methods within regions alphabetically
37516
37517 2004-09-10 18:57  pbartok
37518
37519         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37520           - Added method to retrieve text from window
37521
37522 2004-09-10 18:56  pbartok
37523
37524         * Control.cs:
37525           - Moved some internal functions into the internal region
37526           - Implemented FontHeight
37527           - Implemented RenderRightToLeft
37528           - Implemented ResizeRedraw
37529           - Implemented ShowFocusCues
37530           - Implemented ShowKeyboardCues
37531           - Implemented FromChildHandle
37532           - Implemented FromHandle
37533           - Implemented IsMnemonic
37534           - Implemented ReflectMessage
37535           - All public and protected Static Methods are now complete
37536
37537 2004-09-10 16:54  pbartok
37538
37539         * Control.cs:
37540           - Implemented remaining missing public instance properties
37541           - Alphabetized some out of order properties
37542
37543 2004-09-10 05:51  ravindra
37544
37545         * PictureBox.cs: Added a check for null image.
37546
37547 2004-09-10 00:59  jordi
37548
37549         * GroupBox.cs: remove cvs tag
37550
37551 2004-09-09 05:25  ravindra
37552
37553         * ToolBar.cs: Make redraw accessible from ToolBarButton.
37554
37555 2004-09-09 05:23  ravindra
37556
37557         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
37558           parent redraw.
37559
37560 2004-09-09 02:28  pbartok
37561
37562         * ThemeWin32Classic.cs:
37563           - Improve disabled string look
37564
37565 2004-09-09 01:15  jordi
37566
37567         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
37568           args and handler
37569
37570 2004-09-08 23:56  ravindra
37571
37572         * ItemBoundsPortion.cs: It's enum, not a class!
37573
37574 2004-09-08 23:47  ravindra
37575
37576         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
37577           Enums for Form.
37578
37579 2004-09-08 21:13  ravindra
37580
37581         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
37582           ListView control.
37583
37584 2004-09-08 21:03  ravindra
37585
37586         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
37587           avoid crash.
37588
37589 2004-09-08 21:01  ravindra
37590
37591         * ScrollableControl.cs: Removed unreachable code.
37592
37593 2004-09-08 06:45  jordi
37594
37595         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
37596
37597 2004-09-08 01:00  jackson
37598
37599         * XplatUIX11.cs: Only run the timers when updating the message
37600           queue. This effectively gives X messages a higher priority then
37601           timer messages. Timers still need love though
37602
37603 2004-09-07 14:01  jackson
37604
37605         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
37606           this for us and the handle is no longer valid.
37607
37608 2004-09-07 13:59  jackson
37609
37610         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
37611           loop that manages to not crash. TODO: Add poll and cleanup timers
37612
37613 2004-09-07 11:12  jordi
37614
37615         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
37616
37617 2004-09-07 03:40  jordi
37618
37619         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
37620           fixes, methods, multiple links
37621
37622 2004-09-06 06:55  jordi
37623
37624         * Control.cs: Caches ClientRectangle rectangle value
37625
37626 2004-09-05 02:03  jordi
37627
37628         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
37629           certain situations
37630
37631 2004-09-04 11:10  jordi
37632
37633         * Label.cs: Refresh when font changed
37634
37635 2004-09-02 16:24  pbartok
37636
37637         * Control.cs:
37638           - Added sanity check to creation of double buffer bitmap
37639
37640 2004-09-02 16:24  pbartok
37641
37642         * ButtonBase.cs:
37643           - Fixed selection of text color
37644           - Fixed handling of resize event; now properly recreates double
37645             buffering bitmap
37646           - Added missing assignment of TextAlignment
37647           - Added proper default for TextAlignment
37648
37649 2004-09-02 14:26  pbartok
37650
37651         * RadioButton.cs:
37652           - Added missing RadioButton.RadioButtonAccessibleObject class
37653
37654 2004-09-02 14:26  pbartok
37655
37656         * Control.cs:
37657           - Added missing Control.ControlAccessibleObject class
37658           - Started to implement Select()ion mechanisms, still very incomplete
37659
37660 2004-09-02 14:25  pbartok
37661
37662         * AccessibleObject.cs:
37663           - Added missing methods
37664
37665 2004-09-02 14:23  pbartok
37666
37667         * AccessibleNavigation.cs, AccessibleSelection.cs:
37668           - Initial check-in
37669
37670 2004-09-02 10:32  jordi
37671
37672         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
37673           pool for pens, brushes, and hatchbruses
37674
37675 2004-09-01 15:30  jackson
37676
37677         * StatusBar.cs: Fix typo
37678
37679 2004-09-01 14:44  pbartok
37680
37681         * RadioButton.cs:
37682           - Fixed state
37683
37684 2004-09-01 14:39  pbartok
37685
37686         * Button.cs, RadioButton.cs:
37687           - Functional initial check-in
37688
37689 2004-09-01 14:01  pbartok
37690
37691         * CheckBox.cs:
37692           - Added missing default
37693           - Added missing region mark
37694
37695 2004-09-01 09:10  jordi
37696
37697         * Label.cs: fixes method signatures, new methods, events, fixes
37698           autosize
37699
37700 2004-09-01 07:19  jordi
37701
37702         * Control.cs: Init string variables with an empty object
37703
37704 2004-09-01 04:20  jordi
37705
37706         * Control.cs: fires OnFontChanged event
37707
37708 2004-08-31 20:07  pbartok
37709
37710         * ButtonBase.cs:
37711           - Enabled display of strings
37712
37713 2004-08-31 20:05  pbartok
37714
37715         * Form.cs:
37716           - Added (partial) implementation of DialogResult; rest needs to be
37717             implemented when the modal loop code is done
37718
37719 2004-08-31 19:55  pbartok
37720
37721         * CheckBox.cs:
37722           - Fixed to match the removal of the needs_redraw concept
37723
37724 2004-08-31 19:55  pbartok
37725
37726         * ButtonBase.cs:
37727           - Removed the rather odd split between 'needs redraw' and redrawing
37728           - Now handles the events that require regeneration (ambient
37729             properties and size)
37730
37731 2004-08-31 19:41  pbartok
37732
37733         * Control.cs:
37734           - Added firing of BackColorChanged event
37735           - Added TopLevelControl property
37736           - Fixed handling of WM_ERASEBKGRND message
37737
37738 2004-08-31 12:49  pbartok
37739
37740         * ButtonBase.cs:
37741           - Removed debug
37742           - Minor fixes
37743
37744 2004-08-31 12:48  pbartok
37745
37746         * CheckBox.cs:
37747           - Finished (famous last words)
37748
37749 2004-08-31 04:35  jordi
37750
37751         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
37752           scrolling bugs, adds new methods
37753
37754 2004-08-30 14:42  pbartok
37755
37756         * CheckBox.cs:
37757           - Implemented CheckBox drawing code
37758
37759 2004-08-30 14:42  pbartok
37760
37761         * ButtonBase.cs:
37762           - Made Redraw() and CheckRedraw() virtual
37763           - Improved mouse up/down/move logic to properly track buttons
37764
37765 2004-08-30 09:44  pbartok
37766
37767         * CheckBox.cs:
37768           - Updated to fix broken build. Not complete yet.
37769
37770 2004-08-30 09:28  pbartok
37771
37772         * CheckState.cs:
37773           - Initial checkin
37774
37775 2004-08-30 09:17  pbartok
37776
37777         * Appearance.cs:
37778           - Initial check-in
37779
37780 2004-08-27 16:12  ravindra
37781
37782         * ToolBarButton.cs: Added TypeConverter attribute.
37783
37784 2004-08-27 16:07  ravindra
37785
37786         * ImageIndexConverter.cs: Implemented.
37787
37788 2004-08-27 14:17  pbartok
37789
37790         * Control.cs:
37791           - Removed unneeded stack vars
37792           - First attempt to fix sizing issues when layout is suspended
37793
37794 2004-08-25 15:35  jordi
37795
37796         * ScrollBar.cs: more fixes to scrollbar
37797
37798 2004-08-25 14:04  ravindra
37799
37800         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
37801           Added the missing divider code and grip for ToolBar Control.
37802
37803 2004-08-25 13:20  pbartok
37804
37805         * Control.cs:
37806           - Control now properly passes the ambient background color to child
37807             controls
37808
37809 2004-08-25 13:20  jordi
37810
37811         * ScrollBar.cs: small bug fix regarding bar position
37812
37813 2004-08-25 12:33  pbartok
37814
37815         * Timer.cs:
37816           - Now only calls SetTimer or KillTimer if the enabled state has
37817           changed
37818
37819 2004-08-25 12:33  pbartok
37820
37821         * XplatUIWin32.cs:
37822           - Fixed timer handling, now seems to work
37823           - Improved error message for window creation
37824
37825 2004-08-25 12:32  pbartok
37826
37827         * Control.cs:
37828           - Fixed generation of MouseUp message
37829
37830 2004-08-25 12:29  jordi
37831
37832         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
37833           and fixes for progressbar
37834
37835 2004-08-24 18:43  ravindra
37836
37837         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
37838           in ToolBar control.
37839
37840 2004-08-24 17:15  pbartok
37841
37842         * Panel.cs:
37843           - Added #region
37844           - Added missing events
37845           - Alphabetized
37846
37847 2004-08-24 17:14  pbartok
37848
37849         * StatusBar.cs, PictureBox.cs:
37850           - Now uses Control's CreateParams
37851
37852 2004-08-24 16:36  pbartok
37853
37854         * XplatUIX11.cs:
37855           - Fixed background color handling
37856           - Fixed sending of enter/leave events on a grab
37857
37858 2004-08-24 16:35  pbartok
37859
37860         * X11Structs.cs:
37861           - Refined definitions for CrossingEvent
37862
37863 2004-08-24 12:37  jordi
37864
37865         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
37866           formmating, methods signature, and adds missing events
37867
37868 2004-08-24 12:24  jordi
37869
37870         * Control.cs: fire OnEnabledChanged event
37871
37872 2004-08-24 11:17  pbartok
37873
37874         * XplatUIWin32.cs:
37875           - Implemented SetTimer() and KillTimer()
37876
37877 2004-08-24 11:16  pbartok
37878
37879         * XplatUIX11.cs:
37880           - Now uses Remove instead of Add to kill the timer
37881
37882 2004-08-24 10:16  jackson
37883
37884         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
37885           picture boxes in the theme now. Draw picture box borders and obey
37886           sizing modes
37887
37888 2004-08-24 05:49  jackson
37889
37890         * Timer.cs: Remove top secret debugging code
37891
37892 2004-08-24 05:34  jackson
37893
37894         * PictureBox.cs: Temp hack to make picture boxes draw their full
37895           image
37896
37897 2004-08-24 05:29  jackson
37898
37899         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37900           XplatUIX11.cs: Move timers to the driver level. On X they are
37901           queued by the driver and checked on idle.
37902
37903 2004-08-24 01:07  jackson
37904
37905         * XplatUIX11.cs: Use a queue for async messages instead of passing
37906           them as ClientMessages since that was totally broken. Also simply
37907           check for events and return an idle message if none are found. This
37908           gives us an idle handler, and prevents deadlocking when no messages
37909           are in the queue.
37910
37911 2004-08-23 18:19  ravindra
37912
37913         * XplatUIWin32.cs: Removed the unwanted destructor.
37914
37915 2004-08-23 17:27  pbartok
37916
37917         * ButtonBase.cs:
37918           - Finishing touches. Works now, just needs some optimizations.
37919
37920 2004-08-23 16:53  jordi
37921
37922         * ScrollBar.cs: small fix
37923
37924 2004-08-23 16:45  pbartok
37925
37926         * Application.cs:
37927           - Removed debug output
37928           - Simplifications
37929
37930 2004-08-23 16:43  jordi
37931
37932         * ScrollBar.cs: [no log message]
37933
37934 2004-08-23 16:10  pbartok
37935
37936         * Form.cs:
37937           - Fixed handling of WM_CLOSE message
37938           - Removed debug output
37939
37940 2004-08-23 16:09  pbartok
37941
37942         * Application.cs:
37943           - Added handling of Idle event
37944           - Added handling of form closing
37945           - Fixed reporting of MessageLoop property
37946           - Removed some unneeded code, should provide a bit of a speedup
37947
37948 2004-08-23 15:22  pbartok
37949
37950         * Control.cs:
37951           - Added InitLayout() method
37952           - Added code to properly perform layout when Anchor or Dock property
37953             is changed
37954           - Changed 'interpretation' of ResumeLayout. MS seems to have a
37955             LAMESPEC, tried to do it in a way that makes sense
37956
37957 2004-08-23 14:10  jordi
37958
37959         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
37960           properties and methods
37961
37962 2004-08-23 13:55  pbartok
37963
37964         * Control.cs:
37965           - Properly fixed Jordi's last fix
37966           - Now uses Cursor's Position property instead of calling XplatUI
37967           directly
37968
37969 2004-08-23 13:44  jordi
37970
37971         * PaintEventHandler.cs: Adding missing attribute
37972
37973 2004-08-23 13:39  pbartok
37974
37975         * Cursor.cs:
37976           - Implemented Position property
37977
37978 2004-08-23 13:39  pbartok
37979
37980         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37981           - Added method to move mouse cursor
37982
37983 2004-08-23 13:39  pbartok
37984
37985         * XplatUIX11.cs:
37986           - Fixed setting of background color
37987           - Added method to move mouse cursor
37988
37989 2004-08-23 13:16  jordi
37990
37991         * Control.cs: avoids null exception
37992
37993 2004-08-22 17:46  jackson
37994
37995         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
37996           PictureBox
37997
37998 2004-08-22 17:40  jackson
37999
38000         * XplatUIX11.cs: Add some missing locks
38001
38002 2004-08-22 15:10  pbartok
38003
38004         * Control.cs, Form.cs:
38005           - Removed OverlappedWindow style from Control, instead it's default
38006             now is child
38007           - Made form windows OverlappedWindow by default
38008
38009 2004-08-22 13:34  jackson
38010
38011         * ScrollBar.cs: Update the position through the Value property so
38012           the OnValueChanged event is raised.
38013
38014 2004-08-22 12:04  pbartok
38015
38016         * SWF.csproj:
38017           - Added Cursor.cs and UserControl.cs
38018
38019 2004-08-22 12:03  pbartok
38020
38021         * Cursor.cs:
38022           - Started implementation, not usable yet
38023
38024 2004-08-22 12:00  pbartok
38025
38026         * UserControl.cs:
38027           - Implemented UserControl (complete)
38028
38029 2004-08-21 19:20  ravindra
38030
38031         * ToolBar.cs: Correcting the formatting mess of VS.NET.
38032
38033 2004-08-21 18:49  ravindra
38034
38035         * ToolBar.cs: Probably this completes the missing attributes in
38036           toolbar control.
38037
38038 2004-08-21 18:03  ravindra
38039
38040         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38041           Fixed toolbar control signatures.
38042
38043 2004-08-21 16:32  pbartok
38044
38045         * LinkLabel.cs:
38046           - Signature Fixes
38047
38048 2004-08-21 16:30  pbartok
38049
38050         * Label.cs:
38051           - Signature fixes
38052
38053 2004-08-21 16:19  pbartok
38054
38055         * Control.cs, Label.cs:
38056           - Signature fixes
38057
38058 2004-08-21 15:57  pbartok
38059
38060         * ButtonBase.cs:
38061           - Added loads of debug output for development
38062           - Fixed typo in method name
38063
38064 2004-08-21 15:52  pbartok
38065
38066         * ToolBarButtonClickEventArgs.cs:
38067           - Added missing base class
38068
38069 2004-08-21 14:53  pbartok
38070
38071         * Control.cs:
38072           - Updated to match new GrabWindow signature
38073
38074 2004-08-21 14:51  pbartok
38075
38076         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38077           - Added method to get default display size
38078
38079 2004-08-21 14:23  pbartok
38080
38081         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38082           - Added method to query current grab state
38083           - Added argument to allow confining a grab to a window
38084
38085 2004-08-21 14:22  pbartok
38086
38087         * Keys.cs:
38088           - Added [Flags] attribute so that modifiers can be used in bitwise
38089           ops
38090
38091 2004-08-21 14:21  pbartok
38092
38093         * TrackBar.cs, ScrollBar.cs:
38094           - Replaced direct XplatUI calls with their Control counterpart
38095
38096 2004-08-21 13:32  pbartok
38097
38098         * Control.cs:
38099           - Implemented Created property
38100
38101 2004-08-21 13:28  pbartok
38102
38103         * Control.cs:
38104           - Implemented ContainsFocus
38105
38106 2004-08-21 13:26  pbartok
38107
38108         * Control.cs:
38109           - Implemented CausesValidation
38110
38111 2004-08-21 13:21  pbartok
38112
38113         * Control.cs:
38114           - Implemented CanFocus
38115           - Implemented CanSelect
38116           - Implemented Capture
38117
38118 2004-08-21 12:35  pbartok
38119
38120         * XplatUIWin32.cs:
38121           - Fixed bug with Async message handling
38122           - Implemented getting the ModifierKeys
38123
38124 2004-08-21 12:32  jackson
38125
38126         * AsyncMethodResult.cs: Make sure we have the mutex before we
38127           release it. Fixes BeginInvoke on windows
38128
38129 2004-08-21 11:31  pbartok
38130
38131         * XplatUIWin32.cs, XplatUIX11.cs:
38132           - Drivers now return proper mouse state
38133
38134 2004-08-21 10:54  jackson
38135
38136         * Control.cs: Implement EndInvoke
38137
38138 2004-08-21 10:48  jackson
38139
38140         * Timer.cs: Remove unneeded finalizer
38141
38142 2004-08-20 19:52  ravindra
38143
38144         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
38145           in mouse event handling in the ToolBar control.
38146
38147 2004-08-20 19:50  ravindra
38148
38149         * ImageList.cs: Changed draw method to use the arguments passed in
38150           to draw the image.
38151
38152 2004-08-20 18:58  pbartok
38153
38154         * XplatUIStructs.cs:
38155           - Added private message for async communication
38156
38157 2004-08-20 17:38  ravindra
38158
38159         * Control.cs: Made RightToLeft property virtual and removed a
38160           Console.WriteLine.
38161
38162 2004-08-20 14:39  jordi
38163
38164         * ThemeGtk.cs: use style_attach
38165
38166 2004-08-20 14:39  pbartok
38167
38168         * XplatUIWin32.cs:
38169           - Added jackson's Async code from X11 to Win32
38170
38171 2004-08-20 14:09  pbartok
38172
38173         * SWF.csproj:
38174           - Added all new files
38175
38176 2004-08-20 14:09  pbartok
38177
38178         * Control.cs:
38179           - Added call to set window background color
38180
38181 2004-08-20 14:03  pbartok
38182
38183         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38184           - Added method for setting the window background
38185
38186 2004-08-20 14:02  pbartok
38187
38188         * XplatUIWin32.cs:
38189           - Added method for setting the background color
38190           - Added handling for erasing the window background
38191
38192 2004-08-20 13:45  jordi
38193
38194         * TrackBar.cs: fixes timer, new properties and methods
38195
38196 2004-08-20 13:34  jackson
38197
38198         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
38199           correct thread
38200
38201 2004-08-20 13:22  jackson
38202
38203         * Timer.cs: Timer Tick events are now handed through Controls Async
38204           mechanism so the callbacks are executed in the same thread as X
38205
38206 2004-08-20 13:19  jackson
38207
38208         * XplatUIDriver.cs: Expose functionality to send async messages
38209           through the driver
38210
38211 2004-08-20 13:18  jackson
38212
38213         * Control.cs: Implement Begininvoke
38214
38215 2004-08-20 13:14  jackson
38216
38217         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
38218           messages through the driver
38219
38220 2004-08-20 13:12  jackson
38221
38222         * XplatUIX11.cs: Lock before all X operations. Also added Async
38223           method functionality through XSendEvent
38224
38225 2004-08-20 13:11  jackson
38226
38227         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
38228           This will screw up on 64 bit systems)
38229
38230 2004-08-20 13:10  jackson
38231
38232         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
38233           Async messages through X/Win32
38234
38235 2004-08-19 19:39  pbartok
38236
38237         * XplatUIX11.cs:
38238           - Updated code to match new HandleData.DeviceContext type
38239
38240 2004-08-19 19:38  pbartok
38241
38242         * HandleData.cs:
38243           - Made DeviceContext a generic object to allow usage from various
38244           drivers
38245           - Added support for queueing Windows messages
38246
38247 2004-08-19 19:37  pbartok
38248
38249         * XplatUIWin32.cs:
38250           - Added generation of MouseEnter, MouseLeave and MouseHover events
38251           - Added cleanup on EndPaint
38252
38253 2004-08-19 19:17  pbartok
38254
38255         * Control.cs:
38256           - Added handling of WM_MOUSEHOVER
38257           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
38258           code
38259
38260 2004-08-19 18:55  jordi
38261
38262         * ThemeGtk.cs: fixes button order
38263
38264 2004-08-19 18:12  jordi
38265
38266         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
38267
38268 2004-08-19 17:09  pbartok
38269
38270         * Control.cs:
38271           - Added Right property
38272           - Added RightToLeft property
38273
38274 2004-08-19 16:27  jordi
38275
38276         * ThemeGtk.cs: experimental GTK theme support
38277
38278 2004-08-19 16:26  jordi
38279
38280         * ITheme.cs, Theme.cs: move themes from an interface to a class
38281
38282 2004-08-19 16:25  jordi
38283
38284         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
38285           theme enhancaments
38286
38287 2004-08-19 16:04  pbartok
38288
38289         * XplatUIX11.cs:
38290           - Added colormap basics
38291           - Added a way to re-initialize with a different display handle
38292           - Fixed setting of the window background color
38293           - Added various X11 imports related to colors and colormaps
38294
38295 2004-08-19 15:51  pbartok
38296
38297         * X11Structs.cs:
38298           - Removed packing hints (Paolo suggested this a while back)
38299           - fixed colormap type
38300           - Added default Atom types
38301           - Added Screen and color structs and enums
38302
38303 2004-08-19 15:39  pbartok
38304
38305         * ImageList.cs:
38306           - Added missing Draw() method
38307           - Added missing RecreateHandle event
38308
38309 2004-08-19 15:30  pbartok
38310
38311         * Form.cs:
38312           - Added handling of WM_CLOSE
38313
38314 2004-08-18 13:16  jordi
38315
38316         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
38317           a table
38318
38319 2004-08-18 09:56  jordi
38320
38321         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
38322
38323 2004-08-17 15:31  ravindra
38324
38325         * SWF.csproj: Updated project.
38326
38327 2004-08-17 15:25  pbartok
38328
38329         * Control.cs:
38330           - Drawing improvement; don't call UpdateBounds if we are not visible
38331             (or have been minimized)
38332
38333 2004-08-17 15:24  pbartok
38334
38335         * XplatUIWin32.cs:
38336           - Finished IsVisible
38337           - Added Win32GetWindowPlacement
38338
38339 2004-08-17 15:08  jackson
38340
38341         * Panel.cs: Initial checkin of the Panel
38342
38343 2004-08-17 14:25  pbartok
38344
38345         * Control.cs:
38346           - Fixed broken handling of default window sizes
38347
38348 2004-08-17 13:29  jackson
38349
38350         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
38351           has a large startup time.
38352
38353 2004-08-17 10:25  jackson
38354
38355         * HandleData.cs: union areas properly
38356
38357 2004-08-17 10:12  jackson
38358
38359         * HandleData.cs: union areas properly
38360
38361 2004-08-16 20:00  ravindra
38362
38363         * ToolBar.cs, ToolBarButton.cs: Added attributes.
38364
38365 2004-08-16 18:48  ravindra
38366
38367         * ToolBar.cs: Added attributes.
38368
38369 2004-08-16 17:17  ravindra
38370
38371         * SWF.csproj: Updated project.
38372
38373 2004-08-16 17:16  jackson
38374
38375         * XplatUIX11.cs: Check for more expose events before sending a
38376           WM_PAINT so they can all be grouped together. This makes dragging a
38377           window across another window redraw in a sane way.
38378
38379 2004-08-16 15:47  pbartok
38380
38381         * Control.cs:
38382           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
38383             support OnMouseEnter/Leave()
38384           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
38385             exposure handling
38386
38387 2004-08-16 15:46  pbartok
38388
38389         * XplatUIStructs.cs, XplatUIX11.cs:
38390           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
38391           OnMouseEnter/Leave()
38392
38393 2004-08-16 15:34  jackson
38394
38395         * XplatUIX11.cs: Group multiple expose events in HandleData, make
38396           sure messages get the message field set to WM_NULL if they are not
38397           handled.
38398
38399 2004-08-16 15:24  jackson
38400
38401         * HandleData.cs: HandleData is used for storing message information
38402           for window handles
38403
38404 2004-08-15 17:23  ravindra
38405
38406         * ColorDepth.cs: Added attribute.
38407
38408 2004-08-15 17:23  ravindra
38409
38410         * SWF.csproj: Updated project for ToolBar Control.
38411
38412 2004-08-15 17:20  ravindra
38413
38414         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
38415           control and also dos2unix format.
38416
38417 2004-08-15 17:13  ravindra
38418
38419         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
38420           ToolBarButtonClickEventArgs.cs,
38421           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
38422           ToolBarTextAlign.cs: First Implementation of ToolBar control.
38423
38424 2004-08-15 15:31  pbartok
38425
38426         * ButtonBase.cs:
38427           - First (mostly) working version
38428
38429 2004-08-13 16:15  pbartok
38430
38431         * Control.cs:
38432           - Fixed Anchor default
38433
38434 2004-08-13 15:43  pbartok
38435
38436         * Control.cs:
38437           - Changed GetCursorPos signature
38438
38439 2004-08-13 15:42  pbartok
38440
38441         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38442           - Changed signature for GetCursorPos
38443
38444 2004-08-13 15:25  pbartok
38445
38446         * XplatUIX11.cs:
38447           - Cleanup
38448           - Fixed resizing/exposure handling
38449
38450 2004-08-13 15:22  jordi
38451
38452         * ThemeWin32Classic.cs: removes redundant code and fixes issues
38453           with tickposition
38454
38455 2004-08-13 14:55  jordi
38456
38457         * TrackBar.cs: change from wndproc to events
38458
38459 2004-08-13 13:00  jordi
38460
38461         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38462           XplatUIX11.cs: implements PointToClient (ScreenToClient)
38463
38464 2004-08-13 12:53  pbartok
38465
38466         * XplatUIWin32.cs:
38467           - Changed GetWindowPos to also provide client area size
38468           - Fixed broken prototypes for several win32 functions
38469
38470 2004-08-13 12:53  pbartok
38471
38472         * XplatUI.cs, XplatUIDriver.cs:
38473           - Changed GetWindowPos to also provide client area size
38474
38475 2004-08-13 12:52  pbartok
38476
38477         * XplatUIX11.cs:
38478           - Added generation of WM_POSCHANGED
38479           - Changed GetWindowPos to also provide client area size
38480
38481 2004-08-13 12:52  pbartok
38482
38483         * Control.cs:
38484           - Added Dispose() and destructor
38485           - Fixed resizing and bounds calculation
38486           - Fixed Layout
38487           - Added memory savings for invisible windows
38488
38489 2004-08-13 12:46  jordi
38490
38491         * TrackBar.cs: adds timer and grap window
38492
38493 2004-08-13 10:25  jackson
38494
38495         * Timer.cs: SWF Timer
38496
38497 2004-08-12 16:59  pbartok
38498
38499         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38500           - Implemented method to get current mouse position
38501
38502 2004-08-12 14:29  jordi
38503
38504         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
38505           enhancement, fix mouse problems, highli thumb, etc
38506
38507 2004-08-12 13:31  pbartok
38508
38509         * Control.cs:
38510           - Fixed Anchoring bugs
38511
38512 2004-08-12 13:01  jackson
38513
38514         * StatusBar.cs: Don't forget things
38515
38516 2004-08-12 12:54  jackson
38517
38518         * ThemeWin32Classic.cs: Handle owner draw status bars
38519
38520 2004-08-12 12:54  jackson
38521
38522         * StatusBar.cs: Implement missing properties, events, and methods.
38523           Handle mouse clicking
38524
38525 2004-08-12 10:19  jackson
38526
38527         * StatusBarPanelClickEventArgs.cs,
38528           StatusBarPanelClickEventHandler.cs: Classes for handling status
38529           bar panel click events
38530
38531 2004-08-12 10:10  jackson
38532
38533         * Control.cs: Add missing properties
38534
38535 2004-08-12 09:46  pbartok
38536
38537         * BindingsManagerBase.cs:
38538           - Name changed to BindingManagerBase.cs
38539
38540 2004-08-12 09:25  jordi
38541
38542         * ScrollableControl.cs: calls ctrlbase instead of exeception
38543
38544 2004-08-11 16:28  pbartok
38545
38546         * InputLanguageChangingEventArgs.cs:
38547           - Never check in before compiling. Fixes the last check-in
38548
38549 2004-08-11 16:26  pbartok
38550
38551         * InputLanguageChangingEventArgs.cs:
38552           - More signature fixes
38553
38554 2004-08-11 16:20  pbartok
38555
38556         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
38557           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
38558           ImageListStreamer.cs, InputLanguage.cs,
38559           InputLanguageChangedEventArgs.cs,
38560           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
38561           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
38562           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
38563           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38564           - Signature fixes
38565
38566 2004-08-11 16:16  pbartok
38567
38568         * Application.cs:
38569           - Fixed Signature
38570           - Added .Net 1.1 method
38571
38572 2004-08-11 15:25  pbartok
38573
38574         * SWF.csproj:
38575           - Fixed BindingManagerBase.cs filename
38576
38577 2004-08-11 15:22  pbartok
38578
38579         * BindingManagerBase.cs:
38580           - Was checked in with wrong filename
38581
38582 2004-08-11 14:50  pbartok
38583
38584         * SWF.csproj:
38585           - Updated
38586
38587 2004-08-11 13:41  jordi
38588
38589         * XplatUIWin32.cs: Fixes ClientRect
38590
38591 2004-08-11 13:19  pbartok
38592
38593         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38594           XplatUIX11.cs:
38595           - We had SetWindowPos and MoveWindow to set window positions and
38596             size, removed MoveWindow. We have GetWindowPos, so it made sense to
38597             keep SetWindowPos as matching counterpart
38598           - Added some X11 sanity checking
38599
38600 2004-08-11 12:59  pbartok
38601
38602         * Control.cs:
38603           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
38604             (It seems that SetBounds is just a front for SetBoundsCore and
38605              SetBoundsCore updates the underlying window system and
38606              UpdateBounds is responsible for updating the variables associated
38607              with the Control and sending the events)
38608           - Major cleanup of Size handling; we now have two sizes, client_size
38609             and bounds. Bounds defines the window with decorations, client_size
38610             without them.
38611
38612 2004-08-11 12:55  pbartok
38613
38614         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38615           - Added method to calculate difference between decorated window and
38616             raw client area
38617
38618 2004-08-11 12:54  pbartok
38619
38620         * Label.cs:
38621           - Forcing redraw on resize
38622
38623 2004-08-11 11:43  pbartok
38624
38625         * ImageList.cs:
38626           - Removed disposing of the actual images when the list is disposed
38627
38628 2004-08-11 09:13  pbartok
38629
38630         * Control.cs:
38631           - Now properly reparents windows
38632
38633 2004-08-11 08:37  pbartok
38634
38635         * Control.cs:
38636           - Duh!
38637
38638 2004-08-11 07:47  pbartok
38639
38640         * Control.cs:
38641           - Rewrote the collection stuff. Might not be as fast now, not
38642             keeping the number of children around and accessible directly, but
38643             it's more straightforward
38644
38645 2004-08-11 07:44  pbartok
38646
38647         * AccessibleObject.cs:
38648           - Fixed to match ControlCollection rewrite
38649
38650 2004-08-11 07:43  pbartok
38651
38652         * ImageList.cs:
38653           - Added missing creation of the collection list
38654
38655 2004-08-10 20:08  jackson
38656
38657         * StatusBar.cs: Get the paint message from WndProc
38658
38659 2004-08-10 19:31  jackson
38660
38661         * ThemeWin32Classic.cs: Create Brushes as little as possible
38662
38663 2004-08-10 19:20  jackson
38664
38665         * UICues.cs: Add Flags attribute
38666
38667 2004-08-10 19:19  jackson
38668
38669         * StatusBarPanel.cs: Signature cleanup
38670
38671 2004-08-10 19:10  jackson
38672
38673         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
38674           Initial implementation of status bar item drawing
38675
38676 2004-08-10 17:27  jordi
38677
38678         * TrackBar.cs: add missing methods, properties, and restructure to
38679           hide extra ones
38680
38681 2004-08-10 16:24  jackson
38682
38683         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
38684           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
38685           attribute
38686
38687 2004-08-10 13:21  jordi
38688
38689         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
38690           enhancements and standarize on win colors defaults
38691
38692 2004-08-10 12:52  jackson
38693
38694         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
38695           ThemeWin32Classic.cs: Implement DrawItem functionality
38696
38697 2004-08-10 12:47  jordi
38698
38699         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
38700
38701 2004-08-10 12:32  jordi
38702
38703         * Control.cs: throw ontextchange event
38704
38705 2004-08-10 11:43  pbartok
38706
38707         * Control.cs:
38708           - Added more to the still unfinished Dock/Anchor layout code
38709
38710 2004-08-10 11:39  pbartok
38711
38712         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38713           - Added GetWindowPos method
38714
38715 2004-08-10 11:36  pbartok
38716
38717         * XplatUIWin32.cs:
38718           - Implemented several methods
38719
38720 2004-08-10 09:47  jackson
38721
38722         * TrackBar.cs: Allow control to handle buffering
38723
38724 2004-08-10 09:41  jackson
38725
38726         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
38727
38728 2004-08-10 09:24  jackson
38729
38730         * Label.cs, LinkLabel.cs: Let Control handle buffering.
38731
38732 2004-08-10 09:09  jackson
38733
38734         * StatusBar.cs: Let Control handle all the buffering.
38735
38736 2004-08-10 09:08  jackson
38737
38738         * Control.cs: Control will now handle the buffering code, so each
38739           control does not have to implement this.
38740
38741 2004-08-10 08:34  jackson
38742
38743         * XplatUIDriver.cs: Use default colors from the theme
38744
38745 2004-08-09 17:12  pbartok
38746
38747         * ImageList.cs:
38748           - Fixed several bugs Ravindra pointed out
38749
38750 2004-08-09 16:11  pbartok
38751
38752         * Control.cs:
38753           - Added incomplete dock layout code
38754           - Added support for mouse wheel
38755
38756 2004-08-09 16:09  pbartok
38757
38758         * XplatUIX11.cs:
38759           - Added handling for middle and right mousebutton
38760           - Added handling for mouse wheel
38761           - Added handling for key state and mouse state and position
38762           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
38763           messages
38764
38765 2004-08-09 15:40  jackson
38766
38767         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
38768           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
38769           checkin
38770
38771 2004-08-09 15:37  jackson
38772
38773         * StatusBar.cs: Initial implementation of StatusBar
38774
38775 2004-08-09 15:36  jackson
38776
38777         * ITheme.cs: Add support for drawing status bar and getting status
38778           bar item sizes
38779
38780 2004-08-09 15:35  pbartok
38781
38782         * MouseButtons.cs:
38783           - Fixed values
38784
38785 2004-08-09 15:34  jackson
38786
38787         * ThemeWin32Classic.cs: Add support for drawing status bar and get
38788           status bar item sizes
38789
38790 2004-08-09 15:21  jackson
38791
38792         * ThemeWin32Classic.cs: Use known colors for default control
38793           colours
38794
38795 2004-08-09 15:12  jackson
38796
38797         * ThemeWin32Classic.cs: Make the default font static, it is static
38798           in control so this doesn't change functionality and creating fonts
38799           is sloooooow.
38800
38801 2004-08-09 14:56  pbartok
38802
38803         * X11Structs.cs:
38804           - Added GrabMode enum
38805
38806 2004-08-09 14:55  pbartok
38807
38808         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38809           - Removed Run method, was only required for initial development
38810
38811 2004-08-09 14:51  pbartok
38812
38813         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38814           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
38815           capture
38816
38817 2004-08-09 13:48  pbartok
38818
38819         * XplatUIX11.cs:
38820           - Fixed default sizing for child windows
38821
38822 2004-08-09 12:56  pbartok
38823
38824         * XplatUIX11.cs:
38825           - Added generation of WM_DESTROY message
38826           - Added handling of window manager induced shutdown
38827
38828 2004-08-09 11:31  jackson
38829
38830         * ThemeWin32Classic.cs: New names for control properties
38831
38832 2004-08-09 11:25  jackson
38833
38834         * Control.cs: Use new color names
38835
38836 2004-08-09 11:02  jackson
38837
38838         * XplatUI.cs: Get default window properties from the theme
38839
38840 2004-08-09 11:01  jackson
38841
38842         * ITheme.cs: The theme engine now controls default window
38843           properties
38844
38845 2004-08-09 11:00  jackson
38846
38847         * ThemeWin32Classic.cs: Add default window color properties
38848
38849 2004-08-09 10:17  jackson
38850
38851         * ThemeWin32Classic.cs: Use correct default back color
38852
38853 2004-08-09 10:05  jackson
38854
38855         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
38856           the theme now.
38857
38858 2004-08-09 09:56  jackson
38859
38860         * XplatUI.cs: Remove defaults, these are handled by the theme now.
38861
38862 2004-08-09 09:54  jackson
38863
38864         * Control.cs: Get default properties from the theme.
38865
38866 2004-08-09 09:53  jackson
38867
38868         * ITheme.cs: Themes now handle default control properties
38869
38870 2004-08-09 09:53  jackson
38871
38872         * ThemeWin32Classic.cs: Themes now handle default control
38873           properties so coloring will be consistent
38874
38875 2004-08-08 16:54  jordi
38876
38877         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
38878
38879 2004-08-08 15:08  jordi
38880
38881         * XplatUIX11.cs: fixes keyboard crash
38882
38883 2004-08-08 13:47  jordi
38884
38885         * Label.cs: add cvs header info
38886
38887 2004-08-08 12:09  jackson
38888
38889         * ThemeWin32Classic.cs: Add pen_buttonface
38890
38891 2004-08-08 11:52  jordi
38892
38893         * Label.cs, LinkLabel.cs: [no log message]
38894
38895 2004-08-08 11:34  jordi
38896
38897         * ThemeWin32Classic.cs: Use Windows Standard Colours
38898
38899 2004-08-07 17:32  jordi
38900
38901         * TrackBar.cs: throw exceptions of invalid enums values
38902
38903 2004-08-07 17:31  jordi
38904
38905         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
38906           draw method name
38907
38908 2004-08-07 16:56  jackson
38909
38910         * HorizontalAlignment.cs: Initial checkin
38911
38912 2004-08-07 13:16  jordi
38913
38914         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
38915           methods
38916
38917 2004-08-07 13:05  jordi
38918
38919         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
38920           GetSysColor defines
38921
38922 2004-08-06 18:01  pbartok
38923
38924         * ThemeWin32Classic.cs:
38925           - Fixed some rounding issues with float/int
38926
38927 2004-08-06 18:00  jackson
38928
38929         * DockStyle.cs, AnchorStyles.cs:
38930
38931                   Add flags and serializable attributes.
38932
38933 2004-08-06 17:46  pbartok
38934
38935         * XplatUIX11.cs:
38936           - Implemented GetParent
38937
38938 2004-08-06 17:18  pbartok
38939
38940         * TrackBar.cs:
38941           - Fixed some rounding issues with float/int
38942
38943 2004-08-06 17:17  pbartok
38944
38945         * X11Structs.cs, XplatUIX11.cs:
38946           - Fixed Refresh and Invalidate
38947
38948 2004-08-06 15:30  pbartok
38949
38950         * Control.cs, X11Structs.cs, XplatUIX11.cs:
38951           - Fixed recursive loop when resizing
38952           - Improved/fixed redrawing on expose messages
38953
38954 2004-08-06 09:53  jordi
38955
38956         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
38957           keyboard navigation
38958
38959 2004-08-06 08:02  pbartok
38960
38961         * X11Structs.cs, XplatUIX11.cs:
38962           - Fixed reparenting
38963           - Fixed window border creation
38964
38965 2004-08-05 15:38  pbartok
38966
38967         * XplatUIX11.cs:
38968           - Attempted fix for reparenting problems
38969
38970 2004-08-04 15:14  pbartok
38971
38972         * Control.cs:
38973           - Fixed Invalidation bug (calculated wrong client area)
38974           - Added ClientSize setter
38975
38976 2004-08-04 15:13  pbartok
38977
38978         * Form.cs:
38979           - Added AutoScale properties
38980
38981 2004-08-04 15:13  pbartok
38982
38983         * SWF.csproj:
38984           - Added latest files
38985
38986 2004-08-04 14:11  pbartok
38987
38988         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38989           XplatUIX11.cs:
38990           - Added Invalidate handling
38991
38992 2004-08-03 17:09  jordi
38993
38994         * XplatUIDriver.cs: fixes spelling mistake
38995
38996 2004-07-27 09:53  jordi
38997
38998         * TrackBar.cs: fixes trackbar events, def classname, methods
38999           signature
39000
39001 2004-07-27 09:29  jordi
39002
39003         * ScrollBar.cs: fixes scrollbar events
39004
39005 2004-07-27 04:38  jordi
39006
39007         * Control.cs: changes to be able to run winforms samples
39008
39009 2004-07-26 11:42  jordi
39010
39011         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39012           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39013
39014 2004-07-26 05:41  jordi
39015
39016         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39017           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39018           implementation
39019
39020 2004-07-22 09:22  jordi
39021
39022         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39023           check link overlapping, implement events, and fixes
39024
39025 2004-07-21 10:28  jordi
39026
39027         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39028
39029 2004-07-21 10:19  jordi
39030
39031         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39032           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39033           LinkLabelLinkClickedEventArgs.cs,
39034           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39035           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39036           implementation
39037
39038 2004-07-19 13:09  jordi
39039
39040         * Control.cs, Label.cs: label control re-written: added missing
39041           functionlity, events, and properties
39042
39043 2004-07-19 10:49  jordi
39044
39045         * Control.cs: fixes SetBounds logic
39046
39047 2004-07-19 01:29  jordi
39048
39049         * Control.cs: Call RefreshWindow only if the window has created
39050
39051 2004-07-15 14:05  pbartok
39052
39053         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39054           - Implemented ImageList and ImageList.ImageCollection classes
39055           - Added ColorDepth enumeration
39056           - Updated SWF VS.Net project
39057
39058 2004-07-15 11:06  jordi
39059
39060         * XplatUIStructs.cs: added MsgButons enum
39061
39062 2004-07-15 11:03  jordi
39063
39064         * Control.cs: added basic mouse handeling events
39065
39066 2004-07-15 03:38  jordi
39067
39068         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39069           Vertical TrackBar control implementation
39070
39071 2004-07-13 09:33  jordi
39072
39073         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39074
39075 2004-07-13 09:31  jordi
39076
39077         * Control.cs, Form.cs: commit: new properties and fixes form size
39078           problems
39079
39080 2004-07-09 14:13  miguel
39081
39082         * ProgressBar.cs: Spelling
39083
39084 2004-07-09 11:25  pbartok
39085
39086         * ProgressBar.cs:
39087           - Removed usage of Rectangle for drawing. Miguel pointed out it's
39088           faster
39089
39090 2004-07-09 11:17  miguel
39091
39092         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
39093
39094                 * ProgressBar.cs: Fixed spelling for `block'
39095
39096                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39097                 style guidelines.
39098
39099                 Avoid using the += on rect.X, that exposed a bug in the compiler.
39100
39101 2004-07-08 23:21  pbartok
39102
39103         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
39104           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
39105           BaseCollection.cs, Binding.cs, BindingContext.cs,
39106           BindingMemberInfo.cs, BindingsCollection.cs,
39107           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
39108           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
39109           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
39110           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
39111           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
39112           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
39113           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
39114           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
39115           FrameStyle.cs, GiveFeedbackEventArgs.cs,
39116           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
39117           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
39118           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
39119           InputLanguageChangedEventArgs.cs,
39120           InputLanguageChangedEventHandler.cs,
39121           InputLanguageChangingEventArgs.cs,
39122           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
39123           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
39124           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
39125           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
39126           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
39127           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
39128           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
39129           QueryAccessibilityHelpEventArgs.cs,
39130           QueryAccessibilityHelpEventHandler.cs,
39131           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
39132           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
39133           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
39134           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
39135           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
39136           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
39137           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
39138           XplatUIX11.cs, lang.cs:
39139           - Initial check-in
39140
39141