* TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-01-21  Mike Gorse  <mgorse@novell.com>
2
3         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
4           use them.
5           Added UIAValueParamChangedEvent.
6
7 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8
9         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
10         of trying to set as top node the highest parent of the previous top
11         node. Moving to the bottom of the TreeView after a call to CollapseAll
12         is exactly what .net does. This should avoid some nasty issue when
13         CollapseAll is called and we don't need the vertical scroll bar.
14
15 2009-01-21  Mario Carrion <mcarrion@novell.com>
16
17         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
18         and UIATopMostChanged.
19
20 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
21
22         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
23         UIAEnabledChanged, and UIATextChanged events.
24
25         * Form.cs: Add UIAMenuChanged event.
26
27         * Menu.cs:
28         * MenuAPI.cs: Note which internal APIs are being used by UIA.
29
30 2009-01-21  Neville Gao  <nevillegao@gmail.com>
31
32         * ToolBar.cs: Control enabled to support accessibility.
33         [Fixes Bug #455950]
34
35 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
36
37         * TreeView.cs: When handling mouse up event, check whether
38         highlighted_node is null or not - usually it should be non-null
39         alwaays, since the mouse down handler sets it, but some externa
40         operations, such TreeNodeCollection.Clear, could set it to null.
41         Fixes #438650.
42
43 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
44
45         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
46         item is disabled.
47
48 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
49
50         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
51         [Fixes bug #467285]
52
53 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
54
55         * MonthCalendar.cs: When handling the selection changes using the
56         mouse, don't set SelectionRange if the selection range didn't actually
57         change. This matters because, even if we set the range to the same
58         previous range, an extra DateChanged event is fired. Just to be clear:
59         SelectionRage property doesn't check whether the new value is
60         different to the previous one (by ref equals doesn't work here).
61         Fixes other bits of #364914.
62
63 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
64
65         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
66         selection using the keyboard, since we are already firing this event
67         when setting SelectionRange. Also don't set SelectionRange if the
68         previous and the new value are the same (the property, just as .net
69         does, doesn't check whether the previous value and the new one are the
70         same). This saves us from firing OnDateChanged event if the selection
71         range didn't change actually.
72         Fixes the remaining bits of #364914.
73
74 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
75
76         * ListBox.cs: When removing an item and the last item is selected,
77         remove it from the selection, and if selection mode is One try to
78         select the new last item.
79         Fixes #465422.
80
81 2009-01-16  Mike Gorse  <mgorse@novell.com>
82
83         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
84
85 2009-01-16  Mario Carrion <mcarrion@novell.com>
86
87         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
88         when changing Text. 
89
90 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
91
92         * X11Structs.cs:
93         * XplatUIX11.cs: Properly encode/decode the unicode strings we
94         store/retrieve in the Clipboard. Also, since we try to convert the
95         data to different formats, separate the source and the result of
96         it, so we can always fallback to the original and don't mix wrong
97         conversions.
98
99 2009-01-16  Mike Gorse  <mgorse@novell.com>
100
101         * TextControl.cs: Add UIASelectionChanged event.
102
103 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
104
105         * DataGridView.cs: Forward the first key events to the editing control.
106         [Fixes bug #457307]
107
108 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
109
110         * Application.cs: Oops, launch the copied handler of PreRun instead of
111         the global one (gendarme would bark otherwise). (Improving r123375)
112
113 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
114
115         * XplatUI.cs:
116         * Application.cs: Move the PreRun event fire to the end of the XplatUI
117         static ctor (we don't move the PreRun event to this class because its
118         usage would cause the call to the static ctor). This way we can get
119         a11y support for dialogs that run without App.Run.
120
121 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
122
123         * ListView.cs: New internal property to know the inner array's length of
124         the location of items, in order to avoid a try-catch strategy for the
125         case when this array has not been resized yet (for reference, look at
126         r123288). r: jpobst
127
128 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
129
130         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
131         reflection calls. This requires UIAutomationWinforms r123213.
132
133 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
134
135         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
136         handlers and fire the DateSelected event until MouseUp is reached,
137         like .net does, instead of firing it for each mouse event.
138         Fixes part of #364914.
139
140 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
141
142         * TreeView.cs: When the selection gets canceled using the BeforeSelect
143         event, invalidate the previous highlighted_node bounds, to show the
144         user that the item was *not* selected.
145         Fixes #464191.
146
147 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
148
149         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
150         well as -in DropDown and Simple modes- writing in the textbox should
151         try to set the requested item as the top one, but navigating with the
152         keyboard and handling mouse selection don't need that behaviour. Also,
153         when resetting selected_index handling key press events, reset
154         ComboListBox.HighlightIndex. 
155         Fixes the remaining bits of #464188.
156
157 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
158
159         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
160         there are no cells:
161            - CurrentCellAddress should be -1, -1 and not 0, 0.
162            - Be tolerant and fall back to clearing the current cell if either 
163            column or row is -1 in MoveCurrentCell.
164            - Misc. more -1 checks.
165
166 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
167
168         * DataGridView.cs: Preserve the column index. Fixes a regression 
169         introduced by the data binding position tracking code.
170
171 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
172
173         * DataGridView.cs: If the bottom of the row matches the client height 
174         do not regard the row as partially visible. Fixes the weird scrolling 
175         when there is no scrollbar.
176
177 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
178
179         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
180
181 2009-01-09  Mario Carrion  <mcarrion@novell.com>
182
183         * MessageBox.cs: Fixed internal UIAIconRectangle property.
184
185 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
186
187         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
188
189 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
190
191         * DataGridView.cs: Track the Position in the CurrencyManager.
192
193 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
194
195         * DataGridView.cs: Implement data-bound new item editing/addition.
196         * DataGridViewRowCollection.cs: Make it possible for us to internally 
197         remove the edit row.
198         [Fixes bugs #457107, #457308, #325240]
199
200 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
201
202         * CurrencyManager.cs: Even if Position is set to a greater value than the 
203         list count reset it to position of the last item.
204
205 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
206
207         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
208         Fix that in order to make CancelNew to work.
209
210 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
211
212         * BindingSource.cs: When adding a new item try to delegate to the internal 
213         list first before throwing an exception.
214
215 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
216
217         * ComboBox.cs: When setting the text and adjusting the top_item, do it
218         *only* if the current item is *not* visible already.
219         Fixes part of #464188.
220
221 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
222
223         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
224         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
225         Fix that.
226         [Fixes bug #464493]
227
228 2009-01-08  Brad Taylor  <brad@getcoded.net>
229
230         * ComboBox.cs: Expose a few private fields as internal UIA properties.
231
232 2009-01-07  Mario Carrion <mcarrion@novell.com>
233         
234         * DataGrid.cs: CWL removed.
235
236 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
237
238         * RadioButton.cs: When setting Checked, we should first update the
239         check state of the current RadioButton, as well as invalidating it,
240         and after that actually update the siblings. This is done to match
241         .net.
242         Fixes the remaining bits of #463028.
243
244 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
245
246         * RadioButton.cs: Setting Checked to false should set TabStop to stop
247         as well. Also, when we get the focus and no other RadioButton is
248         selected in the parent control, we should mark ourselves as Checked.
249         Fixes part of #463028.
250
251 2009-01-05  Mario Carrion <mcarrion@novell.com>
252
253         * DataGrid.cs: UIA suppport. internal events: 
254         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
255         UIASelectionChanged, UIACollectionChanged. Internal properties: 
256         UIARowHeight, UIACellsArea, UIACaptionArea, 
257         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
258         UIAVScrollBar and UIAHScrollBar.
259
260 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
261
262         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
263         of the buttons are set to Overflow = Always.
264         [Fixes bug #463013]
265
266 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
267
268         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
269         based on whether the binding source is availble or not. Fixes #463008.
270
271 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
272
273         * DataGridViewCell.cs: We should return a value even if we are not bound 
274         to a DataGridView.
275
276 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
277
278         * CurrencyManager.cs, DataGrid.cs: 
279            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
280            concept of "rows".
281            - Add two more internal properties AllowRemove and AllowEdit.
282         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
283         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
284         CurrencyManager data source.
285
286 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
287
288         * DataGridView.cs: Fix crashes caused by assigning negative values to 
289         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
290         the column/row heights/widths.
291         [Fixes bug #462684]
292
293 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
294
295         * DataGridView.cs: Non-autogenerated columns that have a data property 
296         set that exists in the current datasource should be set to be data-bound.
297
298 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
299
300         * DataGridView.cs: Fix column sorting for columns containing null 
301         values. A "null" value is not always "null" (e.g could be String.Empty) 
302         and thus parsing numeric types throwed an exception for "null" values.
303
304 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
305
306         * DataGridView.cs: Detach the editing control when the edit is 
307         finished.
308
309 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
310
311         * DataGridView.cs: Multiple fixes to handle last column/row removal 
312         and cell movement after that instead of throwing exceptions.
313
314 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
315
316         * DataGridViewCellCollection.cs: When cells are removed the column 
317         indices become invalid if the cell is not the last one and have to 
318         be refreshed.
319
320 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
321
322         * DataGridView.cs: Return false in CommitEdit if there was an error.
323
324 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
325
326         * DataGridView.cs: Remove a leftover Console.WriteLine.
327
328 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
329
330         * DataGridViewRow.cs: Access the indexer of the data manager directly 
331         instead of the internal list.
332
333 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
334
335         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
336         Rewrite the value getting, setting, parsing, formatting logic:
337            - If data-bound value get/set should actually get and set from the 
338              data source.
339            - Make proper usage of TypeConverters for value parsing/formatting.
340            - Raise DataError if setting the new value fails.
341            - Get rid off the internal valueType field and get/set the ValueType 
342            property instead.
343         [Fixes bug #462051]
344
345 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
346
347         * DataGridView.cs: Rewrite the DataBinding layer:
348            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
349            specific code.
350            - Get rid off the per DataSource type column autogeneration code.
351            - Use the CurrencyManager for everything that is DataBinding related.
352
353 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
354
355         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
356
357 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
358
359         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
360         DataManager to fetch the CurrencyManager for the DataGridView and to 
361         spare this logic for the other components to follow.
362
363 2008-12-31  Mario Carrion  <mcarrion@novell.com>
364
365         * MessageBox.cs: UIA support: new properties: UIAMessage, 
366         UIAMessageRectangle and UIAIconRectangle.
367
368 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
369
370         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
371         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
372
373 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
374
375         * DataGridView.cs: Do not autogenerate duplicate column for a 
376         data member that has already problematically been assigned one.
377         [Fixes bug #457305]
378
379 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
380
381         * ProfessionalColorTable.cs: Better detection of user's theme.
382         [Fixes bug #462766]
383
384 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
385
386         * DataGridView.cs: In the case where there are no autogenerated 
387         columns and the user adds columns problematically we must generate 
388         the rows after the very first column is added.
389
390 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
391
392         * DateTimePicker.cs: When increasing/decreasing the value of month
393         with ShowUpDown set to true, moving from december to january, and
394         moving from january to december should adjust the year to the next and
395         the previous year, respectively.
396         Fixes the remaining bits of #459674.
397
398 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
399
400         * DataGridView.cs: If a new cell is selected edit mode should be 
401         immediately enabled only if EditOnEnter is set. Whether the mouse 
402         or not was used to select the cell is irrelevant.
403
404 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
405
406         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
407         recursive rebinding.
408
409 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
410
411         * DateTimePicker.cs: Handle the "MMMM" month format.
412         Fixes #459674.
413
414 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
415
416         * DataGridView.cs: 
417            - Make ReBind private and refactor various calls to call ReBind 
418            instead of ClearBinding/DoBinding
419            - Rebind when the column collection changes
420         * DataGridViewColumnCollection.cs: 
421            - Leave the rebinding on change to be handled by the DataGridView.
422
423 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
424
425         * DataGridView.cs: Add a ReBind convenience method.
426         * DataGridViewColumnCollection.cs: Rebind when a column is added.
427         [Fixes bug #462019]
428
429 2008-12-23  Neville Gao  <nevillegao@gmail.com>
430
431         * StatusBar.cs: Modified argument variable.
432         * SplitContainer.cs: Control enabled to support accessibility.
433         [Fixes Bug #455950]
434
435 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
436
437         * ToolStripMenuItem.cs: Guard against an NRE.
438         [Fixes bug #457110]
439
440 2008-12-22  Mario Carrion  <mcarrion@novell.com>
441
442         * Control.cs: AccessibleXXXX properties don't return 
443         AccessibleObject.XXXX, instead a local referece is returned.
444
445 2008-12-22  Neville Gao  <nevillegao@gmail.com>
446
447         * PrintPreviewControl.cs: Added internal properties to support
448         accessibility.
449         [Fixes Bug #459699]
450
451 2008-12-19  Mario Carrion  <mcarrion@novell.com>
452
453         * Control.cs: Reverted r121561. 
454
455 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
456
457         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
458         it has been moved to the bridge.
459
460 2008-12-18  Brad Taylor  <brad@getcoded.net>
461
462         * DateTimePicker.cs: Add a few UIA specific events, and a couple
463         internal methods useful for UIA.
464
465 2008-12-18  Mario Carrion <mcarrion@novell.com>
466
467         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
468         [Fixes Bug #455752]
469
470 2008-12-17  Mike Gorse  <mgorse@novell.com>
471
472         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
473           item's Focused property is set.
474
475 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
476
477         * TreeView.cs:
478         * TreeNode.cs:
479         * TreeNodeCollection.cs: Add events for UIA support:
480         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
481         UIACollectionChanged.
482
483 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
484
485         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
486           SubItemStyle member field. 
487
488         Contributed under MIT/X11 license.
489
490 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
491
492         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
493         y coord, since it's useless in this case, and we need to rely only on
494         the number of rows and ItemHeight to compute this value.
495         Fixes part of #257471.
496
497 2008-12-15  Mike Gorse  <mgorse@novell.com>
498
499         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
500
501 2008-12-15  Mario Carrion  <mcarrion@novell.com>
502
503         * Control.cs: Accessibility properties instantiate AccessibilityObject when
504         needed.
505         [Fixes Bug #459223]
506
507 2008-12-15  Brad Taylor  <brad@getcoded.net>
508
509         * ToolStripItem.cs: Add a UIA specific event for listening for when a
510         ToolStripItem becomes selected or deselected.
511
512 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
513
514         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
515         .net does. Use the date in the point of the mouse move coords as the
516         new range as well, if the left button of the mouse is being pressed.
517         Fixes #364914.
518
519 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
520
521         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
522         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
523         effectively repaint the control.
524         Fixes the remaining bits of #417961.
525
526 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
527
528         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
529         range to contain only dates within the new possible range.
530         Fixes part of #417961.
531
532 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
533
534         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
535         length of the text, but the end position, so we need to substract 1 to
536         have a valid value. Also, in the same InputText method, don't use
537         SelectionLength as the length of the text, since the selected text
538         could actually be empty, but we need to set the value anyway.
539         Fixes #457370.
540
541 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
542
543         * TextBox.cs: Don't do any auto complete task if the custom source is
544         null or empty. Also avoid duplication of code.
545         Fixes #457743.
546
547 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
548
549         * DataGridView.cs: Refresh column sizes when new rows are added.
550         [Fixes bug #457050]
551
552 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
553         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
554         Split to create a line - we are already doing this, by _adding_ a new
555         one when rtf_cursor_x is 0 (this field gets this value just after we
556         receive the newline param as true). This avoids having a proportional number
557         of empty lines in the end of the rich text box.
558         Fixes #396664.
559
560 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
561
562         * RichTextBox.cs: When saving the contents as a plain text, don't add
563         a new line for every Line structure, since the data in Document
564         already contains the new line characters. This avoids duplicated new
565         lines using the Save methods.
566         Fixes #445618.
567
568 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
569
570         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
571         framework.  Fixes bug #457678.
572
573 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
574
575         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
576         where datasource is null.
577         [Fixes exception reported in bug 441240]
578
579 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
580
581         * DataGridView.cs: EndEdit validation fixes.
582
583 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
584
585         * DataGridView.cs: This is the cool patch that adds support for 
586         actually updating the data in the databinding backend after editing. 
587         With bonus firing and handling the DataError event.
588
589 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
590
591         * Line.cs: When calculating the text tags's Shift value, store it as
592         pixels instead of points. This way we can actually handle different
593         fonts in the same RichTextBox, as well as the right size of the caret.
594         Fixes part of #351938.
595
596 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
597
598         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
599         casted to CheckState causing InvalidCastExceptions.
600
601 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
602
603         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
604         to not depend on the item being clicked.
605
606 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
607
608         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
609         longer throws a NotImplementedException.
610
611 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
612
613         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
614         IDataGridViewEditingControl for editing.
615
616 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
617
618         * DataGridViewComboBoxCell.cs: Implement data binding support.
619
620 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
621
622         * DataGridView.cs: Use the CurrencyManager to update the data source 
623         binding position instead of casting the data sourcde to BindingSource.
624         This enables position updating for other type of data sources.
625
626 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
627
628         * ComboBox.cs: Update the SelectedIndex before updating the Text 
629         in OnDisplayMemberChanged.
630
631 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
632
633         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
634         [Fixes bug #457112]
635
636 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
637
638         * DataGridView.cs: Sorting fixes:
639            - Be strict when sorting is enabled.
640            - If there is a data source delegate the sorting request.
641
642 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
643
644         * Binding.cs: When converting the data also try with the destination 
645         type typeconverter. This indirectly adds support for Nullable types 
646         in our databinding layer.
647
648 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
649
650         * DataGridView.cs: When cell editing is finished focus back the 
651         DataGridView. Fixes keyboard navigation post-editing.
652
653 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
654
655         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
656         setting to after EndEdit is called for the old cell.
657
658 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
659
660         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
661
662 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
663
664         * XplatUIX11.cs: Send WM_HELP only to the focused window.
665
666 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
667
668         * CurrencyManager.cs: Fix exceptions when resetting the data source 
669         for the same time (e.g. in ComboBox): 
670            - Do not set the list position if we are still transferring data
671            - When resetting the list firstly push the data then update the 
672            binding.
673         * Binding.cs: Check BindingManager.Position == -1 instead of 
674         BindingManager.Current == null in order to avoid unexpected 
675         exceptions.
676
677 2008-12-05  Brad Taylor  <brad@getcoded.net>
678
679         * MonthCalendar.cs: Add UIA specific events so that we can know when
680         the selection changes, and when MaxSelectedCount changes.
681
682 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
683
684         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
685         used for anything.
686
687 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
688
689         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
690         to the control being drawn for the first time by:
691            - Implement DisplayedRowsCount to not rely on the control being
692            already painted. Also added support for the partial row flag.
693            - Fix scrolling to take into account partial rows and scroll to
694            them.
695         [Fixes bug #456527]
696
697 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
698
699         * DataGridView.cs: Do not reset the CurrentCell when the handle is
700         created if the user has already set it.
701
702 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
703
704         * DataGridView.cs: Fix CurrentCell to actually select the cell.
705
706 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
707
708         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
709         text and then let the underneath users of IDataObject interpret and
710         parse by themselves. 
711         Fixes #439251.
712
713 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
714
715         * DataGridView.cs: Fix my previous commit to actually update what it 
716         was supposed to.
717
718 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
719
720         * DataGridView.cs: Ensure that when a row is removed the all the 
721         current row/column/cell get updated. Fixes multiple exceptions.
722
723 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
724
725         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
726         is used.
727         [Fixes bug #443560]
728
729 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
730
731         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
732         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
733         new state.
734         [Fixes issue 1 in bug #443560]
735
736 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
737
738         * DataGridView.cs: Invalidate after the current row/column seletion 
739         chagnes.
740         [Fixes bug #438434]
741
742 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
743
744         * DataGridView.cs: Refresh the data if the data list is reset, etc.
745
746 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
747
748         * DataGridView.cs: Handle datasource state changes:
749            - IBindingList - list changes
750            - BindingSource - list changed and datasource changes
751
752 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
753
754         * DataGridView.cs: Select the first cell when databound. 
755         Visually select when CurrentCell is set.
756
757 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
758
759         * DataGridView.cs: Set the current cell before raising CellClick.
760
761 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
762
763         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
764         CellLeave events as this is already done in SetCurrentCellAddressCore.
765
766 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
767
768         * DataGridView.cs: Set the minimum size for the columns to be the 
769         width of their header, so that the columns don't get squashed 
770         all together.
771
772 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
773
774         * DataGridView.cs: After the data is bound PerformLayout, so that 
775         the columns get autosized.
776
777 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
778
779         * DataGridView.cs: Move all currentCell setting code into 
780         one central place - SetCurrentCellAddressCore. That way the 
781         current cell is properly updated when programatically set.
782         Fire RowEnter/Leave events.
783
784 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
785
786         * DataGridView.cs: Update the CurrencyManager.Position, so that 
787         when a BindingSource is used BindingSource.Current will be correct.
788
789 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
790
791         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
792            - No caption text is drawn because Color.Empty is used.
793            - Fix top and height off by 1.
794
795 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
796
797         * DataGridViewRow.cs: Implement DataBoundItem.
798
799 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
800
801         * BindingSource.cs: Return null for Current if there is no data present.
802
803 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
804
805         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
806         menus using the arrow keys. Also when handling the left arrow key, don't 
807         assign the current menu to the parent one, if the parent is null.
808         Fixes #446392.
809
810 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
811
812         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
813         #413501.
814
815 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
816
817         * Scrollbar.cs:
818         * ScrollableControl.cs: Simplify the code to manually set the size of
819         the thum area, avoiding duplication of code, and also preserving the
820         right value for different code paths - this can happen when size
821         changes are made to the scrollbar after setting LargeChange, Maximum
822         or related properties for the ScrollBar.
823
824 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
825
826         * ScrollableControl.cs: When scrolling, don't invalidate the entire
827         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
828         what .Net does: copy the visible area, and only invalidate the part of
829         the area that wasn't visible before scrolling.
830         Fixes #441738.
831
832 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
833
834         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
835         can clear ourselves when it is raised, we don't have a newrowindex
836         if we don't have any columns.
837         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
838         re-index after each delete so the NewRow will have the correct index.
839         [Fixes bug #448005]
840
841 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
842
843         * Form.cs: Don't change min/max size if it is empty.
844         [Fixes bug #447873]
845
846 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
847
848         * ScrollBar.cs:
849         * ScrollableControl.cs: When the manual thumb size is used, the
850         maximum allowed value should depend on that thumb size, instead of
851         LargeChange (using the maximum - LargeChange + 1 value). But
852         LargeChange should be used normally when incrementing/decrementing.
853         Fixes the remaining part of #441546.
854
855 2008-11-23  Andreia Gaita  <avidigal@novell.com>
856
857         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
858         until an about:blank has been loaded (according to spec). Fix 
859         ScrollbarsEnabled to set when a document is loaded (since we use js 
860         for it). Fix url so it reflects the current loading document and not 
861         the previous one. Send StatusChanged events.
862
863 2008-11-23  Andreia Gaita  <avidigal@novell.com>
864
865         * Application.cs: If a message comes in for an embedded control
866         (like webbrowser) when we're capturing the keyboard, release the
867         capture and continue.
868         [fixes #429462]
869
870 2008-11-22  Andreia Gaita  <avidigal@novell.com>
871
872         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
873
874 2008-11-21  Andreia Gaita  <avidigal@novell.com>
875
876         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
877         
878 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
879
880         * ScrollBar.cs:
881         * ScrollableControl.cs: Set manually the thumb size for the
882         ScrollableControl scrollbars, so any further changes to the underneath
883         scrollbars respect the original size.
884         Fixes part of #441546.
885
886 2008-11-21  Geoff Norton  <gnorton@novell.com>
887
888         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
889         PlatformID.MacOSX now exists.
890
891 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
892
893         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
894         Having something internal abstract isn't very nice for people who want
895         to inherit from this class.
896
897 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
898
899         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
900         invalid value.  Just return null for the Image, and use the ImageList's
901         ImageSize for calculations.
902
903 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
904
905         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
906         through DroppedDown so the proper events get called and state gets reset.
907         [Fixes bug #446805]
908
909 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
910
911         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
912         the collection is modified.
913
914 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
915
916         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
917         aren't always correct, and fixing them for every case is not worth the
918         negligible benefit they provide.
919         [Fixes bug #445713]
920
921 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
922
923         * DataGridView.cs: We should never add actual cells to the RowTemplate.
924         Internally, use RowTemplateFull to give us a new row with cells.
925         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
926         * DataGridViewRowCollection.cs: Use RowTemplateFull.
927
928 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
929
930         * XplatUIX11.cs: Forms without borders should be able to change its
931         size - specially they should be able to be maximized, adding the
932         respective MotifFunctions.Resize bit when setting window properties as
933         well as *not* marking the Hwnd as size fixed.
934         Fixes #444347.
935
936 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
937
938         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
939         an alpha value.
940         [Fixes bug #444348]
941
942 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
943
944         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
945         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
946         AutoSizeColumnModeChanged.
947         [Fixes bug #443609]
948
949 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
950
951         * DataGridViewRowCollection.cs: Guard against the user deleting the
952         NewRow.  Add an internal delete so we can still delete it.
953         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
954         [Fixes bug #442181]
955
956 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
957
958         * TextControl.cs: Add some order of operation to our math so
959         we don't end up with a negative height for our invalidate rect.
960         [Fixes bug #381889]
961
962 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
963
964         * Control.cs: When our enabled changes, notify our implicit children
965         controls as well as our regular controls.
966         [Fixes bug #441523]
967
968 2008-11-08  Andreia Gaita <shana@jitted.com> 
969
970         * HtmlElement.cs: Small code cleanup
971
972 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
973
974         * BindingNavigator.cs: MoveFirstItem should be enabled only if
975         position is larger than 0, not only different than 0. Also Position
976         and Count items should be enabled if the BindingSource is non null and
977         non empty.
978         Fixes #439961.
979
980 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
981
982         * TabControl.cs: Don't raise SelectedIndexChanged until we have
983         actually modified the tab collection, so TabCount will be correct.
984         [Fixes bug #441896]
985
986 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
987
988         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
989         NonSerialized to fix serialization of ListViewItem.
990
991 2008-11-04  Mike Gorse  <mgorse@novell.com>
992
993         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
994           focus change, and always call in SetFocusedItem.
995         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
996
997 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
998
999         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
1000         mode.  Based on a patch by John Mortlock.
1001         [Fixes bug #436790]
1002
1003 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1004
1005         * ListView.cs: Use the UsingGroups property where needed, instead of
1006         duplicating the check in other places.
1007
1008 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1009
1010         * ListView.cs: When calculating layout, refresh the count of items
1011         belonging to the default item, insteas of doing it only one time. This
1012         was already working fine for icon views, not not for details.
1013         Fixes #438948.
1014
1015 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1016
1017         * ListView.cs:
1018         * ListViewItem.cs:
1019         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
1020         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
1021         does.
1022         Fixes #437933.
1023
1024 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1025
1026         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
1027
1028 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1029
1030         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
1031         #441280, patch by Mike Gorse <mgorse@novell.com>.
1032
1033 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1034
1035         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
1036         if there is no scrollbar.
1037         [Fixes bug #440885]
1038
1039 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1040
1041         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
1042         patch from Andy Hume that fixes many issues with ProgressBar.
1043         [See bug #440220]
1044
1045 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1046
1047         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
1048         [Fixes bug #438866]
1049
1050 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1051
1052         * UpDownBase.cs:
1053         * DomainUpDown.cs:
1054         * NumericUpDown.cs: Internal events added to UpDownBase:
1055         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
1056         <ngao@novell.com>.
1057
1058 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1059
1060         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
1061
1062 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1063
1064         * ListView.cs:
1065         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
1066         Application.EnableVisualStyles hasn't been called.
1067         Fixes part of #437933.
1068
1069 2008-10-31  Andreia Gaita  <shana@jitted.com>
1070
1071         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
1072           if the container is not focused already, we need to specifically set
1073           focus to the first available control, or to the form itself if there
1074           are no controls.
1075
1076 2008-10-31  Andreia Gaita  <shana@jitted.com>
1077
1078         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
1079         WM_ACTIVATE have been processed before returning, so it is guaranteed that
1080         once it returns and the form is visible, it is actually on the screen on X11
1081
1082         * ContainerControl.cs: Only send focus to the control if the top container
1083           is already focused. This is so that, when a form is first shown, all
1084           the enter/leave events are done first before any focus stuff comes in.
1085           If a control has no top container, there's an extra check on Control.Focus
1086           to make sure it gets focused in this particular case.
1087
1088         * Control.cs: Force focus if the control is active but did not receive
1089           focus after being set as active.
1090
1091         * MdiClient.cs: Dispose the form when closing
1092
1093         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
1094           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
1095           if the window is a top Form.
1096           Reset all hwnd properties when the window has been destroyed so that
1097           we don't land in any codepaths that might try to do something with it.
1098           Added a bunch of debugging messages. If TRACE is defined, all X calls
1099           are logged through DebugHelper. Set a few missing EntryPoint attributes.
1100
1101 2008-10-29  Mario Carrion <mcarrion@novell.com>
1102
1103         * ListViewItem.cs: Control enabled to support Accessibility:
1104         - Internal events: UIATextChanged, UIASubItemTextChanged.
1105         - Internal event UIATextChanged in ListViewSubItem that triggers
1106         UIASubItemTextChanged.
1107         * ListView.cs: Control enabled to support Accessibility:
1108         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
1109         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
1110         - Internal event UIACollectionChanged in ColumnHeaderCollection.
1111         - Internal event UIACollectionChanged in ListViewItemCollection.
1112         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
1113         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
1114         - Internal methods: UIAGetHeaderBounds.
1115
1116 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1117
1118         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
1119         the event from the respective scrollbars.
1120         Fixes #436709.
1121
1122 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1123
1124         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
1125         textbox to know whether any navigation key will be handled or not. If
1126         not, don't pass the message to the textbox, and use it here instead. 
1127         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
1128         is more precise- than the previous AutoCompleteMatches one.
1129         This should the keyboard navigation in ComboBox when using auto
1130         complete modes.
1131
1132 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
1133
1134         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
1135         [Fixes bug #436730]
1136
1137 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
1138
1139         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
1140         overridden methods will get called.
1141         * ToolStripItem.cs: Raise Click before MouseUp.
1142         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
1143         the item's location into account.
1144         [Fixes bug #437683]
1145
1146 2008-10-24  Neville Gao  <nevillegao@gmail.com>
1147
1148         * NumericUpDown.cs: Control enabled to support accessibility.
1149         [Fiexes bug #438135]
1150
1151 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1152
1153         * TextBox.cs: Check that we actually have items no navigate, select
1154         text when pressing enter, as well as handle direction keys only if
1155         mode is different to Suggest or the suggest listbox is visible.
1156
1157 2008-10-23  Andreia Gaita  <shana@jitted.com>
1158
1159         * WebBrowser.cs: Use the new ContentStream property to retrieve
1160           a stream encoded from the document content
1161
1162 2008-10-23  Andreia Gaita  <shana@jitted.com>
1163
1164         * HtmlDocument.cs,
1165           HtmlElement.cs,
1166           HtmlWindow.cs: Fix GetHashcode for null objects
1167
1168 2008-10-22  Andreia Gaita  <shana@jitted.com>
1169
1170         * HtmlDocument.cs,
1171           HtmlElement.cs,
1172           HtmlWindow.cs: Fix equality operators (fixes #428173)
1173
1174 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
1175
1176         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
1177         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
1178         [Fixes bug #436772]
1179
1180 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
1181
1182         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
1183         same item with the mouse as was already selected.
1184         [Fixes bug #436789]
1185
1186 2008-10-21  Brad Taylor  <brad@getcoded.net>
1187         
1188         * TextControl.cs: Break out code to get the visible range into
1189           GetVisibleLineIndexes to be used in UIA code.
1190         
1191         * Line.cs:
1192         * TextControl.cs:
1193         * TextBoxBase.cs: Add comments indicating that the method or property
1194           is used via reflection from UIA code.
1195
1196 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1197
1198         * ListViewItem.cs: Match .net serialization.
1199         Fixes remaining part of #417520.
1200
1201 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
1202
1203         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
1204
1205 2008-10-20  Mario Carrion <mcarrion@novell.com>
1206
1207         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
1208         added: UIAToolTipRectangle.
1209
1210 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1211
1212         * ListViewItem.cs: When deserializing enumerate over the data, instead
1213         of accessing the data directly. This way we handle much better the
1214         cases were we lack information.
1215         Fixes #417520.
1216
1217 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1218
1219         * ListView.cs: When removing an item from a main ListView.Items
1220         collection (and not a ListViewGroupCollection.Items one), remove it
1221         also from the group, as .net does. Patch by Mario Carrion (mario at
1222         novell dot com).
1223         Fixes #436653.
1224
1225 2008-10-19  Andreia Gaita  <avidigal@novell.com>
1226
1227         * Form.cs: Forms that get closed without a handle being created are
1228         disposed in 2.0. Fixes failing FormTest.FormClose and
1229         FormTest.FormClose2 on windows.
1230
1231 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1232
1233         * ListView.cs: If both scrollbars are visible, the vertical one
1234         shouldn't extend too far down.
1235         Fixes #435771.
1236
1237 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
1238
1239         * DataGridView.cs: Add the ability to resize columns and rows with
1240         the mouse.  Also support double-clicking to autoresize.
1241         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
1242         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
1243         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
1244         isn't shown on autoresize.
1245         [Fixes bug #420193]
1246
1247 2008-10-17  Mario Carrion <mcarrion@novell.com>
1248
1249         * ComboBox.cs: Remove UIAListbox.
1250
1251 2008-10-17  Mario Carrion <mcarrion@novell.com>
1252
1253         * ComboBox.cs, ListBox.cs: Using added/removed item in 
1254           OnUIACollectionChangedEvent instead of index.
1255
1256 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
1257
1258         * ComboBox.cs: When we are sorting the items, if the item's type
1259         doesn't support IComparer, use a default one that compares based
1260         off the item's visible text.
1261         [Fixes bug #436328]
1262
1263 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1264
1265         * ColumnHeader.cs: Invalidate ListView.header_control when setting
1266         ImageIndex/ImageKey.
1267         * ThemeWin32Classic.cs: When drawing the column header, draw a image
1268         for the column if available, and make the required adjustments to the
1269         text location.
1270         Fixes #435105.
1271
1272 2008-10-17  Neville Gao  <nevillegao@gmail.com>
1273
1274         * StatusBarPanel.cs: Control enabled to support accessibility.
1275         [Fixes bug #435988]
1276
1277 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1278
1279         * DataGridView.cs: When a user begins an edit in the 'new row',
1280         make that a real row, and add a new 'new row'.  If the user
1281         cancels the edit, remove the new 'new row' and reset everything.
1282         Also, ensure UserAddedRow and UserRemovedRow events are raised.
1283         [Fixes bug #430954]
1284
1285 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
1286
1287         * TableLayoutSettings.cs: Fix NREs when deserializing and 
1288         panel is not yet set.
1289         [Fixes bug #436199]
1290
1291 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1292
1293         * DataGridView.cs: Invalidate after deleting a row.
1294
1295 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1296
1297         * DataGridView.cs: Handle Enter and Escape keys.
1298           - Move call to EndEdit to MoveCurrentCell.
1299           - Remove call to EndEdit from navigation key routines.
1300           - Fire CellLeave and CellEnter.
1301
1302 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1303
1304         * DataGridViewCell.cs: Some fixes to the new cell border
1305         painting code.
1306
1307 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1308
1309         * ThemeEngine.cs: Enable visualstyles rendering by default
1310         (on platforms that support it).
1311
1312 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
1313
1314         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
1315         MainForm.OnLoad has completed unless DoEvents is forced.
1316         [Fixes bug #412536]
1317
1318 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
1319
1320         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
1321
1322 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
1323
1324         * Control.cs: Make our implementation of DrawToBitmap better 
1325         match WmPaint.  [Fixes bug #435579]
1326
1327 2008-10-14  Andreia Gaita  <avidigal@novell.com>
1328
1329         * WebBrowser.cs: Use DocumentElement as the document's root for the
1330         whole content. Should fix DocumentText and DocumentStream problems.
1331
1332 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
1333
1334         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
1335         these will get called in DGV.OnCollectionChanged.  Make sure 
1336         OnCollectionChanged always gets called.
1337         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
1338         from every row.  Call this in OnCollectionChanged.
1339         [Fixes bug #433669]
1340
1341 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1342
1343         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
1344         textbox if auto complete is used, since we need to navigate over it.
1345         And in this case don't pass this messages to the base impl. Also hide
1346         the auto complete list box when displaying the drop down listbox.
1347         * TextBox.cs: new internal members to expose some of the auto complete
1348         functionality to combobox.
1349
1350 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
1351
1352         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
1353         MainForm.OnLoad has completed.
1354         [Fixes bug #412536]
1355
1356 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1357
1358         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
1359         Append support to this controls. We need it to apply new patches.
1360
1361 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1362
1363         * Control.cs: When updating z order in child controls, send to back
1364         the implicit controls. Also, do it explicitly, instead of making
1365         GetAllControls return the implicit controls in a specific order, and
1366         thus avoid depending on that, which could change in the future.
1367         Fixes #434304.
1368
1369 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1370
1371         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
1372         call to StartDrag, since we must fire DragDrop/DragLeave *before*
1373         that, as .net does - instead of firing DragDrop/DragLeave *after* the
1374         call to Control.DoDragDrop has completed. This is needed since at the
1375         point of returning, we have sent related dnd ClientMessages, but we
1376         need to wait for them to fire the wmf respective ones.
1377         Fixes #325076.
1378
1379 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
1380
1381         * LinkLabel.cs: Recreate link pieces when change Padding.
1382
1383 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
1384
1385         * LinkLabel.cs: Take Padding into account when recreate link pieces.
1386         [Fixes bug #412530]
1387
1388 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
1389
1390         * Control.cs: Implement internal property PaddingClientRectangle, it will be
1391         useful for drawing controls that must take care about Padding property.
1392
1393 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
1394
1395         * BindingSource.cs: Make item_type internal so we can access it in DGV.
1396         * DataGridView.cs: Add support for autogenerating columns from a
1397         BindingSource.
1398
1399 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1400
1401         * DataGridView.cs: Comment out an exception that is getting thrown
1402         too often currently.
1403
1404 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1405
1406         * DataGridView.cs: Always rebind to the datasource, as things may
1407         have changed in it that we aren't capturing yet.
1408
1409 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1410
1411         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
1412         drawing mode.  If we are top aligned, give ourselves some top padding.
1413
1414 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1415
1416         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
1417         events on the control under the mouse pointer, instead of firing them
1418         on the window generating the dnd operation. To achieve this re-use the
1419         code used to get the window under the pointer when getting MouseMove
1420         events.
1421         Fixes #381876.
1422
1423 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1424
1425         * X11Dnd.cs: Don't check that that the window sending the dnd events
1426         is the owner of the selection. Although Gtk+ sets it that way, it's
1427         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
1428         So, just as Gtk+ does, we set our window sending the dnd events as the
1429         owner of the selection, but don't check it when receiving them. This
1430         should fix interoperability with Qt/Kde.
1431         Fixes #324251.
1432
1433 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
1434
1435         * DataGridView.cs: Make sure we take the vertical scrollbar into
1436         account when autosizing columns.
1437
1438 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
1439
1440         * DataGridView.cs: Handle sorting datetimes.
1441
1442 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
1443
1444         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
1445         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
1446         compilation warnings.
1447
1448 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1449
1450         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
1451         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
1452         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
1453         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
1454         compilation warnings.
1455
1456 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1457
1458         * DataGridView.cs, DataGridViewCell.cs, 
1459         DataGridViewCellValidatingEventArgs.cs, 
1460         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
1461         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
1462         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
1463
1464 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1465
1466         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
1467         Cleanup compilation warnings.
1468
1469 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1470
1471         * XplatUIWin32.cs: Cleanup compilation warnings.
1472
1473 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1474
1475         * PropertyGrid.cs: Cleanup compilation warnings.
1476
1477 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1478
1479         * DataGridViewRow.cs: Only clear the row background if we
1480         are going to paint a new background.
1481
1482 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1483
1484         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
1485         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
1486         use PaintBorder instead.        
1487
1488 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1489
1490         * DataGridView.cs: When CellBorderStyle is set, update the
1491         AdvancedCellBorderStyle to match.
1492
1493 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1494
1495         * DataGridViewCell.cs: Add helper methods to convert Alignment
1496         to TextFormatFlags and align rectangles.
1497         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
1498         * DataGridViewImageCell.cs: Use Alignment when painting the image.
1499
1500 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
1501
1502         * ToolTip.cs: Display tooltips only for controls on the active form.
1503         [Fixes bug #428115]
1504
1505 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1506
1507         * DataGridView.cs: Make OnCellValueNeeded internal.
1508         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
1509         user can supply their own value if they choose.
1510
1511 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1512
1513         * DataGridViewColumnHeaderCell.cs: Create a new style object
1514         so the DefaultCellStyle doesn't get changed.
1515
1516 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1517
1518         * ToolStripItem.cs: Check to make sure the owner is actually
1519         changing in InternalOwner before doing any work.  Fixes some
1520         failing tests.
1521
1522 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1523
1524         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
1525         * DataGridView.cs: Use a column header's inherited style instead
1526         of just using the default.
1527
1528 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1529
1530         * SplitContainer.cs: Raise SplitterMoved when the splitter is
1531         moved through code.
1532
1533 2008-10-01  Mario Carrion <mcarrion@novell.com>
1534
1535         * ScrollBar.cs: Internal property added: UIAThumbPosition.
1536
1537 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1538
1539         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
1540
1541 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1542
1543         * ToolStripItem.cs: When the user sets Owner, we need to remove
1544         it from its previous owner and then add it to the new owner's
1545         item collection.  Also, create InternalOwner, so we can set the owner
1546         that doesn't do this new stuff.
1547         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
1548
1549 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1550
1551         * ToolStripItem.cs: When our parent changes, recalculate our text
1552         size, since we may be getting our Font from our parent.  When our
1553         owner's Font changes, recalculate ourselves as we may be using
1554         that font.
1555
1556 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
1557
1558         * MenuAPI.cs: Select the first option of a popup when opening the popup via
1559         return key. [Fixes bug #413792].
1560
1561 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1562
1563         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
1564         ambient properties.  (Get their value from their parents if
1565         values haven't been set.)
1566
1567 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1568
1569         * ToolStripSystemRenderer.cs: Call overridden methods' bases
1570         after our logic, so users can do painting by handling the events.
1571         Currently, we draw over any user painting.
1572
1573 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1574
1575         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
1576         after our logic, so users can do painting by handling the events.
1577         Currently, we draw over any user painting.
1578
1579 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
1580
1581         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
1582
1583 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
1584
1585         * TreeNode.cs, TreeView.cs: Move logic that determines the node
1586         image to draw to TreeNode.  Give Index/Keys put on the node
1587         precedence over the global one for the TreeView.
1588
1589 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
1590
1591         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
1592
1593 2008-09-29  Mario Carrion <mcarrion@novell.com>
1594
1595         * ListBox.cs: Index fixed.
1596
1597 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1598
1599         * TabControl.cs: When expanding the tab -because it's selected now-,
1600         using Right alignment, instead of adding some selected delta value to
1601         the X origin, substract it, so it gets a location adjacent to the panel, 
1602         instead of be more separated.
1603         Fixes #409170.
1604
1605 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
1606
1607         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
1608         own copies of them.
1609
1610 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1611
1612         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
1613         as well as the other static fields, to avoid using their previous
1614         values my mistake when handling the dnd events. This should avoid
1615         handling any status event after the drop has been finalized/cancelled.
1616
1617 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1618
1619         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
1620         operation, instead of waiting until we get any movement - this will
1621         help us to have the data available in case no movement was detected
1622         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
1623         Finally add a windows.forms-only fallback to fire the mentioned events
1624         if no movement at all was detected, just like .net does.
1625         Fixes #381876.
1626
1627 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
1628
1629         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
1630         return early if the text is empty because the icon doesn't get
1631         drawn then.  [Fixes bug #428113]
1632
1633 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1634
1635         * FileDialog.cs: Implement basic support for sorting by columns in
1636         Details view. Patch by Eric Petit.
1637         Fixes #428006.
1638
1639 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1640
1641         * ThemeWin32Classis.cs: When drawing gridlines take into account the
1642         case where ListView.ItemSize hasn't been computed, and provide a
1643         fallback as well. This prevents a division by 0.
1644
1645 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1646
1647         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
1648         correctly draw tooltip backgrounds.
1649
1650 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1651
1652         * ImageList.cs: Change CopyTo implementation to ensure clones are
1653         created of our images.
1654         [Fixes bug #409169]
1655
1656 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1657
1658         * Control.cs: When setting fonts, we need to ensure we change our
1659         reference to the new font object, even if it represents the same
1660         font as before.  If we don't, the original font can get disposed
1661         and we will still try to use it.
1662         [Fixes bug #386450]
1663
1664 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1665
1666         * FileDialog.cs: Take into account Tile view when selecting the view
1667         (2.0 profile).
1668
1669 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1670
1671         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
1672         the item bounds, since we can't iterate over them in virtual mode.
1673         Also fix wrong calculation of the gridlines when using scrolling.
1674         Fixes #400390.
1675
1676 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1677
1678         * XplatUIX11.cs: When handling EnterNotify events, take into account
1679         both the public and implicit controls when trying to detect the
1680         grab/ungrab process. This should fix ListView selection in Details
1681         view.
1682
1683 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1684
1685         * TreeView.cs: Redraw the whole node area when the selected node changes.
1686         Things like state images were not getting redrawn because the invalid
1687         rectangle was too small.
1688         [Fixes bug #428211]
1689
1690 2008-09-23  Mario Carrion  <mcarrion@novell.com>
1691
1692         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
1693         [Fixes bug #428993]
1694
1695 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1696
1697         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
1698         [Fixes bug #428114]
1699
1700 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1701
1702         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
1703         [Fixes bug #427884]
1704
1705 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1706
1707         * StatusBar.cs: Add tooltip support.
1708         [Fixes bug #428113]
1709
1710 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1711
1712         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
1713         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
1714         hlaustralia.com.au).
1715         Fixes #425360.
1716
1717 2008-09-23  Neville Gao  <nevillegao@gmail.com>
1718
1719         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
1720         [Fixes bug #419079]
1721
1722 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
1723
1724         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
1725         [Fixes bug #428107]
1726
1727 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1728
1729         * ListView.cs: Don't do anything when EnsureVisible is called inside a
1730         BeginUpdate/EndUpdate block.
1731         Fixes #425049.
1732
1733 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1734
1735         * ListViewItem.cs: The semantics for the public .ctor of
1736         ListViewSubItemCollection need us to already have a Text value for the
1737         item, which in our implementation have as available *after* adding the
1738         first sub item. So create an internal .ctor that satisfies our needs
1739         and let the public .ctor have the same semantics as .net.
1740         Fixes #427561.
1741
1742 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1743
1744         * ListControl.cs: Changes in Formatting related values should call
1745         RefreshItems, as .net does.
1746         * ComboBox.cs:
1747         * ListBox.cs: In the respective overrides of RefreshItems calculate
1748         layout as well as refreshing - again, this is what .net does.
1749         Fixes #426168.
1750
1751 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1752
1753         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
1754         since we are already doing that when we change the value of the
1755         scrollbar or force the call to ScrollWindow in the same method. This
1756         way we don't cause a Invalidate call for all the listbox bounds for
1757         methods calling UpdateTopItem with an already updated top item. This
1758         was happening specially calling EnsureVisible with already visible
1759         items.
1760
1761 2008-09-18  Mike Gorse <mgorse@novell.com>
1762
1763         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
1764           XplatUIStructs.cs: Added KeyFilter
1765         [Fixes bug #427039]
1766
1767 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1768
1769         * RelatedPropertyManager.cs: The properties returned by
1770         GetItemProperties should be that ones of the *actual* object returned
1771         by the property, not the property type - this is very special when the
1772         property exposes a type, but the returned object actually is a child
1773         class and implements more functionality and properties.
1774
1775 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1776
1777         * Binding.cs: Don't look for the property in the data source if the
1778         passed string is empty.
1779
1780 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
1781
1782         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
1783         fix unused variable warnings.
1784
1785 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
1786
1787         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
1788         [Fixes bug #427073]
1789
1790 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
1791
1792         * XplatUIX11.cs: 
1793          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
1794          leads to the window manager overriding our border style and zorder. 
1795          - Allow the activation of non-modal forms, which are children of a 
1796          modal form.
1797         [Fixes bug #423417]
1798
1799 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
1800
1801         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
1802         ask the window manager to do the work instead of changing the property 
1803         directly.
1804         [Fixes bug #423417]
1805
1806 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
1807
1808         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
1809         AddNew to fix some navigation for empty datasets. [Fixes #323053]
1810
1811 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
1812
1813         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
1814         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
1815         border and fixes some drawing issues when resize form.
1816
1817 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
1818
1819         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
1820         
1821         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
1822         AcceptButton.
1823
1824 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
1825
1826         * TextBoxBase.cs: For standard textbox the scrollbars are always 
1827         visible if Multiline is true.
1828         [Fixes bug #426896]
1829
1830 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
1831
1832         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
1833         patch.
1834         
1835 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
1836
1837         [Fixes most od DBNull and HeadersVisible problems]
1838         
1839         * DataGrid.cs:
1840         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
1841         returns the value that we need.
1842         - Fixed FromPixelToColumn method that return zero for first     column and for
1843         row header cell, now it returns -1 for row header cell.
1844         - Fixed HitTest to check row header cell in column header area, it now
1845         returns HitTestType.None. [Fixes #322864]
1846         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
1847         checks for RowHeadersVisible and other things.
1848         - If an exception occurs when setting CurrentCell and user type 'yes' in
1849         message dialog, invalidade current and new cell and set setting_current_cell
1850         to false to prevent future errors. [Partially fixes #323050]
1851
1852         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
1853         value (SetColumnValueAtRow), it must be done by grid to properly show 
1854         messages. [Fixes #323050]
1855
1856         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
1857         better draw column and row header. Also dont draw anything when column
1858         headers is not visible.
1859
1860 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1861
1862         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
1863         logic.
1864
1865 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1866
1867         * TreeView.cs: Don't start editing a node on right click, only
1868         left click.
1869
1870 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1871
1872         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
1873         disabled over a year ago.
1874         * Form.cs: Wrap calling Load in a try/catch because it can happen
1875         before the catch-all one in NativeWindow.
1876         [Fixes bug #425414]
1877
1878 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1879
1880         * ToolStripDropDownMenu.cs: Calculate the connected area better
1881         to take into account when the drop down is not directly under the
1882         owner item.
1883         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
1884
1885 2008-09-16  Mario Carrion <mcarrion@novell.com>
1886
1887         * ScrollBar.cs: New event added: UIAValueChanged, generated when
1888           LargeChange, SmallChange, Maximum or Minimum values are changed.
1889         [Fixes bug #426464]
1890
1891 2008-09-16  Mario Carrion <mcarrion@novell.com>
1892
1893         * ErrorProvider.cs: Component enabled to support accessibility.
1894         * Application.cs: Updated to Initialize UIA in ErrorProvider.
1895         [Fixes bug #426459]
1896
1897 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1898
1899         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
1900         so we don't highlight on first focus.
1901         [Fixes bug #360869]
1902
1903 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1904
1905         * TextControl.cs: Correctly calculate the height of the area we 
1906         need to invalidate when we have started scrolling and viewport_y
1907         is used.  [Fixes bug #387608]
1908
1909 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1910
1911         * TextControl.cs: When getting the SelectedText, don't add in
1912         NewLine characters, as they are already contained in the lines.
1913         [Fixes bug #388115]
1914
1915 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1916
1917         * TextBoxBase.cs: Replace the buggy Lines setter with one that
1918         simply concats the lines and send it to the Text setter.
1919         [Fixes issue #2 and #3 of 388115]
1920
1921 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1922
1923         * Binding.cs: The default value of DataSourceNullValue should be
1924         Convert.DBNull actually. Also, the NullValue should only be used *if*
1925         itself is not null, and use the null/Convert.DBNull value instead.
1926
1927 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1928
1929         * TextControl.cs: Add a method to convert a string newline to the
1930         newline enum.
1931         * TextBoxBase.cs: When the user hits enter, insert a native newline.
1932         [Fixes part 1 of bug #388115]
1933
1934 2008-09-15  Mario Carrion <mcarrion@novell.com>
1935
1936         * ToolTip.cs: UnPopup event set to internal to match public API.
1937
1938 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1939
1940         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
1941         have to remove the Ctrl in order for the focus moving code to kick in.
1942         [Fixes bug #426170]
1943
1944 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1945
1946         * CheckedListBox.cs: Return the real item index from Add.  It may not be
1947         the last item if the list is sorted.  The user can change the NewValue in
1948         the ItemCheck event, we need to use that value if so.
1949         * ListBox.cs: Return the real item index from a sorted Add.
1950         [Fixes bug #426166]
1951
1952 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
1953
1954         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
1955         happen that the icons from the theme is missing or the particular size 
1956         unavailable.
1957         [Fixes bug #424981]
1958
1959 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1960
1961         * Binding.cs: When assigning null or DBNull depending on value/ref type,
1962         use IsValueType instead to get the precise desired value.
1963         Fixes #424276.
1964
1965 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1966
1967         * TreeNodeCollection.cs: When adding a new node to an opened node,
1968         we have to invalidate everything below the parent node because
1969         every node scoots down and we have to repaint them.
1970         [Fixes bug #411386]
1971
1972 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1973
1974         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
1975         property into account when drawing.
1976         [Fixes bug #416064]
1977
1978 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1979
1980         * ListBox.cs: When calling Items.Clear(), call
1981         SelectedIndexCollection.ClearCore instead of normal Clear method, to
1982         not fire any Selected*Changed event - this is done to match .net and
1983         don't have invalid values when changing the DataSourceProperty.
1984         Fixes #424273.
1985
1986 2008-09-12  Mario Carrion  <mcarrion@novell.com>
1987
1988         * HelpProvider.cs: Control enabled to support accessibility.
1989         * Application.cs: Updated to Initialize UIA in HelpProvider.
1990         [Fixes bug #425988]
1991
1992 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1993
1994         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
1995         make the dialog TopMost as well.
1996         [Fixes bug #425984]
1997
1998 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1999
2000         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
2001         clipboard data better.
2002         [Fixes bug #414446]
2003
2004 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2005
2006         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
2007         TextChanged and SelectionChanged events fire in the same order as .Net.
2008         [Fixes bug #425725]
2009
2010 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2011
2012         * DataGridView.cs: When sorting a column, if it only contains numbers,
2013         do a numeric sort instead of a string sort.
2014         [Fixes bug #425849]
2015
2016 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2017
2018         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
2019         against NRE's when the settings have a null panel.
2020         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
2021         the panel gets set.
2022         [Fixes bug #425647]
2023
2024 2008-09-11  Mario Carrion  <mcarrion@novell.com>
2025
2026         * ToolTip.cs: Control enabled to support accessibility.
2027         * Application.cs: Updated to Initialize UIA in ToolTip.
2028         [Fixes bug #425277]
2029
2030 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2031
2032         * Control.cs: Make the custom Enumerator internal to fix build.
2033
2034 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2035
2036         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
2037         already in edit mode, begin edit mode.  Generally edit mode isn't
2038         started until the second click, but CheckBoxes are special.
2039
2040 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2041
2042         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
2043         since that can be set to anything.  Always add them to the Control's
2044         parent.  [Fixes bug #416058]
2045
2046 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2047
2048         * ListView.cs: Use a custom enumerator for ListViewItemCollection
2049         so items can be deleted in a foreach.
2050         [Fixes bug #425342]
2051
2052 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2053
2054         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
2055         Store the user set explicit height so that the row can be AutoSized
2056         and then when AutoSize is turned off, it can get its original size back.
2057         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
2058         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
2059         rows' heights back to their explicit values.
2060         [Fixes bug #415780]
2061
2062 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2063
2064         * DateTimePicker.cs: When getting focus, select the checkbox if we are
2065         already showing it. Also, don't change its value when pressing space
2066         if the checkbox is not visible (ShowCheckBox as false). Finally, the
2067         checkbox should remain selected as long as Checked is false, and the
2068         other parts are disabled.
2069         Fixes #424267.
2070         
2071 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2072
2073         * MessageBox.cs: Handle shortcut keys to dialog buttons.
2074         [Fixes bug #425425]
2075
2076 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2077
2078         * Binding.cs: When the value retrieved from the control property is
2079         null, don't return Convert.DBNull for Nullable instances, since they
2080         can *actually* get a null value.
2081         Fixes #424265.
2082
2083 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
2084
2085         * Control.cs: Add an internal field to force doublebuffering regardless
2086         of what the public mechanisms are set to.  This is because MS's native
2087         controls are doublebuffered even though their .Net bits are set to false.
2088         * ProgressBar.cs: Set force_double_buffer to true.
2089         [Fixes bug #406595]
2090
2091 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
2092
2093         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
2094         the cell template.
2095         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
2096         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
2097         without EditingControls, paint background selection for types without
2098         EditingControls, reset the EditingCellValueChanged flag when the
2099         cell's value is committed.
2100         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
2101         have EditingControls, remove a double call to a cell's OnContentClickInternal,
2102         don't do cell changing logic in OnMouseDown if the cell didn't change.
2103         [Fixes bug #420351]
2104
2105 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2106
2107         * DateTimePicker.cs: Fix the edition of am/pm specifier.
2108
2109 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
2110
2111         * TextControl.cs: Add "&" to the list of valid characters in a URL.
2112
2113 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2114
2115         * DateTimePicker.cs: Before incrementing or decrementing any part in
2116         the textbox, end any current edit. Also when ending the current edit
2117         use the editing_part_index field instead of the current selected
2118         value, since they can be out of synch, and we really need to work on
2119         the *real* current edit part. Finally when PartData.Selected changes,
2120         always try to end any ongoing edit.
2121         This should fix some small errors handling mouse navigation and
2122         increase/decrease operations.
2123
2124 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2125
2126         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
2127         respectively) should handled different, since the 12 hours format
2128         needs the value typed by the user to be adjusted depending on the
2129         a.m/p.m value, so it is preserved, and only changed when the value
2130         reaches the 12 value (when it changes from a.m to p.m).
2131         Fixes part of #416555.
2132
2133 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2134
2135         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
2136         * ToolStripDropDownItem.cs: Don't fire events and such again if
2137         ShowDropDown is called on an already dropped down item.
2138         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
2139         subitems, the user may add some in the DropDownOpening event.
2140         [Fixes bug #417877]
2141
2142 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2143
2144         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
2145         [Fixes bug #424270]
2146
2147 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2148
2149         * MdiClient.cs: When looking for menustrips on a child form to merge,
2150         look inside ToolStripContainers.
2151         [Fixes bug #424264]
2152
2153 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
2154
2155         * ErrorProvider.cs: Unbreak my previous commit.
2156
2157 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
2158
2159         * ErrorProvider.cs: Icon should always be 16x16.
2160         [Fixes bug #424380]
2161
2162 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
2163
2164         * GridEntry.cs: Invalidate the child items cache when the property 
2165         value changes.
2166
2167 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
2168
2169         * GridEntry.cs, PropertyGridView.cs: 
2170            - Update the ReadOnly detection and rendering to finally hopefully 
2171            match the one of MSFT.
2172            - Niceify and move the debug CWLS.
2173         [Fixes bug #409028]
2174
2175 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2176
2177         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
2178         since we are already calling Invalidate for the entire control when
2179         needed - and call Redraw() when size changes, since we need to paint
2180         there by ourselved and not anymore from the mentioned method. 
2181         This should improve the layout process. Also clean some not needed calls 
2182         here and there.
2183
2184 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
2185
2186         * MenuAPI.cs: Add a null check to the Alt-F4 code.
2187         [Fixes bug #420309]
2188
2189 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
2190
2191         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
2192         [Fixes bug #423040]
2193
2194 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
2195
2196         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
2197         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
2198         on item expansion. Improves performance and fixes bug #417955.
2199         [Fixes bug #417955]
2200
2201 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
2202
2203         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
2204         fix the build.
2205
2206 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2207
2208         * TextControl.cs: Add "_" to the list of valid characters in a URL.
2209         [Fixes bug #423408]
2210
2211 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2212
2213         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
2214         region gets set.
2215         [Fixes bug #414166]
2216
2217 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2218
2219         * FontDialog.cs: When storing our font size from the starting font,
2220         use SizeInPoints instead of Size in case Size is a different unit
2221         from Points.
2222         [Fixes bug #416489]
2223
2224 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2225
2226         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
2227         don't use it for anything else, check if a directory is highlighted.
2228         If it is, navigate into it.
2229         [Fixes bug #422087]
2230
2231 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2232
2233         * Binding.cs: When acquiring a BindingManagerBase for the first time,
2234         check that the specified property actually exists in the data source,
2235         and throw an ArgumentException if that's not the case - this is only
2236         done for this scenario, since for later cases (such Position changes)
2237         we throw different exceptions (match .Net).
2238
2239 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
2240
2241         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
2242           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
2243           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
2244           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
2245           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
2246           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
2247           properties.
2248           [Fixes bug #418684]
2249
2250 2008-09-03  Neville Gao  <nevillegao@gmail.com>
2251
2252         * StatusBar.cs: Control enabled to support accessibility.
2253         [Fixes bug #419079]
2254
2255 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2256
2257         * Binding.cs: When connecting the event handler for the "Changed"
2258         event for the property, only do it for PropertyManager, and not for
2259         CurrencyManager - this is exactly what does .Net, totally ignoring any
2260         change in the property of the elements of a list.
2261         Fixes the tests.
2262
2263 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
2264
2265         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
2266         to Windows when creating a window, as we fake MDI stuffs.
2267         [Fixes bug #421858]
2268
2269 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
2270
2271         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
2272         change takes effect.
2273
2274 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
2275
2276         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
2277         [Fixes bug #419001]
2278
2279 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
2280
2281         * DataGridView.cs: Raise CellContentClick event.
2282         [Fixes part of bug #420351]
2283
2284 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2285
2286         * ScrollBar.cs: Control enabled to support accessibility.
2287         [Fixes bug #416759]
2288
2289 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2290
2291         * ComboBox.cs: Control enabled to support accessibility.
2292         [Fixes bug #416663]
2293
2294 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2295
2296         * ListBox.cs: Control enabled to support accessibility.
2297         [Fixes bug #416640]
2298
2299 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
2300
2301         * ComboBox.cs: Don't suppress the TextChanged event when changing
2302         the SelectedIndex.
2303         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
2304         and re-raise it.
2305         [Fixes bug #420673]
2306
2307 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
2308
2309         * ErrorProvider.cs: Fix a regression NRE when setting properties
2310         for a control before it has a parent.
2311         [Fixes bug #420305]
2312
2313 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2314
2315         * Binding.cs: Use the BindingManagerBase.Current value to obtain
2316         connect the property "Changed" event, instead of using the data
2317         sources - this is useful when the property specifies actually a
2318         multiple objects path.
2319         Fixes part of #417973.
2320
2321 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2322
2323         * RelatedPropertyManager.cs: PropertyManager instances associated to a
2324         nested properties should return not the properties of the data source
2325         itself, but the properties of the type of a specific property in the
2326         data source - match .net.
2327
2328 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
2329
2330         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
2331         AddRange overloads into AddItems method, and added missing NULL check.
2332         Added extra argument check to RemoveAt for compatibility with MS. 
2333         Modified IList implementation of Add, Contains, IndexOf and Remove to
2334         throw an ArgumentException if item is not an int. Modified IList.Insert
2335         to throw a NotSupportException instead of an Exception. Implemented
2336         ICollection.
2337         (ObjectCollection): To avoid duplication, use AddItems method from
2338         AddRange overloads. On 1.0 profile, first perform NULL check on items
2339         in AddItems.
2340
2341 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
2342
2343         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
2344          #419087.
2345
2346 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
2347
2348         * X11Keyboard.cs : comment out some Console.WriteLine().
2349
2350 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
2351
2352         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
2353           even if premises are not filled. Also XLookupString() was not
2354           receiving correct input, which blocked precise input handling
2355           on non-XIM mode.
2356
2357 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2358
2359         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
2360         type of delegate, instead of EventHandler - this was causing a type
2361         cast exception in all apps handling this event.
2362         Fixes #417876.
2363
2364 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
2365
2366         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
2367         ShowDropDown to give the user a chance to dynamically add
2368         drop down items.  [Step 1 of fixing bug #417877]
2369
2370 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2371
2372         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
2373         had any mouse motion since the call to StartDrag, to match the dnd
2374         behaviour of .net.
2375         Fixes part of #381876.
2376
2377 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2378
2379         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
2380         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
2381         Also, if we are actually moving into a different window after
2382         grabbing, generate a LeaveNotify event for the previous window, since
2383         we need to fire the leave events until the grab ends, not when
2384         actually moving outside of the control.
2385
2386 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2387
2388         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
2389         events only for client windows was wrong - we need to compare the
2390         client window against the window receiving the EnterNotify event, not
2391         against zero (since client window is never Zero, btw).
2392         This prevents having unnecessary handling of EnterNotify events for
2393         non-client windows when a gran begins.
2394
2395 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2396
2397         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
2398         MouseMove/MotionNotify events at all (which should only happen after
2399         MouseUp/ButtonRelease, as .Net does).
2400         This avoids firing an extra and unnecessary MouseMove event just after
2401         every MouseDown event.
2402
2403 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2404
2405         * LinkLabel.cs: Always clear any previous links when LinkArea
2406         is set.  [Fixes bug #410709]
2407
2408 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2409
2410         * ToolStripProfessionalRenderer.cs: Revert last change.
2411         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
2412         for ToolStripDropDownBackground.
2413
2414 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2415
2416         * ToolStripProfessionalRenderer.cs: Use Window color for the 
2417         background of dropdowns to match .Net when the user is not
2418         using the default white.  [Fixes bug #418108]
2419
2420 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
2421
2422         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
2423           it caused timer registration twice. Fixed bug #418107.
2424
2425 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2426
2427         [Correction: This is the actual change to X11Dnd issue, not the
2428         previous one, which was actually a different issue.]
2429
2430         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
2431         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2432         when the pointer is actually in motion, but only when the pointer
2433         seems to stop (as .net does).
2434         Fixes part of #381876.
2435
2436
2437 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
2438
2439         * ListBox.cs: Fix CopyTo implementation.
2440         [Fixes bug #409169]
2441
2442 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
2443
2444         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
2445         drawing a ComboBox's background.  Fixes bad disabled rendering when
2446         the control is not at 0,0.
2447         [Fixes bug #416063]
2448
2449 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
2450
2451         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
2452         ComponentModel layer, which will properly prioritize the attributes.
2453         Avoids wrong prioritization of duplicate attributes when retrieving 
2454         the converter and editor.
2455         [Fixes bug #417729]
2456
2457 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2458
2459         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
2460         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2461         when the pointer is actually in motion, but only when the pointer
2462         seems to stop (as .net does).
2463         Fixes part of #381876.
2464
2465 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
2466
2467         * GridEntry.cs: Perform stricter check for the ParentEntry's 
2468         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
2469         implementation.
2470         [Fixes bug #417567]
2471
2472 2008-08-14  Geoff Norton  <gnorton@novell.com>
2473
2474         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
2475         Fixes #396983.  Properly fix ActiveWindow trackin and do not
2476         prematurely show POPUP windows.
2477
2478 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2479
2480         * XplatUIX11.cs: Handle the obscured regions while scrolling using
2481         GraphicsExpose event, processing it just after we copy the scrolled
2482         area. This ensures that the next calls to ScrollWindow will copy
2483         regions already updated, and the scrolling will be smooth. Also remove
2484         the code that was trying to detect the obscured regions, since we are
2485         not using it anymore (too slow).
2486
2487 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2488
2489         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
2490         MultiExtended mode, by separating some logic between the ctrl/shift
2491         handling. Also ignore any MouseMove events generated together with
2492         MouseDown events - we are only interested in the real motion event.
2493         Fixes part of #414963.
2494
2495 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
2496
2497         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
2498         is selected.  [Fixes bug #414143]
2499
2500 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
2501
2502         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
2503         and not the parent one (the propertyowner). Fixes the behavior of 
2504         GetConverter/GetEditor.
2505         [Fixes bug #415452]
2506
2507 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
2508
2509         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
2510         [Fixes part of bug #415452]
2511
2512 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
2513
2514         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
2515         GridEntry, not the current.
2516         [Fixes bug #413896]
2517
2518 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
2519
2520         * TextBoxBase.cs: De-internalize max_length field.
2521         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
2522         share the same logic.
2523         [Fixes bug #414454]
2524
2525 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2526
2527         * ListBox.cs: Selection changes made in the MouseDown handler should
2528         use the *Core versions of selection in SelectedIndices collection,
2529         since the SelectedIndexChanged/SelectedValueChanged events are fired
2530         until we get a MouseUp event, and thus we need to separate the logic
2531         from the events, as done in the keyboard navigation. Also, fire those
2532         selection events from keyboard navigation in SelectionMode.None, even
2533         if we don't have a selection, as .Net does.
2534
2535 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
2536
2537         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
2538         last change introduced when an item is clicked but isn't on a toolstrip.
2539
2540 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2541
2542         * ListBindingHelper.cs: When looking for an object's properties, check
2543         if it implements ICustomTypeDescriptor, in which case we should
2544         resolve the propertu based on its GetProperties method, not in its
2545         actual properties. This is what .Net seems to do.
2546         Fixes a UsingWebBrowser problem during initialization.
2547
2548 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2549
2550         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
2551         sitting on a MenuStrip.
2552
2553 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2554
2555         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
2556         no children with the keyboard, we need to release the keyboard capture.
2557         [Fixes bug #413567]
2558
2559 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2560
2561         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
2562         no children with the keyboard, we need to release the keyboard capture.
2563         [Fixes bug #413567]
2564
2565 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
2566
2567         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
2568         the GTK+-based implementation of VisualStyles.
2569         * ThemeWin32Classic.cs: Exposed various layout values for use in the
2570         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
2571         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
2572         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
2573         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
2574         TrackBarHorizontalTrackHeight.
2575
2576 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
2577
2578         * TabControl.cs: Added hot style handling for the scroll buttons.
2579         right_slider_state, left_slider_state are now of type PushButtonState to
2580         allow for a hot state. Added tracking of the mouse button being held down
2581         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
2582         LeftScrollButtonArea.
2583         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
2584         TabControlGetRightScrollRect.
2585
2586 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2587
2588         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
2589         runtime errors.
2590
2591 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2592
2593         * Form.cs: Ensure that we reset the shown_raised flag after 
2594         the form is closed, so that we raise the show events the next 
2595         time the form is shown.
2596         [Fixes bug #413141]
2597
2598 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2599
2600         * Form.cs: Ensure closing events are raised only once.
2601         [Fixes bug #413143]
2602
2603 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2604
2605         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
2606         so that we can successfully generate the LParam in-place instead of 
2607         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
2608         navigation for menus.
2609
2610 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2611
2612         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
2613         'navigating'. Fixes bug #411356.
2614
2615 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2616
2617         [Fixed remaining issues of #406773 (#1)]
2618         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
2619
2620         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
2621         MainMenu (already done) and ContextMenu creation.
2622
2623         * ContextMenu.cs: Create tracker on construction. 
2624
2625 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2626
2627         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
2628         possible to instantiate MenuTracker without GrabControl.
2629
2630 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2631
2632         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
2633
2634         * MainMenu.cs: Set GrabControl on SetForm using current form.
2635
2636 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2637
2638         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
2639
2640 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2641
2642         * MenuAPI.cs: Check if menu is activated before deactivate it in 
2643         ProcessShortcut.
2644
2645 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2646
2647         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
2648         ColumnStyle.cs: 
2649         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
2650          - One style instance can only participate in a single style collection.
2651          - Styles can request their owner to layout whenever their properties 
2652          change.
2653          [Fixes bugs #412583 and #412582]
2654
2655 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
2656
2657         * X11Keyboard.cs: Implement the generation of the LParam for 
2658         all keyboard messages.
2659         [Fixes bug #378728]
2660
2661 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
2662
2663         * ListBox.cs: Don't let the user set TopIndex so high that it
2664         scrolls up far enough to show empty items.
2665         [Fixes bug #412728]
2666
2667 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2668
2669         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
2670         (I'm an idiot and forgot to commit the actual changes, as well as
2671         specify the right file, which is this one, not ListView.cs).
2672
2673 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2674
2675         * ListView.cs: Don't draw ListViewSubItem instances from
2676         DrawListViewItem - we need to reuse the main item's drawing for the
2677         first sub item in case owner draw is true, but wants the system to
2678         do the default draw for the first sub item, without incurring in a
2679         recursion problem.
2680         Fixes #410880.
2681
2682 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
2683
2684         * ToolStripButton.cs: Update Checked for CheckOnClick before
2685         raising the Click event.  [Fixes bug #412505]
2686
2687 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
2688
2689         * Form.cs: Remove some seems leftover code for non-TopLevel's 
2690         CreateParams, which is breaking ClientSize sizing, because it 
2691         removes the border window styles.
2692
2693 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
2694
2695         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
2696         changes.
2697
2698 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
2699
2700         * WebBrowser.cs: Removed debug output.
2701
2702 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
2703
2704         * FileDialog.cs: Apply patch from Ernesto to clean up some
2705         dialog messages.
2706
2707 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2708
2709         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
2710         that the change has an immediate effect.
2711
2712 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2713
2714         * ScrollableControl.cs: Update PerformLayout calls to include 
2715         provide the name of the property that changed.
2716
2717 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2718
2719         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
2720         location. Fixes drawing of border and cell borders if scrollable.
2721
2722 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2723
2724         * ScrollableControl.cs: Perform layouting after the AutoScroll 
2725         properties have changed, so that the changes have immediate 
2726         effect.
2727         [Fixes bug #409090]
2728
2729 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2730
2731         * XplatUIX11.cs: Non Client area is actually Client such in the 
2732         case of NotifyIcon, so double check WholeWindow == ClientWindow 
2733         when adding an expose.
2734         [Fixes bugs #324237 and #357022]
2735
2736 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2737
2738         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
2739         repaint the cell borders.
2740
2741 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2742
2743         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
2744         disposal to avoid unexpected ObjectDisposedExceptions.
2745
2746 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
2747
2748         * TableLayoutPanel.cs: Layout on Row/Column count change.
2749
2750 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
2751
2752         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
2753         bug #409351.
2754         * PictureBox.cs: When ImageLocation is set to null or an empty string,
2755         only set image to null if it was previously initialized from an url
2756         (or using ImageLocation). In ImageLocation, load specified image
2757         asynchronously if WaitOnLoad is false. Added support for local file
2758         paths to LoadAsync, and added missing argument check.
2759
2760 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2761
2762         * DateTimePicker.cs: 
2763         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
2764         order to set the value as required (which means: when selection
2765         changes for a part being edited, and not before that if not needed).
2766         Also use an enum to describe which part are we using, and use the
2767         selection as a property in PartData, in order to notify the
2768         DateTimePicker owner that we need to end the current edit.
2769         Fixes #383462.
2770
2771 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
2772
2773         * PropertyGridTextBox.cs: Validation should be performed only if we 
2774         are focused. We can lose focus for example if the Return key is used 
2775         to set the entry and there is an error. When the message box is 
2776         displayed we would have validate on click in the message box.
2777
2778 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
2779
2780         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
2781         in order to determine that we are expandable is wrong. There was a bug, 
2782         now fixed, in TypeDescriptor that was causing the wrong converter to be 
2783         returned which caused GetPropertiesSupported == false in most cases.
2784         [Fixes bug #409027]
2785
2786 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
2787
2788         * ImageList.cs: Fix ICollection.CopyTo implementation for
2789         ImageListCollection.  [Fixes bug #409169]
2790
2791 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2792
2793         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
2794         WorkingArea so that menus can appear on the second monitor
2795         when one has dual monitors.
2796
2797 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2798
2799         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
2800         Fixes build.
2801
2802 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2803
2804         * TextBox.cs: Implement navigation support for auto complete in
2805         TextBox, as well as refactor the code to show the auto complete window
2806         when receiving a WM_CHAR message, instead of TextChanged, since
2807         autocomplete itself should be able to set the Text a lot of times and
2808         finally only typing should show it, not changes from code.
2809
2810 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2811
2812         * TabControl.cs: When expanding the selected tab, don't adjust the
2813         width if alignment is Right, since it has a different offset than 0,
2814         as opposed to the other alignments.
2815         Fixes the selected tab not being painted at all with alignment = Right
2816         and using FillToRight size mode.
2817
2818 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2819
2820         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
2821
2822 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2823
2824         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
2825         values from the textbox to the boundary values.  [Fixes bug #409026]
2826
2827 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2828
2829         * TreeNodeCollection.cs: We were copying one too many elements when
2830         doing our array copy.  Fixes a crash when RemoveAt is called.
2831         [Fixes bug #408999]
2832
2833 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2834
2835         * TabControl.cs: When doing the layout and need to call FillRow -using
2836         FillToRight size mode-, use the overload receiving a bool param
2837         indicating whether we need to do a vertical or horizontal calculation.
2838         Fixes part of #399583.
2839
2840 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2841
2842         * TextBox.cs: When painting, use the value returned by
2843         GetLastVisibleItem instead of using the cached last_item field, since
2844         there could be a desynchronization between the layout and the
2845         painting. Fixes a AOOR exception in auto complete mode.
2846
2847 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
2848
2849         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
2850         NonClientAreaEnabled until our VisualStyles is modified to allow it.
2851
2852 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
2853
2854         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
2855
2856 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2857
2858         * TextBox.cs: When focus is lost, if the auto complete listbox is
2859         visible, hide it.
2860
2861 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
2862
2863         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
2864         tracking size for tool windows.
2865         * Theme.cs, ThemeWin32Classic.cs : Extracted
2866         ManagedWindowSpacingAfterLastTitleButton.
2867
2868 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
2869
2870         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
2871         They are bit-rotted and have always been listed as "unsupported".
2872
2873 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
2874
2875         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
2876
2877 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
2878
2879         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
2880
2881 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2882
2883         * ListBox.cs: Make sure last_item_visible gets reset before we try
2884         to do a layout due to scrollbars appearing or disappearing.
2885         [Fixes bug #408139]
2886
2887 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2888
2889         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
2890         for different window themes.  [Fixes bug #339140]
2891
2892 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2893
2894         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
2895         in ManagedWindowBorderWidth.
2896
2897 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2898
2899         * InternalWindowManager.cs: Change MouseMove to take a point, so
2900         we can use the same point later on.
2901         * MdiWindowManager.cs: Store point sent to MouseMove so we can
2902         later reset to it.  On Windows, the Cursor.Position had already
2903         changed by the time we were resetting to it.
2904         [Fixes bug #363239]
2905
2906 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2907
2908         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
2909         are inactive.
2910         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
2911         user requested it.
2912         [Fixes bug #398686]
2913
2914 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2915
2916         * MdiWindowManager.cs: Double-clicking on the title bar should not
2917         maximize a MDI form if MaximizeBox = false.
2918
2919 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2920
2921         * ThemeVisualStyles.cs: Fixed a warning.
2922
2923 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2924
2925         * ThemeVisualStyles.cs: Fixed warnings and formatted.
2926
2927 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2928
2929         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
2930         implementation produces a better result.
2931
2932 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2933
2934         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
2935         windows.
2936
2937 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2938
2939         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
2940         cannot be used from the ThemeEngine constructor.
2941         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
2942         Application.VisualStylesEnabled because it does not work on X11.
2943
2944 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
2945
2946         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
2947         that we did not always check for, as well as fixes to the IList
2948         implementations.  [Fixes bug #402703]
2949
2950 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2951
2952         * IDeviceContext.cs: Added Dispose.
2953
2954 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2955
2956         * Control.cs: Added OnSizeInitializedOrChanged.
2957         * Form.cs: OnLoadInternal: Added a call to
2958         Control.OnSizeInitializedOrChanged.
2959         * InternalWindowManager.cs:
2960          * HandleTitleBarMouseMove: No longer invalidates the parent window.
2961          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
2962          * TitleButton: Added Entered.
2963          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
2964         * MdiWindowManager.cs:
2965          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
2966          move over the maximized title buttons causes a change.
2967          * IsActive: Can now be called before the window is added to a MDI parent.
2968         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
2969         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2970         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
2971         * ThemeWin32Classic.cs:
2972          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
2973          * DrawTitleButton takes a new form parameter.
2974          * Added ManagedWindowTitleButtonHasHotElementStyle,
2975          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2976
2977 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2978
2979         * ThemeEngine.cs: ThemeVisualStyles is now selected if
2980         Application.EnableVisualStyles has been called, even if the current system
2981         configuration does not support rendering with Visual Styles.
2982         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
2983         Styles should not be used.
2984
2985 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
2986
2987         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
2988         ComboBox in FormsTest.
2989
2990 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
2991
2992         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
2993         for fixed toolwindows.
2994
2995 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
2996
2997         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
2998
2999 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3000
3001         * Control.cs: CreateControl just returns if the Control is diposed 
3002         and doesn't throw ObjectDisposedException.
3003         [Fixes bug #406566]
3004
3005 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3006
3007         * Control.cs: Do not create the control if the parent isn't created 
3008         yet, e.g in the case of a parented form on which .Show is called.
3009         It will be created when the parent is made visible/created.
3010         Improves #402446.
3011
3012 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3013
3014         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
3015         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
3016         [Fixes bug #406786]
3017
3018 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3019
3020         * Form.cs: When disposed set owner to null. Improves #402446.
3021
3022 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3023
3024         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
3025         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
3026         if not.
3027         * Form.cs: Take the Padding into account for the PreferredSize.
3028         [Fixes bug #402849]
3029
3030 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3031
3032         * TabControl.cs: Since we don't support more than one direction in
3033         TabControl rows alignment (this is, the row becomes the
3034         bottom row when selected), make Direction return always 1. This way
3035         the layout doesn't get confused about a bad calculation.
3036         Fixes #399582.
3037
3038 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3039
3040         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
3041         so that the wparam is properly set.
3042         Fixes form moving in the test case in bug 402446.
3043
3044 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
3045
3046         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
3047         the full tree instead of nothing.  [Improves bug #406584]
3048
3049 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
3050
3051         * ThemeWin32Classic.cs: Adjusted minimized window painting.
3052
3053 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
3054
3055         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
3056         children.
3057
3058 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
3059
3060         * TreeView.cs: Add a null check when using CollapseAll on an
3061         empty tree.  [Fixes bug #406449]
3062
3063 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3064
3065         * Form.cs: Make OnMenuComplete internal so we can call it.
3066         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
3067         [Fixes bug #399321]
3068
3069 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3070
3071         * TabControl.cs: Handle Up and Down keys when TabControl is in
3072         vertical alignment.
3073         [Fixes bug #399585]
3074
3075 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3076
3077         * TabControl.cs: Invalidate when we remove a tab.  Guard against
3078         an AOORE when trying to remove a tabpage that is not owned by the
3079         parent control.
3080         [Fixes bug #399927]
3081
3082 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3083
3084         * ScrollBar.cs: Change the LargeChange calculation to be correct.
3085         Ensure we are using LargeChange instead of large_change so we our
3086         calculations are correct.
3087         [Fixes bug #403122]
3088
3089 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3090
3091         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
3092         we need to ensure the ColumnCount/RowCount gets set.
3093         [Fixes bug #404851]
3094
3095 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3096
3097         * ListBox.cs: When handling item navigation, if selection mode is
3098         None, call EnsureVisible, since scrolling is normally handled by
3099         selection, that we are not calling in this case.
3100         Fixes #398345.
3101
3102 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
3103
3104         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
3105         a null check to our focus walking code.  [Fixes bug #394332]
3106
3107 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
3108
3109         * ComboBox.cs: Case missed in bug 379596 "Support item
3110         navigation by entering text": On _close_ drop-down select
3111         the first item matching the text in the textbox.  [Fixes bug #397265]
3112
3113 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
3114
3115         * DataGridView.cs: Fix a crash when sorting by column headers, 
3116         mentioned in bug #404841.  Remove some dead switch cases.
3117
3118 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3119
3120         * ComboBox.cs:
3121         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
3122         uses the AutoComplete support in the internal TextBox. Also TextBox
3123         can store a reference to ComboBox, in case AutoCompleteSource is set
3124         to ListItems (this is, ComboBox's items, and we don't want to pass an
3125         additional collection).
3126
3127 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3128
3129         * ListViewItem.cs: Restore the initial value of bounds rect to
3130         Rectangle.Empty, and is this value for Layout detection in virtual
3131         mode. Fixes the tests.
3132
3133 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
3134
3135         * XPlatUI.cs: Remove references to "new" X11 backend.
3136
3137 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
3138
3139         * Control.cs: Add an internal virtual OnDragDropEnd method 
3140         to allow controls such as ListBox, which depend on a sequence 
3141         of MouseDown+Move+End events, to handle the lack of a MouseUp 
3142         when a DnD operation is started in MouseDown.
3143         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
3144         get a MouseUp, so reset our state whenever a DnD operation ends.
3145
3146 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
3147
3148         * PropertyGrid.cs: Clear the root griditem first thing when 
3149         new object/s is/are selected. Fixes some rare cases where 
3150         the View will get a paint request and won't know that the 
3151         grid is in the process of repopulating.
3152
3153 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3154
3155         * XplatUIX11.cs, InternalWindowManager.cs: 
3156         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
3157         doesn't automagically update the FormBorderStyle, so we must 
3158         double check the CreateParams explicitly to determine if the 
3159         window is a toolwindow.
3160         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
3161         instead of doing custom checks.
3162
3163         Fixes toolwindows for the test case in bug #402446
3164
3165 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3166
3167         * Control.cs: Visibility of the control should be false 
3168         when the handle is destroyed in WmDestroy and not immediately 
3169         in Dispose(). This is effectively where the disposing process 
3170         ends even though the control is marked as Disposed immediately 
3171         after calling Dispose().
3172         [Fixes bug #402446]
3173
3174 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3175
3176         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
3177         when the textbox gets focus.
3178         [Fixes bug #402704]
3179
3180 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3181
3182         * PropertyGridTextBox.cs, PropertyGridView.cs: 
3183          - Alt + Down should show the drop down editor.
3184          - Focus the editor when showing it
3185         [Fixes bug #402710]
3186
3187 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
3188
3189         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
3190         that are not the first panel.
3191         * StatusBar.cs: Ensure that the X coordinate of panels is always
3192         stored.  Fix IList implementation of StatusBarPanelCollection to
3193         call the regular methods.
3194         [Fixes bug #403599, #402165]
3195
3196 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
3197
3198         * ThemeWin32Classic.cs: Fix position calculation for centered
3199         text on status bar panels.  [Fixes bug #402165]
3200
3201 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
3202
3203         * Splitter.cs: Fix Splitter to:
3204          - Work for arbitrary splitter size
3205          - Handle MinSize and MinExtra properly
3206          - Get rid of absolute positioning during drag and use relative
3207          - Multiple other fixes 
3208          [Fixes bug #338966]
3209
3210 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
3211
3212         * Cursor.cs: Show shouldn't hide the cursor.
3213
3214 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3215
3216         * ListViewItem.cs: When invalidating, add some extra space to bounds,
3217         since focus rectangle and selection can add some space and need to
3218         take into account those small offsets - specially in Details view.
3219         * ListView.cs: Instead of invalidate using item Bounds directly, call
3220         item.Invalidate, to have the code centralized.
3221         Fixes focused/selection garbage when selecting and deselecting items
3222         that are close.
3223
3224 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3225
3226         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
3227         mode we can check whether we have to force a Layout or not, and can
3228         cache based on this, instead of avoiding caching all the the time. Do
3229         this check in GetBounds and TextBounds.
3230         Fixes selection in Details view.
3231
3232 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3233
3234         * ListView.cs: Make HeaderControl internal, thus the theme engine can
3235         get its *real* height instead of trying to infere it.
3236         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
3237         get the position of them, since it's in general a bad idea in general,
3238         and because we can't do that in virtual mode. Instead get the first
3239         visible item as well as item height, and draw them.
3240         Fixes #400390.
3241
3242 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
3243
3244         * ToolStripSplitButton.cs: We can't add in extra width if
3245         the button is not AutoSize.  [Fixes bug #401279]
3246
3247 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
3248
3249         * PaddingConverter.cs: 
3250          - Implement conversion to InstanceDescriptor
3251          - Handle "All" in CreateInstance by using the supplied 
3252          ITypeDescriptorContext.
3253          [Fixes bugs #396076 and #396078]
3254
3255          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
3256          Code contributed under MIT/X11 license.
3257
3258 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
3259
3260         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
3261         ButtonBase.cs:
3262         Add Category attributes.
3263         Code is contributed under the MIT/X11 license.
3264
3265 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
3266
3267         * Form.cs: 
3268          - Fix a NRE when unparenting a form.
3269          - Do not recreate or destroy a parented form when 
3270         unparenting. 
3271
3272 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3273
3274         * TextBox.cs: Implement basic support for AutComplete with custom
3275         sources.
3276
3277 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
3278
3279         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
3280         DropDownButtonBounds should be from the origin of the button, not the
3281         ToolStrip.  [Fixes bug #401279]
3282
3283 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
3284
3285         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
3286           running gtk_init_check.  This prevents GAIL from loading
3287           unnecessarily, which was breaking UIA support.  Initial fix for bug
3288           #375987.
3289         * Application.cs: Add UIA support to Winforms.  New static constructor
3290           uses reflection to initialize UIAutomationWinforms assembly.  Added
3291           PreRun event so UIA can initialize before the mainloop starts, and
3292           FormAdded event so UIA can provide a11y support for new Forms in an
3293           Application.
3294
3295 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
3296
3297         * DataGridView.cs: When binding to a dataset, subscribe to table
3298         and column change events.  Unsubscribe to these when we clear bindings.
3299         [Fixes bug #399601]
3300
3301 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
3302
3303         [DataGrid drawing refactory]
3304
3305         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
3306
3307         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
3308         must be handle by Theme, now it call DataGridPaintColumnHeader.
3309
3310         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
3311         test cases must be also fixed because it checks for wrong size.
3312
3313         * ThemeWin32Classic.cs: 
3314                 - Draw the bottom line of grid caption.
3315                 - Prevent to draw caption text when it is empty.
3316                 - Use CPDrawBorder3D for 3D efects to simplify code.
3317                 - Uses 3D (when not flat) to paint corner shared between row and column
3318                 header.
3319                 - Fix header drawing issues on win32, now borders are drawing.
3320                 - Fix column header paint issues to mimic win32.
3321                 - Adjust header drawing for last column, like first one it must be draw
3322                 different.
3323                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
3324                 not an character.
3325                 - DataGridPaintColumnHeader created to draw column headers, it also
3326                 paint stuff right on Win32.
3327                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
3328                 class.
3329
3330         * Theme.cs: 
3331                 - DataGridPaintRowHeaderStar method added.
3332                 - DataGridPaintColumnHeader method added.
3333
3334 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
3335
3336         * Control.cs: Don't reset to Dock style layout if DockStyle is
3337         set to none.  [Fixes bug #399316]
3338
3339 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
3340
3341         * Win32DnD.cs: Fix the check for control not equal null.
3342         Fixes bug #341420 and #381886. 
3343
3344 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
3345
3346         * DataGridViewRowCollection.cs: Update the indexes of rows after
3347         one has been removed.
3348         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
3349         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
3350         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
3351         rows for the Rows collection, or deleting rows from the bound DataSet.
3352
3353 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
3354
3355         * DataGridView.cs: Listen to a DataSet's changed event even
3356         when autogeneratecolumns is false.  Refactor the changed event's
3357         add row code to use the same as the existing add row code.
3358         [Fixes bug #399601]
3359
3360 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3361
3362         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
3363         much any time the caret moves and there is text, not just when
3364         the selection changes as one would think.
3365         * RichTextBox.cs: Override RaiseSelectionChanged and fire
3366         SelectionChanged.
3367         [Fixes bug #397271]
3368
3369 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3370
3371         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
3372         instead of trying to duplicate the code.
3373         * ListBox.cs: Make method internal so we can send keyboard events.
3374         [Fixes bug #398344]
3375         
3376 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3377
3378         * TextBoxBase.cs: When pasting and checking the max length,
3379         subtract the selected text length (the text we will be replacing) from
3380         the document length.
3381         * TextControl.cs: Ensure every character insertion is reflected in
3382         charcount, so max length will work properly.
3383         [Fixes bug #398605]
3384
3385 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3386
3387         * ListBox.cs: Ensure scrollbars are updated when a single
3388         column listbox with an already set top-index is created.
3389         [Fixes bug #398342]
3390
3391 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3392
3393         * FontDialog.cs: Typing in the font/style textboxes should search
3394         the list boxes case-insensitively.  [Fixes bug #398343]
3395
3396 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
3397
3398         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
3399         widths of icon and buttons instead of hard coded values.
3400
3401 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3402
3403         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
3404         as well as generating a SelectedIndexChanged event, just like .Net does
3405         -surprise-.
3406         Fixes #398345.
3407
3408 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3409
3410         * ListBox.cs: When navigating items visually, use FocusedItem as the
3411         reference point instead of SelectedIndex, since even in
3412         SelectionMode.None we need to support navigation, and in that case we
3413         just can't use SelectedIndex.
3414         Fixes part of #398345.
3415
3416 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
3417
3418         * Control.cs: Make a SetBoundsInternal that avoids the new
3419         SetBounds code.
3420         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
3421         SetBoundsInternal instead of SetBoundsCoreInternal.
3422
3423 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
3424
3425         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
3426         SetBounds for the scrollbars.
3427
3428 2008-06-10  Andreia Gaita <avidigal@novell.com> 
3429
3430         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
3431           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
3432           OnMouseMove, OnMouseOver, OnMouseUp
3433         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
3434           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
3435         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
3436           to the WebControl object to pass to new collection objects
3437         * HtmlHistory.cs: Implement support for individual window histories.
3438         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
3439           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
3440           GotFocus, LostFocus, OnLoad, OnUnload
3441         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
3442           ContextMenu
3443         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
3444           security level changes and context menu event support.
3445
3446 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3447
3448         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
3449         as happens with Esc, patch my Andy Hume.
3450         Fixes #396294.
3451
3452 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3453
3454         * MdiWindowManager.cs: DrawMaximizedButtons now uses
3455         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
3456         * Theme.cs: Made MenuButtonSize platform dependent. Added
3457         ManagedWindowButtonSize.
3458         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
3459         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
3460
3461 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3462
3463         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
3464         Added support for rendering with VisualStyles.
3465
3466 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3467
3468         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3469         support for rendering the border with VisualStyles.
3470
3471 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3472
3473         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
3474         the icon is not shown.
3475         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
3476         its own logic.
3477
3478 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3479
3480         * InternalWindowManager.cs: Draw minimized windows even if they don't have
3481         borders.
3482
3483 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
3484
3485         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
3486
3487 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
3488
3489         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
3490         [Fixes bug #397943]
3491
3492 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3493
3494         * ComboBox.cs: When snaping height -because of IntegralHeight set to
3495         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
3496         if the requested height leaves the listbox area with *less* than the
3497         required are to see one item. We were setting it to PreferredHeight
3498         even for values matching the height for a single item.
3499         Fixes #396297.
3500
3501 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
3502
3503         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
3504
3505 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
3506
3507         * DataGridViewCell.cs: Use property instead of field.
3508
3509 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3510
3511         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
3512         null checks.
3513
3514 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3515
3516         * Theme.cs: Added #region around the managed window code. Made the managed
3517         window methods abstract.
3518         * ThemeWin32Classic.cs: Added #region around the managed window code.
3519
3520 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3521
3522         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
3523         if it has borders.
3524         * ThemeWin32Classic.cs: Removed HasBorders checks in
3525         DrawManagedWindowDecorations.
3526
3527 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3528
3529         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3530         Extracted ManagedWindowGetTitleBarIconArea.
3531
3532 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3533
3534         * DataGridViewCellStyle.cs: Don't clone the font.
3535
3536 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3537
3538         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
3539
3540 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3541
3542         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
3543         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
3544         in 64 bit machines.
3545
3546 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3547
3548         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
3549         Use Format/FormatProvider before trying converters.
3550         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
3551         are 'set'.  Change constructor to not use ApplyStyle since it wants
3552         everything applied.  Clone the Font.
3553         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
3554         ApplyStyle the rest.
3555
3556 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3557
3558         * ListView.cs: We need to calculate the scrollbars even if the handle
3559         hasn't been created - this is needed when methods using scrollbars
3560         info, such EnsureVisible, are called before control has been created.
3561         Fixes #397272.
3562
3563 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
3564
3565         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
3566         only if the elements are defined. 
3567
3568 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3569
3570         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
3571         section. Also, when setting bounds, snap height as well as save the
3572         requested height if Dock has any value affecting the height: Left,
3573         Right and Bottom - important if using IntegralHeight as true.
3574
3575 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3576
3577         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
3578         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
3579         instead of doing that only in our SetBoundsCore override, since the 
3580         bounds cached can be the same as saved one and we could not get the
3581         new height applied.
3582         Fixes #396297.
3583
3584 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3585
3586         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
3587         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
3588         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
3589         ToolWindowCaptionButtonSize.
3590         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
3591
3592 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3593
3594         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
3595         hard coded values.
3596         * Theme.cs: Made DoubleClickTime plaform dependent.
3597
3598 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3599
3600         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
3601         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3602         ToolWindowCaptionHeight.
3603
3604 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3605
3606         * InternalWindowManager.cs: The adjustment to ensure positive client area
3607         sizes is now platform dependent (disabled on Windows).
3608         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3609         RequiresPositiveClientAreaSize.
3610
3611 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3612
3613         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
3614
3615 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3616
3617         * InternalWindowManager.cs: Changed IconicSize to use
3618         SystemInformation.MinimizedWindowSize.
3619         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
3620         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
3621
3622 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3623
3624         * ComboBox.cs: If the combobox is anchored both on top and bottom,
3625         adjust height if IntegralHeight is true when calling SetBoundsCore (as
3626         likely the height was modified even if Height wasn't specified in
3627         BoundsSpecified parameter).
3628         Fixes part of #396297.
3629
3630 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
3631
3632         * InternalWindowsManager.cs: Changed minimum window size while resizing to
3633         SystemInformation.MinWindowTrackSize.
3634         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
3635         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
3636
3637 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
3638
3639         * MenuItem.cs: Fixed Dispose.
3640
3641 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
3642
3643         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
3644         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
3645         EnteredHeaderCell, PressedHeaderCell: Added.
3646         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
3647         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
3648         theme a chance to override default painting.
3649         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
3650         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
3651         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
3652         ListView and DataGridView header rendering.
3653         
3654 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
3655
3656         * RichTextBox.cs: GetPositionFromCharIndex should return the 
3657         visual position of the character relative to the viewport.
3658         [Fixes part of bug #396664]
3659
3660 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
3661
3662         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
3663         and not just for the existance of an UITypeEditor. In some cases 
3664         there is an editor associated just to do PaintValue, but which 
3665         doesn't actually support editing.
3666         [Fixes bug #396632]
3667
3668 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3669
3670         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
3671         if needed, instead of 0 - this should help us in the corner case where
3672         we have more than one item but we are only partially showing 1 item.
3673         Fixes part of #374713.
3674
3675 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3676
3677         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
3678         control, return immediately if the any parent control's handle hasn't
3679         been created or isn't visible, as well as avoiding creating the parent
3680         Form if the handle hasn't been previously created.
3681         Fixes tests.
3682
3683 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
3684
3685         * TableLayoutPanel.cs: Use border sizes when calculating the
3686         panel's preferred size.  [Fixes part of bug #396433]
3687
3688 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
3689
3690         * SplitContainer.cs:
3691          - Fix SplitterDistance to update only if needed. 
3692          - Make it force min and max validation.
3693          - Handle properly mouse moves outside the resizeable area.
3694          [Fixes bug #396232]
3695
3696 2008-06-02  Andreia Gaita <avidigal@novell.com> 
3697
3698         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
3699           (which also suppresses all popup dialogs). Throw NotSupported
3700           exceptions for activex getters/setters.
3701         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
3702           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
3703           StatusText, Version, GoSearch
3704         * HtmlDocument.cs: Add DocType support
3705
3706 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
3707
3708         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
3709         [Fixes bug 396124]
3710
3711 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
3712
3713         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
3714
3715 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
3716
3717         * TableLayoutPanel.cs: When calculating preferred size, use the
3718         actual number of columns and rows, not what the user set them to.
3719         [Fixes bug #396141]
3720
3721 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
3722
3723         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
3724         394311.
3725
3726 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3727
3728         * XplatUIX11.cs: When detecting areas obscured in a control by other
3729         toplevel windows while scrolling, return if the control hasn't a 
3730         container form.
3731         Fixes some tests.
3732
3733 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3734
3735         * XplatUIX11.cs: Properly detect the visible area of a control being
3736         scrolled (obscured by other winforms controls and any X toplevel
3737         windows), to mark as invalid the requested area to be scrolled that
3738         isn't visible and thus can't be copied.
3739         Fixes #324513.
3740
3741 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3742
3743         * ListBox.cs: Compute the precise amount to vertically scroll when
3744         using DrawMode.OwnerDrawVariable.
3745         Patch by jkeymer (j.keymer@gmx.net).
3746
3747 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3748
3749         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
3750         to avoid setting an invalid value for the verticall scrollbar 
3751         when navigating items. And, duh, also remove my silly debug messages
3752         from previous commits.
3753         Fixes #374713.
3754
3755 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
3756
3757         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
3758         make it MS compatible.
3759
3760 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
3761
3762         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
3763          - Allow the editing of entries even if their parent is read-only.
3764          - Do not render expandable properties read-only.
3765          - Refactor expansion checks form PropertyGrid into PropertyGrid.
3766
3767 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
3768
3769         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3770         support for the hover style.
3771
3772 2008-05-29  Andreia Gaita <avidigal@novell.com> 
3773
3774         * ContainerControl.cs: Check for null dead-end when traversing the tree
3775           of parent controls.
3776         
3777           [Fixes #394332, patch by Ernesto Carrea]
3778
3779 2008-05-29  Geoff Norton  <gnorton@novell.com>
3780
3781         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
3782         constant that it is.  Fixes #393981
3783
3784 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
3785
3786         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
3787         that the user probably doesn't want to set this.
3788
3789 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
3790
3791         * ThemeWin32Classic.cs: Don't let the text size be bigger than
3792         the control size for CheckBox/RadioBox.
3793         [Fixes part of bug #394645]
3794
3795 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
3796
3797         * PropertyGrid.cs: Update the state of the sorting buttons in 
3798         the toolbar if PropertySort is set programatically.
3799
3800 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
3801
3802         * GridItemCollection.cs: Add multiple items with conflicting names 
3803         support and also preserve name ordering.
3804         [Fixes #395345]
3805
3806 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
3807
3808         * GridItemCollection.cs: Revert my multiple items with same 
3809         name patch.
3810
3811 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3812
3813         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
3814         or middle ones.
3815         Fixes part of #393908.
3816
3817 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
3818
3819         * ToolStripDrowDown.cs: When using the Show () methods that have a
3820         Control parameter, set the menu owner to that Control.
3821         [Fixes bug #394345]
3822
3823 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
3824
3825         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
3826         [Fixes bug #362756]
3827
3828 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3829
3830         * GridItemCollection.cs: Refactor to support multiple items with the 
3831         same name.
3832         [Fixes bug #394314]
3833
3834 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
3835
3836         * Control.cs: The 2.0 check for illegal cross thread calls in 
3837         Control.Handle were throwing an exception when we were getting
3838         the Handle in order to invoke correctly.  Created a private
3839         version that does not contain this check.
3840         [Fixes bug #394531]
3841
3842 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3843
3844         * PropertyGrid.cs: Respect DefaultTabType.
3845
3846 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3847
3848         * ListView.cs: SPACE selects an item.
3849         [Fixes bug #393023]
3850
3851 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3852
3853         * ListView.cs: Reset the search string whenever the items are 
3854         modified.
3855         [Fixes bug #393020]
3856
3857 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3858
3859         * ListControl.cs: For the first added item PositionChanged is fired
3860         _before_ ItemChanged, which leave us in a temporary invalid state - so
3861         we need to set the selected index from ItemChanged handler *if* we
3862         know that the first item has just been added *and* the items have been
3863         actually added to the ListControl.
3864         Fixes #369048.
3865
3866 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3867
3868         * TabControl.cs: Only clicks with the left button should be
3869         handled.
3870         Fixes #393908.
3871
3872 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3873
3874         * ComboBox.cs: 
3875         * FIleDialog.cs:
3876         * TextBox.cs: Expose an internal method in TextBox to restore the
3877         original context menu, and call it from ComboBox to re-use it in the
3878         combobox containing the file name in FileDialog.cs.
3879         Fixes part of #393775.
3880
3881 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
3882
3883         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
3884         style.
3885
3886 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
3887
3888         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
3889         down button style.
3890
3891 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3892
3893         * ComboBox.cs: Minor correction to previous patch: PageDown should
3894         also *try* to move by one item if the computed offset is negative,
3895         just like the PageUp case.
3896
3897 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3898
3899         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
3900         should be done for at least 1 item, and not stay at the same item.
3901         Fixes part of #374713.
3902
3903 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
3904
3905         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
3906         directories.  [Fixes bug #393931]
3907
3908 2008-05-22  Andreia Gaita <avidigal@novell.com> 
3909
3910         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
3911           Don't fire events until the initial about:blank page has finished
3912           loading. Clean up events.
3913
3914 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
3915
3916         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
3917           FocusIn() too. This should fix the issue on switching
3918           scim keyboards.
3919
3920 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
3921
3922         * X11Keyboard.cs : set XIM font size to somewhat reasonable
3923           number (ideally the input textbox size, but that could be
3924           too messy).
3925
3926 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
3927
3928         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
3929         the ToolStripItem's TextChanged.  [Fixes bug #393597]
3930
3931 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3932
3933         * TabControl.cs: When invalidating in SelectedIndex and we need to
3934         inflate to take into account the border of the tabs, make sure that
3935         the invalidated rect doesn't overflow the control bounds, since that
3936         would avoid updating at all.
3937
3938 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3939
3940         * TabControl.cs: Don't substract scroller width from the row width,
3941         since we need to take into account the total width of the control when
3942         calculating the position of the tabs. This avoids showing scroller
3943         when it is actually not needed.
3944         Fixes part of #322325.
3945
3946 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3947
3948         * ThemeVisualStyles.cs: Added support for TextBoxBase.
3949
3950 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3951
3952         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3953         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
3954
3955 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3956
3957         * DataGridView.cs: Only paint the top left header cell if there
3958         are columns.
3959
3960 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3961
3962         * DataGridView.cs: When binding to a BindingSource, get the underlying
3963         list to bind to.  [Fixes bug #345483]
3964
3965 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3966
3967         * DataGridView.cs: Do not bind to collection properties.
3968         [Fixes bug #337470]
3969
3970 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3971
3972         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
3973
3974 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3975
3976         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
3977         thumb style.
3978
3979 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3980
3981         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
3982
3983 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3984
3985         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
3986         background.
3987
3988 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3989
3990         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
3991
3992 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3993
3994         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
3995         checked styles.
3996
3997 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3998
3999         * TabControl.cs: Extended to handle the hot style.
4000
4001 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4002
4003         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
4004         Extended UpDownBase code to handle hot and disabled styles.
4005
4006 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4007
4008         * DataGridView.cs: Handle databinding to generic list type things.
4009         [Fixes bug #325239]
4010
4011 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4012
4013         * DataGridViewCellCollection.cs: Add a method to find the cell
4014         with the given DataPropertyName.
4015         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
4016         * DataGridViewColumnCollection.cs: Add a method to clear all
4017         autogenerated columns.
4018         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
4019         columns.
4020         [Fixes bug #348082]
4021
4022 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4023
4024         * DataGridView.cs: Don't try to update the RowTemplate with
4025         a null CellTemplate.
4026
4027 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4028
4029         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
4030         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
4031         * DataGridView.cs: Lots of fixes/enhancements to databinding to
4032         a DataSet.
4033
4034 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4035
4036         * Control.cs: Remove invalidating implicit child controls when
4037         control is invalidated.  It was causing too many redraws on
4038         controls with implicit scrollbars.
4039         * ListView.cs: Listen to the Invalidated event and invalidate
4040         child controls.
4041
4042 2008-05-20  Andreia Gaita <avidigal@novell.com> 
4043
4044         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
4045         * HtmlDocument.cs: Check for nulls
4046
4047 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4048
4049         * Control.cs: In ControlCollection.RemoveInternal, remove the
4050         internal control before calling PerformLayout and OnControlRemoved,
4051         which was leaving us in an invalid state and causing a X error (bad
4052         match). Observe that Remove () call has the same order.
4053         Fixes an X error changing ComboBoxStyle.DropDownStyle.
4054
4055 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4056
4057         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
4058         being fired if ControlStyles.UserPaint style is activated.
4059         Fixes #371905.
4060
4061 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4062
4063         * GridEntry.cs: Don't be so strict when setting the value - 
4064         do not check if what we set is what we get.
4065         [Fixes bug #389245]
4066
4067 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4068
4069         * XplatUIX11.cs: If there are no timers timeout should be 0
4070         [Fixes bug #363522]
4071
4072 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
4073
4074         * Control.cs: As a followup to invalidating implicit children when
4075         a control is invalidated, only invalidate them if they are in the
4076         clip rectangle.
4077
4078 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4079
4080         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
4081
4082 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4083
4084         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
4085
4086 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4087
4088         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
4089         * XplatUIWin32.cs: Made Win32DeleteObject public.
4090
4091 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4092
4093         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
4094         PropertyDescriptor.ShouldSerializeValue.
4095         [Fixes bug #391924]
4096
4097 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4098
4099         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
4100         in the classic theme.
4101
4102 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4103
4104         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
4105         ThumbPressed.
4106         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
4107         ScrollBarHasPressedThumbStyle.
4108
4109 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4110
4111         * TextRenderer.cs: Included some methods in the 1.1 profile.
4112
4113 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
4114
4115         * Control.cs: When we make a control visible, it may have been
4116         previously visible and while it wasn't visible, the z-order of
4117         things may have been shuffled, so the control needs to have its
4118         z-order updated just in case.  [Fixes bug #391518]
4119
4120 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4121
4122         * ThemeVisualStyles.cs: Added support for GroupBox.
4123
4124 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4125
4126         * GroupBoxRenderer.cs: Included in the 1.1 profile.
4127
4128 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
4129
4130         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
4131           bug #389996; XSelectInput() behaved as mouse handler robber,
4132           so remove extra call to it.
4133
4134 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4135
4136         * Control.cs: Simplify ControlCollection.Contains method.
4137
4138 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4139
4140         * DataGridViewRow.cs: Implement GetPreferredSize.
4141
4142 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4143
4144         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
4145
4146 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4147
4148         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
4149         painting and edit control fixes.
4150
4151 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4152
4153         * DataGridView.cs, DataGridViewCell.cs: Work around some external
4154         checks to make sure we are in an actual row/col for top left header cell.
4155         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
4156
4157 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4158
4159         * Control.cs: Use long instead of int when handling WParam from
4160         mousewheel scrolling.  Int was overflowing on Win64.
4161
4162 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4163
4164         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
4165         flow panel without scrolling first, and then calculate the 
4166         scrolling based on the new layout.  [Fixes bug #390149]
4167
4168 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4169
4170         * ListBox.cs: Invalidate after scrolling up when selected index
4171         changes.  [Fixes bug #390151]
4172
4173 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4174
4175         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
4176         set, default height to 150. I tried first with DefaultSize, but this
4177         is not generating a SetBoundsCore call before handle creation time, so
4178         we can take it into account. This is just what .net does.
4179
4180 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
4181
4182         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
4183         as it broke some stuff.  Calberto is filing a bug for eno to
4184         work with.
4185
4186 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4187
4188         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
4189         to 0 is the current value is -1, and if style is not Simple, just
4190         return, like .net does.
4191         Fixes part of #374713.
4192
4193 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
4194
4195         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
4196         progress bar stuffs, use doubles instead of ints to prevent
4197         overflow.  [Fixes bug #389798]
4198
4199 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
4200
4201         * XplatUIX11.cs, X11Keyboard.cs :
4202           Significant refactoring on XIM support. Now IM engine UI
4203           should show up, at mostly-correct preedit position.
4204           - Eliminated use of FocusWindow, as it is never mapped
4205             and hence blocks correct preedit position. XIC is now
4206             created per window, and it must be destroyed too when
4207             the window is destroyed.
4208           - WM_QUIT messages should not be filtered even when hwnd
4209             is zombie. Filtering it could cause endless loop.
4210           - Preedit position must move only when the window is alive.
4211           - Make it IDisposable and make sure to release XIM/XICs.
4212
4213 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
4214
4215         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
4216           XplatUIX11.cs, XplatUIWin32.cs :
4217           fix for bug #325033 and #387693;
4218           - WM_QUIT should not be sent when no running application
4219             exists.
4220           - SetTimer/KillTimer (especially on win32) should be
4221             invoked for the window that the timer is/will_be attached.
4222           - There could be unattached timers to a window when it's
4223             started. For those timers, hold pending timers and when
4224             a window is mapped, attach them to it.
4225           - WaitForHwndMessage() could run into loop when
4226             WM_SHOWWINDOW is handled before this method is called.
4227             So, strictly check wm_showwindow state.
4228           - Tick handler should not be invoked while one Tick handler
4229             call is still running (introduced Busy state).
4230
4231 2008-05-13  Andreia Gaita <avidigal@novell.com> 
4232
4233         * WebBrowserBase.cs: Override Internal alternative methods for
4234           SetBoundsCore and OnResize instead of the protected ones.
4235         * Control.cs: Move SetBoundsCore and OnResize implementations to
4236           SetBoundsCoreInternal and OnResizeInternal, so they can be
4237           overriden internally (WebBrowserBase needs to catch them but can't
4238           override the protected methods without api compat problems)
4239
4240 2008-05-13  Andreia Gaita <avidigal@novell.com> 
4241
4242         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
4243
4244 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4245
4246         * Binding.cs:
4247         * ListView.cs: Remove debug messages.
4248
4249 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4250
4251         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
4252         area is empty. Also calculate scrollbars in Simple mode based in area
4253         height and total number of items, not in MaxDropDownItems.
4254         Fixes part of #371991.
4255
4256 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4257
4258         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
4259
4260 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4261
4262         * BindingSource.cs: GetListSortDescription is not public.
4263
4264 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4265
4266         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
4267
4268 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4269
4270         * HtmlElement.cs: Fix parameter names to match MS.
4271         * HtmlWindowCollection.cs: Should not be sealed.
4272
4273 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4274
4275         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
4276         button, because the thumb button will not get drawn if the scrollbar
4277         is disabled.  [Fixes bug #389262]
4278
4279 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4280
4281         * ListBox.cs: Handle End key for multi-column listboxen.
4282         [Fixes bug #389266]
4283
4284 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4285
4286         * ListBox.cs: Fix algorithm to determine which column our item is in.
4287         [Fixes bug #389265]
4288
4289 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4290
4291         * ListBox.cs: Invalidate when the listbox is resized.
4292         [Fixes bug #389256]
4293
4294 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4295
4296         * ListBox.cs: There is always at least one row in the ListBox (if
4297         we are doing these calculations.)  [Fixes bug #389253]
4298
4299 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4300
4301         * ListBox.cs: There is always at least one column in the ListBox.
4302         [Fixes bug #389250]
4303
4304 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4305
4306         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
4307         ensure in Simple mode that the height is exactly the requested one.
4308         Also add the ComboBoxListControl to the controls collection in Simple
4309         mode even if handle hasn't been created.
4310         Fixes part of #371991.
4311
4312 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4313
4314         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
4315         our ComboBox owner instead of giving it back to the previous control (
4316         as done in other controls). Also remove the empty override of Select
4317         method, since we want to be selected *and* give focus to our owner.
4318         This should let the user do keys-navigation in Simple mode. 
4319
4320 2008-05-10  Geoff Norton  <gnorton@novell.com>
4321
4322         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
4323         problems with rapid scrolling of treeviews. Fixes #381084
4324
4325 2008-05-10  Geoff Norton  <gnorton@novell.com>
4326
4327         * XplatUICarbon.cs: Deactivate the active window before
4328         activating the desired window.  Completes fixing #386504
4329
4330 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4331
4332         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
4333         SmallChange to the item size width plus the padding, to match .net.
4334
4335 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4336
4337         * FileDialog.cs: Apply the custom filter typed by the user in the file
4338         name combobox as much as possible while navigating in the file dialog.
4339         Fixes #385261.
4340
4341 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4342
4343         * Binding.cs: Actually use NullValue if the retrieved value of
4344         data source is null or DBNull. Makes a test pass.
4345
4346 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
4347
4348         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
4349         * MimeIcon.cs: Provide a way to get icons from resources.
4350
4351 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4352
4353         * Binding.cs: When the value retrieved from the control to be assigned
4354         to the data source is null, actually use the 2.0 DataSourceNullValue
4355         value. Make pass a data binding test.
4356
4357 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4358
4359         * Control.cs: We need to invalidate implicit children even when
4360         invalidate is called with invalidatechildren = false.  (Implicit
4361         children are really part of the parent.)
4362         * ListView.cs: Double-buffer internal child controls for less
4363         flicker.
4364         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
4365         owner ListView subitems for greatly increased performance.
4366         [Fixes bug #388477]
4367
4368 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
4369
4370         * FileDialog.cs: When the user types a wildcard character in the
4371         filename combobox, update the contents of the folder using the text as
4372         a filter.
4373         Fixes part of #385261.
4374
4375 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4376
4377         * ListBox.cs: Various fixes for MultiColumn listboxen.
4378         [Fixes bug #388114]
4379
4380 2008-05-08  Andreia Gaita <avidigal@novell.com> 
4381
4382         * HtmlElement.cs: Implement Style property
4383
4384 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4385
4386         * ListBox.cs: Respect checkboxes when measuring item size.
4387         * ThemeWin32Classis.cs: When drawing list items, don't draw
4388         text outside of the item's bounds to prevent overlapping.
4389         (.Net actually overlaps, but that's just silly.)
4390         [Fixes bug #388117]
4391
4392 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
4393
4394         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
4395         Gert Driesen. Fixes bug #324830. 
4396
4397 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
4398
4399         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
4400         method implemented.
4401
4402 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4403
4404         * BindingSource.cs: When calling IsSynchronized, return the value of
4405         the related IList list.
4406
4407 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4408
4409         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
4410         make a test pass.
4411
4412 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
4413
4414         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
4415         navigation to scroll the grid if the current cell is not visible.
4416
4417 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4418
4419         * HtmlElement.cs: Implement TabIndex
4420
4421 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
4422
4423         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
4424         properties, even when there are no items.
4425         [Fixes bug #387611]
4426
4427 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
4428
4429         * NativeWindow.cs: Add support for multiple handles per window.
4430         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
4431         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
4432         directly - use FromHandle instead.
4433         [Fixes bug #374660]
4434
4435 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4436
4437         * HtmlElement.cs: Implement InnerHTML setter
4438
4439 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4440
4441         * HtmlDocument.cs: Implement Focused
4442
4443 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4444
4445         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
4446         methods, as well as add messages to the exceptions.
4447
4448 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4449
4450         * BindingSource.cs: Setting DataSource should only reset DataMember if
4451         the previous value was null (make pass a not working test).
4452
4453 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4454
4455         * BindingSource.cs: When EndInit call is postponed and is called until
4456         DataSource.EndInit is called, remove the handler for data source.
4457
4458 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4459
4460         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
4461
4462 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4463
4464         * ToolStripManager.cs: Store references to toolstrips as
4465         weak references so they do not prevent forms from getting collected.
4466         [Fixes bug #386483]
4467
4468 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4469
4470         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
4471         on .Net.  So do the same thing in WndProc.
4472
4473 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4474
4475         * TrackBar.cs: Commit patch from Andy Hume that corrects
4476         the clickable areas to better match .Net.
4477         [Fixes bug #387074]
4478
4479 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4480
4481         * TrackBar.cs: Commit patch from Andy Hume that adds the
4482         ResizeRedraw control flag so the track bar repaints itself
4483         when it is resized.  [Fixes bug #387072]
4484
4485 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4486
4487         * TrackBar.cs: Commit patch from Andy Hume that adds better
4488         support for keyboard navigation when the TrackBar is vertical.
4489         [Fixes bug #387071]
4490
4491 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4492
4493         * BindingSource.cs: Implement ISupportInitializeNotification support.
4494
4495 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
4496
4497         * ThemeVisualStyles.cs: Added support for ToolBar.
4498
4499 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
4500
4501         * ToolBar.cs: Made the Vertical property internal.
4502
4503 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4504
4505         * ThemeVisualStyles.cs: Added support for TrackBar.
4506
4507 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4508
4509         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
4510         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
4511         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
4512         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
4513         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
4514         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
4515
4516 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4517
4518         * ThemeVisualStyles.cs: Added support for UpDownBase.
4519
4520 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4521
4522         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
4523         Extracted Theme.UpDownBaseDrawButton.
4524
4525 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
4526
4527         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
4528         removed from the static toolstrips collection in ToolStripManager
4529         when they are disposed.  Provides a workaround for bug #386483.
4530
4531 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
4532
4533         * GridEntry.cs: Read-only properties with Editor with 
4534         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
4535         [Fixes bug #384184]
4536
4537 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
4538
4539         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
4540         the menu key and there are no items on the menu.
4541         [Fixes bug #386644]
4542
4543 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
4544
4545         * Control.cs: Avoid calling ToString on a string.
4546         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
4547         * GroupBox.cs: In FlatStyle property throw, not just create, the 
4548         exception. Avoid calling ToString on a string.
4549         * ProgressBar.cs: Avoid calling ToString on a string. 
4550         * ScrollBar.cs: Avoid calling ToString on a string. 
4551         [All issues were found using Gendarme]
4552
4553 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
4554
4555         * NotifyIcon.cs: Prevent click events to be trigger after double click 
4556         events. Fixes remaining issues of bug #324832.
4557
4558 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
4559
4560         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
4561         to mimic win32 behavior. Partially fixes bug #324832.
4562
4563 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4564
4565         * BindingSource.cs: Implement Find methods.
4566
4567 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4568
4569         * BindingSource.cs: Implement Sort, ApplySort overloads, and
4570         RemoveSort methods.
4571
4572 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4573
4574         * ListBindingHelper.cs: When calling GetListItemProperties and the
4575         passed object is ITypedList, return the result of
4576         ITypedList.GetItemProperties instead.
4577
4578 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4579
4580         * LinkLabel.cs: Set default value of name on constructor of Link class
4581         only for 2.0 profile.
4582
4583 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4584
4585         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
4586         Fixes remaining issues of bug #346154.
4587
4588 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4589
4590         * LinkLabel.cs: Set a default value for name on internal contructor of
4591         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
4592
4593 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4594
4595         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
4596         and refer all instances to owner.links. Partially fixes #346154.
4597
4598 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4599
4600         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
4601         length equal zero. Also called CreateLinkPieces in constructor. It fixes
4602         the LinkLabel test 'TestLinkArea'.
4603
4604 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4605
4606         * Form.cs: Remove menu before close form to prevent form to be not gaced.
4607         [Fixes #386460]
4608
4609 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4610
4611         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
4612         [Fixes #386463]
4613
4614 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4615
4616         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
4617         [Fixed bug #357004]
4618
4619 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4620
4621         * MenuAPI.cs: Remove unused ProcessCmdKey method.
4622
4623 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4624
4625         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
4626         [Fixes bug #375398]
4627
4628 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4629
4630         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
4631         of bug #367492.
4632
4633 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4634
4635         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
4636         sometimes we open a conext menu on mouse down of some controls and the mouse
4637         up is dispatched to menu and dont need to. It fix remaining issues of 
4638         #363711 and other problems related to menu mouse click events.
4639
4640 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4641
4642         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
4643         some var names to better fit changes, now we have month_menu and today_menu
4644         vars. Fixes bug #363711.
4645
4646 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4647
4648         * MonthCalendar.cs: Handle every right mouse click to open context menu,
4649         right now the default month menu but it will be change to have "Go to today"
4650         menu.
4651
4652 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4653
4654         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
4655
4656 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4657
4658         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
4659
4660 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4661
4662         * ThemeVisualStyles.cs: Added support for TreeView.
4663
4664 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4665
4666         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
4667         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
4668
4669 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4670
4671         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
4672
4673 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4674
4675         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
4676         Implement 2.0 SP1 stuffs.
4677
4678 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4679
4680         * FileDialog.cs: Implement 2.0 SP1 stuffs.
4681
4682 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4683
4684         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
4685         Implement CanEnableIme property. (2.0 SP1)
4686
4687 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4688
4689         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
4690         from the 2.0 API.
4691
4692 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4693
4694         * Control.cs: Provide an internal way for a control to override
4695         the setting of Height.
4696         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
4697         set height using new method.
4698
4699 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4700
4701         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
4702
4703 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4704
4705         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4706         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
4707
4708 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4709
4710         * ThemeVisualStyles.cs: Added support for StatusBar.
4711
4712 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4713
4714         * DataObject.cs: Add the other IDataObject interface.
4715
4716 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4717
4718         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
4719         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
4720
4721 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4722
4723         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
4724         * ListView.cs: Hide non-public API.
4725         * MaskedTextBox.cs: Remove extra attribute.
4726
4727 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4728
4729         * DataGridViewImageCell.cs: Use formatted value instead of value
4730         to calculate preferred size.
4731
4732 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4733
4734         * ListBox.cs: Move some initialization around so that selected_indices
4735         is not accessed before it is created.
4736
4737 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4738
4739         * InputLanguageCollection.cs: Implement the collection better.
4740         [Fixes bug #385506]
4741
4742 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4743
4744         * ToolStripDropDownItem.cs: Get the correct event object for
4745         DropDownItemClicked.
4746         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
4747         [Fixes bug #385475]
4748
4749 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4750
4751         * DataGridViewRowCollection.cs: We don't currently support shared 
4752         rows.  Should fix test failures caused by previous commit.
4753
4754 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
4755
4756         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
4757         datagridview gets set.  Only paint cells in visible columns.
4758         * DataGridViewCell.cs: Draw border after cell content.
4759         * DataGridView.cs: Invalidate after setting some properties.  Only
4760         use visible columns.  Fit hit test bug with areas in the col/row header
4761         area but not in a row or col.  Implement UpdateCell/Row methods.
4762
4763 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
4764
4765         * DataGridViewElement.cs: Don't throw NIEX.
4766         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
4767         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
4768         * DataGridViewCheckBoxColumn.cs: Implement ToString.
4769         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
4770         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
4771         if the user filled in the formatting Value, use it.
4772
4773 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
4774
4775         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
4776         to a string.
4777
4778 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4779
4780         * BindingSource.cs: Some corrections to Filter property, as well as
4781         setting it for our list when resetting it.
4782
4783 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
4784
4785         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
4786         than the maximum.  Fixes reopened bug #384182.
4787
4788 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4789
4790         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
4791         Fixes remaining issues of #367490.
4792
4793 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4794
4795         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
4796         SystemInformation.WorkingArea to get max_screen value.
4797
4798 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4799
4800         * BindingSource.cs: Implement Filter and RemoveFilter.
4801
4802 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4803
4804         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
4805
4806 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4807
4808         * X11Dnd.cs: When trying to convert data and we know we started the
4809         dnd loop, don't try to use the cached data if the loop is not running,
4810         which means that the data has been resetted.
4811         Fixes #378191.
4812
4813 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4814
4815         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
4816         win32 behavior.
4817
4818 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4819
4820         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
4821         it to drawn off screen edge. Fixes bug #367490.
4822
4823 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4824
4825         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
4826         menu position to have only one assignment of Location var.
4827
4828 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4829
4830         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
4831         for this patch. Fixes bug #384115.
4832
4833 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
4834
4835         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
4836         the same.  If LargeChange is zero, set a minimum size for the scroll
4837         thumb grip.  [Fixes bug #384182]
4838
4839 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
4840
4841         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
4842         [Fixes bug #384181]
4843
4844 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
4845
4846         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
4847
4848 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4849
4850         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
4851         patch from Ernesto).
4852
4853 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4854
4855         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
4856
4857 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4858
4859         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
4860
4861 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4862
4863         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
4864
4865 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4866
4867         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
4868
4869 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
4870
4871         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
4872
4873 2008-04-27  Andreia Gaita <avidigal@novell.com> 
4874
4875         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
4876           supposed to return a reference to an mshtml interface, which we
4877           don't support).
4878         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
4879           reference to an mshtml interface, which we don't support). Code
4880           formatting cleanup.
4881         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
4882           DomDocument getter (it's supposed to return a reference to an
4883           mshtml interface, which we don't support). Code formatting cleanup.
4884
4885 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4886
4887         * ListView.cs: Ouch, forgot to commit.
4888
4889 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4890
4891         * ListView.cs: 
4892         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
4893
4894 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4895
4896         * ListView.cs: When calculating box selection for virtual mode, don't
4897         look for intersection with item's text, but item bounds, since that
4898         would mean read ListViewItem's text for _every_ item, and that's
4899         something we just can't do in virtual mode (items are only requested
4900         when drawn).
4901
4902 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
4903
4904         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
4905         partial support for managed windows (based on the patch from Ernesto).
4906
4907 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4908
4909         * ListView.cs: When doing a key search use FindItemWithText method
4910         instead of doing the search by ourselves, this way we avoid
4911         duplicating the code and also we handle the special case for virtual
4912         mode. To achieve that make our private overload of FindItemWithText
4913         internal and also have a 'roundtrip' parameter.
4914
4915 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4916
4917         * ListView.cs: When doing the layout don't request the
4918         ListViewItem instance if we are in virtual mode (since we can't request it
4919         until the item is actully drawn).
4920
4921 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4922
4923         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
4924         from Ernesto).
4925
4926 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4927
4928         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
4929         the patch from Ernesto).
4930
4931 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4932
4933         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
4934         * ThemeVisualStyles.cs: Added.
4935
4936 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4937
4938         * IDeviceContext.cs: Added a missing using.
4939
4940 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4941
4942         * ButtonBase.cs: Made IsDefault protected internal.
4943         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
4944
4945 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4946
4947         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
4948         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
4949         RadioButtonRenderer.cs: Included in the 1.1 profile.
4950         * IDeviceContext.cs: Added.
4951         * TextRenderer.cs: Included a member in the 1.1 profile.
4952
4953 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4954
4955         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
4956
4957 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4958
4959         * ErrorProvider.cs: Make the error icons come after the control
4960         they refer to.  It isn't the way the MS does it, but its better
4961         than what we were doing.  See bug #368587.
4962
4963 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4964
4965         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
4966         from Eric Albright that lazy loads the input language as ensures
4967         everything gets properly initialized.  Fixes bug #373871.
4968
4969 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4970
4971         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
4972         implicit mnemonics.  [Fixes bug #383000]
4973
4974 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4975
4976         * X11Dnd.cs: When canceling the operation, automatically restore the
4977         default cursor - normally the default cursor is restored when the
4978         mouse buttons are released, but we should be able to restore it even
4979         if the buttons are still pressed (for example, when pressing ESC to
4980         cancel).
4981         Fixes #381894.
4982
4983 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4984
4985         * X11Dnd.cs: When starting a new drad and drop operation, set control
4986         field to null, just as the other fields, to avoid calling any
4987         operation on a previous control. Also, when calling DndLeave on a
4988         control, set it to null, thus we don't fire that event multiple times
4989         for that control.
4990         Fixes #209264.
4991
4992 2008-04-23  Geoff Norton  <gnorton@novell.com>
4993
4994         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
4995         the whole_window object.  Fixes #377084.
4996
4997 2008-04-23  Andreia Gaita <avidigal@novell.com> 
4998
4999         * HtmlElement.cs: Implement RaiseEvent (event injection into the
5000           embedded browser)
5001
5002 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
5003
5004         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
5005
5006 2008-04-23  Andreia Gaita <avidigal@novell.com> 
5007
5008         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
5009           invocation
5010
5011 2008-04-23  Andreia Gaita <avidigal@novell.com> 
5012
5013         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
5014           attaching/detaching
5015
5016 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5017
5018         * X11Dnd.cs: When the drop was cancelled, or could just not be
5019         performed, return DragDropEffect.None always (match .net).
5020
5021 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5022
5023         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
5024
5025 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5026
5027         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
5028
5029 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5030
5031         * DataGridView.cs: Add support for error icon tool tips.
5032         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
5033         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
5034
5035 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
5036
5037         * X11Structs.cs: Add mouse button masks enum.
5038         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
5039         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
5040         form resize/move operation instead of for each step of it.
5041         [Fixes bug #346529 for the x11 backend]
5042
5043 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5044
5045         * DataGridView*: Implement support for drawing error icons.
5046
5047 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5048
5049         * TreeView.cs: Make vbar and hbar internal.
5050         * TreeNode.cs: If collapsing the node removes one of the TreeView's
5051         scrollbars, invalidate the whole thing.
5052         [Fixes bug #382001]
5053
5054 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5055
5056         * TreeView.cs: Calling Sort() sets Sorted = true.
5057         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
5058         if the nodes need to be sorted.
5059         [Fixes bug #382028]
5060
5061 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
5062
5063         * Form.cs: Fire SizeChanged for both when the form is minimized and 
5064         restored.
5065         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
5066         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
5067
5068 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5069
5070         * ComboBox.cs: If the combobox is disabled, draw a disabled
5071         background before painting anything else.
5072         [Fixes bug #381729]
5073
5074 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5075
5076         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
5077         forget to send a Leave event to the target window - just as .net does
5078         when cancelling dnd operations.
5079
5080 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5081
5082         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
5083         soon as possible - this happens when we send the drop message to the
5084         target window. This way we avoid firing any DragOver _after_ drop finished.
5085         Fixes #378179.
5086
5087 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5088
5089         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
5090         * Form.cs: Handle form minimization as a special state, where size doesn't 
5091         change, but we have to fire SizeChanged.
5092         [Fixes bug #325122 for the win32 and x11 backends]
5093
5094 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5095
5096         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
5097         if the handle is disabled.
5098         [Fixes bug #371751]
5099
5100 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5101
5102         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
5103         for forms with FormBorderStyle.None.
5104         [Fixes bug #349571]
5105
5106 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5107
5108         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
5109         WM_EXITSIZEMOVE.
5110         [Fixes bug #346529 for the X11 backend]
5111
5112 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5113
5114         * XplatUIX11.cs: 
5115           - Send a mouse Enter message after say dragging the mouse with a 
5116           button down and then release it in another client.
5117           - Reset the cursor to prevent X11 from remembering it and setting it 
5118           before the control gets WM_SETCURSOR.
5119           - Qeueue a mouse move after a mouse enter like win32.
5120           [Fixes bug #323234]
5121
5122 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5123
5124         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
5125         It's sent when the form gets moved, resized, closed.
5126         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
5127         [Fixes bug #359193 for X11]
5128
5129 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5130
5131         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
5132         the build.
5133
5134 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5135
5136         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
5137         group. Fixes the 1.1 build.
5138
5139 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5140
5141         * ListView.cs: Use display indexes for selection in Details view, as
5142         well as do the proper layout based on display indexes for that view
5143         too.
5144
5145 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5146
5147         * ListView.cs: Focused item information is now stored as a display
5148         index, and display indexes are used all over the place for selection,
5149         instead of ListViewItem.Index values, which doesn't give us enough
5150         information to modify the selection in groups mode, and was broken.
5151
5152 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
5153
5154         * Control.cs: Do not fire MouseDown if validation of the control has 
5155         failed.
5156         * Form.cs: Validate the form before closing.
5157         [Fixes bugs #330501 and #353310]
5158
5159 2008-04-18  Andreia Gaita <avidigal@novell.com> 
5160
5161         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
5162           CreateWebBrowserSiteBase implementations
5163         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
5164           Style and TabIndex setters
5165
5166 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5167
5168         * ListViewGroup.cs: When returning the actual item count, return the
5169         proper count for default group.
5170         Fix the tests.
5171
5172 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5173
5174         * ListView.cs:
5175         * ListViewGroup.cs: When calculating groups layout, get the actual
5176         number of items per group, since groups added to the group BUT not
5177         added to the ListView are just ignored, and can cause some nasty
5178         exceptions because of the lack of synchronization. Also for
5179         ListViewGroup don't use lazy initialization for items, since we 
5180         the common scenario is to use it always - and it helps us to  refactor
5181         and clean the .ctor overloads.
5182
5183 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5184
5185         * ListView.cs: When adding an item to a ListViewItemCollection
5186         belonging to a group (ListViewGroup.Items), don't generate a redraw if
5187         the added item hasn't beeen previously added to the ListView instance
5188         refered by the group, since it will be ignored. This should avoid some 
5189         really nasty flickering.
5190
5191 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5192
5193         * ListView.cs: When accessing an item in a specific display
5194         position, use the helper method GetItemAtDisplayIndex, instead of
5195         direct access to the reordered_items_indices array. When doing layout
5196         for groups set the correct Items index for the display position (since
5197         in groups mode items don't have the same position as in Items
5198         collection).
5199         * ListViewGroup.cs: Add a field to store the starting item number,
5200         which is later used when calculating the layout.
5201
5202         Fixes #360805.
5203
5204 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
5205
5206         * Application.cs: Fixed ProductVersion to fallback to the assembly
5207         version. Fixes regression for bug #325413.
5208
5209 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5210
5211         * ListView.cs: New helper method to retrieve an item in a _specific
5212         display_ position (the items can be displayed in a different order
5213         than one of Items collection).
5214         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
5215         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
5216         specific display position (again remember that items can be sorted
5217         different than Items).
5218
5219 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5220
5221         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
5222         list and update it when the collection changes.  We were recreating
5223         this several times per row paint and for every pixel the mouse moved
5224         across the grid.
5225         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
5226         changes.
5227
5228 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5229
5230         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
5231         list to use generics.
5232         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
5233         and remove unneccessay casts.
5234
5235 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5236
5237         * DataGridViewBand.cs: Add internal way to set displayed variable.
5238         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
5239         * DataGridView.cs: Make sure we always keep track of Displayed
5240         rows and columns, and only draw things that are displayed.
5241
5242 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
5243
5244         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
5245           whether the key events are filtered or not. Introduced
5246           PreFilter() process for this purpose. This fixes atokx3/iiimx
5247           shift state issue.
5248
5249 2008-04-16  Andreia Gaita <avidigal@novell.com> 
5250
5251         * HtmlHistory.cs: Implement Length property
5252
5253 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
5254
5255         * DataGridView.cs: Call EndEdit when a sort is performed so we take
5256         away the edit textbox.  Refactor to reuse column sort code.
5257
5258 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
5259
5260         * MenuAPI.cs: Remove the code that save and restore capture status of 
5261         grab_control, this fixes some Menu and Context menu bugs but maybe it can
5262         cause some others, I cant figure the possible problems of this patch but
5263         right now remove the code looks to be better than keep it. This patch fixes
5264         bugs #357638, #378721 and #379570.
5265
5266 2008-04-12  Andreia Gaita <avidigal@novell.com> 
5267
5268         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
5269         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
5270         add missing properties and event handlers.
5271         
5272 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
5273
5274         * ListBox.cs: Make sure the LargeChange we are setting is at least
5275         zero, to prevent an IOORE.  [Fixes bug #379531]
5276
5277 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
5278
5279         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
5280         in DropDownList mode, for each key-press select the next item 
5281         starting with that letter.
5282         For other modes, when no item selected, on arrow-up/-down and open 
5283         drop-down select the first item matching the text in the textbox.
5284
5285 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
5286
5287         * X11Keyboard.cs : Control.FromHandle() could return null
5288           in MoveCurrentCaretPos().
5289
5290 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5291
5292         * ListView.cs: When changing the size in VirtualMode, also Reset the
5293         selection.
5294         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
5295         changing selection info for VirtualMode.
5296         Fixes #372618.
5297
5298 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5299
5300         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
5301         view, don't use LineLimit for the first item - use NoWrap *always*
5302         instead, since ListView.LabelWrap is not used for this view.
5303         Fixes #378054.
5304
5305 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5306
5307         * Binding.cs: Call UpdateIsBinding when setting control - probably
5308         Binding is already usable and we don't need to wait to check the
5309         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
5310         Created, just like 2.0 does.
5311         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
5312
5313 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5314
5315         * Binding.cs: Just realized we don't need to have a handler for
5316         BindingContextChanged, since this info should be now consumed directly
5317         in the BindingManagerBase. And also, the manager.IsBindingSuspended
5318         state info is checked directly, instead of caching it.
5319
5320         * CurrencyManager.cs: IsSuspended should return always false if Count
5321         == 0.
5322
5323 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5324
5325         * Binding.cs: When calling PushData, return if manager.Count == 0,
5326         since we just don't have data to be read. Also, when setting the
5327         Control for binding, hook up some events to refresh the IsBinding
5328         state when BindingContext change or control gets created; use
5329         Control.IsHandleCreated instead of Control.Created check to set
5330         IsBinding state - we *actually* need to modify IsBinding when control
5331         is created, but we don't have any Created event, only HandleCreated.
5332         Fixes part of #349364.
5333
5334 2008-04-11  Geoff Norton  <gnorton@novell.com>
5335
5336         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
5337         warping a null Caret.
5338
5339 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5340
5341         * DataGridView.cs: Implement row/column autosizing methods. Implement
5342         autosorting.
5343         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
5344         * DataGridViewRowCollection.cs: Add an internal sorting method.
5345
5346 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5347
5348         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
5349         value in ListView drawing code.
5350
5351 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5352
5353         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
5354         is clicked.  Respect the user setting Cancel in FileOk.
5355
5356 2008-04-11  Geoff Norton  <gnorton@novell.com>
5357
5358         * ListView.cs: Avoid setting and resetting control Width/Heights and
5359         calculate the final value and set it once.  Prevents a feedback loop
5360         on the mac.
5361
5362 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5363
5364         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
5365         [Fixes bug #378869]
5366
5367 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
5368
5369         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
5370           Add some on-the-spot code, but it seems we don't need it.
5371
5372 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5373
5374         * Form.cs: Add method for DataGridView to trigger focus cues
5375         even when it handles the tab keypress.
5376
5377 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5378
5379         * DataGridView.cs: More keyboard handling, tab, esc.
5380         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
5381         when at the beginning or end of the text in the text box.
5382
5383 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5384
5385         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
5386
5387 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5388
5389         * DataGridView.cs: Some fixups for showing and adding the edit control.
5390         * DataGridViewButtonColumn.cs: Implement ToString.
5391         * DataGridViewCell.cs: Size and position the control simultaneously.
5392         * DataGridViewTextBoxCell.cs: Use base to position control.
5393
5394 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5395
5396         * DataGridViewCell.cs: Fix up some formatting and painting code.
5397         * DataGridViewImageCell.cs: Implement some NIEX methods.
5398
5399 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5400
5401         * ToolStripItemCollection.cs: What moving an item from one owner
5402         to another, remove from source owner before adding to destination.
5403         [Fixes bug #378109]
5404
5405 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5406
5407         * PictureBox.cs: Call Load when ImageLocation is set.
5408         [Fixes bug #378308]
5409
5410 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
5411
5412         * X11Keyboard.cs, XplatUIX11.cs :
5413           Implement over-the-spot mode (with some odd offsets).
5414           - set preedit position when caret is set.
5415           - Wrap XMoveResizeWindow() to move preedit position.
5416
5417 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5418
5419         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
5420         array lenght.
5421
5422 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5423
5424         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
5425         and ScanTableIndex public, it fix compilations errors when compiling
5426         WinForms to generate keyboard layout resources.
5427
5428 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5429
5430         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
5431         different element count than scan table. It prevents some errors in non
5432         standard keyboards.
5433
5434 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
5435
5436         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
5437
5438 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
5439
5440         * DataGridView.cs: Call OnContentClick.
5441         * DataGridViewCell.cs: Do a null check on ValueType instead
5442         of valueType.
5443         * DataGridViewCheckBoxCell.cs: Implement.
5444
5445 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5446
5447         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
5448
5449 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5450
5451         * X11Keyboard.cs : Check XGetIMValues() return value in
5452           case it does not return input styles in some environment.
5453
5454 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5455
5456         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
5457
5458 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5459
5460         * BindingContext.cs: Stub UpdateBinding method.
5461
5462 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
5463
5464         * X11Structs.cs : added couple of structs for XIM support.
5465         * X11Keyboard.cs :
5466           Release XIM in case it failed to create XIC. 
5467           Use consts for XNblah string.
5468           Add support for IM style customization and XIC creation
5469           for preedit-position and preedit-callback.
5470           Right now use MONO_WINFORMS_XIM_STYLE environment variable
5471           (list of: over-the-spot | on-the-spot | root). Only root
5472           mode works so far.
5473
5474           (redoing r99172 with fix.)
5475
5476 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5477
5478         * TreeView.cs: Center the checkbox a little better.
5479
5480 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5481
5482         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
5483         Apply very nice patch from Ernesto Carrea that simplifies our
5484         scrollbar drawing.  [From bug #376146]
5485
5486 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5487
5488         * TreeView.cs: Correct the location of the root node checkbox when
5489         ShowRootLines = false.  Don't draw the root lines for the root node
5490         when ShowRootLines = false.  [Fixes bug #377535]
5491
5492 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
5493
5494         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
5495         Fixed line endings.
5496         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
5497         line endings.
5498         * MaskedTextBox.cs: Added missing attribute. Code formatting.
5499         * PageSetupDialog.cs: Added missing attribute. Code formatting.
5500         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
5501         * ImeMode.cs: Added missing field.
5502         * HtmlWindow.cs: Code formatting. Fixed line endings.
5503         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
5504         warnings.
5505         * HtmlHistory.cs: Code formatting. Fixed line endings.
5506         * HtmlDocument.cs: Code formatting. Fixed line endings.
5507         * ToolStripPanel.cs: Added missing IList implementation.
5508         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
5509
5510 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
5511
5512         * BindingContext.cs: Changed argument names to fix corcompare errors.
5513         * DataGridView.cs: Removed extra explicit interface implementation
5514         of IDropTarget. Code formatting.
5515         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
5516         * ComboBox.cs: Changed argument names to fix corcompare errors.
5517         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
5518         errors.
5519         * GridColumnStylesCollection.cs: Changed argument names to fix
5520         corcompare errors. Removed extra tabs.
5521         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
5522         errors.
5523         * Control.cs: Changed argument names to fix corcompare errors. Code
5524         formatting. Removed extra explicit IList implementation.
5525         * TextBox.cs: Changed argument names to fix corcompare errors. Code
5526         formatting. Use string.Empty instead of "".
5527         * GridItemCollection.cs: Changed argument names to fix corcompare
5528         errors. Code formatting.
5529         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
5530         corcompare errors. Code formatting.
5531         * ImageList.cs: Changed argument names to fix corcompare errors.
5532         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
5533         * DataGridViewRowCollection.cs: Changed argument names to fix
5534         corcompare errors. Code formatting.
5535         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
5536         * DataGridViewSelectedCellCollection.cs: Changed argument names to
5537         fix corcompare errors. Code formatting.
5538         * DataGridViewComboBoxCell.cs: Changed argument names to fix
5539         corcompare errors. Code formatting.
5540         * LinkLabel.cs: Changed argument names to fix corcompare errors.
5541         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
5542         formatting.
5543         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
5544         Code formatting.
5545         * BindingSource.cs: Changed argument names to fix corcompare errors.
5546         Removed extra explicit interface implementations.
5547         * DataGridViewSelectedRowCollection.cs: Changed argument names to
5548         fix corcompare errors. Code formatting.
5549         * ToolStripItemCollection.cs: Removed extra explicit interface
5550         implementation of IList.ReadOnly.
5551         * DataGridViewColumnCollection.cs: Changed argument names to fix
5552         corcompare errors. Code formatting.
5553         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
5554         * ListView.cs:  Changed argument names to fix corcompare errors.
5555         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
5556         errors.
5557         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
5558         errors.
5559         * ListBindingHelper.cs: Changed argument names to fix corcompare
5560         errors.
5561         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
5562         fix corcompare errors. Code formatting.
5563         * ToolStripPanel.cs: Removed extra explicit implementation of
5564         IDropTarget interface.
5565         * ListBox.cs: Changed argument names to fix corcompare errors. Code
5566         formatting. Removed extra tabs and spaces.
5567         * DataGridViewCellCollection.cs: Changed argument names to fix
5568         corcompare errors.
5569         * Help.cs: Changed argument names to fix corcompare errors. Code
5570         formatting.
5571         * TabControl.cs: Changed argument names to fix corcompare errors.
5572         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
5573         errors.
5574         * TableLayoutSettings.cs: Changed argument names to fix corcompare
5575         errors.
5576
5577 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5578
5579         * ListBindingHelper.cs: When returning properties, only return those
5580         that are browsable. Also, don't do a linear search of the properties,
5581         but use the indexer of the PropertyDescriptorCollection class.
5582
5583 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5584
5585         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
5586         Dictionary containing the related (child) currency managers. Also,
5587         when setting DataSource, add datasource to our List if it is not a list.
5588
5589 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
5590
5591         * PropertyGridTextBox.cs: Fix background color of the buttons.
5592         * PropertyGridView.cs: Make the entry less jumpy.
5593
5594 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
5595
5596         * PropertyGrid.cs: Fix unused variable warnings.
5597
5598 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
5599
5600         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
5601         double-click. It expanded it once in the mouse down and then 
5602         again in the double-click handler.
5603
5604 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
5605         
5606         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
5607         TypeConverter and UITypeEditors.
5608
5609 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
5610
5611         * Control.cs: Visibility should be set synchronously, 
5612         so we must also redraw once it is and not rely on layouting or 
5613         other code to repaint.
5614         [Fixes bug #339898]
5615
5616 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
5617
5618         * DataGridViewCell.cs: Respect DataGridView.GridColor.
5619
5620 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5621
5622         * Control.cs: Invalidate when the alpha channel is less than 255,
5623         not only when control is transparent.
5624
5625 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5626
5627         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
5628         Implement some painting convenience methods that threw NIEX.
5629
5630 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5631
5632         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
5633         * DataGridViewLinkCell.cs: Implement.
5634
5635 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
5636
5637         * GridEntry.cs: Report the conversion exception error description.
5638         [Fixes bug #375792]
5639
5640 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
5641
5642         * PropertyGridView.cs: Do not scroll to item on resize.
5643         [Fixes bug #375789]
5644
5645 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5646
5647         * BindingContext.cs: When retrieving a BindingManagerBase, if the
5648         dataSource parameter is ICurrencyManagerProvider, then return
5649         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
5650         instead of creating a new one.
5651
5652 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5653
5654         * BindingSource.cs: Implement support for Type instances as
5655         DataSource.
5656
5657 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
5658
5659         * DataGridView.cs: Minor cleanups and call CellMouseUp.
5660         * DataGridViewCell.cs: Make some painting routines internally virtual.
5661         * DataGridViewButtonCell.cs: Implement.
5662
5663 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
5664
5665         * Control.cs: We always need to invalidate our children with
5666         transparent backgrounds when we are invalidated.
5667         [Fixes bug #376081]
5668
5669 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5670
5671         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
5672         and CancelCurrentEdit on CurrencyManager respectively. Implement
5673         support for ICancelAddNew too.
5674
5675 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5676
5677         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
5678         call EndNew/CancelNew if list is ICancelAddNew.
5679
5680 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
5681
5682         * DataGridView.cs: Guard against an exception while painting
5683         if there are no rows.
5684
5685 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
5686
5687         * DataGridView.cs: Implement a bunch of keyboard commands.
5688
5689 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
5690
5691         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
5692         isn't set, don't call OnPaint.  [Fixes bug #375300]
5693
5694 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5695
5696         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
5697         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
5698         hookup the remaining events related to CurrencyManager, and fire
5699         OnListChanged also for the Clear () method.
5700
5701 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5702
5703         * BindingSource.cs: Use Current and Position implementations in
5704         CurrencyManager instead of using our own routines, since we need 
5705         to be in synch with it. Count should NEVER return a -1 value, and 
5706         also report ListChanged events for both simple IList data 
5707         sources (manually) as well for IBindingList ones (by hooking up an
5708         event handler for it).
5709
5710 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5711
5712         * BindingSource.cs: Make one .ctor call the another, to avoid
5713         duplicate code. Add the CurrencyManager property, and also for AddNew
5714         throw the proper exceptions and show better error messages.
5715
5716 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5717
5718         * ComboBox.cs: Only adjust selectedindex if Handle has been
5719         created.  Fixes failing test.
5720
5721 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5722
5723         * ComboBox.cs: Adjust selectedindex if we insert a new item
5724         above the current selectedindex in a sorted ComboBox.
5725         [Fixes bug #374654]
5726
5727 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5728
5729         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
5730         [Fixes bug #374712]
5731
5732 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5733
5734         * DataGridViewTextBoxCell.cs: Implement stuffs.
5735
5736 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5737
5738         * TreeView.cs: Create the scrollbars even earlier to be
5739         double dog certain they are created before they are accessed.
5740
5741 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5742
5743         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
5744
5745 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5746
5747         * ScrollBar.cs: Create an internal safe Value setter so we
5748         won't crash if we try to set a value outside the min and max.
5749         * TextBoxBase.cs: Use safe value setter to guard against a
5750         potential NRE that is being reported by Reflector.
5751
5752 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5753
5754         * TreeView.cs: Create the scrollbars earlier in the constructor
5755         to attempt to guard against an NRE in SetTop in Reflector.
5756
5757 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5758
5759         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
5760         DataGridViewRowCollection.cs: Do not scroll column and row headers,
5761         show messagebox on data format error, use column display index
5762         correctly, make sure HitTest supports new layout stuff,
5763         make sure scrollbars support new layout stuff.
5764
5765 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
5766
5767         * XplatUIX11.cs : Patch by Doug Rintoul.
5768           For some IM engines, keypress events need to delay call
5769           to XPending() and XNextEvent() in the loop so that it
5770           does not mess the orders in XIM commit callback.
5771           Some KeyRelease events such as shift keys need to be
5772           processed both in the IM engine and winforms driver
5773           itself since winforms holds its own state check.
5774
5775           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
5776
5777 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
5778
5779         * X11Keyboard.cs, XplatUIX11.cs :
5780           add primitive support for XIM input support (preedit-
5781           nothing and status-nothing). It requires precise event
5782           capturing (XSelectInput/"filterEvents") and different
5783           call to XFilterEvent against root window.
5784           Get composed string and send dummy WM_IME_COMPOSITION.
5785           Free XIM and XIC instances in finalizer.
5786
5787           (This first patch does not include suggested changes
5788            by Doug Rintoul. It will follow.)
5789
5790 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
5791
5792         * DataGridView.cs: When binding to a property, if the property
5793         doesn't have a setter, set the column to readonly.
5794         [Fixes bug #343965]
5795
5796 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
5797
5798         * ComboBox.cs: Guard against NRE if an arrow key is hit while
5799         we aren't dropped down.  Support Home/End in DropDownList mode.
5800         [Fixes bug #371990]
5801
5802 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
5803
5804         * TreeNodeCollection.cs: Don't increment count until we've
5805         saved our index to return.
5806         [Fixes bug #373603]
5807
5808 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5809
5810         * Label.cs: Add padding to the label's AutoSize calculation.
5811         [Fixes bug #373792]
5812
5813 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5814
5815         * ListBindingHelper.cs: Actually implement GetListName method.
5816
5817 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5818
5819         * BindingSource.cs: Throw the propert expceptions for some methods, as
5820         well as detect the list item type for Add method if DataSource is null.
5821
5822 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5823
5824         * DataGridViewCell.cs: I don't know why I commented this out,
5825         putting it back for now.
5826
5827 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5828
5829         * DataGridViewCell.cs: Remove storage for owning column, just
5830         use column index.
5831         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
5832         * DataGridViewColumnHeaderCell.cs: If the header text has been
5833         explicitly set, return it.
5834         [Fixes bug #325979]
5835
5836 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5837
5838         * DataGridViewRowCollection.cs: Disable row sharing when
5839         using data binding.  Its a great feature, but lets work on
5840         getting DGV usable first before we worry about optimizations.
5841
5842 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5843
5844         * BindingSource.cs: When resetting our internal list, compute list
5845         item type information to be used for indirect list access. Also
5846         implement/tune some properties and methods related to the list access
5847         too.
5848         * ListBindingHelper.cs: Add a stub for GetListName method, used from
5849         BindingSource.
5850
5851 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5852
5853         * DataGridView.cs: If RowCount is increased while ColumnCount
5854         is zero, add a column.  [Fixes bug #331649]
5855
5856 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5857
5858         * DataGridViewRowCollection.cs: When adding new rows for
5859         databinding, make sure they are place before the add row.
5860         [Fixes bug #343961]
5861
5862 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5863
5864         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
5865         instead of Index order.
5866
5867 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5868
5869         * DataGridView.cs: If columns are added by increasing ColumnCount,
5870         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
5871         [Fixes bug #325588]
5872
5873 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5874
5875         * DataGridView.cs: Turn off and on the "new row" when 
5876         AllowUserToAddRows is toggled.  When the handle is created,
5877         set current cell and selected cell/row/col.
5878
5879 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5880
5881         * ComboBox.cs: When navigating the drop down by keyboard, we
5882         need to scroll the list box if our selection moves out of the
5883         currently shown items.  [Fixes bug #371990]
5884
5885 2008-03-24  Luke Page <luke.a.page@gmail.com>
5886
5887         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
5888         on the control. Also now handles unicode compatibility characters and
5889         stores the unicode compatibility length on the stack. Fixes Bugs
5890         #355198 and #366436.
5891
5892 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5893
5894         * BindingSource..cs: Take into account DataMember when re-creating the
5895         List property, and also create a specific kind of list as needed.
5896
5897 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5898
5899         * ListBindingHelper.cs: Add a new case for GetList () method - when we
5900         get an empty IEnumerable, try to detect whether the datamember is
5901         valid or not for that type, if true, return null, and throw exception
5902         otherwise.
5903
5904 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
5905
5906         * ComboBox.cs: Alt-Down should drop down the list, Esc should
5907         retract it.  [Fixes bug #371989]
5908
5909 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
5910
5911         * PropertyGrid.cs: Initialize the sorting button as pushed.
5912
5913 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
5914
5915         * PropertyGrid.cs: 
5916          - Visually select the PropertyTab.
5917          - Filter Properties by Attributes properly.
5918
5919 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5920
5921         * MenuItem.cs: Remove menu item from parent when disposed.
5922         [Fixes bug #372845]
5923
5924 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5925
5926         * ToolBar.cs: Don't reset layout_type if Dock = None.
5927
5928 2008-03-21  Andreia Gaita <avidigal@novell.com> 
5929
5930         * UserControl.cs: Select the first available control when we get focus.
5931           Fixes #372616
5932
5933 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5934
5935         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
5936         the content if we are in edit mode.  [Fixes bug #343964]
5937
5938 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5939
5940         * DataGridViewCell.cs: Fix border painting for column headers.
5941
5942 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5943
5944         * BindingSource.cs: When setting or resetting data source,
5945         use ListBindingHelper.GetList () method, since it will get the list in
5946         case datasource is IListSource.
5947
5948 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
5949
5950         * DataGridViewCell.cs: Implement lots more stuffs.
5951
5952 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5953
5954         * PropertyGridView.cs, GridEntry.cs: Implement support for 
5955         UITypeEditor.IsDropDownResizable.
5956
5957 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
5958
5959         * DataGridViewCell.cs: Remove unused variables, improve how
5960         several of the property getters work.
5961         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
5962         get its size from the parent row/col.
5963
5964 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5965
5966         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
5967         user alters manually the PropertyTabs collection via the 
5968         PropertyTabs property.
5969
5970 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5971
5972         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
5973         new tests for them to be sure to be compatible with .net.
5974
5975 2008-03-20  Andreia Gaita <avidigal@novell.com> 
5976
5977         * WebBrowserBase.cs: Fix attributes, add events
5978         * WebBrowser.cs: Fix Padding signature
5979
5980 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5981
5982         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
5983
5984 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
5985
5986         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
5987         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
5988         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
5989         passes the new suite of tests for it.
5990
5991 2008-03-18  Andreia Gaita <avidigal@novell.com> 
5992
5993         * WebBrowser.cs: Add missing attributes, missing Padding and
5994           DefaultSize properties, remove extraneous getters
5995
5996 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5997
5998         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
5999         method overloads.
6000
6001 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6002
6003         * ComboBox.cs: Move resetting the selected index to keypress
6004         instead of textchanged.  Changing the text programmatically
6005         should not trigger resetting the selected index.  Fixes test.
6006
6007 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6008
6009         * ComboBox.cs: When the user types into the textbox, reset
6010         the selected index to -1.  [Fixes bug #371672]
6011
6012 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6013
6014         * FileDialog.cs: Support Control-A for selecting everything
6015         in an OpenFileDialog.  [Fixes bug #371564]
6016
6017 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
6018
6019         * DataGridView.cs: When row/column visible/height properties
6020         change, invalidate.  Take the NIEX out of InvalidateRow/Column
6021         etc.  We don't support them yet, but we can just invalidate
6022         everything until we do support them.  (Added MonoTODO).  Set
6023         proper control styles.
6024         * DataGridViewRow.cs: Don't call PaintHeader if row headers
6025         are turned off. 
6026
6027 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6028
6029         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
6030
6031 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
6032
6033         * DataGridViewRow.cs: Only paint the white background in
6034         cell bounds, the row bounds extends past the cells if the 
6035         grid width isn't as wide as the DGV.
6036
6037 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
6038
6039         * DataGridView*: Completely revamp the drawing to match the
6040         public API.  Our grids now look better, and call all the
6041         appropriate methods and event to allow users to override
6042         the painting and do their own.
6043
6044 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6045
6046         * ListBindingHelper.cs: Implement 2.0 GetList methods.
6047
6048 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6049
6050         * DataGridView.cs: Implement BorderStyle.
6051
6052 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6053
6054         * FileDialog.cs: Apply patch from Andy Hume: Any time we
6055         are comparing attributes, make sure we only look at the
6056         one we are interested.  These calls were failing if there
6057         were more than one attribute.
6058         [Fixes bug #370385]
6059
6060 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6061
6062         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
6063
6064 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6065
6066         * PageSetupDialog.cs: Stub EnableMetric.
6067         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
6068         * PrintPreviewDialog.cs: Add ProcessDialogKey,
6069         ProcessTabKey.
6070
6071 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6072
6073         * MonthCalendar.cs: Remove unused variable.
6074
6075 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6076
6077         * DataGridView*.cs: corcompare stuffs.
6078
6079 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6080
6081         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
6082         The savings aren't worth the extra code to fix the optimization.
6083         [Fixes bug #368585]
6084
6085 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6086
6087         * ToolBar.cs: Always call base.Dock in the Dock override so that
6088         Control's layout_type gets reset correctly.
6089         [Fixes bug #368882]
6090
6091 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
6092
6093         * X11Dnd.cs: End DnD operation also for the middle mouse button.
6094
6095 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6096
6097         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
6098         at the same time we do explicit ones, because we have to give all
6099         other controls on the container a chance to handle explicit ones
6100         first.  If no one has an explicit mnemonic, then we can let the
6101         MenuStrip have a shot at implicit mnemonics.
6102         * MenuStrip.cs: Create an implicit mnemonic function.
6103         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
6104         mnemonics for MenuStrips.
6105         [Fixes bug #368493]
6106
6107 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6108
6109         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
6110         DataGridColumnStyle.cs: corcompare stuffs.
6111
6112 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6113
6114         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
6115         Details - This is needed after we added the bits to use any available
6116         column also for List and SmallIcon view. 
6117
6118 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6119
6120         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
6121         at the proper place, not only when changing SelectedIndex and changing
6122         the selection using keys/mouse, as .net does.
6123
6124 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6125
6126         * ControlBindingsCollection.cs: Implement last 2.0
6127         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
6128         in the new 2.0 Add methods.
6129
6130 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6131
6132         * ListBox.cs: When calling SelectedIndexCollection.Clear,
6133         return if no items are previously selected - this is done to avoid 
6134         firing OnSelectedIndexChanged without need to do so. Also,
6135         when creating handle ensure that the focused item is visible (as
6136         .net does).
6137
6138 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6139
6140         * ListBox.cs: Rewrote/refactored most of selection code. We require
6141         the following things in selection: a) keep selection sorted (both
6142         indices and items), b) SelectedIndices automatically detect the
6143         selection mode, c) SelectedIndex should be the first selected item
6144         index, d) Need to Focus/adjust scroll bar when selecting a new item,
6145         not only for SelectedIndex, which is specially important in Multi*
6146         selection modes. To achieve this we are moving the selection core to
6147         SelectedIndexCollection and make depend all selection modifications on
6148         it.
6149         Fixes #366438.
6150
6151 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6152
6153         * ToolStrip.cs: Enable implicit mnemonics for drop down
6154         menu strips.  [Fixes part of bug #367692]
6155
6156 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6157
6158         corcompare - fix parameter names [stragglers].
6159         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
6160         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
6161         TabControl.cs.
6162
6163 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6164
6165         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
6166         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
6167         mnemonic, let the ToolStripManager have it even if it doesn't
6168         have a matching mnemonic.
6169         [Fixes bug #367499]
6170
6171 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6172
6173         corcompare - fix warning about implicit implementation
6174         * ToolStrip.cs: Add IToolStripData interface.
6175         * IToolStripData.cs: Add.
6176
6177 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6178
6179         corcompare - fix warning about implicit implementation
6180         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
6181         * IBounds.cs: Add.
6182
6183 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6184
6185         corcompare - fix parameter names [N-Z].
6186         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
6187         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
6188         PropertyManager.cs, RichTextBox.cs,
6189         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
6190         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
6191         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
6192         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
6193         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
6194         ToolStripContentPanel.cs, ToolStripDropDown.cs,
6195         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
6196         ToolStripPanel.cs, ToolStripSeparator.cs,
6197         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
6198         UICuesEventHandler.cs, UpDownBase.cs.
6199
6200 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6201
6202         corcompare - fix parameter names [G-M].
6203         GridColumnStylesCollection.cs, GridItemCollection.cs,
6204         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
6205         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
6206         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
6207         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
6208         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
6209
6210 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6211
6212         corcompare - fix parameter names [A-F].
6213         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
6214         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
6215         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
6216         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
6217         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
6218         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
6219         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
6220
6221 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
6222
6223         * GridEntry.cs: Do not convert not only if the types match, 
6224         but also if the property type is assigneable from the value's
6225         type.
6226         [Fixes bug #366566]
6227
6228 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
6229
6230         * PropertyGridView.cs: 
6231          - Subscribe to the listbox only once and not everytime.
6232          - Update the textbox even if SetValue fails.
6233          - Close the listbox before calling TrySetValue just in case.
6234          [Fixes bug #366569]
6235
6236 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
6237
6238         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
6239
6240 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6241
6242         * ListView.cs: Implement support for custom column width based on
6243         Columns collection (we were previously using this collection only
6244         with Details view).
6245         Fixes #364484.
6246
6247 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6248
6249         * ListViewItem.cs: For Tile view, always set bounds for the first
6250         subitem (which is the main one), and also don't let Width be larger
6251         than ListView.TileSize.Width. Improve code readibility also.
6252         * ThemeWin32Classic.cs: When painting the ListViewItem instances
6253         in Tile view, _always_ use the NoWrap flag.
6254         Fixes #360798.
6255
6256 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
6257
6258         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
6259         in case.
6260         * GridEntry.cs: For MS compitability make all child properties 
6261         readonly if the parent is readonly. Ugh.
6262         [Fixes bug #365945 and #365944]
6263
6264 2008-02-29  Andreia Gaita <avidigal@novell.com> 
6265
6266         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
6267           relative to the history
6268
6269 2008-02-29  Andreia Gaita <avidigal@novell.com>
6270
6271         * HtmlElement.cs: More handlers for mouse and key events
6272
6273 2008-02-28  Andreia Gaita <avidigal@novell.com>
6274
6275         * WebBrowserBase.cs: MouseClick sig changed.
6276         * HtmlHistory.cs: Implement history navigation
6277         * HtmlElement.cs: Add event handlers, and connect them.
6278
6279 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
6280
6281         * GridEntry.cs: 
6282          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
6283            so that DisplayNameAttribute doesn't get ignored.
6284          - Check for ParenthesizeNameAttribute and parenthesize the Label.
6285          - Add support for PasswordPropertyTextAttribute
6286         * PropertyGridView.cs: Check if an entry is a password.
6287         [Fixes bugs #365589, #365586, #365588]
6288
6289 2008-02-28  Andreia Gaita <avidigal@novell.com>
6290
6291         * PropertyGridView.cs: Revert the message filtering change, as we
6292         need it to block after all. Remove block parameter, unnecessary.
6293
6294 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
6295
6296         * UserControl.cs: Better implementation of GetPreferredSize.
6297         First step to fixing bug #361441.
6298
6299 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6300
6301         * Binding.cs: Actually implement data binding support for 
6302         classes implementing IBindableComponent.
6303         * ControlBindingsCollection.cs: Likewise.
6304
6305 2008-02-26  Andreia Gaita  <avidigal@novell.com>
6306
6307         * PropertyGridView.cs: Use a message filter to check when to 
6308         close the dropdown
6309
6310 2008-02-26  Andreia Gaita  <avidigal@novell.com>
6311
6312         * Application.cs: Change the message_filters loop so a filter 
6313         can be removed while looping.
6314
6315 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
6316
6317         * GridEntry.cs: Optimization in ToggleValue so that it caches
6318         the current value.
6319         * PropertyGridView.cs: An optimization so that the property isn't 
6320         re-read twice for each StandardValue added to the drop-down menu.
6321         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
6322         license.
6323         [Fixes bug #362755]
6324
6325 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
6326
6327         * Application.cs: Apply patch from Justin Cherniak to match
6328         MS better for ProductName, ProductVersion, and CompanyName.
6329         [Fixes bug #361709]
6330
6331 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6332
6333         * Binding.cs: Actually implement 2.0 NullValue property. Also
6334         when changing the formatting related properties, only update the state
6335         if formatting_enabled is true (we don't mind otherwise).
6336
6337 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
6338
6339         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
6340         [Fixes bug #364486]
6341
6342 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
6343
6344         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
6345         of GetType on the current value as it uses reflection to 
6346         determine the type. This fixes the case where the new value is 
6347         null. 
6348
6349 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
6350
6351         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
6352         past the view.
6353
6354 2008-02-24  Luke Page  <luke.a.page@gmail.com>
6355
6356         * Line.cs, TextControl.cs: Implement offset x and y so that a
6357         document doesn't have to begin  at (0,0) on the viewpoint.
6358         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
6359         bars and switches the text alignment (and therefore is now
6360         implemented for textbox). Fixes #321383.
6361
6362 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6363
6364         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
6365         properties. Also when changing FormattingEnabled update the control
6366         property -as .Net does-.
6367
6368 2008-02-22  Carlos Alberto Cortez <calberto.cortez@ŋmail.com>
6369
6370         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
6371         * Binding.cs: Add stubs for the overloads of the Add method in
6372         CBCollection.
6373
6374 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6375
6376         * Binding.cs: PullData () returns a false value if we got an exception.
6377         Also when validating the control and we get an error, instead of
6378         setting the value of the previous one, cancel the event (tested in 1.1
6379         and 2.0).
6380
6381 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
6382
6383         * TreeView.cs: Make selected_node and highlighted_node internal.
6384         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
6385         to null when Nodes.Clear is called.
6386         [Fixes bug #363884]
6387
6388 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6389
6390         * FontDialog.cs: Ensure that when the Font is set in code,
6391         all the gui pieces are updated accordingly.
6392         [Fixes bug #361020]
6393
6394 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6395
6396         * TextRenderer.cs: Respect proposed size for MeasureString.
6397         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
6398         autosize, use a proposed width to force wrapping for long text.
6399         [Fixes bug #360981]
6400
6401 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6402
6403         * TreeView.cs: Factor in checkboxes = false and state images in
6404         to HitTest.  [Fixes bug #363360]
6405
6406 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6407
6408         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
6409         when drawing the selected range.
6410         [Fixes bug #363648]
6411
6412 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6413
6414         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
6415         ResizeRedraw control styles.
6416         [Fixes bug #363555]
6417
6418 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6419
6420         * TreeView.cs: StateImages are basically custom checkboxes, so
6421         factor their size the same as real checkboxes when determining
6422         what got clicked.
6423         [Fixes bug #363367]
6424
6425 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6426
6427         * MessageBox.cs: Make the message box wider if the form caption
6428         is longer than the text in the form.
6429         [Fixes bug #361137]
6430
6431 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
6432
6433         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
6434
6435 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6436
6437         * TreeNode.cs: Guard against an NRE when the parent's
6438         StateImageList hasn't been set.
6439         [Fixes bug #363353]
6440
6441 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6442
6443         * SplitContainer.cs: Add SupportsTransparentBackColor and
6444         OptimizedDoubleBuffering control styles.
6445         [Fixes bug #363303]
6446
6447 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6448
6449         * Application.cs: For the app data paths and the registry key paths,
6450         ensure they are created before returning them to the user.
6451         [Fixes bug #361709]
6452
6453 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6454
6455         * Application.cs: Guard against an NRE in CompanyName and
6456         ProductName.
6457
6458 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6459
6460         * Application.cs: For CompanyName, ProductName, and ProductVersion,
6461         make sure we handle all three cases correctly: attribute is present,
6462         attribute is present but is an empty string, and attribute is not
6463         present.
6464
6465 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
6466
6467         * PropertyGridView.cs: 
6468          - Fix a NRE that caused a test failure
6469          - Another performance improvement - cache the standard values
6470          listbox.
6471
6472 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6473
6474         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
6475         code paths.
6476
6477 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
6478
6479         * PropertyGridView.cs: Fix a big performance bug.
6480
6481 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6482
6483         * SelectionRange.cs: Apply patch from Andy Hume to make
6484         constructor behavior more accurate.  [Fixes bug #362117]
6485
6486 2008-02-19  Andreia Gaita <avidigal@novell.com> 
6487
6488         * Control.cs: Added a new flag is_disposing to track if the
6489         window is currently in the process of being disposed of.
6490         This is used so that, when firing visibility changes triggered
6491         by unparenting controls during Dispose, the control doesn't
6492         get created again.      
6493
6494 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6495
6496         * ComboBox.cs: Set height to preferred height when the handle
6497         is created.  [Fixes bug #360862]
6498
6499 2008-02-18  Andreia Gaita <avidigal@novell.com>
6500
6501         * XplatUIX11.cs: Create FosterParent with border width at 0.
6502         With the previous value of 4, everytime a control got reparented
6503         from parent = null, it's location would be shifted right and 
6504         down by 4, since these coordinates would be offset by the 
6505         FosterParent's border width.
6506
6507 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
6508
6509         * Control.cs: During diposing firstly remove ourselfes from
6510         the parent and *then* destroy our handle, because removing
6511         ourselfes from the parent controls collection causes 
6512         VisibilityChange, etc events, which require a handle and end
6513         up recreating the control.
6514
6515 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
6516
6517         * GridEntry.cs: Set expanded state before notifying that the
6518         expansion has taken place.
6519         * PropertyGridView.cs:
6520          - Set the propertygridtextbox text to the selected 
6521          StandardValue before proceeding to setting it.
6522          - Scrolling bugfixes.
6523
6524 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6525
6526         * GridEntry.cs:
6527          - Fix ValueText to not return null.
6528          - Fix conversion error reporting to actually happen.
6529         * PropertyGridView.cs: Set entry only if the text has changed.
6530         [Fixes bug #362116]
6531
6532 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6533
6534         * GridEntry.cs: 
6535          - Fix handling of a null current value.
6536          - Swallow editor exceptions.
6537         [Fixes bug #362114]
6538
6539 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6540
6541         * PropertyGrid.cs: Clear current items first thing before 
6542         repopulating subitems.
6543         * GridEntry.cs: 
6544          - Handle null StandardValuesCollection.
6545          - Mark as not editable if there is no PropertyDescriptor and
6546          if the Converter cannot convert from string.
6547         [Part of fix for bugs #360666 and #358332]
6548
6549 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6550         * MaskedTextBox.cs: Now skips non editable characters after a
6551         character has been entered and we are progressing to the next
6552         position in the MaskedTextBox.
6553
6554 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6555         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
6556         that it changes the selection rather than just repositioning the
6557         cursor. Fixes Bug #360873.
6558
6559 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6560         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
6561         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
6562         correctly. See #359330
6563
6564 2008-02-15  Andreia Gaita <avidigal@novell.com>
6565
6566         * XplatUIX11.cs: If the handle is null when posting a message, use the
6567         current thread queue to post instead. Fixes #332409
6568
6569         * SendKeys.cs: Slight optimization
6570
6571 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
6572
6573         * PropertyGrid.cs, PropertyGridView.cs:
6574         Fix multiple scrolling and sizing issues.
6575         [Fixes bug #359199]
6576
6577 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
6578
6579         * PropertyGridView.cs: Ensure that drop down editors are shown
6580         in the WorkingArea of the screen.
6581         [Fixes bug #359807]
6582
6583 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
6584
6585         * GridEntry.cs: Fail silently when UITypeEditor is missing.
6586         [Fixes bug #360666]
6587
6588 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6589
6590         * Binding.cs: Implement 2.0 DataSourceNullValue property.
6591
6592 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
6593
6594         * PropertyGridView.cs:
6595          - Clear the controls in the drop down form after it is hidden.
6596          - Fix Width sizing of the dropdown editors to match MSFT.
6597
6598 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
6599
6600         * PropertyGridView.cs: 
6601          - Fix height for drawing the grid entry
6602          text value, so that it clips multiline text properly.
6603          - Fix unfocusing to match MSFT.
6604
6605 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
6606
6607         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
6608         Fixes a bug where on repopulation after value changed items become
6609         expandable.
6610
6611 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6612
6613         * Binding.cs: For the 2.0 profile, look for a 
6614         'PropertyChanged' event in the target control, and add checks for
6615         DataSourceUpdateMode property to change -or not- the data source
6616         from validation/control property change.
6617
6618 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
6619
6620         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
6621           not compare struct with null in 2.0).
6622
6623 2008-02-10  Luke Page <luke.a.page@gmail.com>
6624
6625         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
6626         updates the provider and if not using a provider, uses the internal document
6627         class implementation of password char. Also when showing text, uses display string
6628         from the provider, instead of the actual text.
6629
6630 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6631
6632         * Binding.cs: Ooooops, forgot to take into account the data_source
6633         and binding_member_info null case (it was breaking the Binding tests).
6634
6635 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6636
6637         * Binding.cs: Implement support for data source changes exposed by
6638         'PropertyNameChanged' events, and update the control property as
6639         needed.
6640
6641 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6642
6643         * Binding.cs: Implement 2.0 WriteValue method.
6644
6645 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6646
6647         Commit patch from James Purcell for better AutoScale implementation:
6648
6649         * ScaleControl should call GetScaledBounds with the control's total size rather
6650         than client size.  GetScaledBounds should handle ignoring the borders in its
6651         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
6652         (for the most part they just call the base code now since that is fixed).
6653         * Added ScaleChildrenInternal to allow controls to disable scaling of children
6654         without having to override ScaleChildren (since none of .NET's controls do). 
6655         This is required for most controls in Mono that have scrollbars to prevent the
6656         scrollbars from being moved/resized.
6657         * Nested ContainerControls can have a different scale mode than their parent. 
6658         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
6659         designer produce different results both of which look incorrect).
6660         * Default AutoScaleMode for ContainerControl should be Inherit.
6661         * Simplified workaround for ComboBox scaling issue.
6662         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
6663         1.0 style auto scaling should scale the whole control's size instead of
6664         ignoring the borders (except for Form) and the rounding is done differently to
6665         preserve control alignment.
6666         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
6667         GetAutoScaleSize.
6668         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
6669         * CurrentAutoScaleDimensions should round the estimated character width instead
6670         of truncating.
6671         * ListBox's GetScaledBounds should always use the height it was set to instead
6672         of the height that was passed in.  This prevents rounding errors from
6673         accumulating quickly with IntegralHeight.
6674         [Bug #359098]
6675
6676 2008-02-08  Andreia Gaita <avidigal@novell.com>
6677
6678         * Form.cs: Add a null check (darn it). 
6679
6680 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6681
6682         * MdiClient.cs: Make sure the requesting form actually owns the
6683         control menu items before removing them.  Also, use
6684         Suspend/ResumeLayout when adding or removing items so we only
6685         layout once.
6686         [Fixes bug #359887]
6687
6688 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6689
6690         * Control.cs: Guard against an NRE in ShowFocusCues.
6691         [Fixes bug #359830]
6692
6693 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6694
6695         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
6696         property, as well as stubbing DataSourceUpdateMode.
6697
6698 2008-02-08  Andreia Gaita <avidigal@novell.com>
6699
6700         * Form.cs: When closing forms, get focus back to the active control of the
6701         active form. [Fixes #341314, corner case]
6702         
6703 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6704
6705         * MdiClient.cs: After we move the scrollbars, invalidate the NC
6706         area, so any old scrollbar artifacts are cleaned up.
6707         [Fixes bug #336305]
6708
6709 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6710
6711         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
6712         for our menus, display that control box menu instead of the 1.1
6713         menu one.
6714
6715 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6716
6717         * MdiControlStrip.cs: Add property to access the mdi form tied to
6718         each toolstripitem.
6719         * MdiClient.cs: Be smarter about removing and adding toolstripitems
6720         to the implicitly merged menu.  Every time we clicked the form, items
6721         were getting removed and the re-added, causing the form to jump around
6722         as the menu resized.
6723
6724 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6725
6726         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
6727         was being reset by the implicit menu merge for menustrips.
6728         [Fixes bug #336296]
6729
6730 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6731
6732         * Form.cs: Don't do the previous change when WindowState = Normal,
6733         or it messes up where the window is placed.  Fixes test failure.
6734
6735 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6736
6737         * Form.cs: When becoming visible, if we are an MDI child, call
6738         SetWindowState with a dummy old_state so that changes will actually
6739         be made.
6740         [Fixes the 2nd part of bug #325473]
6741
6742 2008-02-07  Andreia Gaita <avidigal@novell.com>
6743
6744         * Control.cs: Reset properties to their pre parent-change values in case
6745         the new parent == null (in which case we're basically removing the control, 
6746         and don't want any events fired due to fake property changes)
6747         [Fixes #355850]
6748
6749 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
6750
6751         * PropertyGridView.cs: 
6752          - Refactor SetValue to allow setting the value
6753         when a custom editor is used, but the entry is not editable.
6754          - Remove the custom editor control on CloseDropDown.
6755         [Fixes #359196]
6756
6757 2008-02-06  Andreia Gaita <avidigal@novell.com>
6758
6759         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
6760         reflection only on 1.1, this property is public on system.drawing on 2.0.
6761         Fixed #359247
6762
6763 2008-02-06  Andreia Gaita  <avidigal@novell.com>
6764         
6765         * WebBrowser.cs: Do a normal page refresh by default.
6766
6767 2008-02-05  Andreia Gaita  <avidigal@novell.com>
6768
6769         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
6770         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
6771         platforms. Fixes #359036
6772         
6773         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
6774         platform-specific flags.
6775
6776 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6777
6778         * Binding.cs: Add 2.0 BindableComponent property - just return control
6779         by now.
6780
6781 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
6782
6783         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
6784         Jonathan for this patch. Fixes #358442.
6785
6786 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
6787
6788         * Form.cs: If we change the active MDI child form, let the others
6789         know they need to repaint their title bar so it will appear inactive.
6790         [Fixes part 1 of bug #325473]
6791
6792 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
6793
6794          * PropertyGridView.cs: Do not trucate custom editors' width
6795          and align them to the left.
6796          [Fixes #358353 and #358349]
6797
6798 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6799
6800         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
6801         Also fix the arguments passed to CollectionChangeEventArgs in the
6802         related methods.
6803
6804 2008-02-04  Geoff Norton  <gnorton@novell.com>
6805
6806         * Hwnd.cs: The conversion to Quartz coordinates happens in
6807         System.Drawing.  Removing this translation from here.
6808
6809 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
6810
6811          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
6812          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
6813          GridItemCollection.cs:
6814          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
6815
6816 2008-02-04  Geoff Norton  <gnorton@novell.com>
6817
6818         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
6819         SYSKEYUP if any other key has been pressed in the mean time.
6820         Fixes #324404
6821
6822 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6823
6824         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
6825         when the item in current position is different than 0. Also, save the
6826         item index in the beginning of the operation, instead of getting the
6827         index of the item when the event is actually performed. Lastly clean
6828         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
6829         triggered.
6830         [Fixes #357873]
6831
6832 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6833
6834         * Form.cs: Alt-Minus for MDI children system menu should work
6835         with both the minus keys on the keyboard.
6836         [Fixes bug #336295]
6837
6838 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6839
6840         * Control.cs: Don't invalidate on region change.  The WM should
6841         take care of this automagically.  Keeps us out of an infinite
6842         paint loop if someone changes the Region in the OnPaint.
6843         [Fixes bug #358327]
6844
6845 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
6846
6847          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
6848
6849 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6850
6851         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
6852         down the MonthCalendar only on F4, not Alt+F4.
6853         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
6854         [Fixes bug #358340]
6855
6856 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6857
6858         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
6859         if its part of a DateTimePicker, else, use the back color.
6860         [Fixes bug #358339]
6861
6862 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6863
6864         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
6865         [Fixes bug #358342]
6866
6867 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6868
6869         * CurrencyManager.cs: When we get a ListChanged event from our source,
6870         always fire our own ListChanged event, as .Net does.
6871
6872 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6873
6874         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
6875         #358379.
6876
6877 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6878
6879         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
6880         property. Removed if for richtext property that was always true.
6881         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
6882
6883 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6884
6885         * TextBoxBase.cs - commited patch from James Purcell that
6886         correctly sets the FixedHeight control style when the MultiLine
6887         property is changed on a TextBox control. Fixes bug 358229.
6888
6889 2008-02-02  Luke Page  <luke.a.page@gmail.com>
6890
6891         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
6892         Fixes bug 351938 - caret is positioned correctly when drawn
6893         and when calculating textual position of caret, no longer
6894         has a NRE in certain situations.
6895         
6896 2008-02-01  Geoff Norton  <gnorton@novell.com>
6897
6898         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
6899         get that region removed from the paint event.
6900         * XplatUICarbon.cs: Remove the window mapping after disposing of 
6901         window.  Prevents a crash with handle reuse.  Optimize exposes
6902         only onto visible windows (rare; but possible).
6903
6904 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6905
6906         * UpDownBase.cs: Make sure the internal textbox calls the base's
6907         OnMouseDown and OnMouseUp so the textbox will function correctly.
6908         There were notes saying it doesn't chain up, but its an internal
6909         class, so our implementation may differ.
6910         [Fixes bug #357482]
6911
6912 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6913
6914         * ListBox.cs: Fix a logic error and don't process MouseDown
6915         for mouse buttons other than Left.
6916
6917 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6918
6919         * Control.cs: Remove HeightInternal.
6920         * ListBox.cs: Commit patch from James Purcell that correctly
6921         calculates heights for ListBoxen.
6922         [Fixes bug #357152]
6923
6924 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6925
6926         * Label.cs: Apply patch from James Purcell that corrects the 
6927         signature of the AutoSize property.
6928         [Fixes bug #357605]
6929
6930 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6931
6932         * ListBox.cs: Don't throw [Mouse]Click events for buttons
6933         other than the left mouse button.
6934
6935 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
6936
6937         * Control.cs: Remove my awesome optimization as it caused some
6938         regressions with control ordering.  :(
6939         [Fixes bug #357467]
6940
6941 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
6942
6943          * PropertyGridView.cs: Fix a NRE on double click when there is no
6944          selected object.
6945
6946 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6947
6948         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
6949
6950 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
6951
6952         * ListBox.cs: Call MouseClick and MouseDoubleClick.
6953         [Fixes bug #357146]
6954
6955 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6956
6957         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
6958         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
6959         instead of Hwnd.bmp_g.
6960
6961 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6962
6963         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
6964         Use the Hwnd one instead.
6965
6966 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6967
6968         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
6969
6970 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6971
6972         * Form.cs: corcompare for RestoreBounds.
6973
6974 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6975
6976         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
6977
6978 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6979
6980         * Form.cs: Handle Alt-Minus for MDI children forms.
6981         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
6982         Add mnemonics to the control menu.
6983         [Fixes bug #336295]
6984
6985 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6986
6987         * Binding.cs: Initial implementation bits of FormattingEnabled
6988         property and BindingComplete event (2.0). 
6989         * BindingCompleteEventArgs.cs: Internal methods for setting error text
6990         and exception.
6991
6992 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
6993
6994         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
6995         table.Location.  [Fixes bug #354672]
6996
6997 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
6998
6999         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
7000         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
7001
7002 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7003
7004         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
7005         of doing all the re-bound work, just invalidate and call SetControlText 
7006         to set the updated text of selected item to our textbox.
7007         Fixes #333750.
7008
7009 2008-01-28  Andreia Gaita <avidigal@novell.com>
7010
7011         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
7012         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
7013         missing properties and methods. Add Load, Unload, Error, GotFocus, 
7014         LostFocus, Resize, Scroll events (only load and unload are connected)
7015
7016 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
7017
7018         * AccessibleObject.cs: Modified argument names to match MS.
7019         * Button.cs: Modified argument names to match MS.
7020         * BindingContext.cs: Modified argument names to match MS.
7021         * BindingMemberInfo.cs: Modified argument names to match MS.
7022         * ButtonBase.cs: Modified argument names to match MS.
7023         * ComboBox.cs: Modified argument names to match MS.
7024         * Control.cs: Modified argument names to match MS.
7025         * CheckedListBox.cs: Modified argument names to match MS.
7026         * CommonDialog.cs: Modified argument names to match MS.
7027         * DataGrid.cs: Modified argument names to match MS.
7028         * CursorConverter.cs: Modified argument names to match MS.
7029         * ControlPaint.cs: Modified argument names to match MS.
7030         * CheckBox.cs: Modified argument names to match MS.
7031         * ControlBindingsCollection.cs: Modified argument names to match MS.
7032         * BindingSource.cs: Modified argument names to match MS.
7033         * DataFormats.cs: Modified argument names to match MS.
7034         * ContainerControl.cs: Modified argument names to match MS.
7035         * CurrencyManager.cs: Modified argument names to match MS.
7036         * Application.cs: Modified argument names to match MS.
7037         * ContextMenuStrip.cs: Modified argument names to match MS.
7038         * ContextMenu.cs: Modified argument names to match MS.
7039         * BindingManagerBase.cs: Modified argument names to match MS.
7040         * WindowsFormsSection.cs: Fixed line ending.    
7041
7042 2008-01-27  Andreia Gaita <avidigal@novell.com>
7043
7044         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
7045         detecting that the dropdown toolwindow is hidden. EndLoop outside the
7046         while.
7047
7048 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
7049
7050         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
7051         MS. Code formatting.
7052
7053 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7054
7055         * Binding.cs: Don't avoid the Format event if the control 
7056         property type is object. Also, if the value retrieved by 
7057         the data source is null _and_ the control proeprty type 
7058         is object, return Convert.DBNull (match .Net).
7059         Fixes part of #324286.
7060
7061 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7062
7063         * ListControl.cs: Since we are getting two BinginContextChanged events
7064         for the same binding context instance (when the control is added to
7065         form, and when the form is actually shown), take it into account only the
7066         first time for a given binding context instance.
7067         Fixes part of #324286.
7068
7069 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
7070
7071          * PropertryGridView.cs: Ops.
7072
7073 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
7074
7075          * PropertyGridView.cs: Close dropdown form if the owner form is
7076          moved or minimized.
7077          [Fixes bug #322446]
7078
7079 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
7080
7081          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
7082          RootGridEntry.cs, CategoryGridEntry.cs:
7083          PropertyGrid rewrite.
7084          - Rewrite all of the control logic in PropertyGrid.
7085          - Rewrite all of the ComponentModel logic in GridEntry.
7086          - Rewrite all UI work in PropertyGridView.
7087          - Many bugfixes, etc.
7088
7089 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
7090
7091         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
7092         when all contained controls are autosize or dock-fill.  Also take into
7093         account when the total percentage of column/row sizes is not 100%.
7094         [Fixes bug #354672]
7095
7096 2008-01-24  Andreia Gaita <avidigal@novell.com>
7097
7098         * HtmlDocument.cs:
7099         - Save a reference to the IDocument in the instance and
7100           use that one instead of going to WebHost.Document; the document that the 
7101           WebHost returns might not be the right one (in case of frames).
7102         - Use the hashcode returned from the IDocument interface.
7103         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
7104           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
7105           LinkColor, Url, VisitedColor, Window
7106
7107         * HtmlElement.cs: 
7108         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
7109           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
7110           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
7111           SetAttribute, Equals, equality operators.
7112         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
7113           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
7114         
7115         * HtmlElementCollection.cs: Change implementation to use a generic
7116         collection. Implemented Enumerator and CopyTo
7117
7118         * HtmlHistory.cs: Add constructor, no implementation yet.
7119
7120         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
7121         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
7122         Equals, equality operators.
7123
7124         * HtmlWindowCollection.cs: Implemented. 
7125
7126         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
7127         has been deprecated).
7128
7129         * WebBrowserBase.cs: Use Completed event to track document loading
7130         (Navigated has been deprecated)
7131
7132 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
7133
7134         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
7135         level MenuItems do not respect tabs.
7136         [Fixes bug #355196]
7137
7138 2008-01-23  Geoff Norton  <gnorton@novell.com>
7139
7140         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
7141         FormWindowState.  Finished fixing Fullscreen windows on Carbon
7142
7143 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7144
7145         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
7146         be used as grab_control. Also save status of capture before show ContextMenu
7147         and restore it after close.
7148
7149 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7150
7151         * Control.cs: Internal FindRootParent method added to return high control
7152         in parent tree.
7153
7154 2008-01-23  Geoff Norton  <gnorton@novell.com>
7155
7156         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
7157         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
7158         it work again.  Handle HITTEST events.
7159
7160 2008-01-23  Geoff Norton  <gnorton@novell.com>
7161
7162         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
7163         a crash in certain cases.  Support for fullscreen windows in certain cases.
7164
7165 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
7166
7167         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
7168         [Fixes bug #355703]
7169
7170 2008-01-23  Geoff Norton  <gnorton@novell.com>
7171         
7172         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
7173
7174 2008-01-23  Geoff Norton  <gnorton@novell.com>
7175
7176         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
7177
7178 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7179
7180         * SplitContainer.cs: Remove unused declarations.
7181         * Binding.cs: Remove unused declarations.
7182
7183 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7184
7185         * Form.cs: Remove unused declaration of 'active' in Activate method.
7186         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
7187         prevent compilation warnings.
7188         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
7189         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
7190         * Bindings.cs: Remove unused formatting_enabled declaration.
7191         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
7192         warnings.
7193         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
7194         warnings.
7195         * PropertyGridView.cs: Remove usused 'ex' declaration.
7196         * DataGridView.cs: Remove unused declarations.
7197
7198 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7199
7200         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
7201         
7202         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
7203         to Control class, it makes possible to grab menu to controls that can't 
7204         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
7205         WmMouseMove removed since it was used only to track menu events.
7206
7207         * Control.cs:
7208         - Moved all active_tracker stuff from Form.
7209         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
7210         can call this method instead of reimplement all necessary code handle for
7211         menu tracker.
7212         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
7213         and WmMouseMove).
7214         
7215         * MenuAPI.cs: 
7216         - Remove special handle to ToolStripOverflow, now we can grab menu to 
7217         controls that can't reach Form using parent tree.
7218         - Change type of grab_control from Form to Control.
7219
7220 2008-01-22  Geoff Norton  <gnorton@novell.com>
7221
7222         * TextBoxBase.cs: Split up the sizing of controls and placing of 
7223         controls.  Fixes a bug where scrollbars in Reflector could be sized
7224         wrong and have non-working thumbers.
7225
7226 2008-01-23  Geoff Norton  <gnorton@novell.com>
7227
7228         * XplatUI.cs: Refactor environment variables to default support to the
7229         Carbon driver on the Mac.
7230
7231 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7232
7233         * Label.cs: Uses new LabelPainter for drawing operations.
7234         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
7235         * Theme.cs: DrawLabel and LabelDefaultSize removed.
7236
7237 2008-01-22  Geoff Norton  <gnorton@novell.com>
7238
7239         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
7240
7241 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7242
7243         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
7244         through the normal flat button code and don't draw the checkbox glyph.
7245         * Theme.cs: Button->ButtonBase signature change.
7246         [Fixes bug #324755]
7247
7248 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
7249
7250         * LinkLabel.cs: Uses new class LinkLabelPainter.
7251
7252 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
7253
7254         * MessageBox.cs: Adjust right border space, we don't need to add 
7255         "space_border*2" two times.
7256
7257 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7258
7259         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
7260         becomes a wrapper around Padding.
7261         [Fixes a part of bug #354676]
7262
7263 2008-01-22 Geoff Norton  <gnorton@novell.com>
7264
7265         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
7266         acquired.  Also ensure the buffer is large enough to grab the header
7267         we need on linux boxes.
7268
7269 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7270
7271         * Control.cs: Implement a custom enumerator so people can delete
7272         from the Controls collection while in a foreach.
7273         [Fixes bug #355074]
7274
7275 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7276
7277          * PropertyGridView.cs: Fix focusing behavior:
7278          - Tab should focus the grid text box.
7279          - Clicking on the labels shouldn't focus the grid text box.
7280
7281 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7282
7283          * PropertyGridView.cs: IsValueTypeGridItem should return true 
7284          for Arrays as well.
7285
7286 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7287
7288          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
7289           - Renamed GridEntry.SelectedObjects to TargetObjects to better
7290           reflect the property name role.
7291           - PropertyGrid.GetTarget is not required as the target is known
7292           (TargetObjects).
7293           - Setting values will handle value types as a special case now and
7294           populate them up in the chain.
7295           [Fixes #354990]
7296
7297 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
7298
7299         * Hwnd.cs: Create a public property for the Graphics we keep around.
7300
7301 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
7302
7303          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
7304          when the current object selection changes. 
7305          Fixes failing test SelectedObject_Null2.B5.
7306
7307 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
7308
7309          * PropertyGrid.cs: Process Browsable properties with 
7310          DesignerSerializationVisibilityAttribute.Content as being expandable.
7311          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
7312          will not be expandable. We should be nested components-friendly now.
7313
7314 2008-01-21  Andreia Gaita <avidigal@novell.com>
7315
7316         * WebBrowserBase.cs: Check if control was loaded properly, 
7317         don't bind if it wasn't.
7318
7319         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
7320         GetElementFromPoint, equality operators, OpenNew, Write.
7321         Remove extra set_Body
7322
7323 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
7324
7325         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
7326         that makes our AutoScale* stuff more tolerant to different orders
7327         of being set.  [Fixes bug #354669]
7328
7329 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
7330
7331          * PropertyGridView.cs, PropertyGridTextBox.cs: 
7332          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
7333          [Fixes #339005 and #348209]
7334
7335 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
7336
7337          * PropertyGridView.cs: Hide the grid text box before adjusting it
7338          for the newly selected GridItem.
7339          [Fixes #338999]
7340
7341 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
7342
7343         * Form.cs: Give MDI children the opportunity to cancel the parent form
7344         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
7345         properly for both the parent and child.
7346         * Application.cs: Signature of internal method changed, pass the previous
7347         default of false.
7348         [Fixes bug #354286]
7349
7350 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
7351
7352         * PropertyGridView.cs: Set the property value only if it has changed.
7353         [Fixes bug #338997]
7354
7355 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
7356
7357         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
7358         If the mouse hasn't actually moved, ignore these messages so the currently
7359         highlighted menuitem isn't reset to the one under the mouse.
7360         [Fixes bug #333668]
7361
7362 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
7363
7364         * PropertyGridView.cs: When the property changes Invalidate the GridItem
7365         in order for the properties with UITypeEditor.GetPaintValueSupported == true
7366         to reflect the change visually.
7367         [Fixes bug #338998]
7368
7369 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
7370
7371         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
7372         to 2.0 button drawing.
7373         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
7374         the button text is tall enough for one line.  LineLimit says it will
7375         always draw at least one line, but it is a lie.
7376         [Fixes bug #324941]
7377
7378 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
7379
7380         * XplatUIStructs.cs, X11Keyboard.cs :
7381           added some more VK_* keys to be handled.
7382
7383 2008-01-16  Andreia Gaita <avidigal@novell.com>
7384
7385         * Control.cs: Check if there is a container before setting or getting
7386         the validation flag.
7387
7388 2008-01-16  Andreia Gaita <avidigal@novell.com>
7389
7390         * ContainerControl.cs: Add flag to track if a control cancels validation, 
7391         so we don't fire click events.
7392
7393         * Control.cs: 
7394         - (HandleClick) Check if validation was cancelled before  firing the click
7395         events (doubleclicks are fired, but not clicks)
7396         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
7397         ContainerControl.set_ActiveControl, but in the case of non-selectable
7398         controls, like a Label, activecontrol is not set. 
7399
7400         * ButtonBase.cs: Only fire clicks if validation passes.
7401         
7402         Fixes #353310
7403
7404 2008-01-16  Geoff Norton  <gnorton@novell.com>
7405
7406         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
7407         trunk
7408
7409 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
7410
7411         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
7412         SelectedPath, just display the default dialog instead of crashing.
7413         [Fixes bug #348989]
7414
7415 2008-01-16  Geoff Norton  <gnorton@novell.com>
7416
7417         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
7418         AddExpose instead of trusting apples compositing manager which doesn't
7419         work for our use case.  Remove some dead code causing warnings and 
7420         redecorate some other code to prevent warnings.
7421
7422 2008-01-16  Geoff Norton  <gnorton@novell.com>
7423
7424         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
7425         carbon signals us to redraw.  Fixes another portion of the flickering bug
7426
7427 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7428
7429         * Form.cs: Prevent the MdiParent property to be set when value is the same
7430         as value already set. Fixes bug #328019.
7431
7432 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7433
7434         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
7435         it prevents NRE when closing mdi child windows. Fixes bug #325211.
7436
7437 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7438
7439         * InternalWindowManager.cs: Invalidade close button after mouse up when 
7440         mdi form is prevented to close.
7441
7442 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7443
7444         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
7445         thanks to Andy Hume. Fixes bug #325433.
7446
7447 2008-01-16  Andreia Gaita <avidigal@novell.com>
7448
7449         * LinkLabel.cs: Reset focused_index when resellecting the control.
7450         Fixes #323190
7451
7452 2008-01-15  Geoff Norton  <gnorton@novell.com>
7453
7454         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
7455         messages.
7456
7457 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
7458
7459         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
7460         of truncate.
7461
7462 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
7463
7464         * ContainerControl.cs: Setting AutoScaleMode to anything should set
7465         Form.AutoScale to false.
7466         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
7467         AutoScaleBaseSize should be changed on Font change unless it has been
7468         explicitly set.
7469         [Fixes bug #353827]
7470
7471 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
7472
7473         * MenuAPI.cs: On instance of MenuTracker check if source control is
7474         ToolStripOverflow and use properly method to find form.
7475         [Fixes bug #338511]
7476
7477 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
7478
7479         [Fixes bug #323241 Transparent toolbar support]
7480
7481         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
7482         is flat.
7483
7484         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
7485         defined in control style to mimic win32 behavior.
7486
7487         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
7488         it will be transparent.
7489
7490 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
7491
7492         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
7493         CreateParams for ToolBar controls.
7494
7495 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7496
7497         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
7498         FixedToolWindow, SizeableToolWindow, or None for border styles have
7499         different minimum sizes than regular forms.  Implemented to fix
7500         regression in PDN with toolbox being too wide.
7501
7502 2008-01-14  Andreia Gaita <avidigal@novell.com>
7503
7504         * HtmlElementCollection.cs: Implemented
7505
7506         * HtmlElement.cs: Implemented:
7507           - All
7508           - InnerHtml
7509           - InnerText
7510           - Id
7511           - Name
7512           - FirstChild
7513
7514         * HtmlDocument.cs: Implemented GetElementsByTagName.
7515
7516 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7517
7518         * Screen.cs: Stub BitsPerPixel to always return 32.
7519
7520 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7521
7522         * Form.cs: Implement RestoreBounds.
7523
7524 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7525
7526         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
7527         Sebastien and his fabulous magical problem-finding machine:
7528         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
7529         respect the value set.
7530
7531 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
7532
7533         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
7534         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
7535
7536 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7537
7538         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
7539         messages (to match .Net), we need to remove the capture ourselves.
7540
7541 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
7542
7543         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
7544         will process the message and close our window.
7545         [Fixes bug #324328]
7546
7547 2008-01-10  Geoff Norton  <gnorton@novell.com>
7548
7549         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
7550         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
7551         window manager.
7552
7553 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7554
7555         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
7556         failing test.
7557
7558 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7559
7560         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
7561         Linux doesn't care, having a minimum matches MS and keeps the window
7562         from becoming too small to use window decorations.
7563         [Fixes bug #338996]
7564
7565 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7566
7567         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
7568         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
7569         control.  [Fixes bug #325419]
7570
7571 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7572
7573         * ComboBox.cs: Guard against an NRE if the user open a new form from a
7574         SelectedIndexChanged event.  This closes the combobox dropdown, and we
7575         were trying to dispose it.  [Fixes bug #352830]
7576
7577 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
7578
7579         * Control.cs, Form.cs: Implement the necessary semantics for
7580         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
7581         to determine if a focus rectangle should be drawn.
7582         * PropertyGrid.cs: Fix property visibility to match override.
7583         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
7584
7585 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
7586
7587         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
7588         [Fixes bug #323552]
7589
7590 2008-01-09  Geoff Norton  <gnorton@novell.com>
7591         
7592         * XplatUICarbon.cs: Scroll windows in the correct direction.
7593
7594 2008-01-09  Geoff Norton  <gnorton@novell.com>
7595
7596         * XplatUICarbon.cs: Track all created utility windows so we can hide them
7597         when the app is deactivated or spaces is enabled.
7598
7599 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7600
7601         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
7602         extra separation pixel for the label rect origin if SmallImageList is
7603         null, and thus we don't need that separation between icon and label
7604         rects.
7605         Patch by Ernesto Carrea.
7606         Fixes # 340195.
7607
7608 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
7609
7610         * StatusStrip.cs: Invalidate after completing a layout.  The base
7611         OnLayout does this, but we don't call the base.
7612         * ToolStripItem.cs: Revert the previous change to invalidate after
7613         the item moves.
7614         [Fixes bug #351341 better.]
7615
7616 2008-01-07  Geoff Norton  <gnorton@novell.com>
7617
7618         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
7619         not a notification to exit the application.  Listen for WM_QUIT
7620         instead.
7621
7622 2008-01-07  Andreia Gaita <avidigal@novell.com>
7623
7624         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
7625
7626 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
7627
7628         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
7629         so it can repaint at the correct location.
7630         [Fixes bug #351341]
7631
7632 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7633
7634         * ListControl.cs: SelectedValue should return a null value if
7635         SelectedIndex is -1. Also, when setting it, it should throw an
7636         ArgumentNullException if the value is null, as well as taking
7637         into account the String.Empty value, instead of ignoring it (we have
7638         tests for that now).
7639         Fixes part of #324286.
7640
7641 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
7642
7643         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
7644         SelectionStart is updated after pressing enter.  Fixes bug #351918.
7645
7646 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7647
7648         * TextControl.cs: Revert a piece r92316 that prevented the fix
7649         from working when there were multiple tags in the text box.
7650         Fixes bug #351881.
7651
7652 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7653
7654         * TextControl.cs: Apply patch from Luke Page that prevents an
7655         NRE when determining the beginning of a paragraph.
7656         Fixes bug #351886.
7657
7658 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7659
7660         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
7661         caret gets moved with clicking away from a selected block of
7662         text.  Fixes bug #351885.
7663
7664 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7665
7666         * TextControl.cs: Apply patch from Luke Page that takes line
7667         alignment into account for mouse selection, so that center and
7668         right aligned text can be selected.
7669         Fixes bug #351881.
7670
7671 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7672
7673         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
7674         issues after loading an RTF file by using the correct line feeds.
7675         Fixes bug #351841.
7676
7677 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7678
7679         * TextControl.cs: When deleting multiple line selections, we need
7680         to invalidate every line beginning at the first line of the selection.
7681         Patch from Luke Page fixes bug #351791.
7682
7683 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7684
7685         * ListControl.cs: When getting a CurrencyManager.PositionChanged
7686         event, don't set SelectedIndex if the number of items is 1. This is
7687         because, for the first item, PositionChanged is fired _before_
7688         ItemChanged (the place where we actually populate the items), and
7689         leave us in a temporary invalid state (since items collection is
7690         empty).
7691         Fixes #349655.
7692
7693 2008-01-04  Geoff Norton  <gnorton@novell.com>
7694
7695         * XplatUICarbon.cs:  Create native toolwindows instead of
7696         the managed drawing ones.
7697
7698 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7699
7700         * LineTag.cs: If the line doesn't have any characters, return
7701         0 for GetCharIndex.  Fixes an AOORE exception after certain
7702         caret movements.  Fixes bug #351683.  Patch by Luke Page.
7703
7704 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7705
7706         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
7707         is hit when there is selected text, only the selected text gets
7708         deleted, not the character in front of the selection as well.
7709         Fixes bug #351578.
7710
7711 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7712
7713         * ComboBox.cs: When the values are displayed, calculate the
7714         ComboListBox scrollbar's LargeChange based on the visible area's
7715         height and  the actuall ItemHeight, instead of calculating it
7716         based on MaxDropItems value, since it's not used by our _current_ 
7717         2.0 profile.
7718         Fixes #332366.
7719
7720 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7721
7722         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7723         Patch from Luke Page that fixes issues with font colors and styles
7724         not showing up in a readonly RichTextBox.  Fixes bug #324354.
7725
7726 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7727
7728         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
7729         from Luke Page.  This one fixes bug #349926.
7730
7731 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7732
7733         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
7734         an item in the IBindingList source changes with
7735         ListChangedType.ItemAdded. Ignore for now firing the event for other
7736         changes, since we want to have tests for those cases as well.
7737
7738 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7739
7740         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
7741         created.
7742
7743 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7744
7745         * TextBoxTextRenderer.cs: Implement a cache for measuring each
7746         character.  This is effective because the typical usage of a
7747         TextBox is with a limited amount of fonts and characters, and
7748         the current implementation of TextBox measures everything one
7749         character at a time.  Another second or two speedup for bug #347238.
7750
7751 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7752
7753         * Control.cs: Rewrite the Font getter to only query the parent's
7754         Font property once instead of twice.  Since this operation is
7755         recursive, the queries were growing exponentially as the control
7756         tree got deeper.  Another second or two speedup for bug #347238.
7757
7758 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7759
7760         * Control.cs: Avoid setting a parent (and more importantly, updating
7761         the zorder of all its children) if the parent is already correct in
7762         WmShowWindow.  Decreases the startup time of the test case on bug
7763         #347238 from 35 seconds to 11 seconds.
7764
7765 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7766
7767         * X11Dnd.cs: When the dnd operation has started and we are 
7768         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
7769         This is done to match .Net, which doesn't send those messages after
7770         dnd operation was completed/cancelled.
7771         Fixes #349922.
7772
7773 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
7774
7775         * ToolStrip.cs: Previous change should be != null, not == null.
7776         Thanks Gert!
7777
7778 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
7779
7780         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
7781         user may have moved the mouse off the current item during the event.
7782
7783 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7784
7785         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
7786         calling GetItemAt for every MouseMove event by also taking into
7787         account whether any mouse button is pressed (probably dragging); 
7788         if so, we can call GetItemAt, and if not, try to not call it 
7789         (GetItemAt can be quite expensive when used with a large number of items).
7790
7791 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7792
7793         * ListView.cs: Implement -finally- support for dnd, by calling
7794         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
7795         authors list ;-).
7796         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
7797         simple calculation of distances for all the items in the owner
7798         listview.
7799
7800 2007-12-21  Geoff Norton  <gnorton@novell.com>
7801
7802         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
7803         for windows that are originally created as invisible.  Fixes missing
7804         main window in paint-mono.
7805
7806 2007-12-21  Geoff Norton  <gnorton@novell.com>
7807
7808         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
7809         subclass handler for com.novell.mwfview subclassing HIView.  Implement
7810         Pasteboard and Dnd methods.
7811
7812 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7813
7814         * ListBox.cs: When we got focus, give focus to first item if there
7815         wasn't any pervious focused item. Also update navigation to depend on
7816         SelectedIndex rather than FocusedItem, just as .Net does.
7817         Fixes #349174.
7818
7819 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7820
7821         * ListBox.cs: Both FindString and FindStringExact methods must do an
7822         case insensitive search, should allow the last valid index to be
7823         passed in the overload taking an initial index, and should also
7824         continue searching from the top back to the specified index when it
7825         reaches the bottom.
7826
7827 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7828
7829         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
7830         redraw issue, and allows RichTextBox to draw colored text even while
7831         disabled or readonly.
7832
7833 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7834
7835         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
7836         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
7837         and doesn't grey text in a disabled RichTextBox.
7838
7839 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7840
7841         * RichTextBox.cs: Apply patch from Luke Page that adds better support
7842         for many RTF commands: quad alignment, separate formatting for blocks
7843         inside groups, and ParDef support.  Makes the test case from bug #324589
7844         look much better.
7845
7846 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7847
7848         * LineTag.cs: Fix an error in the new Draw method that caused
7849         a crash when rendering the document on bug #324589.
7850
7851 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7852
7853         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
7854         TextControl.cs: Apply patch from Luke Page that adds support
7855         for URL links in RichTextBox.
7856         [Fixes enhancement #342516]
7857
7858 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
7859
7860         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
7861         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
7862
7863 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7864
7865         * ListBox.cs: When a key gets pressed, try to find a string
7866         if the key is a character or a digit.
7867         Fixes #343971.
7868
7869 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7870
7871         * TableLayoutPanel.cs: Remove some unused variables.
7872
7873 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7874
7875         * DateTimePicker.cs: Commit patch from Luke Page that ensures
7876         we don't end up at an invalid date when we click the up/down
7877         spinner to change the month or year.  Fixes bug #348682.
7878
7879 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7880
7881         * Application.cs: Calling Exit in 2.0 should chain to the
7882         Exit (CancelEventArgs) version so it can be cancelled.
7883         * Form.cs: Create a flag to allow raising the Closing
7884         events to be skipped.  We raise them once in Application.Exit
7885         and don't want to raise them again when the Form is actually
7886         closed.  [Fixes bug #349073]
7887
7888 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
7889
7890         * ToolStripDropDown.cs: Guard against an NRE when there
7891         hasn't been a mainform set in the application context.
7892         [Fixes bug #349108]
7893
7894 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7895
7896         * ListBox.cs: When SetBoundsCore gets called, besides
7897         calling UpdateScrollBars, update the value of
7898         last_visible_index, since we could need to show more items
7899         than before, and we need to let the paint routines know that.
7900         Fixes #344445.
7901
7902 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7903
7904         * ListView.cs: Add DesignerSerializationVisibility attribute to
7905         InsertionMark property.
7906         * ListViewItem.cs: Add same attribute to Position property.
7907
7908 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7909
7910         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
7911         is 2.0 only.
7912
7913 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
7914
7915         * ThemeWin32Classic.cs: Don't draw the background on a
7916         flat button if there is a background image.
7917         [Fixes bug #348649]
7918
7919 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7920
7921         * ListBox.cs: If we remove the item currently selected,
7922         remove it not only from SelectedItems, but also
7923         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
7924         the items count decreased and focused_item has bigger value than that.
7925
7926 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
7927
7928         * Control.cs: Perform our layout after we resize ourselves
7929         if we had to adjust our AutoSize.  Missed commit for bug
7930         #346246.
7931
7932 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
7933
7934         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
7935         we can provide an implementation of AutoSize.
7936         [Fixes bug #346246]
7937
7938 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7939
7940         * ListBox.cs: Add the internal overload Sort (bool paint),
7941         to indicate whether we actually need a paint or we will
7942         call Refresh ourselves. This way we don't request a paint
7943         _before_ having an updated and valid layout.
7944         Fixes #347233.
7945
7946 2007-12-12  Andreia Gaita <avidigal@novell.com>
7947
7948         * XPlatUIX11.cs: Send paint messages when updating a systray icon
7949         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
7950         properly invalidated. 
7951         Fixes #324237
7952
7953 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7954
7955         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
7956         don't simply assign it to our internal group field, but instead 
7957         use our Group property, which should do all the neccessary work
7958         required to support groups. Fixes an issue reported to me (mail) by a 
7959         guy using this new feature.
7960
7961 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
7962
7963         * Control.cs: Use Scale instead of ScaleControl to ensure the
7964         whole hierarchy gets scaled.
7965         [Fixes bug #347282]
7966
7967 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7968
7969         * DateTimePicker.cs: Don't set the internal MonthCalendar's
7970         Parent property.  Doing this causes the control to be hosted by
7971         the Form instead of being a popup window.
7972         [Fixes bug #347665]
7973
7974 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7975
7976         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
7977         at an index higher than Count, just use Add instead of Insert.
7978         [Fixes bug #347669]
7979
7980 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7981
7982         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
7983         DrawPictureBox, this is handled by Control.PaintBackground.
7984         [Fixes bug #347276]
7985
7986 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
7987
7988         * MenuAPI.cs: When process menu keys return true by default only if menu is
7989         active. Fixes bug #342892.
7990
7991 2007-12-09  Andreia Gaita <avidigal@novell.com>
7992
7993         * Control.cs: check if windows are actually mapped before
7994         trying to zorder. Fixes #342509, #346955
7995
7996 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7997
7998         * ListView.cs:
7999         * ListViewInsertionMark.cs:
8000         * ThemeWin32Classic.cs: Implement the drawing side of the
8001         new 2.0 ListView.InsertionMark property.
8002
8003 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
8004
8005         * CurrencyManager.cs: Silence some debug spew.
8006
8007 2007-12-07  Geoff Norton  <gnorton@novell.com>
8008         
8009         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
8010         masks for our children as well as siblings to avoid having to query
8011         Quartz for this information.
8012         * XplatUICarbon.cs: Implement a delegate based system to pass
8013         information to System.Drawing.  Implement Async methods.  Remove
8014         the hack for the resize thumb and imlpement a transparent Grow Box.
8015         Rework the messaging system to proplery create window's and messages,
8016         fixes TabControl.
8017
8018 2007-12-06  Andreia Gaita <avidigal@novell.com>
8019
8020         * X11Keyboard.cs: Use Xutf8LookupString to support international 
8021         characters under alternate codepages. Patch from #340878
8022
8023 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8024
8025         * ListView.cs: When doing layout computations, set position in the
8026         ListView instances (we cache the position just as .Net does).
8027         * ListViewItem.cs: New internal setter method for Position. Also set
8028         position field as also available in 1.1, since we are going to use it
8029         now in the common case.
8030
8031 2007-12-06  Andreia Gaita <avidigal@novell.com>
8032
8033         * Control.cs: When removing controls, get the actual container
8034         to notify about active control changes. Fixes 341314.
8035
8036 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8037
8038         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
8039
8040 2007-12-05  Andreia Gaita <avidigal@novell.com>
8041
8042         * Control.cs: When updating the zorder, ignore windows that are not
8043         mapped. Fixes #342509
8044
8045 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8046
8047         * ListViewItem.cs: Actually implement serialization on this class.
8048
8049 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
8050
8051         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
8052         LinkCollection. Spaces to tabs, and removed extra tabs.
8053
8054 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8055
8056         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
8057           tests to fail (hopefully).
8058
8059 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8060
8061         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
8062         the image margin so custom renderers can correctly place it.
8063
8064 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8065
8066         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
8067         so custom renderers can correctly place it.
8068
8069 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8070
8071         * Application.cs: Let WM_CHAR messages flow through to controls
8072         hosted in Strips.  [Fixes bug #343972]
8073
8074 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
8075
8076         * ToolStripManager.cs: Guard against an NRE I ran into.
8077
8078 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
8079
8080         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
8081         a Link is manually added to the Links collection, we need to set
8082         its owner, so it can invalidate properly.
8083         [Fixes bug #344012]
8084
8085 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8086
8087         * ListView.cs: When changing ListViewItem.Position (which calls
8088         ListView.ChangeItemLocation), invalidate not only the area
8089         corresponding to the main item, but also to the area occupied
8090         by the items being moved.
8091
8092 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8093
8094         * ListView.cs: When changing the position of a given item,
8095         don't use item bounds, but item areas (which includes the item spacing
8096         between them). Also, use first/last position if the requested
8097         position is outside bounds (as .Net does). Invalidate the previous and
8098         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
8099         in a specific position, instead of directly accessing Items collection
8100         (this is done to get the right item - remember an Item can have a
8101         different position in the grid than in the Items collection).
8102
8103 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8104
8105         * MessageBox.cs: Calculate text area instead of just top left, this rect 
8106         area will be used in DrawString. Fixes bug #343364.
8107
8108 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8109
8110         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
8111         screen width. Partially fixes bug #343364.
8112
8113 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8114
8115         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
8116         code inside recalculate, it makes code more simple.
8117
8118 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
8119
8120         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
8121         between update or add icon. Fixes bug #324344.
8122
8123 2007-11-21  Andreia Gaita <avidigal@novell.com>
8124
8125         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
8126         window manager, since that stretches the drawing area to include
8127         the window decorations, and they get hidden. Reverts r84444 and fixes
8128         #335849 and #342790 (mdi and pdn3 regression)
8129
8130 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8131
8132         * ListView.cs: When setting focused item, try to give focus to the
8133         previous one _only_ if the previous one remains valid. 
8134         Fixes #342504.
8135
8136 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
8137
8138         * Application.cs: Revert r89650, as it broke a common case to fix
8139         an obscure case.  Fixes bug #342606.
8140
8141 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
8142
8143         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
8144
8145 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
8146
8147         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
8148         alignment. [Fixes #324228]
8149
8150 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
8151
8152         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
8153         [Fixes bug #342123]
8154
8155 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
8156
8157         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
8158         it prevent problems when empty captions. [Fixes #342141]
8159
8160 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
8161
8162         * Label.cs: Use Size instead of None.  Fixes bug #342077.
8163
8164 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8165
8166         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
8167
8168 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
8169
8170         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
8171         but there isn't a MdiContainer.
8172         [Fixes bug #342358]
8173
8174 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
8175
8176         * TextControl.cs: Don't recalculate document if the recalc_start and
8177         recalc_end hasn't changed.
8178         [Fixes bug #342505]
8179
8180 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
8181
8182         * DataGridViewTextBoxCell.cs: Removed CWL.
8183
8184 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8185
8186         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
8187
8188 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
8189
8190         * TextControl.cs: Missed some code for bug 341534 to trigger a
8191         recalculation when the font changes.
8192
8193 2007-11-16  Andreia Gaita <avidigal@novell.com>
8194
8195         * Control.cs: When updating the zorder, check if the child to update is
8196         the same control that is set to always be on top (i.e., scrollbars), and 
8197         just put it on top directly. Fixes BadMatch error on pdn3
8198
8199 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8200
8201         * ListView.cs: Throw the needed exceptions for FindNearestItem.
8202
8203 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
8204
8205         * Control.cs: Don't perform a new layout when a label changes its text,
8206         cause label handles its own autosizing.
8207         [Fixes bug #342077]
8208
8209 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8210
8211         * ListView.cs: Implement 2.0 FindNearestItem methods.
8212
8213 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
8214
8215         * ToolStripPanel.cs: Make Join at least add the control to the panel,
8216         even if the rest of what Join does isn't supported.  Add some more
8217         support for vertical toolbars.
8218         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
8219         [Fixes the application breaking parts of bug #341998]
8220
8221 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
8222
8223         * ToolStripItem.cs: When determining if we have a check/image margin,
8224         we need to look at ShowCheckMargin as well as ShowImageMargin.
8225
8226 2007-11-15  Geoff Norton  <gnorton@novell.com>
8227
8228         * XplatUIOSX.cs: Rename to...
8229         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
8230         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
8231
8232 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
8233
8234         * KeysConverter.cs: The default values should be an array of Keys, not
8235         strings.  Also, the array has more values for 2.0.
8236         [Fixes bug #341851]
8237
8238 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8239
8240         * Application.cs: Change ExecutablePath to use 
8241         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
8242         [Fixes bug #323552]
8243
8244 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8245
8246         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
8247         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
8248         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
8249         be ignored.  Create a new GetLineEnding that can specify which types of
8250         line endings to look for.  On Insert, only create new lines for \n and \r\n.
8251         [Fixes bug #324274]
8252
8253 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8254
8255         * TextBoxBase.cs: As we loop through each line changing the font, tell
8256         the document that the line needs to be recalculated.  Fixes bug #341534.
8257
8258 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
8259         [Another round of refactoring]
8260         * Line.cs: Add DeleteCharacters.
8261         * LineTag.cs: Add Delete.
8262         * TextBoxBase.cs: Update to use new methods.
8263         * TextControl.cs: Refactor the Delete* methods.
8264
8265 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
8266
8267         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
8268         the patch. [Fixes #324856]
8269
8270 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8271
8272         * ListView.cs:
8273         * ListViewItem.cs: Add an initial implementation of
8274         2.0 ListViewItem.Position getter.
8275
8276 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8277
8278         * ListView.cs: Add a reordered_items_indices array, to allow us
8279         to have a different sorting than that of Items (the sorting in Items
8280         could not match the actual sorting in screen). This is needed to
8281         implement a pair of 2.0 features.
8282         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
8283         actual position in the ListView grid, since it could have a position
8284         different than its Index (position in ListViewItemCollection). 
8285
8286 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
8287
8288         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
8289         not draw partial lines.
8290         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
8291         LineLimit flag from the base is preserved.
8292         Fixes the windows part of bug #338965.
8293
8294 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
8295
8296         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
8297         so that it can be canceled in KeyPress.
8298         Fixes bug #340078.
8299
8300 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8301
8302         * ListView.cs: In ItemControl, reset mouse-handling related
8303         fields even if we dont' have items (we still should reset them when
8304         we had items but then called Items.Clear). Partially based in a patch
8305         by George Giolfan.
8306         Fixes #338399.
8307
8308 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
8309
8310         * Application.cs: In ProductVersion first try AssemblyFileVersion
8311         before falling back to assembly version. Fixes bug #339787.
8312
8313 2007-11-08  Andreia Gaita <avidigal@novell.com>
8314
8315         * HtmlElement.cs: Implement InnerText setter.
8316         * WebBrowserBase.cs: Implement Navigated event support.
8317         Add flag to track when the browser "document" is ready to be retrieved.
8318         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
8319         Make sure browser document is ready before retrieving it.
8320         Clean up cached objects (document) when moving to a new page through
8321         any of the navigation methods.
8322         Use the new Mono.WebBrowser.INavigation interface to control navigation.
8323         Implement OnNavigated event.
8324
8325 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
8326
8327         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
8328         DrawLinkLabel, this is handled by OnPaintBackground.
8329         Fixes bug #339565, part II.
8330
8331 2007-11-07  Andreia Gaita <avidigal@novell.com>
8332
8333         * Control.cs: Revert r88915. Selecting text on a textbox depends on
8334         getting a Select call on click, so this call needs to be here for now.
8335         Unfixes #325809
8336
8337 2007-11-07  Geoff Norton  <gnorton@novell.com>
8338
8339         * OSXStructs.cs: Add the kEventClassApplication constants.
8340         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
8341         application is deactivated otherwise Menu overlays linger on top of
8342         other application windows.
8343
8344 2007-11-07  Geoff Norton  <gnorton@novell.com>
8345
8346         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
8347         dont support cursors yet anyways.  This allows Reflector to run.
8348
8349 2007-11-07  Geoff Norton  <gnorton@novell.com>
8350
8351         * XplatUIOSX.cs: Implement DragSize.
8352
8353 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8354
8355         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
8356         ItemControl, request the focus, as .Net does. This is needed after 
8357         Control does not request focus anymore when it receives a
8358         WM_LBUTTONDOWN.
8359
8360 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
8361
8362         * Label.cs: Make DrawImage internal so it can be called from Theme code.
8363         Remove the DrawImage call from OnPaint.
8364         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
8365         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
8366         but before we draw the text for DrawLabel and DrawLinkLabel.
8367         Fixes bug #339565.
8368
8369 2007-11-05  Andreia Gaita <avidigal@novell.com>
8370
8371         * Control.cs: Remove select call on click. Fixes #325809
8372
8373 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8374
8375         * ListViewItem.cs: Add 2.0 Position property getter.
8376
8377 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8378
8379         * ListView.cs: Add 2.0 BackgroundImageTiled property.
8380         Also, to make it work properly, change item's BackColor and
8381         BackgroundImageLayout as needed.
8382         * ThemeWin32Classic.cs: Don't fill any background rectangle 
8383         in ListView.ItemControl when drawing items; just let the Control
8384         base implementation fill it.
8385
8386 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8387
8388         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
8389         as well as adding a custom 'dummy' Converter, as .net does.
8390
8391 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8392
8393         * PropertyGridView.cs: When clicking drop-down button,
8394         select an index in the listbox only if our standard values collection 
8395         has one or more items.
8396
8397 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8398
8399         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
8400         property.
8401
8402 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8403
8404         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
8405         the value is not changed. This ensure a pushed button remains in that
8406         state when clicked again. When switching the value of PropertySort
8407         between Categorized and CategorizedAlphabetical, do not update the
8408         grid items and do not fire a PropertyChangedEvent. When clicking the
8409         sorting buttons, do not modify the PropertySort value when switching
8410         between Categorized and CategorizedAlphabetical but only update the
8411         button state.
8412
8413 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8414
8415         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
8416         formatting.
8417         * PropertyGrid.cs: Also put Categorized button in pushed state when
8418         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
8419         for help description label.
8420
8421 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8422
8423         * ListView.cs: When calculating the biggest item for a given column,
8424         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
8425         the item's width.
8426
8427 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
8428
8429         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
8430         value for PropertySort on 1.0 profile. PropertySortChanged event
8431         should only be fired on 2.0 profile. Fixed NullReferenceException
8432         in UpdateSortLayout when PropertyGrid contains no items.
8433
8434 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
8435
8436         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
8437         [Fixes bug #338554]
8438
8439 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8440
8441         * ListViewItem.cs: Implement 2.0 IndentCount property.
8442
8443 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8444
8445         * X11Dnd.cs: When sending status in a dnd operation, compare current
8446         effect with the 'allowed' field instead of 'drag_data.Allowed', since
8447         the later is only created when a Winforms application is both the
8448         source and the target, but not when we are the target only.
8449         Fixes part of #324251.
8450
8451 2007-11-01  Geoff Norton  <gnorton@novell.com>
8452
8453         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
8454         order of Z-Order.
8455         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
8456         children out of the drawing view on mac.
8457         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
8458         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
8459         
8460 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
8461
8462         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
8463         on the non-hosted-control part of it shouldn't do anything.
8464         Fixes part of bug #327498.
8465
8466 2007-11-01  Andreia Gaita <avidigal@novell.com>
8467
8468         * WebBrowserBase.cs: revert previous change, resize can be called anytime
8469
8470 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
8471
8472         * Application.cs: When a toolstrip has the keyboard input loop, let messages
8473         it does not use flow through to controls that are hosted in menus.
8474         Same with mouse clicks.
8475         * Form.cs: Don't close all menus on click if the click is on a
8476         control hosted in a menu.
8477         Fixes part of bug #327498, and part of bug #325969.
8478
8479 2007-10-31  Andreia Gaita <avidigal@novell.com>
8480
8481         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
8482
8483 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
8484
8485         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
8486         Addresses an issue raised in bug #336218.
8487
8488 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
8489
8490         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
8491         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
8492
8493 2007-10-30  Andreia Gaita <avidigal@novell.com>
8494
8495         * ContainerControl.cs: Check if the active control is a
8496         child of a removed control and update active_control accordingly.
8497         Fixes #329718
8498
8499 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8500
8501         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
8502         or the MaxDate.  Fixed bug #337693.
8503
8504 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8505
8506         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
8507         after calling SetWindowLong for a form, to force an immediate NC refresh.
8508         Fixes first part of bug #325150.
8509
8510 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8511
8512         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
8513         simple.  Fixes the last part of bug #322668.
8514
8515 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8516
8517         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
8518         needs to be TopMost as well, or else the MessageBox is under the form.
8519         Patch by George fixes bug #325300.
8520
8521 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8522
8523         * X11Dnd.cs: When starting a new drag operation, reset the static
8524         'dropped' field to false (previously the implementation didn't reset
8525         it and got confused after the first drag).
8526         Fixes #325071.
8527
8528 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8529
8530         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
8531         items instead of re-creating them all. For this purpose we now cache
8532         both CategoryGridEntry items and the GridEntries for the main object's
8533         properties.
8534         * GridItem.cs: Make SetParent method abstract.
8535         * GridEntry.cs: Override the SetParent method (already there, but now
8536         we override it).
8537         Fixes #324866.
8538
8539 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8540
8541         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
8542         depending on its depth (as .Net does). Update the needed values in
8543         MouseDown handler. Also draw the plus/minus rect after the label,
8544         so we don't draw on top of it.
8545
8546 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
8547
8548         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
8549         processed by forms or controls when menu is active. [Fixes #333548]
8550
8551 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8552
8553         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
8554         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
8555         focus on mouse over.
8556
8557 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8558
8559         * TextControl.cs: Code cleaning, simplifying.
8560
8561 2007-10-24  Geoff Norton  <gnorton@novell.com>
8562
8563         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
8564         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
8565
8566 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8567
8568         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
8569         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
8570
8571 2007-10-24  Andreia Gaita <avidigal@novell.com>
8572
8573         * SendKeys.cs: apply jpobst's patch to bug #332409
8574
8575 2007-10-23  Andreia Gaita <avidigal@novell.com>
8576
8577         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
8578         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
8579         for some reason
8580
8581 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8582
8583         * PropertyGridView.cs: If a property has an UIEditor available,
8584         make the drop-down/editor button available only if the property
8585         is _not_ read only.
8586
8587 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8588
8589         * PropertyGridView.cs: Don't make the grid item textbox 
8590         editable when a drop-down control is available, but 
8591         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
8592         true. The same bur the color of the grid item value's label.
8593
8594 2007-10-22  Geoff Norton  <gnorton@novell.com>
8595
8596         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
8597         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
8598         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
8599         driver.  Padd the bottom of all real windows so the resize thumb doesn't
8600         obscure scroll/status bars.
8601
8602 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
8603
8604         * WindowsFormsSection.cs: Implement.
8605
8606 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
8607
8608         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
8609         closed see #325434 patch.
8610
8611 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
8612
8613         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
8614         see #325434 patch.
8615
8616 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8617
8618         * PropertyGridView.cs: When showing the textbox for a grid item,
8619         have two local variables to store the read-only and non-editable
8620         status of a grid item (we were previously using just one variable
8621         to do this, when actually they are slightly different).
8622         Fixes part of #325023.
8623
8624 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8625
8626         * PropertyGridView.cs: When showing a drop-down list, try to get the
8627         values using TypeConverter.ConvertTo (to convert to a string). Fixes
8628         part of #325023.
8629
8630 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8631
8632         * PropertyGrid.cs: When updating a property and populating sub grid
8633         items, remove the previous ones, and invalidate the specific area.
8634         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
8635         area behind a grid item.
8636         * GridItemCollection.cs: Add an internal Clear method, to allow us to
8637         clean the items if needed (specially for controls implementing 
8638         ICustomTypeDescriptor and returning a variable number of properties).
8639         Fixes #324865.
8640
8641 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
8642
8643         * TextControl.cs: Clean up and document the Insert function.
8644
8645 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8646
8647         * TextControl.cs: Make sure we know our start point for updating the view
8648         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
8649         update the view.
8650
8651 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8652
8653         * ListView: Couple of corcompare fixes.
8654
8655 2007-10-17  Geoff Norton  <gnorton@novell.com>
8656
8657         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
8658         the title caption of real window.
8659
8660 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8661
8662         * ErrorProvider.cs: Add the error provider's internal window to a 
8663         containercontrol when the parent changes.  [Fixes bug #329714]
8664
8665 2007-10-17  Geoff Norton  <gnorton@novell.com>
8666
8667         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
8668         When we make a new window; restore the old active window - fixes dialogs.
8669
8670 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8671
8672         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
8673         when modifying a property, and if found then invalidate as
8674         requested.
8675         Fixes part of #324865.
8676
8677 2007-10-17  Geoff Norton  <gnorton@novell.com>
8678
8679         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
8680         highly experimental.  Fixed coordinate translation.  Fixed window locations.
8681         Initial support for clipping. Implemented NC areas and menus.  Support for
8682         launching from command line from Will Johansson (wjohansson@atacomm.com).
8683         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
8684         wjohansson@atacomm.com)
8685         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
8686         Hwnds now track the existence of all of their children for Mac clipping.
8687     * XplatUI.cs: Re-enabled the native driver on the Mac.
8688
8689 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8690
8691         * Line.cs: Move the InsertString function to here.
8692         * TextControl.cs: Cleanup some duplicate code, move some InsertString
8693         functionality to Line.
8694
8695 2007-10-17  Geoff Norton  <gnorton@novell.com>
8696
8697         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
8698
8699 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
8700
8701         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
8702         always setting value to true.
8703         * Form.cs: When changing AcceptButton, notify new and original button.
8704
8705 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
8706
8707         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
8708         a custom control that implements IButtonControl instead of an actual
8709         button.  [Fixes bug #334244]
8710
8711 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
8712
8713         * Form.cs: Change SelectActiveControl to internal, we need to call it in
8714         MdiWindowManager.
8715         
8716         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
8717         active control when activate a new mdi window.
8718         
8719         [Fixes bug #330495]
8720
8721 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
8722
8723         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
8724         is already added.
8725         [Fixes bug #333617]
8726
8727 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8728
8729         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
8730         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
8731         so we always recalculate the whole document instead of just the new part.
8732         [Fixes bug #325082]
8733
8734 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8735
8736         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
8737         when the mouse was to the left of the first character in the line.
8738
8739 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8740
8741         * TextBox.cs, TextBoxBase.cs: When setting the document's password
8742         character, use the property instead of the variable so that the
8743         UseSystemPasswordChar property is taken into account.
8744         [Fixes bug #333748]
8745
8746 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8747
8748         * FolderBrowserDialog.cs: When a node is right clicked and the "New
8749         folder" contex menu appears, actually add the new folder to it, even
8750         if the node is not currently selected. Still use SelectedNode in case 
8751         there wasn't found a node under the pointer.
8752         Fixes #325452.
8753
8754 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8755
8756         * ListViewItem.cs: When retrieving the focused state, the index check
8757         should be done only when ListView is in virtualmode, as it is an
8758         expensive check for normal mode.
8759
8760 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8761
8762         * ListViewItem.cs: Make the focus state information be stored
8763         in the ListView, not in the items. This is done to match the MS
8764         behaviour for items that are not yet part of a ListView control;
8765         besides that, since just one item can be focused at the same time,
8766         we save a little space in our items.
8767         Fixes part of #331643.
8768
8769 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
8770
8771         * ComboBox.cs: When focus is lost, deselect the text. When setting
8772         text of control, select all text. Do not hide selection when control
8773         does not have focus. Fixes bug #333663.
8774
8775 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
8776
8777         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
8778         instead of ArgumentException when SelectionLength is set to negative
8779         value. Added same check to SelectionStart. Code formatting.
8780
8781 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
8782
8783         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
8784         or SelectionStart. Code formatting.
8785
8786 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8787
8788         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
8789         indicating that there was not a previous drag-and-drop operation going
8790         on.
8791         Fixes part of #325071.
8792
8793 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8794
8795         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
8796         AllowedEffect, don't let the drop operation happen. 
8797         Fixes #32580.
8798
8799 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
8800
8801         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
8802
8803 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
8804
8805         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
8806         is called.
8807
8808 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
8809
8810         * Line.cs: Add a method that finds the tag that contains an x-coord.
8811         * LineTag.cs: Add a method that finds the character at an x-coord using
8812         a binary search, the old way was a linear search.
8813         * TextControl.cs: Change FindCursor to use the above new methods.
8814
8815 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8816
8817         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
8818         value different than AllowedEffect). This should be possible to
8819         indicate that dragging is not possible in some control/area.
8820
8821 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
8822
8823         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
8824         descent internally when font changes instead of outside code being responsible
8825         for setting it.
8826         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
8827         instead of accessing internal variables.
8828
8829 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
8830
8831         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
8832         remove special treatment for ArrangeIcons since it is already arranged.
8833
8834 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8835
8836         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
8837         the Win32 backend uses Color.
8838         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8839         Refactor to store a Color instead of a Brush for Color.
8840
8841 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8842
8843         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
8844         away.  I didn't realize I needed this when I refactored these earlier.
8845
8846 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8847
8848         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
8849         store a Color structure and use the ResPool for back color instead of
8850         holding onto brushes.
8851
8852 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8853
8854         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
8855         [Fixes bug #325592]
8856
8857 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8858
8859         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
8860         to recalculate its size.  Fixes a part of bug #331052.
8861
8862 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8863
8864         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
8865         button.  Fixes a part of bug #331052.
8866
8867 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8868
8869         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
8870         the CreateParams.
8871         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
8872         decorations.
8873         [Fixes bug #330986]
8874
8875 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8876
8877         * TextBoxTextRenderer.cs: Don't make this a static class, as static
8878         doesn't exist in 1.1.  (Thanks jb!)
8879
8880 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8881
8882         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
8883         class to allow us to use different backends on different platforms.
8884         Linux uses the current [Draw|Measure]String backend.  Windows uses
8885         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
8886         of GDI+.  This leads to better looking text and more accurate measurements
8887         on Windows, fixing many of the reported issues.
8888         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
8889
8890 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8891
8892         * FolderBrowserDialog.cs: When running on Windows,
8893         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
8894         since we must match both "C:" and "C:\" forms. A little hackish, but
8895         works.
8896         Fixes #325247.
8897
8898 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8899
8900         * ListView.cs: When calling EndEdit (after editing an item),
8901         create a new instance of LabelEditEventArgs to keep clean the fields
8902         in case we get a new call to BeginEdit; also do Application.DoEvents
8903         to have focus in synch. This is a fix similar to TreeView's #325244.
8904
8905 2007-10-07  Andreia Gaita <avidigal@novell.com>
8906
8907         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
8908         * WebBrowserBase.cs: Added dialog support, calling the
8909           WebBrowserDialogs classes for each specific dialog type.
8910
8911 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8912
8913         * ListView.cs: When the last item is focused and is removed,
8914         move the focus to the previous item (in Items order). This is what MS
8915         does.
8916         Fixes #330415.
8917
8918 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8919
8920         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
8921         instead of the opposite (RemoveAt call Remove). This is a better
8922         approach since we don't need to to a pair of traversals when using
8923         RemoveAt.
8924
8925 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8926
8927         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
8928         check that the node actually has nodes, and if not, move to the
8929         parent node instead. 
8930         Fixes #325265.
8931
8932 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8933
8934         * TreeView.cs: Move the previous change to the general case (to
8935         call Application.DoEvents in cases where the method was called by
8936         different places).
8937
8938 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8939
8940         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
8941         call Application.DoEvents. This is neccessary when we get a call to
8942         BeginEdit from an AfterLabelEdit handler, because the focus always
8943         goes to the TreeView, even if we try to give it to our
8944         LabelEditTextBox. The call do Application.DoEvents seems to
8945         synchronize the focus, basically.
8946         Fixes #325244.
8947
8948 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8949
8950         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
8951         should be false. This also removes some nasty recursive paths. Fixes
8952         part of #325244.
8953
8954 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
8955
8956         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
8957         state to normal. Also resize window when cascading. Fixes #325433. 
8958
8959 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
8960
8961         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
8962         DefaultForeColor, as drawing empty colored lines isn't very useful.
8963         [Fixes the not drawn lines part of bug #324358]
8964
8965 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
8966
8967         * TextControl.cs: Move Line and LineTag classes into separate files to
8968         make things easier to find.
8969         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
8970         * RichTextBox.cs: Capitalize LineTag.Length property access.
8971         - This is purely an organizational/formatting change, no logic changed. -
8972
8973 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8974
8975         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
8976         text is empty.
8977
8978 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8979
8980         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
8981         text is empty.
8982
8983 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8984
8985         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
8986         prevent calling of OnBackColorChanged. Fixes #325321.
8987
8988 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8989
8990         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
8991         because control can be disabled because owner is disabled.
8992
8993 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
8994
8995         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
8996         string.Empty, test failed from previous change.
8997
8998 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
8999
9000         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
9001         is null, not String.Empty.  See bug #323038.
9002
9003 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
9004
9005         * TextControl.cs: Change the margins to match MS a little better.
9006         Still not perfect for X11 due to some DrawString differences, but
9007         is still an improvement over the old stuff.
9008         Partially fixes #324467.
9009
9010 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9011
9012         * FolderBrowserDialog.cs: When using MyComputer as 
9013         RootFolder, let absolute paths be considered as valid ones. Also, use
9014         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
9015         for Windows compatibility.
9016         Partially fixes #325247.
9017
9018 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9019
9020         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
9021         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
9022         method, since it causes the dialog to not select folders directly
9023         under the root path (when setting SelectedPath property).
9024
9025 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9026
9027         * TreeNode.cs: When calling Expand/Collapse and need to call 
9028         ExpandBelow/CollapseBelow respectively, take into account
9029         partially visible nodes (previously Expanding/Collapsing
9030         a partially visible node in the bottom was not updating its +- sign).
9031
9032 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9033
9034         * TreeView.cs: When calling Expand on a TreeNode, and we need to
9035         expand nodes below (ExpandBelow), scroll the entire Viewport
9036         area if the node is above it and not visible (instead of scrolling
9037         the area from node's Bottom, which applies only when the node is
9038         visible).
9039         Fixes #325266.
9040
9041 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9042
9043         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
9044         node in the bottom area (as .Net does). This is done to preserve the
9045         scroll position when ExpandAll is called before handle is created for
9046         the 1.1 profile (bottom area, as opposed to top area in 2.0).
9047         Fixes #324103.
9048
9049 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9050
9051         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
9052         bottom area if we are in fact not using the vertical scroll bar.
9053         Fixes #324824.
9054
9055 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
9056
9057         * Control.cs: Comment out a double buffering optimization that doesn't
9058         take into account invalidates created in OnPaint, causing the control
9059         to never be redrawn.  It would take quite a bit of work to work around
9060         this, but I left it commented with an explanation for later possible
9061         optimization.
9062         [Fixes bug #328681]
9063
9064 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
9065
9066         * Control.cs: Ask parent to perform a layout if control is AutoSize and
9067         the text changes.
9068         * RadioButton.cs: Implement GetPreferredSizeCore.
9069         [Fixes bug #328672]
9070
9071 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
9072
9073         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
9074         corcompare stuffs.
9075
9076 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
9077
9078         * Application.cs: Move the sync context stuff to Run instead of RunLoop
9079         so that it doesn't get uninstalled on modal forms.
9080         * Control.cs: Install a sync context when a control is created.
9081         * WindowsFormsSyncronizationContext.cs: Create a private static control
9082         to invoke on.  This is easier than trying to find a created control we
9083         can use.
9084         [Fixes bug #327608]
9085
9086 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
9087
9088         * Application.cs: Install a WindowsFormsSynchronizationContext in the
9089         run loop, and uninstall it when done.
9090         * WindowsFormsSynchronizationContext.cs: Implement.
9091         [Fixes the common case in bug #327608]
9092
9093 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
9094
9095         * DataGridViewCellCollection.cs: Added argument checks for indexers.
9096         Use case-insensitive lookup of column name in indexer. Code
9097         formatting.
9098
9099 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9100
9101         * TreeNode.cs: When collapsing or expanding a node, check whether its
9102         change will affect the visible area (we were previously doing a
9103         IsVisible check, but that check is not enough since children nodes
9104         could be still visible). Fixes part of #325266.
9105
9106 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
9107
9108         * TreeView.cs: Always select the first node when the TreeView gets
9109         focus if there is no currently selected node.
9110         [Fixes bug #324279]
9111
9112 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
9113
9114         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
9115         node being selected is null.
9116         [Patch from Yves Bastide fixes bug #326858]
9117
9118 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9119
9120         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
9121         whether all the parent nodes are expanded.
9122         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
9123         call RecalculateVisibleOrder if all previous nodes are expanded.
9124         Before that we were doing a IsVisible check, but sometimes the node
9125         is not in the visible area, but _should_already be ready, because of
9126         all previous nodes are expanded. Fixes #325259.
9127
9128 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9129
9130         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
9131         portion of the item is clicked.
9132
9133 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9134
9135         * TextControl.cs: Do not tell the system to move the cursor if the
9136         textbox isn't focused.  Fixes part of bug #322668.
9137
9138 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9139
9140         * ComboBox.cs: When there are no items, do not show the dropdown if
9141         the down arrow is clicked.  Fixes part of bug #322668.
9142
9143 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9144
9145         * ToolStripComboBox.cs: Manually set the size of this control in the
9146         constructor, as it doesn't seem to be the same as DefaultSize.
9147         Fixes a failing monobuild test.
9148
9149 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
9150
9151         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
9152         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
9153
9154 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
9155
9156         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
9157         Desktop.  This lets it work for people who have moved their desktops
9158         from the default location on windows.  For people who have not, both
9159         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
9160
9161 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9162
9163         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
9164         but when the base constructor sets this, the control is null.  Set it
9165         again in the constructor.  Fixes a failing monobuild test.
9166
9167 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9168
9169         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
9170         get called.
9171         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
9172         called.
9173
9174 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9175
9176         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
9177         will handle it themselves.
9178         * ToolStripItem.cs: When deciding what the text of a tooltip should
9179         be, use the Text property instead of the text field.
9180         * ToolStripTextBox.cs: Handle tooltips.
9181         [Fixes bugs #325417 and #325973]
9182
9183 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9184
9185         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
9186         left click.  Fixes the easy part of bug #325969.
9187
9188 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9189
9190         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
9191         bug #325406, but set a minimum for StatusStrip to 22 to keep
9192         bug #325390 fixed.  I think this minimum would have been figured
9193         up automatically if the grip was actually a ToolStripItem, but it
9194         currently is not.
9195
9196 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9197
9198         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
9199         as this is apparently the actual value used by .Net. Also apply
9200         ItemPadding in Details view only, and decrease the general width padding,
9201         to have only the needed. This should fix #324340 in Windows too.
9202
9203 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9204
9205         * ListViewItem.cs: Don't Invalidate item if parent is inside
9206         a BeginUpdate/EndUpdate block. This prevents to have differences
9207         between the ListView and items state, as well as avoid some exceptions
9208         there.
9209         * ListView.cs: Make 'updating' field internal.
9210
9211 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9212
9213         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
9214         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
9215         size if appropriate.
9216         Fixes reopened bug #325414.
9217
9218 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9219
9220         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
9221         * ToolStripItem.cs: Invalidate before and after our new autosize when
9222         text changes.
9223         Fixes reopened bug #325390.
9224
9225 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9226
9227         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
9228         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
9229         #325044.
9230
9231 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9232
9233         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
9234
9235 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9236
9237         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
9238         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
9239         #82734.
9240
9241 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
9242
9243         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
9244         item to select when the ToolStrip is selected.
9245         * ToolStripControlHost: Realign the control when the bounds or visibility
9246         change.
9247         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
9248         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
9249         preferred height.
9250         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
9251         base.OnPaint.  Was causing text not to be drawn.
9252
9253 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
9254
9255         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
9256
9257 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9258
9259         * TreeView.cs: When creating the label edit text box,
9260         set is initially to Visible = false. This is done to
9261         prevent a confusion in the layout which makes it to lose
9262         focus when shown the first time. Fixes part of #82592.
9263
9264 2007-09-13 Andreia Gaita <avidigal@novell.com>
9265
9266         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
9267
9268 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9269
9270         * ToolStrip.cs: Take Margin into account when calculating preferred
9271         size.  Also, allow preferred size to get smaller than the explicit
9272         size.
9273         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
9274         First step towards fixing bug #82747.
9275
9276 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9277
9278         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
9279         full row select background over the plus/minus glyph.  Also, turn
9280         off the focus rectangle for full row select since MS doesn't seem
9281         to ever paint it.  [Fixes bug #81839]
9282
9283 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9284
9285         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
9286         This was causing keyboard opened dropdowns to lose focus.
9287         [Fixes bug #82803]
9288
9289 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9290
9291         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
9292         ClientRectangle instead.  [Fixes bug #82838]
9293
9294 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9295
9296         * SplitContainer.cs: We can't reset Visible on every layout because
9297         someone may have set Visible = false explicitly on a SplitterPanel.
9298         Make sure when we switch orientation the SplitterDistance does not
9299         change.  Fixes two failing tests.
9300
9301 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9302
9303         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
9304         TextRenderer, since the latter is only available in 2.0.
9305
9306 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
9307
9308         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
9309         * SplitContainer.cs: Implement FixedPanel layouting.
9310
9311 2007-09-12  Andreia Gaita  <avidigal@novell.com>
9312
9313         * WebBrowserBase.cs: setup shutdown routine
9314
9315 2007-09-12  Andreia Gaita  <avidigal@novell.com>
9316
9317         * Application.cs: Let keyboard events that are targetted 
9318                 to non-mwf windows hosted inside mwf (as in, webbrowser),
9319                 propagate properly. Fixes keyboard handling on the webbrowser.
9320
9321 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9322
9323         * ListView.cs: When handling MouseUp event and we are 
9324         highligting a node with the mouse right button, don't trigger
9325         Before/AfterSelecting event, since we are not actually selecting
9326         the node.
9327
9328 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9329
9330         * TreeView.cs: When editing a node, modify the edit text box
9331         depending on the text length (as you are typing), like MS does.
9332
9333 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
9334
9335         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
9336         Override GetPreferredSizeCore to perform calculations.  Remove custom
9337         autosize logic.  [Fixes bug #82739]
9338
9339 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
9340
9341         * TextBoxBase.cs: Modified should default to false.
9342
9343 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9344
9345         * Control.cs: Update the anchoring distances even when layout is supspended.
9346         Patch provided by George fixes bug #82805.
9347
9348 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9349
9350         * Control.cs: Provide a setter for ExplicitHeight.
9351         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
9352         remove the hacks in here for requested_height.
9353         [Fixes bug #82749]
9354
9355 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9356
9357         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
9358         Maximum to lower that its current Value caused an ArgumentException by setting
9359         the Value to the new Maximum.
9360
9361 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9362
9363         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
9364         handle moves to the closest tick when it is being dragged.
9365         [Fixes bug #82751]
9366
9367 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9368
9369         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
9370         can't let them count as real items when calculating where to merge in the
9371         user's items.  [Fixed bug #82786]
9372
9373 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9374
9375         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
9376         who want to add a menu item directly onto a toolstrip.
9377         [Fixes bug #82775, part II]
9378
9379 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9380
9381         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
9382         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
9383         don't set it to available.
9384         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
9385         [Fixes bug #82727, part II]
9386
9387 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9388
9389         * StatusStrip.cs: Change item placement to None if not visible.
9390         * ToolStripItem.cs: Invalidate when InternalVisible changes.
9391         These should have been committed to fix 82723, but I missed them.
9392
9393 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9394
9395         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
9396         Click, and that it is only called once.
9397         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
9398         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
9399         dropped down.
9400         [Fixes bug #82775]
9401
9402 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9403
9404         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
9405         to match .Net.
9406         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
9407         instead of 8, just like above. Partially fixes #82734.
9408
9409 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9410
9411         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
9412         fixes #82734.
9413
9414         * ListView.cs: Remove extra space between rows in Details view (match
9415         .Net). 
9416         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
9417         the DefaultFont.
9418
9419 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
9420
9421         * Application.cs: Modified ProductVersion to return value of
9422         AssemblyInformationVersion if available, and fallback to assembly
9423         version. Fixes bug #82746. Code formatting.
9424         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
9425         instead.
9426
9427 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9428
9429         * Control.cs: When updating ZOrder for a child control,
9430         take into account the implicit ones (we need it in our controls
9431         using them). Fixes #82642.
9432
9433 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
9434
9435         * ToolStripItem.cs: Add support for animated images.
9436         [Fixes bug #82726]
9437
9438 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
9439
9440         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
9441         visible.  [Fixes bug #82727]
9442
9443 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9444
9445         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
9446         so we repaint using the new size.  [Fixes bug #82723]
9447
9448 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9449
9450         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
9451         option.  [Fixes bug #81779]
9452
9453 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9454
9455         * TreeView.cs: Override HandleClick because the StandardClick style is
9456         set to false.  According to MSDN (and testing), the click events should
9457         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
9458
9459 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9460
9461         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
9462         the border will disappear.  Fixes reopened #82653.
9463
9464 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9465
9466         * Control.cs: If the control is autosize, and its preferred size changes
9467         when it lays out its children, tell its parent so it can be re-layed out.
9468         Fixing some of the fallout from r85433.
9469
9470 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9471
9472         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
9473         and CheckBox share some code.
9474
9475 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9476
9477         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
9478         the TrackBar, not every mouse move.  [Fixed bug #82718]
9479
9480 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9481
9482         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
9483         under 2.0 rendering.  [Fixes bug #82657]
9484
9485 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9486
9487         * TreeView.cs: If we found a TreeNode to display a context menu, but
9488         it doesn't have one to show, let the TreeView display its menu
9489         instead.  [Fixes bug #82680]
9490
9491 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9492
9493         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
9494         OnPaintInternal instead.  Give the internal TextBox a Border property
9495         so it can draw itself more correctly.  [Fixes bug #82653]
9496
9497 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
9498
9499         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
9500
9501 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9502
9503         * ComboBox.cs: Adjust combobox button state to reflect current state when
9504         back to enabled = true. Fixes first issue of #82654.
9505
9506 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9507
9508         * Control.cs: Fix last patch regression, prevent forms to update zorder when
9509         setting visible property.
9510
9511 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9512
9513         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
9514         fix zorder for controls initially created as non visible. Fixes #82667.
9515
9516 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
9517
9518         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
9519         mimic win32 look. Fixes #82656.
9520
9521 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
9522
9523         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
9524         Stubs for new net 3.5 classes.
9525
9526 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9527
9528         * ListViewItem.cs: In ListViewItemCollection operations calculate
9529         Layout for owner as well as invalidate it. Fixes part of #82642.
9530
9531 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
9532
9533         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
9534         when returning Enabled.  [Fixes bug #82651]
9535
9536 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
9537
9538         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
9539
9540 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9541
9542         * ListView.cs: Put item padding info in a single place
9543         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
9544         columns again.
9545         * ThemeWin32Classic.cs:
9546         * Theme.cs: Likewise.
9547
9548 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9549
9550         * ListView.cs: When a ListViewSubItem instance is invalidated,
9551         invoke Invalidate on parent ListViewItem, not parent ListView.
9552         Fixes #81570.
9553
9554 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9555
9556         * ListView.cs, ListViewItem.cs: corcompare stuffs.
9557
9558 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9559
9560         * BindingMemberInfo.cs: Implement == and != operators.
9561
9562 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9563
9564         * HtmlElementEventArgs.cs: Implement properties.
9565
9566 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9567
9568         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
9569
9570 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9571
9572         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
9573         Add (string,string,string) to implement the imagekey.  It turns out, we
9574         use the requested imagekey whereas .Net does not.  So I broke ours to match
9575         theirs.  :(
9576
9577 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9578
9579         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
9580
9581 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9582
9583         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
9584
9585 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
9586
9587         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
9588         up-to-date. Fixes bug #82618.
9589
9590 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
9591
9592         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
9593         reflect document changes. Fixes #82367.
9594
9595 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9596
9597         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
9598         as well as add new ones. This should make work the BackgroundImage
9599         property for ListView again.
9600
9601 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9602
9603         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
9604         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
9605         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
9606
9607 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9608
9609         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
9610         IsKeyLocked.
9611
9612 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9613
9614         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
9615         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
9616
9617 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9618
9619         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
9620         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
9621
9622 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
9623
9624         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
9625
9626 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
9627
9628         * GridEntry.cs: Implement GetService.
9629
9630 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
9631
9632         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
9633         for label editting, make sure we focus back on the TreeView.
9634         [Fixes bug #82590]
9635
9636 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9637
9638         * ListView.cs: Add some 2.0 overrides.
9639
9640 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9641
9642         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
9643         because getter dont returns right value before handle creation. Thanks 
9644         to George. Fixes #82569.  
9645
9646 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9647
9648         * Theme.cs: Revert last patch, it causes error under win32. 
9649
9650 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9651
9652         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
9653         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
9654         logical Desktop rather than the physical file system location. Fixes #82603. 
9655
9656 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
9657
9658         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
9659         for the patch. Fixes #82568.
9660
9661 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9662
9663         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
9664         methods.
9665
9666 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9667
9668         * ListViewInsertionMark.cs: New stubbed class.
9669
9670 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9671
9672         * FolderBrowserDialog.cs: When adding folder, immediately create the
9673         directory with temporary name and rename the directory when editing
9674         finishes. This matches MS. Ensure the node for the new folder is 
9675         selected and LabelEdit is disabled, when editing is either finished
9676         or cancelled.
9677
9678 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9679
9680         * TreeView.cs: When editing label of node, ensure node is visible.
9681
9682 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
9683
9684         * PropertyGridView.cs: Set the value only if it has changed.
9685
9686 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9687
9688         * ListView.cs: Some more code refactoring to add support sorting
9689         with groups (now for Details view). Remove unused code also.
9690
9691 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9692
9693         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
9694         Not a big fan of reacting immediately to a field in an EventArg, but that's
9695         the way it's done.  (This is part of the previous commit that got left out.)
9696
9697 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9698
9699         * FolderBrowserDialog.cs: Removed need for separate description field.
9700         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
9701         has focus when dialog box is displayed again, regardless of what
9702         button was pressed the previous time. Set RootFolder and SelectedPath
9703         each time dialog box is displayed. This ensures the treeview is
9704         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
9705         when it does not have focus. Added support for more special folders.
9706
9707 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9708
9709         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
9710         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
9711         it resets the edit_args.
9712         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
9713         [Fixes bug #82577]
9714
9715 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
9716
9717         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
9718         button to match MS. Provide more meaningful exception message for
9719         invalid RootFolder value. Use zero-length string when SelectedPath
9720         is set to null. Allow non-rooted paths in SelectedPath, but ignore
9721         them in FolderBrowserTreeView. Allow folders to be created in
9722         RootFolder. Fixes bug #82576.
9723
9724 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9725
9726         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
9727         since we need to take into account the group headers and the margin
9728         between them.
9729         * ListViewGroup.cs: Add a rows field to store the number of rows per
9730         group.
9731
9732 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9733
9734         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
9735           Anyways, let's just follow the lead.
9736
9737 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9738
9739         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
9740         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
9741         controls in GetPreferredSizeCore.
9742         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
9743         [Fixes bug #82488]
9744
9745 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9746
9747         * PrintDialog.cs: Need to instantiate the form variable here too.
9748
9749 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9750
9751         * ListView.cs: Do some reorganization to support sorting in groups,
9752         by doing the layout sequentially in ListView.Items. Also add support
9753         for the Default Group, which should be available for items with no
9754         group assigned.
9755         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
9756         for storing layout info also.
9757         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
9758         collection, as well as providing internal members to do a traversal
9759         including the default group (needed when doing layout/drawing).
9760         * ThemeWin32Classic.cs: When drawing group headers use internal
9761         ListViewGroupCollection members to take into account the default
9762         group.
9763
9764 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
9765
9766         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
9767
9768 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9769
9770         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
9771         been created.  If handle is created, we want arror keys.  If we are editing
9772         a node, we want things like enter, esc, home, end, page up, page down.
9773         Allows Esc to work for FolderBrowserDialog.
9774
9775 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9776
9777         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
9778         they close when ESC is pressed.  Thanks Andy!
9779
9780 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9781
9782         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
9783         This way we can tell if this is a CommonDialog provided with mono, or one
9784         that is being implemented outside by a developer.  If it is an external one,
9785         the developer is responsible for showing their own form.  We were showing
9786         our blank form after the developer showed his.
9787         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
9788         PageSetupDialog.cs: Instantiate form variable in our constructor.
9789         [Fixes bug #82531]
9790
9791 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9792
9793         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
9794         and always return true.  [Fixes bug #81616]
9795
9796 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9797
9798         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
9799         TextBox.  [Fixes bug #82549]
9800
9801 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
9802
9803         * FileDialog.cs: When Save/Open is clicked and no filename is selected
9804         or entered then do not close the dialog. Fixes bug #82539. Removed
9805         CWLs.
9806
9807 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
9808
9809         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
9810         code to this method. It is calling every time filter changes. This method
9811         will help to fix the bug #80887.
9812
9813 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
9814
9815         * CheckBox.cs: Implement AutoSize calculation.
9816
9817 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
9818
9819         * CheckBox.cs: Use new 2.0 rendering for 2.0.
9820         * Theme.cs: Method declarations for 2.0 rendering path.
9821         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
9822
9823 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9824
9825         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
9826
9827 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9828
9829         * ListViewGroupCollection.cs: Implement AddRange the right way, to
9830         only call Redraw on the parent one time.
9831
9832 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9833
9834         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
9835           GetClipboardContent.
9836         * DataGridViewCell.cs: Implemented GetClipboardContent,
9837           GetEditedFormattedValue, GetFormattedValue.
9838         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
9839
9840 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
9841
9842         * TableLayoutStyleCollection.cs: corcompare fix.
9843
9844 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9845
9846         * DataObject.cs: Implemented retrieval of convertible / not convertible
9847           objects.
9848
9849 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
9850
9851         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
9852         ourselves.  This ensures the entire old bounds are repainted, in case our new
9853         size is smaller.  [Fixes bug #82518]
9854
9855 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
9856
9857         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
9858         flag to make fast handle of mouse events, without this the mouse move is
9859         handled in some manner, whether it is a mouse move or not. Fixes #81588.
9860
9861 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9862
9863         * ListView.cs: When doing layout calculations don't use a ref
9864         param to keep the current item; instead use its Index value (this 
9865         is specially important when doing the layout with Groups
9866         and Items being sparse). Also don't take into account items added to
9867         the Group but not yet added to the main ListView.Items collection.
9868
9869 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9870
9871         * ListViewGroupCollection.cs: Forgot to mimic an issue
9872         in the indexer (don't assign the ListView owner for new values).
9873
9874 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9875
9876         * ListViewGroupCollection.cs: Make the string indexer use
9877         the int based indexer to re-use code, instead of duplicate the code.
9878         Also Redraw as needed and take into account null values.
9879
9880 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
9881
9882         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
9883         [Fixes bug #82481]
9884
9885 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
9886
9887         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
9888         when other buttons are clicked or navigated to.
9889
9890 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9891
9892         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
9893           it's XplatUIX11 that attaches them.
9894
9895 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9896
9897         * DataGridView.cs: If a column has been added, recreate the editing row.
9898           Fixes #82226.
9899
9900 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9901
9902         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
9903           of the tag to draw. Makes disappearing text show up again.
9904
9905 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9906
9907         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
9908           Contents. Fixes #82487.
9909
9910 2007-08-19  Andreia Gaita  <avidigal@novell.com>
9911
9912         * Added HtmlElement.cs, HtmlElementCollection.cs, 
9913           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
9914           
9915 2007-08-19  Andreia Gaita  <avidigal@novell.com>
9916
9917         * BindingSource.cs: Implement this, dispose and getenumerator.
9918         * DataGridViewRowCollection.cs: Move the InvalidOperationException
9919         out of AddInternal, throw it only on public Add calls. The 
9920         UsingWebBrowser sample was blowing up with this when setting the
9921         DataSource after adding DataBindings, so it's likely that .net
9922         only throws this exception when Add is called directly. 
9923         
9924         * ToolStripControlHost.cs: Return the hosted control's text
9925         property, and not the ToolStripItem one (it would always return
9926         the initial value).
9927         
9928         * HtmlDocument.cs: Implement GetElementById and All
9929         * WebBrowser.cs: Remove exception on set_DocumentStream.        
9930
9931 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9932
9933         * Form.cs: Fix the max and min value for opacity (0~1).
9934
9935 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9936
9937         [Fixes #80118]
9938         * DataGridTableStyle.cs: Default header font is now null, on getter it 
9939         returns datagrid font when is null. On setter permits null.
9940
9941         * DataGrid.cs:
9942         - When ResetHeaderFont set header font to null.
9943         - On EndInit set grid_style.DataGrid.
9944
9945 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9946
9947         * TabControl.cs: Fix regression in default padding x.
9948
9949 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9950
9951         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
9952
9953 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9954
9955         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
9956         not 2. Fixes #82229.
9957
9958 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9959
9960         * TabControl.cs: Fix tab size when image height is less than text height.
9961         Partially fixes #81837.
9962
9963 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9964
9965         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
9966         "alt + tab". It works only for Win32, for X11 theres no way to remove window
9967         from taskbar and keep it on "alt_tab". Fixes #81722.
9968
9969 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9970
9971         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
9972         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
9973         Fixes #80877 and #79418.
9974
9975 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9976
9977         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
9978         between position and one of the screen borders. Fixes #82349.
9979
9980 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9981
9982         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
9983         the MessageBox in the taskbar. Fixes #82457.
9984
9985 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9986
9987         * MessageBox.cs: Fix form size when icon is set and text height is bigger
9988         than icon. Fixes #82468.
9989
9990 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9991
9992         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
9993         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
9994           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
9995           Refactored HandleNCCalcSize somewhat to avoid code duplication.
9996         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
9997           FormBorderStyle to decide if we're calculating a new size from the
9998           client size or not. CreateParams: Don't fake tool windows, only the X11
9999           backend manages toolwindows manually.
10000
10001 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10002
10003         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
10004         ObjectDisposedException.
10005
10006 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10007
10008         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
10009         in OnLoad should not have any effect.  [Fixes bug #82470]
10010
10011 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10012
10013         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
10014         paint for controls that create their own ToolTipWindow instead of
10015         going through ToolTip.
10016
10017 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10018
10019         * ToolTip.cs: Make Hide internal instead of public to match MS API.
10020
10021 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10022
10023         * ListViewGroupCollection.cs: Use generic List instead of an
10024         ArrayList, since this collection is 2.0 only.
10025
10026 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
10027
10028         * ToolTip.cs (Hide): Made public to make the build work (should
10029         this not be public?).
10030
10031 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10032
10033         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
10034         ToolTipWindow.
10035         * ToolTip.cs: Add an internal Visible property to facilitate transition.
10036
10037 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10038
10039         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
10040         PopupEventHandler.cs: Make these internal for 1.1.
10041         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
10042         use ToolTipWindow internals.
10043         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
10044         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
10045
10046 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10047
10048         * X11Dnd.cs: Add a null check.
10049
10050 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10051
10052         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
10053           nothing else succeeds. Fixes #82453.
10054
10055 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10056
10057         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
10058           rectangle if we're painting to another window than the one the paint
10059           message was generated on. Simplify the code somewhat, which makes
10060           PaintEventEnd also simpler.
10061
10062 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10063
10064         * Control.cs: When changing parent of a form, let the form decide whether
10065           XplatUI.SetParent should be called or not.
10066         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
10067           recreating the handle. If the new parent's handle isn't created, don't
10068           recreate our handle, just destroy it. CreateParams: Check if the
10069           parent's handle is created before fetching it.
10070
10071 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10072
10073         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
10074           Update calls to PaintEventStart/End to take a Message argument.
10075         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
10076           take a Message argument.
10077         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
10078           Message argument, and handle the case where we don't paint to the window
10079           for which the paint message was generated.
10080
10081 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10082
10083         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
10084           Marshal.GetLastWin32Error. Plug nasty memory leak in
10085           PaintEventStart/End, we were creating a DC we weren't releasing.
10086
10087 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10088
10089         * ListView.cs: Add Groups support in Details view. Also have a small
10090         method to do the layout of the group header. Don't use a separate
10091         method to do the groups calculation in Icons view, since our methods
10092         are now a little simpler.
10093         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
10094         `Bounds'.
10095         * ThemeWin32Classic.cs: Likewise.
10096
10097 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
10098
10099         * Application.cs: Add FilterMessage method and rework our message loop
10100         logic to use it.
10101
10102 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
10103
10104         * Application.cs: Add some methods and stub a few methods that are
10105         pretty much never used.
10106
10107 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
10108
10109         * TreeNode.cs: Add some serialization methods.
10110
10111 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10112
10113         * ListView.cs: In ListViewItemCollection have a 
10114         'is_main_collection' field to not modify ListViewItem.ListView
10115         when using it as ListViewGroup.Items (and not ListView.Items)
10116         and also don't modify selection state (.Net behaviour). 
10117         Instead, set group for items contained in a ListViewGroup.Items collection.
10118         * ListViewItem.cs: Simplify some code in Group setter.
10119         * ListViewGroup.cs: use the new .ctor to pass the current instance
10120         to the ItemsCollection.
10121         * ListViewGroup.cs: Set the ListView property for ListViewGroup
10122         instances when adding/removing. Also make Remove use RemoveAt, which
10123         should perform better.
10124
10125 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10126
10127         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
10128         that crept into the 1.1 profile.
10129
10130 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10131
10132         * ToolBarButton.cs: Implement ImageKey.
10133
10134 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10135
10136         * ToolBar.cs: Implement ScaleControl/ScaleCore.
10137
10138 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10139
10140         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
10141           created, it might have gotten destroyed since we last checked. Fixes
10142           #82405.
10143
10144 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
10145
10146         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
10147         tooltip will hide when mouse is moved off the control.
10148         [Fixes bug #82407]
10149
10150 2007-08-11 Andreia Gaita <avidigal@novell.com>
10151
10152         * WebBrowserBase.cs, WebBrowser.cs: add implementation
10153         using Mono.Mozilla for loading and navigating webcontrol
10154         with xulrunner.
10155         The initial implementation was done on 
10156         /trunk/mozembed/tests/browser , and copied here.
10157
10158 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
10159
10160         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
10161         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
10162
10163 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10164
10165         * DataGridView.cs: Add support for an editing row. Fixes #82226.
10166           RowTemplateFull: throw an exception if a column doesn't have a template.
10167         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
10168           add the row just before it.
10169         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
10170           selected.
10171         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
10172           DataGridView field to be able to reach the grid's editing row.
10173
10174 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10175
10176         * ToolTip.cs: If the control's handle hasn't been created when it has a
10177         tooltip set on it, don't check to see if we need to show the tooltip.  This
10178         check was causing the control's handle to be created.
10179         [Fixes bug #82399]
10180
10181 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10182
10183         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
10184                                         1.1             2.0
10185         Handle Not Created      -1              0
10186         Handle Created          0               0
10187         [Fixes bug #82371]
10188
10189 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10190
10191         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
10192         [Fixes bug #82348]
10193
10194 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
10195
10196         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
10197         * ToolTip.cs: Implement some properties and owner draw.
10198
10199 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10200
10201         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
10202           show them again, since setting visibility causes a paint, causing an
10203           endless loop (instead use a temporary and set it all when it's known if
10204           they should be shown or not). Fixes #79265.
10205
10206 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10207
10208         * DataGridView.cs: Only do a full column/row selection if a header was
10209           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
10210           isn't pressed, deselect everything before selecting something.
10211
10212 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10213
10214         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
10215           behaviour according to bug #81075 - they are returned in the order they
10216           are selected. Fix HitTest to check if the point is within any of the
10217           headers. Allow for row/column selection when in ColumnHeader or
10218           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
10219           the row and column to call when their selected state changes, and
10220           updated selected_[rows|columns] whenever SetSelected* is called.
10221         * DataGridViewBand.cs: Initialize isRow correctly. Call
10222           SetSelected[Row|Column]CoreInternal when the selected state changes, and
10223           add a SelectedInternal to avoid StackOverflows.
10224         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
10225           ReadOnly no matter what.
10226         * DataGridViewSelectedColumnCollection.cs,
10227           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
10228           the items in reverse order (just as MS does...)
10229
10230 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
10231
10232         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
10233         itself, not part of a mnemonic.  [Fixes bug #82378]
10234
10235 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10236
10237         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
10238         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
10239           the DGV, the column, the row, or the cell itself is readonly.
10240
10241 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
10242
10243         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
10244         OSVersion.Platform.
10245         * FileDialog.cs: Same.
10246         * TextRendered.cs: Same.
10247         * FolderBrowserDialog.cs: Same.
10248         * TextBoxBase.cs: Same.
10249         * Application.cs: Same.
10250         * Cursors.cs: Same.
10251         * ThemeClearLooks.cs: Same.
10252
10253 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
10254
10255         * XplatUI.cs: Added RunningOnUnix property to be used by controls
10256         instead of duplicating these checks everywhere.
10257         * FileDialog.cs: Use case-insensitive comparison for populating the
10258         DirComboBox when not running on unix. Fixes bug #82385.
10259         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
10260         "Look in".
10261
10262 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10263
10264         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
10265           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
10266           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
10267           cell and column selection with ctrl and shift pressed. Call the correct
10268           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
10269           the corresponding virtual method (PaintBackground to paint background,
10270           etc).
10271         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
10272           either the column, row or the cell itself is selected.
10273         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
10274           OnRowsAdded.
10275         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
10276           here. When the row is selected, don't select all cells. Each cell now
10277           queries the row to see if the row is selected.
10278
10279 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10280
10281         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
10282           SelectionMode.
10283
10284 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10285
10286         * ListView.cs: In ListViewItemsCollection check that owner is
10287         not null before trying to access it (this happens quite often
10288         using Groups). Also don't duplicate calls by calling CollectionChanged
10289         method.
10290
10291 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10292
10293         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
10294         when we are dismissed to clear keyboard mnemonics.
10295         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
10296         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
10297         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
10298         was activated by keyboard or the OS tells us to always draw them.
10299         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
10300         [Fixes bugs #82376, #82377]
10301
10302 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10303
10304         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
10305         shot at having it because Alt was pressed.
10306         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
10307         the first real menu item.
10308         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
10309         a mnemonic if Text is null.
10310         [Fixes bug #82374]
10311
10312 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10313
10314         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
10315         search do check whether the item is already contained in the
10316         collection or not; instead check if the owner of the item is the same
10317         as ours. Also, remove a redundant check in the same method. 
10318
10319 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10320
10321         * Control.cs: Allow the clip region to be set back to null.
10322         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
10323         [Fixes button still showing up in bug #82370 when Show Through is turned off]
10324
10325 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10326
10327         * GridEntry.cs: Add a null check.
10328         * PropertyGrid.cs: When checking for existing grid entries, ignore category
10329           entries. Fixes #82297.
10330
10331 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
10332
10333         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
10334         for 2.0.
10335
10336 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
10337
10338         * ListBox.cs: Implement ScaleControl.
10339
10340 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10341
10342         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
10343           have a menu strip.
10344         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
10345           parent has a menu strip. Fixes #81689.
10346
10347 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10348
10349         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
10350           moments, so apply some fuzzy logic to determine if the mouse is still
10351           inside a control or not. Fixes #82288 (for the third time).
10352
10353 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10354
10355         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
10356           Don't create the child if it has been disposed already (may happen if
10357           the user closes the form the Load event).
10358
10359 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10360
10361         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
10362           #82288.
10363
10364 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10365
10366         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
10367           might call us after we've been destroyed, in which case our own private
10368           parent field is null. Fixes #82326.
10369
10370 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
10371
10372         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
10373         check for setting the dropdown's owner.
10374
10375 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
10376
10377         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
10378         before removing system menu items.
10379
10380 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
10381
10382         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
10383         folding.
10384         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
10385         folding.
10386         * ToolStrip.cs: Add a null check to mnemonics.
10387         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
10388         no ConnectedArea.
10389         [Fixes most of bug #81689]
10390
10391 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10392
10393         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
10394
10395 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10396
10397         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
10398
10399 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10400
10401         * DataGridViewCell.cs: EditType: returns
10402           DataGridViewTextBoxEditingControl always.
10403
10404 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
10405
10406         * TextRenderer.cs: Remove the LineLimit string format flag from the
10407         DrawString fallback method so that things like buttons that aren't
10408         tall enough to draw a full line will still draw part of the text.
10409         [Fixes part of bug #82272]
10410
10411 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10412
10413         * DataGridView.cs: Implemented AutoResizeColumn(s).
10414         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
10415           according to the Alignment.
10416         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
10417           Implement alignment and padding when painting.
10418         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
10419           exists.
10420         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
10421           way.
10422         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
10423           a column is added.
10424
10425 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10426
10427         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
10428         which is internal.
10429
10430 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10431
10432         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
10433         hide GetPreferredSize from public API.
10434         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
10435         * ToolStripItem.cs: Stub out drag and drop methods and events.
10436         * ToolStripManager.cs: Stub out Save/LoadSettings.
10437         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
10438         * ToolStripPanel.cs: Fix corcompare error.
10439         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
10440         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
10441         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
10442
10443 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10444
10445         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
10446         bounds height instead of PreferredHeight.  Puts things back the way 
10447         they were for height while still fixing the width.  Fixes broken unit
10448         tests.
10449
10450 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10451
10452         * Binding.cs: Implement 2.0 constructors and add a null check.
10453
10454 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10455
10456         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
10457           and fix row index (off by one).
10458
10459 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10460
10461         * PropertyGridView.cs: Remove debug output.
10462
10463 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10464
10465         * Control.cs: We need to reset the is_created flags when the handle is
10466           destroyed. Fixes #82187.
10467         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
10468           client coordinates if the window doesn't have a parent.
10469           Win32GetParent returns the parent or the owner, and for top-level
10470           windows with no parent (but with an owner) we were calculating the
10471           location from the location of the owner.
10472         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
10473           form has been disposed.
10474         * MdiClient.cs: Add a null-check.
10475
10476 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
10477
10478         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
10479         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
10480         so we can provide an implementation that returns the current width
10481         and preferred height.  Allows anchor = right to work with TextBox 2.0.
10482         [Fixes bug #82233]
10483
10484 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10485
10486         * ListView.cs: Add support for navigating items in Groups mode, by
10487         creating a big matrix containing all rows and cols of all groups. When
10488         are in other mode than Details, pressing Up should have a similar
10489         behaviour as that one of Down (moving to the next available column if
10490         current one doesn't have an item in the requested row). Also, don't
10491         proceed to use groups if ShowGroups is false.
10492         * ListViewGroup.cs: Add an internal int field to store the starting
10493         row of the group (used by the big matrix used for navigating the
10494         ListView).
10495         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
10496         false.
10497
10498 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
10499
10500         * ToolStripDropDown.cs: When we do Show, start with the 
10501         DefaultDropDownDirection, but if our popup menu is going to off-screen,
10502         modify the direction to keep it on screen.  [Fixes bug #82210]
10503
10504 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
10505
10506         * FileDialog.cs: Accept any FilterIndex value, and store it
10507         unmodified. When FilterIndex is less than 1, or greater than number
10508         of filters, then default to first filter. Only add filter extension to
10509         file if user did not specifiy an extension. When type of dialog is
10510         OpenFileDialog and DefaultExt is set, then only use filter extension
10511         if: CheckFileExists is true and no file wih the default extension
10512         exists, or CheckFileExists is false, and user specified file does not
10513         exist. When CheckFileExists is true, then add first extension of 
10514         selected filter that matches existing file. Perform checks for
10515         existing file, overwrite and create after extension has been added to
10516         file name. When CheckFileExists is true and type is SaveFileDialog,
10517         then only consider first filter extension if DefaultExt is set.
10518         When CheckFileExists is true, then ignore DefaultExt if file with that
10519         extension does not exist. Also perform check for existing file when
10520         type is SaveFileDialog. Changed some field to constants.
10521
10522 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10523
10524         * ListView.cs: Take into account the region used by header
10525         control when doing the vertical scroll (this way we invalidate
10526         the precise area, and don't get any dirty one).
10527
10528 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
10529
10530         * FileDialog.cs: Check for valid filterIndex on button open/save. 
10531         Fixes #82184.
10532
10533 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10534
10535         * ListView.cs: Update some layout calculations in details view
10536         and clean the code in a pair of assignations.
10537
10538 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10539
10540         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
10541         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
10542         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
10543         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
10544
10545 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10546
10547         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
10548         performance of thread-safe Graphic methods.  (Thanks rolf!)
10549
10550 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10551
10552         * ListView.cs: When doing the layout calculations, don't calculate
10553         scroll bars before handle is created. This is unnecessary and also
10554         calculating them before handle creation item causes a number of random
10555         bugs (which begin to appear after Chris' big patch for handle creation
10556         fixes). 
10557
10558 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10559
10560         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
10561         for things that don't have a Graphics object.  Currently, things just use
10562         the static Hwnd.bmp_g which is not thread safe.
10563
10564 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10565
10566         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
10567           dialog. Fixes #82187.
10568
10569 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10570
10571         * DataGridViewElement.cs: Initialize state.
10572         * DataGridView.cs: Forward a few Mouse events to cells. Add
10573           GetRowInternal and GetCellInternal that doesn't unshare rows.
10574           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
10575           don't use the index, but look it up. Add
10576           DataGridViewControlCollection.RemoveInternal to remove controls
10577           that Remove won't remove (scrollbars, edit control).
10578         * DataGridViewColumn.cs: Initialize State correctly.
10579         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
10580           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
10581           implementing this.
10582         * DataGridViewRowCollection.cs: Implemented shared rows.
10583         * DataGridViewRow.cs: Throw exceptions as MS do.
10584         * DataGridViewCell.cs: A few properties are implemented by a
10585           Get<Property> method, so move implementation there and remove the
10586           NIEX in the method. Add a bunch of OnXInternal that DataGridView
10587           calls when necessary.
10588         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
10589           complicates matters.
10590         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
10591           unshare any rows.
10592
10593 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
10594
10595         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
10596         the children controls.  Instead, we will just set up the proper docking for the
10597         children controls so we don't have to worry about it.  [Fixes bug #82188]
10598
10599 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
10600
10601         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
10602         canceling and correct Before/AfterLabelEdit properties as layed out in bug
10603         81847.  [Fixes bug #81847]
10604
10605 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
10606
10607         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
10608         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
10609         an explicit size based on the design-time size of the text.  Since our fonts
10610         may not match this explicit size, we tend to cut off the ends of people's labels.
10611
10612 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
10613
10614         * Menu.cs: Add some missing methods to MenuItemCollection.
10615
10616 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10617
10618         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
10619         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
10620         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
10621         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
10622         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
10623         * DataGridViewElement.cs: State defaults to Visible.
10624         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
10625         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
10626
10627 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10628
10629         * Control.cs: Minor 1.1 corcompare fix.
10630
10631 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10632
10633         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
10634         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
10635
10636 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10637
10638         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
10639           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
10640           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
10641           DataGridViewSelectedColumnCollection.cs,
10642           DataGridViewSelectedRowCollection.cs: Corcompare work.
10643
10644 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10645
10646         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
10647         it is autoset by VS2005 designer and the effect is barely noticeable.
10648
10649 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10650
10651         * TreeView.cs: Implement HitTest.
10652
10653 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10654
10655         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
10656           manually adding and removing the control from the Controls
10657           collecftion.
10658         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
10659           EditingControlInternal property that tracks the editing control.
10660           Always keeping the scrollbars in the Controls collection, as MS
10661           testing confirms is the right behaviour.
10662
10663 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10664
10665         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
10666           according to MSDN and new test.
10667
10668 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10669
10670         * TreeNode.cs: Implement ToolTipText.
10671         * TreeView.cs: Implement tooltips, NodeMouse* events.
10672
10673 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10674
10675         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
10676
10677 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10678
10679         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
10680         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
10681
10682 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
10683
10684         * Control.cs, Form.cs, ContainerControl.cs,
10685         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
10686         for misc properties.
10687
10688 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10689
10690         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
10691         * TreeView.cs: Implement StateImageList.
10692
10693 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10694
10695         * Form.cs: Don't check if the current form is the active form before
10696           activating it. Fixes #81904.
10697
10698 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10699
10700         * Form.cs: Don't check if the current form is the active form before
10701           activating it. Fixes #81904.
10702
10703 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10704
10705         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
10706
10707 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10708
10709         * Form.cs: Don't try to position the form after loading if the form was
10710           disposed. Fixes #81969.
10711
10712 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10713
10714         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
10715           properties. Had to change ToolBar into ToolStrip, which required a
10716           few #ifs.
10717
10718 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10719
10720         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
10721           resized, fixes part of #79829 (vertical lines in toolbar).
10722           PropertyGrid: Refactored Populate* to something that's easier to
10723           follow at least for me, as well as splitting it up into several new
10724           methods, required to update only subitems when something has
10725           changed by a popup editor or listbox. Don't use events to check
10726           when any values are changed, since the events are unreliable (we're
10727           changing the objects the events are registered with, and if the
10728           event handling requires the objects to be immutable (objects stored
10729           in hashtables for instance), the events will never be raised).
10730         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
10731           everytime we change a value, since events are unreliable.
10732           DropDownButtonClicked: For the same reason don't compare objects to
10733           check if it has changed or not, it would require all objects to
10734           derive Equals. Fix dialog location on windows, MS is doing weird
10735           things when creating parented forms.
10736         * GridEntry.cs: Add a SelectedObject setter.
10737
10738 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
10739
10740         * TreeNode.cs: Add some corcompare attributes.
10741         * TreeNodeCollection.cs: Implement 2.0 stuffs.
10742         * TreeView.cs: Implement some 2.0 stuffs.
10743
10744 2007-07-18  Andreia Gaita  <avidigal@novell.com>
10745
10746         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
10747         for moma.
10748
10749 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
10750
10751         * ListBox.cs: Implement custom tab offsets.
10752
10753 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10754
10755         * ToolStripContentPanel.cs: Support System renderer.
10756         * ToolStripControlHost.cs: Set RightToLeft to default to No.
10757
10758 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10759
10760         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
10761
10762 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10763
10764         * CheckBox.cs: Chain TextAlign to base implementation instead of
10765         maintaining another one.
10766
10767 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10768
10769         * ButtonBase.cs: Fix an incorrect string constant.
10770
10771 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10772
10773         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
10774         of creating one for measuring strings.
10775
10776 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10777
10778         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
10779         Implement MaxItemSize.
10780
10781 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
10782
10783         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
10784         for DeviceContext.  Instead, use the static one available in Hwnd.
10785         Informal tests show this saves about 500k on formtest.exe.
10786
10787 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
10788
10789         * ContainerControl.cs: Implement 2.0 AutoScaling.
10790
10791 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10792
10793         * ComboBox.cs: Work around bug #82120 (bug in mcs).
10794
10795 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
10796
10797         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
10798         Darken the focus color.
10799
10800 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
10801
10802         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
10803         for the checkbox.
10804         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
10805         X, Y instead of a rect for drawing text.
10806         - For ControlPaint.DrawCheckBox, center the check a little better when the
10807         checkbox is odd width.  When drawing a flat checkbox, use a white background
10808         when state != inactive.
10809         [Fixes bugs #82097, 82100]
10810
10811 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
10812
10813         * ListControl.cs: When changing CurrencyManager, disconnect event
10814         handlers from previous one. Fixes bug #81771. Code formatting.
10815
10816 2007-07-15  Andreia Gaita <avidigal@novell.com>
10817
10818         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
10819         full preview invalidation from layout invalidation, and only invalidate
10820         the layout when setting zoom or other properties. Invalidation should
10821         always be done even when resetting properties with the same values as
10822         what is there. Fixes #81744 and #79830.
10823
10824 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10825
10826         * ListView.cs: Implement initial support for Groups. Split some of the
10827         LayoutIcons code to render a partial list of the items (needed by
10828         items contained in ListViewGroup instances). Let the
10829         ListViewItemsCollection.ListView property be modifiable (needed when
10830         using Groups, too).
10831         * ListViewGroup.cs: Use a Bounds property rather than a Location
10832         one. Also invalidate the bounds when they get changed.
10833         * ThemeWin32Classic.cs: When drawing items, also draw the group header
10834         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
10835         method as well.
10836
10837 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10838
10839         * ListView.cs: When space gets pressed and CheckBoxes is true, 
10840         don't invoke the Begin and EndUpdate methods. We are generating 
10841         a redraw of the entire control without need to do so.
10842
10843 2007-07-13  William Holmes <billholmes54@gmail.com> 
10844
10845         * Control.cs: Changing logic in FindFlatForward and 
10846           FindFlatBackward to handle multiple Controls with 
10847           the same TabIndex.  
10848           This fixes bug 81687.
10849
10850 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
10851
10852         * OSFeature.cs: Enable IsPresent.
10853
10854 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10855
10856         * Control.cs: Don't do anything in WmShowWindow if the control has been
10857           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
10858           control is created, put on a form, the control is disposed (the
10859           form is never shown), and then we get a MapNotify, triggering a
10860           WM_SHOWWINDOW.
10861         * Form.cs: Exclude the current form when sending Deactivate to all
10862           MdiChildren.
10863         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
10864           there was a race condition because assigning the handle raises
10865           events, we can get more messages, therefore trying to assign the
10866           handle again, which would fail if any of those event handlers
10867           closed/disposed the control.
10868
10869 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10870
10871         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
10872
10873 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
10874
10875         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
10876         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
10877
10878 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10879
10880         * DateTimePicker.cs: If there's no part format specifier, return an
10881           empty string.
10882
10883 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
10884
10885         * FlatButtonAppearance.cs: Throw NotSupportedException for a
10886         Transparent BorderColor.
10887
10888 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10889
10890         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
10891           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
10892           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
10893           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
10894           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
10895           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
10896           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
10897           Remove warnings.
10898         * X11Structs.cs: Remove warnings, add ToString implementations.
10899
10900 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10901
10902         * XplatUIX11.cs: Translate min/max size according to the actual min/max
10903           size, and not the current size. Fixes #81798.
10904
10905 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10906
10907         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
10908           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
10909           to the control yet).
10910
10911 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10912
10913         * PropertyGridTextBox.cs: Add a method that sends any forwarded
10914           mousedowns to the contained textbox.
10915         * X11Structs.cs: More ToString implementation.
10916         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
10917           #81791.
10918
10919 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10920
10921         * PropertyGridView.cs: Add a null-check, fixes a few tests.
10922
10923 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
10924
10925         * TableLayoutPanelCellPosition.cs: TypeConverter.
10926
10927 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10928
10929         [ Fixes #79761]
10930         
10931         * PropertyGridTextBox.cs: Propagate any color changes to all contained
10932           controls.
10933         * PropertyGridView.cs: A few color fixes.
10934
10935 2007-07-10  Jackson Harper  <jackson@ximian.com>
10936
10937         * TextControl.cs: Remove some old unused text formatting stuff.
10938
10939 2007-07-10  Jackson Harper  <jackson@ximian.com>
10940
10941         * TreeView.cs: Update full row select invalidation to match the
10942         newer DrawSelection... method.
10943         - Make sure to invalidate the entire width when selecting a new
10944         node, if we have full row selection enabled.
10945
10946 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10947
10948         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
10949           display of properties again.
10950
10951 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
10952
10953         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
10954         to existing collections.
10955
10956 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10957
10958         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
10959         that changed between 1.1 and 2.0.
10960
10961 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10962
10963         * PowerStatus.cs: Added.  This is just a data class, it is filled
10964         in by SystemInformation.
10965
10966 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10967
10968         * Message.cs: Add op_Equality and op_Inequality.
10969
10970 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10971
10972         * MenuStrip.cs: Finish corcompare work.
10973
10974 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10975
10976         * LinkArea.cs: Add op_Equality and op_Inequality.
10977
10978 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10979
10980         * Application.cs: Add MessageLoopCallback delegate.
10981
10982 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10983
10984         * ListBox.cs: First set of 2.0 stuffs.
10985
10986 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10987
10988         * Control.cs: Make an internal Height property we can override
10989         without messing up the public API.
10990         * ListBox.cs: Override HeightInternal to always return the size
10991         the user set.  [Fixes bug #80466]
10992
10993 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
10994
10995         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
10996         paint cell borders if we haven't calculated where they go yet.
10997         [Fixes bugs #82040 and #82041]
10998
10999 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11000
11001         * ListView.cs: In Details view, set the location of item_control
11002         in the (0,0) position (and the header_control is thus on the
11003         item_control). This way the Bounds of the Items are relative to the
11004         ListView control (before this, they had a Bounds value without the
11005         header_control offset, which wasn't matching .Net). Fixes #82004.
11006
11007 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11008
11009         * ListControl.cs: When DataSource is set to null, pass an empty
11010         array of object to SetItemsCore. This is done to clean the items
11011         in the ListContol children. Fixes #81788.
11012
11013 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11014
11015         * ListControl.cs: Add 2.0 stuffs.
11016
11017 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11018
11019         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
11020         Refresh is overkill for just about every repaint request.
11021
11022 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11023
11024         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
11025         so remove my custom Get method and fix the property getter.
11026
11027 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11028
11029         * Label.cs: DefaultMargin for 2.0.
11030
11031 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11032
11033         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
11034         reported issue where other controls with mnemonics would steal strokes
11035         from a selected ComboBox.
11036
11037 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11038
11039         * ScrollOrientation.cs: Make internal for 1.1.
11040         * ScrollEventArgs.cs: Add 2.0 stuffs.
11041
11042 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
11043
11044         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11045         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
11046         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
11047
11048 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11049
11050         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
11051
11052 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11053
11054         * ListView.cs: Implement the so-incredibly broken 2.0 
11055         VirtualItemsSelectionRangeChanged event.
11056
11057 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11058
11059         * ListView.cs: When enter is pressed and selection is non empty,
11060         an OnItemActivate event must be fired.
11061
11062 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11063
11064         * ListView.cs: Store the FocusedItem information as an
11065         int instead of a ListViewItem (needed by VirtualMode).
11066         Update the calls to SetFocusedItem to pass an index instead of
11067         an item.
11068         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
11069         the Focused state from the owner ListView. 
11070
11071 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11072
11073         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
11074         property. Also, invalidate previous focused item in the mentioned
11075         property (match .Net).
11076
11077 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11078
11079         * ListView.cs: Implement 2.0 FocusedItem property setter.
11080
11081 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11082
11083         * ListView.cs: Implement 2.0 TopItem property setter.
11084
11085 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
11086
11087         * StatusStrip.cs: The default renderer is System.
11088         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
11089         if the user specifies it.
11090         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
11091         if we are ManagerRenderMode.
11092         * ToolStripMenuItem.cs: Calculate our text color better.
11093         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
11094         from Professional to the base class based off working with the System renderer.
11095         * ToolStripSystemRenderer.cs: Added.
11096
11097 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11098
11099         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
11100
11101 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
11102
11103         * ToolTip.cs: Implement 2.0 Tag property.
11104
11105 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11106
11107         * ListView.cs: Implement 2.0 HitTest methods.
11108
11109 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11110
11111         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
11112         item is under the pointer or not (sugar). Also remove the TODO
11113         regarding to the cursor changes in OneClick activation.
11114         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
11115         the subitems use the parent's HotFont if UseItemStyleForSubItems is
11116         true; otherwise don't show the underline style.
11117
11118 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11119
11120         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
11121         the code to retrieve the item at position only one time. Also
11122         change cursor when Activation is ItemActivation.OneClick as well
11123         as invalidate the item if HotTracking is true (to show/hide the
11124         underline style). Add an internal HotItemIndex property to retrieve
11125         the current hot item's index.
11126         * ListViewItem.cs: Add an internal HotFont property to cache the
11127         font used when HotTracking is true and the pointer moves within the
11128         item's borders.
11129         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
11130         HotFont depending on the hot state of the item.
11131
11132 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11133
11134         * ListView.cs: Implement 2.0 HotTracking property.
11135
11136 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11137
11138         * ToolStripControlHost.cs: If our hosted control never got created,
11139         don't try to dispose it.  [Fixes bug #81909]
11140
11141 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11142
11143         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
11144
11145 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11146
11147         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
11148
11149 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11150
11151         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
11152         Details view.
11153         * DrawListViewColumnHeaderEventArgs.cs:
11154         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
11155         using the DrawText () methods.
11156
11157 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
11158
11159         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
11160         background which got erased in my changes yesterday.
11161
11162 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11163
11164         * ListViewItem.cs: Actually set bounds for subitems in Details view
11165         (2.0 feature).
11166         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
11167         can invoke from the owner draw routines if we need it. Also, add
11168         support for Owner draw in Details view.
11169
11170 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11171
11172         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
11173         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
11174         ShowImageMargin setting, properly align text in a ToolStripLabel
11175         hosted on a ToolStripDropDown.
11176
11177 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11178
11179         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
11180         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
11181
11182 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11183
11184         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
11185
11186 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11187
11188         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
11189         location to match ToolStripMenuItems.
11190
11191 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11192
11193         * DrawListViewColumnHeaderEventArgs.cs:
11194         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
11195         column headers in ListView. 
11196
11197 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
11198
11199         * UserControl.cs: Implement AutoSize.
11200
11201 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11202
11203         * DrawListViewItemEventArgs.cs:
11204         * ListView.cs:
11205         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
11206         ListView.
11207
11208 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
11209
11210         * ToolStripDropDownItemAccessibleObject.cs: Added.
11211         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
11212         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
11213         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
11214         ToolStripTextBox.cs: corcompare work.
11215
11216 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
11217
11218         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
11219         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
11220         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
11221                 corcompare.
11222
11223 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
11224
11225         * OSFeature.cs: Add IsPresent.
11226         * PrintPreviewControl.cs: Add RightToLeft.
11227         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
11228         * SplitterPanel.cs: Add AutoSizeMode.
11229
11230 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11231
11232         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
11233         * MdiClient.cs: Add 2.0 ScaleControl.
11234         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
11235         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
11236
11237 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11238
11239         * Form.cs: Implement some scaling methods, stub some RTL methods,
11240         corcompare work.
11241
11242 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11243
11244         * Control.cs: corcompare work.
11245         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
11246
11247 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11248
11249         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
11250         ControlPaint 2.0 stuffs.
11251
11252 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11253
11254         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
11255
11256 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11257
11258         * UpDownBase.cs: Add 2.0 stuffs.
11259
11260 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11261
11262         * NumericUpDown.cs: Add 2.0 stuffs.
11263
11264 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11265
11266         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
11267
11268 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11269
11270         * ErrorProvider.cs: Implement 2.0 stuffs.
11271
11272 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11273
11274         * DomainUpDown.cs: Implement 2.0 stuffs.
11275
11276 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11277
11278         * CheckedListBox.cs: Fix RefreshItems signature.
11279
11280 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11281
11282         * PictureBox.cs: Implement 2.0 stuffs.
11283
11284 2007-06-12  Andreia Gaita  <avidigal@novell.com>
11285         
11286         * TabControl.cs: Check if there are tabpages before checking
11287         the selected index - fix #81802 (font changes raise a ResizeTabs
11288         call on controls.add, which blew up nicely with no tabpages)
11289
11290 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11291
11292         * ListView.cs:
11293         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
11294
11295 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11296
11297         * ListView.cs:
11298         * ListViewItem.cs: In VirtualMode the selection information
11299         resides in the ListView, rather than in the Items. Also, throw
11300         InvalidOperationExceptions when VirtualMode is being used and
11301         CheckedItemCollection is accessed.
11302
11303 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11304
11305         * ComboBox.cs: Add ScaleControl.
11306
11307 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11308
11309         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
11310
11311 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11312
11313         * GroupBox.cs: Add 2.0 stuffs.
11314
11315 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11316
11317         * Panel.cs: Add autosize properties/event.
11318
11319 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
11320
11321         * Control.cs:
11322         - When we remove a control, remove it from the collection before performing the layout.
11323         - Setup an internal property for explicit_bounds.
11324         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
11325         - Perform a layout when we set a new AutoSizeMode.
11326
11327 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
11328
11329         * ScrollableControl.cs: Add 2.0 stuffs.
11330
11331 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11332
11333         * ScrollBar.cs: Add 2.0 stuffs.
11334
11335 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11336
11337         * Splitter.cs: Add 2.0 stuffs.
11338
11339 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11340
11341         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
11342         to have BindingContext simply use base implementation.
11343
11344 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11345
11346         * ColumnHeader.cs: corcompare fix.
11347
11348 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11349
11350         * Button.cs: corcompare fixes.
11351         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
11352
11353 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11354
11355         * Button.cs: Override GetPreferredSizeCore.
11356         * ButtonBase.cs: PerformLayout after changing properties that can affect
11357         AutoSize.  Simplify some mouse/keyboard code.
11358         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
11359         * MouseEventArgs.cs: Make Location internal for 1.1.
11360         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
11361         * Theme.cs: Add CalculateButtonAutoSize.
11362         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
11363
11364 2007-06-05  Miguel de Icaza  <miguel@novell.com>
11365
11366         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
11367
11368 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11369
11370         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
11371         since we can get different item instances every time we retrieve it.
11372
11373 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11374
11375         * ListView.cs: Work around for #81602, since an unkown an pretty
11376         infrequent condition appears only in some systems (old linux boxes, it
11377         seems).
11378
11379 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11380
11381         * Button.cs: Completely reformat and a little refactor to bring
11382         this closer to Mono circa 2007.
11383
11384 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11385
11386         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
11387         to be ButtonBase.Invalidate.
11388
11389 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11390
11391         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
11392
11393 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11394
11395         * ButtonBase.cs: Completely reformat and a little refactor to bring
11396         this closer to Mono circa 2007.
11397
11398 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
11399
11400         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
11401         values for autosize. Fixes #80137.
11402
11403 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11404
11405         * Control.cs: Don't perform layout when AutoSize changes.
11406         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
11407         directly when autosizing, use SetBounds with BoundsSpecified.None.
11408         Fixes unit tests my last commit broke.
11409
11410 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11411
11412         * Control.cs: Perform layout when AutoSize changes.
11413         * Form.cs: Implement AutoSizing.
11414
11415 2007-06-01  Chris Toshok  <toshok@ximian.com>
11416
11417         * DataGrid.cs: remove the XXX'ed check at the top of
11418         ProcessGridKey.  fixes #80464.
11419
11420 2007-06-01  Chris Toshok  <toshok@ximian.com>
11421
11422         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
11423         adding idempotent (add/remove in Edit()), and also make sure we
11424         don't add it until after we set the text, so it's not tripped in
11425         Edit().  Fixes unit test regression.
11426
11427 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11428
11429         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
11430         change is user explicit, not when the layout engine moves stuff.  Fixes
11431         anchoring to bottom and right.  [Fixes bug #81790]
11432
11433 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11434
11435         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
11436
11437 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11438
11439         * ContainerControl.cs: 
11440         Fire enter event for common ancestor if it is not a ContainerControl.
11441         Send focus to the active_control and not the 'value', the active 
11442         control might have been changed in one of the events fired.     
11443         Definitely fixes #80159.
11444
11445 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11446
11447         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
11448
11449 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11450
11451         * PropertyGrid.cs: Anchor the help description to the bottom of the
11452           help panel and refactor SelectGridItem into a
11453           SelectGridItemInternal that can be set to null (and update it to
11454           clear the help texts when it is set to null). Set root item to null
11455           when there's no SelectedObject. Fixes #80438.
11456         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
11457           when we're recalculating after a resize (only).
11458
11459 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11460
11461         * ListView.cs: Implement 2.0 RedrawItems method.
11462
11463 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11464
11465         * ListControl.cs: Disconnect PositionChanged and ItemChanged
11466         handlers from previous data manager when DataSource is set to
11467         null. Fixes #81771.
11468
11469 2007-05-31  Jackson Harper  <jackson@ximian.com>
11470
11471         * TextBoxBase.cs: These seem to be the correct values.
11472
11473 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
11474
11475         * FileDialog.cs: When close dialog with ok set filterindex using combobox
11476         value. Fixes #81784.
11477
11478 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
11479
11480         * Control.cs: Implement 2.0 scaling methods.
11481
11482 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11483
11484         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
11485           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
11486           corcompare issues.
11487
11488 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11489
11490         * ProgressBar.cs: Implemented missing 2.0 members.
11491
11492 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11493
11494         * Control.cs: Corcompare issues.
11495         * MessageBox.cs: Implemented missing 2.0 functions.
11496
11497 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11498
11499         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
11500           Implemented more 2.0 members.
11501
11502 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11503
11504         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
11505           null (strange, but it seems to happen when running unit tests).
11506
11507 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11508
11509         * ContainerControl.cs: Set active_control even earlier, before 
11510         firing any events, and undo it if validation returns false.
11511
11512 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11513
11514         * ContainerControl.cs: Raise Validation and Enter/Leave events
11515         even if there is no Form and set active_control earlier, just
11516         before firing Enter events (toshok's patches). Fixes #80647.
11517
11518 2007-05-30  Jackson Harper  <jackson@ximian.com>
11519
11520         * TextControl.cs: Redid the pageup/pagedown a little to simplify
11521         things and fix bug #81311.
11522
11523 2007-05-30  Jackson Harper  <jackson@ximian.com>
11524
11525         * X11Dnd.cs: Now that we have our own event loop, we need to
11526         cancel when we get a mouseup but it won't be accepted.
11527
11528 2007-05-30  Chris Toshok  <toshok@ximian.com>
11529
11530         * DataGrid.cs (set_CurrentCell): guard against negative
11531         column/row.
11532
11533         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
11534         array index syntax instead of looping over the property names.
11535
11536         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
11537         and set IsInEditOrNavigateMode to false there.
11538
11539 2007-05-30  Jackson Harper  <jackson@ximian.com>
11540
11541         * TreeView.cs: Make sure we don't get a bad visible order when
11542         setting to the top node.  Fixes some misc crashing in
11543         ControlInspector.
11544
11545 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11546
11547         * UserControl.cs: Add 2.0 AutoSizeMode
11548
11549 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11550
11551         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
11552
11553 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11554
11555         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
11556         lines. Fixes #80285. 
11557
11558 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11559
11560         * DataGridColumnStyle.cs: Add char trimming column header text format. 
11561
11562 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11563
11564         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
11565         Fixes #80147.
11566
11567 2007-05-29  Jackson Harper  <jackson@ximian.com>
11568
11569         * TreeNode.cs: Fix off by one on calculating whether or not a node
11570         is visible.
11571
11572 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
11573
11574         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
11575         * ScrollableControl.cs: Force an UpdateDistances when we move the
11576         scrollbars.
11577         [Fixes bug #80605]
11578
11579 2007-05-29  Andreia Gaita  <avidigal@novell.com>
11580
11581         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
11582         update the page setup screen.
11583
11584 2007-05-29  Andreia Gaita  <avidigal@novell.com>
11585
11586         * PageSetupDialog.cs: Fix landscape mode.
11587
11588 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11589
11590         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
11591         IconSizeHorizontalSpacing.
11592
11593 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11594
11595         * ListView.cs: The declaration of prev_tooltip_item should be inside
11596         a NET_2_0 conditional (avoid a warning).
11597
11598 2007-05-28  Andreia Gaita  <avidigal@novell.com>
11599
11600         * PageSetupDialog.cs: Implement PrintPreview control to display
11601         the preview thumbnail. Change unit conversion to use 
11602         PrinterUnitConvert methods.
11603         
11604         Note: there is a huge bug in ms.net where the default margins are 
11605         interpreted as centimeters (?), when in fact they are set in inches. When 
11606         loading the page setup dialog initially (ms.net), the default margins 
11607         are set to 1 inch, and the dialog shows them with value 10, when in fact 
11608         it should be 25 (properly converted). Our dialog doesn't have this bug.
11609         
11610         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
11611         RectangleF.
11612         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
11613
11614 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11615
11616         * ListView.cs:
11617         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
11618         items.
11619
11620 2007-05-28  Andreia Gaita  <avidigal@novell.com>
11621
11622         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
11623         an IntPtr on csc (it builds fine on mcs, could it be a compiler
11624         bug?), convert the ptr to Int32 first.
11625
11626 2007-05-28  Jackson Harper  <jackson@ximian.com>
11627
11628         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
11629         recieved, we will exit the dnd tracking loop.
11630
11631 2007-05-28  Jackson Harper  <jackson@ximian.com>
11632
11633         * X11Dnd.cs: Keep tracking until the xdnd finished event is
11634         recieved. TODO: I should probably stick a timer on the dropped
11635         event, and finish the drag if the XDND Finished event never shows
11636         (because some apps don't seem to send it).
11637
11638 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
11639
11640         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
11641         #81733.
11642
11643 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11644
11645         * MonthCalendar.cs: Only mark the keypresses we actually handle as
11646           handled.
11647
11648 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11649
11650         * MonthCalendar.cs: Set the size after initializing all the relevant
11651           variables. Fixes #81742.
11652
11653 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11654
11655         * KeyEventArgs.cs: Fix typo.
11656
11657 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
11658
11659         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
11660         to match MS. Fixed MinDate to only accept value less than or equal
11661         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
11662         Removed TODO's that are now verified by unit tests.
11663
11664 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
11665
11666         * TreeNodeCollection.cs: Minor corrections to exceptions to match
11667         MS.
11668
11669 2007-05-25  Jackson Harper  <jackson@ximian.com>
11670
11671         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
11672         it's own message loop.
11673         * XplatUIX11.cs: Remove some of the dnd hooks
11674
11675 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
11676
11677         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
11678         instead of MinimizedWindowSize.
11679
11680 2007-05-25  Jackson Harper  <jackson@ximian.com>
11681
11682         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
11683
11684 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11685
11686         * KeyEventArgs.cs: Added SuppressKeyPress.
11687         * Control.cs: Added support for SuppressKeyPress.
11688
11689 2007-05-24  Andreia Gaita  <avidigal@novell.com>
11690
11691         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
11692         problems with PieChart. suppress_validation should not be a counter,
11693         if there are several BeginInit calls, the first EndInit will 
11694         activate validation. Fix exceptions thrown by set_Value.
11695         * UpDownBase.cs: ValidateText only if it's the user editing it.
11696
11697 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11698
11699         * ListControl.cs: FilterItemOnProperty should return the filtered
11700         item proeprty even if DataSource is null. The same applies for
11701         GetItemText. Fixes #80427.
11702
11703 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11704
11705         * Control.cs: If a control doesn't have a parent when it's Dock is
11706         set, but it has children, it needs to do a layout.  Fixes some nested
11707         controls issues.  [Fixes bug #81199]
11708
11709 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11710
11711         * ComboBox.cs: If there are few items in the drop down list, make it
11712           the exact size the items need, no bigger. Fixes #81612.
11713
11714 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11715
11716         * Application.cs: When we have captured the keyboard for a menu,
11717         check for mouse down events in case we need to close the menu.
11718         * Control.cs, Form.cs: Remove mouse down checks for menus.
11719
11720 2007-05-24  Jackson Harper  <jackson@ximian.com>
11721
11722         * TextControl.cs: Handle tabs in non multiline mode a little
11723         differently.
11724
11725 2007-05-24  Jackson Harper  <jackson@ximian.com>
11726
11727         * TextControl.cs: We need to manually break apart tabbed text and
11728         move the tabs, since the system.drawing tabbing mechanism relies
11729         on tab stops.
11730         * TextBoxBase.cs: Move the caret properly when the user enters a
11731         tab.
11732
11733 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11734
11735         * ContainerControl.cs: Don't check CanSelect before calling
11736         ProcessMnemonic.
11737         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
11738         release a KeyboardActive on click if it's not ours.
11739
11740 2007-05-23  Andreia Gaita  <avidigal@novell.com>
11741
11742         * ColumnHeader.cs: Add TypeConverter
11743
11744 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11745
11746         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
11747
11748 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11749
11750         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
11751
11752 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11753
11754         * LinkLabel.cs: Implement public Padding property.
11755
11756 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11757
11758         * LinkLabel.cs: Implement public FlatStyle.
11759
11760 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
11761
11762         * Control.cs: Apply patch from George to call parent.PerformLayout
11763         when Visible is changed.  [Fixes bugs #81118, 81718]
11764
11765 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11766
11767         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
11768
11769 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11770
11771         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
11772
11773 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11774
11775         * ContextMenu.cs: Implement Collapse.
11776
11777 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
11778
11779         * ToolBarButton.cs: Implement Name.
11780
11781 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
11782
11783         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
11784         use current_item, it prevents some NRE. Fixes #81675.  
11785
11786 2007-05-22  Andreia Gaita  <avidigal@novell.com>
11787
11788         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
11789         without updating the text.
11790
11791 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
11792
11793         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
11794         without calling DeleteObject.  [Should fix bug #81709]
11795
11796 2007-05-22  Jackson Harper  <jackson@ximian.com>
11797
11798         * RichTextBox.cs: Set the line endings correctly, when flushing
11799         RTF text.
11800
11801 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
11802
11803         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
11804          {Width=0,Height=0}.
11805
11806 2007-05-22  Jackson Harper  <jackson@ximian.com>
11807
11808         * TreeView.cs: Setting top with a null node should set to the very
11809         top.
11810
11811 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11812
11813         * Form.cs: ShowDialog: destroy the handle when message loop is
11814           finished, matches MS behaviour. Refactor parts of WmClose into
11815           RaiseCloseEvents, that only raises events if they haven't already
11816           been raised. Fixes #81688 and #81521.
11817         * Application.cs: Don't call close on the form when exiting a modal
11818           loop, it will raise all the (Form)Closed/Closing events again if
11819           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
11820           which doesn'r raise any events it they have been raised before.
11821
11822 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
11823
11824         * Control.cs: Add OnPrint.
11825         * ToolStrip.cs: Add GetChildAtPoint.
11826         * ToolStripContainer.cs: Add OnRightToLeftChanged.
11827         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
11828
11829 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
11830
11831         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
11832
11833 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11834
11835         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
11836           isn't visible anymore. Fixes #81651.
11837
11838 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11839
11840         * Control.cs: WmShowWindow: Update children's z-order after setting
11841           their parent. SetParent may show the window, thereby corrupting
11842           z-order, since the window will be shown on top.
11843         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
11844           multiple (and redundant) WM_SHOWWINDOW messages.
11845         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
11846           event has already been raised.
11847         * Form.cs: Change is_changing_visible_state to a counter, since
11848           SetVisibleCore can be called recursively. CreateHandle: when
11849           creating mdi children, send (De)Activated events.
11850         * MdiClient.cs: Update use of is_changing_visible_state.
11851         * Application.cs: OnThreadException: Surround exception handling with
11852           try/finally to ensure we always reset the error-handling state
11853           before leaving.
11854
11855 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11856
11857         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
11858           (#81704).
11859
11860 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11861
11862         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
11863         SmallIcon views, now that we have a standarized horizontal spacing.
11864
11865         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
11866         4, just like the other views (Match .Net).
11867
11868 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
11869
11870         * Control.cs: Delay calculating anchor distances until we actually layout.
11871         Always query the WM for the actual size and location it put us at instead of
11872         only when we send negative values.
11873         [Fixes bugs #81694, 81695]
11874
11875 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11876
11877         * Application.cs: Avoid a possible stack overflow when trying to exit
11878           the application.
11879
11880 2007-05-19  Marek Safar  <marek.safar@gmail.com>
11881
11882         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
11883         enum value.
11884
11885 2007-05-19  Andreia Gaita  <avidigal@novell.com>
11886
11887         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
11888         * NumericUpDownAcceleration.cs, 
11889           NumericUpDownAccelerationCollection.cs: Added 2.0
11890           implementation.
11891
11892 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
11893
11894         * RichTextBox.cs: Recalculate the document after the ScrollBars
11895         property is changed. Fixes bug #81681.
11896
11897 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
11898
11899         * DataObject.cs: Implement 2.0 methods.
11900
11901 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11902
11903         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
11904         in the center of the checkbox, not in the left-top corner. 
11905         Fixes #80037.
11906
11907 2007-05-18  Jackson Harper  <jackson@ximian.com>
11908
11909         * RichTextBox.cs: Recalculate the document after the scrollbars
11910         property is changed.
11911         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
11912         81486.
11913
11914 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11915
11916         * CreateParams.cs: Make HasWindowManager marginally faster.
11917         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
11918           into Hwnd so that other drivers can use it as well.
11919         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
11920           the default location from Hwnd. Fixes MDI client windows always
11921           showing up at (0,0) in Windows (Win32 won't set the default
11922           location since the window styles aren't correct).
11923
11924 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
11925
11926         * TreeView.cs: Modified DoubleBuffered to just use the base
11927         implementation.
11928
11929 2007-05-18  Jackson Harper  <jackson@ximian.com>
11930
11931         * TreeView.cs: Set the top node to the last child node when
11932         expanding all
11933         - When we get focus, if there is no selected node, use the top
11934         node.
11935
11936 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
11937
11938         * KeysConverter.cs: Add CanConvertTo.
11939         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
11940         * LinkConverter.cs: Added.
11941
11942 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11943
11944         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
11945         it prevents error when file dont have write access. Fixes #81669 and #81667.  
11946
11947 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11948
11949         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
11950         button text. Fixes #79640.  
11951
11952 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11953
11954         * Control.cs: According to MSDN controls created in the designer theres 
11955         keyboard accelerators visible by default. So included check for design
11956         in ShowKeyboardCuesInternal.  
11957
11958 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11959
11960         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
11961         text. Fixes #81621.  
11962
11963 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11964
11965         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
11966         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
11967
11968 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
11969
11970         * Control.cs: Finish implementation of UI State using WmChangeUIState
11971         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
11972         in some controls to check for show_keyboard_cues to draw accell keys "_".  
11973
11974 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11975
11976         * ListBox.cs: When calculating the horizontal scrollbar
11977         in single column mode, don't use values less than 0 for
11978         Maximum. Fixes #81474.
11979
11980 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11981
11982         * ListBox.cs: Throw the some missing exceptions in
11983         ListBox.ObjectCollection methods.
11984
11985 2007-05-17  Jackson Harper  <jackson@ximian.com>
11986
11987         * TextBoxBase.cs: Recalculate the document when the word wrap
11988         value has changed. This fixes 81488.
11989
11990 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
11991
11992         * Clipboard.cs: Implement missing GetText overload.
11993
11994 2007-05-17  Chris Toshok  <toshok@ximian.com>
11995
11996         * Control.cs (CheckDataBindings): remove the binding_context arg
11997         to binding.Check.
11998
11999         * CurrencyManager.cs (OnItemChanged): fix this now that
12000         BindingManagerBase is fixed. also remove the comment telling where
12001         the fix should go.  We set transfering_data to true/false around
12002         the call to PushData to keep UpdateIsBinding from being called.
12003         (ListChangedHandler): remove the extra OnMetaDataChanged call for
12004         PropertyDescriptorAdded in the 1.1 case.  The extra call is
12005         actually generated by System.Data generating 2 metadata changed
12006         events of its own per column add.  The fix should go there.  Add a
12007         comment to that affect in our test's Assert.Ignore.
12008
12009         * BindingManagerBase.cs: Rework PullData and PushData slightly.
12010         we keep a boolean flag (transfering_data) that keeps us from
12011         calling UpdateIsBinding multiple times if we re-enter either of
12012         them.
12013
12014         * ControlBindingsCollection.cs (AddCore): remove the
12015         binding_context arg to binding.Check.
12016
12017         * Binding.cs (IsBinding): don't check if we're binding here, just
12018         return our cached value.  we update it in UpdateIsBinding.
12019         (Check): don't take the binding_context arg, we'll just use our
12020         control's.  Also, for some reason MS doesn't use the data member
12021         field when getting the bindingmanager for this binding.  it just
12022         uses the datasource.  Make this method callable multiple times,
12023         and only do the is_null_desc stuff if manager.Position != -1 (so
12024         we don't get an exception accessing manager.Current).
12025         (UpdateIsBinding): move the code from IsBinding here.
12026         (PositionChangedHandler): call Check here to we can initialize
12027         things that require a non- -1 position.
12028
12029 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12030
12031         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
12032         control.
12033
12034 2007-05-17  Andreia Gaita  <avidigal@novell.com>
12035
12036         * TabControl.cs: Add 2.0 methods and events, including
12037         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
12038         * TabPage.cs: Add 2.0 methods
12039
12040 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12041
12042         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
12043         keyboard_cues is properly handled by message method.  
12044
12045 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
12046
12047         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
12048
12049 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
12050
12051         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
12052
12053 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
12054
12055         * Control.cs: 
12056         - WmUpdateUIState added to handle state changes, it make call to
12057         OnChangeUICues event.
12058         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
12059         SystemInformation.
12060
12061 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
12062
12063         * ImageKeyConverter.cs: Added.
12064         * TreeViewImageKeyConverter.cs: Added.
12065
12066 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12067         
12068         * ToolTips.cs: Update Text if SetToolTip is called for a control
12069         already showing the tooltip, as well as restarting its timer; show
12070         tooltip if we are inside the control bounds by the time of calling
12071         SetToolTip. Inside ShowTooltip remove the check to not show the 
12072         tooltip again for the active control (it is allowed by .Net to 
12073         show the tooltip on the same control multiple times).
12074
12075 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12076
12077         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12078
12079 2007-05-16  Andreia Gaita <avidigal@novell.com> 
12080
12081         * ContainerControl.cs: only process tab key if there are no 
12082         modifier keys present, otherwise the control does the 
12083         tab processing, if it needs to. Fixes #81622
12084         * TabControl.cs: Fixes calculation for which tab to select on
12085         shift+ctrl+tab.
12086
12087 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12088
12089         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12090
12091 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
12092
12093         * Control.cs: Make IsInputCharInternal to allow controls to
12094         override it and still match MS API.
12095         * TextBoxBase.cs: Override IsInputCharInternal and always
12096         return true.
12097         [Fixes bug #81616]
12098
12099 2007-05-15  Jackson Harper  <jackson@ximian.com>
12100
12101         * TextBox.cs: Disable some of the menu options when using a
12102         readonly textbox.
12103
12104 2007-05-15  Jackson Harper  <jackson@ximian.com>
12105
12106         * TextBox.cs:
12107         * TextBoxBase.cs:
12108         * RichTextBox.cs: Some new 2.0 methods
12109
12110 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
12111
12112         * FileDialog.cs: On 1.0 profile, do not support multidotted 
12113         extensions.
12114
12115 2007-05-14  Jackson Harper  <jackson@ximian.com>
12116
12117         * TextBoxBase.cs: Implement some of the new 2.0 methods.
12118         * RichTextBox.cs: We need to override these methods on 2.0.
12119         * MaskedTextBox.cs: These are implemented now
12120         * TextControl.cs: This was off by one.
12121
12122 2007-05-14  Jackson Harper  <jackson@ximian.com>
12123
12124         * TextControl.cs: Because the line endings are including in the
12125         text, we don't need to add them in anymore.
12126
12127 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12128
12129         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
12130         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
12131
12132 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12133
12134         * ToolBar.cs: Adjust size to default size when button theres no text and
12135         image, it fixes remaining issues from #81524.
12136
12137 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12138
12139         * ToolBar.cs: 
12140         - When not flat call redraw to recalculate sizes on creare handle to match
12141         win32 behavior.
12142         - Revert 77220 because it causes some regressions in toobar
12143         button.
12144
12145 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12146
12147         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
12148           now actually enters a usable state.
12149
12150 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12151
12152         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
12153         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
12154         3 buttons.
12155
12156 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12157
12158         * ToolBar.cs: Save default_size on create handle to use later for buttons
12159         without text, needed to mimic win32 behavior.
12160
12161 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12162
12163         * ToolBar.cs: Fix button layour to best fit width or height according to
12164         vertical or not. Fixes #81524.
12165
12166 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
12167
12168         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
12169         toolbar size info because different styles theres different sizes.
12170         Fixes #81522.
12171
12172 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12173
12174         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
12175         if we are using checkboxes, checked is true, and we have less
12176         than two images in StateImageList; for the 1.1 in the same scenario
12177         draw the first image if we have at least one image in StateImageList.
12178         Fixes part of #81191.
12179
12180 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12181
12182         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
12183         the owner's Items collection on merge.
12184
12185 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12186
12187         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
12188         * ToolStripItemCollection.cs: Lots of fixes to when events get called
12189         and parent/owner gets changed based on gert's unit tests.
12190
12191 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12192
12193         * MaskedTextBox.cs: Started implementing parts of it.
12194
12195 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12196
12197         * ListView.cs: When clicking the checkbox on the items
12198         take into account the double clicks even if we have only
12199         one image in StateImageList (only for 1.0/1.1). Also 
12200         generate an extra change of checked state when we receive
12201         the second click on checkbox (match .Net behaviour). 
12202         Fixes part of #81191.
12203
12204 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
12205
12206         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
12207
12208 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12209
12210         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
12211         even if OnLoad is overriden and base.OnLoad is not called.
12212         [Fixes bug #81582]
12213
12214 2007-05-10  Andreia Gaita  <avidigal@novell.com>
12215
12216         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
12217         shame. (I blame my ever-persisting and annoying cold)
12218
12219 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12220
12221         * ListView.cs: Don't eat navigation keys.  Let them flow through to
12222         KeyDown/KeyPress routines.  [Fixes bug #81569]
12223
12224 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12225
12226         * ListView.cs: When handling keys for selecting the item based off
12227         keyboard input, do not consider keys pressed with Alt or Control.  Also,
12228         correctly handle keys when the Shift key is down. [Fixes bug #81578]
12229
12230 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12231
12232         * Control.cs: When using UseWaitCursor, we have to store the requested
12233         Cursor to use when UseWaitCursor is turned off.
12234
12235 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12236
12237         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
12238         to false.
12239         * Application.cs: Use PreProcessControlMessage instead of
12240         PreProcessMessage.
12241         * PreProcessControlMessage.cs: Make internal for 1.1.
12242
12243 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12244
12245         * Control.cs: Add InternalContains focus property, which hast the same
12246         functionality of ContainsFocus, but also including implicit controls.
12247         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
12248         since we need to know if the focus is contained in our implicit
12249         ItemControl when calculating Layout. Fixes part of #80888.
12250
12251 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
12252
12253         * ToolTip.cs: Remove center form string alignment as it must be align to
12254         left.
12255
12256 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
12257
12258         * ToolStripItemCollection.cs: Set the new item's parent and owner
12259         in Insert like we do in Add.  [Fixes bug #81568]
12260
12261 2007-05-08  Jackson Harper  <jackson@ximian.com>
12262
12263         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
12264         - Off by one error in SetTop
12265         - Disable DoubeBuffering
12266         
12267 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12268
12269         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
12270           control as much as necessary in order to make it entirely visible,
12271           instead of centering the control in the container (matches MS
12272           behaviour). CalculateCanvasSize: we need to take the current scroll
12273           position into account when calculating the maximum canvas,
12274           otherwise the following scenario will fail: resize so that the
12275           scrollbars appear, use the scrollbars to scroll, resize again
12276           smaller, and now the canvas size is too small. Recalculate: when
12277           showing scrollbars make sure they start off at 0, and try to scroll
12278           the active control into view. Fixes #79540. HandleScrollBar: don't
12279           scroll anywhere if the scrollbar isn't visible.
12280
12281 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12282
12283         * ListView.cs: When focus changed, call Layout/Invalidate
12284         in the focused item to update the selected state (should show
12285         entire label when ListView is focused, and a part of it if is not).
12286         * ListViewItem.cs: When doing layout for LargeIcon, take into account
12287         for displaying the entire label not only the Focused state of the
12288         item, but also the Focused state of the ListView (match .Net
12289         behaviour).
12290
12291 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12292
12293         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
12294         Implement UseWaitCursor. 
12295
12296 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12297         Applying contributed patch from Sergey Volk.
12298
12299         * Clipboard.cs: Implement SetDataObject retry logic and new overload
12300         of SetDataObject.
12301         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
12302
12303 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12304
12305         * Control.cs: Implement DrawToBitmap.
12306
12307 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12308         Applying contributed patch from Stefan Noack.
12309         
12310         * Control.cs: Add [Get|Set]AutoSizeMode.
12311
12312 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12313
12314         * MdiClient.cs: Unmerge menus when the last child is closed.
12315
12316 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12317
12318         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
12319         * ToolStripManager.cs: Call Merge on DropDowns.
12320         [Fixes bug #81477]
12321
12322 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12323
12324         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
12325           uints.
12326         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
12327           visibility. We can't create forms visible, since we have to set the
12328           owner before making the form visible (otherwise Win32 will do
12329           strange things with task bar icons). The problem is that we set the
12330           internal is_visible to true before creating the control, so
12331           is_changing_visible_state is the only way of determining if we're
12332           in the process of creating the form due to setting Visible=true -
12333           this works because SetVisibleCore explicitly makes the form
12334           visibile afterwards anyways. Fixes #80775.
12335
12336 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12337
12338         * ThemeWin32Classic.cs: When drawing ListViewItems,
12339         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
12340         or LargeIcon _and_ item is not focused (match .Net behaviour).
12341
12342 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
12343
12344         * Control.cs, Form.cs: Fix some obsolete method warnings.
12345
12346 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
12347
12348         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
12349         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
12350
12351 2007-05-04  Andreia Gaita  <avidigal@novell.com>
12352
12353         * ContainerControl.cs: Fix active_control attribution when going
12354         up the parent chain so that the first parent container gets the control
12355         and the rest of the parent containers get the child containers (skips
12356         non-containers). Fixes #80729
12357
12358 2007-05-04  Randolph Chung  <tausq@debian.org>
12359
12360         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
12361         [Fixes bug #81499]
12362
12363 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12364
12365         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
12366           takes a size parameter, since the CreateParam's size isn't true for
12367           minimized forms. Fixes #81518,
12368
12369 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12370
12371         * Form.cs: Add OnDeactivateInternal.
12372         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
12373
12374 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12375
12376         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
12377           accessing the parent. Fixes #81508.
12378
12379 2007-05-03  Chris Toshok  <toshok@ximian.com>
12380
12381         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
12382         2.0 block, pass listposition + 1 to ChangeRecordState when a row
12383         was added before the current listposition.  Fixes the
12384         TestInsertRowBeforeCurrent unit test.
12385
12386 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
12387
12388         * Application.cs: Add RaiseIdle.
12389         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12390         XplatUIX11.cs: Implement RaiseIdle.
12391
12392 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
12393         corcompare work: N - Z
12394         * NotifyIcon.cs
12395         * ProgressBar.cs
12396         * RadionButton.cs
12397         * ScrollableControl.cs
12398         * SplitContainer.cs
12399         * SplitterPanel.cs
12400         * StatusBar.cs
12401         * SystemInformation.cs
12402         * TabControl.cs
12403         * TableLayoutControlCollection.cs
12404         * TableLayoutPanel.cs
12405         * TabPage.cs
12406         * ToolBar.cs
12407         * ToolBarButton.cs
12408         * ToolStrip.cs
12409         * ToolStripComboBox.cs
12410         * ToolStripContainer.cs
12411         * ToolStripContentPanel.cs
12412         * ToolStripDropDown.cs
12413         * ToolStripDropDownItem.cs
12414         * ToolStripDropDownMenu.cs
12415         * ToolStripItem.cs
12416         * ToolStripItemCollection.cs
12417         * ToolStripMenuItem.cs
12418         * ToolStripPanel.cs
12419         * ToolStripSplitButton.cs
12420         * ToolTip.cs
12421         * TreeNode.cs
12422         * TreeNodeCollection.cs
12423         * TreeNodeMouseHoverEventArgs.cs
12424         * TreeView.cs
12425
12426 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
12427
12428         * ContextMenu.cs: Add public method Show with alignment property to 2.0
12429         stuff. Thanks aatdark for the patch. 
12430
12431 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12432
12433         * GridItem.cs: Implement 2.0 Tag property.
12434
12435 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
12436
12437         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
12438         count instead of Nodes.Length.  [Fixes bug #81448]
12439
12440 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12441
12442         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
12443         [Fixes bug #81506]
12444
12445 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12446         corcompare work: A - M
12447         * BindingNavigator.cs
12448         * Button.cs
12449         * ButtonBase.cs
12450         * CheckBox.cs
12451         * Control.cs
12452         * FlowLayoutPanel.cs
12453         * Form.cs
12454         * Label.cs
12455         * LinkLabel.cs
12456         * ListView.cs
12457
12458 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12459
12460         * Application.cs: Give toolstrips a chance to process mnemonics.
12461         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
12462         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
12463         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
12464
12465 2007-05-01  Jackson Harper  <jackson@ximian.com>
12466
12467         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
12468         wider area too.
12469         - Don't set the BoundsSpecified
12470
12471 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12472
12473         * Application.cs: When using the toolstrip shortcut mechanism, allow the
12474         message to pass through to a regular control if it hosted by a toolstrip.
12475         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12476         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
12477
12478 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12479
12480         * TextRenderer.cs: Use the flags argument when using the MeasureString
12481         fallback algorithm.
12482
12483 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12484
12485         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
12486         the MDI menu item.  [Fixes bug #81483]
12487
12488 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
12489
12490         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
12491         string. When setting Name to null, use zero-length string instead.
12492
12493 2007-04-29  Andreia Gaita  <avidigal@novell.com>
12494
12495         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
12496         DeselectTab). Implement missing 2.0 TabPageCollection methods
12497         (Add, ContainsKey, RemoveByKey, IndexOfKey)
12498
12499 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
12500
12501         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
12502
12503 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
12504
12505         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
12506         Fixes bug #81479. Include details of exception when LoadFile fails.
12507
12508 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
12509
12510         * DrawListViewSubItemEventArgs.cs: Added missing setter
12511
12512 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12513
12514         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
12515         Hide methods (not complete). Implement missing 2.0 OnPopup event.
12516
12517 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12518
12519         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
12520         removed in ly last commit (it was breaking the Label edit feature).
12521
12522         * ThemeWin32Classic.cs: When drawing a ListViewItem use
12523         StringAlignment.Near for LineAlignment (match .Net).
12524
12525 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12526
12527         * TabControl.cs: Change SetTab so it adds the tabpage to the list
12528         of controls if it isn't already there - was blowing up when doing
12529         tabcontrol.TabPages[i]=new TabPage(). 
12530         SetTab now does a replace by removing the page at the index. 
12531         Add a new InsertTab method that inserts a page in a given index 
12532         instead of replacing. 
12533         Implements TabPageCollection.Insert(int, TabPage).
12534
12535 2007-04-27  Chris Toshok  <toshok@ximian.com>
12536
12537         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
12538         internal handler that can be invoked from our subclasses.)  Also,
12539         add a comment to PushData about how we need to fix it.
12540
12541         * CurrencyManager.cs: tons of changes here.  trying to get things
12542         matching the behavior of .net wrt event orders (ItemChanged,
12543         CurrentChanged, PositionChanged.)  I've implemented a private .net
12544         symbol (ChangeRecordState) that appears in stack traces because
12545         it's actually easier to do this than to effective inline all its
12546         various behaviors at every call site.
12547
12548         * RelatedPropertyManager.cs: guard against an exception here by
12549         not using parent.Current if the position is set to -1 (if the
12550         parent datasource is cleared, for instance).
12551
12552         * Binding.cs: don't parse data in PushData (this might be wrong,
12553         but it jives with MS's behavior.)  Also, don't call PushData when
12554         we get a CurrentChanged event.
12555
12556 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12557
12558         * WebBrowser.cs,
12559           WebBrowserBase.cs,
12560           WebBrowserSiteBase.cs,
12561           HtmlDocument.cs: Added stubbed out classes, no real implementations 
12562           yet.
12563
12564 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
12565
12566         * MainMenu.cs: In draw method without parameters call draw method with 
12567         PaintEvent, another one (just rect) adjust rectangle and we dont need it
12568         as Rect property is already adjusted. Fixes #80694.
12569
12570 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
12571
12572         * Application.cs: Need to handle keyboard menu deselection here.
12573         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
12574         navigation, allowing keyboard to work on X11.
12575         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
12576
12577 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
12578
12579         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
12580         menu bar. It fixes some drawing issues in menu bar.
12581
12582 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
12583
12584         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
12585         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
12586         when <alt> key is pressed.
12587
12588 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
12589
12590         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
12591         example just set visible to false and make this prevent from other problems.
12592         In SystrayAdd always remove pending expose. Fixes #81072.
12593
12594 2007-04-26  Marek Safar  <marek.safar@gmail.com>
12595
12596         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
12597         value is set.
12598
12599 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12600
12601         * ListView.cs: Added three missing 2.0 events and corresponding
12602         EventHandlers. Added the OwnerDraw property.
12603         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
12604
12605 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12606
12607         * DrawListViewItemEventArgs.cs
12608         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
12609
12610 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12611
12612         * TextControl.cs: Fixed typo in constructor
12613
12614 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
12615
12616         * Application.cs: Create a shortcut path so that currently selected
12617         MenuStrips can intercept keyboard events without having focus.
12618         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
12619         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
12620         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
12621         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
12622         generate WM_SYSCOMMAND message in X11 for other platforms.
12623         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
12624         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
12625         * ToolStripSplitButton.cs: Add DefaultItem property.
12626         
12627 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
12628
12629         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
12630         fixes some menu draw problem on Windows with border diferent from default
12631         it also fixes #81403.
12632
12633 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12634
12635         * Form.cs: Refactor WndProc into separate methods, just like Control is
12636           doing it.
12637
12638 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12639
12640         * Control.cs: set_Text: move the call to the driver into a seperate
12641           virtual method so that Form can override it.
12642         * MaskedTextBox.cs: Corcompare fixes.
12643         * Form.cs: Override UpdateWindowText and only update the styles if the
12644           form has been shown (fixes #81405).
12645
12646 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
12647
12648         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
12649         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
12650         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
12651         the form lost focus or another control was clicked.
12652
12653 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
12654
12655         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
12656         fixed.
12657
12658 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12659
12660         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
12661           DrawListViewItemEventHandler.cs,
12662           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
12663           Added.
12664         * X11Structs.cs: More ToString implementation.
12665
12666 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
12667
12668         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
12669         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
12670
12671 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12672
12673         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
12674           handle.
12675         * FormCollection.cs: Don't add a form if it's already in the
12676           collection.
12677         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
12678           according to behaviour and MSDN. The ownerWin32 is the active
12679           window at the moment when we call ShowDialog, not the context's
12680           main form (the context's main form may open another form that opens
12681           a form with ShowDialog, the win32 owner is the second form). Add
12682           and remove forms to the Application.OpenForms in other places to
12683           better match MS behaviour. Add an IsActive property that raises
12684           On(de)Activated only if the active state has changed (we were
12685           raising OnDeactivated before OnActivated while creating forms).
12686         * Application.cs: Refactor Enabling/Disabling of windows for modal
12687           dialog loops out to separate methods, and restore the thread
12688           context when we quit the method. Fixes #81407.
12689
12690 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12691
12692         * ListView.cs: In ItemControl.HandleClicks, also fire 
12693         2.0 MouseClick or MouseDoubleClick events on the parent,
12694         not only the Click/DoubleClick events.
12695
12696 2007-04-24  Andreia Gaita  <avidigal@novell.com>
12697
12698         * TableLayoutSettings.cs: 
12699         - Added a GetControls method and a support structure to help the 
12700         TypeConverter to enumerate the controls for     serialization. 
12701         - Added a new serialization constructor. 
12702         - Added a isSerialized flag initialized to true on the 
12703         serialization constructor so that the TableLayoutPanel.LayoutSettings 
12704         setter does not throw the designed NotSupportedOperation exception
12705         when the object is built through deserialization.
12706         - Implemented GetObjectData
12707         
12708         * TableLayoutPanel.cs: Added check on LayoutSettings.
12709
12710 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12711
12712         * ListView.cs: Report Click and DoubleClick events to the parent
12713         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
12714         from breaking the click count state when using dialog forms (Control
12715         reports the clicks in a similar fashion). In the previous behaviour
12716         the last WM_LBUTTONUP message in a  double click was sent to the
12717         ListView's form, instead of the ListView, which was breaking the click
12718         count for it. Fixes #80387.
12719
12720 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
12721
12722         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
12723
12724 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
12725
12726         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
12727         us from created dropdowns for menu items that do not have subitems.
12728         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
12729         Check HasDropDownItems before calling DropDown so a dropdown will not be
12730         created if it isn't needed.
12731
12732 2007-04-24  Jackson Harper  <jackson@ximian.com>
12733
12734         * TreeView.cs: Set the first node to the selected node when we get
12735         focus if there is no selected node.
12736
12737 2007-04-24  Andreia Gaita  <avidigal@novell.com>
12738
12739         * MimeIcon.cs: remove using blocks so that image streams are
12740         not disposed of. Fixes #80151
12741
12742 2007-04-24  Jackson Harper  <jackson@ximian.com>
12743
12744         * TextBoxBase.cs: Fixup the height of textboxes when the control
12745         is created.
12746
12747 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
12748
12749         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
12750         for each ToolStripItem when the parent's RightToLeftChanged is called.
12751
12752 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12753
12754         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
12755           Fixes #80163.
12756         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
12757           property, so that the setter can be overriden too.
12758         * TextBox.cs: Change GetContextMenuInternal() to use
12759           ContextMenuInternal.
12760
12761 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12762
12763         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12764           #81406.
12765
12766 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12767
12768         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12769           #81406.
12770
12771 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12772
12773         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
12774           avoid duplicate work. Mostily skeleton code, it's not working at
12775           all yet.
12776
12777 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
12778
12779         * NotifyIcon.cs : stub for MouseClick event
12780         * Application.cs: stub for SetUnhandledExceptionMode
12781
12782 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
12783
12784         * BindingNavigator.cs : Initial (partial) implementation
12785
12786 2007-04-23  Jackson Harper  <jackson@ximian.com>
12787
12788         * TreeView.cs: Do not create the treeview's handle when setting
12789         the scroll position.
12790         - ExpandAll needs to compute the scrollbars so it knows which
12791         position to set the bar too.
12792         * TreeNode.cs: 
12793         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
12794
12795 2007-04-23  Jackson Harper  <jackson@ximian.com>
12796
12797         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
12798         key. Fixes #81408.
12799
12800 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
12801
12802         * ToolStripItem.cs: Make GetImageSize internal.
12803         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
12804         need to draw an item.  Fixes a reported issue where images on menus
12805         that were not 16x16 were drawing incorrectly.
12806
12807 2007-04-21  Miguel de Icaza  <miguel@novell.com>
12808
12809         * Padding.cs: Use the converter, fixes the resgen2 issue with
12810         XMLNotePad. 
12811
12812 2007-04-21  Jackson Harper  <jackson@ximian.com>
12813
12814         * TreeView.cs: Dont try to unhighlight the selected node if there
12815         isn't a selected node.
12816
12817 2007-04-21  Jackson Harper  <jackson@ximian.com>
12818
12819         * UpDownBase.cs:
12820         * TextBoxBase.cs:
12821         * ListView.cs:
12822         * ListBox.cs:
12823         * TreeView.cs: Use the InternalBorderStyle property to set the
12824         initial border style, this forces the client rectangle to be sized
12825         correctly.
12826
12827 2007-04-20  Jackson Harper  <jackson@ximian.com>
12828
12829         * TreeView.cs: Simplify scrolling to the last node after expanding
12830         all.
12831         - Fix some off by ones with setting the bottom.
12832
12833 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
12834
12835         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
12836         that.  We were incorrectly doing it the other way around.  Also,
12837         update ClientSize if we change the BorderStyle before the control
12838         is created.
12839
12840 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
12841
12842         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12843         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12844         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
12845         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12846         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12847         Caption to CaptionHeight.
12848         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
12849         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
12850         and FixedFrameBorderSize to return value from current XplatUI driver.
12851         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
12852         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
12853         and FixedFrameBorderSize using win32 API. Renamed Caption to
12854         CaptionHeight.
12855         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
12856         * SystemInformation.cs: Fixed typo in BorderSize.
12857
12858 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
12859
12860         * XplatUI.cs: Added MenuAccessKeysUnderlined.
12861         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
12862         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
12863         returning false.
12864         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
12865         value from XplatUI driver.
12866         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
12867         SystemParametersInfo.
12868         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
12869         override.
12870         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
12871         returning false.
12872
12873 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12874
12875         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
12876
12877 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12878
12879         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
12880
12881 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
12882
12883         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
12884         MenuStrips that contain ToolStripSeparators.
12885
12886 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12887
12888         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
12889           DefineStdCursorBitmap.
12890         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
12891           has been created off a standard cursor. This is used to get a
12892           bitmap of the standard cursor when Draw or DrawStretched is called
12893           in order to draw the cursor.
12894         * X11Structs.cs: Added XcursorImage and XcursorImages.
12895         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
12896           DefineStdCursorBitmap.
12897         * Cursors.cs: Update all relevant creations of Cursor to use the new
12898           internal constructor.
12899
12900 2007-04-19  Jackson Harper  <jackson@ximian.com>
12901
12902         * TextBox.cs: Move the has_been_focused into the base control, so
12903         some of the text adding methods can manipulate it (probably time
12904         for a better name for this flag too).
12905         - Call a new version of selectall that doesn't scroll
12906         * TextBoxBase.cs: When we append text, if the document is empty,
12907         don't scroll.  If the document has text already, we scroll to the
12908         end of the appended text.
12909         - When the text is changed, we reset the has_been_focused, so the
12910         next time the control gets focused, all the text is selected.
12911
12912 2007-04-19  Jackson Harper  <jackson@ximian.com>
12913
12914         * TextControl.cs: Move the margins to the document, add a method
12915         so the margin sizes can be updated.
12916         * TextBoxBase.cs: When the border style is changed, update the
12917         border sizes.
12918
12919 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
12920
12921         * Control.cs: Respect DefaultPadding.
12922         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
12923         padding into account.
12924         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
12925
12926 2007-04-19  Jackson Harper  <jackson@ximian.com>
12927
12928         * TextControl.cs: Oops, we need to use the ClientRect not the
12929         bounds here.
12930
12931 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12932
12933         * ListView.cs: In ItemControl.ItemsMouseDown, take into
12934         account the double clicks when CheckBoxes are used and
12935         the pointer is inside the checkbox. Fixes part of #81191.
12936
12937 2007-04-18  Jackson Harper  <jackson@ximian.com>
12938
12939         * TextControl.cs: Pressing the end key shouldn't move the caret
12940         past the line ending.
12941         * TextBoxBase.cs: We can still delete if we are in the line
12942         ending and the combine will just kill the existing line ending.
12943
12944 2007-04-18  Jackson Harper  <jackson@ximian.com>
12945
12946         * TextControl.cs: We can't move lines, then invalidate their
12947         bounds, we need to get the old bounds and combine that with the
12948         new bounds.
12949         * TextBoxBase.cs: Before combining two lines for a delete, we need
12950         to invalidate the area of the old line, since that will be moved
12951         in the combine operation.
12952
12953 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
12954
12955         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
12956         with transparent background. Fixes #80482.
12957
12958 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
12959
12960         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
12961         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
12962         [Fixes bug #81391]
12963
12964 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12965
12966         * CreateParams.cs: Add a couple of helper methods and do a less string
12967           concatenation in ToString.
12968         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
12969           overload that takes a Control parameter, since this method may be
12970           called before a control is assigned to the hwnd (from
12971           CreateWindow), and update CreateWindow to use the new overload. In
12972           GetMenuOrigin subtract the title bar from the y position if the
12973           form has a window manager (since we're painting it and not X).
12974         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
12975           CreateParams to calculate the origin (since border sizes may vary).
12976           In ScreenToMenu only subtract the title height if we actually have
12977           a title.
12978         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
12979           mdi children never have menus of themselves.
12980         * InternalWindowManager.cs: Implement menu handling like form does.
12981           Added GetMenuOrigin to calculate the menu origin, can't use the
12982           CreateParams from the form like normally since it's lying.
12983         * Hwnd.cs: Implement GetBorderSize better (in the sense more
12984           windows-like) and add Inflate and comparison operators to the
12985           Borders type. When calculating MenuOrigin and it's a form with a
12986           window manager, use the window manager to calculate it.
12987
12988 2007-04-17  Chris Toshok  <toshok@ximian.com>
12989
12990         * Control.cs (CreateControl): turns out in 2.0 we don't need this
12991         OnBindingContextChanged thing here.  It's only generated from
12992         ContainerControl.OnCreateControl.  Fixes a newly written unit test
12993         - BindingTest.BindingContextChangedTest4.
12994         
12995 2007-04-17  Jackson Harper  <jackson@ximian.com>
12996
12997         * ScrollBar.cs: When setting values, make sure the current
12998         position stays within the new values range.
12999
13000 2007-04-17  Chris Toshok  <toshok@ximian.com>
13001
13002         * Control.cs (CreateControl): talk about a bizarre corner case.
13003         Don't emit OnBindingContextChanged here if we're a parentless
13004         control (i.e. if we're a form.).  Fixes
13005         BindingTest.BindingContextChangedTest2.
13006
13007 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
13008
13009         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
13010         from win32. Fixes #81255.
13011
13012 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
13013
13014         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
13015         already present in CalculateButtonTextAndImageLayout.
13016
13017 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13018
13019         * XplatUIX11.cs: When setting min/max size for a window we need to
13020           translate the coordinates to x coordinates. Create an overload of
13021           SetWindowMinMax that takes a CreateParams handling this, and change
13022           SetWMStyles to call this function (can't use Control.FromHandle in
13023           the SetWindowMinMax to get the control/CreateParams from the handle
13024           because the handle might not have been assigned to the control
13025           yet). Fixes #81371.
13026
13027 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13028
13029         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
13030         if StateImageList is non-null and it has less than two items (match MS
13031         behaviour). Also, in HandleNavKeys handle the Space key, calling
13032         the new ToggleItemsCheckState method, which tries to change the
13033         checked state of the selected items. Fixes part of #81191.
13034
13035 2007-04-16  Jackson Harper  <jackson@ximian.com>
13036
13037         * RichTextBox.cs: namespace cleanup.
13038
13039 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
13040
13041         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
13042
13043 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
13044
13045         [Fixes #79447]
13046         * Control.cs: Call invalidate in set_Region.
13047
13048         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
13049         it dont works here.
13050
13051 2007-04-16  Jackson Harper  <jackson@ximian.com>
13052
13053         * TextBoxBase.cs: When enter is pressed, we need to update all
13054         lines below the current.
13055
13056 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
13057
13058         * MdiClient.cs: Implement implicit menu merging for MDI
13059         children.  When a child form is active, if it has a menustrip
13060         and the parent form has a MainMenuStrip, automatically merge
13061         the menus.
13062
13063 2007-04-15  Andreia Gaita  <avidigal@novell.com>
13064
13065         * TabControl.cs: Refactored sizing methods to not repeat
13066         code all over the place. Tab bounds are now calculated
13067         as if alignment is top and single line, and only when 
13068         setting the bounds are the positions adjusted according
13069         to alignment. Replaced hardcoded positions, spacings and
13070         paddings by getting the values the ThemeEngine. 
13071         Fixes #79619.
13072         
13073         * Theme.cs: Change TabControl properties and methods so
13074         that all start with TabControl*. Added more properties
13075         to help remove hardcoded values on tabcontrol.
13076         Add CPDrawBorder3D declaration so the Theming classes
13077         can access it.
13078         
13079         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
13080
13081         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
13082         on the Theming namespace, and call the appropriate methods here.
13083         Change CPDrawBorder3D to public.
13084
13085 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13086
13087         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
13088         the control after firing the OnMouseUp event, instead of sending
13089         the message before the mentioned event. This is so we can match the
13090         MS behaviour. Fixes part of #80385.
13091
13092 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
13093
13094         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
13095         RightToLeft property.
13096
13097 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
13098
13099         * ToolStrip.cs: Add properties and internal methods to support merging.
13100         * ToolStripItem.cs: Add MergeAction and MergeIndex.
13101         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
13102         not trigger reparenting or layouts.
13103         * ToolStripManager.cs: Add Merge and RevertMerge methods.
13104         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
13105         is hosting the overflow menu.
13106
13107 2007-04-13  Jackson Harper  <jackson@ximian.com>
13108
13109         * TextControl.cs: Set the line ending correctly for the first
13110         inserted line.
13111
13112 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
13113
13114         * Theme.cs: Update GetMethod to get the new definition for 
13115         KnownColors.Update (and fix theme color updates).
13116
13117 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
13118
13119         * MessageBox.cs: Fix some test and button position.
13120
13121 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13122
13123         * Form.cs: Consider the implicit controls in
13124         GetRealChildAtPoint. We need it since this method
13125         is called on Form when handling the some messages in
13126         WndProc, and need to consider those implicit ones too.
13127         Fixes #80385.
13128
13129 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
13130
13131         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
13132         if there are no ShortcutKeys set.
13133         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
13134         set, use it when painting.
13135
13136 2007-04-12  Jackson Harper  <jackson@ximian.com>
13137
13138         * TextControl.cs: Fix some off-by-one issues in line duplication
13139         and insertion in the undo manager. Also, overwrite the first tag
13140         of a line on insert, if it is just a zero lengthed tag. This
13141         prevents us from getting an extra stranded tag at the beginning of
13142         the first line.
13143
13144 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
13145
13146         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
13147         to calculated proper size including when handle was not created yet.
13148
13149 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13150
13151         * MdiWindowManager.cs: When moving a form, allow the form to be moved
13152           when the mouse is outside of it's parent's client rectangle. Fixes
13153           #79982 (take 3, part 2).
13154
13155 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13156
13157         * X11Structs.cs: Add a few ToString() overrides.
13158         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
13159           the window location in a window-manager independent way. Reworked
13160           FrameExtents, it now actually works. Reworked AddConfigureNotify
13161           and ReparentNotify handling to use GetTopLevelWindowLocation
13162           instead of the earlier, more hacky solution. Reworked SetWMStyles,
13163           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
13164           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
13165           for all other windows (fixes #81281 part 1), a toolwindow is hidden
13166           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
13167           and generally refactored to do as few calculations as possible
13168           inside the lock.
13169
13170 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
13171
13172         * Theme.cs: Change "reflective-contract" between MWF and SD to 
13173         minimize # of calls, avoid Color serialization and avoid updating 
13174         every "known colors" each time a single one is updated.
13175
13176 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
13177
13178         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
13179         when not readonly and the text is explicitly set. Code style updates.
13180         * DataGridTableStyle.cs: Removed extra line.
13181         * DataGrid.cs: Code style updates. Removed extra whitespace.
13182         * DataGridColumnStyle.cs: Code style updates. Removed extra 
13183         whitespace.
13184
13185 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13186
13187         * XplatUIX11.cs: Added comment that "fixes" #80021.
13188
13189 2007-04-09  Jackson Harper  <jackson@ximian.com>
13190
13191         * TextControl.cs: We don't need this -1 on the line count anymore.
13192
13193 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
13194
13195         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
13196         entered value to underlying type, and convert it back to a string to
13197         apply formatting. Modified GetFormattedValue to use TypeConverter
13198         if available.
13199
13200 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
13201
13202         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
13203         Use SubItems property when we want to ensure there's at least one
13204         subitem. Modified SubItems property to ensure there's always at least
13205         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
13206         the NRE's reported by MS.
13207
13208 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
13209
13210         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
13211         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
13212         Spaces to tabs. Removed extra tabs.
13213
13214 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
13215
13216         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13217         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
13218
13219 2007-04-06  Jackson Harper  <jackson@ximian.com>
13220
13221         * TextBoxBase.cs: When a delete removes a line, recalculate all
13222         lines below that line (they need to get offsets setup correctly)
13223         and invalidate.
13224
13225 2007-04-05  Jackson Harper  <jackson@ximian.com>
13226
13227         * TextControl.cs: We need to invalidate across the width of the
13228         document when we are invalidating multiple lines.
13229         * TextBoxBase.cs: Don't delete into the line ending.
13230
13231 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13232
13233         * ListView.cs: Restore the check for the MouseHover event
13234         in ListView. It looks like the ListView fires more than one MouseHover
13235         event when HoverSelection is true  _only_ in weird-corner scenarios, but
13236         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
13237         event.
13238
13239 2007-04-05  Mike Kestner  <mkestner@novell.com>
13240
13241         * ListView.cs : raise MouseDown before updating selection.
13242         [Fixes #80373 tab 1&3]
13243
13244 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
13245
13246         * ToolStripRenderer.cs: Add static method to mirror image.
13247         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
13248         and RightToLeftAutoMirrorImage.
13249         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
13250
13251 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
13252
13253         * ToolStripSplitStackLayout.cs: Support Alignment property.
13254         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
13255
13256 2007-04-05  Jackson Harper  <jackson@ximian.com>
13257
13258         * TextControl.cs: Move around the line endings when crossing line
13259         boundaries.
13260         - When combining lines, strip the ending text off the first line.
13261
13262 2007-04-05  Jackson Harper  <jackson@ximian.com>
13263
13264         * TextControl.cs:
13265         * TextBoxBase.cs: Try to never move the cursor into the line
13266         ending.
13267         
13268 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13269
13270         * ToolStripItem.cs: Make sure we aren't firing mouse events when
13271         the item is disabled.  Also add a few missing methods.
13272
13273 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13274
13275         * ListView.cs: We don't need the MouseEnter/MouseLeave check
13276         to fire just one MouseHover event when HoverSelection is true, since
13277         .Net does fire more than one MouseHover event in that scenario. Also,
13278         fix the selection in HoverSelection, by invoking UpdateMultiSelect
13279         if MultiSelect is true, instead of only setting ListViewItem.Selected.
13280         Finally, we need to reset the Hover logic in MouseMove, even when we
13281         don't have a selected item.
13282
13283 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13284
13285         * ToolStrip.cs: Add several missing methods, properties, and events.
13286
13287 2007-04-04  Chris Toshok  <toshok@ximian.com>
13288
13289         * DataGridTextBoxColumn.cs: set the bounds of the text box to
13290         (0,0,0,0) in Commit, as MS does.
13291
13292         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
13293         make sure we set CurrentRow on a row header click *before* calling
13294         Select.  This moves the current cell (and the textbox) to the new
13295         row.  The call to Select then hides the textbox, giving us the
13296         correct behavior.  Fixes #80362.
13297
13298         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
13299         (ListChangedHandler): reorder the position/current changed events,
13300         and call UpdateIsBinding in the ItemAdded case.
13301
13302         * GridColumnStylesCollection.cs: add some columns events, one of
13303         which raises the CollectionChanged event.
13304
13305 2007-04-04  Jackson Harper  <jackson@ximian.com>
13306
13307         * TextControl.cs: When we delete multiple selection lines
13308         invalidate the selection area, don't need to do that for single
13309         lines because the final update view will handle it.
13310
13311 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13312
13313         * Control.cs: When we CreateControl, we need to also create all of the
13314         control's children.  The child's OnLoad must also fire before the parent's
13315         OnLoad.  Fixes the toolbox size in PDN.
13316
13317 2007-04-04  Jackson Harper  <jackson@ximian.com>
13318
13319         * TextBoxBase.cs: When the user presses enter, insert a line
13320         ending into the text. (Maybe this would be a good spot for
13321         Environment.NewLine).
13322         * TextControl.cs: Remove undo manager hack, line endings get
13323         inserted properly now.
13324         
13325 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
13326
13327         * MenuAPI.cs: 
13328         - Remove unneeded parameters in UpdateCursor.
13329         - Fix UpdateCursor to check if menu is active.
13330         - Call UpdateCursor when menu deactivate my click.
13331         [Fixes remaining issues from #80410]
13332
13333 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
13334
13335         * Control.cs: GetRealChildAtPoint method added, it make an
13336         recursive child control search for the point. 
13337
13338         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
13339         menu.
13340
13341         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
13342
13343 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
13344
13345         * Form.cs: Fix mouse position when send back mouse event after closes
13346         menu.
13347
13348 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
13349
13350         * Form.cs: Simplify the BUTTONDOWN for active tracker.
13351
13352 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
13353
13354         * Control.cs: Fix an issue where if a user resized a control inside
13355         a sizing method like OnResize, we would overwrite their explicit
13356         value.  Also, only call DefaultSize once in the constructor instead
13357         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
13358         nothing actually changed.
13359
13360 2007-04-03  Jackson Harper  <jackson@ximian.com>
13361
13362         * TextControl.cs: Don't attempt to copy text for lines with no
13363         text in them (technically this shouldn't happen, but we aren't
13364         always inserting line endings when we should be).
13365
13366 2007-04-03  Jackson Harper  <jackson@ximian.com>
13367
13368         * TextBoxBase.cs: Calculate the scrollbars before calculating the
13369         document, because this sets some of the document size properties
13370         that are needed.
13371
13372 2007-04-03  Jackson Harper  <jackson@ximian.com>
13373
13374         * TextBoxBase.cs: We need to calculate maximums even if this is
13375         not a multiline control, because the maxs are used for scrolling.
13376         - Display the caret after doing a page up/down, we need to
13377         manually display it because a proper CaretMoved event isn't
13378         triggered (this is because of the way the math is done to
13379         determine how far to scroll).
13380
13381 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
13382
13383         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
13384         (ToolBar was relying on SetBoundsCore to default the values sent 
13385         base off of BoundsSpecified.)
13386
13387 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13388
13389         * DateTimePicker.cs: Change Text so that when a null value or empty
13390           string is assigned to the test we always raise ValueChanged and
13391           TextChanged (earlier implementation would only raise ValueChanged
13392           if the current date value was different from DateTime.Now).
13393
13394 2007-04-03  Andreia Gaita <avidigal@novell.com> 
13395
13396         * ButtonBase: Call update after invalidation, fixes #80194
13397
13398 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13399
13400         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
13401           #79335.
13402
13403 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13404
13405         * XplatUIX11.cs: SetWMStyles: If the control is a form with
13406           FormBorderStyle = None, don't give the window any decorations.
13407           Fixes #81276.
13408
13409 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13410
13411         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13412         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
13413           to check for is a mix of several styles (such as WS_CAPTION for
13414           instance).
13415         * Control.cs: Don't paint an area bigger than the client area when
13416           painting the background colour. Add an internal GetCreateParams.
13417           Update calls to XplatUI.CalculateWindowRect due to API change.
13418         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
13419           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
13420           the size if it hasn't been handled by any windows. When creating
13421           and moving windows, X wants the location of the entire window, but
13422           the size of the client window, so add
13423           TranslateClientRectangleToXClientRectangle,
13424           TranslateWindowSizeToXWindowSIze and
13425           TranslatedXWindowSizeToWindowSize to cope with this, and call them
13426           before every window creation and move. Update CalculateWIndowRect
13427           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
13428           In AddConfigureNotify don't do anything if the hwnd is a zombie
13429           (fixes the BadWindow we were getting while running the tests),
13430           always calculate the offsets when it's a parentless window, not
13431           only when reparented, and translate the window size, since we're
13432           getting the client size of the whole window, excluding entire
13433           window.
13434         * Theme.cs: Added BorderSizableSize.
13435         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13436           anymore. Update calls to XplatUI.CalculateWindowRect due to API
13437           chang
13438         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
13439           change. Fake the window styles here instead of in XplatUIWin32 so
13440           that all back-ends get the same window styles (and it's Form that's
13441           deciding when to use wm, not the Win32 backend anyways)
13442         * Hwnd.cs: Completely reworked GetWindowRectangle and
13443           GetClientRectangle - they are now passed a CreateParams and they
13444           only use Style and ExStyle to determine the rectangles (they should
13445           now work just like Win32AdjustWindowRectEx - though quite a few
13446           special cases are probably missing). They should also be 100%
13447           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
13448           == rect), and all numbers (borders, menu sizes) are taken from the
13449           current theme. Added a GetBorders helper function that will return
13450           the borders for any given CreateParams (including captions and
13451           menus), and GetBorderSize that returns the given border size only.
13452         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13453           Hwnd.GetClientRectangle.
13454
13455 2007-04-02  Chris Toshok  <toshok@ximian.com>
13456
13457         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
13458         logic between the values we present to the user and the values
13459         which are stored in the column's property.  Also, don't call
13460         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
13461
13462 2007-04-02  Jackson Harper  <jackson@ximian.com>
13463
13464         * TextBoxBase.cs: Scroll faster!
13465
13466 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
13467
13468         * StatusStrip.cs: Layout fixes for PDN.
13469         * ToolStrip.cs: Set item's available to true, and placement to main when
13470         added.
13471         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
13472         changing in setter before doing any work, add InternalVisible.
13473         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
13474         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13475         infinite loop.
13476
13477 2007-04-02  Jackson Harper  <jackson@ximian.com>
13478
13479         * TextBox.cs: LBUTTON does not make the textbox select all of it's
13480         text on focus.
13481
13482 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13483
13484         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
13485           Makes ToolStripComboBoxes show up again.
13486
13487 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13488
13489         * ListView.cs: Add a hover_pending field in ListView
13490         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
13491         cycle (we are resetting the MouseHover logic in XplatUI
13492         to handle HoverSelection). Fixes #80429.
13493
13494 2007-04-02  Jackson Harper  <jackson@ximian.com>
13495
13496         * TextControl.cs: Make sure the attributes get set on the last
13497         tag.
13498         - Still have to do the end tag if we have stepped all the ways to
13499         the end.
13500
13501 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
13502
13503         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
13504         on an internal libgdiplus call when the information is already 
13505         available via the public API.
13506
13507 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13508
13509         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
13510           control is removed from a control collecftion.
13511         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
13512           Fixes FormPropertyTest (failed on rare occasions).
13513         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
13514           of Win32SetParent (when changing from no parent to a parent it
13515           might add the new parent's location in screen coordinates to this
13516           window's location).
13517         * Form.cs: Rework ChangingParent once again, now the handle is
13518           recreated whenever a FormWindowManager is added or removed (that is
13519           whenever a normal form is parented or abandoned). Also change
13520           CreateParams so that all non-toplevel windows always get the
13521           specified sice (StartupPosition is never considered for
13522           non-TopLevel forms).
13523         * ContainerControl.cs: Add ChildControlRemoved, the container control
13524           needs to be notified when a control is removed from it's
13525           collection, in the case the removed control is the active control.
13526
13527 2007-04-02  Jackson Harper  <jackson@ximian.com>
13528
13529         * RichTextBox.cs: Use the new methods for setting the font and
13530         color, these methods set the specified attribute without
13531         overriding the other attributes.
13532
13533 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
13534
13535         * ToolStripPanel.cs: Fixes for better layouts in PDN.
13536
13537 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
13538
13539         * TextBox.cs: Added internal ChangeBackColor method to special-case
13540         Color.Empty. Added check for invalid ScrollBars value.
13541         * TextBoxBase.cs: Added internal ChangeBackColor method.
13542         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
13543         internal ChangeBackColor method to special-case Color.Empty. Added
13544         check for invalid ScrollBars value.
13545
13546 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
13547
13548         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
13549
13550 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
13551
13552         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
13553         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
13554         [Based on submitted patch from Olivier Duff.]
13555
13556 2007-03-30  Jackson Harper  <jackson@ximian.com>
13557
13558         * TextBox.cs: Only select all on initial focus if the user has not
13559         specified a selection area.
13560
13561 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
13562
13563         * UserControl.cs: Override CreateParams.
13564
13565 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13566
13567         [ Fixes #80995 ]
13568
13569         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13570         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
13571           check for is a mix of several styles (such as WS_CAPTION for instance).
13572         * Control.cs: Don't paint an area bigger than the client area when painting
13573           the background colour. Add an internal GetCreateParams. Update calls to
13574           XplatUI.CalculateWindowRect due to API change.
13575         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
13576           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
13577           hasn't been handled by any windows. When creating and moving windows, X
13578           wants the location of the entire window, but the size of the client
13579           window, so add TranslateClientRectangleToXClientRectangle,
13580           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
13581           to cope with this, and call them before every window creation and move.
13582           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
13583           removing DeriveStyles). In AddConfigureNotify don't do anything if the
13584           hwnd is a zombie (fixes the BadWindow we were getting while running the
13585           tests), always calculate the offsets when it's a parentless window, not
13586           only when reparented, and translate the window size, since we're getting
13587           the client size of the whole window, excluding entire window.
13588         * Theme.cs: Added BorderSizableSize.
13589         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13590           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
13591         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
13592           Fake the window styles here instead of in XplatUIWin32 so that all
13593           back-ends get the same window styles (and it's Form that's deciding when
13594           to use wm, not the Win32 backend anyways)
13595         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
13596           they are now passed a CreateParams and they only use Style and ExStyle
13597           to determine the rectangles (they should now work just like
13598           Win32AdjustWindowRectEx - though quite a few special cases are probably
13599           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
13600           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
13601           sizes) are taken from the current theme. Added a GetBorders helper
13602           function that will return the borders for any given CreateParams
13603           (including captions and menus), and GetBorderSize that returns the given
13604           border size only.
13605         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13606           Hwnd.GetClientRectangle.
13607
13608 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13609
13610         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
13611           layout of the mdi children is handled by CreateParams. Fixes
13612           #79964,
13613
13614 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13615
13616         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
13617         processed.
13618
13619         * Form.cs: When active tracker mouse down is not processed, send event 
13620         back to control inside mouse position. [Fixes #81227]
13621
13622 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
13623
13624         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
13625         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
13626         stealing focus from the active form on Windows.  (Control will be made
13627         visible in ShowWindow.)
13628
13629 2007-03-29  Mike Kestner  <mkestner@novell.com>
13630
13631         * ImageList.cs : add internal Changed event.
13632         * ListView.cs : hook up to StateImageList.Changed to perform
13633         invalidations when the the state icon list changes. [Fixes #81191]
13634
13635 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
13636
13637         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
13638         to prevent tooltips from stealing focus from the active form on Windows.
13639
13640 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13641
13642         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
13643
13644         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
13645
13646 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13647
13648         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
13649         balloons.
13650
13651 2007-03-29  Jackson Harper  <jackson@ximian.com>
13652
13653         * TextControl.cs: When deleting text from non multiline textboxes,
13654         we need to update the entire document, because line offsets will
13655         be shifting.
13656
13657 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13658
13659         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
13660         added to theme, now we can create themes that uses diferent notify engines
13661         like notification-daemon from galago project or growl for Mac OS.
13662
13663 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13664
13665         * NotifyIcon.cs: Prevent Balloon to show in task bar.
13666
13667 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13668
13669         * XplatUIX11.cs: Prevent system to open more than one balloon.
13670
13671         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
13672         some compiler warning messages.
13673
13674 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13675
13676         [Fixes #79149]
13677
13678         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
13679
13680         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
13681         implemented, this methods is used by NotifyIcon.BalloonWindow class.
13682
13683         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
13684         systems.
13685
13686 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13687
13688         * ListViewItem.cs: Forgot to make Invalidate internal.
13689
13690 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13691
13692         * ListView.cs: Add a InvalidateSelection method to
13693         invalidate methods which are currently selected, and call
13694         it when setting FullRowSelect and HideSelection, instead of
13695         calling Redraw.
13696
13697 2007-03-28  Chris Toshok  <toshok@ximian.com>
13698
13699         * XplatUIX11.cs (UnmapWindow): reindent this block.
13700
13701         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
13702         the selection_start if we're moving the selection (that is, not
13703         extending it). Fixes bug #80461.
13704
13705 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13706
13707         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
13708         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
13709         create private ControlCollection.
13710
13711 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13712
13713         * Control.cs: We need to call OnVisibleChanged for our implicit
13714         children as well as our normal children.  Fixes scrollbars in
13715         comboboxes not showing up.
13716
13717 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13718
13719         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
13720         the check for IsHandleCreated first.  The check in CreateHandle is not
13721         good enough because CreateHandle can be overriden, and the override 
13722         should not be called if the handle is already created.
13723
13724 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13725
13726         * ToolStrip.cs: Remove MonoTODO for tooltips.
13727         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
13728         * ToolStripContainer.cs: Add custom ControlCollection class.
13729         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
13730         * ToolStripDropDown.cs: Add some missing properties/methods.
13731         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
13732         * ToolStripItem.cs: Remove MonoTODO for tooltips.
13733         * ToolStripManager.cs: Add IsShortcutDefined.
13734         * ToolStripOverflow.cs: Override LayoutEngine.
13735         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
13736         * ToolStripSeparator.cs: Add ImageKey.
13737
13738 2007-03-28  Jackson Harper  <jackson@ximian.com>
13739
13740         * TextControl.cs: If a char delete removes a line ending, we need
13741         to update the ending style.
13742         - Make sure the line ending calcs get called.
13743
13744 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13745
13746         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
13747           it was making the new code not work. Fixed a typo in the new code
13748           as well. Fixes #79826.
13749
13750 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13751
13752         * XplatUIWin32.cs:
13753         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
13754         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
13755         - SystrayBalloon method implemented.
13756         [Add support for notifyicon balloon on win32, #79149]
13757
13758 2007-03-27  Mike Kestner  <mkestner@novell.com>
13759
13760         * ThemeWin32Classic.cs : update StateImageList selection to mirror
13761         the ms behavior when only one image is added to the list.
13762         [Fixes #81191]
13763
13764 2007-03-27  Jackson Harper  <jackson@ximian.com>
13765
13766         * TextControl.cs: Improvements to non multiline line ending
13767         drawing/measuing.
13768
13769 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13770
13771         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
13772
13773 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13774
13775         * NotifyIcon.cs: 
13776         - Balloon message handling added.
13777         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
13778
13779         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
13780         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
13781         to SystrayBalloon to me like other Systray method, also a
13782         handle parameter added.
13783
13784 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13785
13786         * ListView.cs: Show scrollbars even when items.Count == 0
13787         but the columns Width is bigger than the ListView.Width.
13788         Also, when columns.Count == 0 set layout_wd and layout_ht
13789         to the ClientRectangle values, so we don't show any scrollbar
13790         in that case.
13791
13792 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13793
13794         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
13795
13796 2007-03-27  Jackson Harper  <jackson@ximian.com>
13797
13798         * RichTextBox.cs: The RTF library decodes the text properly for us
13799         now.
13800
13801 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13802
13803         * ListView.cs: Display HeaderControl even when columns.Count == 0.
13804         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
13805         ListView header (HeaderControl), instead of Control.BackColor.
13806
13807 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
13808
13809         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
13810         Fixes tab control issues where controls would not show up because they
13811         never received their OnVisibleChanged call.
13812
13813 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13814
13815         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
13816         BalloonTipShown).
13817
13818 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
13819
13820         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
13821         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
13822         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
13823         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
13824         the handle.  Fix WindowState by using the internal variable until we are 
13825         sure that we've been shown.
13826         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
13827         max or min.
13828         [Fixes bug #81198]
13829
13830 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13831
13832         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
13833           (at least borders). Fixes #79386 on Linux (with a small difference
13834           in behaviour: when trying to resize a caption-less window metacity
13835           shows the sysmenu. Resizing is still possible though).
13836         * XplatUIWin32.cs: When setting window styles send request an extra
13837           WM_NCCALCSIZE when it's a form without title (due to no text and no
13838           caption), since Win32 seems to calculate it wrong the first time we
13839           get the message, though the second time things work as they should.
13840         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
13841           newly reparented window might show up unparented. Update
13842           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
13843           there's no title text. Fixes #79386.
13844
13845 2007-03-27  Mike Kestner  <mkestner@novell.com>
13846
13847         * ListBox.cs : don't perform invalidations if the handle hasn't been
13848         created.  [Fixes #80753]
13849
13850 2007-03-27  Mike Kestner  <mkestner@novell.com>
13851
13852         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
13853         [Fixes #80428]
13854
13855 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
13856
13857         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
13858         needed to implement Balloon.
13859
13860 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13861
13862         * ListViewItem.cs: In the constructors that take
13863         an array of strings, don't use ListViewSubItemCollection.AddRange
13864         method to add items, since we need to have a different behaviour (in
13865         the constructors we add an item for each null string, opposed to
13866         the behaviour of AddRange, which adds nothing).
13867
13868 2007-03-26  Andreia Gaita  <avidigal@novell.com>
13869
13870         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
13871
13872 2007-03-26  Jackson Harper  <jackson@ximian.com>
13873
13874         * TextControl.cs: Draw and measure line endings when in non
13875         multiline mode.
13876         - When searching the text, count the end of the last line as a
13877         word boundary.
13878
13879 2007-03-26  Jackson Harper  <jackson@ximian.com>
13880
13881         * RichTextBox.cs: The selection_start and selection_end don't
13882         really track the correct tags for the selection. So we'll manually
13883         compute the correct tag here.
13884
13885 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13886
13887         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
13888           and Continuous styles. Fixes #79469.
13889
13890 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
13891
13892         * ToolStrip.cs: Implement Tooltips.
13893         * ToolStripItem.cs: Create internal method for determining tooltip.
13894
13895 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
13896
13897         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
13898
13899 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
13900
13901         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
13902         it prevents a problem thak keeps icon visible after application 
13903         closes on win32.
13904
13905 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
13906
13907         * NotifyIcon.cs: Balloon properties and methods created.
13908
13909         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
13910         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
13911
13912 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
13913
13914         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
13915
13916 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
13917
13918         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
13919         parameter indicates which aspects were explicit/user-set.
13920         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
13921
13922 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
13923
13924         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
13925         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
13926         SmallChange, and Value (2.0).
13927         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
13928
13929 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13930
13931         * ListView.cs: Always set item_control.Width in LayoutDetails
13932         if View is Details. Setting it later in CalculateScrollBars
13933         in a not-so-corner scenario (the sum of columns width is
13934         not bigger than the ListView width when handle is created, and then
13935         that sum gets bigger by increasing the width of the columns)
13936         causes a very weird recursion path (which shouldn't be happening,
13937         since header_control sets it in CalculateScrollBars too). This bug
13938         appeared after Chris' fixes for handle created issues, so probably
13939         it's related to some handle-creation time.
13940
13941 2007-03-23  Chris Toshok  <toshok@ximian.com>
13942
13943         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
13944         case where there's an add row, just so we don't end up in a case
13945         where it's not displayed (this happens when the row is partially
13946         obscured).  Fixes bug #79574.
13947
13948 2007-03-23  Jackson Harper  <jackson@ximian.com>
13949
13950         * TextControl.cs:
13951         * TextBoxBase.cs:
13952         * RichTextBox.cs: Preserve line endings in the lines text buffer,
13953         also added an enum that represents the line ending type. 
13954
13955 2007-03-23  Andreia Gaita  <avidigal@novell.com>
13956
13957         * NumericUpDown.cs: Fix logic so Text and Value properties are not
13958         messed with in every method call, but only from DownButton, 
13959         UpButton, UpdateEditText() and ValidateText. Fixes #80346
13960
13961 2007-03-23  Chris Toshok  <toshok@ximian.com>
13962
13963         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
13964         format objects if the format spec is "".  Fixes bug #80889.
13965
13966 2007-03-22  Miguel de Icaza  <miguel@novell.com>
13967
13968         * ToolStripPanel.cs (Join): added stubs to build PDN3
13969
13970         * Control.cs (AutoScrollOffset): Add.
13971
13972         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
13973         property, its only implemented for Win32, on X11 it defaults to
13974         some hardcoded value.
13975
13976         * ToolStripItem.cs (AllowDrop): Add property
13977
13978 2007-03-22  Mike Kestner  <mkestner@novell.com>
13979
13980         * ListView.cs : in FullRowSelect Details mode, only enable box
13981         selection if the user clicks over the "item" column outside of the
13982         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
13983
13984 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13985
13986         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
13987           handle is not created yet.
13988         * Form.cs: Select: Don't call CreateHandle if the handle is already
13989           created, avoids a stack overflow on Windows when we are recreating
13990           controls.
13991         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
13992           they are made visible, and override AfterTopMostControl to keep
13993           them on top when other controls are brought to front.
13994           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
13995           or force_*scroll_visible is true (old implementation always shows
13996           scrollbars when needed, no matter what auto_scroll was set to).
13997         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
13998           IsHandleCreated check.
13999
14000 2007-03-22  Andreia Gaita  <avidigal@novell.com>
14001
14002         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
14003         row or col separator.
14004         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
14005
14006 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14007
14008         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
14009
14010 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14011
14012         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
14013         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
14014         every time. Fixes #80410.
14015
14016 2007-03-22  Chris Toshok  <toshok@ximian.com>
14017
14018         * BindingSource.cs (AddNew): partially implement.
14019
14020         remove a couple of NotImplementedException's
14021         to get bug #81148 closed.
14022
14023 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14024
14025         [Fixes #80380]
14026         
14027         * Control.cs:
14028         - UpdateCursor method added to update the screen cursor.
14029         - GetAvailableCursor method added to return cursor for enabled tree,
14030         it searches for cursor on control and it's parent's for enabled control.
14031         - Call UpdateCursor method on setter of Cursor property.
14032         - On setter of Enabled call UpdateCursor when it is false, we need to
14033         change cursor to normal (or to this parent cursor) because cursor 
14034         setting theres no effect to disabled controls.
14035         - Some minor source changes to follow the coding style guidelines.
14036
14037         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
14038         controls.
14039
14040 2007-03-22  Chris Toshok  <toshok@ximian.com>
14041
14042         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
14043         generates.
14044
14045 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14046
14047         * XplatUIX11.cs: Implement default locations for forms.
14048         * Form.cs: Completely rework startup location for forms. Fixes #79964.
14049         * Hwnd.cs: Add previous_child_startup_location (to track the current
14050           startup location for any child forms of the current form) and
14051           previous_main_startup_location (to track the startup location for
14052           the current toplevel form).
14053
14054 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14055
14056         * Control.cs: Don't trigger a layout if an implicit control is added
14057         that isn't visible.  Also, don't notify the owner when an implicit control
14058         is added.  (Owners shouldn't even know about their implicit controls.)
14059
14060 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14061
14062         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
14063         to save some re-layouts.
14064
14065 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
14066
14067         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
14068         [Fixes #81203]
14069
14070 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14071
14072         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
14073         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
14074
14075 2007-03-21  Mike Kestner  <mkestner@novell.com>
14076
14077         * ListView.cs : disable selection update for non-left button clicks
14078         with mods and over selected items.  [Fixes #80524]
14079
14080 2007-03-20  Jackson Harper  <jackson@ximian.com>
14081
14082         * TextControl.cs:
14083         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
14084         \r\r\n, \n.
14085
14086 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14087
14088         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
14089           very probably a more complicated calculation there. Update the
14090           textbox' ForeColor and BackColor when the ComboBox' colors are
14091           changed. Change the border change in LayoutComboBox to only affect
14092           the textbox, not all the calculations there. Seems to fix most of
14093           #79436.
14094
14095 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14096
14097         * ComboBox.cs: Handle Home and End keys as well as all combinations of
14098           modifiers + navigation keys as input keys, enables advanced text
14099           selection in the combobox (like Shift+Left Arrow for instance).
14100           ComboTextBox now overrides Focused and returns whatever
14101           ComboBox.Focused returns, since it really should be focused
14102           whenever the ComboBox is. Fixes #80795. Also make the border around
14103           the text box one pixel bigger, as mentioned in #79436.
14104
14105 2007-03-20  Jackson Harper  <jackson@ximian.com>
14106
14107         * TreeView.cs: Don't offset the images, this was causing some
14108         artifacts when expanding/collapsing with images that were the
14109         exact height of the treenode.
14110
14111 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14112
14113         * TrackBar.cs: Query the theme for the correct value when the mouse
14114           moves and the thumb is pressed. 
14115         * Theme.cs: Added TrackBarValueFromMousePosition
14116         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
14117           implementation was updating the trackbar value when drawing, now
14118           the drawing methods only draw. Fixes #80900. Refactored the
14119           calculations out to TrackBarValueFromMousePosition and
14120           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
14121           according to the mouse position whenever it wants to. Changed the
14122           light coloured pen when drawing the thumb from ControlLight to
14123           ControlLightLight, because the ControlLight is the same colour as
14124           the background so the 3D effect is lost. 
14125
14126 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14127
14128         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
14129         defined. Fixes #80784.
14130
14131 2007-03-20  Marek Habersack  <mhabersack@novell.com>
14132
14133         * ContextMenuStrip.cs: align with the change introduced in
14134         revision 74664.
14135
14136 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14137
14138         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
14139         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
14140         in SetTopmost.
14141
14142 2007-03-19  Chris Toshok  <toshok@ximian.com>
14143
14144         * Control.cs (WmPaint): don't make use of the Handle property
14145         after an event is emitted, as the user could have closed the
14146         form/destroyed the control.  Store the Handle in a local variable
14147         and make use of that.  Fixes bug #80768.
14148
14149 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14150
14151         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
14152         behavior in X11 environments.
14153
14154 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14155
14156         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
14157         because on setter of topmost we dont call SetTopmost when handle is not
14158         created.
14159
14160 2007-03-20  Jackson Harper  <jackson@ximian.com>
14161
14162         * TextControl.cs: Need to use SelectionLength () not
14163         selection_length, since that var is reset to -1.
14164         - Draw the caret when we don't have focus.
14165         * TextBox.cs: The selectall actually doesn't occur until the first
14166         focus.
14167         * TextBoxBase.cs: Need to update the caret position after a
14168         selectall.
14169         
14170 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14171
14172         * ListView.cs: Enable scrolling when using Tile view.
14173
14174 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14175
14176         [Fixes #80902]
14177
14178         * XplatUIDriver.cs: Abstract SetOwner method created.
14179
14180         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
14181         must be implemented and was masked as todo.
14182
14183         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
14184         GWL_HWNDPARENT.
14185
14186         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
14187         cheking for null owner to remove transient. The SetTopmost will be change
14188         on a decond step.
14189
14190         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
14191         SetTopmost. Now owned forms will work properly in win32 and X11.
14192
14193 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14194
14195         * MdiWindowManager.cs: Update function name.
14196         * Form.cs: After closing a form MdiParent is always null.
14197         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
14198           better what it should do: necessary book-keeping when the form is
14199           closed, it should not close the form itself.
14200
14201 2007-03-19  Andreia Gaita  <avidigal@novell.com>
14202
14203         * ListViewItem.cs: Fix back and fore color. The subitems only
14204         use their own colors if they are set, otherwise use the listview's
14205         colors. Don't set default colors on constructor for subitem.
14206         Fixes #79315.
14207
14208 2007-03-19  Mike Kestner  <mkestner@novell.com>
14209
14210         * ListView.cs : make box selection for Details views with 
14211         FullRowSelect conform to MS behavior when clicking in the "item" 
14212         column and clicking outside the defined columns.
14213         [Fixes case 5-6 of #80374]
14214
14215 2007-03-19  Chris Toshok  <toshok@ximian.com>
14216
14217         * ScrollableControl.cs: create the controls from within the ctor,
14218         but don't actually add them until our handle is created.  this
14219         fixes a NRE possibility jpobst found (if you override OnLayout in
14220         a subclass, it's called before your ctor).  Also, add a
14221         IsHandleCreated guard to UpdateSizeGripVisibility as well.
14222
14223 2007-03-19  Jackson Harper  <jackson@ximian.com>
14224
14225         * TextBox.cs: Reduce the amount of invalidation we do.
14226         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
14227         some of them are true by default on MS.
14228         - Add some functions to reduce the amount of invalidates we do.
14229         * TextControl.cs: Less invalidation.
14230
14231 2007-03-19  Chris Toshok  <toshok@ximian.com>
14232
14233         [ Fixes #81773, and *seems* to fix #81553 as well ]
14234
14235         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
14236         AccumulateDestroyedHandles.  We need to do it *after* we send
14237         WM_DESTROY, as the user's code can access Control.Handle in
14238         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
14239         move the WM_DESTROY/zombie handling to before the call to
14240         XDestroyWindow.  For some reason without this ordering
14241         FormTest.RecreateHandle hangs.  This ordering is semantically
14242         equivalent, however, as XDestroyWindow is async anyway.
14243
14244 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
14245
14246         * RichTextBox.cs: Reset backcolor_set after setting default.
14247
14248 2007-03-19  Chris Toshok  <toshok@ximian.com>
14249
14250         * ScrollableControl.cs: the scroll position should not effect the
14251         canvas size.  commit patch from georgegiolfan@yahoo.com, which
14252         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
14253         
14254 2007-03-19  Chris Toshok  <toshok@ximian.com>
14255
14256         * ScrollableControl.cs: clean this up a bit.  create the
14257         scrollbars in the ctor and just show/hide them as needed.  Also,
14258         make hscroll_visible/vscroll_visible internal to Recalculate, and
14259         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
14260         everywhere else.  This seems to fix the scrollbars appearing
14261         beneath the content for me (i have *no* idea why that is,
14262         however.)
14263
14264 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
14265
14266         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
14267         some redundacy for stuff in Anchor and Dock that base will take care of.
14268         [Fixes #80762]
14269
14270 2007-03-19  Mike Kestner  <mkestner@novell.com>
14271
14272         * ListView.cs : make box selection for Details views without 
14273         FullRowSelect dependent on the text bounds, not item bounds.
14274         * ListViewItem.cs : add an internal property to obtain the TextBounds
14275         in Details view.  [Fixes case 1-4 of #80374]
14276
14277 2007-03-19  Andreia Gaita  <avidigal@novell.com>
14278
14279         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
14280         we're < 2.0. #78448 && #80316
14281
14282 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
14283
14284         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
14285         have the same style available as the previously selected one.  Also,
14286         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
14287
14288 2007-03-19  Jackson Harper  <jackson@ximian.com>
14289
14290         * TextControl.cs: Add an alignment property that all new lines
14291         will be given.
14292         - Make sure to use the align shift when calculating the line's X
14293         position.
14294         * TextBox.cs: Set the alignment on the document as well as on all
14295         the document lines.
14296
14297 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14298
14299         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
14300           throw if setting the parent of an mdichild that already has an
14301           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
14302           AssemblyProductAttribute in the assembly, use the type's namespace (as
14303           MS seems to do). CreateControl: don't create the handle if the control
14304           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
14305           create handle if the control is not a form. Change FocusInternal to
14306           virtual so that it can be overriden by Form.
14307         * TextBox.cs: Update call to FocusInternal.
14308         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
14309           form is not a toplevel form when it's a mdi child, so update is_toplevel
14310           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
14311           hasn't been created. Show (IWin32Window): Don't allow this overload for
14312           toplevel windows. CenterToParent/CenterToScreen/Select: create the
14313           handle as MS does. SetVisibleCore: if called on a MdiChild and the
14314           parent isn't visible yet, save the visibility and restore it when the
14315           parent is made visible.
14316         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
14317           methods, since the visibility of the scrollbars can be changed from
14318           several places, not only from AutoScroll.
14319           [Fixes #81179]
14320
14321 2007-03-19  Jackson Harper  <jackson@ximian.com>
14322
14323         * RichTextBox.cs: Enable shortcuts by default.
14324         * TextBoxBase.cs: Add conditional shortcuts.  
14325
14326 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
14327
14328         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
14329
14330 2007-03-19  Chris Toshok  <toshok@ximian.com>
14331
14332         [ Fixes bug #80604]
14333         
14334         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
14335         swallow the message we're waiting on, instead of delivering it, as
14336         this is only used for the WM_SHOWWINDOW raised from
14337         MapWindow/UnmapWindow, and the message needs to be generated
14338         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
14339         before doing the Map/Unmap.  Also make sure that the Hwnd is still
14340         alive after the message has been handled.
14341
14342         *before* the window is shown.
14343
14344         * Control.cs (CreateControl): guard a few more things inside the
14345         if (!is_created) block, as we might end up being called again -
14346         yay .net.
14347         (WmShowWindow): call CreateControl if we're showing the control.
14348
14349 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14350
14351         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
14352           controls without a handle if they have any parent with a handle. In
14353           Dispose add a check whether the handle is created or not before
14354           calling BeginInvoke, this removes the need of the extra disposing
14355           parameter (which was bogus anyway since it didn't prevent the
14356           invoke from happening, it only skipped the check for an existing
14357           handle, meaning that the invoke would call on an inexistent
14358           handle).
14359
14360 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
14361
14362         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
14363         appears in taskbar.
14364
14365 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
14366
14367         * MessageBox.cs:
14368         - Fixed a problem that dont show help button for messages with 3 buttons.
14369         - Refactory button size and position calculations, now dont use fixed 
14370         values, also fixed button sizes (#80043) and form's border space.
14371         - AddButton method created, now all other AddButton methods call this one.
14372         - Some other source code cosmetic changes.
14373
14374 2007-03-18  Jackson Harper  <jackson@ximian.com>
14375
14376         * RichTextBox.cs: Don't do this all fonts must match check if
14377         there is only one char selected.
14378
14379 2007-03-18  Jackson Harper  <jackson@ximian.com>
14380
14381         * TreeView.cs: ScrollWindow works properly now, so we don't need
14382         to screw around with the scroll area.  This fixes some artifacts
14383         when expanding and collapsing.
14384
14385 2007-03-18  Jackson Harper  <jackson@ximian.com>
14386
14387         * TextBoxBase.cs: Allow updating the selection position when the
14388         cursor is outside the textarea, but we have a capture.
14389         * TextControl.cs: A special case for when the cursor is outside
14390         the bounds of the TB.
14391         
14392 2007-03-18  Jackson Harper  <jackson@ximian.com>
14393
14394         * TextBoxBase.cs: Remove image pasting code for now.  There is no
14395         way to get an image on the clipboard right now anyways.
14396         * TextControl.cs:
14397         * RichTextBox.cs: Use the new RTF Picture class for pictures.
14398
14399 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
14400
14401         * MessageBox.cs:
14402         - Set window properties in constructor intead of on CreateParams.
14403         - Remove topmost from Window ExStyle.
14404         - Set ShowInTaskbar to false.
14405         - Set form border to FixedDialog.
14406         - Some cosmetic changes and remove unneeded comments.
14407         - It fixes itens 2,3 and 4 of bug #80043.
14408
14409 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
14410
14411         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
14412         none was explicitly set. Fixes part of bug #79949.
14413
14414 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
14415
14416         * ToolStripComboBox.cs: Add AutoComplete*.
14417
14418 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
14419
14420         * ToolStripComboBox.cs: Add FlatStyle.
14421
14422 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
14423
14424         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
14425         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
14426
14427 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14428
14429         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
14430           CheckBox.cs, RadioButton.cs, BindingSource.cs,
14431           DataGridColumnStyle.cs: Remove warnings.
14432
14433 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14434
14435         * Menu.cs: MergeMenu: Check menu argument for null before looping over
14436           it.
14437         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
14438           visibility of mdi child forms. FormSizeChangedHandler: update the
14439           maximized size if size has changed while maximized.
14440         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
14441           creating the handle.
14442         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
14443           avoid creating the handle if not created.
14444         * XplatUI.cs: Update debug output.
14445         * XplatUIStructs.cs: Added ToString's for a couple of structs.
14446
14447 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
14448
14449         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
14450         ProcessCmdKey().
14451         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
14452         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
14453         Implement keyboard shortcuts.
14454
14455 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
14456
14457         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
14458         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
14459         ColorDialog and all derived classes.
14460
14461 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
14462
14463         [ Fixes bug #79828 ]
14464
14465         * ToolBar.cs:
14466         - Rename ToolBarButtonInfor to ToolBarItem.
14467         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
14468         - Maintain an array of ToolBarItem, used instead of ToolBarButton
14469         collection to be able add same button more than one time on a toolbar.
14470         - Refactory all properties and methods to use ToolBarItem. 
14471
14472         * ToolBarButton.cs: 
14473         - Remove all propeties and methods that is now in ToolBarItem.
14474         - Rectangle propery now gets the rectangle from first ToolBarItem to
14475         mimic win32 behavior.
14476         - Size calculation and layout methods also removed.
14477
14478         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
14479         ToolBarItem instead of ToolBarButton to right drawing buttons when
14480         same button/separator was added more than one time to ToolBar.
14481
14482         * ThemeNice.cs: Same as above. 
14483
14484 2007-03-15  Andreia Gaita  <avidigal@novell.com>
14485
14486         * XplatUIX11.cs: Fire extra MouseMove events right after
14487         MouseDown and MouseUp, emulating win32's <censored> behaviour
14488         for apps that rely on it.
14489
14490 2007-03-15  Jackson Harper  <jackson@ximian.com>
14491
14492         * TextControl.cs:
14493         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
14494         it is drawn on the controls client window and there is no NC
14495         area.
14496         - Set the background color to gray on 2.0 when we are readonly.
14497
14498 2007-03-15  Chris Toshok  <toshok@ximian.com>
14499
14500         [ Fixes bug #81144 ]
14501         
14502         * XplatUIX11.cs: implement VirtualScreen independently of
14503         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
14504         property.
14505
14506 2007-03-15  Chris Toshok  <toshok@ximian.com>
14507
14508         * Hwnd.cs: add an internal field for the cached_window_state.
14509
14510         * XplatUIX11.cs: cache the window state, invalidating the cache
14511         (and thus re-querying the X server) only when we see an update to
14512         the _NET_WM_STATE property.
14513
14514 2007-03-15  Chris Toshok  <toshok@ximian.com>
14515
14516         * BindingSource.cs: get a lot of the unit tests working.
14517
14518 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
14519
14520         * Control.cs: Modify UpdateStyles to store distances when bounds >=
14521         0 instead of just bounds > 0.  [Fixes bug #80912]
14522
14523 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
14524
14525         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
14526         and methods.
14527
14528 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
14529         
14530         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
14531         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
14532         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
14533         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
14534
14535 2007-03-15  Chris Toshok  <toshok@ximian.com>
14536
14537         [ Fixes #81101 ]
14538         
14539         * Control.cs: add Ivan's fix for 81101, with a slight modification
14540         - you can set control.Target to null.
14541
14542 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
14543
14544         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
14545         HideDropDown, use Hide instead to prevent an NRE.
14546         [Fixes bug #81147]
14547
14548 2007-03-14  Jackson Harper  <jackson@ximian.com>
14549
14550         * TextBoxBase.cs: Mess with the creation stuff a little. We need
14551         to calculate the document before the handle is created, in some
14552         cases. (Actually just one case).
14553
14554 2007-03-14  Jackson Harper  <jackson@ximian.com>
14555
14556         * TextBoxBase.cs: Need to display the caret after letting the base
14557         wndproc handle the focus methods, because the caret display
14558         methods check the focus state.
14559         - Try to display the caret after updating it's position with SelectWord.
14560         - Don't need to do an immediate update on this recalc, since there
14561         will be an invalidate anyways.
14562
14563 2007-03-14  Jackson Harper  <jackson@ximian.com>
14564
14565         * TreeView.cs: Some workarounds so that we can match event order a
14566         little better.
14567
14568 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
14569
14570         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
14571         #80803. Avoid NullReferenceException when Control does not have
14572         parent. Fixed different blinkstyle issues. Only subscribe to Tick
14573         event a single time. Only draw error icon when control is created and
14574         visible. Fixes failing unit tests.
14575
14576 2007-03-14  Andreia Gaita  <avidigal@novell.com>
14577
14578         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
14579         Selecting events. Fire Leave and Enter events when changing tabs.
14580
14581 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
14582
14583         * TreeView.cs: Add TreeViewNodeSorter.
14584         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
14585
14586 2007-03-14  Chris Toshok  <toshok@ximian.com>
14587
14588         * Form.cs: go ahead and remove the RecreateHandles that jpobst
14589         removed earlier and I had him add back it.  It turns out metacity
14590         *does* in fact handle the MOTIF_WM_HINTS property changing, it
14591         just doesn't redraw the window titlebar until you resize the
14592         window.  This also means we aren't recreating the entire window
14593         hierarchy on X when you change this property.  And it looks better
14594         on windows, too.
14595
14596 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14597
14598         * ListViewItem.cs:
14599         * ListView.cs: Collecting selection information
14600         is now done in SelectedIndexCollection rather than in
14601         SelectedListViewItemCollection. This is done so we can
14602         have the selection information code in one single place
14603         (virtual mode selection information entirely depends on
14604         SelectedIndexCollection).
14605
14606 2007-03-13  Miguel de Icaza  <miguel@novell.com>
14607
14608         * ErrorProvider.cs: Add stubs for ISupportInitialize
14609
14610 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14611
14612         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
14613         in the right order with the right values, from the Checked property, 
14614         just as MS does (instead of triggering them from ListView).
14615
14616         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
14617
14618 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14619
14620         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
14621         the correct handler in OnItemCheck method (ItemCheckEventHandler 
14622         instead of EventHandler). This used to throw an InvalidCastException.
14623
14624 2007-03-13  Jackson Harper  <jackson@ximian.com>
14625
14626         * TextBoxBase.cs: Calculate the document before the handle is
14627         created, so there isn't an extra invalidate called.
14628
14629 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
14630
14631         * Form.cs: Don't set owner in ShowDialog until we are sure
14632         that we aren't going to throw an exception.  [Fixes bug #80773]
14633
14634 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
14635
14636         * TreeView.cs: Make it compile.
14637
14638 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14639
14640         * Control.cs: Another place we don't call SizeFromClientSize.
14641         * Form.cs: Another place we don't call SizeFromClientSize.
14642         [Fixes bug #81125]
14643
14644 2007-03-12  Jackson Harper  <jackson@ximian.com>
14645
14646         * TreeView.cs: Basically emulating some strangness here with
14647         exanding nodes and setting node positions when windows aren't
14648         created.
14649         - Also attempting to walk the node tree less than previously, and
14650         just use visible order calculations for determining offsets.
14651         - oops made scrolling backwards.
14652         * TreeNode.cs: We need to start nodes with a zero visible order,
14653         because the order calcs are based on the first nodes order.
14654
14655 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14656
14657         * Form.cs: Don't exit the program if RecreateHandle is called on
14658         the main form.
14659
14660 2007-03-12  Chris Toshok  <toshok@ximian.com>
14661
14662         * XEventQueue.cs: remove the use of PostQuitState.
14663
14664         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
14665         WM_QUIT message in GetMessage, return false (and if we're in the
14666         nested WaitForHwndMessage, repost the WM_QUIT message).
14667
14668 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14669
14670         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
14671         or the MaximizeBox properties.  [Part of bug #80640]
14672
14673 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
14674
14675         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
14676         no links.
14677
14678 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14679
14680         * ToolStripItem.cs: Fix some tests I broke by checking Visible
14681         instead of visible.
14682
14683 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
14684
14685         * FileDialog.cs: Use text of File name combobox to determine what
14686         files the user selected. Added tokenizer to parse the file names.
14687         Fixes bug #81123.
14688
14689 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14690
14691         * Control.cs: We can't call SizeFromClientSize in the constructor,
14692         but we still need to do the same work, so make an internal version.
14693         [Fixes bug #80621]
14694
14695 2007-03-12  Jackson Harper  <jackson@ximian.com>
14696
14697         * TreeView.cs:
14698         * TreeNode.cs:
14699         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
14700         IsExpanded.
14701
14702 2007-03-12  Jackson Harper  <jackson@ximian.com>
14703
14704         * TextBoxBase.cs: Now that the handles are being created a little
14705         later, we need to make sure that the document is recalculated when
14706         the handle is created.
14707
14708 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
14709
14710         * Theme.cs: GetLinkFont abstract method added.
14711         
14712         * LinkLabel.cs: 
14713         - Remove CalcTrimRectangle, no longer needed.
14714         - Factor also remove, position issues must be fixed in libgdiplus.
14715         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
14716         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
14717         care about font used to draw links.
14718         - Set TabStop to true when control is "Selectable", control is selectable
14719         when have one or more links. Fixes #80501 (test case is also added).
14720         - Set the LinkArea values after links change, LinkArea values must be
14721         based in first link position and size, a test case was created.
14722         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
14723         the attribute must be true LinkArea.Length > 0. The same was applied to
14724         TabStop.
14725         
14726         * ThemeWin32Classic.cs: 
14727         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
14728         in draw method.
14729         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
14730         color change.
14731         - Draw focus rectangle for every parts focused, including parts that 
14732         is on another line, its because regions returns various rectangles
14733         and not only one. Needed to mimic W32 look.
14734         - Uses Graphics.Clip to delimite region painted, it mean that now 
14735         complete text is passed to DrawString, with this we solve layout
14736         issues without create another text renderer.
14737         - Uses Region.Intersect to fix some flickers problems, now only needed
14738         parts will redrawed.
14739         - This changes fixes #79614 and some other unreported issues, on Linux 
14740         some layout problems still remain, the problem is under 
14741         MeasureCharacterRanges but it is an libgdiplus bug.
14742
14743 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
14744
14745         * TextBox.cs: Set for foreground color.
14746         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
14747         this is already done in Control.
14748
14749 2007-03-10  Jackson Harper  <jackson@ximian.com>
14750
14751         * TextBox.cs: Set the background color, but reset the
14752         backcolor_set flag which is just for the user setting the
14753         background color.
14754
14755 2007-03-09  Chris Toshok  <toshok@ximian.com>
14756
14757         * Control.cs: really remove the call to XplatUI.SetVisible from
14758         CreateHandle(), like I said I did when I merged the branch.
14759
14760         * BindingSource.cs: implement some more of this stuff.
14761
14762 2007-03-09  Jackson Harper  <jackson@ximian.com>
14763
14764         * TextBox.cs: Don't explicitly set our background colors.
14765         * TextControl.cs:
14766         * TextBoxBase.cs: Draw readonly text.
14767         - Need to invalidate when backcolor or readonly are changed.
14768         
14769 2007-03-09  Jackson Harper  <jackson@ximian.com>
14770
14771         * TextBoxBase.cs: Don't set the forecolor until the handle is
14772         created.
14773         - Do not raise OnPaint, and removed some old debug code.
14774
14775 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
14776
14777         * ScrollableControl.cs: Fix mouse wheel scrolling.
14778
14779 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
14780
14781         * Control.cs: Wire up MouseDoubleClick event.
14782
14783 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
14784
14785         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
14786         top or bottom.
14787         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
14788         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
14789         item is added.  This logic was moved to ToolStrip.OnItemAdded.
14790         [Fixes bug #81090]
14791
14792 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14793
14794         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
14795
14796 2007-03-08  Jackson Harper  <jackson@ximian.com>
14797
14798         * TreeView.cs: Show the correct image for selected node (this used
14799         to work, not sure how the code got deleted). Also implemented 2.0 feature
14800         SelectedImageKey.
14801
14802 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14803
14804         * ListView.cs:
14805         * ListViewItem.cs: Cache index in items when retrieving them
14806         in VirtualMode.
14807
14808 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
14809
14810         * ToolStripItem.cs: Don't return the explicit_size if we are using 
14811         AutoSize.  Fixes invalidation issue when user has explicitly set a
14812         size and has AutoSize = true.
14813
14814 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
14815
14816         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
14817
14818 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
14819
14820         * DataGridView.cs: Remove event handler from DataView when a
14821         DataTable is used as DataSource.
14822
14823 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
14824
14825         * Control.cs: Create internal setter for client_size to allow it to be
14826         set without triggering resizing code.
14827         * Form.cs: Calculate client_size in constructor, only change client_size
14828         in FormBorderStyle property if Handle has been created.
14829         [Fixes #80574, #80791]
14830
14831 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
14832
14833         * SystemInformation.cs: Add TerminalServerSession.
14834
14835 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
14836
14837         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
14838         TreeView code.
14839
14840 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
14841
14842         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
14843         Handle before we were supposed to.  Now checks ActivateOnShow property
14844         in Control.
14845         * Control.cs: Add internal ActivateOnShow property.
14846         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
14847         for ActivateOnShow.
14848         * Hwnd.cs Remove no longer needed no_activate field.
14849
14850 2007-03-07  Jackson Harper  <jackson@ximian.com>
14851
14852         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
14853         2.0 properties
14854         * DrawTreeNodeEventHandler.cs: Add
14855         * DrawTreeNodeEventArgs.cs: Correct default value.
14856         
14857 2007-03-07  Chris Toshok  <toshok@ximian.com>
14858
14859         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
14860         to be called before NativeWindow.WndProc.  Put the HwndCreating
14861         magic there to hook up our Hwnd's to handles.
14862
14863 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
14864
14865         * DataGridView.cs: Comment out debug code.
14866
14867 2007-03-07  Chris Toshok  <toshok@ximian.com>
14868
14869         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
14870         to make the rest of the world happy]
14871
14872         * Control.cs (CreateHandle): there's no need to call
14873         XplatUI.SetVisible here, it's effectively done by
14874         XplatUI.CreateWindow on X now, and always was on windows.
14875
14876         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
14877         shortcircuit out of the loop if we have a message loop running on
14878         this thread.
14879
14880         [Changelog from merge]
14881
14882         2007-03-05  Chris Toshok  <toshok@ximian.com>
14883
14884                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
14885                 causes handle creation.
14886
14887         2007-02-28  Chris Toshok  <toshok@ximian.com>
14888
14889                 * ApplicationContext.cs: Add a flag to make sure we only raise the
14890                 ThreadExit event once (ExitThreadCore can be indirectly called
14891                 from a few places.)  I don't like the additional flag, but it
14892                 makes the event ordering/count correct.
14893
14894                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
14895                 without locking the collection.  An enumerator doesn't give us any
14896                 protection from modification anyway.  Lock the thread hash and
14897                 replace the complicated enumerator loop with a foreach.
14898                 (Application.CloseForms): make internal so it can be called from
14899                 ApplicationContext.  This should probably be moved to MWFThread.
14900                 (Application.ExitThread): don't call MWFThread.Current.Exit()
14901                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
14902                 when the runloop exits (in response to WM_QUIT.)
14903                 (Application.RunLoop): add a comment (and check) for
14904                 context.MainForm being null after setting context.MainForm.Visible
14905                 = true.  This is because you're perfectly free to dispose of a
14906                 form in VisibilityChanged.  Chalk this up to another case where we
14907                 need to synchronously generate WM_ACTIVATE from Control.Show.
14908                 Also, add handling for WM_QUIT here so we'll exit the loop.
14909                 
14910                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
14911                 fact that we don't wait if we're only unmapping the whole_window
14912                 makes me a bit nervous, but it doesn't seem to cause any problems
14913                 yet.
14914
14915                 also, add a comment about the stupid, broken and wrong resetting
14916                 of PostQuitState to false in GetMessage().
14917
14918                 In PostQuitMessage, we need to add a WM_QUIT message to the
14919                 thread's queue.  We use the FosterParent to get the right
14920                 handle/hwnd/queue.
14921
14922                 Lastly, in SetVisible, we need to unmap both windows, since the
14923                 waiting only happens when we're unmapping the client window.  So
14924                 now, the *only* time we unmap just the whole_window is in the hack
14925                 for resizing a control to 0,0.
14926                 
14927         2007-02-21  Chris Toshok  <toshok@ximian.com>
14928
14929                 * Application.cs (CloseForms): rewrite this so that we don't
14930                 modify the list while we're traversing it.
14931
14932         2007-02-20  Chris Toshok  <toshok@ximian.com>
14933
14934                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
14935                 of OnHandleCreated.
14936                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
14937                 handle is created.  otherwise we'll create it here.
14938                 (VerticalScrollEvent): same here.
14939
14940                 * Application.cs (CloseForms): call Form.Dispose, don't post
14941                 WM_CLOSE_INTERNAL.
14942
14943                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
14944                 here. Application should Dispose() of the Form's.
14945
14946                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
14947                 WM_DESTROY as well.
14948                 (MapWindow,UnmapWindow): only actually do the waiting for
14949                 SHOWWINDOW if the control we're dealing with is a Form.
14950                 (CreateWindow): if the control isn't a form, SendMessage
14951                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
14952
14953                 * Control.cs (SetVisibleCore): always use is_visible here, not
14954                 value.  If we use value, we can end up re-setting something
14955                 visible if, for instance, you do Control.Hide() in a delegate
14956                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
14957
14958         2007-02-20  Chris Toshok  <toshok@ximian.com>
14959
14960                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
14961                 the message we need.  PeekMessage returning false should not be a
14962                 condition under which we exit the loop.
14963
14964         2007-02-15  Chris Toshok  <toshok@ximian.com>
14965
14966                 * Control.cs (Refresh): only refresh if we've got a handle and are
14967                 visible.
14968                 (CreateAccessibilityInstance): CreateControl() here.
14969                 (UpdateChildrenZOrder): complicate the code loop even more by
14970                 taking into account controls that haven't had their handle
14971                 created, and those that aren't visible.  But on the flip side,
14972                 simplify the code by splitting it into two loops.  one which
14973                 builds up the list of child controls we're interested in, and the
14974                 other that sets the z order of those children.
14975
14976         2007-02-14  Chris Toshok  <toshok@ximian.com>
14977
14978                 * Control.cs: Control.AccessibilityObject causes the control to be
14979                 created, not just the handle.
14980
14981         2007-02-14  Chris Toshok  <toshok@ximian.com>
14982
14983                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
14984                 problem on X where a window might have its handle created (and be
14985                 visible) while the window is unmapped.  calling XConfigureWindow
14986                 on an unmapped window is bad, and generates X errors.
14987
14988         2007-02-13  Chris Toshok  <toshok@ximian.com>
14989
14990                 * Control.cs (CreateHandle): don't loop over our children setting
14991                 their parent here.  do it when in WndProc when we're shown.
14992                 (UpdateChildrenZOrder): make this internal so we can call it from
14993                 ScrollableControl.
14994                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
14995                 creating its handle.  Also, remove the calls to PerformLayout from
14996                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
14997                 OnVisibleChanged only seems to be called directly here for the
14998                 toplevel control.  It's propagated down the window hierarchy by
14999                 calls to child.OnParentVisibleChanged.
15000                 (OnVisibleChanged): don't do layout here - it's done (oddly
15001                 enough, according to a glance at stack traces on ms.net..) in
15002                 ScrollableControl.
15003                 
15004                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
15005                 z order of our children before calling PerformLayout.
15006
15007         2007-02-12  Chris Toshok  <toshok@ximian.com>
15008
15009                 [big change, fixes #80020]
15010                 
15011                 * AccessibleObject.cs: we need to make owner internal again to fix
15012                 some of ControlAccessibleObject.
15013
15014                 * Control.cs: lots of changes here.  add support for WM_CREATE,
15015                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
15016                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
15017                 we create child controls.  leave the MonoTODO's for the
15018                 accessibility calls, but fix the exceptions so the tests pass.
15019
15020                 Add the InvalidOperationExceptions to Invoke methods, and remove a
15021                 couple of InvokeInternal methods we aren't using.
15022                 
15023                 Also, add a couple of CreateHandle calls in places where we know
15024                 the handles are being created but our code doesn't reference
15025                 .Handle.
15026
15027                 Make SetVisibleCore call OnVisibleChange if the handle isn't
15028                 created.  If the handle is created, we rely on XplatUI.SetVisible
15029                 generating the event synchronously.
15030                 
15031                 Lastly, make sure we don't use this.Handle inside CreateHandle,
15032                 because we can call back into client (and that code can dispose of
15033                 the control).
15034
15035                 * XplatUIStructs.cs: misc/cleanup.
15036
15037                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
15038                 although we don't populate the wParam properly.
15039                 (CreateWindow): generate WM_CREATE.
15040                 (MapWindow,UnmapWindow): make these calls synchronous, at great
15041                 performance expense (particularly in the unmap case), to match
15042                 win32 behavior.
15043
15044                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
15045                 to call it.
15046                 (set_MdiParent): don't recreate the handle unless it's been
15047                 created already.
15048                 
15049                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
15050                 it's created.
15051
15052                 * NativeWindow.cs: this is probably the weirdest part of the
15053                 patch.  We need a way to link up the window being created to the
15054                 WM_CREATE message.  Since we can only be creating one window at a
15055                 time on a given thread, we keep track of a per-thread reference so
15056                 we can dispatch it properly.  We also need to keep track of the
15057                 Hwnd currently being created so that the win32 backend doesn't
15058                 have problems.
15059                 
15060                 * XplatUIWin32.cs: a similar change to the one we made in
15061                 NativeWindow.cs.
15062
15063 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15064
15065         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
15066         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
15067         to draw the menu shortcut string.
15068
15069 2007-03-07  Jackson Harper  <jackson@ximian.com>
15070
15071         * TreeNode.cs: Add the 2.0 collapse method.
15072
15073 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15074
15075         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
15076
15077 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15078
15079         * DataGridView.cs: Change DataSource will clear column and row
15080         lists. Call Invalidate() to reflect DataSource change.
15081
15082 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15083
15084         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
15085         and a new row is added to it.
15086
15087 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15088
15089         * DataGridView.cs: Add columns when DataSource is en empty list but
15090         is a System.Data.DataView (from a System.Data.DataTable).
15091
15092 2007-03-06  Andreia Gaita  <avidigal@novell.com>
15093
15094         * Label.cs: Implement AutoEllipsis (2.0)
15095
15096 2007-03-06  Jackson Harper  <jackson@ximian.com>
15097
15098         * TreeView.cs: Implement 2.0 TopNode setter property.
15099         - Use a local var instead of the skipped_nodes field for computing
15100         how many nodes to skip.  Otherwise we won't scroll because the
15101         valuechanged handler checks if skipped_nodes is equal to the new
15102         value.
15103         - Implement 2.0 Sort method.
15104         - Add useless 2.0 DoubleBuffer property
15105         - Implement 2.0 LineColors property.  Lets you change the color of
15106         the lines in the tree. Terribly useful for creating non cohesive
15107         desktops.
15108         - Implement 2.0 image key feature.
15109
15110 2007-03-06  Jackson Harper  <jackson@ximian.com>
15111
15112         * TreeView.cs: We can't get the bounds of the nodes before raising
15113         the AfterSelect event, because that event could change the node's
15114         bounds (scrolling, font change, etc).
15115
15116 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15117
15118         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
15119         * Form.cs: Don't recreate handle when creating FormWindowManager, just
15120           update window styles. In CreateParams us VisibleInternal instead of
15121           VIsible to get the actual visible flag set for this form.
15122         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
15123           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
15124           handle the case when the form is already maximized, in which case
15125           it should be restored. Fixes #81043.
15126
15127 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15128
15129         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
15130
15131 2007-03-05  Jackson Harper  <jackson@ximian.com>
15132
15133         * TreeViewHitTestInfo.cs: implement.
15134
15135 2007-03-05  Jackson Harper  <jackson@ximian.com>
15136
15137         * InternalWindowManager.cs: class status fix.
15138
15139 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15140
15141         * InternalWindowManager.cs: All windows that have a parent
15142         are confined to their parent when they're being moved.
15143         Fixes #80822.
15144
15145 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
15146
15147         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
15148         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
15149
15150 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15151
15152         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
15153           buttons invisible before deciding which ones should be visible
15154           (fixes minimize/maximize buttons showing up in toolwindows). Remove
15155           an unused variable.
15156         * InternalWindowManager.cs: Remove warning.
15157
15158 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15159
15160         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
15161         to throw an InvalidOperationException is virtual mode is being used.
15162
15163 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
15164
15165         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
15166         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
15167         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
15168         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
15169         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
15170         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
15171
15172 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15173
15174         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
15175           driver.KeyboardDelay from XplatUI.KeyboardDelay 
15176         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
15177           (patch by Sergey Volk)
15178
15179 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15180
15181         * ToolWindowManager.cs: Added, contains logic for
15182           tool windows.
15183         * CreateParams.cs: Add a few helper methods and an
15184           internal variable to know which control the CreateParams belongs
15185           to.
15186         * Control.cs: Call Form.ChangingParent when the
15187           parent is about to be changed.
15188         * XplatUIX11.cs: DeriveStyles (): Set
15189           caption_height for all windows that have captions and are children.
15190           Update to use ToolWindowManager instead of InternalWindowManager
15191           for ToolWindows.
15192         * XplatUIWin32.cs: Set fake window styles for all
15193           windows that have window managers.
15194         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
15195           now duplicated for mdi windows when they are
15196           maximized, first for the buttons the window itself has, then for
15197           the buttons that appear in the menu bar. Makes things a little
15198           easier). Updated UpdateWindowDecorations, SetWindowState and the
15199           mouse eventhandlers accordingly.
15200         * Form.cs: Add ChangingParent (), contains the
15201           logic of what should happen when the parent changes. In MdiParent
15202           don't set things that ChangingParent () is doing. When handling
15203           WM_CLOSE, we can close the form if there are any other modal forms
15204           and the current form is a descendent of the modal form.
15205         * InternalWindowManager.cs: A lot of refactoring,
15206           the title buttons are now extracted to a separate container class
15207           that takes care of all button code (clicks, tooltips, etc). Moved
15208           Iconic|Maximized|Normal Bounds properties to this class from
15209           MdiWindowManager, so that the window state logic can succeed for
15210           other than mdi wm's. Implemented general window state change logic.
15211           Moved CreateButtons to ThemeWin32Classic, since the theme might
15212           override which buttons are available when as well as the exact
15213           location.
15214         * FormWindowManager.cs: Added, contains logic for
15215           normal forms.
15216         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
15217           which buttons go where (and if they are at all visible). 
15218           Removed special handling of maximized windows, since they aren't special. 
15219           In DrawManagedWindowDecorations don't try to draw the text if it is
15220           empty.
15221         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
15222           use whatever the wm gives us.
15223
15224 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
15225
15226         * ButtonBase.cs: Add 2.0 properties.
15227         * Button.cs: Override Draw for 2.0.
15228         * Control.cs: Add Entered and Selected properties.
15229         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
15230         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
15231         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
15232         buttons.
15233         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
15234
15235 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
15236
15237         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
15238
15239 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
15240
15241         * XplatUIWin32.cs: Register a new class with Windows each time we get
15242         a new ClassStyle.  [Fixes bugs #79432, #80817]
15243         * Controls.cs: Set the correct ClassStyle in CreateParams.
15244         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
15245
15246 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
15247
15248         * ListView.cs: Add fireEvent argument to ReorderColumn since the
15249         ColumnReordered event must not be signaled when modifying DisplayIndex
15250         of a ColumnHeader. Added internal ReorderColumns method which takes
15251         care of drawing, and updating the internal DisplayIndex of the
15252         ColumnHeader. Added AddColumn method which is invoked from
15253         ColumnHeaderCollection when adding or inserting columns, and which
15254         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
15255         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
15256         Recalculated dispay indices after removing a ColumnHeader.
15257         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
15258         match MS. Allows last display index to be returned after ListView
15259         is disposed. Update actual location of ColumnHeader when DisplayIndex
15260         is modified.
15261
15262 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
15263
15264         * LinkLabel.cs: Improve CalcTrimRectangle.
15265         
15266         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
15267
15268 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
15269
15270         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
15271         get rectangle as a result value.
15272
15273 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
15274
15275         * LinkLabel.cs: Theres some diferences between rectangle return from 
15276         MeasureCharacterRanges and the area used for DrawString to fix this 
15277         CalcMeasurementFactor method was created, it calcules the diferences
15278         to be use later to adjust rectangle in draw operations. Fixes #80473.
15279         
15280         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
15281         to adjust draw rectangle.
15282
15283 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
15284
15285         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
15286         text and some other changes to reduce and optimize source code.
15287
15288 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
15289
15290         * RadioButton.cs: Implement 2.0 event.
15291         * RelatedImageListAttribute.cs: Implement new class.
15292
15293 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
15294
15295         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
15296
15297 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
15298
15299         * CheckBox.cs: Implement 2.0 functionality.
15300
15301 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15302
15303         * ListView.cs: Refactor Add and AddRange methods of
15304         ListViewItemCollection, to not update the ListView
15305         everytime an item is added in AddRange. Also move the update
15306         code to a new CollectionChanged method, and call it
15307         from other methods that need it as well (this should also fix some
15308         bugs when Sorting is used).
15309
15310 2007-02-27  Jackson Harper  <jackson@ximian.com>
15311
15312         * TextControl.cs: Try to never let the caret stay in a non-text
15313         tag.
15314         * TextBoxBase.cs: Update the caret.
15315
15316 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
15317
15318         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
15319         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
15320         delete POINT structure, duplicate of one in XplatUIStructs.
15321         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
15322
15323 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
15324
15325         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
15326         edit box since otherwise the Label would immediately be set (even if
15327         the user did not modify the label). In OnKeyDown set Handled to true
15328         if Return or Escape was pressed. In ColumnHeaderCollection unlink
15329         columns that are to be removed. In ListViewItemCollection unlink items
15330         that are to be removed.
15331
15332 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
15333
15334         * TextRenderer.cs: If we set a GDI clip region, we need to clear
15335         it when we are done.  [Fixes bug #80949]
15336
15337 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15338
15339         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
15340
15341 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15342
15343         * ListView.cs: I forgot to commit the changes for ListView 
15344         in my previous patch.
15345
15346 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15347
15348         * Clipboard.cs: Partially implement an overload of SetDataObject.
15349         * Form.cs: Implement ShowWithoutActivation.
15350         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
15351
15352 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15353
15354         This is a first set of changes to make the Virtual mode works,
15355         by avoiding the retrieval of ListViewItem instances until
15356         draw time.
15357
15358         * ListView.cs: Store item position in the ListView instead of the
15359         ListViewItem, this way we don't request the Bounds property of
15360         ListViewItem inside the ListView calculations, as well as cache the item
15361         size in item_size field. Store indexes instead of ListViewItem
15362         instances in the matrix used by icon view. Add a ItemMatrixLocation
15363         struct to hold the row and col info of the matrix info.
15364
15365         * ListViewItem.cs: Don't store the location anymore, and only cache
15366         the rectangles for GetBounds. Use the ListView.GetItemLocation
15367         method to retrieve the actual location.
15368
15369 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15370
15371         * TextRenderer.cs: Add clipping support, thanks to George.
15372         [Fixes bug #80949]
15373
15374 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15375
15376         * ListViewItem.cs: Cancel label edit when item is removed from 
15377         ListView.
15378         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
15379         event before the edit textbox is displayed.  Added CancelEdit method
15380         which is used end to editing while ignoring the value set by the
15381         user. In EndEdit, set focus to ListView to avoid losing focus to
15382         other controls. In ListViewItemCollection.Clear, cancel editing of
15383         any of the items.  In Remove, cancel editing of item being removed.
15384         Avoid udplicate code by modifing RemoveAt to invoke Remove.
15385
15386 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15387
15388         * FileDialog.cs: Update FSEntry when move is successful. Fixes
15389         bug #80948.  
15390
15391 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15392
15393         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
15394         compatible with non X11 systems. Fixes #80901.
15395
15396 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15397
15398         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
15399         whether the item should be unselected and reselect. We do no want this
15400         when we're starting to edit the label. Do not fire the 
15401         SelectedIndexChanged event from ListView when its already been fired
15402         by modifying ListViewItem.Selected. Fixes bug #80943.
15403
15404 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15405
15406         * TextRenderer.cs: Previos commit logic was backwards.
15407
15408 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15409
15410         * TextRenderer.cs: Don't add padding on MeasureText if we were
15411         sent the NoPadding flag.
15412
15413 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15414
15415         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
15416         after DrawButton. To prevent image overlaps button borders SetClip and 
15417         ResetClip added before and after draw image. Fixes #79129.
15418
15419 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15420
15421         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
15422         window size, it fix problem when you run under win32 that theres
15423         Size diferent than ClientSize. Also fix controls size and positions
15424         to mimic Win32. Fixes #80837.
15425
15426 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
15427
15428         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
15429         menu area to fix some problems for non X11 systems. Fixes #80613.
15430
15431 2007-02-22  Jackson Harper  <jackson@ximian.com>
15432
15433         * TreeNode.cs: When a node is expanded, set its is_expanded flag
15434         even if it doesn't have any children.
15435
15436 2007-02-22  Jackson Harper  <jackson@ximian.com>
15437
15438         * TreeView.cs: Calculate the top node 'on the fly', this
15439         eliminates issues where you need to click on the tree before
15440         scrolling it to get the top node computed correctly.
15441         * TreeNodeCollection.cs: We don't need to mess with the top node
15442         anymore.
15443
15444 2007-02-22  Jackson Harper  <jackson@ximian.com>
15445
15446         * DataGridViewRow.cs: Fix typo so height can actually be set.
15447         Patch by Peter Grimm.
15448
15449 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15450
15451         * FileDialog.cs: Fixed support for renaming files and directories.
15452         * ListView.cs: Do not lose focus when edit is canceled. Process
15453         Escape as regular key (to prevent closing of dialogs).
15454
15455 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15456
15457         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
15458         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
15459
15460 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15461
15462         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
15463         did not modify label.
15464         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
15465         modified the text. Reset Label when user presses Escape in edit mode.
15466         Move focus to ListView after having cancelled or finished editing the
15467         label.
15468
15469 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
15470
15471         * ComboBox.cs: Removed unnecessary initializations. Marked items field
15472         private. Clear textbox when Text is set to null and SelectedIndex is
15473         already -1.
15474         * FileDialog.cs: Removed unnecessary initializations. Removed 
15475         workarounds for ComboBox bugs that are now fixed. Modified
15476         DefaultExt, InitialDirectory and Title property to change null to
15477         zero-length string in getters. Avoid directly accessing fields.
15478
15479 2007-02-20  Jackson Harper  <jackson@ximian.com>
15480
15481         * TextControl.cs: Remove RecalAlignments call, that was some
15482         debugging leftovers.
15483         - Don't use the line indent when we shouldn't.
15484         * RichTextBox.cs: Add support for paragraph left indents.
15485
15486 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15487
15488         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
15489         Seems like the class status pages doesn't catch params differences.
15490
15491 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
15492
15493         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
15494
15495 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
15496
15497         * ComboBox.cs: Setting Text should have no effect if item text of
15498         selected item exactly matches value. First lookup text using
15499         case-sensitive comparison, and fallback to case-insensitive comparison.
15500         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
15501         allow startIndex to be last index. Changed ArgumentOutOfRangeException
15502         paramname to match MS. Restart from first item if string is not found
15503         after startIndex. Fixed paramname of ArgumentNullException that is
15504         thrown for null value in ObjectCollection.Contains.
15505
15506 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
15507
15508         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
15509
15510 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15511
15512         * ListControl.cs: In SelectedValue use value.Equals to compare for
15513         equality instead of ==, otherwise it will fail for strings.
15514         Fixes #80794.
15515
15516 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15517         
15518         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
15519         since the caret won't show up unless ShowSelection is true. 
15520         Fixes #80795.
15521
15522 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15523
15524         * Application.cs: When disabling all forms but the main form, do not
15525           disable any descendants of the main form (such as mdi children or
15526           other parented forms). Fixes #80822 on Windows.
15527         * Form.cs: If we have a parent, set the WS_CHILD style.
15528         * Control.cs: Update the window styles if the control whose parent has
15529           changed is a form (the WS_CHILD style has to be switched).
15530
15531 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
15532
15533         * XplatUIStructs.cs: MsgUIState structure added.
15534
15535 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
15536
15537         * FileDialog.cs: Removed need for separate fileName field. On 2.0
15538         profile, do not check filename(s) for illegal character if filename(s)
15539         were set non-interactively but always check on 1.0 profile. Fixed NRE
15540          in DefaultExt and only strip off first leading dot. Improve exception
15541         message when invalid Filter is set. Do not ignore InitialDirectory if
15542         it does no exist. Store specified Title, and if empty use default
15543         title (depending on type of dialog). Added an internal DialogTitle 
15544         property for retrieving dialog title. Fixed logic of displayed dir to
15545         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
15546         string as its buggy.
15547         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
15548         FileName is a zero-length string (it can never be null). Override 
15549         DialogTitle property to set default title of dialog box.
15550         * SaveFileDialog.cs: Override DialogTitle property to set default
15551         title of dialog box.
15552
15553 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
15554
15555         * FileDialog.cs: Modify default text of filename and filetype labels
15556         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
15557         after we've updated the SelectedIndex. Fixes part of bug #80887.
15558         * SaveFileDialog.cs: Set text of filetype label.
15559
15560 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15561
15562         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
15563         label field. Needed by latest Jackson's fixes for ListView.
15564
15565 2007-02-16  Andreia Gaita  <avidigal@novell.com>
15566
15567         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
15568         print preview images.
15569
15570 2007-02-16  Jackson Harper  <jackson@ximian.com>
15571
15572         * ListView.cs: Make AfterLabelEdit work correctly.
15573         * FileDialog.cs: After changing the name of the folder, we have to
15574         make sure that it is created, or that we pop up an error because
15575         it already exists.
15576
15577 2007-02-16  Jackson Harper  <jackson@ximian.com>
15578
15579         * X11Dnd.cs: Implement aliases on mime handlers, so things like
15580         System.String are mapped to text.
15581         - Handle dataobjects, getting all the possible formats out of them
15582         - We dont need the drag event args before we give feedback. This
15583         allows feedback cursors to be immediate before selections have
15584         been converted.
15585
15586 2007-02-16  Jackson Harper  <jackson@ximian.com>
15587
15588         * TextBoxBase.cs: Modified the method for inserting images to
15589         taking a line and position instead of tag and position.
15590         * RichTextBox.cs: Handle PngBlip data by inserting the png image
15591         into the RTF file.
15592         * TextControl.cs: Allow images to be inserted as the first tag of
15593         a line.
15594         - Fix some off by one issues when we assume the first tag is a
15595         text tag, not an image tag.
15596
15597 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15598
15599         * ListView.cs: Set focus to ListView when ItemControl gets a
15600         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
15601         Fixes part of #80467.
15602
15603 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15604
15605         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
15606           validate Text input (if null or empty string reset Value to default
15607           value). Fixes #80830.
15608
15609 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15610
15611         * ListView.cs: Set owner as null for columns and items when
15612         Dispose is invoked. Fixes #80607.
15613
15614 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
15615
15616         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
15617         showing DropDowns, don't show a Grip when doing Flow layout.
15618         [This fixes the toolbox in PDN 2.72.]
15619         * ToolStripItem.cs: Add Anchor property and some internal properties to
15620         reduces needed changes to FlowLayout.
15621         * ToolStripOverflow.cs: Remove unused variable.
15622         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
15623         use it in the layout calculations.
15624
15625 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15626
15627         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
15628         reported in #79640.
15629         
15630         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
15631         size calculation.
15632
15633 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15634
15635         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
15636         MeasureString format, it can make button very large in some cases, it is
15637         strange but is what win32 do.
15638
15639 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15640
15641         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
15642         size calculation.
15643
15644         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
15645         rendering, the value is based on MenuAccessKeysUnderlined.
15646
15647 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15648
15649         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
15650         for most themes.
15651         
15652         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
15653         
15654         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
15655         and use MenuAccessKeysUnderlined instead.
15656
15657 2007-02-13  Andreia Gaita  <avidigal@novell.com>
15658
15659         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
15660         A selected control would not get a Focus call if:
15661                 - the default active control of the container is the same as
15662                   the one that was selected
15663                 - we are switching from one container to another
15664         Under these conditions, the container being selected already has
15665         an active_control, which is the same as the one being activated, 
15666         so set_ActiveControl would always return and not send the Focus
15667         call. Fix to check if the currently active control of the container
15668         is actually focused.
15669
15670 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
15671
15672         * StatusStrip.cs: Implement the spring layout.
15673         * ToolStripControlHost.cs: Make sure the hosted control's visibility
15674         always matches the host.
15675         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
15676         and TextAfterImage.
15677
15678 2007-02-13  Andreia Gaita  <avidigal@novell.com>
15679
15680         * Control.cs: Code reorganization only.
15681           - Reorganize the WndProc cases so that each case has it's own handling method, 
15682           to help with the no-line-numbering stack traces.
15683           - Formatting changes (it's vstudio's fault, really :p)
15684
15685 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15686
15687         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
15688           Thread.CurrentUICulture to match DateTimePicker's (and MS)
15689           behaviour.
15690
15691 2007-02-12  Jackson Harper  <jackson@ximian.com>
15692
15693         * RichTextBox.cs:
15694         * TextBox.cs: By default we have a non multiline document
15695         - use the multiline property instead of the internal variable
15696         * TextBoxBase.cs: Treat multiline and non multiline the same in
15697         most places.
15698         - Use the documents multiline flag instead of tracking it ourself
15699         * TextControl.cs: Attempt at getting multiline to match MS
15700         behavior.  Lines now track an offset, which is either their X or Y
15701         offset depending on whether or not we are in multiline mode.
15702         - Update all the methods to understand that lines have an X value.
15703         - Fix crash in Undo::Duplicate when empty lines are deleted.
15704
15705 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
15706
15707         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
15708         code moved to properties PreferredHeight and PreferredWidth. It solve the
15709         all problems when preferred sizes must be recalculated. Fixes #80801.
15710
15711 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
15712
15713         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
15714         font height when compatible_text_rendering is false. Partially fix #80801.
15715
15716 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15717
15718         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
15719
15720 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15721
15722         * Form.cs: Improved exception messages in ShowDialog.
15723
15724 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15725
15726         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
15727         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
15728         if not set. Fixes bug #80764. Avoid accessing current_settings field
15729         directly.
15730
15731 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
15732
15733         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
15734         false.
15735
15736         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
15737         public in 2.0 and for easy maintenance and dont break compatibility it is 
15738         internal in 1.1.
15739         
15740 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
15741
15742         * ToolStripItem.cs: Implement using images from ImageList.
15743
15744 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15745
15746         * DateTimePicker.cs: Change default date-formatting culture from
15747           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
15748           seems to be the way MS does it.
15749
15750 2007-02-08  Andreia Gaita  <avidigal@novell.com>
15751
15752         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
15753         (the 6 was cut off on the right side)
15754
15755 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
15756
15757         * Form.cs: Tell MenuStrips to close when the form is clicked.
15758         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
15759         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
15760         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
15761         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
15762         support for Overflow, where items that do not fit are automatically
15763         reparented to a drop down menu.
15764         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
15765         Also: fixes bug #80747.
15766
15767 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15768
15769         * ComboBox.cs: Remove warning (unused code).
15770         * ScrollableControl.cs: Remove warning for 1.1 profile.
15771
15772 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15773
15774         * Form.cs: Remove a warning.
15775
15776 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15777
15778         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
15779           'g' specifier, not documented anywhere, but seems to always show up
15780           as a single space (might have something to do with the DateTime 'g'
15781           specifier, which is the era format, but since DateTimePicker can't
15782           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
15783           won't crash if the format has an unmatched quote. Now shows
15784           single-character formats correctly. Fixes #80744.
15785
15786 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
15787
15788         * StatusStrip.cs: Stretch property needs to call base.Stretch,
15789         not this.Stretch to fix stack overflow. [Fixes bug #80760]
15790
15791 2007-02-07  Chris Toshok  <toshok@ximian.com>
15792
15793         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
15794         background color.  it overwrites the background image we've
15795         already painted.  Fixes #80599.
15796
15797 2007-02-07  Chris Toshok  <toshok@ximian.com>
15798
15799         * DataGrid.cs: return immediately from Edit() when there are no
15800         columns.  Fixes #80662.
15801
15802 2007-02-07  Chris Toshok  <toshok@ximian.com>
15803
15804         * MessageBox.cs: fix #80625.  don't always show the Help button in
15805         2.0.  use the displayHelpButton parameter to determine if we
15806         should show it. Also, make the internal show_help field private.
15807
15808 2007-02-07  Chris Toshok  <toshok@ximian.com>
15809
15810         * Control.cs (SetVisibleCore): check in the proposed patch for
15811         80604, and set is_visible before calling CreateControl.
15812
15813 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
15814
15815         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
15816         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
15817         on it.
15818
15819 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
15820
15821         * MenuAPI.cs: hotkey_active internal field added, it is required because
15822         we need to know when hotkeys must be draw, before this change a keystate
15823         Navigating was used but we can have menu in navigating state without
15824         hotkeys. Fixes #80694.
15825         
15826         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
15827
15828 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15829
15830         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
15831           corresponding events and methods to be internal for 1.1 profile and
15832           public for 2.0 profile (required by SizeGrip).
15833         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
15834           implicit control list). Don't set the size nor the location of the
15835           SizeGrip anymore as it's not needed.
15836         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
15837           draw directly on the captured control (fixes #80656). Removed
15838           ShowGrip (it wasn't used anywhere), redraw (always true), added
15839           GetDefaultSize and GetDefaultRectangle to calculate defaults.
15840         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
15841           be called from SizeGrip.
15842
15843 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15844
15845         * Timer.cs: Throw ArgumentException if Interval <= 0.
15846
15847 2007-02-05  Jackson Harper  <jackson@ximian.com>
15848
15849         * TreeView.cs: We need to check scrollbar visibility when window
15850         visibility is updated, because non visible trees don't ever add
15851         scrollbars.
15852         * Cursor.cs: We want the override cursor to be reset to NULL when
15853         we set current cursor to the default cursor.
15854
15855 2007-02-05  Jackson Harper  <jackson@ximian.com>
15856
15857         * TextControl.cs: Don't have crlfs when we are non multiline.
15858         - Consolidate the line position.
15859
15860 2007-02-05  Jackson Harper  <jackson@ximian.com>
15861
15862         * X11Keyboard.cs: BACK+CTRL gets a special char code.
15863
15864 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15865
15866         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
15867           handling LeaveNotify->NotifyUngrab in order to send
15868           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
15869           after calling XUngrabPointer, so we call WindowUngrabbed directly
15870           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
15871         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
15872           MouseCaptureChanged correctly. Also create handles if changing
15873           Capture (matches MS behaviour).
15874
15875 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15876
15877         * SizeGrip.cs: Make the last change 2.0 only.
15878
15879 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15880
15881         * SizeGrip.cs: If resizing and the capture is lost, revert any size
15882           changes to initial size (fixes #80597).
15883
15884 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15885
15886         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
15887
15888 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15889
15890         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
15891           background) and only allow dragging if enabled. This way the
15892           sizegrip can be used to fill the open square that otherwise would
15893           have been shown in the bottom right corner of ScrollableControl
15894           when ScrollableControl is not suppose to support sizing.
15895         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
15896           sizegrip is shown and enabled, and hook up with necessary events.
15897
15898 2007-02-01  Chris Toshok  <toshok@ximian.com>
15899
15900         * DataGridTextBoxColumn.cs: clean up the
15901         GetFormattedString/GetColumnValueAtRow combination of functions.
15902         Also fix UpdateUI, and the initial state of
15903         IsInEditOrNavigateMode.
15904
15905         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
15906         aren't supposed to scroll the textbox here, we're supposed to
15907         scroll the datagrid.
15908
15909 2007-02-01  Chris Toshok  <toshok@ximian.com>
15910
15911         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
15912         setting the position.
15913
15914 2007-02-01  Chris Toshok  <toshok@ximian.com>
15915
15916         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
15917         here, since the most recent focus fixes keep us from generating
15918         the Leave event when our textbox gets focus.
15919         (Edit): we should be passing null for the column style's
15920         instantText parameter.
15921         
15922 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
15923
15924         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
15925         raised.  Fixes menu text/icons not showing up in PDN.
15926
15927 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15928
15929         * Control.cs: Remove code in constructor that makes every
15930         control with WS_CHILD set have initial location -1, -1.
15931
15932 2007-01-31  Jackson Harper  <jackson@ximian.com>
15933
15934         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
15935         XplatUIX11.
15936         * XplatUIX11.cs: Give teh keyboard to teh dnd.
15937
15938 2007-01-31  Jackson Harper  <jackson@ximian.com>
15939
15940         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
15941         - Remove some debug code.
15942
15943 2007-01-31  Jackson Harper  <jackson@ximian.com>
15944
15945         * XplatUIX11.cs: If you set the override cursor during a grab, it
15946         should actually override the grab cursor.  This comes into play
15947         when you are setting custom cursors in a DND feedback method.
15948
15949 2007-01-31  Jackson Harper  <jackson@ximian.com>
15950
15951         * X11Dnd.cs: Add support for handling the QueryContinue and
15952         GiveFeedback events.
15953         - Cancel drag and drop actions when the escape key is clicked.
15954         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
15955         can handle the ESCAPE key.
15956         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
15957         done when dnd events are continued after the button is released.
15958         - Add a new helper method so that dnd can translate key events.
15959
15960 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
15961
15962         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
15963         make it more obvious what is happening.
15964
15965 2007-01-30  Jackson Harper  <jackson@ximian.com>
15966
15967         * XplatUIX11.cs: Don't break when handling button release in drag
15968         and drop operations. We need that BUTTONUP message to get through
15969         so capture is released.
15970         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
15971         this is handled automatically when the mouse is down.
15972
15973 2007-01-30  Jackson Harper  <jackson@ximian.com>
15974
15975         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
15976         is closed, so we need to make sure that we aren't changing the
15977         dialog result when the OK (Open or Save) button has been clicked
15978         and we are closing the window ourselves.  Note we don't need to
15979         worry about the cache being written in this case, because it was
15980         already done in the previous FilOk call.
15981
15982 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15983         
15984         * DateTimePicker.cs: Remove a warning.
15985         * ComboBox.cs: Remove a couple of warnings.
15986
15987 2007-01-29  Chris Toshok  <toshok@ximian.com>
15988
15989         * XplatUIX11.cs: don't crash, and remove the icon if the user has
15990         set one, if SetIcon is passed a null icon.
15991
15992 2007-01-29  Andreia Gaita  <avidigal@novell.com>
15993
15994         * TextBox.cs: Redraw when the password characters changes
15995         * TextControl.cs: Check if textbox has a password char and draw 
15996         a line of password chars instead of the text in the line. LineTag gets 
15997         an extra Draw() method which allows document.Draw to override the text 
15998         that will be drawn. Removes 1024 char limitation on length of passworded 
15999         lines.
16000
16001 2007-01-29  Jackson Harper  <jackson@ximian.com>
16002
16003         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
16004         single chars is not.
16005
16006 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
16007
16008         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
16009         one pixel.  Fix a StackOverflowException caused by an overload wrongly
16010         calling itself.
16011
16012 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
16013
16014         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
16015         also remove ProcessArrowKey and put the code inside ProcessKeys.
16016
16017 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
16018
16019         * PaddingConverter.cs: Added.
16020
16021 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16022         
16023         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
16024         ShowPanels is false (fixes #80600). Only draw up to 127 characters
16025         of text (fixes #80601). For panels clip the text to draw to the
16026         panel (fixes #80603).
16027
16028 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16029
16030         * ComboBox.cs: Fixed implementation of ResetText.
16031
16032 2007-01-25  Jackson Harper  <jackson@ximian.com>
16033
16034         * TextControl.cs: For the last char of a line we need to use the
16035         line size, not that chars width, since it won't actually be
16036         computed since the right side of a char is based on the start of
16037         the left side of the next char, and the next char does not exist.
16038
16039 2007-01-25  Chris Toshok  <toshok@ximian.com>
16040
16041         * Splitter.cs: fix the new unit tests, and reindent some switch
16042         statements.
16043
16044 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16045
16046         * ComboBox.cs: Implemented 2.0 methods and events.
16047         * TextBoxBase.cs: Added OnTextUpdate, so that
16048         ComboBox.ComboTextBox can inform ComboBox of it.
16049
16050 2007-01-25  Jackson Harper  <jackson@ximian.com>
16051
16052         * TextControl.cs: Respect ShowSelection when deciding whether or
16053         not to display the caret, this allows comboboxes to have carets
16054         when the combotextbox does not have focus.
16055
16056 2007-01-25  Jackson Harper  <jackson@ximian.com>
16057
16058         * TextControl.cs: Add a Suspend/Resume for updating, basically the
16059         same as the Suspend/Resume for recalc, except this will do actual
16060         Invalidates.
16061         - New Undo manager, works much like the MS version.
16062         - Implemented Redo
16063         * TextBoxBase.cs: The Cut operation is undoable.
16064
16065 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16066         
16067         * TextBoxBase.cs: Don't antialias text. Makes it look way better
16068         on Windows (no difference on Linux).    
16069
16070 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16071
16072         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
16073         we don't want to activate any windows. Fixes #79433.
16074
16075 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
16076
16077         - ButtonBase.cs: Fix capitalization of parameter: disposing.
16078         [Fixes bug #80609]
16079
16080 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
16081
16082         * FileDialog.cs:
16083         - Move to using System.ComponentModel.EventHandlerList
16084         - Replace Refresh with Invalidate
16085         - Clear the mime filecache on closing
16086         - Some other memory reducing work. After beeing closed FD now uses
16087           only about 300 KB for the fdo mime stuff plus the memory of the
16088           cached icons.
16089         * Mime.cs: Changed coding style and removed unnecessary commented
16090         code. Some more memory memory reducing work.
16091
16092 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16093
16094         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
16095         a few other missing 2.0 properties.
16096         * Theme.cs: Added DrawFlatStyleComboBox.
16097         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
16098
16099 2007-01-24  Chris Toshok  <toshok@ximian.com>
16100
16101         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
16102         wake_waiting flag, not just when there's data to be read.  if we
16103         don't, then future wakeup's won't reach us and we'll be doomed to
16104         wait for the entire 1 second timeout forever (unless there are X
16105         events to be had).
16106
16107 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
16108
16109         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
16110         until you pass Items.Count, not Items.Count - 1 like 1.1.
16111
16112 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
16113
16114         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
16115
16116 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
16117
16118         * ToolStripContainer.cs: The recent Dock fix exposed that I was
16119         adding the panels in the wrong order.
16120
16121 2007-01-24  Jackson Harper  <jackson@ximian.com>
16122
16123         * TextBoxBase.cs: When we move the caret we also need to move the
16124         selection, this fixes some random crashing after doing select
16125         text, unselect, delete a char, paste.
16126
16127 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16128
16129         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
16130
16131 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16132
16133         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
16134         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
16135         * ToolBar.cs: Force redraw in BackgroundImageChanged.
16136
16137 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16138
16139         * ToolBar.cs:
16140         - Implement support for vertical toolbars. Fixes #80539;
16141         - Call LayoutToolBar when resize, it fix some other problems in layout.
16142         - Rename requested_height to requested_size, as we can have width on it
16143         when toolbar is vertical.
16144         - Create a private property "Vertical" that uses Dock to verify when 
16145         toolbar is vertical or not.
16146         - Set ControlStyles when change Dock property.
16147         - Refactory in LayoutToolBar to have better variables names and to support
16148         vertical toolbars.
16149         - Fixes default value for ButtonSize when button count is equal zero, size
16150         must be (39, 36) test case writed.
16151
16152 2007-01-23  Chris Toshok  <toshok@ximian.com>
16153
16154         * Control.cs: fix the checks so that they work correctly for mdi
16155         parents/children.
16156
16157 2007-01-23  Chris Toshok  <toshok@ximian.com>
16158
16159         * Control.cs: ControlCollection seems to have super-secret
16160         abstraction breaking knowledge of Mdi containers.  allow MdiClient
16161         to add toplevel controls.
16162
16163 2007-01-23  Chris Toshok  <toshok@ximian.com>
16164
16165         * Control.cs: throw an ArgumentException if a toplevel control is
16166         added to our control collection from ControlCollection.Add, as
16167         well as from ControlCollection.IList.Add.  This fixes the
16168         ControlSetTopLevelTest.TestTopLevelAdd unit test.
16169
16170         Also, in ControlCollection.IList.Add, don't through an
16171         ArgumentNullException, throw an ArgumentException, when value ==
16172         null.  This matches MS.
16173
16174 2007-01-23  Chris Toshok  <toshok@ximian.com>
16175
16176         * BindingSource.cs: initial, incomplete, implementation of
16177         BindingSource.
16178
16179 2007-01-23  Jackson Harper  <jackson@ximian.com>
16180
16181         * TextControl.cs:
16182         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
16183         that I can fix a broken unit test (TextBoxTest::ClearUndo)
16184         
16185 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16186
16187         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
16188
16189 2007-01-23  Andreia Gaita  <avidigal@novell.com>
16190
16191         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
16192         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
16193         IndexOfKey() for 2.0
16194
16195 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16196
16197         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
16198         to prevent it from changing z-order.
16199         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
16200         leave UI updates in MdiWindowManager.
16201         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
16202         1 sized (NC handling goes weird on Linux otherwise).
16203         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
16204         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
16205         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
16206         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
16207         and SetWindowState(s) to allow for changing the size of an activated child
16208         before activating it (reduces a lot of flicker).
16209
16210 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
16211
16212         * Form.cs: Changing FormBorderStyle has different semantics based
16213         on whether the Form is visible or not.  If not visible, don't change
16214         the Size.  But InvalidateNC needs to be called to force the window
16215         to pick up the changes and redraw itself.  [Fixes bug #80574]
16216
16217 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
16218
16219         [Moma work]
16220         * ContainerControl.cs: ProcessCmdKey.
16221         * ErrorProvider.cs: new constructor.
16222         * Form.cs: fix AutoValidateEvent compiler warning.
16223         * Label.cs: fix OnAutoSizeChanged compiler warning.
16224         * MenuStrip.cs: fix CanOverflow compiler warning.
16225         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
16226         * TextBox.cs: Dispose.
16227         * ToolStrip.cs: CanOverflow, re-enable double buffering.
16228         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
16229         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
16230         * ToolStripItem.cs: Overflow, RightToLeft properties.
16231
16232 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16233
16234         * Form.cs: Move the layout of the main form to MdiWindowManager.
16235         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
16236         do a layout of the main window to update MdiClient's client area to
16237         the right area. Fixes #80533. Remove the calculation of nc size, 
16238         it was just wrong and the correct one is the same as for 
16239         InternalWindowManager. 
16240
16241 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
16242
16243         * Control.cs: Setting Anchor or Dock needs to reset the other
16244         to its default.  [Fixes bug #80556]
16245
16246 2007-01-20  Chris Toshok  <toshok@ximian.com>
16247
16248         * CheckedListBox.cs: class status changes.
16249
16250         * ScrollableControl.cs: same.
16251
16252         * RichTextBox.cs: same.
16253
16254         * ContainerControl.cs: same.
16255
16256         * ListView.cs: same.
16257
16258         * NotifyIcon.cs: same.
16259
16260         * MenuStrip.cs: same.
16261
16262         * RadioButton.cs: same.
16263
16264         * CheckBox.cs: same.
16265
16266         * PrintPreviewDialog.cs: same.
16267
16268         * Form.cs: same.
16269
16270 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
16271
16272         * TreeNode.cs: Apply Alan's patch for Name property.
16273
16274 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16275         
16276         * Form.cs: Implemented SizeGripStyle.
16277         * SizeGrip.cs: Check for minimum and maximum size for the
16278         control being resized and only resize if size has actually
16279         changed.
16280
16281 2007-01-19  Chris Toshok  <toshok@ximian.com>
16282
16283         * DataGridColumnStyle.cs: stop setting _readonly in the
16284         PropertyDescriptor setter.  fixes a unit test failure.
16285
16286         also, rename ParentReadOnly to TableStyleReadOnly, and have it
16287         just consult our table style (if we have one).  We don't need to
16288         consult the datagrid readonly attribute because that's passed in
16289         as the _ro arg to Edit.  this simplifies things a little.
16290         
16291         * DataGrid.cs: use CurrentColumn instead of
16292         current_cell.ColumnNumber just to simplify some of the code.
16293
16294         switch the order of some things in the CurrentCell setter to keep
16295         the previous cell from getting a textbox again -
16296         EnsureCellVisibility causes scrolling to happen, which calls Edit.
16297         So we need to set the new cell before calling it.
16298         
16299         call Edit in OnEnter, as does Microsoft.
16300         
16301         also, make sure the current table style isn't the one we create
16302         initially when checking to see if it's different than the one
16303         we're setting it to in BindColumns (this fixes #80421).
16304
16305         * GridTableStylesCollection.cs: table styles can have "" for a
16306         mapping name.  part of the fix for #80421.
16307
16308         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
16309         Edit significantly.
16310
16311 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16312
16313         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
16314         and less GDI object leaky-er.
16315
16316 2007-01-18  Andreia Gaita  <avidigal@novell.com>
16317
16318         * LinkLabel.cs: Add opaque control style
16319
16320 2007-01-18  Jackson Harper  <jackson@ximian.com>
16321
16322         * TextControl.cs: Calculate width properly.
16323         - Don't store the tag's X offset, this can be figured out very
16324         easily.
16325         - When getting the caret tag make sure to get the last empty tag.
16326
16327 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16328
16329         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
16330         [Fixes bug #79959]
16331
16332         * Control.cs: Color.Empty shouldn't count for previous transparent
16333         redraw changes.
16334
16335 2007-01-18  Jackson Harper  <jackson@ximian.com>
16336
16337         * TextBox.cs:
16338         * RichTextBox.cs:
16339         * TextControl.cs: Starting to merge in some pieces of my older
16340         undo work.  Basically just some slight cleanup of the undo API.
16341
16342 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16343
16344         * TrackBar.cs: Fix signature of RightToLeftLayout.
16345         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
16346         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
16347         * Application.cs: Implemented UseWaitCursor.
16348
16349 2007-01-18  Jackson Harper  <jackson@ximian.com>
16350
16351         * TextControl.cs: We can't skip tags if any part of the tag is
16352         visible.
16353
16354 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16355
16356         * ContainerControl.cs: Override OnLayout.
16357
16358 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16359
16360         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
16361
16362         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
16363         everything else.
16364
16365 2007-01-18  Chris Toshok  <toshok@ximian.com>
16366
16367         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
16368         (leftover from the container_selected days, I'd wager).  fixes bug
16369         #80546.
16370
16371 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16372
16373         * Control.cs: Apply patch from George to fix the new testcase on
16374         bug #80451.  We can't just check for Color.Transparent, we need 
16375         to check if the back color's alpha channel is < 255.
16376
16377 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16378
16379         * Form.cs: Move setting show_icon = true to before the constructor
16380         so that the base constructor has that information when it calculates
16381         the form's size.  Was causing forms to be (6, 6) bigger than they
16382         were supposed to be.  Thanks for catching this Rolf!
16383
16384 2007-01-18  Jackson Harper  <jackson@ximian.com>
16385
16386         * TextControl.cs: When replacing a selection we need to invalidate
16387         from the initial selection start, because selection start is moved
16388         to the end of the replacement.
16389
16390 2007-01-18  Andreia Gaita  <avidigal@novell.com>
16391
16392         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
16393
16394 2007-01-18  Chris Toshok  <toshok@ximian.com>
16395
16396         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
16397         I just added.
16398
16399 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
16400
16401         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
16402         layout methods and properties from ToolBarButton must be available
16403         into ToolBarButtonInfo.
16404
16405 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16406
16407         * Control.cs: If the control has a transparent background, we
16408         need to refresh it when it moves and when it's parent's background
16409         image changes.  [Fixes bug #80451]
16410
16411 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16412
16413         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
16414
16415 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16416
16417         * XplatUIWin32.cs: Implement proper double buffering for Windows.
16418         [Fixes bug #80447, and probably speeds up things as well]
16419
16420 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16421
16422         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
16423         * XplatUIWin32.cs: We need to recalculate NC size after changing 
16424         window style to toolwindow (otherwise the client rectangle will be
16425         3 pixels to small for some reason).
16426         * MdiWindowManager.cs: Revert NC size calculations to match how
16427         they are calculated only based on window styles (to match
16428         Win32AdjustWindowRectEx, since otherwise when setting size or 
16429         location, Control will call Win32AdjustWindowRectEx to update client 
16430         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
16431         calculate a different value of client size causing another paint 
16432         (and flickering))
16433         * InternalWindowManager.cs: When moving or resizing a window only
16434         update size or location if they actually changed.
16435         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
16436         (seems to match Windows behaviour better). Cleaned up 
16437         ManagedWindowDecorations to draw what's needed and nothing else
16438         (was drawing borders and lines where they shouldn't be)
16439         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
16440         (style = 0xFFFF) and takes into account caption height when 
16441         calculating window rectangle.   
16442
16443 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
16444
16445         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
16446         can be added to toolbar multiple times, we need to maintain a list of 
16447         button information for each positions.
16448
16449 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
16450
16451         * ToolBar.cs: Some small stetic changes.
16452
16453 2007-01-16  Jackson Harper  <jackson@ximian.com>
16454
16455         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
16456         that allow us to have nested recalc = false blocks.
16457         - Add paste support for images in the RichTextBox
16458         * RichTextBox.cs: flush the text after the color is changed, so
16459         the change takes effect.
16460         - Use SuspendRecalc
16461         - Some extra debugging info
16462         * TextControl.cs: Tags no longer track their length, it is just
16463         computed from the next tags length, this makes things a little
16464         simpler and reduces places that we have to track length changes.
16465         - Refactored the linetag class a little so we could make it
16466         a base class for different kinds of tags
16467         - Created a image tag, a tag that can have a single image inserted
16468         into it
16469         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
16470         that we can call suspend multiple times.
16471         - Add some debugging methods
16472
16473 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16474
16475         * MdiClient.cs: Add ActivatePreviousChild for 
16476         mdi child window navigation.
16477         * Form.cs: Use MdiClient.ActivateNextChild/
16478         ActivatePreviousChild instead of Form.SelectNextControl
16479         to select the next/previous child since 
16480         SelectNextControl doesn't do it in the same order
16481         as mdi children should do it.
16482
16483 2007-01-16  Chris Toshok  <toshok@ximian.com>
16484
16485         * Control.cs: remove container_selected field.
16486
16487 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16488
16489         * MdiClient.cs: Update main form's ActiveChild when
16490         updating keyboard focus for the mdi child.
16491
16492 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
16493
16494         * Control.cs: PreferredSize fix.
16495
16496         * Form.cs: Add several 2.0 events, properties, and methods.
16497
16498 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
16499
16500         * Form.cs: Provide meaningful message when MdiParent is assigned a
16501         Form that is not an MdiContainer.
16502
16503 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16504
16505         * MdiClient.cs: Update main form's ActiveChild when
16506         activating a mdi child.
16507
16508 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16509
16510         * MdiWindowManager.cs: Fix NRE when merging menus and main form
16511         doesn't have a menu.
16512
16513         * Form.cs: Request NCRecalc after creating a mdi child window.
16514         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
16515         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
16516         
16517         * MdiClient.cs: Add new method SendFocusToActiveChild that either
16518         sends keyboard focus to the active child, or to the MdiClient
16519         if there are no child forms.
16520         
16521 2007-01-15  Chris Toshok  <toshok@ximian.com>
16522
16523         * ListView.cs: drop the *Internal overrides, just do our work in
16524         ItemControl's WndProc instead.
16525
16526         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
16527         of the various controls, and forward the events properly (in the
16528         same manner as MS) from the textbox to the UpDown.  Also the
16529         ActiveControl of the UpDownBase gets set properly now.  Finally,
16530         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
16531
16532         * NumericUpDown.cs: set Text in the ctor.
16533
16534         * DomainUpDown.cs: call UpdateEditText in the ctor.
16535         
16536         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
16537         so even a Selectable = false textbox can be focused if you click
16538         in it.  Go figure.
16539
16540         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
16541         just add their handling in their respective WndProc's.  Also add
16542         an explicit FocusInternal method that doesn't consult CanFocus
16543         before calling Select(this).
16544
16545         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
16546         do our work in WndProc instead.
16547
16548         * TabControl.cs: same.
16549
16550         * ComboBox.cs: same.
16551
16552 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
16553
16554         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
16555         Fixes #80006.
16556
16557 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16558
16559         * ListViewItem.cs:
16560         * ThemeWin32Classic.cs: Don't draw the item text outside
16561         item bounds in Details view, as well as use trimming.
16562         Fixes bug #80376.
16563
16564 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
16565
16566         * Form.cs: Implement Form.ShowIcon.
16567         
16568         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
16569         null, which when combined with the DlgModalFrame window style removes
16570         the icon from the title bar.
16571
16572 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
16573
16574         * Control.cs: Call OnMouseClick after OnClick. (2.0)
16575
16576 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
16577
16578         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
16579         menu when mdi child windows theres a menu, uses insert to get icon
16580         at first position. Partially fix #80006.
16581
16582 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
16583
16584         * Clipboard.cs: Implement 2.0 methods.
16585
16586 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
16587
16588         * Menu.cs: Implement Insert method of MenuItemCollection class
16589         to fix MenuMerge.
16590
16591 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16592
16593         * ListView.cs: Implement 2.0 FindItemWithText method.
16594
16595 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
16596
16597         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
16598         to calculate menu bar size. Fixes #80290.
16599
16600 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
16601
16602         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
16603
16604 2007-01-11  Chris Toshok  <toshok@ximian.com>
16605
16606         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
16607         initial form.
16608
16609 2007-01-11  Chris Toshok  <toshok@ximian.com>
16610
16611         * LinkLabel.cs: make sure to call base.Select in our Select method
16612         if it turns out we're going to be selected (i.e. if we have a link
16613         that is going to receive focus).  That way our container's
16614         ActiveControl is updated properly.
16615
16616 2007-01-11  Chris Toshok  <toshok@ximian.com>
16617
16618         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
16619         they have 1 or more links.  this fixes the crash gert reported.
16620
16621 2007-01-11  Andreia Gaita  <avidigal@novell.com>
16622
16623         * ContainerControl.cs: Remove ContainerSelected flag, not needed
16624         anymore.
16625
16626         * Control.cs (Controls.Add): Check if control to be added to the collection
16627         is a top level control, and throw an ArgumentException if it is.
16628         Remove ContainerSelectedFlag, not needed anymore.
16629
16630         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
16631         top most control doesn't activate the form. This fixes a problem in the
16632         MessageBox, where the default button wouldn't get focus because the form
16633         was activated before being Loaded - when the Owner is set, SetTopMost is
16634         called, and it would activate it.
16635
16636 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
16637
16638         * Button.cs: When clicked and setting the parent form's DialogResult,
16639         use FindForm instead of Parent, since parent could be a container
16640         control and not the Form.  Fixes bug #80495.
16641
16642 2007-01-10  Chris Toshok  <toshok@ximian.com>
16643
16644         * Form.cs: move the call to SendControlFocus into the same
16645         is_loaded check.
16646
16647 2007-01-10  Chris Toshok  <toshok@ximian.com>
16648
16649         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
16650         It breaks in the face of the new ActiveControl stuff, and should
16651         be unnecessary.
16652
16653         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
16654         activecontrol's focus if it's not already set, after we set
16655         ActiveControl, but before we call OnActivated.  Re-fixes #79667
16656         after the previous focus/active control fixes regressed it.
16657
16658         * Control.cs: reindent some code.
16659         
16660 2007-01-10  Chris Toshok  <toshok@ximian.com>
16661
16662         * Splitter.cs: clearing some outstanding changes from my tree.
16663         Replace all accesses (not writes) to the internal dock_style field
16664         with the Dock property.
16665
16666 2007-01-10  Chris Toshok  <toshok@ximian.com>
16667
16668         * Control.cs: make FireEnter, FireLeave, FireValidating, and
16669         FireValidated virtual.
16670
16671         * Form.cs: override and don't chain up calls to FireEnter and
16672         FireLeave.
16673
16674 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16675
16676         * ListView.cs: Add more text padding space when using
16677         auto resize for columns (the previous value didn't work fine).
16678
16679         * ThemeWin32Classic.cs: Update text position inside columns,
16680         to match the appeareance of .Net.
16681
16682         * ColumnHeader.cs: When using auto resize, only the Width should
16683         depend on the sub items, not the Height. Also, set width after
16684         auto resizing (the value of Width should never remain as -1 or -2).
16685
16686 2007-01-10  Chris Toshok  <toshok@ximian.com>
16687
16688         * Application.cs: fix compilation errors when debug is enabled.
16689
16690 2007-01-10  Chris Toshok  <toshok@ximian.com>
16691
16692         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
16693         add some nice ascii art pictures and explanation of the process).
16694         (GetMostDeeplyNestedActiveControl): new utility function we need
16695         because our ActiveControl can refer to a child container with its
16696         own ActiveControl.
16697
16698         * Form.cs (OnActivated): remove the call to SelectActiveControl
16699         from here, since you can override this method and not chain up,
16700         and winforms still sets the active control.
16701         (OnCreateControl): also remove the unnecessary SelectActiveControl
16702         call from here.
16703         (WndProc): it's actually called from the WM_ACTIVATE block, just
16704         before calling OnActivated.
16705
16706         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
16707         inside the else.  the ActiveControl setter will end up setting
16708         focus on @control.  This keeps us from setting it again (and
16709         generating an extra LostFocus/GotFocus pair).
16710         (Select (bool, bool)): reindent.
16711
16712 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
16713
16714         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
16715         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
16716         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
16717         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
16718         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
16719         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
16720         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
16721         ToolStripTextBox.cs: Another wave of corcompare work.
16722
16723 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16724
16725         * ColumnHeader.cs: Implement 2.0 AutoResize method using
16726         the Width property.
16727
16728         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
16729         methods by callling Column.AutoResize method on columns.
16730
16731 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
16732
16733         * Control.cs: Provide proper implementations of PreferredSize
16734         and GetPreferredSize (2.0).
16735
16736 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
16737
16738         * Form.cs: Remove one character (!) to make my previous OnClosing
16739         stuff work for modal windows like MessageBox.
16740
16741 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16742
16743         * ListView.cs:
16744         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
16745         ListView.Columns to get the last displayed column. Fixes #80452.
16746
16747 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
16748
16749         * Label.cs, LinkLabel.cs: Source code identation fixes.
16750
16751 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
16752
16753         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
16754         we dont need to invalidate only borders because when we invalidate four
16755         border lines the invalidate's generates a complete redraw of button, 
16756         because it now invalidate a complete rect some other redraws operations
16757         are fixed. Fixes #80196.
16758         
16759         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
16760         Remove ToolBarInvalidateEntireButton as it is not used.
16761
16762 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
16763         
16764         * Form.cs: Make sure that both OnClosing and OnFormClosing are
16765         called for 2.0 profile.
16766         * CloseReason.cs: Make class internal for 1.1.
16767
16768 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
16769
16770         * ToolStripManager.cs: Implement FindToolStrip functionality.
16771         * ToolStrip.cs: Register and unregister with ToolStripManager.
16772
16773 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
16774
16775         * Control.cs: This was messy.  2.0 moves much of ControlCollection
16776         to ArrangedElementCollection.  Implemented this with as few #if's as 
16777         possible (which is still too many).
16778
16779 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
16780
16781         * Control.cs: Implement SizeFromClientSize() [2.0].
16782
16783 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
16784
16785         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
16786         use Theme.BorderSize to calculate area instead of static value 1, 
16787         by the way use new BorderStaticSize instead     Border3DSize when 
16788         border_static is true. Fixes #79537.
16789         
16790         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
16791         
16792         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
16793         it is not needed.
16794
16795 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
16796
16797         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
16798
16799 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
16800
16801         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
16802         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
16803         
16804         * Hwnd.cs: 
16805         - border_static field added, it will used to define when a control 
16806         theres 3D border but it must be static (thin).
16807         - In GetWindowRectangle use Theme.BorderSize to calculate area 
16808         instead of static value 1, by the way use new BorderStaticSize instead
16809         Border3DSize when border_static is true.
16810
16811         * XplatUIX11.cs, XplatUIOSX.cs: 
16812         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
16813         
16814         * Theme.cs: BorderStaticSize field added.
16815
16816 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
16817
16818         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
16819
16820 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
16821
16822         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
16823         mimic same behavior than win32 that set border only in CreateParams,
16824         it fix problems under CreateParams overrides. Fix #79442 and partial
16825         fix #79537.
16826         
16827         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
16828         of thi control you must call recreate handle. 
16829         
16830         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
16831         need to do anything as RecreateHangle will take care about borders.
16832
16833 2007-01-05  Mike Kestner  <mkestner@novell.com>
16834
16835         * ListView.cs: hack to eliminate Lost/Got focus notifications on
16836         cycles between the ItemControl and parent.  Fixes #80388.
16837
16838 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
16839
16840         * Control.cs: Lazy init layout engine. Do not directly use 
16841         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
16842
16843 2007-01-05  Chris Toshok  <toshok@ximian.com>
16844
16845         * DataGrid.cs: don't forceably rebind columns in SetDataSource
16846         unless our list manager has changed (i.e. unless we have reason to
16847         believe our columns have changed).  Fixes #80422.
16848         
16849         also, disable the call do BindColumns in
16850         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
16851         1.1 the event isn't raised in response to a column addition on a
16852         table.)
16853
16854 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
16855
16856         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
16857         that inheritors can not call it if they choose.  Fixes bug #80456.
16858
16859 2007-01-05  Andreia Gaita  <avidigal@novell.com>
16860
16861         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
16862         doesn't blow up with a null exception on marshalling.
16863         
16864 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
16865
16866         * Control.cs: Implement several 2.0 protected properties and methods.
16867         Ensure that all necessary events are being called when properties
16868         are set.
16869
16870 2007-01-05  Mike Kestner  <mkestner@novell.com>
16871
16872         * ListView.cs: implement PgUp/PgDn for Details view.  Also
16873         fixes First/LastVisibleIndex to use the item_control.ClientRect 
16874         instead of the parent control.  Fixes #80378.
16875
16876 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
16877
16878         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
16879           determine whether to use yard-pound or not (bug #78399).
16880
16881 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
16882
16883         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
16884         problems. So it is time to bring back the old popupbutton colors.
16885
16886 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16887
16888         * ColumnHeader.cs:
16889         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
16890         property by using the internal information of the
16891         columns order in ListView.
16892
16893 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
16894
16895         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
16896         Add 2.0 Tag properties.
16897
16898         * LinkArea.cs: Add 2.0 ToString method.
16899
16900 2007-01-03  Chris Toshok  <toshok@ximian.com>
16901
16902         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
16903         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
16904         when we're editing, which fixes #80047.
16905
16906 2007-01-03  Chris Toshok  <toshok@ximian.com>
16907
16908         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
16909         #80404.
16910
16911 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
16912
16913         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
16914         property and implementation.
16915
16916         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
16917         for MdiWindowListItem property.
16918
16919         * ToolStripDropDown.cs: Don't consider hidden menu items while
16920         laying out the menu.
16921
16922 2007-01-03  Andreia Gaita  <avidigal@novell.com>
16923
16924         * SendKeys.cs: window handle is not needed in win32, so just
16925         get the active window for X after parsing keys and don't use
16926         it when building the message; it is passed by parameter to the 
16927         Xplat method and used there to build the message instead. Also,
16928         wait for events to be processed on SendWait, as opposed to Send,
16929         which doesn't wait :) Playing with threads and Send() completely 
16930         hangs on ms.net, only SendWait() works.
16931         
16932         XplatUIX11.cs
16933         X11Display.cs: Check for valid window handle.
16934
16935 2007-01-03  Jackson Harper  <jackson@ximian.com>
16936
16937         * TextControl.cs: Need to prevent wrap calculations when replacing
16938         text (this was there before i removed it accidently).
16939         - Don't update the cursor during the positioning, just set it to
16940         selection_start at the end of the operaion.
16941
16942 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16943
16944         * Control.cs:
16945         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
16946         
16947 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16948
16949         * MonthCalendar.cs: Added Click and DoubleClick events again,
16950         but this time they only hide Control's Click and DoubleClick.
16951         
16952 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
16953
16954         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
16955         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
16956
16957 2007-01-02  Jackson Harper  <jackson@ximian.com>
16958
16959         * TextBoxBase.cs: We move the caret with the split now, so we
16960         don't need to explicitly move the caret after splitting.  This
16961         fixes the caret bumping down an extra line on Enter.
16962
16963 2007-01-02  Miguel de Icaza  <miguel@novell.com>
16964
16965         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
16966         2.72). 
16967
16968         * ScrollableControl.cs: Add Scroll event.
16969
16970 2007-01-02  Mike Kestner  <mkestner@novell.com>
16971
16972         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
16973         to fix all hdr height padding codepaths.  Fixes #80207.
16974
16975 2007-01-02  Chris Toshok  <toshok@ximian.com>
16976
16977         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
16978         setting it to the Control defaults anyway, and it being after the
16979         Dock set was screwing up layout.
16980         (set_Dock): don't short circuit out of setting base.Dock.  Also,
16981         no need to call UpdateStatusBar here, as it'll be re-layed out if
16982         it needs to be.
16983
16984 2007-01-02  Mike Kestner  <mkestner@novell.com>
16985
16986         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
16987         to header height for width == -1. Fixes the rest of #80207.
16988
16989 2007-01-02  Mike Kestner  <mkestner@novell.com>
16990
16991         * ListView.cs: rework the mouse event forwarding everaldo added
16992         to translate the coordinates to the parent control not
16993         raise the parent events until after we've done our work. Hover
16994         needs more work, in the case where HoverSelection is on, because
16995         the item control receives more than one MouseHover per Enter
16996         event, so we need to ensure only the "first" hover gets forwarded.
16997         Opening a minor bug for that.
16998
16999 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
17000
17001         * CheckedListBox.cs: Fixed SelectionMode to match MS.
17002         * ListControl.cs: Implemented AllowSelection property. Removed extra
17003         tabs.
17004         * ListBox.cs: Implemented AllowSelection property.
17005
17006 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17007
17008         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
17009         SelectedItem, it prevent for errors when you must disable item
17010         before perform click. Fixes #80409.
17011
17012 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17013
17014         * MenuAPI.cs: Prevent second level and beyond submenus to close
17015         until first level when move out side of popup.
17016         
17017 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17018
17019         * MenuAPI.cs:
17020         - Down submenu positin in three pixels.
17021         - Closes sub menu when mouse leaves from menu. Fixes #80402.
17022
17023 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17024
17025         * ThemeWin32Classic.cs:
17026         - Fix popup menu size adding one pixel on the top.
17027         - Down menu item border from two to one to mimic Win32.
17028         - Some source identation fixes. 
17029
17030 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
17031
17032         * ThemeWin32Classic.cs: Use float numbers to calculate size and
17033         position of menu arrows, it fix wrong arrow size.
17034
17035 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
17036
17037         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
17038         instead of line, it simplify draw operation and fix it using 3D
17039         borders to mimic Win32.
17040
17041 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
17042
17043         * StatusStrip.cs: Add implementation of the sizing grip.
17044
17045         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
17046         StatusStrip rendering.
17047
17048 2006-12-31  Chris Toshok  <toshok@ximian.com>
17049
17050         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
17051         override the layout style (anchor/dock) of the control.  assign to
17052         Dock instead.  Fixes bug #80416.
17053
17054         * ToolStrip.cs: same.
17055
17056 2006-12-31  Andreia Gaita  <avidigal@novell.com>
17057
17058         * ContainerControl.cs: Use ContainerSelected flag to check if 
17059         a Container is directly selected, or if Select is called on a 
17060         non-container. If a container is directly selected, focus events 
17061         should not be raised.
17062         Apply #80411 patch to throw exception on set_ActiveControl if 
17063         control is the same as the current one.
17064         
17065         * Control.cs: Use ContainerSelected flag (see above).
17066         Add invalidation check to raise event but not invalidate if 
17067         dimensions are 0.       
17068         Apply #80411 patch.
17069         
17070
17071 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
17072
17073         * MenuAPI.cs: After click, dont close popup menu when menu is
17074         ContextMenu. Fixes #80399.
17075
17076 2006-12-30  Chris Toshok  <toshok@ximian.com>
17077
17078         * ContainerControl.cs: make sure we throw the exception if the
17079         container control doesn't contain the control we're setting
17080         ActiveControl to.
17081
17082 2006-12-30  Chris Toshok  <toshok@ximian.com>
17083
17084         * Control.cs (SetTopLevel): fix the exception raised by
17085         SetTopLevel for child controls.
17086         (set_Anchor): call UpdateDistances when setting the anchor type.
17087         This fixes bug #80336.
17088
17089 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17090
17091         * Theme.cs: For now, revert back to 8pt font.
17092
17093 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
17094
17095         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
17096         Fixes #80395.
17097
17098 2006-12-29  Chris Toshok  <toshok@ximian.com>
17099
17100         * Control.cs: reorder the code in OnResize to give the same event
17101         ordering as MS.
17102
17103 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17104
17105         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
17106         TileHorizontally and TileVertically.
17107         
17108 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
17109
17110         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
17111         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
17112         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
17113         Corrected copyright and email adress.
17114
17115 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17116
17117         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
17118         of Exception in FullPath property if no TreeView is associated with
17119         the TreeNode.
17120
17121 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17122
17123         * Theme.cs: Marked default_font as private, and initialize it in ctor
17124         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
17125         on 2.0 profile.
17126         * ThemeGtk.cs: Removed default_font intialization.
17127         * ThemeWin32Classic.cs: Removed default_font initialization.
17128
17129 2006-12-28  Chris Toshok  <toshok@ximian.com>
17130
17131         * Control.cs: fix a couple of place where we were creating handles
17132         more aggressively than we should be.  Fixes ControlRefresh unit
17133         tests.
17134
17135 2006-12-28  Chris Toshok  <toshok@ximian.com>
17136
17137         * Control.cs: contrary to what the comment said, Control.Dock does
17138         not supercede Control.Anchor - the last one you assign to decides
17139         the layout behavior.  so we need to keep track of which was the
17140         last set.  Also, fix some of the affected property arguments in
17141         PerformLayout calls, and remove an redundant parent.PerformLayout
17142         call in OnResized.
17143
17144         Add a VisibleInternal property, which returns is_visible.  We
17145         can/should get rid of all the usage of this field elsewhere.
17146
17147 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17148         
17149         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
17150         control style, not DoubleBuffer. Added UseDoubleBuffering property
17151         that indicates whether doublebuffering is enabled and supported.
17152         (comment from and code based on Gert Driesen's patch in #80324).
17153         Fixes #80324.
17154
17155 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17156         
17157         * Control.cs: Fixed a NRE.
17158
17159 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17160
17161         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
17162         for 2.0.
17163
17164 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17165
17166         * Control.cs: Rewrote double buffering, now a seperate
17167         class handles all the buffering, no Graphics is disposed of
17168         until the painting is finished (earlier implementation 
17169         would crash if the control was resized in the OnPaint, 
17170         since it would cause the double buffer to be recreated
17171         and the old one disposed), a separate Graphics is 
17172         created for every paint (MS behaviour and anyways the state
17173         of the Graphics would have to be saved and restored otherwise)
17174         
17175         * XplatUIDriver.cs: 
17176         * XplatUIX11.cs:
17177         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
17178         so that we can get the graphics for the back buffer without
17179         having to create a new one and remove the offscreen_dc parameter
17180         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
17181         
17182 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17183
17184         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
17185         Also make virtual all the key-related methods.
17186
17187         * ListViewItem.cs: Make virtual the key related methods for
17188         ListViewSubItemCollection.
17189
17190 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17191
17192         * ListView.cs:
17193         * ListViewItem.cs:
17194         * ThemeWin32Classic.cs:
17195         * Theme.cs: Initial support for Tile view in ListView,
17196         as well as the implementation of the required bits for it (Item
17197         and Subitem).
17198
17199 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17200
17201         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
17202         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
17203         Provide useful exception messages.
17204
17205 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17206
17207         * TrackBar.cs: Remove a warning.
17208         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
17209         when used by DateTimePicker, fixes #80287. This also requires that 
17210         MonthCalendar implements it's own drawing for the yearly updown control,
17211         otherwise the Capture tracking would be too complicated. Removed the Click 
17212         and DoubleClick events (according to comments they were hiding the base class
17213         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
17214         raise these events, not that they cannot be raised. It is possible to raise 
17215         them by calling OnClick and OnDoubleClick). Added two internal fields in 
17216         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
17217         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
17218         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
17219         event, no longer needed.
17220         
17221 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17222
17223         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
17224         true if new value differs from current value.
17225
17226 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17227
17228         * Control.cs: ControlCollection.Count must be public. Fixed build of
17229         unit tests.
17230
17231 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17232
17233         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
17234
17235 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17236
17237         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
17238
17239 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
17240
17241         * Control.cs: Invalidates control including when Width and Height is 
17242         equal zero or is not visible, only Paint event must be care about 
17243         this. Fixes #79913.
17244
17245 2006-12-26  Chris Toshok  <toshok@ximian.com>
17246
17247         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
17248         more corcompare work.
17249
17250         * DataGridView.cs: fix compiler warning.
17251
17252         * ColumnHeader.cs: some corcompare work, and also take the
17253         opportunity to make the internal fields private.
17254
17255         * ListView.cs: fix the fallout from the above field change.
17256
17257 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
17258
17259         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
17260         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
17261         ToolStripTextBox.cs: Fixes to events and corcompare.
17262
17263 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
17264
17265         * ListView.cs: Call owner.OnMousexx event to propagate events from
17266         item to ListView. Fixes #80367.
17267
17268 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17269
17270         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
17271         if value is less than one. ItemHeight should not be set to a value
17272         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
17273         Removed extra tabs.
17274
17275 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
17276
17277         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
17278         * ToolStripStatusLabel.cs: Add Spring for Moma.
17279
17280 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17281
17282         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
17283         Fixed code formatting. Removed debug code.
17284         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
17285
17286 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17287
17288         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
17289         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
17290         ArgumentOutOfRangeException if ColumnCount is negative. In 
17291         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
17292         less than 4 or higher than 32768.
17293         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
17294         Fixed FormatProvider to return CurrentCulture unless explicitly set.
17295         Fixed IsFormatProviderDefault to return true if FormatProvider has
17296         not been explicitly set.
17297
17298 2006-12-25  Chris Toshok  <toshok@ximian.com>
17299
17300         * Application.cs: add a couple of 2.0 events.
17301
17302 2006-12-25  Chris Toshok  <toshok@ximian.com>
17303
17304         * Control.cs: fix compiler warning.
17305
17306         * AxHost.cs: corcompare fixes.
17307
17308         * ApplicationContext.cs: corcompare fixes.
17309
17310 2006-12-25  Chris Toshok  <toshok@ximian.com>
17311
17312         * Control.cs: only update dist_right/dist_bottom if the
17313         width/height is > 0.  this fixes anchored controls being resized
17314         smaller until they disappear and then resized larger again.
17315
17316 2006-12-25  Chris Toshok  <toshok@ximian.com>
17317
17318         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
17319         since they're nothing more than X/Left and Y/Top, respectively.
17320
17321         Also, move back to a per-control Bitmap/Graphics for
17322         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
17323         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
17324         Height.
17325
17326 2006-12-25  Miguel de Icaza  <miguel@novell.com>
17327
17328         * MessageBox.cs: Implemented overload that takes a new "bool
17329         displayHelpButton" by adding a new internal field "show_help".
17330         When clicked this will raise the HelpRequested on the owner or the
17331         main form. 
17332
17333         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
17334         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
17335
17336         * ListView.cs: Add support ColumnWidthChanged and
17337         ColumnWidthChanging. 
17338
17339         Add support for ColumnReordered event.
17340         (ReorderColumn): Add NET_2_0 specific support for cancelling the
17341         reorder.
17342
17343         Very nice codebase!
17344
17345         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
17346
17347         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
17348
17349 2006-12-24  Chris Toshok  <toshok@ximian.com>
17350
17351         * GridTablesFactory.cs: 2.0 corcompare work.
17352
17353         * ToolStripContainer.cs: add "override" to
17354         ContextMenuStripChanged, and remove the local event object.
17355
17356         * ToolStripDropDown.cs: same with a couple properties.
17357
17358         * ToolStripPanel.cs: same with AutoSizeChanged event.
17359
17360         * TextBoxBase.cs: add "override" to AutoSizeChanged.
17361
17362         * Form.cs: add the remaining 2.0 events, and do some corcompare
17363         attribute work.
17364
17365         * DateTimePicker.cs: add "new" to padding.
17366
17367         * ButtonBase.cs: use Control's use_compatible_text_rendering.
17368
17369         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
17370
17371         * DataGridView.cs: PaddingChanged is overridden.
17372
17373 2006-12-24  Chris Toshok  <toshok@ximian.com>
17374
17375         * Control.cs: corecompare work here too.
17376
17377         * DataGridViewElement.cs, DataGridView.cs,
17378         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
17379         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
17380         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
17381         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
17382         work.
17383
17384 2006-12-24  Miguel de Icaza  <miguel@novell.com>
17385
17386         * Control.cs: Switched the error message on the console for a
17387         todo.  A review of the code will have to cope with this anyways
17388         (since its a large feature, it is in our radar) and it was
17389         producing too much output when running PDN.
17390
17391         * ToolStripComboBox.cs: Set the text when the SelectedIndex
17392         changes.  Applications depend on this (PDN 2.72)
17393
17394 2006-12-23  Chris Toshok  <toshok@ximian.com>
17395
17396         * TableLayoutSettings.cs: finish up the corcompare work for this
17397         class.
17398
17399 2006-12-23  Chris Toshok  <toshok@ximian.com>
17400
17401         * Control.cs: make SetImplicitBounds internal, do some futzing
17402         with LayoutEngine so that it's available in 1.1, and remove the
17403         entire duplicated code mess from PerformLayout.  Use
17404         System.Windows.Forms.Layout.DefaultLayout instead.
17405
17406         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
17407
17408 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
17409
17410         * Form.cs: Add MainMenuStrip property.
17411
17412 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
17413
17414         * Control.cs: Add ContextMenuStrip property and implementation.
17415         Fix ContextMenu implementation to show menu centered on control when
17416         activated using the keyboard instead of showing at screen (0,0).
17417
17418         * ToolStripDropDown.cs: Fix needed overload of Show ().
17419
17420 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17421
17422         * Menu.cs: Name property added for 2.0 profile.
17423         
17424 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17425
17426         * Menu.cs: Update information about FindMenuItem, method to be
17427         implemented soon.
17428
17429 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17430
17431         * MenuAPI.cs: When deselect items deselect also selected subitems.
17432         
17433 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17434
17435         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
17436         FindSubItemByCoord to found itens that is not active, also an
17437         cheking added to FindSubItemByCoord to search for items only 
17438         in visible popup windows. Fixes #80274.
17439
17440 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
17441
17442         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
17443         internal property, it be care about change ExStyle. 
17444
17445 2006-12-22  Andreia Gaita  <avidigal@novell.com>
17446
17447         * ContainerControl.cs: set activeControl for parent forms up the 
17448         tree when the new activecontrol is a container.
17449         When validating the active control, if it is a container, also
17450         raise up the validation for it's active control. Fixes #80280
17451         
17452         * Control.cs: Add internal property flag and check to prevent
17453         Focus events from getting raised when Select() is called for
17454         a ContainerControl. There are still too many focus events being
17455         raised at the moment though.
17456         Cleaned up the code a bit.
17457
17458 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17459
17460         * Control.cs: Added all missing 2.0 events.and
17461         fixed a couple of corcompare issues.
17462         * TrackBar.cs: Implemented missing 2.0 bits.
17463         * MonthCalendar.cs, 
17464         * DateTimePicker.cs, 
17465         * MdiClient.cs: Fixed some corcompare issues.
17466
17467 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17468
17469         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
17470         SplitterPanel.cs: corecompare work.
17471
17472 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17473
17474         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
17475         Clean up warnings for BackgroundImageChanged and PaddingChanged
17476         events now that they are implemented in Control.cs.
17477
17478 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17479
17480         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
17481         
17482         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
17483         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
17484         of TableLayoutPanel and supporting cast.
17485
17486 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17487
17488         * XplatUIWin32.cs: 
17489         - GrabWindow now confines the mouse pointer to the confine window.
17490         - Added Win32ClipCursor and Win32GetClipCursor.
17491
17492         * Control.cs: 
17493         - Added CaptureWithConfine to be able to capture and confine 
17494         mouse pointer.
17495         
17496         * InternalWindowManager.cs: 
17497         - Call CaptureWithConfine instead of Capture if we're an
17498         MdiChild (fixes #79982).
17499
17500 2006-12-21  Chris Toshok  <toshok@ximian.com>
17501
17502         * DataGrid.cs: guard against the initial state of selection, where
17503         selection_start == -1.  make sure we only select from index >= 0.
17504         Fixes bug #80291.
17505
17506 2006-12-21  Chris Toshok  <toshok@ximian.com>
17507
17508         * Control.cs: we don't need to be so draconian with
17509         UpdateDistances, and we thusly don't need to call it before
17510         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
17511
17512 2006-12-21  Daniel Nauck  <dna@mono-project.de>
17513
17514         * ComboBox.cs,
17515         TextBox.cs: Implemented AutoComplete properties.
17516
17517 2006-12-20  Chris Toshok  <toshok@ximian.com>
17518
17519         * DataGridView*.cs: some corecompare work.
17520
17521 2006-12-20  Jackson Harper  <jackson@ximian.com>
17522
17523         * XplatUIX11.cs: We need to hide the caret when deleting it,
17524         otherwise you get carets left lying around everywhere.
17525         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
17526         prevents getting some weird half drawn caret tracers when
17527         scrolling.
17528         * TextControl.cs: Attempt to reduce the number of times we need to
17529         recreate the caret.
17530
17531 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
17532
17533         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
17534
17535 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17536
17537         * DateTimePicker.cs:
17538         - Implemented missing 2.0 bits.
17539         - Changed some default values to match MS.
17540         
17541 2006-12-20  Jackson Harper  <jackson@ximian.com>
17542
17543         * TextBoxBase.cs: When changing the font across the document we
17544         can't recalculate after changing each line, since that will cahnge
17545         the line count.
17546         - PreferredHeight is a little different than i thought.
17547         - When backspacing, move the caret before we do the actual char
17548         delete, because when that delete crosses a wrap boundary the
17549         positional information will change.
17550
17551 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17552
17553         * Control.cs: Added some missing 2.0 bits: 
17554         BackgroundImageLayout, BackgroundImageLayoutChanged, 
17555         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
17556         add IBindableComponent and IDropTarget implementation.
17557         
17558         * MonthCalendar.cs: 
17559         - Added all missing 2.0 features:
17560         BackgroundImageLayout, RightToLeftLayout, 
17561         OnHandleDestroyed, RightToLeftLayoutChanged, 
17562         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
17563         PaddingChanged.
17564         - Rewrote all the BoldDate code, it was completely broken.
17565         - Fixed all the tests (the tests can now be re-enabled, the
17566         problems were not with the tests, but with the control, it was
17567         mostly broken).
17568         
17569         * DateTimePicker.cs: Changed the location where the 
17570         MonthCalendar is shown.
17571         
17572 2006-12-19  Chris Toshok  <toshok@ximian.com>
17573
17574         * DataGridView.cs: add IDropTarget implementation.
17575
17576         * ToolStripPanel.cs: add IDropTarget implementation.
17577
17578 2006-12-19  Jackson Harper  <jackson@ximian.com>
17579
17580         * TextControl.cs: soft now means something different than what it
17581         used to mean, we want to move the caret regardless of whether or
17582         not this break was soft (would we really have wanted the caret
17583         to not move with the break in the old context?)
17584         * TreeView.cs: Make sure we factor in the vert scrollbar when
17585         calculating the horizontal scrollbar's maximum.
17586
17587 2006-12-19  Andreia Gaita  <avidigal@novell.org>
17588
17589         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
17590         check for keywords in alternate casing, close bug #80049.
17591
17592 2006-12-19  Chris Toshok  <toshok@ximian.com>
17593
17594         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
17595         methods (which all do nothing).
17596
17597         * IDropTarget.cs: add the 4 missing methods.
17598
17599 2006-12-19  Chris Toshok  <toshok@ximian.com>
17600
17601         * TableLayoutRowStyleCollection.cs: corcompare work.
17602         
17603         * TableLayoutSettings.cs: same.
17604
17605         * TableLayoutStyle.cs: same.
17606
17607         * TableLayoutColumnStyleCollection.cs: same.
17608
17609 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
17610
17611         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
17612         TableLayoutPanel I've had in my local tree for way too long.
17613
17614 2006-12-19  Miguel de Icaza  <miguel@novell.com>
17615
17616         * TableLayoutSettings.cs: Finish the public API (still needs all
17617         the logic to update on changes). 
17618
17619         * TableLayoutPanelCellPosition.cs: new file.
17620         
17621         * TableLayoutRowStyleCollection.cs,
17622         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
17623         TableLayoutSettings.cs: Track the final 2.0 table api.
17624
17625 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17626
17627         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
17628         and Image List 2.0 members for ColummnHeader.
17629         * ListView.cs: Add key-related 2.0 methods for
17630         ColumnHeaderCollection.
17631
17632 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
17633
17634         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
17635         ArgumentNullException if items argument is null. Ignore null item in
17636         arrays. Removed extra tabs.
17637
17638 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
17639
17640         * MonthCalendar.cs: Fixed InvalidCastException.
17641
17642 2006-12-19  Jackson Harper  <jackson@ximian.com>
17643
17644         * TextControl.cs: Don't increment the position here.
17645         - When calculating char positions only add in the line break size
17646         for hard line breaks.
17647
17648 2006-12-19  Andreia Gaita  <avidigal@novell.org>
17649
17650         * SendKeys.cs: Changed some things to match ms.net behaviour
17651         when parsing shifted capital letters.
17652         
17653         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
17654         Add window handle as parameter to SendInput. X11 needs the 
17655         window handle, and the handle being passed      to it in the keys 
17656         queue is the active control handle (which windows needs), not 
17657         the window handle.
17658         
17659         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
17660         to support SendKeys on X.       
17661         
17662         * X11Keyboard: Implement helper method to lookup a linux keycode
17663         given the virtual keycode. Added table of keycode-2-virtualkey
17664         values to support this.
17665
17666 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17667
17668         * ListView.cs: Add support for SelectedIndexCollection
17669         and SelectedItemCollection 2.0 methods. Implement support
17670         for ImageKey too.
17671         * ListViewItem.cs: Add support for ListViewSubItemCollection
17672         2.0 methods. Also, fix an incorrect behavior of AddRange method
17673         (it shouldn't call Clear).
17674         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
17675
17676 2006-12-19  Jackson Harper  <jackson@ximian.com>
17677
17678         * RichTextBox.cs: 
17679         * TextBoxBase.cs: New args for FormatText
17680         * TextControl.cs: Rewrote the main drawing method, this version
17681         feels a little easier to understand and debug to me.  Hopefully it
17682         does to others also
17683         - Fix FormatText to OR in the new formating values.  Added
17684         FormatSpecified param, basically this works in the same way as
17685         BoundsSpecified in Control.
17686         - Set the caret properties when the caret is positioned.
17687         - When wrapping text make sure that we calculate the width of the
17688         last character
17689         - when calculating alignments we might have wrapped down to the
17690         next line, so don't search for an individual tag, search for the
17691         end of the line
17692         - We need to invalidate the selection area when we replace the
17693         selection.
17694         
17695 2006-12-19  Daniel Nauck  <dna@mono-project.de>
17696
17697         * Application.cs: add Restart () 2.0 support
17698
17699 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17700
17701         * MenuItem.cs: Invalidate menu item rectangle after change Enable
17702         property. Fixes #80268.
17703         
17704 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17705
17706         * MenuAPI.cs: Dont trigger select event when closes top menu
17707         item. Fixes #80270.
17708
17709 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17710
17711         * MenuAPI.cs: When you click on menuitem only trigger onselect
17712         event for top menu itens. Fixes #80271.
17713         
17714 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17715
17716         * MdiWindowManager.cs: Make IconicBounds depend on
17717         the bottom of MdiClient, not the top (fixes #80267)
17718         
17719 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17720
17721         * MdiClient.cs: Added missing 2.0 attribute
17722
17723 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17724
17725         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
17726         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
17727
17728 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17729
17730         * MenuAPI.cs: Fix click when menuitem is not popup,
17731         this regression was caused by last commit (#80272).
17732
17733 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
17734
17735         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
17736         fire click event or close menu. Fixes #80272.
17737
17738 2006-12-17  Daniel Nauck  <dna@mono-project.de>
17739
17740         * ListViewHitTestInfo.cs: add
17741
17742 2006-12-17  Daniel Nauck  <dna@mono-project.de>
17743
17744         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
17745         * FlatButtonAppearance.cs: add
17746         * DockingAttribute.cs: add
17747
17748 2006-12-17  Chris Toshok  <toshok@ximian.com>
17749
17750         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
17751         and rebind our columns when it does - this way, if you make
17752         changes to the DataTable (or set the Table attribute on a DataView
17753         after setting it as the DataGrid's DataSource, the changes are
17754         made visible.)  Fixes bug #80107.
17755
17756 2006-12-17  Daniel Nauck  <dna@mono-project.de>
17757
17758         * ListViewGroup.cs: add internal Location property for layouting.
17759         * Theme.cs: add abstract ListViewGroupHeight function.
17760         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
17761
17762 2006-12-16  Andreia Gaita  <avidigal@novell.com>
17763
17764         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
17765         Added reset of selected index to 0 when adding first tab page.
17766         Fixes #80264
17767         
17768         * NumericUpDown.cs: Fix NET_2_0 check
17769
17770 2006-12-16  Daniel Nauck  <dna@mono-project.de>
17771
17772         * ListViewGroup.cs: fixed DefaultValueAttribute value
17773
17774 2006-12-16  Daniel Nauck  <dna@mono-project.de>
17775
17776         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
17777
17778 2006-12-15  Miguel de Icaza  <miguel@novell.com>
17779
17780         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
17781         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
17782         ScrollableControl.cs: Add a handful of methods that are
17783         overwritten in 2.0 
17784
17785 2006-12-15  Chris Toshok  <toshok@ximian.com>
17786
17787         * XplatUIWin32.cs: initial implementation of the Reversible
17788         drawing functions.  there are some problems.  DrawReversibleFrame
17789         doesn't seem to work at all for Dashed FrameStyle, and in the
17790         Thick case there are drawing errors at the corners (we probably
17791         need to bind Rectangle instead of doing moveto/lineto's.)
17792
17793 2006-12-16  Andreia Gaita  <avidigal@novell.com>
17794         
17795         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
17796         to send blocks of key messages. Send accumulates keys to send with Flush, 
17797         while SendWait sends all keys immediately.
17798                 
17799         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
17800         XplatUIX11.cs,  XplatUIX11-new.cs:
17801         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
17802         to Win32 SendInput.
17803         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
17804         
17805         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
17806         testing for ms.net on this class is very tricky, as the tests run too fast 
17807         to allow the hook to release, essentially freezing the keyboard and the 
17808         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
17809         category :p
17810
17811 2006-12-16  Daniel Nauck  <dna@mono-project.de>
17812
17813         * Padding.cs: fixed serialization compability to MS ("_var" field names),
17814                         added missing attributes.
17815  
17816 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17817
17818         * ListViewGroup.cs: Added missing attributes.
17819         * ListViewGroupCollection.cs: Added missing attributes.
17820
17821 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17822
17823         * ListViewItem.cs: fixed ListViewSubItem text property.
17824
17825 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17826         
17827         * Control.cs: Added missing 2.0 attributes
17828         
17829 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17830         
17831         * MdiClient.cs: Added missing 2.0 attribute.
17832         * MonthCalendar.cs: Added some missing 2.0 attributes 
17833         and properties.
17834         
17835 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17836
17837         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
17838
17839 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
17840
17841         * MainMenu.cs: Add the new 2.0 constructor to help out people
17842         using the MainMenu in VS2005.
17843
17844 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17845         
17846         * MdiChildContext.cs: Removed it, no longer used.
17847         * MdiClient.cs: Added missing 2.0 attributes.
17848         
17849 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17850         
17851         * InternalWindowManager.cs: Fix a NullRef with previous 
17852         changes for toolwindows.
17853         
17854 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17855
17856         * Control.cs: 
17857         - Added AfterTopMostControl to allow for certain controls 
17858         to always stay on top when normal controls are brought to 
17859         front.
17860         
17861         * XplatUIWin32.cs: 
17862         - (DrawInversibleRectangle): Get window rectangle from Win32 
17863         in stead of from control, since Win32 doesn't calculate
17864         screen coords correctly from control's Location if it 
17865         have docked siblings.
17866         
17867         * MdiWindowManager.cs:
17868         - Correct the control menu popup location when clicked on
17869         the maximized form icon. (fixes #80223.1)
17870         - Don't show moving rectangle if mouse hasn't moved from
17871         the original clicked point.
17872         - Removed FormGotFocus handler (not used).
17873         - Calculate the control buttons location from the main
17874         window's size and not client size (fixes #79770).
17875         - Form is now closed when the form icon is double-clicked
17876         (fixes #79775). 
17877         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
17878         
17879         * InternalWindowManager.cs:
17880         - Moved some MDI-only methods to MdiWindowManager.
17881         - Removed unused properties and methods.
17882         - Unified method naming for methods handling wm messages.
17883         - Moved all message handling to seperate methods for
17884         each message.
17885         
17886         * ThemeWin32Classic.cs:
17887         - DrawManagedWindowDecorations now draws the title bar 
17888         with a gradient brush.
17889         - Add a CPDrawButtonInternal that allows us to specify
17890         light, normal and dark colors for the buttons (control 
17891         buttons for MDI children were drawn with the same light
17892         color as the background, therefore loosing the 3D effect).
17893         
17894         * SizeGrip.cs:
17895         - Add a CapturedControl property that is used to 
17896         determine the control to resize (defaults to parent). 
17897         Needed for MdiClient, since its SizeGrip's parent is
17898         MdiClient, but the control to resize is the main form.
17899         
17900         * MdiClient.cs:
17901         - Set SizeGrip's CapturedControl to the main form in order
17902         to resize the main form and not the MdiClient.
17903         - Override AfterTopMostControl to leave the scrollbars 
17904         always on top.
17905
17906 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17907
17908         * ListView.cs: fixed ListViewItemCollection AddRange and
17909                         implemented ListViewItemCollection AddRange 2.0 support.
17910
17911 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17912
17913         * ListViewGroup.cs: Add.
17914         * ListViewGroupCollection.cs: Add
17915         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
17916         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
17917                                 stub for ImageKey 2.0 support.
17918
17919 2006-12-14  Mike Kestner  <mkestner@novell.com>
17920
17921         * ListView.cs: add text padding to the autocalculation for columns
17922         of width -2.  Fixes #80207.
17923  
17924 2006-12-14  Mike Kestner  <mkestner@novell.com>
17925
17926         * ListView.cs: add some index guarding for partial row navigation 
17927         logic.  Fixes #80250.
17928
17929 2006-12-14  Mike Kestner  <mkestner@novell.com>
17930
17931         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
17932         are added or inserted to the collection.  Fixes #81099.
17933
17934 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
17935
17936         * MenuAPI.cs: Closes menu when right click out side of popup
17937         it fix problem in ContextMenu and MainMenu. Fixes #80252.
17938
17939 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17940
17941         * ListViewItem.cs: Fix dumb error.
17942
17943         * ListView.cs: Add Find and ContainsKey methods in 
17944         ListViewItemCollection, and also return true for IsReadOnly
17945         and IsFixedSize (changes for 2.0). 
17946
17947 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
17948
17949         * Control.cs: Allow Region to be set to null.
17950
17951 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17952
17953         * MdiWindowManager.cs: Remove unused (commented out) code.
17954         * Form.cs: When the MdiChild is maximized, the form needs 
17955         WM_NCMOUSELEAVE, so request it.
17956         * InternalWindowManager.cs: 
17957         - Added tooltips to control buttons.
17958         - Removed duplicated control button handling code.
17959         - Removed unused (commented out) code.
17960         
17961 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
17962
17963         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
17964         was used because we must set cursor without trigger ChangeCursor event
17965         and without change Cursor control property. Fixes #79963.
17966
17967 2006-12-12  Andreia Gaita  <avidigal@novell.com>
17968         
17969         * Control.cs: Check if Region setter value is null, and ignore
17970
17971 2006-12-12  Jackson Harper  <jackson@ximian.com>
17972
17973         * TextControl.cs: We were almost always drawing one more line then
17974         needed, since the GetLineByPixel will return the last line found
17975         at that pixel. In most cases though, we were invalidating up to
17976         the junction between two lines.
17977         - Improve debug code.
17978
17979 2006-12-12  Chris Toshok  <toshok@ximian.com>
17980
17981         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
17982         and FillReversibleRectangle.
17983
17984         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
17985         and FillReversibleRectangle.
17986
17987         * XplatUIWin32.cs: add stubs which do nothing for
17988         DrawReversibleFrame, DrawReversibleLine, and
17989         FillReversibleRectangle.
17990
17991         * XplatUIOSX.cs: add stubs which raise NIE for
17992         DrawReversibleFrame, DrawReversibleLine, and
17993         FillReversibleRectangle.
17994
17995         * XplatUIX11.cs: add working implementation for
17996         DrawReversibleFrame, DrawReversibleLine, and
17997         FillReversibleRectangle.
17998         
17999         * ControlPaint.cs: implement DrawReversibleFrame,
18000         DrawReversibleLine, and FillReversibleRectangle, by calling into
18001         the appropriate XplatUI method.
18002
18003 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18004
18005         * Form.cs: Make MdiClient have the focus even if it's
18006         not selectable, since it should receive WM_KEY* and WM_MOUSE 
18007         messages. Fixes #79907.
18008         
18009 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18010
18011         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
18012         queried after the window is created.
18013         
18014         * XplatUIX11.cs: Added SendParentNotify to implement 
18015         WM_PARENTNOTIFY logic. Fixes #79965.
18016         
18017         * Control.cs: Added MakeParam.
18018         
18019 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18020
18021         * MdiClient.cs: Resume Layout before setting window
18022         states (fixes #80201).
18023
18024 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18025
18026         * MenuAPI.cs: Deselect a menu item after performing
18027         the click (fixes #80197).
18028
18029 2006-12-11  Jackson Harper  <jackson@ximian.com>
18030
18031         * TextBoxBase.cs: We need to cap this value, since Maximum -
18032         ViewPortHeight can be less than zero.
18033         - Only do selection with the left mouse button.
18034         * TextBox.cs: Don't tell the world that we have a context menu.
18035         * Control.cs: New method so that we can control whether or not the
18036         context menu is visible outside MWF.
18037
18038 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
18039
18040         * ToolBarButton.cs: Fix text positon. 
18041
18042 2006-12-11  Miguel de Icaza  <miguel@novell.com>
18043
18044         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
18045
18046         * Control.cs (DoubleBuffered): Add implementation.
18047
18048         * Application.cs (OpenForms): Add.
18049
18050 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
18051
18052         * Form.cs: Use opacity instead of Opactiy to determine if we need
18053         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
18054
18055 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
18056
18057         * Control.cs: Fix NRE if Control.Site was set to null.
18058
18059 2006-12-11  Chris Toshok  <toshok@ximian.com>
18060
18061         * Control.cs: ControlCollection.Remove should return if the arg is
18062         null, and ControlCollection.SetChildIndex should raise a ANE.
18063
18064 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
18065
18066         * Control.cs: Verify value set for Dock property. Code formatting
18067         updates.
18068
18069 2006-12-11  Jackson Harper  <jackson@ximian.com>
18070
18071         * TextControl.cs: Draw the caret and the selection when a flag is
18072         set on the owner.
18073         * TextBoxBase.cs: We want to draw the caret and the selection for
18074         TextBox but not for TextBoxBase.
18075         - If the window is resized and scrolling is no longer needed (the
18076         whole doc is visible) set the scroll position to zero.
18077         - The default SelectWord (the one TextBox uses) should move the
18078         caret to the end of the word.
18079         - SelectAll moves the caret to the end of the selection.
18080         * TextBox.cs: We don't selectall on focus, we just do it when the
18081         control is created.
18082         
18083 2006-12-11  Mike Kestner  <mkestner@novell.com>
18084
18085         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
18086
18087 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18088
18089         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
18090         2.0 support.
18091         * ListViewItem.cs: Add Name 2.0 property.
18092
18093 2006-12-11  Andreia Gaita  <avidigal@novell.com>
18094
18095         * TabControl.cs: Set visibility on selected or default tab 
18096         when tabcontrol handle is created, so that it's contents
18097         actually show up (duh). Fixes #80193
18098         Don't redraw the control if there is no handle created, as
18099         the selected index might be completely invalid. Added some tests
18100         to check for this.
18101
18102 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
18103
18104         * ToolBar.cs: Uses maximun width and height of all buttons as 
18105         button rectangle when ButtonSize specified, it looks strange but
18106         is what happens in Win32. Fixes #80189.
18107
18108 2006-12-11  Jackson Harper  <jackson@ximian.com>
18109
18110         * TextControl.cs: Need to track undo levels ourself, since
18111         compound actions will mess them up.
18112
18113 2006-12-10  Andreia Gaita  <avidigal@novell.com>
18114
18115         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
18116         SelectedIndex value is changed (even if it's not valid).
18117         Reset SelectedIndex to 0 when the handle is created and if
18118         the current index is invalid.
18119         Fixes SelectdeIndex unit tests and #80128
18120
18121 2006-12-08  Chris Toshok  <toshok@ximian.com>
18122
18123         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
18124         calls EndEdit, it needs to be called before we set current_cell to
18125         its new value.  Otherwise, we end up committing the value in the
18126         textbox to the new cell as well.  Fixes bug #80160.
18127
18128 2006-12-08  Chris Toshok  <toshok@ximian.com>
18129
18130         * Form.cs (set_CancelButton): if the button's DialogResult is
18131         None, set it to Cancel.  Fixes bug 80180.
18132
18133 2006-12-08  Jackson Harper  <jackson@ximian.com>
18134
18135         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
18136         to watch ourselves when setting the canvas size and setting the
18137         scrollbar values.
18138
18139 2006-12-08  Chris Toshok  <toshok@ximian.com>
18140
18141         * DataGrid.cs: comment out the two MakeTransparent calls for the
18142         time being so people using trunk (and not 1.2.2) on windows can
18143         actually use the datagrid.  This deals with bug #80151.
18144
18145 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
18146
18147         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
18148         Graphics.DrawImage (image, int, int, int, int) overload instead
18149         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
18150         the dpi difference and was blurring images it drew.
18151         [Fixes bug #79960]
18152
18153 2006-12-08  Chris Toshok  <toshok@ximian.com>
18154
18155         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
18156         rowcnt is 0 (such as with an empty datasource), and make sure we
18157         initialize not_usedarea.Y to cells.Y, so we don't draw over the
18158         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
18159
18160 2006-12-08  Chris Toshok  <toshok@ximian.com>
18161
18162         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
18163         grid.
18164
18165 2006-12-08  Chris Toshok  <toshok@ximian.com>
18166
18167         [ Fixes bug #80167 ]
18168         
18169         * ThemeWin32Classic.cs: don't draw the image if the button's flat
18170         style is FlatStyle.System.
18171
18172         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
18173         ButtonBase.flat_style private, and switch uses of it to the public
18174         property.
18175         
18176 2006-12-08  Chris Toshok  <toshok@ximian.com>
18177
18178         [ Fixes bug #80121 ]
18179         
18180         * ThemeWin32Classic.cs: center the caption text in the datagrid
18181         when we draw it.
18182
18183         * DataGrid.cs: lessen the amount we add to the caption height from
18184         6 to 2.  6 was making it huge.
18185
18186 2006-12-08  Andreia Gaita  <avidigal@novell.com>
18187
18188         * UpDownBase: Handle MouseWheel call directly instead of capturing
18189         the inner textbox's OnMouseWheel. Fixes #80166
18190
18191 2006-12-08  Jackson Harper  <jackson@ximian.com>
18192
18193         * TextControl.cs: We need to invalidate the textbox when we empty
18194         it (how had this not been discovered before?)
18195
18196 2006-12-08  Jackson Harper  <jackson@ximian.com>
18197
18198         * TextBoxBase.cs: Reworked the mouse down code so I could get it
18199         to behave like MS, we now ignore the eventargs.Click and just
18200         track state ourself, which we were already doing anyways.
18201         - Constrain the double click handler to the double click size.
18202         
18203 2006-12-08  Chris Toshok  <toshok@ximian.com>
18204
18205         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
18206         direction if that scrollbar isn't shown.  fixes bug #80158.
18207
18208 2006-12-08  Andreia Gaita  <avidigal@novell.com>
18209
18210         * NumericUpDown.cs: Update value on getter. Fixes #79950
18211
18212 2006-12-08  Chris Toshok  <toshok@ximian.com>
18213
18214         * MenuItem.cs: add back in the event cloning code.  I didn't know
18215         how to do it in the face of the EventHandlerList work i'd done
18216         last week.  Fixes bug #80183.
18217
18218 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
18219
18220         * Control.cs: Add an invalidate to the BackgroundImage setter.
18221         [Fixes 80184]
18222
18223 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
18224
18225         * ToolStrip*: Add some small properties reported by MoMA, fix event
18226         firing and default properties based off of unit tests, and add some
18227         attributes based off of the class status page.
18228
18229 2006-12-07  Jackson Harper  <jackson@ximian.com>
18230
18231         * TextBoxBase.cs: Take HideSelection into account when determining
18232         whether or not to show the selection.
18233         * RichTextBox.cs: After inserting the RTF into the document move
18234         the cursor to the beginning of the document.
18235
18236 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
18237
18238         * Control.cs: Remove static ArrayList "controls" which maintained
18239         a reference to every control created.
18240         * Application.cs: Create a static FormCollection to maintain a reference
18241         to every form created.  Use it in places that formerly enumerated through
18242         the controls one looking for forms.
18243         * Form.cs: Add and remove self from above FormCollection.
18244
18245 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
18246
18247         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
18248           not libgdk (though it makes me wonder why I didn't have any
18249           problems)
18250
18251 2006-12-07  Chris Toshok  <toshok@ximian.com>
18252
18253         [ you had to know this was coming after that last commit...]
18254         
18255         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
18256         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
18257         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
18258         XCopyArea).
18259
18260 2006-12-07  Chris Toshok  <toshok@ximian.com>
18261
18262         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
18263         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
18264         all the behavior we need for double buffering.
18265
18266         * XplatUIDriver.cs: implement the 3 double buffer methods using a
18267         client side Bitmap, just like the old Control-based double buffer
18268         code did.  The methods are virtual, so each XplatUI driver
18269         subclass can replace the implementation to use a faster, platform
18270         specific approach.
18271
18272         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
18273         double buffer code, and clean things up a bit in the process.
18274
18275 2006-12-06  Chris Toshok  <toshok@ximian.com>
18276
18277         * Control.cs: reindent WndProc.
18278
18279 2006-12-06  Chris Toshok  <toshok@ximian.com>
18280
18281         [ I wanna be like BenM when I grow up ]
18282         
18283         * Hwnd.cs: create a single static Graphics object on the static
18284         Bitmap we create.  use this for our text measurements.
18285
18286         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
18287         This was causing us to allocate a backbuffer for every control,
18288         even when it wasn't flagged as double buffered.  Instead use the
18289         single graphics instance.  This might have implications for
18290         multithreaded applications.  If we run into problems we can switch
18291         to creating 1 Graphics per control, on the static Hwnd bitmap.
18292
18293         this change nets us a 7M savings in private dirty mappings when
18294         running FormsTest.exe.
18295
18296 2006-12-06  Chris Toshok  <toshok@ximian.com>
18297
18298         * ListView.cs: the BackgroundImage override is just to set
18299         attributes.  chain up to base.BackgroundImage.
18300
18301         * RichTextBox.cs: same.
18302
18303         * ToolBar.cs: same, but we need to also redraw the toolbar when it
18304         changes, so instead a handler for BackgroundImageChanged.
18305         
18306         * Control.cs: make background_image private.
18307
18308 2006-12-06  Chris Toshok  <toshok@ximian.com>
18309
18310         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
18311         sure we even need this assignment, but roll with it for now.
18312
18313         * Control.cs: make the cursor field private.
18314
18315 2006-12-06  Chris Toshok  <toshok@ximian.com>
18316
18317         * Form.cs: we don't need to explicitly set ImeMode to
18318         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
18319         behavior in the face of ImeMode.Inherit.
18320
18321         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
18322         change the ctor's assignment to use ImeMode instead of ime_mode.
18323
18324         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
18325         ImeModeInherit.  Only check for the parent's imemode (and return
18326         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
18327         This fixes the button unit test, which sets both ImeMode and
18328         DefaultImeMode to ImeMode.Disable.
18329
18330         also make the ime_mode field private.
18331
18332 2006-12-06  Chris Toshok  <toshok@ximian.com>
18333
18334         * Control.cs: make control_style private.
18335
18336         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
18337         setting the styles to true, then setting them to false instead of
18338         reverting to their previous values.
18339
18340         also, call SetStyle on the scrollbars instead of using
18341         control_style directly.
18342
18343 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
18344
18345         * FormCollection.cs: Implement. [2.0]
18346
18347 2006-12-06  Chris Toshok  <toshok@ximian.com>
18348
18349         * Control.cs: make tab_stop private.
18350
18351         * Label.cs: set TabStop, not tab_stop.  reformat some event
18352         add/remove methods to make them more compact.
18353
18354 2006-12-06  Chris Toshok  <toshok@ximian.com>
18355
18356         * RadioButton.cs: fix TabStop handling.
18357
18358 2006-12-06  Chris Toshok  <toshok@ximian.com>
18359
18360         * TextBox.cs: remove the explicit assignments to has_focus.
18361         Control does that.
18362
18363         * ButtonBase.cs: remove the assignment to has_focus.  Control will
18364         manage that.
18365         
18366 2006-12-06  Chris Toshok  <toshok@ximian.com>
18367
18368         * ButtonBase.cs: remove all uses of is_enabled from this code.
18369         it's always true when any of the code containing the checks is
18370         executed.
18371
18372 2006-12-06  Chris Toshok  <toshok@ximian.com>
18373
18374         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
18375         with different semantics (some are present in both 1.1 and 2.0
18376         profiles) so that we match MS's behavior in our unit tests.
18377
18378 2006-12-06  Jackson Harper  <jackson@ximian.com>
18379
18380         * TextControl.cs: Make this operation undoable.
18381         * TextBoxBase.cs: Factor the border width into the preferred
18382         height.
18383         - implement Modified as per the spec.
18384
18385 2006-12-06  Chris Toshok  <toshok@ximian.com>
18386
18387         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
18388
18389 2006-12-06  Chris Toshok  <toshok@ximian.com>
18390
18391         * Control.cs: make right_to_left and context_menu fields private.
18392
18393 2006-12-06  Chris Toshok  <toshok@ximian.com>
18394
18395         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
18396         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
18397         Control.child_controls private.  switch all uses over to
18398         Control.Controls.
18399
18400 2006-12-06  Chris Toshok  <toshok@ximian.com>
18401
18402         * System.Windows.Forms/GroupBox.cs,
18403         System.Windows.Forms/AccessibleObject.cs,
18404         System.Windows.Forms/ErrorProvider.cs,
18405         System.Windows.Forms/Control.cs,
18406         System.Windows.Forms/UpDownBase.cs,
18407         System.Windows.Forms/ScrollBar.cs,
18408         System.Windows.Forms/DateTimePicker.cs,
18409         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
18410         System.Windows.Forms/ToolTip.cs,
18411         System.Windows.Forms/RadioButton.cs,
18412         System.Windows.Forms/LinkLabel.cs,
18413         System.Windows.Forms/Splitter.cs,
18414         System.Windows.Forms/TextBoxBase.cs,
18415         System.Windows.Forms/ToolStripTextBox.cs,
18416         System.Windows.Forms/ContainerControl.cs,
18417         System.Windows.Forms/ThemeWin32Classic.cs,
18418         System.Windows.Forms/SizeGrip.cs,
18419         System.Windows.Forms/ToolStripDropDown.cs,
18420         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
18421         private.  switch all uses over to Control.Parent.
18422
18423 2006-12-06  Chris Toshok  <toshok@ximian.com>
18424
18425         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
18426         Control does this before calling emitting these events.
18427
18428         * TabControl.cs: same.
18429
18430         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
18431         Control.client_rect.
18432
18433         * ButtonBase.cs: use the ClientSize property instead of the
18434         client_size field.
18435
18436         * ScrollableControl.cs: same.
18437
18438         * Control.cs: another pass at making properties private.  also,
18439         move the initialization of tab_stop to the ctor.
18440
18441 2006-12-05  Andreia Gaita <avidigal@novell.com>
18442
18443         * TabControl.cs: Let the selected index be set freely if the 
18444         control handle is not yet created.
18445
18446 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
18447
18448         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
18449         internal until I can rewrite DefaultLayout.
18450         * ToolStrip.cs: Fix build error and some general cleaning.
18451         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
18452         Fix build errors caused by making some of Control's fields private.
18453
18454 2006-12-05  Jackson Harper  <jackson@ximian.com>
18455
18456         * TextControl.cs: Redo Insert a little so that it use IndexOf
18457         instead of Split, this prevents it from messing up on things like
18458         \n\n\n. Also more effecient since the split array doesn't need to
18459         be created.
18460         * TextBoxBase.cs: AppendText doesnt handle multiline and non
18461         multiline text differently, this is the first of many fixes that
18462         will make multiline/non-multiline the same thing as far as the
18463         TextBoxBase is concerned.
18464         - Don't split the text and insert lines, this can lose some line
18465         endings (like is the last line a soft or hard break). Instead use
18466         the new Insert.
18467         - Fix an off by one when combining all the lines in the Text
18468         getter.
18469         - Remove separate multiline handling from the Text getter/setter.
18470
18471 2006-12-05  Chris Toshok  <toshok@ximian.com>
18472
18473         * ButtonBase.cs: a few changes:
18474
18475         - don't reinitialize internal Control fields in the ctor when they
18476         have the same values as Control sets them.
18477
18478         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
18479         this before calling those methods.
18480
18481         - we don't need to call Refresh for anything.  use Invalidate
18482         instead.
18483
18484         - OnEnabledChanged doesn't need to redraw at all - Control.cs
18485         calls Refresh in its OnEnabledChanged.
18486         
18487         - several of the events we were registered for in the ctor to
18488         redraw ourselves already include calls to Invalidate in the
18489         property setters that raise the events.  remove the extra
18490         invalidation.
18491
18492         - reformat a switch statement that was 83274658 columns wide.
18493         
18494 2006-12-05  Mike Kestner  <mkestner@novell.com>
18495
18496         * ComboBox.cs: fix a unit test regression from a TextBox
18497         SelectionLength return of -1 when there's no selection.  
18498
18499 2006-12-05  Chris Toshok  <toshok@ximian.com>
18500
18501         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
18502         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
18503         cleaning up some of the internal Control fields being used by
18504         subclasses.
18505
18506 2006-12-05  Mike Kestner  <mkestner@novell.com>
18507
18508         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
18509         listbox after AddImplicit calls since it defaults to hidden. Add a 
18510         hack to preserve requested heights across DropDownStyle changes.
18511
18512 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
18513
18514         * PropertyGrid.cs: Hide FindFirstItem method from public API.
18515
18516 2006-12-05  Chris Toshok  <toshok@ximian.com>
18517
18518         * DataGridView.cs: fix compiler warnings.
18519
18520         * PrintControllerWithStatusDialog.cs: same.
18521
18522         * ToolBar.cs: same.
18523
18524         * FolderBrowserDialog.cs: same.
18525
18526         * Splitter.cs: same.
18527
18528         * DataGridViewComboBoxCell.cs: same.
18529
18530         * XplatUIWin32.cs: same.
18531
18532         * PictureBox.cs: same.
18533
18534         * Win32DnD.cs: same.
18535
18536         * PageSetupDialog.cs: same.
18537
18538         * FileDialog.cs: same.
18539
18540         * PrintDialog.cs: same.
18541
18542         * DataGridTextBoxColumn.cs: same.
18543
18544         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
18545
18546 2006-12-05  Chris Toshok  <toshok@ximian.com>
18547
18548         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
18549         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
18550         System.ComponentModel.EventHandlerList work.
18551
18552 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
18553
18554         * DrawTreeNodeEventArgs.cs: Added.
18555
18556 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18557         
18558         * InternalWindowManager.cs: Remove an unused field.
18559         
18560 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18561
18562         * InternalWindowManager.cs:
18563         - Save the point where the title bar is clicked.
18564         
18565         * MdiWindowManager.cs:
18566         - Only allow moving of the window as long as the 
18567         clicked point on the title bar does not get out of
18568         MdiClient's rectangle. Fixes #79982.
18569         
18570         * MdiClient.cs:
18571         - Added Horizontal/VerticalScrollbarVisible.
18572         - Simplified the scrollbar sizing algorithm.
18573         - Cache the difference in scrolled value in
18574         H/VBarValueChanged and move the calculation out
18575         of the for loop.
18576
18577 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18578
18579         * Control.cs: Make the Console.WriteLine in WndProc 
18580         write more info.
18581
18582 2006-12-05  Chris Toshok  <toshok@ximian.com>
18583
18584         * ToolStripManager.cs, ToolStripButton.cs,
18585         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
18586         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
18587         ToolStripSplitButton.cs, ToolStripSeparator.cs,
18588         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
18589         ToolStripProgressBar.cs, ToolStripContainer.cs,
18590         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
18591         to using System.ComponentModel.EventHandlerList.
18592
18593 2006-12-04  Chris Toshok  <toshok@ximian.com>
18594
18595         * LinkLabel.cs: fix up compiler warnings.
18596
18597         * TableLayoutSettings.cs: same.
18598
18599         * TreeView.cs: same.
18600
18601         * ToolBar.cs: same.
18602
18603         * TabControl.cs: same.
18604
18605         * RichTextBox.cs: same.
18606
18607         * ListViewItem.cs: same.
18608
18609         * PropertyGrid.cs: same.
18610
18611         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
18612
18613         * ToolTip.cs same.
18614
18615         * TextRenderer.cs: fix up compiler warnings.
18616
18617         * Label.cs: same.
18618
18619         * Form.cs: corcompare fixes.
18620
18621         * PictureBox.cs: fix up compiler warnings.
18622
18623         * ImageListStreamer.cs: same.
18624
18625         * TrackBar.cs: corcompare fix.
18626
18627         * Control.cs: fix up compiler warnings.
18628
18629         * SplitterPanel.cs: same.
18630
18631         * NumericTextBox.cs: same.
18632
18633         * ImageList.cs: same.
18634
18635         * StatusStrip.cs: same.
18636
18637         * ProgressBar.cs: corcompare fix.
18638
18639         * ToolStripButton.cs: fix up compiler warnings.
18640
18641         * ToolStripStatusLabel.cs: same.
18642
18643         * ToolStripSplitButton.cs: same.
18644
18645         * ToolStripSeparator.cs: same.
18646
18647         * ToolStripProgressBar.cs: same.
18648
18649         * ToolStripDropDownMenu.cs: same
18650
18651         * ToolStripDropDown.cs: same.
18652
18653         * ToolStripDropDownButton.cs: same.
18654
18655         * ToolStrip.cs: same.
18656
18657         * ToolStripControlHost.cs: same.
18658
18659         * ToolStripContentPanel.cs: same.
18660
18661         * ToolStripDropDown.cs: same.
18662
18663         * ToolStripContainer.cs: same.
18664
18665         * ToolStripPanel.cs: same, and add "new" where we need it to work
18666         with the new ArrangedElementCollection.
18667
18668         * ToolStripItemCollection.cs: add "new" where we need it to work
18669         with the new ArrangedElementCollection.
18670
18671 2006-12-04  Andreia Gaita <avidigal@novell.com>
18672
18673         * TabControl.cs: Fix default tab selection to after TabControl
18674         gets focus and not before. Fixes #80128
18675
18676 2006-12-04  Chris Toshok  <toshok@ximian.com>
18677
18678         * DataGridTableStyle.cs: remove the gross calling of
18679         datagrid.Refresh from here.  It's a broken idea and it doesn't
18680         work anyway.
18681
18682         * DataGrid.cs: instead, just register/unregister from the
18683         DataGridTableStyle events in CurrentTableStyle.  we play it
18684         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
18685         even though some would most likely not require it.  Fixes bug
18686         #80115 (and one portion of #80117 as a side effect).
18687
18688 2006-12-04  Chris Toshok  <toshok@ximian.com>
18689
18690         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
18691         so the textbox (if any) goes away.  Fixes bug #80117.
18692
18693 2006-12-04  Chris Toshok  <toshok@ximian.com>
18694
18695         * DataGridColumnStyle.cs: set the column's readonly property
18696         initially based on the property descriptor's IsReadOnly.  Fixes
18697         bug #80044.
18698
18699 2006-12-04  Chris Toshok  <toshok@ximian.com>
18700
18701         * ComboBox.cs: wrap the dropdown style changing work in
18702         SuspendLayout/ResumeLayout.  Fixes bug #79968.
18703
18704 2006-12-04  Jackson Harper  <jackson@ximian.com>
18705
18706         * TextBoxBase.cs: Fix off by one, since these are one-based.
18707         * TextBox.cs: Select all the text when we get focus.  The TextBox
18708         does this but the RTB does not.
18709
18710 2006-12-04  Chris Toshok  <toshok@ximian.com>
18711
18712         * DataGridTextBoxColumn.cs: remove some spew.
18713
18714         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
18715         but some part of me is saying "it shouldn't be here.."  At any
18716         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
18717         setting the value.
18718
18719 2006-12-04  Chris Toshok  <toshok@ximian.com>
18720
18721         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
18722         to reassign the propertydescriptor.
18723
18724 2006-12-04  Jackson Harper  <jackson@ximian.com>
18725
18726         * TextBoxBase.cs:
18727         * TextControl.cs: Remove some unused variables.  Maybe this will
18728         patch things up between mike and I.
18729         - don't split lines less then one char wide, if the viewport is
18730         that small text won't be visible anyways.
18731         
18732 2006-12-04  Jackson Harper  <jackson@ximian.com>
18733
18734         * TextBoxBase.cs: Default selection length is -1, need to do some
18735         more testing on windows to see when this is used for the property.
18736         - Redid the Lines [] property to that we properly remove soft line
18737         breaks
18738         - added support for preserving carriage returns
18739         -  CanUndo is not a variable like 'is undo enabled' it just returns
18740         true if there is undo operations available.
18741         - AppendText doesn't need to grab the last tag itself anymore,
18742         this happens automatically when we move the cursor.
18743         * TextControl.cs: Add CompoundActions to the undo class. This
18744         allows combining the other operations into one big option.  ie a
18745         paste will combine { delete old, insert new, move cursor }
18746         - Add InsertString undo operation
18747         - New method for deleting multiline text
18748         - Add carriage returns to lines. So we can preserve carriage
18749         returns when text is 'roundtripped'
18750
18751 2006-12-04  Chris Toshok  <toshok@ximian.com>
18752
18753         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
18754         minimum 0.  Fixes the scrollbar exception in bug #80136.
18755
18756 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18757
18758         * MdiClient.cs: 
18759         * MdiWindowManager: Removed unused fields and methods.
18760         
18761 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18762         
18763         * StatusBar.cs: Update all panels when a AutoSize=Contents
18764         panel needs updating.
18765         
18766         * StatusBarPanel.cs: Remove twidth and only use initialize.
18767         Fixes #80031.
18768                 
18769 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18770
18771         * Form.cs: When a form's MdiParent is set add it directly
18772         on top of the z-order in stead of relying on MdiClient's
18773         ActivateChild to do it. Fixes #80135.
18774         
18775         * MdiClient.cs: 
18776         - Remove original_order, mdi_child_list is already doing
18777         the same thing.
18778         - Create mdi_child_list on construction in
18779         stead of first use (avoids a few null checks).
18780
18781         * MenuItem.cs: Use an already existing list of mdi children
18782         to get the correct order of children and remove the other
18783         redundant list.
18784
18785 2006-12-04  Chris Toshok  <toshok@ximian.com>
18786
18787         * PropertyGridView.cs: cached_splitter_location is only used in
18788         !DOUBLEBUFFER code.
18789
18790         * PropertyGrid.cs: implement the ComComponentNameChanged event
18791         using Events, hoping that would fix the warning.  Looks like a
18792         compiler bug instead (#80144).
18793
18794         * PropertyManager.cs: remove unused method.
18795
18796 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
18797
18798         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
18799         include parentesis to fix expression evaluation. Fixes #79634.
18800
18801 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
18802         
18803         * MenuAPI.cs:
18804         - Changes to fix behavior in Menu control, some reported in #80097
18805         and other detected during behavior refactory like a select event
18806         problems.
18807         - Remove unneded "if's" conditions.
18808         - Created an internal to flag when popup is active in control, we need 
18809         it because in .NET you can have menu active but without popup active
18810         when you active menu using popup without visible items.
18811         - Mimic win32 behavior for Select and Popup events.  
18812         - Dont open popup menu when you dont have visible subitems.
18813         - Do nothing when click on disabled menu item.
18814         - Some small changes to follow the coding style guidelines.
18815         - Unselect menu only when another control gives focus. Fixes #80097.
18816         - Remove unused code.
18817         
18818         * MenuItem.cs: internal VisibleItems method to check if menu
18819         theres visible subitems, it will be usefull to fix some 
18820         behavior in Menu control.
18821         
18822 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
18823         
18824         * Timer.cs: Tag property for 2.0 profile.
18825         
18826 2006-12-01  Chris Toshok  <toshok@ximian.com>
18827
18828         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
18829         
18830         * Win32DnD.cs: comment out some unused fields.
18831
18832         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
18833         some unused properties/methods.
18834
18835         * XplatUIX11.cs: fix MousePosition so we override the base class's
18836         property instead of conflicting with it.
18837
18838         * PictureBox.cs: comment out some unused fields
18839
18840         * OSXStructs.cs: make some struct fields public.
18841
18842         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
18843         MousePosition so we override the base class's property instead of
18844         conflicting with it.
18845
18846         * X11Dnd.cs: comment out some unused fields
18847
18848         * X11DesktopColors.cs: fix some struct field visibility to quiet
18849         the compiler.
18850
18851         * X11Dnd.cs: remove some debug code.
18852
18853         * ThemeClearlooks.cs: comment out unused field.
18854
18855         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
18856
18857         * ThemeGtk.cs: comment out some unused pinvokes.
18858
18859         * Timer.cs: remove some unused fields.
18860
18861         * ThemeClearlooks.cs: comment out unused field.
18862
18863         * UpDownBase.cs: comment out unused field.
18864
18865         * DataObject.cs: comment out unused field.
18866
18867         * DataGridBoolColumn.cs: reomve unused field.
18868
18869         * DataGrid.cs: remove unused field.
18870
18871         * Cursor.cs: remove old ToBitmap code.
18872
18873         * ControlPaint.cs: remove unused method.
18874
18875         * ScrollBar.cs: remove unused fields.
18876
18877         * ComboBox.cs: remove unused field, and chain up to
18878         AccessibleObject ctor.
18879
18880         * ListBox.cs: remove unused field.
18881
18882         * ButtonBase.cs: wrap a couple fields in NET_2_0.
18883
18884         * GridEntry.cs: remove unused fields.
18885
18886         * Binding.cs: remove unused fields.
18887
18888         * AxHost.cs: remove unused method.
18889
18890         * ContainerControl.cs: remove unused field.
18891
18892         * ScrollableControl.cs: remove unused fields.
18893
18894 2006-12-01  Chris Toshok  <toshok@ximian.com>
18895
18896         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
18897         the Where/WhereString stuff.  it's easy enough to CWL
18898         Environment.StackTrace.
18899
18900         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
18901         unused private fields.
18902
18903 2006-12-01  Jackson Harper  <jackson@ximian.com>
18904
18905         * TextControl.cs: Do not update the view while inserting multiline
18906         text. If we update the view we might wrap lines, before entering
18907         the new lines, which causes the new line insertion calculations to
18908         be totally fubared.
18909         - Remove an old TODO
18910         - Make debug output a little nicer
18911         
18912 2006-12-01  Chris Toshok  <toshok@ximian.com>
18913
18914         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
18915
18916 2006-12-01  Chris Toshok  <toshok@ximian.com>
18917
18918         [ fix the majority of the CS0108 warnings we've been suppressing ]
18919         
18920         * TreeView.cs: mark BackgroundImageChanged as 'new'.
18921
18922         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
18923         to "LayoutToolBar" to quiet mcs.
18924         
18925         * TabControl.cs: mark our ControlCollection class as 'new'.
18926
18927         * TextBoxBase.cs: mark some events as 'new'.
18928
18929         * Splitter.cs: TabStop is 'new'.
18930
18931         * ControlBindingsCollection.cs: mark a few methods as new since
18932         they change the visibility from protected to public.
18933
18934         * RadioButton.cs: DoubleClick -> base class, and remove unused
18935         HaveDoubleClick.
18936
18937         * MonthCalendar.cs: ImeMode property -> base class, and mark many
18938         events as new.
18939
18940         * NumericUpDown.cs: TextChanged -> base class.
18941
18942         * CheckedListBox.cs: mark our ObjectCollection class as new to
18943         quiet mcs.
18944
18945         * FolderBrowserDialog.cs: make HelpRequest event new and have it
18946         muck with the base class.
18947
18948         * StatusBar.cs: fix some mcs warnings about Update being the same
18949         name as a base class method.
18950
18951         * RichTextBox.cs: mark some events as new, and make them do things
18952         to the base class impl.
18953
18954         * UserControl.cs: mark TextChanged as new, and have it manipulate
18955         base.TextChanged.
18956
18957         * UpDownBase.cs: mark some things new.
18958
18959         * CheckBox.cs: mark DoubleClick "new", and add some text about
18960         what we need to look at.
18961
18962         * Panel.cs: make the events "new", and manipulate the base
18963         version.  these are just here for attributes.
18964
18965         * AccessibleObject.cs: make owner private.
18966
18967         * Control.cs: deal with AccessibleObject.owner being private.
18968         cache our own copy if we need it.
18969
18970         * Button.cs: add "new" to the DoubleClickEvent.
18971
18972         * ListBox.cs: no need to track our own has_focus here.  let
18973         Control.has_focus do it for us.  Also some other work to clear up
18974         warnings about not overriding base class methods of the same name.
18975         
18976         * ComboBox.cs: clear up some warnings about not override base
18977         class methods of the same name.
18978
18979 2006-12-01  Chris Toshok  <toshok@ximian.com>
18980
18981         * Form.cs: flag a few things as "new" to quiet some of the mcs
18982         warnings.
18983
18984         * AxHost.cs: same.
18985
18986         * PrintPreviewDialog.cs: same.
18987
18988         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
18989         now DGV isn't so horrible on the class status page.  also, move
18990         all events to using System.ComponentModel.EventHandlerList.  my
18991         wrists hurt.
18992
18993 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18994
18995         * MdiWindowManager.cs:
18996         - Set form to active mdi child if shown,
18997         and update the active mdi child to the next 
18998         remaining child in the z-order if the form is hidden.
18999
19000         * Form.cs: 
19001         - Track if the form has been visible and if its 
19002         visibility is beeing changed, so that the MdiClient
19003         can properly decide the ActiveMdiChild. The MdiClient 
19004         cannot track this since the form can change visibility 
19005         before MdiClient is created.
19006
19007         * MdiClient.cs:
19008         - Don't activate anything of the parent form is changing
19009         its visibility.
19010         - Rework ActiveMdiChild to only return visible mdi 
19011         children and take into account several other corner 
19012         cases.
19013
19014 2006-12-01  Chris Toshok  <toshok@ximian.com>
19015
19016         * IBindableComponent.cs: new 2.0 interface.
19017
19018 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
19019
19020         * DataGrid.cs: Font for caption area is bold by default.
19021
19022 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
19023
19024         * Menu.cs: Tag property for 2.0.
19025         
19026 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
19027
19028         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
19029         
19030 2006-12-01  Chris Toshok  <toshok@ximian.com>
19031
19032         * TreeView.cs: doh, the Begin* events should be
19033         TreeViewCancelEventHandler.
19034
19035 2006-12-01  Chris Toshok  <toshok@ximian.com>
19036
19037         * Form.cs: Form.ControlCollection already stores off the
19038         form_owner field.  don't access the base class's internal "owner"
19039         field.
19040
19041         * Control.cs: make all the fields in Control.ControlCollection
19042         private.  there's no need for any internal fields here.
19043
19044 2006-12-01  Chris Toshok  <toshok@ximian.com>
19045
19046         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
19047         OnHandleCreated.  Fixes bug #80109.
19048
19049 2006-12-01  Chris Toshok  <toshok@ximian.com>
19050
19051         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
19052         SplitContainer.cs, Control.cs, StatusStrip.cs,
19053         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
19054         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
19055         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
19056         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
19057         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
19058         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
19059         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
19060         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
19061         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
19062         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
19063
19064         do most of the work to convert our code over to use
19065         System.ComponentModel.Component.Events for
19066         adding/removing/dispatching events.
19067
19068
19069 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
19070
19071         * DataGridView.cs: Fix an ArgumentNullException reported 
19072         twice today in IRC.
19073
19074 2006-11-30  Mike Kestner  <mkestner@novell.com>
19075
19076         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
19077         grabbed listbox.  Fixes #80036 and #80101.
19078
19079 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
19080
19081         * Message.cs: Changed ToString() to match MS.
19082         
19083 2006-11-30  Jackson Harper  <jackson@ximian.com>
19084
19085         * TextBoxBase.cs: You can still change the selected text on a read
19086         only textbox.
19087         * TextControl.cs: Lower magic number for wrap calculations. This
19088         lets text get closer to the right (far) edge.
19089
19090 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
19091
19092         * Control.cs: Tweak 2.0 layout properties.
19093         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
19094         * TextRenderer.cs: Add a new overload.
19095         * ToolStrip*: Huge amount of changes and new features.
19096
19097 2006-11-30  Mike Kestner  <mkestner@novell.com>
19098
19099         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
19100         scroll range correct.  Fixes #79994.
19101
19102 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
19103
19104         * MdiWindowManager.cs: Update main form's text when
19105         a form is closed. (fixes #80038)
19106         
19107 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
19108
19109         * ToolBar.cs:
19110         - Fix an regression in ButtonSize.
19111         - Get ImeMode default value change to "Disable".
19112         - Get ShowTooltips default value change to true, default value is 
19113         "false" but after make a test in .NET we get "true" result as default.
19114         
19115 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
19116
19117         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
19118
19119 2006-11-29  Chris Toshok  <toshok@ximian.com>
19120
19121         * XplatUIWin32.cs (GetWindowTransparency): check return value of
19122         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
19123         SetWindowTransparency hasn't been called.
19124
19125 2006-11-29  Chris Toshok  <toshok@ximian.com>
19126
19127         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
19128         if it's supported.
19129         (set_AllowTransparency): reorder things a little so that the
19130         WS_EX_LAYERED style is removed properly.
19131
19132 2006-11-29  Chris Toshok  <toshok@ximian.com>
19133
19134         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
19135         
19136         * Form.cs: only call the XplatUI transparency method (get/set) if
19137         SupportsTransparency says it's supported. Otherwise fallback to
19138         doing nothing (in the set case) or returning the instance field we
19139         cache (in the get case).
19140
19141         * XplatUIStructs.cs: add TransparencySupport flag enum.
19142         
19143         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
19144         change to SupportsTransparency.
19145
19146         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
19147         TransparencySupport.None from SupportsTransparency.
19148
19149         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
19150         TransparencySupport.Set from SupportsTransparency.
19151
19152         * XplatUIWin32.cs: implement GetWindowTransparency calling
19153         GetLayeredWindowAttributes, and implement SupportsTransparency by
19154         checking whether or not both
19155         GetWindowTransparency/SetWindowTransparency are available
19156         entrypoints.  We need to do this since SetWindowTransparency is
19157         available as of win2k, but GetWindowTransparency requires winxp.
19158         yay win32 api.
19159
19160         * XplatUI.cs: Add GetWindowTransparency, and change
19161         SupportsTransparency to allow for either/both Get/Set.
19162
19163 2006-11-29  Chris Toshok  <toshok@ximian.com>
19164
19165         * DataGrid.cs: keep from going into an infinite loop redrawing a
19166         datagrid that has no datasource.  Fixes bug #80033.
19167
19168 2006-11-29  Chris Toshok  <toshok@ximian.com>
19169
19170         * MenuItem.cs: fix the NRE when we assign text (and therefore call
19171         Invalidate) before the mainmenu has been assigned to a control.
19172
19173 2006-11-29  Chris Toshok  <toshok@ximian.com>
19174
19175         * DataGrid.cs: detect when we should be double the double click
19176         row/column autosize stuff, although that codepath has yet to be
19177         written.  part of the work for bug #79891.
19178
19179 2006-11-29  Chris Toshok  <toshok@ximian.com>
19180
19181         * Binding.cs (SetControl): fix unit test.
19182
19183 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19184
19185         * PageSetupDialog.cs: Validate the margins and set them in
19186         PageSettings. 
19187         * NumericTextBox.cs: New class to mimic the behavior of the
19188         textboxes used in the printing dialogs.
19189
19190 2006-11-29  Andreia Gaita  <avidigal@novell.com>
19191         
19192         * Form.cs: Revert previous change (remove call UpdateBounds
19193         from form constructor), because it messes with the handle creation
19194         order, and that one needs lots and lots of love.
19195         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
19196         for valid printer and throw InvalidPrinterException if document
19197         is set but printer not valid), adding a MonoTODO. Once 
19198         handle creation is done properly, we can put this back in.
19199
19200 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19201
19202         * MenuItem.cs: Create a invalidate method for menu item, to be
19203         calling from set text, it make text changes to imadiate update
19204         on screen. Fixes #80013. 
19205         
19206 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19207
19208         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
19209         fixes bug #80070 and some other problem on toolbar buttons
19210         layout.
19211
19212 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19213
19214         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
19215         with dotted brush.      Fixes #79564
19216         
19217 2006-11-28  Andreia Gaita  <avidigal@novell.com>
19218
19219         * Form.cs: Removed call to UpdateBounds on Form
19220         constructor, it was causing a call to CreateHandle
19221         before it was supposed to.
19222         * PrintControllerWithStatusDialog: Applied patch
19223         by Chris Toshok to hide controller when there are
19224         no printers available.
19225         PrintDialog.cs: initialize printer settings to 
19226         null - correct DefaultValues test #5
19227         * PrintPreviewControl.cs: Move PrintController
19228         initialization to GeneratePreview
19229         * PrintPreviewDialog.cs: 
19230         - Remove Preview generation     from Document_set(). It is 
19231         called on OnPaint
19232         - Throw InvalidPrinterException on CreateHandle if
19233         a Document is set but there are no printers or 
19234         printer is not valid.
19235         * ThemeWin32Classic: don't paint PrintPreviewControl
19236         if there is nothing to paint    
19237
19238 2006-11-28  Miguel de Icaza  <miguel@novell.com>
19239
19240         * Form.cs: Add another popular method.
19241
19242         * TabPage.cs: ditto.
19243
19244 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19245
19246         * MenuItem.cs: Fixed a warning.
19247         * InternalWindowManager: Fixed a warning.
19248
19249 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19250
19251         * MenuItem.cs:
19252         - When cloning a menu also clone MdiList and clone the 
19253           window menu items properly (as the forms and menuitems
19254           are kept in an internal hashtable, these need updating 
19255           as well)
19256         - Rewrote the window menu code, menu items are added in the
19257           order the forms were added to their parent, and they are
19258           updated every time the window menu is shown (before the
19259           list was only generated once, in the current order of the
19260           forms, and would never be updated). A checkmark is shown
19261           next to the item corresponding to the active mdi child.
19262
19263 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19264
19265         * XplatUIStructs.cs: 
19266         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
19267         
19268         * XplatUIWin32.cs: 
19269         - Added TME_NONCLIENT to TMEFlags.
19270         - Handles WM_NCMOUSEMOVE in GetMessage to 
19271           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
19272
19273         * MdiWindowManager:
19274         - Now merges mdi child menu to parent menu when maximized.
19275         - Recalculate NC areas of both mdi child and mdi parent. 
19276           Fixes #79757 (4).
19277           on window state and size changes.Fixes #79844 (3).
19278         - Handle WM_NCCALCSIZE to properly calculate borders.
19279
19280         * Form.cs:
19281         - Add/remove to the mdi containers list of mdi children 
19282           in the order they are added.
19283         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
19284           to the maximized mdi child.
19285         
19286         * InternalWindowManager.cs:
19287         - Only execute a click on the control buttons on the mouse up,
19288           not on the mouse down. Show the state of the button 
19289           (was only showing Normal state, never Pressed state). The
19290           pressed button now follows the mouse (if you click the Close 
19291           button and move the mouse over the Maximize button, the 
19292           Maximize button will be shown as pressed). Since Win32 does
19293           not generate WM_NCLBUTTONUP if you release the button outside
19294           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
19295           it as a mouse up.
19296         
19297         * ThemeWin32Classic.cs:
19298         - Draw a missing border around mdi child forms. Fixes #79844 (2).
19299
19300         * MdiClient.cs:
19301         - Added a list of forms which contains the order the forms are
19302           added to the mdi parent.
19303         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
19304         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
19305         - If the active form changes set the scrollbars to the top
19306           of the Z order, otherwise the form could hide them.
19307         - Scrollbars are now sized according to ClientSize, not 
19308           to Size, and they take into account the other scrollbar
19309           to determine maximum.
19310         
19311 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
19312         
19313         * XplatUI.cs:
19314         * XplatUIDriver.cs:
19315         * XplatUIX11.cs:
19316         * XplatUIWin32.cs:
19317         * XplatUIOSX.cs:
19318         - Added RequestAdditionalWM_NCMessages for windows to 
19319           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
19320           Currently only implemented in XplatUIWin32.
19321
19322 2006-11-27  Chris Toshok  <toshok@ximian.com>
19323
19324         * Hwnd.cs: only add the hwnd to the windows hash in
19325         set_WholeWindow and set_ClientWindow if whole_window/client_window
19326         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
19327
19328 2006-11-27  Mike Kestner  <mkestner@novell.com>
19329
19330         * ComboBox.cs: remove redundant OnDropDown call.  It is called
19331         from the ComboListBox.ShowWindow code. Fixes #79969.
19332
19333 2006-11-27  Chris Toshok  <toshok@ximian.com>
19334
19335         * Hwnd.cs: remove the setters for ExposePending and
19336         NCExposePending - noone uses them.
19337
19338 2006-11-27  Jackson Harper  <jackson@ximian.com>
19339
19340         * TextControl.cs: new param for ReplaceSelection which determines
19341         whether we select the new selection, or set the cursor to the end
19342         of the new selection.
19343         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
19344         pasting, select the new text.
19345         * RichTextBox.cs: Use new param for ReplaceSelection.
19346
19347 2006-11-27  Jackson Harper  <jackson@ximian.com>
19348
19349         * TextBoxBase.cs: Set the selection to the caret after the caret
19350         is moved, otherwise they get out of sync.
19351
19352 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
19353
19354         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
19355         it fixes #80015
19356
19357 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
19358
19359         * ThemeWin32Classic.cs: 
19360         - Fix toolbar drop down arrow position.
19361         - Fix drop down appearance when ToolBar.Appearance is normal,
19362         it fixes #80018.
19363         
19364 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
19365
19366         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
19367         * Control.cs: Same.
19368         * UpDownBase.cs: Same.
19369         * ButtonBase.cs: Same.
19370         * ScrollBar.cs: Same.
19371         * TrackBar.cs: Same.
19372         * PictureBox.cs: Same.
19373         * UserControl.cs: Same.
19374         * Label.cs: Same.
19375         * ListControl.cs: Same.
19376         * TextBoxBase.cs: Same.
19377         * ListView.cs: Same.
19378         * RichTextBox.cs: Same.
19379         * TreeView.cs: Same.
19380
19381 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
19382
19383         * PrintDialog.cs:
19384         - Text label for where 
19385         - Text label comment was not shown
19386
19387 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
19388
19389         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
19390
19391 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19392
19393         * InternalWindowManager.cs: 
19394         - Handle WM_PARENTNOTIFY to activate the form
19395         if any child control is clicked.
19396         - The form is only sizable if not minimized.
19397
19398         * MdiWindowManager.cs:
19399         - Save the IconicBounds if the form is moved.
19400         - Rework SetWindowState, now the window bounds 
19401         are stored only if the old window state is Normal.
19402         
19403         * MdiClient.cs:
19404         - In SetWindowStates store the old window state if 
19405         the window is maximized and restore window state if
19406         the window looses focus.
19407         - Don't handle any scrollbar value changes if 
19408         initializing the scroll bars. Fixes #79771.
19409         - Reworked ArrangeIconicWindows. Current algorithm
19410         tests bounds agains all other minimized windows, if
19411         any intersections create new bounds (going left to 
19412         right, bottom to top) and then test again. When 
19413         successful the bounds are saved and never computed
19414         again. Fixes #79774.
19415
19416 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19417
19418         * InternalWindowManager.cs: Added HandleTitleBarUp.
19419
19420 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19421
19422         * NumericUpDown.cs: In .NET 1.1, user entered text is still
19423         hexadecimal in ParseUserEdit.
19424
19425         
19426 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19427
19428         * MdiWindowManager.cs: 
19429         - Handle a click on the form's icon to show the 
19430         system menu (when maximized). Fixes #79775.
19431         - Change the existing click handler for the form's
19432         icon when not maximized to show on MouseUp.
19433         Fixes #79776.
19434
19435         * Form.cs: In OnResize only layout the mdi child's
19436         parent if it actually has a parent. Might not if
19437         the window is closing.
19438
19439
19440 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19441
19442         * MdiClient.cs: Ignore active MDI client for text of parent, if
19443         child has no text set.
19444
19445 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19446
19447         * ToolBar.cs: Fixed ToString to match MS.
19448
19449 2006-11-22  Andreia Gaita  <avidigal@novell.com>
19450
19451         * NumericUpDown: 
19452         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
19453         update inner values on set. Fixes #79966.
19454         - Override OnLostFocus to update value on NET 2. Fixes #79950.
19455         - Fix hexadecimal parsing.
19456         
19457         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
19458         parent. Fixes #79957
19459
19460 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19461
19462         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
19463         the actual size has to be queried, since if height /
19464         width is negative Win32 changes it to 0. 
19465         Fixes #79999 on Windows.
19466         
19467         * XplatUIX11.cs: Set height / width to 0 if negative
19468         in SetWindowPos. Fixes #79999 on Linux.
19469         
19470 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
19471
19472         * ThemeWin32Classic.cs: Fix text redenring when button is
19473         pressed.
19474
19475 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
19476
19477         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
19478         and later navigate by mouse. Fixes #79528.
19479
19480 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
19481
19482         * ToolBar.cs: Set default value for TabStop to false in
19483         constructor, it fixes remaining behavior of bug #79863.
19484
19485 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19486
19487         * MdiWindowManager.cs:
19488         * InternalWindowManager.cs:
19489         - Moved a few methods specific to Mdi from 
19490         InternalWindowManager to MdiWindowManager.
19491         Fixes #79996.
19492         
19493 2006-11-21  Chris Toshok  <toshok@ximian.com>
19494
19495         * XplatUIOSX.cs: stub out InvalidateNC.
19496
19497         * XplatUIWin32.cs: implement InvalidateNC using the call I found
19498         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
19499
19500         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
19501
19502         * XplatUIDriver.cs: add InvalidateNC abstract method.
19503
19504         * XplatUI.cs: add InvalidateNC.
19505
19506 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
19507
19508         * ToolBar.cs: Invalidate complete button area when pressed status 
19509         was changed.
19510         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
19511         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
19512         by 1 when button is pressed.
19513
19514 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19515
19516         * ToolButton.cs: Invalidate middle of DropDown button when
19517         ToolBar theres DropDownArrows.
19518         * ThemeWin32Classic.cs: Change position of DropDown arrow and
19519         fix DropDown drawing operations.
19520
19521 2006-11-20  Chris Toshok  <toshok@ximian.com>
19522
19523         * NativeWindow.cs: fix the formatting of functions ('{' on the
19524         following line), and enable the thread exception dialog.
19525
19526         * Application.cs: remove the duplicate exception catching from
19527         here.
19528
19529 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19530
19531         * Toolbar.cs: Triggers button click event when click on icon
19532         of dropdown ToolBarButton. Fixes #79912.
19533         
19534 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19535
19536         * Theme.cs:
19537         * ThemeWin32Classic.cs:
19538         - Added a property WindowBorderFont to enable themeing
19539           of mdi child windows' Text.
19540           
19541 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19542
19543         * InternalWindowManager.cs:
19544         * Form.cs:
19545         * MdiClient.cs:
19546         * MdiWindowManager.cs: 
19547         - If mdi child is maximized, set mdi parent's
19548           text to "Parent - [Child]". Fixes #79770.
19549         - If there is any maximized mdi child windows, only the active 
19550           window (and any new windows) is maximized, the rest are normal.
19551         - On a WindowState change only save mdi child's window bounds 
19552           if the old window state was normal. Fixes #79774.
19553         - The scroll bars are now calculated on hopefully all
19554           necessary events. Fixed #79771 / #79844->6 / #79906.
19555         - MdiClient.SizeScrollBars() now takes into account docked 
19556           controls in the parent when calculating available space.
19557         - InternalWindowManager now always repaints the entire title
19558           area. Fixes #79844->1/4/5.
19559         - Added RequestNCRecalc on mdi child windowstate changes.
19560           Fixes #79772.
19561
19562 2006-11-20  Mike Kestner  <mkestner@novell.com>
19563
19564         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
19565         in the MouseUp handler of the listbox and move the return handling
19566         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
19567
19568 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19569
19570         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
19571
19572 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
19573
19574         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
19575           working in 1.2.x anymore. So, updated.
19576
19577 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
19578
19579         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
19580         NumberGroupSeparator of current culture instead of assuming en-US.
19581         Fixed bug #79967.
19582
19583 2006-11-17  Mike Kestner  <mkestner@novell.com>
19584
19585         * Control.cs: Add the concept of implicit bounds setting so that
19586         dock/undock round trips preserve explicitly set size/locations.
19587         Fixes #79313.
19588
19589 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
19590
19591         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
19592           can't handle those filters. (Fixes bug #79961)
19593
19594 2006-11-17  Chris Toshok  <toshok@ximian.com>
19595
19596         [ fixes the exit/crashes associated with #79835.  it's clearly
19597         suboptimal though, we need to figure out a better way to solve
19598         this. ]
19599         
19600         * PrintPreviewControl.cs: deal with the new invalid printer
19601         exceptions.
19602
19603         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
19604         and return false (so CommonDialog.ShowDialog doesn't actually show
19605         the form.)
19606
19607         * PrintDialog.cs: enable/disable the Ok button depending on
19608         whether or not the printer is valid.
19609
19610         * CommonDialog.cs (ShowDialog): only actually show the form if
19611         RunDialog returns true.
19612
19613 2006-11-17  Jackson Harper  <jackson@ximian.com>
19614
19615         * TextControl.cs: When soft splitting a line, mark it as a soft
19616         split line. Also carry over the current line break to the next
19617         line.
19618
19619 2006-11-17  Chris Toshok  <toshok@ximian.com>
19620
19621         * XplatUIX11.cs: when scrolling a window with an invalid area, we
19622         only want to shift the part of the invalid area that overlaps the
19623         area we're scrolling.  we also don't want to clear the invalid
19624         area unless the invalid area was entirely contained within the
19625         scrolling area.
19626
19627 2006-11-16  Chris Toshok  <toshok@ximian.com>
19628
19629         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
19630         also make sure to free the memory returned by XGetWindowProperty
19631         in GetText().
19632
19633         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
19634
19635 2006-11-16  Chris Toshok  <toshok@ximian.com>
19636
19637         * XplatUI.cs: add a new super secret way to get at the totally
19638         unsupported X11 backend.
19639
19640 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
19641
19642         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
19643
19644 2006-11-16  Jackson Harper  <jackson@ximian.com>
19645
19646         * TreeView.cs: Allow more explicit setting of top node position
19647         for scrollbars. Slower algo, but more accurate.
19648         - CollapseAll should maintain the current top node.
19649         * TextBoxBase.cs: When positioning the caret, use the line, pos
19650         method, since the x, y method does not grab the correct tag, and
19651         the caret height never gets set correctly. (Maybe I should just do
19652         away with the caret having its own height, and always use the
19653         carets current tag for height).
19654
19655 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
19656
19657         [Fixes 79778, 79923]
19658
19659         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
19660         Parent to the FosterParent instead.
19661
19662 2006-11-16  Jackson Harper  <jackson@ximian.com>
19663
19664         * TreeView.cs: Need to recalc the topnode when we expand or
19665         collapse. The scrolling methods can't handle this on their own,
19666         since they use differences between the last scroll position, and
19667         those difference get completely messed up since we are expanding
19668         nodes.  This problem should probably be fixed in the scrolling
19669         methods, so they can figure out exactly where they are, but this
19670         will slow things down a little.
19671         * ThemeWin32Classic.cs: Special case for groupboxes with empty
19672         strings, makes nunit-gui look a lot nicer.
19673
19674 2006-11-16  Chris Toshok  <toshok@ximian.com>
19675
19676         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
19677         the broken multithreaded event handling we have in here.  File
19678         this entry under "Why we should move to the new X11 backend".
19679
19680         Any thread can make it into UpdateMessageQueue, which gets events
19681         from the X socket - some of which could belong to hwnds being
19682         managed by a different thread.  We can also have multiple threads
19683         in UpdateMessageQueue at the same time, with each one reading from
19684         the X socket.  This leads to many problems, with the following
19685         solutions:
19686
19687         We can't use hwnd.Queue.Enqueue anywhere in here and must use
19688         EnqueueLocked.
19689
19690         The MotionNotify compression we do can't work across threads
19691         (without locking the entire queue, perhaps) since we call
19692         hwnd.Queue.Peek, so we just punt and don't compress motion events
19693         unless the owning thread is the one which got the X event.
19694
19695         ConfigureNotify is another fun one, since it modifies the hwnd's
19696         bounds and then enqueues the event.  We add a lock to Hwnd which
19697         is held when setting configure_pending to true (and enqueuing the
19698         event).
19699
19700         There is a race wrt the wake socket.  we need to make sure that
19701         only 1 thread is waiting on that socket, or else a thread could
19702         sleep waiting for data that never comes.  It's difficult (but not
19703         impossible) to make happen, because it seems to require something
19704         like the following:
19705
19706             1. Thread 1 polls on wake_receive
19707         
19708             2. poll returns saying there's data to be read on
19709                wake_receive.
19710         
19711             3. Thread 2 polls on wake_receive and immediately returns
19712                saying there's data to be read.
19713
19714             4. Thread 2 reads the wakeup byte from wake_receive
19715
19716             5. Thread 1 attempts to read the wakeup byte from
19717                wake_receive.
19718
19719             6. Thread 2 exits (due to a form closing, perhaps).
19720
19721             7. Thread 1 blocks forever.
19722         
19723         Fun, eh?
19724
19725         Fixing the Expose handling isn't done yet, and the races inherent
19726         in that piece of code are responsible for the drawing mistakes you
19727         see when generating expose events in a MT app (like NPlot).  This
19728         one is the likely to be the hardest to bandaid, and it doesn't
19729         appear to cause anything but drawing problems.  The other issues
19730         caused apps to exit or hang.
19731
19732         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
19733         called from a different thread than the one that should be calling
19734         these functions.
19735
19736         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
19737
19738 2006-11-15  Chris Toshok  <toshok@ximian.com>
19739
19740         * Application.cs: null out the context's MainForm when we exit
19741         RunLoop.  Fixes a newly checked in unit test as well as the last
19742         ODE from bug #79933.
19743
19744 2006-11-15  Chris Toshok  <toshok@ximian.com>
19745
19746         * Form.cs (set_Owner): allow a null value so we can clear the
19747         form's owner.
19748         (Dispose): set all our owned_form's Owner properties to null, and
19749         clear the owned_forms collection.
19750         (WM_CLOSE): clean up this a little bit.. still not right though.
19751
19752         * ApplicationContext.cs: OnMainFormClosed should only call
19753         ExitThreadCore if the main form isn't recreating.  Fixes unit
19754         test.
19755
19756 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
19757
19758         [Fixes 78346]
19759
19760         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
19761
19762 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
19763
19764         [Fixes 79433]
19765
19766         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
19767         keep popup window types from stealing focus from the main form
19768         on Windows.
19769
19770         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
19771
19772         * MenuAPI.cs: Set above flag to true.
19773
19774 2006-11-15  Chris Toshok  <toshok@ximian.com>
19775
19776         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
19777         the button being released is not in wParam.
19778
19779 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
19780
19781         * Form.cs: Add the released button to MouseEventArgs.Button
19782         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
19783         on Win32.
19784
19785 2006-11-15  Chris Toshok  <toshok@ximian.com>
19786
19787         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
19788         GetText().  untested because it's unused in our implementation.
19789         Control.Text always caches the text, even if
19790         ControlStyles.CacheText is not set.
19791
19792         fixes bug #79939.
19793
19794 2006-11-15  Chris Toshok  <toshok@ximian.com>
19795
19796         [ fixes #79933 ]
19797         
19798         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
19799         message.  no hiding, no disposing.
19800
19801         in the WM_CLOSE handler, hide the form if it's modal.
19802
19803 2006-11-15  Chris Toshok  <toshok@ximian.com>
19804
19805         * XplatUIX11.cs: use AddExpose instead of sending a message.
19806         fixes textbox border drawing.
19807
19808 2006-11-15  Chris Toshok  <toshok@ximian.com>
19809
19810         * PropertyGridView.cs: keep from crashing on mouse move/down when
19811         the property grid is empty.
19812
19813 2006-11-14  Jackson Harper  <jackson@ximian.com>
19814
19815         * TextControl.cs: Make PageUp and PageDown more like the MS
19816         versions.
19817         * TextBoxBase.cs: When we set the text property position the
19818         cursor at the beginning of the document.
19819
19820 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19821
19822         * Form.cs: if a mdi child's WindowState has changed
19823         before it's creation, it would display wrong control
19824         buttons.
19825         
19826 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
19827
19828         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
19829           (Fixes bug #79927)
19830
19831 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
19832
19833         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
19834         the window gets to paint its borders even if the window is
19835         getting smaller.
19836         
19837         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
19838         otherwise the old control buttons would still be painted 
19839         if the window gets bigger.
19840         
19841         * PaintEventArgs.cs: add an internal method so that the clip 
19842         rectangle can be changed.
19843         
19844 2006-11-13  Chris Toshok  <toshok@ximian.com>
19845
19846         [ fixes bug #79745 ]
19847         
19848         * NotifyIcon.cs: lots of cleanup.
19849
19850         * X11Structs.cs: add an enum for XEMBED messages.
19851
19852         * XplatUIX11.cs: reindent one of the giant switch statements, it
19853         was taking up an additional tab stop, and this file is already way
19854         too wide for my laptop's screen.
19855
19856         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
19857         we get it, resize the hwnd to the WMNormalHints max_width/height.
19858
19859 2006-11-13  Jackson Harper  <jackson@ximian.com>
19860
19861         * TextBoxBase.cs: Compute the value changes for the mouse wheel
19862         teh simple way.
19863
19864 2006-11-13  Chris Toshok  <toshok@ximian.com>
19865
19866         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
19867         #79898.  force a reference to the Region to stick around so the
19868         unmanaged object isn't collected (rendering our handle in the MSG
19869         stale).
19870
19871 2006-11-13  Chris Toshok  <toshok@ximian.com>
19872
19873         * XplatUIX11.cs: fix #79917 for window managers which support
19874
19875         using XStoreName on the raw utf8, and we need to convert to
19876         COMPOUND_TEXT if it's non-latin1.
19877
19878 2006-11-13  Chris Toshok  <toshok@ximian.com>
19879
19880         * Form.cs (set_DialogResult): we need to set closing to false if
19881         we're setting our result to None.  fixes bug #79908.
19882
19883 2006-11-13  Jackson Harper  <jackson@ximian.com>
19884
19885         * TextControl.cs: When formatting text, compute the adjusted tag
19886         lengths correctly, using FindTag for the end tag instead of trying
19887         to figure it out outselves.
19888         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
19889         the item, ItemHeight doesn't work, because trees with large
19890         imagelists use those for their height
19891         * TreeView.cs: ActualItemHeight factors in the image height
19892         - compute left edge of checkboxes correctly
19893         - when expanding/collapsing move the bottom down one pixel, so we
19894         aren't moving part of the node
19895
19896 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19897
19898         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
19899         stack in PaintEventStart so that it won't get disposed by the gc
19900         before reaching PaintEventEnd.
19901
19902 2006-11-13  Jackson Harper  <jackson@ximian.com>
19903
19904         * TextBoxBase.cs: Don't select the word if we are on a line with
19905         no text.
19906         - We don't need to position the caret on mouse up, since the mouse
19907         move handler should be doing this
19908         - When double clicking a blank line, the caret is advanced to the
19909         next line.
19910
19911 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
19912
19913         * TreeNodeCollection.cs: Avoid duplicating indexer code.
19914
19915 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
19916
19917         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
19918         Fixes part of bug #79910.
19919
19920 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
19921
19922         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
19923           (bug #79903). Some minor string updates to match ms.
19924
19925 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19926
19927         * FileDialog.cs: Don't add an extension if the filename
19928           already ends with that extension.
19929
19930 2006-11-10  Jackson Harper  <jackson@ximian.com>
19931
19932         * TreeView.cs: Use the currently highlighted node for the
19933         BeforeSelect event.
19934         * TextBoxBase.cs: There is no need to expand selection on
19935         MouseMove.
19936         - CanUndo means 'is there any undo operations', not 'is undo
19937         allowed on this textcontrol. Fixed ClearUndo unit test.
19938
19939 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
19940
19941         * Button.cs: only perform click when button is Selectable (so as 
19942         not to activate default buttons when they're disabled)
19943         
19944         * Control.cs: Rewrite of the SelectNextControl and related 
19945         methods. HandleClick now selects next control if the current one
19946         is being disabled.
19947         
19948         * Form.cs: OnActivated selects next active control only if Load 
19949         has already occurred. If Load hasn't run, there's no point in 
19950         selecting here, Load might change the state of controls.
19951         
19952         * FocusTest.cs: Tests marked as working again for these fixes
19953
19954 2006-11-10  Chris Toshok  <toshok@ximian.com>
19955
19956         * XplatUIX11.cs: a couple of fixes.
19957
19958         - use XInternAtoms with almost all the atoms we need to register,
19959         instead of many, many calls to XInternAtom.  should help a bit on
19960         startup time, at the expense of making the code look a little
19961         worse.
19962
19963         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
19964         isn't reparented (which seems to be a clue that we're running fon
19965         compiz) and they have an Owner form.  This fixes the tool windows
19966         in paint.net when running under compiz.
19967
19968         - when setting the opacity of a window, support both the case
19969         where the window has been reparented and also when it hasn't been.
19970         Since compiz/beryl doesn't seem to reparent windows, and these are
19971         the only window managers which support translucency, I'm not sure
19972         why we need the hwnd.reparented case at all.. but leave it in.
19973         now we get translucent windows in paint.net under compiz/beryl.
19974
19975 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19976
19977         * FileDialog.cs: Always return the value for FilterIndex that
19978           was set. Internally convert it to values that make sense.
19979
19980 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
19981         
19982         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
19983
19984 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
19985
19986         * Toolbar.cs: Change default value of DropDownArrows to true, the 
19987         signature still using false to make it compatible with MS but the 
19988         initial value is true. Fixes #79855.
19989
19990 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19991
19992         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
19993           only available on Linux.
19994
19995 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
19996
19997         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
19998         reduce number of calls to redraw method during toolbar creation.
19999
20000 2006-11-09  Mike Kestner  <mkestner@novell.com>
20001
20002         * ListView.cs : raise SelectedIndexChanged when an item is selected
20003         programmatically via the Item.Selected property.  Gert's nice 
20004         ListViewSelectedIndexChanged test fixture now runs clean.
20005
20006 2006-11-09  Mike Kestner  <mkestner@novell.com>
20007
20008         * ListView.cs : raise SelectedIndexChanged when a selected item is
20009         removed from the item collection using Remove or RemoveAt.
20010
20011 2006-11-09  Mike Kestner  <mkestner@novell.com>
20012
20013         * ListView.cs : raise SelectedIndexChanged once per selected item
20014         for compat with MS.  Fixes #79849+.
20015
20016 2006-11-09  Chris Toshok  <toshok@ximian.com>
20017
20018         * TabControl.cs: initialize row_count to 0, and set it to 1 when
20019         we need to (if we have any tab pages).  Fixes unit test.
20020
20021 2006-11-09  Chris Toshok  <toshok@ximian.com>
20022
20023         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
20024         width is 0, not 3.  Fixes a unit test.
20025
20026 2006-11-09  Mike Kestner  <mkestner@novell.com>
20027
20028         * ListView.cs : use Implicit scrollbars so that focus isn't 
20029         stolen from the listview when they are clicked. Fixes #79850.
20030
20031 2006-11-09  Chris Toshok  <toshok@ximian.com>
20032
20033         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
20034         have a root item.  Fixes #79879.
20035
20036 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
20037
20038         * FileDialog.cs:
20039           - Fix ToString ()
20040           - An ArgumentException is now thrown if a wrong filter
20041             is applied (matches ms). The previous filter doesn't change
20042             anymore if an exception is thrown.
20043           - Changing the FileName property also affects FileNames
20044         * ColorDialog.cs: The length of the CustomColors array is always
20045           16. It doesn't matter if we use a smaller array or null to update
20046           or change the custom colors property.
20047         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
20048           for RootFolder if we get a undefined value.
20049
20050 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20051
20052         * StatusBarPanel.cs: 
20053         - Width is set to MinWidth if Width is smaller than
20054         MinWidth. Fixes #79842.
20055         - MinWidth now always overrides Width (MSDN says MinWidth
20056         is set to Width when AutoSize = None, but they do not 
20057         behave like that).
20058         - Style has now the the correct default value.
20059         
20060 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20061  
20062         * TrackBar.cs: 
20063         - The control is completely invalidated on 
20064         Got/LostFocus to draw the focus rectangle correctly.
20065         - When AutoSize then height is always 45 (width for 
20066         vertical controls).
20067         
20068         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
20069         on the mouse when moved and it doesn't move when grabbed
20070         until the mouse moves as well. Also fixed some wrong 
20071         calculations when clicking on the thumb (control thought
20072         click was outside of thumb and didn't grab it).
20073         Fixes some of the issues in #79718.
20074
20075 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
20076
20077         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
20078
20079 2006-11-08  Chris Toshok  <toshok@ximian.com>
20080
20081         * PropertyGridView.cs: only call ToggleValue if the item is not
20082         readonly.
20083
20084 2006-11-08  Jackson Harper  <jackson@ximian.com>
20085
20086         * TextBoxBase.cs: The RichTextBox and textbox have very different
20087         word selection methods.  Implement the textbox's simple word
20088         selection here, and let the RichTextBox override and provide it's
20089         own.
20090         - Don't do extra selection on mouseup
20091         * RichTextBox.cs: Use the documents word selection algorithm, I
20092         think ideally, this function will be pulled into the
20093         RichTextBox.cs code someday.
20094
20095 2006-11-08  Chris Toshok  <toshok@ximian.com>
20096
20097         * RootGridEntry.cs: new class to represent GridItemType.Root.
20098
20099         * CategoryGridEntry.cs: reformat, and add boilerplate.
20100         
20101         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
20102         returns the UI parent anyway, and we need special handling to
20103         implement the GetTarget method in the face of it.  Also, implement
20104         Select().
20105
20106         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
20107         a root grid item, and use that instead of PropertyGrid.grid_items.
20108         Also, make use of TypeConverters (and add limitted support for
20109         ICustomTypeDescriptors) when initially populating the grid.
20110         Arrays now show up more or less properly.
20111
20112 2006-11-08  Chris Toshok  <toshok@ximian.com>
20113
20114         * Application.cs: set the modal dialog to non modal after we close
20115         it.  Fixes bug #79866.
20116
20117 2006-11-08  Jackson Harper  <jackson@ximian.com>
20118
20119         * TextControl.cs: When combining lines carry over the line end
20120         style from the end line.
20121         - Invalidate the selected area when setting it, if it is visible.
20122         * TextBoxBase.cs: Only rich text box can do full line selects.
20123         - Make sure to set the cursor position when there is a click,
20124         otherwise two clicks in separate areas could cause a large chunk
20125         to be selected.
20126
20127 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20128
20129         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
20130         Fixes #79863.
20131
20132 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20133
20134         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
20135         time. Remove tooltips when ToolButton click events.  Fixes #79856.
20136
20137 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20138
20139         * MenuAPI.cs: Ignore right click for menu actions and fixes
20140         menu border when clicked.  Fixes #79846.
20141
20142 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20143
20144         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
20145         MouseState after create wParam for message, this fixes mouse button 
20146         equal none in mouse up events.
20147         
20148 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
20149
20150         * Control.cs : Focus() now calls Select to set the Container's
20151         Active Control and to give it focus. To avoid infinite recursion
20152         (because ActiveControl also calls Focus at one point), a check 
20153         is made in Focus with the help of a new internal variable
20154         is_focusing.
20155
20156 2006-11-07  Mike Kestner  <mkestner@novell.com>
20157
20158         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
20159         if there's a selection.  Fixes #79849.
20160
20161 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
20162
20163         * PropertyGrid.cs: Avoid fixed height of help description label.
20164         Fixes part of bug #79829.
20165
20166 2006-11-07  Chris Toshok  <toshok@ximian.com>
20167
20168         * XplatUIX11.cs: fix #79790 again, by using the
20169         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
20170
20171 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20172
20173         * ToolBar.cs: Fix left click checking.
20174
20175 2006-11-07  Chris Toshok  <toshok@ximian.com>
20176
20177         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
20178
20179 2006-11-07  Chris Toshok  <toshok@ximian.com>
20180
20181         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
20182         PropertyManager unit tests.
20183
20184         * PropertyManager.cs: make property_name internal.
20185
20186 2006-11-07  Chris Toshok  <toshok@ximian.com>
20187
20188         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
20189         pass a unit test.  Also, don't set image_index to anything in
20190         response to setting the ImageList property.
20191
20192 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20193
20194         * ToolBar.cs: Ignore click events when mouse button is not a
20195         left button, only accepts other button for dropdown menus.  
20196         Fixes #79854.
20197
20198 2006-11-07  Chris Toshok  <toshok@ximian.com>
20199
20200         * DataGrid.cs: make the back and parent row buttons a little less
20201         ugly.
20202
20203 2006-11-07  Jackson Harper  <jackson@ximian.com>
20204
20205         * TextBoxBase.cs: When converting to Text don't put line breaks in
20206         for soft line breaks.
20207         * TextControl.cs: There is an initial "fake" line in the document,
20208         this is now a soft break line, so that an extra line feed doesn't
20209         get added to the end of documents.
20210
20211 2006-11-07  Chris Toshok  <toshok@ximian.com>
20212
20213         [ fix bug #79778 ]
20214         
20215         * CurrencyManager.cs: if the list is readonly, don't bother
20216         checking if IBindingList.AllowNew is true.
20217
20218         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
20219         for non-DataRowView datasources..  or rather, make it not crash.
20220         (DataGridPaintRelationRow): make sure we limit the row painting to
20221         the area not covered by the row header, and make our cell width at
20222         least large enough to cover the relation area.  This allows grids
20223         that have relations but no rows to render correctly.
20224         (DataGridPaintRowContents): same type of changes here.
20225         (SetDataSource): move back to always calling
20226         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
20227         navigating back through relations.
20228         (HitTest): handle the case where we have no cells but have
20229         relations.  Right now we generate a hit in cell 0 of whatever the
20230         row is, not sure if this is strictly correct, but it works for our
20231         purposes.
20232         
20233         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
20234         bother doing anything.
20235
20236 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
20237
20238         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
20239         early version of StatusStrip.  Not responsible for eaten
20240         application or firstborn children.
20241
20242 2006-11-06  Chris Toshok  <toshok@ximian.com>
20243
20244         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
20245         call GetTabRect with a -1 index.  Fixes #79847.
20246
20247 2006-11-06  Jackson Harper  <jackson@ximian.com>
20248
20249         * TreeNodeCollection.cs: Update scrollbars after clearing.
20250
20251 2006-11-06  Chris Toshok  <toshok@ximian.com>
20252
20253         * NumericUpDown.cs: fix the ToString method for some unit test
20254         love.
20255
20256 2006-11-06  Chris Toshok  <toshok@ximian.com>
20257
20258         * PropertyGrid.cs:
20259         - set the initial SelectedGridItem if we can.
20260
20261         - Exclude non-mergable properties only if we're merging > 1
20262         object.  Merging 1 object isn't really merging, obviously.
20263
20264         - Handle PropertySort.NoSort just like Alphabetical, which is
20265         wrong of course, but at least gets things on the screen.
20266         
20267         * PropertyGridView.cs:
20268         - Add method "FindFirstItem" which finds the first property grid
20269         item, so we can select it by default.
20270
20271         - make use of GridEntry.CanResetValue.
20272
20273         - Don't call RedrawBelowItemOnExpansion here anymore, the
20274         individual GridEntry's will do that.
20275
20276         - Remove the ITypeDescriptorContextImpl internal class.
20277         
20278         * GridEntry.cs:
20279         - this class needs to implement ITypeDescriptorContext, as it's
20280         what MS's PropertyDescriptorGridEntry does, which means we can
20281         remove the ITypeDescriptorContextImpl internal class from
20282         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
20283
20284         - keep a reference to our PropertyGridView, and move the call to
20285         RedrawBelowItemOnExpansion here from PGV.  This means
20286         programmaticly setting Expanded actually does something visible.
20287
20288         - add a CanResetValue() function which takes into account our
20289         possibly multiple "selected_objects" in the merged case.  Shifting
20290         PropertyGridView to use this method fixes another unreported
20291         crasher found running the test for #79829.
20292
20293         - when Top or Bounds is updated, make sure the PropertyGridTextBox
20294         is updated to reflect this.
20295
20296         * CategoryGridEntry.cs: the ctor takes the PGV now.
20297         
20298 2006-11-06  Jackson Harper  <jackson@ximian.com>
20299
20300         * TextControl.cs: These are 1 based.
20301         * TextBoxBase.cs: When setting the selected text, don't change the
20302         selected text tags, this is done by ReplaceText, just position the
20303         cursor at the end of the new text.
20304
20305 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
20306
20307         * ListView.cs: Allow label edit only when, when LabelEdit is
20308           set to true.
20309
20310 2006-11-06  Jackson Harper  <jackson@ximian.com>
20311
20312         * TextControl.cs: If a suitable wrapping position isn't found,
20313         just wrap right in the middle of a word.
20314
20315 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
20316
20317         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
20318           bug #79820.
20319
20320 2006-11-06  Jackson Harper  <jackson@ximian.com>
20321
20322         * TreeView.cs: Can't use the VisibleCount property when setting
20323         scrollbar heights, because this doesn't take into account whether
20324         or not the horz scrollbar just came visible.
20325
20326 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
20327
20328         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
20329         activated.  Fixes #79369, #79832.
20330
20331 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
20332
20333         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
20334           had to remove support for links that point to a directory. FileInfo
20335           returns no usefull information (means, the directory they point to)
20336           for such links. Replaced some empty string ("") with String.Empty.
20337
20338 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
20339
20340         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
20341         NullReferenceException when attempting to remove node that is not in
20342         collection. Throw NullReferenceException when null is passed to 
20343         Remove. Allow first element of the collection to be removed. Fixes
20344         bug #79831.  In GetEnumerator ().Current return null if positioned 
20345         before the first element of the collection. In GetEnumerator ().Reset,
20346         position before first element of the collection.
20347
20348 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
20349
20350         * PropertyGrid.cs: To match MS, remove default title and description
20351         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
20352         buttons.
20353
20354 2006-11-04  Chris Toshok  <toshok@ximian.com>
20355
20356         * Theme.cs: add a Clamp method, just for kicks.
20357
20358         * ThemeWin32Classic.cs: clamp all color components to [0..255].
20359
20360 2006-11-04  Chris Toshok  <toshok@ximian.com>
20361
20362         * Form.cs: if the form isn't visible, Close() does nothing.
20363
20364 2006-11-03  Chris Toshok  <toshok@ximian.com>
20365
20366         * Form.cs (Close): if the form is modal, don't Dispose of it, only
20367         Hide it.
20368         (WndProc): don't Dispose after handling the WM_CLOSE message.
20369
20370         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
20371         them as such, instead of using casts from Control to Form.  Also,
20372         don't Dispose of the modal dialog when we fall out of the loop -
20373         Close() it instead.
20374
20375         fixes bug #79813.
20376
20377 2006-11-03  Chris Toshok  <toshok@ximian.com>
20378
20379         * Control.cs (Dispose): only go through the dispose thing if we're
20380         @disposing, and we haven't already been disposed.  Fixes bug
20381         #79814.
20382
20383         * Form.cs: no reason to call "base.Dispose()" here instead of
20384         "Dispose()".
20385
20386 2006-11-03  Mike Kestner  <mkestner@novell.com>
20387
20388         * ComboBox.cs : use ToString instead of casts in AddItem for
20389         sorting functionality.  Fixes #79812.
20390
20391 2006-11-03  Chris Toshok  <toshok@ximian.com>
20392
20393         * Application.cs: pave the way for actually using the thread
20394         exception dialog.  it's ifdefed out at the moment.
20395
20396 2006-11-03  Chris Toshok  <toshok@ximian.com>
20397
20398         * ThreadExceptionDialog.cs: until we get a better layout, actually
20399         hide the details textbox and label when we shouldn't see them.
20400
20401 2006-11-03  Jackson Harper  <jackson@ximian.com>
20402
20403         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
20404         multiline textboxes anymore.  This method also determines the
20405         width/height of a textboxes canvas area.
20406         - Sorta a revert of the last patch.  For multiline just position
20407         the controls, then bail.  This way the scrollbar width won't be
20408         altered.
20409
20410 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
20411
20412         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
20413         it dont need.  Fixes #79537.
20414
20415 2006-11-02  Jackson Harper  <jackson@ximian.com>
20416
20417         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
20418         send the status after firing the DndOver event.
20419
20420 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20421
20422         * TrackBar.cs: Now orientation only switches height / width if
20423         the control's handle is created (Win32 does it like this). Also 
20424         fixed a typo in ToString() for a test to pass, changed the 
20425         exception thrown in set_LargeChange and set_SmallChange to 
20426         match Win32 behaviour, and added TrackBar tests to the unit 
20427         tests.
20428
20429 2006-11-02  Chris Toshok  <toshok@ximian.com>
20430
20431         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
20432         not _NET_WM_STATE_NO_TASKBAR.
20433
20434 2006-11-02  Jackson Harper  <jackson@ximian.com>
20435
20436         * TextControl.cs: Increment count by one, since in the update view
20437         count - 1 is used.
20438
20439 2006-11-02  Jackson Harper  <jackson@ximian.com>
20440
20441         * TextBoxBase.cs: Use client rectangle not bounds for checking if
20442         the mouse is in the client rectangle (duh).
20443
20444 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20445         
20446         * TrackBar.cs: Fixed trackbar jumping around when clicking
20447         on it - the trackbar was not detecting correctly at which
20448         side of the thumb the click was done. (fixes #79718)
20449
20450 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
20451
20452         * ListBox.cs: scroll visible area when change SelectedIndex to
20453         a non visible area.  Fixes #79481.
20454
20455 2006-11-01  Jackson Harper  <jackson@ximian.com>
20456
20457         * TextControl.cs: When replacing the selection move the selection
20458         start/end/anchor to the end of the new text.
20459
20460 2006-11-01  Jackson Harper  <jackson@ximian.com>
20461
20462         * XplatUIWin32.cs: When setting the parent change the controls
20463         visibility to it's visibility flag, not to it's old parents
20464         visibility (.Visible walks the parent chain).
20465
20466 2006-11-01  Chris Toshok  <toshok@ximian.com>
20467
20468         * XplatUIX11.cs: revert the #79790 fix, as the simple.
20469         XSetTransientForHint fix breaks paint .net's tool windows.  more
20470         work needed for that one.
20471
20472 2006-11-01  Chris Toshok  <toshok@ximian.com>
20473
20474         * ScrollBar.cs: throw ArgumentException instead of Exception in
20475         LargeChange/SmallChange setters.  fixes unit tests.
20476
20477 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
20478
20479         * ContainerControl.cs: reverted rev.67183 (which was itself
20480         a reversion of rev.66853... eh).
20481         
20482         * Control.cs: Fixes Reflector hang by changing Focus() call
20483         to what it was before rev.66643 (calling Select() here sets 
20484         ActiveControl, which in some situations calls back Focus and 
20485         eventually does a stack overflow). Temp fix.    
20486         Changes to GetNextControl() to not look for children to select when
20487         parent cannot be selectable (so it looks for siblings instead)  
20488         
20489 2006-10-31  Mike Kestner  <mkestner@novell.com>
20490
20491         * CheckedListBox.cs : off by one error in returned index from
20492         ObjectCollection.Add.  Fixes #79758.
20493
20494 2006-10-31  Chris Toshok  <toshok@ximian.com>
20495
20496         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
20497         calls for the textbox/spinner, to keep from recursing to the point
20498         where we crash.  Fixes #79760.
20499
20500 2006-10-31  Chris Toshok  <toshok@ximian.com>
20501
20502         * ListControl.cs (set_SelectedValue): don't throw exceptions on
20503         null/"" value, just return.  matches ms's behavior and fixes some
20504         failing tests.
20505
20506 2006-10-31  Chris Toshok  <toshok@ximian.com>
20507
20508         * Control.cs (set_Capture): make a logic a little easier to
20509         follow.
20510
20511         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
20512         if it's being destroyed.  A necessary fix surely, but a bandaid
20513         also, to fix the stuck capture problem in bug #78413.
20514
20515 2006-10-31  Chris Toshok  <toshok@ximian.com>
20516
20517         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
20518         convention of clearing hwnd.ClientRect when we set the
20519         width/height (so it'll be recalculated by Hwnd).
20520
20521 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
20522
20523         * ContainerControl.cs: reversed Contains check from
20524         ActiveControl due to hanging problems. This fix
20525         partly regresses #79667 (button does not have
20526         initial focus), so this might be a symptom for 
20527         a larger parenting problem (set_ActiveControl
20528         is being called but the child control does
20529         not have the parent set yet?)   
20530         
20531 2006-10-31  Mike Kestner  <mkestner@novell.com>
20532
20533         * MenuAPI.cs : fix keynav when menu is click activated.
20534
20535 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
20536
20537         * ToolStrip*: Version 0.2.
20538
20539         * MenuStrip.cs: Version 0.1.
20540
20541         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
20542
20543 2006-10-30  Chris Toshok  <toshok@ximian.com>
20544
20545         [ fixes the oversized notify icon issue in bug #79745 ]
20546         
20547         * NotifyIcon.cs: scale the icon down to the size we're given by
20548         the XplatUI layer (this would be faster if we did it once instead
20549         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
20550         since it's never invoked.
20551
20552         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
20553         pixels high by default, so let's hardcode our systray icon to that
20554         size.  The SYSTEM_TRAY protocol should really have a way for
20555         client apps to query for the correct icon size.. but oh well.  A
20556         couple of patches to deal with the screwy client_window ==
20557         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
20558         instance, and also make sure we don't XSelectInput twice).
20559
20560 2006-10-30  Chris Toshok  <toshok@ximian.com>
20561
20562         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
20563         recreating forms.  Control recreation is the bane of my existence.
20564         Fix it in a way that keeps everyone happy.
20565
20566 2006-10-30  Chris Toshok  <toshok@ximian.com>
20567
20568         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
20569         just non-CHILD ones.  otherwise sometimes scrollbars end up with
20570         client_windows not being resized to the proper size (ReportBuilder
20571         shows this extremely well).
20572
20573 2006-10-30  Chris Toshok  <toshok@ximian.com>
20574
20575         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
20576         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
20577         showing up in the gnome taskbar.  Fixes bug #79790.
20578
20579 2006-10-30  Chris Toshok  <toshok@ximian.com>
20580
20581         * ApplicationContext.cs: guard against a NRE.
20582
20583         * Application.cs: null out the old MainForm for the context, so we
20584         don't try to use it again once it's disposed.  Fixes bug #79783.
20585
20586 2006-10-30  Chris Toshok  <toshok@ximian.com>
20587
20588         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
20589         BindingContext, set the data source directly, otherwise do the
20590         lazy approach - the actual ListManager will be created when we get
20591         a BindingContext. Fixes bug #79700.
20592
20593 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
20594
20595         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20596           XplatUIX11.cs: Remove old 2 parameter SetVisible.
20597
20598         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
20599
20600 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
20601
20602         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
20603         of SetVisible that allows a window to be shown, but not activated.
20604         This is needed on Windows for MenuStrip, and can probably be used
20605         with MainMenu and ComboBox to fix the focus stealing issues on
20606         Windows.
20607
20608         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
20609
20610 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
20611
20612         * PictureBox.cs: Fix the output of the ToString method.
20613
20614 2006-10-29  Chris Toshok  <toshok@ximian.com>
20615
20616         * Control.cs (get_TopLevelControl): fix bug #79781.
20617
20618 2006-10-29  Chris Toshok  <toshok@ximian.com>
20619
20620         * ListControl.cs (set_DataSource): throw Exception here, not
20621         ArgumentException, to match MS behavior.
20622
20623 2006-10-29  Chris Toshok  <toshok@ximian.com>
20624
20625         * Form.cs: remove the try-catch's around calls to GetWindowState.
20626         We can just check the return value.
20627
20628         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
20629         Instead return -1.
20630
20631         * XplatUI.cs: Add note about additional return value for
20632         GetWindowState.
20633
20634 2006-10-29  Chris Toshok  <toshok@ximian.com>
20635
20636         * Control.cs (CreateHandle): when we create our handle, we also
20637         create the handles of our child controls.  Fixes one of the
20638         Control unit tests (CH11).
20639
20640 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
20641
20642         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
20643
20644 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
20645
20646         * ThemeClearlooks.cs: A little speedup.
20647
20648 2006-10-27  Chris Toshok  <toshok@ximian.com>
20649
20650         * Control.cs: implement Control.FromChildHandle in a way that
20651         matches the docs (and fixes the failed test.)
20652
20653 2006-10-27  Chris Toshok  <toshok@ximian.com>
20654
20655         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
20656         comments).
20657
20658         * DataGrid.cs: implement ResetForeColor such that the tests
20659         succeed.
20660         
20661 2006-10-27  Chris Toshok  <toshok@ximian.com>
20662
20663         * ToolBarButton.cs: setting text/tooltiptext to null results in it
20664         being set to "".  Fixes bug #79759.
20665
20666 2006-10-27  Jackson Harper  <jackson@ximian.com>
20667
20668         * TextControl.cs: We need to clear the entire selection area when
20669         setting the start, otherwise multiline selections are still
20670         visible.
20671
20672 2006-10-26  Chris Toshok  <toshok@ximian.com>
20673
20674         * PropertyGridView.cs: 
20675
20676         - ifdef all the code specific to the double
20677         buffer case, and provide some alternatives in the non-doublebuffer
20678         code, which makes heavy use of XplatUI.ScrollWindow to move things
20679         around without having to invalidate (and cause flicker).  There
20680         are still some drawing problems in the non-doublebuffered case, so
20681         DOUBLEBUFFER is defined by default.
20682
20683         - Fix the way dropdowns are handled.  now we explicitly watch for
20684         the events which might cause the dropdown to close, and break out
20685         of the nested event loop there.  This gets rid of all Capture
20686         code, at the expense of the Msg special casing.  Seems to work,
20687         though, and fixes bug #79743.
20688
20689 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
20690         * Control.cs: SetIsRecreating now recreates implicitly added
20691         child controls as well. Finally fixes #79629. The flag passed to 
20692         SetIsRecreating has also been removed since it wasn't used.
20693         
20694 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20695
20696         * PageSetupDialog.cs: Clean some code, fix some bits, 
20697         add some checks, and add a printer sub-dialog.
20698
20699 2006-10-26  Chris Toshok  <toshok@ximian.com>
20700
20701         * PropertyGrid.cs: make set_SelectedObject call
20702         set_SelectedObjects, and move the duplicate logic to the
20703         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
20704
20705         * PropertyGridView.cs: hide the textbox when we get a
20706         SelectedObjectsChanged event.
20707
20708         Fixes bug #79748.
20709
20710 2006-10-26  Chris Toshok  <toshok@ximian.com>
20711
20712         * PropertyGridView.cs: deal with the type converter not supporting
20713         GetStandardValues() or GetStandardValues() returning null, which
20714         is does in the default case.  Fixes #79742.
20715
20716 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
20717
20718         * CheckedListBox.cs: nunit no longer crashes when selecting 
20719         Project/Edit menu option
20720         
20721 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
20722
20723         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
20724         is no menu selected. fixes #79739
20725
20726 2006-10-25  Chris Toshok  <toshok@ximian.com>
20727
20728         * PropertyGridView.cs: factor out the splitter invalidation code
20729         into the SplitterPercent setter, and for kicks implement the
20730         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
20731         amount in either direction.
20732
20733 2006-10-25  Chris Toshok  <toshok@ximian.com>
20734
20735         * PropertyGridView.cs: do some cleanup of the brush used to draw
20736         text - read only fields should be grayed out.  not sure how to do
20737         this with the textbox, though.  but the textbox's should also be
20738         readonly now at least.  Also, hide/show the textbox when resizing
20739         the control.
20740         
20741         * CursorConverter.cs: use System.Reflection when getting the
20742         properties of Cursors, as TypeDescriptor.GetProperties isn't
20743         returning static properties.
20744
20745 2006-10-25  Chris Toshok  <toshok@ximian.com>
20746
20747         * PropertyGridView.cs: factor out the up/down handling, and reuse
20748         it for page up/down.  also add End/Home support.
20749
20750 2006-10-25  Chris Toshok  <toshok@ximian.com>
20751
20752         * PropertyGridView.cs:
20753
20754         - ensure the selected grid item is visible in the scrolled area,
20755         fixes bug #79572.
20756
20757         - fix Keys.Down handling when you're on the last item in the
20758         propertygrid.
20759
20760 2006-10-25  Mike Kestner  <mkestner@novell.com>
20761
20762         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
20763         clicks too.  Fixes #79725.
20764
20765 2006-10-24  Chris Toshok  <toshok@ximian.com>
20766
20767         * PropertyGrid.cs: use property.Converter instead of
20768         TypeDescriptor.GetConverter(property.PropertyType), so we catch
20769         TypeConverters declared on the property as well as on the
20770         PropertyType.  Fixes bug #79678.
20771
20772 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
20773
20774         * MimeIcon.cs, Mime.cs:
20775           Fallback to the default platform handler if no shared mime info
20776           stuff exists (fixes #79693).
20777
20778 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20779         * ContainerControl.cs: Incorrect contains check in ActiveControl 
20780         from previous fix (duh).
20781
20782 2006-10-20  Chris Toshok  <toshok@ximian.com>
20783
20784         * PropertyGridView.cs: the dropdown should be MIN(number of items
20785         in list, 15).  Fixes #79551.
20786
20787 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20788         Fixes #79384, #79394, #79652, #79667
20789         * Application.cs: 
20790         
20791         - Modal windows are now destroyed in the proper order for windows
20792         
20793         * ContainerControl.cs:
20794         
20795         - ActiveControl setter has more conditions on when to return:
20796                 - if we're reselecting the active control, but it actually
20797                 didn't have focus (window hidden or some such), it runs
20798                 - if the active control being selected doesn't actually 
20799                 exist in the container, it returns
20800         
20801         * Form.cs
20802         
20803         - The ShowDialog now gets the current form as the owner when
20804         invoking without parameters, and correctly activates the owner 
20805         when returning
20806         
20807         * MessageBox.cs
20808         
20809         - MessageBox now catches the Escape key to exit
20810
20811 2006-10-20  Chris Toshok  <toshok@ximian.com>
20812
20813         * PropertyGridView.cs: fix a number of issues (bug #78565, and
20814         most of bug #79676):
20815
20816         - you can navigate around the property grid with the arrow keys.
20817
20818         - the dropdown is sized properly when the pg has a vertical
20819         scrollbar.
20820
20821         - fix the indentation for subentries, and properly select the
20822         entire label rect.
20823
20824         - fix the gray bar's drawing (only draw it to the last element,
20825         not for the height of the control.  Also make sure we draw that
20826         last horizontal grid line.
20827
20828         - use the same mechanism the datagrid uses wrt the editing textbox
20829         when scrolling/resizing/etc.  Namely, we hide it first, do the
20830         operation, then show it again (if it's still visible).
20831         
20832         - aggressively remove a lot of unnecessary refreshes (and also
20833         calls to Invalidate(). call more limited variants, and only redraw
20834         what we need.)
20835         
20836         * PropertyGrid.cs:
20837
20838         - when we're populating the merged collection, fill in the UI
20839         parent with either the passed in item, or the category item we
20840         create.
20841
20842         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
20843
20844         * GridItem.cs: drop some fully qualified names.
20845         
20846         * GridEntry.cs: add a "UIParent", which is basically the parent
20847         treenode.
20848
20849         * GridItemCollection.cs: add an IndexOf method.
20850
20851 2006-10-20  Mike Kestner  <mkestner@novell.com>
20852
20853         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
20854         a working win32 NC invalidation mechanism, we can't invalidate
20855         menus.  [Fixes #79705]
20856
20857 2006-10-20  Mike Kestner  <mkestner@novell.com>
20858
20859         * ListBox.cs : don't update the VScrollbar if the list is empty,
20860         just hide it.  [Fixes #79692]
20861
20862 2006-10-20  Jackson Harper  <jackson@ximian.com>
20863
20864         * RichTextBox.cs: Handle some special chars better, and don't skip
20865         the entire group when we encounter a special char that we don't
20866         handle correctly.
20867
20868 2006-10-18  Chris Toshok  <toshok@ximian.com>
20869
20870         * PropertyGridView.cs: address a number of issues from bug #79676,
20871         mostly of the cosmetic variety.
20872
20873         - The highlight rectangle for indented items not extends all the
20874         way to the left.
20875
20876         - Indented items aren't indented so much.
20877
20878         - the dropdown is properly sized width-wise if the pg has a
20879         vertical scrollbar.
20880
20881 2006-10-18  Chris Toshok  <toshok@ximian.com>
20882
20883         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
20884         systray stuff is rather convoluted to begin with.
20885
20886         systray icons are a single window for some reason (that I haven't
20887         figured out yet), and for them, client_window == whole_window.
20888         Given the way the tests are structured elsewhere to determine
20889         which paints are pending (client vs. nc), that situation will
20890         always yield PAINT, not NCPAINT.  So, if we have a pending
20891         nc_expose and no pending expose, remove the hwnd from the paint
20892         queue, and also set nc_expose_pending to false, to keep us from
20893         blocking further expose's adding the hwnd to the paint queue.
20894
20895         phew.  like i said, a rather convoluted change.  Fixes the
20896         notifyicon repaint issues in bug #79645.
20897
20898 2006-10-18  Chris Toshok  <toshok@ximian.com>
20899
20900         * Form.cs: when getting the backcolor of the form, don't get
20901         base.BackColor, as this allows parents to influence the background
20902         color.  This breaks mdi forms.  Instead, if the background_color
20903         is empty, return the default.
20904
20905 2006-10-18  Chris Toshok  <toshok@ximian.com>
20906
20907         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
20908         to being private instead of internal static.
20909
20910         * Control.cs: remove all the stupid ParentWaitingOnRecreation
20911         crap, it wasn't working for more deeply nested controls anyway,
20912         and we already have the is_recreating flag - use that instead.
20913         Before calling DestroyHandle in RecreateHandle, recurse through
20914         the control tree setting it to true.  this returns the recreate
20915         code to much of its original simplicity, while now guaranteeing we
20916         actually recreate everything we're supposed to.  This change gets
20917         fyireporting actually showing mdi children.
20918
20919 2006-10-17  Chris Toshok  <toshok@ximian.com>
20920
20921         * Form.cs: remove some debug spew, and collapse some duplicate
20922         code at the end of SetClientSizeCore.
20923
20924         * XplatUIX11.cs: 
20925         - add some more debug spew here too wrt Destroy handling.
20926         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
20927         in Control's handling of WM_DESTROY.
20928         - Remove the handling of zombie window DestroyNotifies from the
20929         event loop - we don't need it.  Now the only DestroyNotifies we
20930         actually handle are ones generated by X.
20931         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
20932         match gtk's (functioning) handling of this. This keep metacity
20933         from leaving droppings in the form of wm borders with no window
20934         contents all over the place.
20935
20936         * Control.cs:
20937         - add a bunch of debug spew wrt control recreation.
20938         - fix a bug where we weren't tracking Visible properly on
20939         recreated hwnds.
20940         - fixed the WM_PAINT double buffer handling to support re-entrant
20941         calls (yes, i know it's gross, but it's happening to us).
20942
20943 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20944         * ThemeWin32Classic.cs: changed drawing of selected days
20945         to make them look better.
20946
20947 2006-10-16  Chris Toshok  <toshok@ximian.com>
20948
20949         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
20950         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
20951
20952         * XplatUIX11.cs: move away from using hwnd.client_dc and
20953         hwnd.non_client_dc and on to a stack of dc's (and in window's
20954         case, PAINTSTRUCT's), so we can deal with nested Paint calls
20955         without puking or not disposing of Graphics objects.
20956
20957         * XplatUIOSX.cs: same.
20958
20959         * XplatUIWin32.cs: same.
20960
20961 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
20962
20963         * FileDialog.cs: Don't call on_directory_changed inside
20964           OnSelectedIndexChanged (it changes the SelectedIndex too).
20965           Instead move it to OnSelectionChangeCommitted.
20966
20967 2006-10-13  Chris Toshok  <toshok@ximian.com>
20968
20969         * XplatUIX11.cs: more Destroy work.  the current code does the
20970         following things, in order:
20971
20972         1. Enumerates all handles of all controls at or below the one
20973         being destroyed, in pre-order.  As it is doing this, it marks the
20974         handles as zombie and clears all references to them.
20975         
20976         2. calls XDestroyWindow on the window passed in.
20977
20978         3. SendMessage's WM_DESTROY to all he handles in the accumulated
20979         list.
20980
20981 2006-10-13  Chris Toshok  <toshok@ximian.com>
20982
20983         * XplatUIX11.cs: set hwnd.zombie to true before calling
20984         SendMessage (WM_DESTROY).  this keeps us from marking the new
20985         window a zombie, and also keeps us from calling sendmessage at
20986         all.
20987
20988 2006-10-13  Jackson Harper  <jackson@ximian.com>
20989
20990         * TextControl.cs: Do not show the caret and selection at the same
20991         time.  Reduces ugliness by 35%.
20992
20993 2006-10-13  Chris Toshok  <toshok@ximian.com>
20994
20995         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
20996         zombie after we do the recursive call, so we actually do call
20997         SendMessage on the children controls.
20998         (GetMessage): if we find a pending paint event for a zombie hwnd,
20999         remove the hwnd from the paint queue, or else it will always be
21000         there (and we'll effectively loop infinitely)
21001
21002 2006-10-13  Mike Kestner  <mkestner@novell.com>
21003
21004         * MenuItem.cs : add Selected format under keynav too.
21005         Fixes #79528.
21006
21007 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
21008
21009         * PropertyGrid.cs: Fixed some NRE's and small difference between our
21010         implementation and that of MS.
21011
21012 2006-10-13  Chris Toshok  <toshok@ximian.com>
21013
21014         * Control.cs (OnInvalidated) only futz with the invalid_region if
21015         the control is double buffered.  this fixes the apparent hang in
21016         the ListView unit tests.  Someone needs to make the
21017         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
21018
21019 2006-10-13  Chris Toshok  <toshok@ximian.com>
21020
21021         * PropertyGridView.cs:
21022
21023         - do a little refactoring so that only one place calls
21024         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
21025         else call that.  Also make it Refresh, since there are redraw bugs
21026         otherwise (we should take a look at that...)
21027
21028         - do a little more refactoring work to share the body of code
21029         involved with the drop down.  it was duplicated in the code
21030         dealing with the listbox handling and in the code dealing with the
21031         UITypeEditors.
21032
21033         - add a Capture to the dropdown form's control once it's
21034         displayed, and add a MouseDown handler that checks to make sure
21035         the position is inside the control.  If it's not, close the
21036         dropdown.  This fixes #78190.
21037
21038         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
21039         if the value is different than the initial value.
21040         
21041 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
21042
21043         * Control.cs: see #78650
21044         - Fixed GetNextControl for several cases:
21045                 - Changed FindFlatForward to return 
21046                 correct sibling control when more than one
21047                 control has same TabIndex as the currently 
21048                 focused one.
21049                 - Changed FindFlatBackward to loop children
21050                 from last to first and apply same logic as in
21051                 FindFlatForward
21052                 - Changed FindControlForward to search for
21053                 children when control is not a container
21054                 but has children, or search for siblings if
21055                 control is a container...
21056                 - Changed FindControlBackward   to continue
21057                 searching for child controls when hitting 
21058                 Panel-like parents
21059                 
21060         - Fixed Focus method to update ActiveControl
21061         (FocusTest.FocusSetsActive failure)
21062         
21063         * TabControl.cs:
21064         - Focus rectangle now refreshes when gaining
21065         or losing focus
21066         - Removed grab for Tab key on IsInputKey that 
21067         was keeping tab navigation from working (#78650)
21068
21069 2006-10-13  Chris Toshok  <toshok@ximian.com>
21070
21071         * PropertyGridView.cs:
21072         - Rewrite SetPropertyValue to loop over SelectedGridItem's
21073         SelectedObjects.
21074
21075         - Deal with GridItem.Value == null a few places.
21076
21077         * PropertyGrid.cs: 
21078         - replace the PopulateGridItemCollection with a pair of methods
21079         which compute the intersection of all the properties in the
21080         SelectedObjects array.  Fixes #79615.
21081
21082         - Throw ArgumentException from set_SelectedObjects if there's a
21083         null in the array.
21084
21085         - Add GetTarget method which can be used to traverse up the
21086         GridItem.Parent chain.  It depends on the assumption that
21087         selected_objects for different GridEntries are always in the same
21088         order (a safe assumption).  Use this method and loop over all the
21089         selected objects in the entry when calling RemoveValueChanged and
21090         AddValueChanged.
21091         
21092         * GridEntry.cs: Make this handle multiple selected objects.
21093         .Value returns null if not all the selected objects share the same
21094         value.
21095
21096 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
21097         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
21098           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
21099           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
21100           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
21101           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
21102         add additional functionality.
21103
21104 2006-10-12  Mike Kestner  <mkestner@novell.com>
21105
21106         * ErrorProvider.cs : new ToolTipWindow ctor sig.
21107         * HelpProvider.cs : new ToolTipWindow ctor sig.
21108         * ToolTip.cs : remove ToolTip param from Window sig since it is
21109         not used.
21110         * ToolBar.cs : add tooltip support.  Fixes #79565.
21111
21112 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21113
21114         * ComboBox.cs: move the events in set_SelectedIndex to 
21115         after the call to HighlightIndex in order to avoid 
21116         possible recursion and subsequent problems with the call
21117         to HighlightIndex and include a range check in 
21118         set_HighlightIndex. Fixes #79588
21119         
21120 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21121
21122         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
21123         to ui thread's settings instead of sunday. 
21124         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
21125
21126 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21127
21128         * DateTimePicker.cs
21129         * MonthCalendar.cs
21130         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
21131         and implement missing functionality (selecting different parts 
21132         of the date and edit them individually with the keyboard).
21133         
21134 2006-10-11  Chris Toshok  <toshok@ximian.com>
21135
21136         * Control.cs (OnInvalidated): fix NRE relating to last change.
21137
21138 2006-10-11  Chris Toshok  <toshok@ximian.com>
21139
21140         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
21141         atoms in _NET_WM_STATE here if the window is maximized.  We need
21142         to do this because we're *replacing* the existing _NET_WM_STATE
21143         property, so those atoms will be lost otherwise, and any further
21144         call to GetWindowState will return Normal for a window which is
21145         actually maximized.  Fixes #79338.
21146
21147 2006-10-11  Jackson Harper  <jackson@ximian.com>
21148
21149         * TextControl.cs: Special case for setting selection end to
21150         selection start, we basically kill the anchor.
21151         - some todo comments.
21152
21153 2006-10-11  Chris Toshok  <toshok@ximian.com>
21154
21155         * Control.cs: switch to using an "invalid_region" to track which
21156         parts of the image buffer need updating.  This is more code than
21157         the simple fix from r66532.  That version just attempted to always
21158         fill the entire buffer on redraw, which turns out to be
21159         inefficient when invalidating small rectangles.  This version
21160         simply adds the invalid rectangle to the invalid region.  When we
21161         get any WM_PAINT message we see if it can be filled using the
21162         image buffer, and if it can't (if the paint event's clip rectangle
21163         is visible in the invalid region) we first fill the image buffer.
21164         So, the image buffer is still a cache, we just fill it lazily.
21165
21166         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
21167         need it any longer.
21168
21169 2006-10-11  Chris Toshok  <toshok@ximian.com>
21170
21171         * XplatUIX11.cs (SetWindowPos): we need to update both position as
21172         well as size after calling XMoveResizeWindow.  This keeps us from
21173         ignoring future SetWindowPos calls.  Fixes the disappearing
21174         DateTimePicker in the ToolBarDockExample from bug #72499.
21175
21176 2006-10-11  Chris Toshok  <toshok@ximian.com>
21177
21178         * TextBoxBase.cs: reorder things a bit when it comes to
21179         resizing-causing-recalculation.  we were recalculating the
21180         document when our position was changed, which shouldn't happen.
21181         We only care about size changes.  Clear up some more redundant
21182         recalculation calls while I'm at it.  This makes the toolbar dock
21183         example snappy when you're just dragging toolbars around (since it
21184         causes a relayout whenever you move one.)
21185
21186 2006-10-11  Chris Toshok  <toshok@ximian.com>
21187
21188         * ToolBarButton.cs (get_Rectangle): this only returns
21189         Rectangle.Empty if Visible == false, or Parent == null.
21190         Parent.Visible doesn't matter.
21191
21192 2006-10-10  Chris Toshok  <toshok@ximian.com>
21193
21194         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
21195         by .net 1.1, so switch to an internal method instead.
21196
21197 2006-10-10  Chris Toshok  <toshok@ximian.com>
21198
21199         * Control.cs (WM_PAINT): when a control is double buffered we draw
21200         initially to the ImageBuffer and then copy from there.  But when a
21201         parent control which has child controls is double buffered, the
21202         initial drawing doesn't encompass the entire ClientRectangle of
21203         the parent control, so we end up with uninitialized bits (this is
21204         easily seen by dragging the top toolbar in
21205         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
21206         manually set the ClipRectangle of the paint_event (only the one we
21207         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
21208         of the nastiness in bug #72499.
21209
21210         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
21211         which we use in Control.cs's WM_PAINT handling.
21212
21213 2006-10-10  Jackson Harper  <jackson@ximian.com>
21214
21215         * TextBoxBase.cs: Finish off the autoscrolling stuff.
21216
21217 2006-10-10  Chris Toshok  <toshok@ximian.com>
21218
21219         * Cursor.cs: Apply a slightly different patch to the one suggested
21220         in #79609.
21221
21222 2006-10-10  Jackson Harper  <jackson@ximian.com>
21223
21224         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
21225         not the parent form.
21226         * TextControl.cs: use difference in old line count vs new count to
21227         calculate how many lines were added, this takes into account soft
21228         line breaks properly.
21229
21230 2006-10-10  Chris Toshok  <toshok@ximian.com>
21231
21232         * LinkLabel.cs: don't call MeasureCharacterRanges against a
21233         rectangle located at 0,0 and the size of the text.  Use
21234         ClientRectangle instead.  This fixes rendering of non-left aligned
21235         link labels.
21236
21237 2006-10-10  Jackson Harper  <jackson@ximian.com>
21238
21239         * TextBoxBase.cs: When we set the selection start position the
21240         caret.
21241         * TextControl.cs: Need to update the caret when we decrement it to
21242         zero.
21243         - Make sure that the selection_visible flag gets reset to false if
21244         the selection isn't visible.  Before this you could get it set to
21245         visible by changing the selection start, then changing the end to
21246         equal the start.
21247
21248 2006-10-09  Jackson Harper  <jackson@ximian.com>
21249
21250         * TreeView.cs: Don't update scrollbars when we aren't visible.
21251         * TreeNodeCollection.cs: Only need to update scrollbars if being
21252         added to an expanded visible node or the root node.
21253
21254 2006-10-09  Chris Toshok  <toshok@ximian.com>
21255
21256         * XplatUIX11.cs (SendMessage): fix NRE.
21257
21258 2006-10-09  Jackson Harper  <jackson@ximian.com>
21259
21260         * TextBoxBase.cs: Implement horizontal autoscrolling.
21261         * TextControl.cs: Add a movement types that allows moving forward
21262         and backwards without wrapping.
21263
21264 2006-10-09  Mike Kestner  <mkestner@novell.com>
21265
21266         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
21267         with focus "expansion" of labels.  Fixes #79532 and then some.
21268         * ThemeWin32Classic.cs : add LineLimit to ListView label format
21269         when wrapping.
21270
21271 2006-10-09  Jackson Harper  <jackson@ximian.com>
21272
21273         * TextBoxBase.cs: Set the default max values to MaxValue since
21274         we use the scrollbar for autoscrolling and the default value is
21275         100.  If we don't do this the caret won't keep up with typing
21276         after about 18 characters.
21277         * TextControl.cs: Make sure the selection is offset by the
21278         viewport x.  This fixes selection when using auto scrolling.
21279
21280 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
21281         
21282         * Form.cs: The active control should be selected after the 
21283         OnLoad so that any child control initialization that affects
21284         the selection is done. Fixes #79406
21285
21286 2006-10-06  Chris Toshok  <toshok@ximian.com>
21287
21288         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
21289         to have no evil effects.
21290
21291         - Stop selecting StructureNotifyMask on non-toplevel windows.
21292
21293           The only way children should be resized is by using the SWF api,
21294           and we already send WM_WINDOWPOSCHANGED messages in those cases.
21295           Toplevel windows can be interacted with via the window manager,
21296           and so we keep the input mask there.
21297
21298           The other event StructureNotifyMask gives us (that we care
21299           about) is DestroyNotify.  The code is already structured such
21300           that it assumes we won't be getting a DestroyNotify event for
21301           the window we pass to XDestroyWindow (which is what
21302           StructureNotifyMask is supposed to guarantee.)  So, that code
21303           shouldn't be affected by this either.
21304
21305         - Stop selecting VisibilityChangeMask altogether.
21306
21307           We weren't doing anything with the resulting events anyway.
21308         
21309         This vastly reduces the number of X requests and events we see
21310         when resizing/laying out a large ui.
21311
21312 2006-10-06  Chris Toshok  <toshok@ximian.com>
21313
21314         * ScrollableControl.cs (DisplayRectangle): we need to take into
21315         account the DockPadding regardless of whether or not auto_scroll
21316         == true.  rework this slightly to this effect, and fix bug #79606,
21317         and part of #72499 (you can now see the drag handles and drag
21318         toolbars around).
21319
21320 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
21321
21322         * ListViewItem.cs: Collections of selected and checked items are now
21323         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
21324         we mark the collection "dirty".
21325         * ListView.cs: Marked collections readonly. Modified UpdateSelection
21326         to only clear SelectedItems when a new item is selected and MultiSelect
21327         is enabled. CheckedItems and SelectedItems now subscribe to Changed
21328         event of ListViewItemCollection, and mark its list dirty whenever
21329         that event is fire. This allows us to return selected/checked items 
21330         in the same order as they are in the Items collection. This matches
21331         the MS behavior.
21332
21333 2006-10-06  Chris Toshok  <toshok@ximian.com>
21334
21335         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
21336         right mouse clicks.  Fixes bug #79593.
21337
21338 2006-10-06  Chris Toshok  <toshok@ximian.com>
21339
21340         * Splitter.cs: doh, fix splitters that don't want to cancel the
21341         movement when you drag them.  Also, impose the limits on the
21342         values we send to the SplitterMovingEvent.  Fixes #79598.
21343
21344 2006-10-06  Jackson Harper  <jackson@ximian.com>
21345
21346         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
21347         since we use this for auto scrolling also.
21348
21349 2006-10-05  Chris Toshok  <toshok@ximian.com>
21350
21351         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
21352         beginning to think that most datagrid column types don't need this
21353         method.  Fixes bug #79392.
21354
21355 2006-10-05  Chris Toshok  <toshok@ximian.com>
21356
21357         * DataGrid.cs: move back to a more lazy scheme for creating the
21358         CurrencyManager, so we aren't updating it every time you set
21359         either DataSource or DataMember.  Also, don't call
21360         RecreateDataGridRows if the currency manager hasn't changed.
21361
21362 2006-10-05  Chris Toshok  <toshok@ximian.com>
21363
21364         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
21365         emitted, SelectedIndex should already be updated.  Fixes bug
21366         #78929.
21367
21368 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
21369
21370         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
21371           ToolStripTextBox.cs: Initial commit.
21372         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
21373
21374 2006-10-05  Jackson Harper  <jackson@ximian.com>
21375
21376         * TabControl.cs: We need to invalidate the tab control area when
21377         new ones are added (duh).
21378
21379 2006-10-03  Chris Toshok  <toshok@ximian.com>
21380
21381         * Form.cs (ProcessDialogKey): if the focused control is in this
21382         form and is a button, call its PerformClick method here.  Fixes
21383         #79534.
21384
21385 2006-10-04  Jackson Harper  <jackson@ximian.com>
21386
21387         * TabPage.cs: Ignore setting of Visible, and add an internal
21388         method for setting the controls visibility.  TabPage's Visible
21389         property is a little strange on MS, this seems to make us
21390         compatible, and fixes cases where people set all the tab pages to
21391         visible.
21392         * TabControl.cs: Use the new internal setting on tab pages
21393         visibility.
21394
21395 2006-10-03  Mike Kestner  <mkestner@novell.com>
21396
21397         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
21398
21399 2006-10-03  Mike Kestner  <mkestner@novell.com>
21400
21401         * ListView.cs : use is_visible instead of Visible to check if 
21402         scrollbars should be placed/sized.  Also some max_wrap_width
21403         love for LargeIcon view.  [Fixes #79533]
21404
21405 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
21406
21407         * TextControl.cs :
21408           Make set_TextAlign() do actually update the align. Fixed #78403.
21409
21410 2006-10-03  Chris Toshok  <toshok@ximian.com>
21411
21412         * DataGrid.cs: fix a crash when switching datasources if the
21413         vertical scrollbar is at someplace other than Value = 0.  Also,
21414         reduce the number of recalculation passes we do in SetDataSource
21415         from 2 to 1.
21416
21417 2006-10-03  Jackson Harper  <jackson@ximian.com>
21418
21419         * TextBoxBase.cs: Move the if value the same bail check up, we
21420         don't want to empty the document if it is already empty, this
21421         seems to severly mess up the caret.  TODO: I should probably fix
21422         the empty statement to update teh caret somehow.
21423
21424 2006-10-03  Chris Toshok  <toshok@ximian.com>
21425
21426         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
21427         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
21428         reflection, an internal row type, properties on said type, etc.)
21429         will work with our datagrid.  Fixes #79531.
21430
21431 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
21432
21433         * FileDialog.cs: Don't crash if a path is not accessible
21434           (System.UnauthorizedAccessException). Fixes #79569.
21435         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
21436           a ':' too. Return unknown icon for those paths/files.
21437
21438 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
21439
21440         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
21441         GetContainerControl returns null.
21442
21443 2006-10-02  Chris Toshok  <toshok@ximian.com>
21444
21445         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
21446         call to XGetWindowAttributes instead of "handle".  fixes an X
21447         error using notifyicon after the NotifyIconWindow to Form base
21448         class switch.
21449
21450 2006-10-02  Chris Toshok  <toshok@ximian.com>
21451
21452         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
21453         server grab and looping we need to do to get down to the most
21454         deeply nested child window.
21455         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
21456         QueryPointer again after the WarpPointer so we can generate a
21457         proper (fake) MotionNotify event to be enqueued in the destination
21458         window's queue.
21459         (GetCursorPos): call QueryPointer.
21460
21461         Fixes #79556.
21462
21463 2006-10-02  Jackson Harper  <jackson@ximian.com>
21464
21465         * NotifyIcon.cs: Derive the notify icon from a form, so things
21466         like FindForm work on it.
21467         - Swallow the WM_CONTEXTMENU message, since that is generated on
21468         mouse down, and context menu is a mouse up kinda guy.  I believe
21469         the correct fix here is probably to make the notify icon entirely
21470         NC area, but this seems to work fine for anyone not manipulating
21471         WndProc.
21472
21473 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
21474
21475         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
21476           ToolStripItemCollection.cs, ToolStripLabel.cs,
21477           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
21478           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
21479           Initial implementation.
21480         * TextRenderer.cs: Provide padding to MeasureText.
21481
21482 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
21483
21484         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
21485         of ButtonBaseAccessibleObject. Fix bug #79552.
21486
21487 2006-10-02  Jackson Harper  <jackson@ximian.com>
21488
21489         * MdiWindowManager.cs: When maximizing use the containers client
21490         rect, not it's bounds, so nc area is accounted correctly.
21491         - Use the parent form's size for the menu position, since the
21492         client isn't always the full form size.
21493
21494 2006-10-01  Chris Toshok  <toshok@ximian.com>
21495
21496         * ScrollableControl.cs: make sure neither right_edge or
21497         bottom_edge are < 0, since they're used as LargeChange for the
21498         horiz/vert scrollbars respectively.  Fixes #79539.
21499
21500 2006-10-01  Chris Toshok  <toshok@ximian.com>
21501
21502         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
21503         the xplatuix11 code can cause us to destroy/recreate our handle.
21504
21505         * XplatUIX11.cs
21506         (SystrayAdd):
21507         - this code can be invoked many times for the same Hwnd.  Make
21508           sure we only destroy the client window once (the first time this
21509           method is called).  This fixes bug #79544.
21510         - Remove the call to the improperly bound XSync.  why we had two
21511           bindings to this, I will never know, but this call resulted in
21512           events being discarded from the queue(!).
21513         - correct a misunderstanding of _XEMBED_INFO - the second atom is
21514           not our current state but the state we wish to be in.  So, 0 if
21515           we don't want to be mapped.  Change it to 1.
21516         (SystrayRemove): The XEMBED spec makes mention of the fact that
21517         gtk doesn't support the reparent of client windows away from the
21518         embedder.  Looking at gtksocket-x11.c seems to agree with this.
21519         The only avenue we have for removing systray icons is to destroy
21520         them.  We don't want the handle to go away for good, though, so
21521         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
21522         #79545.
21523         
21524 2006-10-01  Chris Toshok  <toshok@ximian.com>
21525
21526         * Form.cs (WndProc): inline the native_enabled variable usage into
21527         the cases in which it's used.  Fixes #79536.
21528
21529 2006-09-29  Mike Kestner  <mkestner@novell.com>
21530
21531         * ListView.cs : toggle the selection state for ctrl clicks in 
21532         multiselect mode. [Fixes #79417]
21533
21534 2006-09-29  Mike Kestner  <mkestner@novell.com>
21535
21536         * ListView.cs : kill CanMultiSelect and refactor the selection
21537         code to support multiselection in the absence of mod keys. Steal
21538         arrow/home/end keys by overriding InternalPreProcessMessage to
21539         restore regressed keynav behavior.
21540         [Fixes #79416]
21541
21542 2006-09-29  Jackson Harper  <jackson@ximian.com>
21543
21544         * MdiClient.cs: Repaint the titlebars when the active window is
21545         changed.
21546
21547 2006-09-29  Chris Toshok  <toshok@ximian.com>
21548
21549         * Application.cs: when entering a runloop with a modal, make sure
21550         the hwnd is enabled.  Fixes #79480.
21551
21552 2006-09-29  Chris Toshok  <toshok@ximian.com>
21553
21554         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
21555         when ListManager.CanAddRows == false, bump us back one.
21556
21557         * DataGridColumnStyle.cs (ParentReadOnly): remove the
21558         listmanager.CanAddRows check.  This makes ArrayLists uneditable
21559         using a datagrid, which is not right.
21560         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
21561         is an IEditable, but call property_descriptor.SetValue regardless.
21562         fixes #79435.
21563
21564 2006-09-29  Chris Toshok  <toshok@ximian.com>
21565
21566         * DataGridBoolColumn.cs: we need to test equality in the face of
21567         possible null values (as is the case with the default NullValue).
21568         This patch keeps us from crashing in that case.
21569
21570 2006-09-29  Jackson Harper  <jackson@ximian.com>
21571
21572         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
21573         here, since it will get called for every node collection in the
21574         tree. This is now done in the treeview once the sorting is
21575         finished.
21576         * TreeView.cs: Recalculate the visible order, and update the
21577         scrollbars after sorting, set the top nope to the root so that the
21578         recalc actually works.
21579
21580 2006-09-29  Chris Toshok  <toshok@ximian.com>
21581
21582         * LinkLabel.cs: more handling of the default link collection in
21583         the face of LinkArea manipulation.  The default link collection
21584         contains 1 element (start=0,length=-1).  If the user sets LinkArea
21585         to anything and the links collection is the default, clear it.
21586         Then only add the link if its nonempty.  Fixes #79518.
21587
21588 2006-09-29  Chris Toshok  <toshok@ximian.com>
21589
21590         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
21591         piece correctly when we hit a '\n'.  Fixes #79517.
21592
21593 2006-09-29  Chris Toshok  <toshok@ximian.com>
21594
21595         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
21596         change the binding of gdk_init_check to take two IntPtr's, and
21597         pass IntPtr.Zero for both of them.  Fixes #79520.
21598
21599 2006-09-29  Mike Kestner  <mkestner@novell.com>
21600
21601         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
21602         [Fixes #78779]
21603
21604 2006-09-28  Jackson Harper  <jackson@ximian.com>
21605
21606         * XplatUIX11.cs: When translating NC messages make sure we go from
21607         whole window to screen, not client window to screen.
21608         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
21609         method doesn't exist
21610         - Skip over controls that aren't forms when arranging.
21611
21612 2006-09-28  Jackson Harper  <jackson@ximian.com>
21613
21614         * XplatUIWin32.cs: Clip the rect to the parent window.
21615         * XplatUIStructs.cs: Add clipping modes struct.
21616         * InternalWindowManager.cs: New private method that factors title
21617         bar heights in when calculating the pos of an NC mouse message.
21618         - Use SendMessage to force a paint when the form's size is changed
21619         instead of painting the decorations immediately.
21620         - Don't let the NC button click messages get to DefWndProc,
21621         because they will attempt to handle windowing themself, and this
21622         messes up z-order (it will put them in front of the scrollbars).
21623         * XplatUIX11.cs: Make sure that we don't reset window managers if
21624         we already have one (ie the window is an MDI window).
21625
21626 2006-09-28  Chris Toshok  <toshok@ximian.com>
21627
21628         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
21629         menu code really needs going over.
21630
21631 2006-09-27  Chris Toshok  <toshok@ximian.com>
21632
21633         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
21634         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
21635         window is maximizable.  So, we need to make sure that even if we
21636         clear the border/wm frame of those functions, they're still
21637         available (basically, we remove the decoration without removing
21638         the function).  Half the fix for #79338.
21639
21640 2006-09-27  Chris Toshok  <toshok@ximian.com>
21641
21642         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
21643         Fixes bug #79515.
21644
21645 2006-09-27  Chris Toshok  <toshok@ximian.com>
21646
21647         * Splitter.cs: reorder things a bit so that we don't actually
21648         draw/move the splitter until after calling OnSplitterMoving.  This
21649         lets users cancel/disallow the movement by explicitly setting
21650         event.SplitX/SplitY.  Fixes #79372.
21651
21652 2006-09-27  Jackson Harper  <jackson@ximian.com>
21653
21654         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
21655         because it is most likely on a window being destroyed, and that
21656         will give us an X11 error.
21657
21658 2006-09-27  Chris Toshok  <toshok@ximian.com>
21659
21660         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
21661         the dropdown button now toggles between showing and hiding the
21662         dropdown.  Also, get rid of dropdown_form_showing and just use
21663         dropdown_form.Visible.  We still don't do a grab, but I'll leave
21664         that part to someone who has handled Capture-fu before.
21665
21666 2006-09-27  Chris Toshok  <toshok@ximian.com>
21667
21668         * DataGrid.cs: return false if alt isn't pressed when '0' is
21669         pressed.  this keeps the '0' key from being swallowed, and fixes
21670         bug #79350.
21671
21672 2006-09-27  Chris Toshok  <toshok@ximian.com>
21673
21674         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
21675         Calling Refresh (in response to a scrollbar event) screws up the
21676         scrollbar painting.  Fixes bug #78923.
21677
21678 2006-09-27  Chris Toshok  <toshok@ximian.com>
21679
21680         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
21681         then insert into hashtable" blocks threadsafe.
21682
21683 2006-09-27  Chris Toshok  <toshok@ximian.com>
21684
21685         * MessageBox.cs (CreateParams): the styles should be |'ed with our
21686         baseclass's, since otherwise the
21687         ControlBox/MinimizeBox/MaximizeBox assignments above have no
21688         effect.  This gets the close button back in messageboxes.
21689
21690 2006-09-27  Chris Toshok  <toshok@ximian.com>
21691
21692         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
21693         flag, not just != 0.  this makes flags that are actually multiple
21694         bits (like WS_CAPTION) work.  fixes bug #79508.
21695
21696 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
21697
21698         * PageSetupDialog.cs: add support for getting and settings the 
21699         paper size, source and orientation.
21700
21701 2006-09-26  Chris Toshok  <toshok@ximian.com>
21702
21703         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
21704         and caption == "", we need to remove the resize handles as well as
21705         the title bar.
21706
21707         * Control.cs (set_Text): turns out that setting Text on a form
21708         should change the WM styles on the window, since if ControlBox ==
21709         false, the only way to get a window border is to have a non-""
21710         Text property.  check winforms/forms/text.cs for an example.  so,
21711         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
21712         update both window styles and title.  This fixes a lot of dialogs
21713         (including the preferences dialog in MonoCalendar.)
21714
21715 2006-09-26  Chris Toshok  <toshok@ximian.com>
21716
21717         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
21718         control isn't a Form), call Win32ShowWindow to hide the window,
21719         but don't update the control Visible property.  When we reparent
21720         back to a parent control, call SetVisible in order for the
21721         window's visibility to be reinstated.
21722
21723         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
21724         the FosterParent.
21725
21726         * Control.cs (ControlCollection.Remove): remove that value.Hide()
21727         call for good, since it breaks MonoCalendar (and other things I'm
21728         sure.) Also, set all_controls to null *after* the owner calls,
21729         which end up regenerating it.
21730         (ChangeParent): allow new_parent to be == null, passing
21731         IntPtr.Zero down to XplatUI.
21732
21733         this fixes #79294 the right way.
21734
21735 2006-09-26  Mike Kestner  <mkestner@novell.com>
21736
21737         * GridEntry.cs : internal SetParent method.
21738         * PropertyGrid.cs : attach to property changed on the proper
21739         target if we have a hierarchical grid with subobjects. Setup
21740         GridItem.Parent for hierarchical items.
21741         * PropertyGridView.cs : Set value on the correct target for
21742         hierarchical grids. [Fixes #78903]
21743
21744 2006-09-26  Chris Toshok  <toshok@ximian.com>
21745
21746         * Control.cs (ChildNeedsRecreating): this should return true if
21747         either we're being recreated and the child is in our list, or our
21748         parent is waiting for our recreation.
21749
21750 2006-09-26  Chris Toshok  <toshok@ximian.com>
21751
21752         * Control.cs (ControlCollection.Remove): reinstate the
21753         value.Hide() call as suggested in bug #79294.
21754
21755 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
21756
21757         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
21758         coordinates (versus a relative move).
21759
21760 2006-09-26  Chris Toshok  <toshok@ximian.com>
21761
21762         * Control.cs: rework child recreation a little bit.  It turns out
21763         that we race between the DestroyNotify the WM_DESTROY message.  If
21764         the parent gets its DestroyNotify before the child gets the
21765         WM_DESTROY message, the child ends up not recreating (since the
21766         parent finishes its recreation on DestroyNotify, and the child
21767         checks ParentIsRecreating.)
21768
21769         So, instead we store off a list of all the child controls which
21770         need to be recreated when the parent control starts to recreate
21771         itself.  Then, when child controls get their WM_DESTROY message we
21772         check to see if they're in the parent's pending recreation list,
21773         and if so, we recreate.  This removes all dependency on ordering
21774         from the code and fixes the initial MonoCalendar upgrade dialog.
21775         
21776 2006-09-26  Jackson Harper  <jackson@ximian.com>
21777
21778         * TextControl.cs: Use the Line to get the length of the line,
21779         since soft line breaks can change the end line.
21780
21781 2006-09-26  Chris Toshok  <toshok@ximian.com>
21782
21783         * Control.cs (ControlCollection.AddImplicit): don't add the
21784         control again if it's already in one of our lists.  This keeps us
21785         from adding controls over and over again for comboboxes when their
21786         handle gets recreated (as the combobox adds implicit controls in
21787         OnHandleCreated).  Fixes the X11 errors in bug #79480.
21788
21789 2006-09-26  Jackson Harper  <jackson@ximian.com>
21790
21791         * TextControl.cs: When deleting characters make sure that any
21792         orphaned zero lengthed tags get deleted.
21793         - Fix ToString for zero lengthed tags.
21794
21795 2006-09-25  Jackson Harper  <jackson@ximian.com>
21796
21797         * TextControl.cs: When getting a tag at the location there can be
21798         multiple tags at the same spot, these are 0-lengthed tags that
21799         appear when extra formatting has been stuck in a location.  We
21800         need to pull out the last of these 0 lengthed tags.
21801
21802 2006-09-25  Jackson Harper  <jackson@ximian.com>
21803
21804         * TextControl.cs: Fix print out in debug method.
21805         * TextBoxBase.cs: When text is set bail if we are setting to the
21806         previous value.
21807         
21808 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
21809
21810         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
21811           It is now possible to change the selected index in a FontXXXListBox
21812           with the up and down arrow keys from the FontXXXTextBoxes.
21813           Also, send the FontXXXTextBox mouse wheel event to the corresponding
21814           FontXXXListBoxes to match ms.
21815
21816 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
21817
21818         * SystemInformation.cs: Return a clone of the theme's MenuFont because
21819         anyone can dispose it, anytime. All other properties returns enums, 
21820         structs or basic types so they don't need such tricks.
21821
21822 2006-09-22  Jackson Harper  <jackson@ximian.com>
21823
21824         * XplatUI.cs:
21825         * XplatUIWin32.cs:
21826         * Clipboard.cs:
21827         * DataFormats.cs:
21828         * XplatUIOSX.cs:
21829         * XplatUIDriver.cs: Update interface to add a primary selection
21830         flag, so the driver can use the primary selection buffer if
21831         needed.
21832         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
21833
21834         * RichTextBox.cs: We need to supply the data object to paste now
21835         (so we can choose to supply CLIPBOARD or PRIMARY).
21836         * TextBoxBase.cs: Supply data object to paste (see above).
21837         - Middle click uses the primary selection data object.
21838         
21839 2006-09-21  Chris Toshok  <toshok@ximian.com>
21840
21841         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
21842         of SetWMStyles.  It's still a rat's nest and is largely
21843         order-dependent which I dislike immensely.  This also fixes the X
21844         button disappearing from toplevel forms.
21845
21846 2006-09-21  Mike Kestner <mkestner@novell.com>
21847
21848         * ListBox.cs: move Jordi's click/dblclick raising code to the
21849         mouse up handler.
21850
21851 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
21852
21853         * ListBox.cs: Fixes 79450
21854
21855 2006-09-21  Mike Kestner <mkestner@novell.com>
21856
21857         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
21858         to deal with people updating the TreeNodeCollection after the tree
21859         is disposed.  "Fixes" 79330.
21860
21861 2006-09-20  Jackson Harper <jackson@ximian.com>
21862
21863         * TextControl.cs: Push the cursor record onto the undo stack
21864         before the delete action. This fixes 78651.
21865
21866 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
21867
21868         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
21869         CreateParams. Fixes 79329.
21870
21871 2006-09-19  Chris Toshok  <toshok@ximian.com>
21872
21873         * XplatUIX11.cs: a couple of blanket code massage passes to clean
21874         things up a bit.  First, get rid of the NetAtoms array (and the NA
21875         enum), and just embed the atoms as static fields.  Also, add a
21876         couple of functions (StyleSet and ExStyleSet) to clean up all the
21877         bitmask testing of styles.
21878
21879         * X11Structs.cs: remove the NA enum, not needed anymore.
21880         
21881 2006-09-19  Chris Toshok  <toshok@ximian.com>
21882
21883         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
21884         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
21885         added cleanup to get MessageBox titles appearing again, which were
21886         broken by my earlier fix for caption-less/ControlBox-less windows.
21887
21888 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
21889
21890         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
21891           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
21892           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
21893           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
21894           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
21895           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
21896           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
21897           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
21898           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
21899           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
21900           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
21901             Inital import.
21902         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
21903           ToolStripButton.cs: Stubs needed for above.
21904         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
21905
21906 2006-09-15  Chris Toshok  <toshok@ximian.com>
21907
21908         * XplatUIX11.cs:
21909         - make the MessageQueues hashtable Synchronized.
21910         
21911         - SendMessage: if the Hwnd is owned by a different thread, use the
21912         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
21913         thread.  Fixes bug #79201.
21914
21915 2006-09-15  Chris Toshok  <toshok@ximian.com>
21916
21917         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
21918         ControlBox == false, we disallow maximize/minimize/close.  If the
21919         form Caption is "" we also disallow move (and get rid of the Title
21920         decoration).  Unfortunately, regardless of how things are set,
21921         we're stuck with the Title and WM menu.
21922
21923 2006-09-15  Chris Toshok  <toshok@ximian.com>
21924
21925         * Application.cs: add locking around the static message_filters
21926         ArrayList, part of #79196.
21927
21928 2006-09-15  Chris Toshok  <toshok@ximian.com>
21929
21930         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
21931         Form.ControlBox == false, the window has no titlebar nor resize
21932         handles.  fixes bug #79368.
21933
21934 2006-09-15  Chris Toshok  <toshok@ximian.com>
21935
21936         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
21937         >= 0.  Fixes bug #79370.
21938
21939 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
21940         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
21941         * Control.cs:
21942             Add properties: LayoutEngine, Margin, DefaultMargin.
21943             Add method: GetPreferredSize.
21944             Move layout logic from PerformLayout to layout engines. 
21945
21946 2006-09-13  Chris Toshok  <toshok@ximian.com>
21947
21948         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
21949         fix for #79326 broke #78718, so this change addresses that.
21950
21951         - in SendWMDestroyMessages remove the call to
21952         CleanupCachedWindows, since we might be recreating the control and
21953         need to maintain the references to right Hwnd handles.  Also, set
21954         the zombie flag to true for each of the children in the hierarchy
21955         instead of calling hwnd.Dispose.  This will cause GetMessage to
21956         ignore all events for the window except for DestroyNotify.
21957
21958         - In GetMessage, ignore messages except for DestroyNotify for
21959         zombie hwnds.
21960         
21961         * Control.cs: revert the is_recreating fix from the last
21962         ChangeLog.  It's definitely "right", but it breaks switching from
21963         an MDI form to a non-MDI form.  Will need to revisit that.
21964
21965         * Hwnd.cs: add a zombie flag, which means "the
21966         client_window/whole_window handles are invalid, but we're waiting
21967         for the DestroyNotify event to come in for them".  Set the flag to
21968         false explicitly if setting WholeWindow/ClientWindow, and also
21969         when Disposing.
21970         
21971 2006-09-13  Chris Toshok  <toshok@ximian.com>
21972
21973         * XplatUIX11.cs: rework window destruction slightly.
21974
21975         - when destroying the windows associated with a control, we don't
21976         need 2 separate XDestroyWindow calls.  Just the one for the
21977         whole_window (or for client_window if whole_window is somehow
21978         IntPtr.Zero -- can this happen?) is enough.
21979
21980         - reworked SendWMDestroyMessages slightly, so we always dispose
21981         the child control hwnd's after sending the messages.
21982         
21983         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
21984         the two places it was used (one was even using hwnd.Handle and the
21985         other hwnd.client_window.  ugh), adding another call in
21986         SendWMDestroyMessages.  We need this new call because now the
21987         DestroyNotify events in the queue will be ignored for the child
21988         controls (as their hwnd's were disposed, and the window id's
21989         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
21990
21991         - this fixes bug #79326.
21992
21993 2006-09-13  Chris Toshok  <toshok@ximian.com>
21994
21995         * Control.cs: don't always set is_recreating to false at the end
21996         of RecreateHandle, since sometimes we're not done (and won't be
21997         until WndProc handles the WM_DESTROY message).  Also, set
21998         is_recreating to false in the WM_DESTROY handling code.  Part of
21999         the fix for bug #79326.
22000
22001 2006-09-13  Miguel de Icaza  <miguel@novell.com>
22002
22003         * X11DesktopColors.cs: Start the droppage of debugging messages.
22004
22005         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
22006
22007 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
22008
22009         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
22010
22011 2006-09-12  Chris Toshok  <toshok@ximian.com>
22012
22013         * DataGrid.cs (get_ListManager): if the list_manager is null, try
22014         to create it using SetDataSource.  Fixes bug #79151.
22015
22016 2006-09-11  Chris Toshok  <toshok@ximian.com>
22017
22018         * XEventQueue.cs: add a DispatchIdle property.
22019
22020         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
22021         either the queue is null, or the queue has DispatchIdle set to
22022         true.
22023         (DoEvents): set queue.DispatchIdle to false around the
22024         peek/translate/dispatch message loop in this method.  This keeps
22025         Application.Doevents from emitting idle events.  Part of the fix
22026         for #78823.
22027
22028 2006-09-11  Chris Toshok  <toshok@ximian.com>
22029
22030         * DataGrid.cs (set_DataSource): make this work for both the
22031         winforms/datagrid test and ReportBuilder.  It seems as though when
22032         we've created a ListManager (or maybe it's if we have a
22033         BindingContext?), when we set the DataSource it clears the
22034         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
22035         #79333.
22036
22037 2006-09-11  Chris Toshok  <toshok@ximian.com>
22038
22039         * XplatUIX11.cs: deal with queue being null, which happens in all
22040         the Clipboard functions.  Fixes one of the two problems mentioned
22041         in #78612.
22042
22043 2006-09-11  Chris Toshok  <toshok@ximian.com>
22044
22045         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
22046         button on various spots (including outside the menu) works closer
22047         to MS, and doesn't crash.  Fixes #79343.
22048
22049 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
22050
22051         * ListView.cs: Do not initialize item_sorter in init. To match MS,
22052         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
22053         and the internal comparer is set. When a new ListViewItemSorter is set,
22054         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
22055         was specified. No further processing is necessary if SortOrder is set
22056         to it's current value. If Sorting is modified to None, and View is
22057         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
22058         (either custom or our internal ItemComparer) to null, on 1.0 profile
22059         only set item_sorter to null if its our internal IComparer. If Sorting
22060         is modified to Ascending or Descending, then use our internal IComparer
22061         if none is set, and if the current IComparer is our internal one then:
22062         on 2.0 profile always replace it with one for new Sorting, and on 1.0
22063         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
22064         Enum.IsDefined to verify whether a valid View value is specified in
22065         its setter. Automatically sort listview items when listview is
22066         created. In Sort, do nothing if ListView is not yet created, or if
22067         no item_sorter is set (no Sorting was set, Sorting was explicitly set
22068         to None or ListViewItemSorter was set to null). Added Sort overload
22069         taking a bool to indicate whether the ListView should be redrawn when
22070         items are sorted (we use this in ListViewItemCollection to avoid double
22071         redraws). Modified our internal IComparer to take the sort order into
22072         account. In Add and AddRange methods of ListViewItemCollection, also
22073         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
22074         view), but use overload with noredraw option to avoid double redraw.
22075         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
22076         true when View is Tile, and do the same when attempting to set View to
22077         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
22078         for selected/checked indices, as it involves overhead when sorting is
22079         done while these collections are not used all that often. Instead
22080         we'll build the indices on demand. Modified IList implementation of
22081         CheckedIndexCollection to use public methods if object is int.
22082         Modified CheckedListViewItemCollection to hide checked items if
22083         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
22084         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
22085         IList implementation in SelectedIndexCollection to use public methods
22086         if object is int. Modified SelectedListViewItemCollection to hide
22087         selected items if listview is not yet created.
22088         * ListViewItem.cs: CheckedIndices list no longer needs to be
22089         maintained separately (see ListView changes). Also clone font, fixes
22090         test failure.
22091
22092 2006-09-11  Mike Kestner  <mkestner@novell.com>
22093
22094         * ComboBox.cs: if we are updating the contents of the currently
22095         selected index, refresh the control or the textbox selection.
22096         [Fixes #79066]
22097
22098 2006-09-11  Mike Kestner  <mkestner@novell.com>
22099
22100         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
22101         the 'specified' logic has been moved there.  This seems like a bug 
22102         in Control.cs, since our current SetBoundsCore completely ignores 
22103         the specified parameter.  Peter's commit seems to indicate that is 
22104         the way the MS control implementation works.  [Fixes #79325]
22105
22106 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
22107
22108         * XplatUI.cs: Set default_class_name to be composed
22109         of current domain id. This allows MWF to be loaded in multiple
22110         domains on Win32.
22111
22112 2006-09-09  Miguel de Icaza  <miguel@novell.com>
22113
22114         * X11Keyboard.cs: If we are unable to obtain the input method, do
22115         not call CreateXic to create the input context.   Should fix
22116         #78944/79276.
22117
22118 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
22119
22120         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
22121           Simplified gnome support by adding more pinvokes to get the
22122           icon for a file or mime type.
22123
22124 2006-09-08  Jackson Harper  <jackson@ximian.com>
22125
22126         * MenuAPI.cs: Deslect popup context menu items before closing the
22127         window, so that you don't see the previously selected item
22128         selected when you reopen the menu.
22129         * TextControl.cs: Update the cursor position even if we don't have
22130         focus.  This fixes typing in things like the ComboBox.  I'm not
22131         totally sure we should always set the visibility if we don't have
22132         focus, but couldn't find any corner cases where the cursor showed
22133         up when it shouldn't.
22134
22135 2006-09-08  Chris Toshok  <toshok@ximian.com>
22136
22137         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
22138         our arrays are length 256.  & 0xff before indexing.  Fixes the
22139         crash in bug #78077.
22140         
22141 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22142
22143         * ThemeWin32Classic.cs: 
22144         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
22145         is true. Handle that check box too.
22146
22147 2006-09-07  Chris Toshok  <toshok@ximian.com>
22148
22149         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
22150         79244.
22151
22152 2006-09-07  Chris Toshok  <toshok@ximian.com>
22153
22154         * Control.cs: in set_BackColor only do the work if
22155         background_color != value.
22156
22157         * XplatUIX11.cs: move the clearing of invalid areas (both client
22158         and nc) to the same block of code where we set (nc_)expose_pending
22159         to false.  That is, move it from PaintEventEnd to PaintEventStart,
22160         so things that cause invalidates from within OnPaint will trigger
22161         another call to OnPaint.  Fixes bug #79262.
22162
22163 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
22164
22165         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
22166         * FileDialog.cs: Fix typo
22167
22168 2006-09-07  Jackson Harper  <jackson@ximian.com>
22169
22170         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
22171         for tab pages if they have any.
22172
22173 2006-09-06  Mike Kestner  <mkestner@novell.com>
22174
22175         * Splitter.cs: use the "current" rect when finishing drag handle
22176         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
22177
22178 2006-09-06  Mike Kestner  <mkestner@novell.com>
22179
22180         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
22181         support offset splitters. [Fixes #79298]
22182
22183 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
22184
22185         * Mime.cs: Fixed a bug that could override the global mime type
22186           result.
22187
22188 2006-09-05  Jackson Harper  <jackson@ximian.com>
22189
22190         * TabControl.cs: Better calculation method for setting the slider
22191         pos. Prevents crashes on really wide tabs.
22192         - Draw Image on tab pages if an image list is used.
22193
22194 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22195
22196         * MonthCalendar.cs: When Font changes, the Size should be
22197         updated to fit the new font's space requirements.
22198
22199 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
22200
22201         * ListBox.cs: If the items are cleared with Items.Clear set
22202           top_index to 0.
22203
22204 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22205
22206         * MonthCalendar.cs: Handle arrow keys as input keys. Also
22207         fire DateChanged event instead of DateSelected event when
22208         the date was changed by keyboard interaction.
22209
22210 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22211
22212         * DateTimePicker.cs: Handle DateChanged for the associated
22213         month_calendar control, and set month_calendar.Font from 
22214         OnFontChanged method, as well as resize the height of the
22215         control when needed. Make PreferredHeight proportional.
22216
22217 2006-09-01  Chris Toshok  <toshok@ximian.com>
22218
22219         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
22220         properties.
22221
22222         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
22223
22224 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
22225
22226         * FileDialog.cs: Set ClientSize instead of window size, to allow space
22227           for decorations (Fixes #79219)
22228
22229 2006-09-01  Mike Kestner  <mkestner@novell.com>
22230
22231         * ComboBox.cs: first stab at sorting plus some selection handling
22232         fixes to bring us more in line with MS behavior.  Also switches back
22233         to index based selection.  Alternative patches for index-based 
22234         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
22235         and latency@gmx.de on bug 78848.  I assume they were similar to this
22236         code I've had simmering in my tree forever.
22237         [Fixes #78848]
22238
22239 2006-09-01  Chris Toshok  <toshok@ximian.com>
22240
22241         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
22242         when setting list position guard against ending up with a -1 index
22243         (the other part of the fix for #78812).  Should probably make sure
22244         we don't need the analogous fix in the ItemDeleted case.
22245
22246         * DataGrid.cs:
22247         - in SetDataSource, work around the fact that the way
22248         OnBindingContextChanged is invoked will cause us to re-enter this
22249         method.  I'll remove the hack once I investigate
22250         OnBindingContextChanged.
22251
22252         - fix the logic in set_DataSource and set_DataMember (basically
22253         what to do if the other of the two is null.)
22254         
22255         - in OnListManagerItemChanged, we need to take into account the
22256         edit row when deciding whether or not to call RecreateDataGridRows
22257         (part of the fix for #78812).
22258
22259 2006-09-01  Jackson Harper  <jackson@ximian.com>
22260
22261         * Splitter.cs: Don't do anything if there is no control to affect
22262         (prevents us from crashing in weird tet cases).
22263         * TreeView.cs: Bounding box for the mouse movement reverting
22264         focus/selection back to previously selected node.  This matches
22265         MS, and makes the tree a lot more useable.
22266         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
22267         use clipping so they are not drawn.  This fixes when the control
22268         is set to have a transparent background, or if it was over an
22269         image.
22270
22271 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
22272
22273         * MimeIcon.cs: Improved handling for reading default icons when
22274           using gnome (2.16 made it necessary). Check and read svg icons
22275           first, then 48x48 and then 32x32 icons.
22276
22277 2006-08-31  Chris Toshok  <toshok@ximian.com>
22278
22279         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
22280         visible.
22281
22282         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
22283         ProcessKeyPreview.  Fixes part of #77806.
22284
22285         * DataGrid.cs: big patch.
22286
22287         - revert the queueing up of DataSource/DataMember if inside
22288         BeginInit/EndInit calls.  That's not the way the datagrid achieves
22289         its delayed databinding.  Instead, call SetDataSource in
22290         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
22291         #78811.
22292
22293         - Also, it wasn't mentioned in #78811, but the test case exhibits
22294         behavior that was lacking in our datagrid implementation - Columns
22295         that have mapping names that don't exist in the datasource's
22296         properties aren't shown.  Yuck.  To fix this I added the bound
22297         field to the column style, and basically any calculation to figure
22298         out anything about columns uses a loop to find the bound columns.
22299         still need to investigate if I can cache an array of the bound
22300         columns or if the indices must be the same.
22301
22302         - When setting CurrentCell, we no longer abort if the cell being
22303         edited was in the add row.  This fixes the other part of #77806.
22304
22305         - The new code also fixes #78807.
22306         
22307         * ThemeWin32Classic.cs: perpetrate the same disgusting
22308         column.bound field hack, and only render bound fields.
22309
22310 2006-08-31  Chris Toshok  <toshok@ximian.com>
22311
22312         * DataGridColumnStyle.cs: add bound field.  this field is true if
22313         the datasource has a property corresponding to the mapping name.
22314
22315         * DataGridTableStyle.cs: set the bound field on the column styles
22316         depending on whether or not we have a column for that property.
22317
22318 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
22319
22320         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
22321           splitter control (fixes #79228)
22322
22323 2006-08-31  Chris Toshok  <toshok@ximian.com>
22324
22325         * DataGridColumnStyle.cs: we need to delay the assignment of
22326         property descriptor until the last possible moment due to the lazy
22327         databinding stuff in the datagrid.  Also, fix the exceptions
22328         thrown by CheckValidDataSource to match MS.
22329
22330 2006-08-31  Jackson Harper  <jackson@ximian.com>
22331
22332         * Form.cs: When activated select the active control, if there is
22333         no active control, we select the first control.
22334         * XplatUIX11.cs: If there is no focus control when we get a
22335         FocusIn event, find the toplevel form and activate it.  This
22336         occurs when you popup a window, it becomes the focus window, then
22337         you close that window, giving focus back to the main window.
22338
22339 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22340
22341         * MonthCalendar.cs: 
22342         * ThemeWin32Classic.cs: Cache Font in bold style, as well
22343         as StringFormat with Center alignments in MonthCalendar,
22344         instead of creating new ones when drawing the control. 
22345         Also, draw the month name in bold style.
22346
22347 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
22348
22349         * Control.cs:
22350           - PerformLayout(): It would seem MS performs the fill even if the 
22351             control is not visible (part of #79218 fix)
22352           - ResetBackColor(): Use the setter to reset the color, to allow
22353             overriders to catch the change.
22354         * Form.cs:
22355           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
22356           - CreateHandle(): dito (part of $79218 fix)
22357           - Don't set an icon if we have a dialog
22358         * ScrollableControl.cs:
22359           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
22360           - ScrollIntoView(): No need to scroll if control is already visible
22361             (resolves fixme and fixes #79218)
22362
22363 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22364
22365         * MonthCalendar.cs: Change proportions in SingleMonthSize
22366         to match the aspect of the original control.
22367
22368 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
22369
22370         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
22371           get updated when they get maximized.
22372
22373 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
22374
22375         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
22376
22377 2006-08-29  Chris Toshok  <toshok@ximian.com>
22378
22379         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
22380
22381 2006-08-29  Jackson Harper  <jackson@ximian.com>
22382
22383         * TreeView.cs: Need to track selected node and highlighted node,
22384         they aren't always the same thing, when the mouse is down on a
22385         node it is hilighted, but not selected yet.
22386         - Do the HideSelection stuff right
22387         - Need to focus on rbutton mouse down. And redraw selection when
22388         right click is mouse upped.
22389
22390 2006-08-29  Mike Kestner  <mkestner@novell.com>
22391
22392         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
22393         when SubItems.Count < Columns.Count.  [Fixes #79167]
22394
22395 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
22396
22397         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
22398
22399 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
22400
22401         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
22402           from X. Only send based on ConfigureNotify if we don't have the
22403           correct location in hwnd (if the window manager moved us)
22404
22405 2006-08-28  Mike Kestner  <mkestner@novell.com>
22406
22407         * ListView.cs: remove a TODO. 
22408         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
22409         [Fixes ListView part of #79166]
22410
22411 2006-08-28  Mike Kestner  <mkestner@novell.com>
22412
22413         * ListView.cs: move wheel handler to parent since it is focused
22414         instead of the item_control now.  [Fixes #79177]
22415
22416 2006-08-28  Mike Kestner  <mkestner@novell.com>
22417
22418         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
22419         when the control is focused. [Fixes #79171]
22420
22421 2006-08-28  Mike Kestner  <mkestner@novell.com>
22422
22423         * ListView.cs: size the item and header controls for empty and
22424         unscrollable views.
22425         * ThemeWin32Classic.cs: draw disabled backgrounds.
22426         [Fixes #79187]
22427
22428 2006-08-28  Chris Toshok  <toshok@ximian.com>
22429
22430         * Form.cs: remove unused "active_form" static field.
22431
22432         * Hwnd.cs: lock around accesses to static windows collection.
22433
22434         * Application.cs: lock threads in Exit ().
22435
22436 2006-08-28  Chris Toshok  <toshok@ximian.com>
22437
22438         * NativeWindow.cs: lock around accesses to window_collection.
22439         
22440 2006-08-28  Chris Toshok  <toshok@ximian.com>
22441
22442         * Control.cs: err, fix this the right way, by locking on controls
22443         when using it.  not by making it synchronized.
22444
22445 2006-08-28  Chris Toshok  <toshok@ximian.com>
22446
22447         * Control.cs: make the static "controls" field synchronized, as it
22448         gets updated from multiple threads.
22449
22450 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
22451
22452         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
22453           Prevent other threads from exiting when calling thread sets quit state.
22454         * XEventQueue.cs: Added PostQuitState property
22455
22456 2006-08-27  Chris Toshok  <toshok@ximian.com>
22457
22458         * AsyncMethodData.cs: add a slot for the window handle.
22459
22460         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
22461         window (the destination control's window, not the foster window).
22462
22463         * Control.cs (BeginInvokeInternal): store the window's handle in
22464         the AsyncMethodData.
22465         
22466
22467 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
22468
22469         * XplatUIX11.cs:
22470           - PostQuitMessage: Removed resetting S.D display handle, we might have
22471             another loop started after calling PostQuitMessage (Fixes #79119)
22472           - Created destructor to reset S.D handle
22473
22474 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
22475
22476         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
22477
22478 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22479
22480         * TextControl.cs (Insert): Update the caret position even if we don't
22481           have a handle yet, just don't call the driver in that case.
22482         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
22483           to the end of the new selection text (Fixes #79184)
22484
22485 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22486
22487         * Form.cs (Activate): Only activate if the handle is created)
22488         * Control.c:
22489           - Mark window as invisible when it's disposed
22490           - Check if window handle is created when setting window visible, 
22491             instead of relying just on the is_created variable
22492           - Check if object is disposed when creating the control (Fixes #79155)
22493
22494 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22495
22496         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
22497           when allowing layout again. Otherwise we re-generate the anchoring 
22498           distance to the border again and actually alter what the user wanted
22499           This is ugly, it'd be better if we used DisplayRectangle instead of
22500           ClientRectangle for Control.UpdateDistances, but that causes us to
22501           have other problems (initial anchoring positons would be wrong)
22502           (Fixes #78835)
22503
22504 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22505
22506         * Control.cs:
22507           - The size and location setters shouldn't go directly to 
22508             SetBoundsCore, but to SetBounds, which triggers layout on the
22509             parent, then calls SetBoundsCore. (Related to fix for #78835)
22510           - SetBounds: Moved actual location update code into this function
22511             from SetBoundsCore, to match MS. Added call to PerformLayout if
22512             we have a parent (to trigger resizing of anchored parents if the 
22513             child size has changed (see testcase for #78835) 
22514         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
22515           new control code
22516         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
22517
22518 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22519
22520         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
22521           System.Drawing when a toplevel window gets closed; there might
22522           be other toplevel windows belonging to the same app (Fixes #78052)
22523
22524 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
22525
22526         * FileDialog.cs: After reading FileDialog settings from mwf_config
22527           use Desktop prefix only if a real folder doesn't exist anymore.
22528         * FontDialog.cs: Added char sets.
22529           It is now possible to select the font, size or style with the
22530           textboxes.
22531
22532 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
22533
22534         * PrintPreviewDialog.cs: Use assembly name constants.
22535
22536 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22537
22538         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
22539           scrollbar from whacking it's buttons)
22540
22541 2006-08-24  Chris Toshok  <toshok@ximian.com>
22542
22543         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
22544         in this patch (aggregating setting Left/Top/Width/Height to
22545         setting Bounds on the scrollbars), but the crux of the fix is in
22546         Recalculate, where we scroll by the remaining scroll_position if
22547         we're hiding a scrollbar.  The 2*$5 reward in the comment is
22548         serious.
22549
22550 2006-08-24  Jackson Harper  <jackson@ximian.com>
22551
22552         * MdiClient.cs:
22553         * MdiWindowManager.cs: If the form is made a non-mdi window we
22554         need to remove the form closed event so that closing forms works
22555         correctly.
22556
22557 2006-08-24  Jackson Harper  <jackson@ximian.com>
22558
22559         * Control.cs: Make IsRecreating internal so that the driver can
22560         check it
22561         - Temporarily remove the Hide when controls are removed, its
22562         making a whole bunch of things not work because visibility isn't
22563         getting reset elsewhere correctly
22564         * Form.cs: Need to do a full handle recreation when the mdi parent
22565         is set.
22566         * XplatUIX11.cs: If we are recreating handles don't dispose the
22567         HWNDs.  What was happening is the handles were being recreated in
22568         SendWMDestroyMessages, but then flow continued on in that method
22569         and destroyed the new handles.
22570
22571 2006-08-23  Jackson Harper  <jackson@ximian.com>
22572
22573         * Form.cs: MdiClient is always at the back of the bus
22574         * Control.cs: When the order of items in the collection is changed
22575         we need to reset the all_controls array
22576         - do the same sorta setup thats done when adding a control when a
22577         control is set on the collection.
22578
22579 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22580
22581         * TextBoxBase.cs (get_Text): Return an empty array if our document
22582           is empty (fixes #79052)
22583
22584 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22585
22586         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
22587           on WM_SYSCHAR messages (fixes #79053)
22588
22589 2006-08-23  Chris Toshok  <toshok@ximian.com>
22590
22591         * DataGrid.cs: fix flickering when scrolling vertically.
22592
22593 2006-08-23  Chris Toshok  <toshok@ximian.com>
22594
22595         * DataGrid.cs (EndEdit): only invalidate the row header when we
22596         need to.
22597
22598 2006-08-23  Chris Toshok  <toshok@ximian.com>
22599
22600         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
22601         methods.  fixes the flicker when scrolling around.
22602
22603 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22604
22605         * FileDialog.cs: Making sure the control is created before we get a 
22606           chance to use it with BeginInvoke (Fixes #79096)
22607
22608 2006-08-23  Chris Toshok  <toshok@ximian.com>
22609
22610         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
22611         width to use when painting the rows.
22612
22613 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22614
22615         * TextBoxBase.cs:
22616           - Throw ArgumentException if a negative value is passed to SelectionLength
22617           - Update the selection end if start is moved. end needs to be always
22618             after start. (Fixes #79095)
22619           - Track selection length; MS keeps the selection length even if start
22620             is changed; reset on all other operations affection selection
22621
22622 2006-08-22  Jackson Harper  <jackson@ximian.com>
22623
22624         * TreeView.cs: Make sure both scrollbars get displayed and sized
22625         correctly when the other bar is visible.
22626         - Use the original clip rectangle for checking if the area between
22627         the two scrollbars is visible, not the viewport adjusted clipping
22628         rectangle.
22629
22630 2006-08-22  Jackson Harper  <jackson@ximian.com>
22631
22632         * Binding.cs: We don't use IsBinding because it requires the
22633         control to be created, which really shouldn't be necessary just to
22634         set a property on the control.
22635
22636 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22637
22638         * ComboBox.cs: Some CB.ObjectCollection methods must throw
22639         ArgumentNullReferenceException when the argument is null.
22640
22641 2006-08-21  Jackson Harper  <jackson@ximian.com>
22642
22643         * Timer.cs: Track the thread that the timer is started in (NOT
22644         CREATED), this way messages for it will only be triggered on its
22645         queue.
22646         * XEventQueue.cs: Track the timers here, this makes timers per
22647         thread, like MS.
22648         * XplatUIX11.cs: The timers are moved to the XEventQueue.
22649
22650 2006-08-19  Chris Toshok  <toshok@ximian.com>
22651
22652         * XplatUIX11.cs: after further communication with pdb, we get the
22653         best of both worlds.  SetZOrder working for un-Mapped windows, and
22654         no X errors for un-mapped windows.
22655
22656 2006-08-19  Chris Toshok  <toshok@ximian.com>
22657
22658         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
22659         as it was causing pdn toolbars to not have the correct stacking.
22660
22661 2006-08-18  Mike Kestner  <mkestner@novell.com> 
22662
22663         * ListView.cs : guard against negative ClientArea.Width in scrollbar
22664         calculation.  Not sure why control should ever be setting a negative
22665         width though.  Fixes #78931.
22666
22667 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22668
22669         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
22670         null items in ObjectCollection class.
22671         * ListBox.cs.: Likewise.
22672
22673 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
22674
22675         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
22676           as the base method in ThemeWin32Classic should work fine.
22677           Fixed bug #78607.
22678
22679 2006-08-18  Jackson Harper  <jackson@ximian.com>
22680
22681         * Binding.cs: When validating if the value entered doesn't convert
22682         properly reset to the old value.
22683         * RadioButton.cs: Don't fire click when we get focus.
22684
22685 2006-08-18  Jackson Harper  <jackson@ximian.com>
22686
22687         * FileDialog.cs: Paint the selection on the directory combobox the
22688         same way as on MS. 
22689
22690 2006-08-17  Jackson Harper  <jackson@ximian.com>
22691
22692         * ErrorProvider.cs: Don't allow the error control to be selected.
22693         * Control.cs: Don't send the SetFocus messages, the control
22694         activation will do this, and if we do it blindly here validation
22695         does not work.
22696
22697 2006-08-17  Jackson Harper  <jackson@ximian.com>
22698
22699         * Control.cs:
22700         * ContainerControl.cs: Make validation events fire in the correct
22701         order.  TODO: For some reason the first validation event is not
22702         getting fired.
22703
22704 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22705
22706         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
22707
22708 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22709
22710         * ComboBox.cs : implement scroll wheel support for popped-down
22711         state. Fixes #78945. 
22712
22713 2006-08-17  Jackson Harper  <jackson@ximian.com>
22714
22715         * TreeView.cs: Specify treeview actions (old patch that didn't get
22716         committed for some reason).
22717         - Don't let the mouse wheel scroll us too far.  Just want to make
22718         the bottom node visible, not scroll it all the ways to the top.
22719
22720 2006-08-17  Jackson Harper  <jackson@ximian.com>
22721
22722         * XplatUIX11.cs: Mouse wheel events go to the focused window.
22723
22724 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22725
22726         * ComboBox.cs : don't do mouseover selection in simple mode.
22727
22728 2006-08-16  Jackson Harper  <jackson@ximian.com>
22729
22730         * Form.cs: Fire the closing events for all the mdi child windows
22731         when a window is closed.  If the cancel args are set to true, the
22732         main window still gets the event fired, but it doesn't not close.
22733         * MdiWindowManager.cs: Do this closing cleanup in a Closed
22734         handler, instead of when the button is clicked, so cancelling the
22735         close works correctly.
22736         * ComboBox.cs: Send the mouse down to the scrollbar.
22737
22738 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22739
22740         * ListBox.cs: When passing 'null' to SelectedItem,
22741         set SelectedIndex to -1, to unselect items. This is the
22742         observed behaviour in .Net.
22743
22744 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
22745
22746         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
22747           MS flags saying there won't be any. (fixes #78800)
22748         * Control.cs (HandleClick): Made virtual
22749
22750 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
22751
22752         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
22753           cultures. Fixed bug #78399.
22754
22755 2006-08-16  Jackson Harper  <jackson@ximian.com>
22756
22757         * Form.cs: Use the MdiClients MdiChildren property to access
22758         MdiChildren instead of creating the array from the child controls.
22759         * MdiClient.cs: Maintain a separate array of the mdi children, so
22760         that insertion order is maintained when the Z-order is changed.
22761
22762 2006-08-16  Mike Kestner  <mkestner@novell.com> 
22763
22764         * ListView.cs : add an ItemComparer and default to it for sorting.
22765         Fixes #79076, but sorting needs a complete overhaul to be compat with
22766         MS.
22767
22768 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
22769
22770         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
22771
22772 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22773
22774         * Hwnd.cs (Mapped): Properly traverse the tree
22775
22776 2006-08-15  Chris Toshok  <toshok@ximian.com>
22777
22778         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
22779         pass manager.Current.GetType() to ParseData.  It has to be the
22780         property type.  So, hold off doing the ParseData until we're in
22781         SetPropertyValue where we know the type.  This fixes the crash in
22782         #78821 but the textbox is still empty.
22783
22784 2006-08-15  Chris Toshok  <toshok@ximian.com>
22785
22786         * DataGrid.cs:
22787         - when we're scrolling, only call Edit() again if the
22788         current cell is still unobscured. Fixes bug #78927.
22789         - when handling mousedown on a cell, ensure the cell is visible
22790         before calling Edit.
22791         - remove the properties from DataGridRow, and remove the
22792         DataGridParentRow class altogether.
22793         
22794
22795 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22796
22797         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
22798           fire OnTextChanged by ourselves. There's no point calling base,
22799           we don't set the base value anywhere else. Fixes #78773.
22800
22801 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22802
22803         * ListBox.cs: Call CollectionChanged when modifying
22804         an item from Items indexer, to update the actual items
22805         in the list box.
22806
22807 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22808
22809         * PrintDialog.cs: Small fixes for focus and a pair of checks,
22810         to match .Net behaviour.
22811
22812 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22813
22814         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
22815
22816 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
22817
22818         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
22819
22820 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22821
22822         * MessageBox.cs: Prevent potential NRE exception.
22823         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
22824
22825 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
22826
22827         * MessageBox.cs: Calculate the owner of a messagebox, also make
22828           it topmost. Fixes #78753
22829
22830 2006-08-14  Chris Toshok  <toshok@ximian.com>
22831
22832         * XplatUIX11.cs: A couple of fixes so that metacity will let us
22833         programmatically move windows.  first, set the PPosition hint as
22834         well as the USPosition hint.  Second include some code from pdb
22835         that sets the window type to NORMAL when we set the transient for
22836         hint.  This is because, in the absence of a window type, metacity
22837         thinks any window with TransientFor set is a dialog, and refuses
22838         to let us move it programmatically.  fascists.
22839
22840 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
22841
22842         * XplatUIX11.cs: When setting normal hints, take into consideration
22843           an different hints previously set so we don't delete them (fixes #78866)
22844
22845 2006-08-12  Chris Toshok  <toshok@ximian.com>
22846
22847         * ToolBarButton.cs: make Layout return a boolean, if something to
22848         do with the button's layout changed.
22849
22850         * ToolBar.cs:
22851         - add another parameter to Redraw, @force, which all existing
22852           calls set to true.
22853         - make the Layout function return a boolean which is true if the
22854           layout has actually changed.  Redraw now uses this (and @force)
22855           to determine when to invalidate.  At present the only place
22856           where @force can be false is the call from OnResize, when
22857           background_image == null.  So, resizing a toolbar when the
22858           layout doesn't change results in no drawing.
22859
22860 2006-08-12  Chris Toshok  <toshok@ximian.com>
22861
22862         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
22863         the VScrollBar and HScrollbar reversed.  oops.
22864
22865         * DataGrid.cs: fix the logic that assigns sizes to the implicit
22866         scrollbars.  we were assigning them twice (once in
22867         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
22868         therefore causing two scrollbar resizes (and redraws?) to happen
22869         per grid resize.
22870
22871 2006-08-12  Chris Toshok  <toshok@ximian.com>
22872
22873         * ToolBarButton.cs: redraw the entire button if the theme tells us
22874         to.
22875
22876         * Theme.cs: add ToolBarInvalidateEntireButton.
22877
22878         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
22879         buttons, just the border.
22880
22881         * ThemeNice.cs: redraw the entire toolbar button since we need to
22882         draw the highlight image.
22883
22884         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
22885         we need to redraw the entire button (not just the border).
22886
22887 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
22888
22889         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
22890           for vertical bars. Fixes the mismatches shown by #78513
22891
22892 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
22893
22894         * FileDialog.cs: If a saved/remembered path doesn't exist
22895           anymore, fall back to "Desktop".
22896
22897 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
22898
22899         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
22900           parent. It's apparently legal to not have one
22901         * XplatUIX11.cs:
22902           - SetZOrder: Don't try to set Z-Order on an unmapped window
22903           - CreateWindow: 0,0 are legal coordinates for a window. don't move
22904             it unless the coordinates are negative
22905
22906 2006-08-10  Mike Kestner  <mkestner@novell.com>
22907
22908         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
22909         when setting to null per msdn docs.  Fixes #78854.
22910
22911 2006-08-10  Chris Toshok  <toshok@ximian.com>
22912
22913         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
22914         flickering by setting a clip rectangle on the Graphics when we
22915         need to redraw just a particular menuitem.  Also, rename "OnClick"
22916         to "OnMouseDown" to reflect what it actually is.
22917         
22918         * Form.cs: track the OnMouseDown change.
22919
22920 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
22921
22922         * CommonDialog.cs: Properly inherit the CreateParams from the form
22923           and only change what we need. Fixes #78865
22924
22925 2006-08-10  Chris Toshok  <toshok@ximian.com>
22926
22927         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
22928         flickering in flat mode (and most of the flickering in general) by
22929         only invalidating the button border (and not the entire rectangle)
22930         when the state changes.  A couple of cases still flicker:
22931         ToggleButtons, and the dropdown arrow case when the user mouse
22932         ups.
22933
22934 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
22935
22936         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
22937           for german keyboards. Numlock state shouldn't affect the behaviour
22938           of the Del key. Fixes bug #78291.
22939
22940 2006-08-10  Chris Toshok  <toshok@ximian.com>
22941
22942         * ListControl.cs: remove the items.Clear line from BindDataItems,
22943         as this is the first thing done by both subclasses in their
22944         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
22945         passed -1, refresh the list.  This gets databinding working when
22946         the datasource is set on the list before the datasource is
22947         populated (as in wf-apps/ReportBuilder.)
22948
22949         * ComboBox.cs: remove the argument to BindDataItems.  This call
22950         should really go away, and be initiated by the ListControl code.
22951
22952         * ListBox.cs: same.
22953
22954 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
22955
22956         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
22957           if no data is in the document when the control is displayed
22958
22959 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
22960
22961         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
22962           yes (fixes #78806)
22963         * TextControl.cs: 
22964           - PositionCaret: Allow positioning of caret but don't call methods 
22965             requiring a handle if the window isn't created yet
22966           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
22967           - owner_HandleCreated: Don't position the caret, just update it's 
22968             location. User might have already set a different position
22969
22970 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
22971
22972         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
22973           windows. Screws up the returned coordinates for child windows. 
22974           Fixes #78825. I'm hoping this doesn't break something, since the
22975           code was explicitly put in 8 months ago, but no bug was attached.
22976           Menus still seem to work properly.
22977
22978 2006-08-08  Chris Toshok  <toshok@ximian.com>
22979
22980         * DataGrid.cs: make BeginInit/EndInit actually do what they're
22981         supposed to do - delay data binding until the EndInit call.  Also,
22982         make the table style collection's CollectionChangeAction.Refresh
22983         work properly.
22984
22985         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
22986         (with action = Refresh) when a consituent table's MappingName is
22987         changed.
22988
22989 2006-08-08  Chris Toshok  <toshok@ximian.com>
22990
22991         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
22992         Invalidate, since changing the text can change the size of the all
22993         toolbar buttons.
22994
22995 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
22996
22997         * Form.cs (AddOwnedForm): Still need to add the form to our listif
22998           we don't have it yet
22999
23000 2006-08-08  Chris Toshok  <toshok@ximian.com>
23001
23002         * PrintControllerWithStatusDialog.cs: don't .Close() the status
23003         dialog, as this causes X errors later on, since we actually
23004         destroy the window.  Instead, .Hide() it.
23005
23006 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
23007
23008         * ComboBox.cs: Added focus reflection for popup window
23009         * XplatUIX11.cs: 
23010           - Removed transient setting for non-app windows for now, not sure it
23011             was needed
23012           - Fixed logic checking if we have captions when deciding 
23013             override_redirect, WS_CAPTION is two bits and a 0 check was not
23014             sufficient
23015           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
23016             complicated
23017         * Form.cs: 
23018           - AddOwnedForm: Don't just add the form to the list, call the property
23019             to ensure the driver is informed about the ownership as well
23020           - CreateHandle: Set the TopMost status in the driver if we have an owner
23021         * XplatUI.cs: Fixed debug statement
23022
23023 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
23024         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23025           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
23026           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
23027           TrackBarRenderer.cs: Make constructor private.
23028         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
23029         * ProfessionalColorTable.cs: Make properties virtual.
23030
23031 2006-08-06  Duncan Mak  <duncan@novell.com>
23032
23033         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
23034         is not changing.
23035
23036 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23037         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23038           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
23039           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
23040           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
23041           Initial import of new 2.0 classes.
23042
23043 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23044         * Application.cs: Add 2.0 VisualStyles properties.
23045
23046 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23047         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23048           XplatUIX11.cs: Create property to allow access to existing private
23049           variable "themes_enabled"
23050
23051 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23052
23053         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
23054         file size, as otherwise our class libraries fail using windows. Fixes
23055         bug #78759.
23056
23057 2006-08-04  Jackson Harper  <jackson@ximian.com>
23058
23059         * Form.cs:
23060         * XplatUIX11.cs: Move the toolwindow window manager creation into
23061         the X11 driver, this way on win32 we can let windows create/handle
23062         the toolwindows.
23063
23064 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23065
23066         * PrintDialog.cs: Remove some redundant checks, add some others,
23067         clean some code, and move the focus to the text boxes when the
23068         values are incorrect.
23069
23070 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
23071
23072         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
23073
23074 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
23075
23076         * NumericUpDown.cs: Setting the Minimum and Maximum is now
23077           handled correctly. Fixes bug #79001.
23078
23079 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23080
23081         * PrintDialog.cs: The "Copies" numeric up down must have
23082         set the Minimum property to 1; only if the value is bigger
23083         than 1, activate "Collate" check box. This is the behaviour of .Net.
23084         Also modify the Document elements only if it is not null.
23085
23086 2006-08-03  Jackson Harper  <jackson@ximian.com>
23087
23088         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
23089         length. (We have a larger array then actual node count).
23090                 
23091 2006-08-03  Jackson Harper  <jackson@ximian.com>
23092
23093         * ComboBox.cs: Don't show selection by default.
23094         - The SelectAll isn't needed here, since the focus code should do
23095         that
23096         - DDL style lists to manual selection drawing, so when they
23097         get/lose focus they have to invalidate.
23098
23099 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
23100
23101         * TextBoxBase.cs: Don't always show all selections by default.
23102
23103 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
23104         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
23105           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
23106           Fixed various typos.
23107
23108 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
23109
23110         * Control.cs: Removing the controls in a ControlCollection with
23111           Clear now hides the controls as expected. Fixes bug #78804. 
23112
23113 2006-08-03  Jackson Harper  <jackson@ximian.com>
23114
23115         * Control.cs: Revert previous focus patch, it breaks reflector.
23116
23117 2006-08-03  Jackson Harper  <jackson@ximian.com>
23118
23119         * ComboBox.cs: Cleanup selection and focus with the combobox.
23120         This also eliminates some duplicated keyboard code, since now
23121         everything is handled by the main class.
23122         - Make list selection work on mouse up instead of down, to match
23123         MS.
23124
23125 2006-08-02  Jackson Harper  <jackson@ximian.com>
23126
23127         * Control.cs: Setting focus needs to go through the whole
23128         selection mechanism.
23129
23130 2006-08-02  Chris Toshok  <toshok@ximian.com>
23131
23132         * PrintPreviewDialog.cs: change MinimumSize to use
23133         base.MinimumSize so it works.
23134
23135 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
23136
23137         * TextControl.cs:
23138           - UpdateCaret: Added sanity check in case caret isn't defined yet
23139           - Line.Delete: Now updating selection and caret markers if we're
23140             transfering a node (Properly fixes #78323)
23141           - SetSelectionEnd: Added sanity check
23142         * TextBoxBase.cs: Removed broken attempt to fix #78323
23143
23144 2006-08-01  Chris Toshok  <toshok@ximian.com>
23145
23146         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
23147         Close() call is handled in Form, not here.
23148
23149 2006-08-01  Chris Toshok  <toshok@ximian.com>
23150
23151         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
23152         layout/rendering.
23153
23154         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
23155         for sizes < 100% zoom.  The code now aggressively attempts to keep
23156         from calling document.Print (), and tries not to use the scaling
23157         g.DrawImage whenever possible (it still does if you scale to >
23158         100%, since usually that involves huge images).
23159
23160         * PrintPreviewControl.cs: hook up the close button.
23161
23162 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
23163         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
23164           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
23165           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
23166           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
23167           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
23168           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
23169           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
23170           Removed [Serializable] for 2.0 Event Handlers.
23171
23172 2006-07-31  Jackson Harper  <jackson@ximian.com>
23173
23174         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
23175         * TextControl.cs: Uncomment out the body of this method.
23176
23177 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
23178
23179         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
23180           standard cursors.
23181
23182 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23183
23184         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
23185           that embed TextBox and need selections visible even if textbox is not
23186           focused to enforce that behaviour.
23187         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
23188           selection drawing
23189
23190 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23191
23192         * TextControl.cs:
23193           - Added new SetSelectionStart/SetSelectionEnd overloads
23194           - Fixed viewport width assignment to be accurate
23195           - Adjusted alignment line shift calculations to allow cursor on right
23196             aligned lines to be always visible at the right border (like MS)
23197         * TextBoxBase.cs:
23198           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
23199           - TextBoxBase_SizeChanged: recalculating canvas on size changes
23200           - CalculateScrollBars: Use ViewPort size instead of window size, to
23201             properly consider space occupied by the border and scrollbars 
23202             (Fixes #78661)
23203           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
23204             calculations; no longer leaves artifacts
23205           - CaretMoved: Adjusted window scrolling to match MS and fixed several
23206             calculation bugs (Still missing right/center align calculations)
23207
23208 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
23209
23210         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
23211           use of both scroll rect and clip rect, as they do the same.
23212
23213 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23214
23215         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
23216           in the event handler (fixes #78912)
23217
23218 2006-07-31  Chris Toshok  <toshok@ximian.com>
23219
23220         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
23221         grid.ListManager.Count, since grid.ListManager might be null.
23222         This of course begs the question "why are we drawing rows for a
23223         grid with no list manager (and therefor no rows)?"  Fixes the
23224         crash in bug #78929.
23225
23226 2006-07-31  Chris Toshok  <toshok@ximian.com>
23227
23228         * RelatedPropertyManager.cs: Don't always chain up to the parent
23229         ctor.  instead, call SetDataSource if the parent's position is !=
23230         -1.  Fixes the crash in #78822.
23231
23232 2006-07-31  Chris Toshok  <toshok@ximian.com>
23233
23234         * DataGrid.cs (get_ListManager): use field instead of property
23235         accessors for datasource and datamember.
23236         (RowsCount): make internal again.
23237         (OnMouseDown): end edits before resizing columns/rows.
23238         (OnMouseUp): restart edits after resizing columns/rows.
23239
23240 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
23241
23242         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
23243           This fixes the situation where the last set cursor is displayed
23244           whenever the mouse is over scrollbars.
23245
23246 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23247
23248         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
23249         Document properties, as well as initial values.
23250
23251 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
23252
23253         * XplatUIWin32.cs (SetBorderStyle): Setting both border
23254           and ClientEdge results in a 3-pixel border, which is
23255           wrong.
23256
23257 2006-07-28  Jackson Harper  <jackson@ximian.com>
23258
23259         * TreeNodeCollection.cs: Fix the clear method.
23260         - Fix the Shrink also
23261
23262 2006-07-27  Jackson Harper  <jackson@ximian.com>
23263
23264         * TreeView.cs: Make sure the visible order is computed when we
23265         attempt to size the scrollbars (for trees that mess with the
23266         scrolling when they shouldn't.
23267         - Make sure to give the scrollbars valid values.
23268
23269 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
23270
23271         * XplatUIX11.cs: Move motion compression code to where it
23272           has less performance impact
23273
23274 2006-07-26  Jackson Harper  <jackson@ximian.com>
23275
23276         * UpDownBase.cs: When the control is selected make the child
23277         controls non selectable, so that a click on them won't do a
23278         focus/unfocus cycle.
23279         - Don't give focus to the text box when the spinner is selected.
23280         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
23281
23282 2006-07-26  Chris Toshok  <toshok@ximian.com>
23283
23284         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
23285         satisfied with this solution.  If the bitmaps are small, we should
23286         just cache them in the PrintPreviewDialog and draw them here.
23287         Also, the layout is broken for the 2-up and 3-up cases.
23288
23289         * Theme.cs: add PrintPReviewControlPaint.
23290
23291         * PrintPreviewDialog.cs: first pass implementation.
23292
23293         * PrintPreviewControl.cs: first pass implementation.  No
23294         scrollbars yet.
23295
23296         * PrintDialog.cs: only validate fields if that particular portion
23297         of the UI is enabled.  Also, set the document's controller to a
23298         PrintControllerWithStatusDialog wrapping the document's print
23299         controller.
23300
23301         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
23302         bring up a SaveFileDialog (i hope we don't want to match the
23303         behavior of the crappy windows file entry) and set the
23304         PrinterSettings.PrintFileName accordingly.
23305
23306 2006-07-26  Jackson Harper  <jackson@ximian.com>
23307
23308         * ContainerControl.cs: Add a field that disables auto selecting
23309         the next control in a container when the container is activated.
23310         * UpDownBase.cs: Don't select the text box when the up down is
23311         selected.
23312
23313 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
23314
23315         * XEventQueue.cs: Added methods for peeking (used for compression
23316           of successive events)
23317         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
23318           mouse move events (fixes #78732)
23319
23320 2006-07-25  Jackson Harper  <jackson@ximian.com>
23321
23322         * UpDownBase.cs: Use an internal class for the textbox so that we
23323         can control focus.  the updown control should always have focus,
23324         if either the text area or the buttons are clicked.
23325         - Send the key messages to the textbox, since it never actually
23326         has focus
23327         - Activate and decativate the textbox caret.
23328
23329 2006-07-24  Jackson Harper  <jackson@ximian.com>
23330
23331         * Control.cs: Use the directed select when selecting a control,
23332         this way the container controls override will get called and the
23333         whole ActiveControl chain will get triggered.  TODO: probably need
23334         to make sure this gets done everywhere instead of the old
23335         Select(Control).
23336         * ContainerControl.cs: Implement the directed Select method to
23337         find and activate the correct child control.    
23338         
23339 2006-07-22  Mike Kestner  <mkestner@novell.com>
23340
23341         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
23342         menu handling code so that clicks without a grab work too.
23343         [Fixes #78914]
23344
23345 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
23346
23347         * FileDialog.cs: Enable the BackButton when dirstack has one element.
23348           Added some small optimizations.
23349
23350 2006-07-21  Matt Hargett  <matt@use.net>
23351
23352         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
23353
23354 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
23355
23356         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
23357           tests pass and match MS in some strange border cases.
23358
23359 2006-07-21  Chris Toshok  <toshok@ximian.com>
23360
23361         * ThemeWin32Classic.cs: handle drawing of the relation links and
23362         parent row buttons.
23363
23364         * Theme.cs: change args to DataGridPaintParentRow.
23365
23366         * DataGrid.cs: Don't use controls for the relation links and
23367         parent buttons, so we have to handle all their interactions in
23368         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
23369         when we're navigating through child tables, so we can reinstate
23370         selection, expanded state, current cell, etc.
23371
23372 2006-07-20  Chris Toshok  <toshok@ximian.com>
23373
23374         * ToolBar.cs: When we redraw a button, for whatever reason,
23375         there's no reason to redraw the entire toolbar.  Also, don't call
23376         Control.Refresh from within Redraw, as it's much heavier than
23377         Invalidate (which is really what we want).
23378
23379 2006-07-20  Chris Toshok  <toshok@ximian.com>
23380
23381         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
23382         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
23383         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
23384         traces from within a debug IBindingList datasource
23385         (in mono/winforms/datagrid) for *days*, I've finally gotten things
23386         to work in a similar fashion.
23387
23388 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23389
23390         * ListBox.cs: Don't call Sort () when setting 
23391         the Sorted property to false (avoid an unnecessary sort).
23392
23393 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23394
23395         * ListControl.cs: DataSource should throw an ArgumentException
23396         instead of a normal exception when the argument is not of the 
23397         correct type.
23398
23399 2006-07-20  Mike Kestner  <mkestner@novell.com>
23400
23401         * Control.cs: add InternalPreProcessMessage to allow us to steal
23402         key events before MWF gets its paws on them.  Adapted from a
23403         suggestion by eno.
23404         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
23405         up/down/left/right navigation. Override the new internal control
23406         method to steal the events since they never make it to WndProc.
23407         * ToolBarButton.cs: don't worry about pushed when setting hilight
23408         since the drawing code prefers pushed to hilight. Invalidate on 
23409         Hilight changes. Fixes #78547 and #78525.
23410
23411 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
23412
23413         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
23414           the canvas size. Fixes #78868
23415
23416 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
23417
23418         * Splitter.cs: Track requested split position until first layout
23419           is performed. Fixes #78871
23420
23421 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
23422
23423         * Application.cs: Removed code that forces 1.x for the version
23424           number if the version started with 0. Not sure why that code was
23425           there and I couldn't find any bugs that indicated we needed it.
23426           Fixes #78869
23427
23428 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
23429
23430         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
23431           ResetDefaults(), just write some output to the console until it's
23432           implemented. Fixes bug #78907 for now. Eliminated two warnings.
23433
23434 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
23435
23436         * PropertyGridView.cs: set StartPosition of drop down forms
23437         so they appear in correct initial spot.  Fixes #78190.
23438
23439 2006-07-19  Mike Kestner  <mkestner@novell.com>
23440
23441         * ThemeWin32Classic.cs: use parent background color when drawing
23442         flat toolbars.  Restructure the conditionals to make sure non-flat
23443         non-Divider toolbars are filled too.  Fixes #78837.
23444
23445 2006-07-19  Mike Kestner  <mkestner@novell.com>
23446
23447         * ListBox.cs: Sort on collection changes even if the handle
23448         isn't created yet.  Fixes #78813.
23449
23450 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23451
23452         * ListControl.cs: DisplayMember should never be null,
23453         and now we assign String.Empty when null is passed to it (this
23454         is the .Net way).
23455
23456 2006-07-17  Mike Kestner  <mkestner@novell.com>
23457
23458         * ListViewItem.cs: restructure Font and subitem Font handling 
23459         to hold a specific font and refer back to owner on null.
23460         Fixes #78761.
23461
23462 2006-07-17  Mike Kestner  <mkestner@novell.com>
23463
23464         * ToolBar.cs: bandaid for side-effect of previous patch which was
23465         discarding explicit heights for non-AutoSize toolbars.  Need to
23466         extend my format tester to deal with AutoSize=false. Fixes #78864.
23467
23468 2006-07-15  Jackson Harper  <jackson@ximian.com>
23469
23470         * LabelEditTextBox.cs:
23471         * TreeView.cs: Use a new LabelEdit class for node editing, this
23472         class automatically 'closes' itself when it gets the enter key or
23473         loses focus.
23474         - Use the client rectangle when setting the trees scrollbars, so
23475         border style is taken into account.
23476         
23477 2006-07-14  Jackson Harper  <jackson@ximian.com>
23478
23479         * TreeNode.cs:
23480         * TreeView.cs: Make the editing work similar to MSs, firing the
23481         events correctly and ending edits correctly.
23482
23483 2006-07-14  Mike Kestner  <mkestner@novell.com>
23484
23485         * ToolBarButton.cs:
23486         * ToolBar.cs: layout restructuring and redraw enhancements to support
23487         formatting changes gracefully, like setting TextAlign, ImageList, 
23488         ButtonSize, and Appearance.  Handles explicit button sizing quirks
23489         of the MS controls.  Things like flat toolbars ignoring button size
23490         but becoming constant sized at the largest button's size.  Normal
23491         toolbars with an image set cannot be shrunk smaller than the image,
23492         but text can be clipped/ignored.
23493         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
23494         is zero.  Seems like DrawString should be smart enough to not put
23495         anything on screen though. Also trim labels and ellipsize at the char
23496         boundary, not word.
23497         Fixes #78711 and #78483.
23498
23499 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23500
23501         * FolderBrowserDialog.cs: Disable "New Folder" button and
23502           "New Folder" contextmenu menuitem if a folder like "My Computer"
23503           is selected.
23504
23505 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23506
23507         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
23508         * FolderBrowserDialog.cs:
23509           - Use MWFConfig to store and read size and position settings
23510           - Added code to create a new folder (button or context menu).
23511             Use TreeView labeledit to change the name of the new folder.
23512
23513 2006-07-14  Jackson Harper  <jackson@ximian.com>
23514
23515         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
23516         when the tree is scrolled we end editing.
23517
23518 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23519
23520         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
23521           Down arrows
23522
23523 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
23524
23525         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
23526         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
23527         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
23528         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
23529         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
23530         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
23531         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
23532         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
23533         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
23534         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
23535         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
23536         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
23537         ListViewItemSelectionChangedEventHandler.cs,
23538         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
23539         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
23540         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
23541         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
23542         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
23543         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
23544         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
23545         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
23546         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
23547         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
23548         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
23549         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
23550         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
23551         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
23552         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
23553         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
23554         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
23555         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
23556         WebBrowserNavigatingEventHandler.cs, 
23557         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
23558
23559 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
23560
23561         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
23562         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
23563         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
23564         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
23565         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
23566         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
23567         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
23568         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
23569         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
23570         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
23571         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
23572         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
23573         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
23574         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
23575         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
23576         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
23577         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
23578         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
23579         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
23580         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
23581         ListViewItemStates.cs, MaskFormat.cs: Added
23582
23583 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
23584
23585         * PropertyGridView.cs: Fix keyboard navigation of drop down.
23586         Patch from eno for bug 78558.
23587         
23588 2006-07-13  Jackson Harper  <jackson@ximian.com>
23589
23590         * TreeView.cs: When an edit is finished make sure that the
23591         selected node is visible.
23592         - When setting the top/bottom use the scrollbars is_visible, so
23593         everything will be set correctly even if the tree isn't visible
23594         yet.
23595
23596 2006-07-13  Jackson Harper  <jackson@ximian.com>
23597
23598         * ComboBox.cs: Revert the item->index part of my previous patch.
23599         * TreeView.cs: Use LostFocus instead of Leave for detecting when
23600         the edit box has lost focus (duh).
23601         - Just make the edit box not visible when we get return, that will
23602         take the focus, which will call EndEdit
23603         * TreeNode.cs When we start editing, notify the treeview.
23604
23605 2006-07-12  Jackson Harper  <jackson@ximian.com>
23606
23607         * ComboBox.cs: Clear out old items before setting the item list.
23608         This prevents databound controls from having their items added
23609         twice.
23610         - Switch the combobox to use indices whereever possible instead of
23611         using Item's.  This allows usto navigate through lists that have
23612         more then one item with the same string value (ie a, b, b, a).
23613         - Scroll the listboxes scrollbar when a non visible item is
23614         highlighted
23615         - Allow keypress to cycle through all the possible values. For
23616         example if you have b1, b2, b3 and hold down the B key all the
23617         values will be cycled through.
23618         
23619 2006-07-12  Jackson Harper  <jackson@ximian.com>
23620
23621         * TextBoxBase.cs:
23622         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
23623         this using the internal methods.
23624         * Control.cs: Add OnGotFocusInternal.  A new method that allows
23625         controls to "override" OnGotFocus and change focus behavior if
23626         needed.
23627         - Same thing for LostFocus
23628         * ComboBox.cs: Pass off focus to the text control properly.
23629
23630 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
23631
23632         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
23633         * FolderBrowserDialog.cs: Almost a complete rewrite.
23634           - Better support for Environment.Specialfolders
23635           - Added support for MWFVFS
23636           - Made setting SelectedPath work
23637
23638 2006-07-12  Jackson Harper  <jackson@ximian.com>
23639
23640         * Control.cs: Optimze getting all the controls.
23641
23642 2006-07-11  Jackson Harper  <jackson@ximian.com>
23643
23644         * ContainerControl.cs: Override SETFOCUS in the container control,
23645         so that it is not selected on mouse click.
23646
23647 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
23648
23649         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
23650           Hopefully we will have a better way once all of focus is complete.
23651
23652 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
23653
23654         * ThemeWin32Classic.cs: Commented out some debug code and fixed
23655           a compile error with csc.
23656
23657 2006-07-11  Jackson Harper  <jackson@ximian.com>
23658
23659         * Control.cs: When hiding a control only select the next control
23660         if the current control was focused.
23661         - Don't handle enter/leave when setting/killing focus, this is
23662         done by the container control.
23663         - Remove is_selected, it's not needed anymore.
23664         - Add utility methods for selecting a child control, and for
23665         firing the Enter/Leave events.
23666         * ContainerControl.cs: When a control is activated fire the
23667         enter/leave events.
23668         - Don't wrap when processing the tab key, so that focus can be
23669         moved outside of the container.
23670         - Use the correct active control
23671
23672 2006-07-11  Jackson Harper  <jackson@ximian.com>
23673
23674         * ComboBox.cs: Remove some debug code that was blinding me.
23675         * UpDownBase.cs: These controls actually aren't implicit, they are
23676         visible to the user.
23677
23678 2006-07-10  Chris Toshok  <toshok@ximian.com>
23679
23680         * DataGrid.cs: move back to the is_adding boolean field.  god i
23681         hate this is_editing/is_adding/is_changing stuff.
23682
23683 2006-07-10  Chris Toshok  <toshok@ximian.com>
23684
23685         * DataGridTableStyle.cs: just check if the property type is bool.
23686         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
23687         Don't use CanRenderType.
23688
23689         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
23690         if our text == NullText.  Remove CanRenderType.
23691
23692         * DataGridBoolColumn.cs: nuke CanRenderType.
23693
23694         * DataGrid.cs: reenable some code to end the current edit inside
23695         of set_CurrentCell.  This fixes the other 1.1.16 regression.
23696         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
23697         Also, remove the visible_row_count arg from CalcRowHeaders, since
23698         we don't need to worry about the actual height of the area.
23699
23700 2006-07-10  Chris Toshok  <toshok@ximian.com>
23701
23702         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
23703         mode, just return.
23704
23705         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
23706         the real sense of the IsInEditOrNavigateMode property (true =
23707         navigate, false = edit).  Also, update OnKeyPress to reflect this.
23708
23709         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
23710         column style exists, we still need to set its property descriptor
23711         to match up with our list manager.
23712
23713 2006-07-10  Chris Toshok  <toshok@ximian.com>
23714
23715         * ThemeWin32Classic.cs: implement the new row/header painting
23716         approach.  The parent row painting will likely go away and
23717         replaced with label controls, but the rest seems to work ok (and
23718         efficiently).
23719
23720         * Theme.cs: change the way we draw datagrid rows.  we don't draw
23721         the row headers as a block now.  Instead we draw them in the
23722         normal draw-row loop.  Add some calls for drawing parent rows and
23723         relation rows.
23724
23725         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
23726         a default table style.  Set the defaults from ThemeEngine.Current,
23727         not SystemColors.  Fix lots of misc issues with property setters.
23728
23729         * DataGrid.cs: move loads of style information out of this class
23730         as it's being duplicated with DataGridTableStyle.  keep track of a
23731         special DataGridTableStyle for the properties we used to mirror
23732         here.  Switch all the style properties to access this table style
23733         instead of instance fields of this class.  Also add a internal
23734         class to represent parent rows (more needs to be stored here, like
23735         the selection state from the parent table, as well as the
23736         expansion state.)  Also, for datasources with relations, do the
23737         right thing for collapse/expand, and add support for the
23738         navigation/parent row buttons.
23739
23740         Lastly, fix the crash in the 1.1.16 build.
23741
23742         * GridTableStylesCollection.cs: make the explicit interface
23743         implementations call the class's methods as opposed to duplicating
23744         them.
23745
23746         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
23747         0 so the text doesn't jump around when we move the cursor.
23748
23749 2006-07-10  Jackson Harper  <jackson@ximian.com>
23750
23751         * TextBoxBase.cs:
23752         * ListBox.cs: Match MS's ToString (this makes debugging focus
23753         stuff infinitely easier).
23754
23755 2006-07-10  Jackson Harper  <jackson@ximian.com>
23756
23757         * Control.cs (SelectNextControl): When checking the control's
23758         parent use this instead of ctrl.parent so that null can be passed
23759         to SelectNextControl. (I have unit tests for this).
23760         - Remove unused var.
23761
23762 2006-07-10  Chris Toshok  <toshok@ximian.com>
23763
23764         * CurrencyManager.cs: correct one regression, the removal of the
23765         finalType field.  Also, add a MonoTODO on CanAddRows, implement
23766         Refresh() correctly, and fix some event emission in
23767         ListChangedHandler.
23768
23769 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
23770
23771         * FileDialog.cs: Don't use brackets for new folders if they exist
23772           under *nix. Instead use -(number of existing folders +1).
23773
23774 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
23775
23776         * FileDialog.cs:
23777           - Fixed really nasty bug #78771
23778           - Don't block the whole GUI when reading directories with a lot of
23779             entries. Use an other thread instead and call BeginInvoke to
23780             update the ListView in MWFFileView
23781
23782 2006-07-07  Chris Toshok  <toshok@ximian.com>
23783
23784         * Control.cs (Dispose): release any Capture when disposing.
23785
23786 2006-07-07  Chris Toshok  <toshok@ximian.com>
23787
23788         * LinkLabel.cs (Select): if we chain up to the parent, set
23789         focused_index to -1 so we'll search for the first available link
23790         the next time the user tabs into us.  Also, if the direction is
23791         backward and focused_index == -1, start the search from the last
23792         element.
23793
23794 2006-07-07  Chris Toshok  <toshok@ximian.com>
23795
23796         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
23797         is beyond the end of the text, don't do anything.
23798         (CreateLinkPieces): set our ControlStyles.Selectable based on
23799         whether or not we have any links.
23800         (Link.Invalidate): use a loop instead of foreach.
23801         (Link.set_Start): null out owner.sorted_links so it'll be
23802         recreated by CreateLinkPieces.
23803
23804 2006-07-06  Chris Toshok  <toshok@ximian.com>
23805
23806         * LinkLabel.cs: revert the SetStyle change.
23807
23808 2006-07-06  Chris Toshok  <toshok@ximian.com>
23809
23810         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
23811         (OnEnableChanged): s/Refresh/Invalidate
23812         (OnGotFocus): if we have a focused index already, refocus it (so
23813         if we mouse out/in to the window it'll focus the right link).
23814         (OnKeyDown): move the tab handling out of here.
23815         (OnLostFocus): don't set focused_index to -1, so we can refocus it
23816         when we lose focus.
23817         (OnMouseDown): don't Capture here - Control handles it.  Also,
23818         focus the active link.
23819         (OnMouseUp): don't deal with Capture.
23820         (OnPaintBackgroundInternal): remove.
23821         (OnTextAlignChanged): CreateLinkPieces before calling the
23822         superclass's method.
23823         (OnTextChanged): call CreateLinkPieces before calling superclass's
23824         method.
23825         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
23826         move around.
23827         (Select): implement this, moving the selection between different
23828         links, and call parent.SelectNextControl if we don't have another
23829         link to focus in the given direction.
23830         (CreateLinkPieces): call Invalidate instead of Refresh.
23831         
23832 2006-07-06  Chris Toshok  <toshok@ximian.com>
23833
23834         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
23835         new LinkLabel internals.
23836
23837         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
23838         over pieces looking for active/focused/etc links.  also, deal with
23839         runs of text (and links) with embedded \n's in them, and use
23840         MeasureCharacterRanges instead of MeasureString to figure out the
23841         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
23842         two-step.
23843
23844 2006-07-04  Jackson Harper  <jackson@ximian.com>
23845
23846         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
23847         XKB or key auto repeat, do it manually.  Without key auto repeat,
23848         when a key is held down we get key press, key release, key press,
23849         key release, ... with auto repeat we get key press, key press, key
23850         press ..., and then a release when the key is actually released.
23851
23852 2006-07-03  Jackson Harper  <jackson@ximian.com>
23853
23854         * TabControl.cs:
23855         * ThemeWin32Classic.cs: Tabs do not obey normal background color
23856         rules, they are always control color regardless of the background
23857         color.
23858
23859 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
23860
23861         * FileDialog.cs: Added internal class MWFConfig.
23862           Removed Registry support and replaced it with support for the new
23863           MWFConfig class. See MWFConfig comments for more information.
23864
23865 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
23866
23867         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
23868           rectangle. Added some patches from eno from bug #78490 and fixed
23869           the arrow position for small up and down CPDrawScrollButtons.
23870
23871 2006-06-30  Jackson Harper  <jackson@ximian.com>
23872
23873         * InternalWindowManager.cs: Remove some debug code.
23874         * Form.cs: When an MdiParent is set to null, the window is
23875         "detatched" and becomes a normal window.
23876         * MdiClient.cs: Don't bring the new child form to the front until
23877         it is activated (setting it as active does this), this makes the
23878         previously active forms titlebar get redrawn as inactive.
23879
23880 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
23881
23882         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
23883           with later controls
23884
23885 2006-06-29  Mike Kestner  <mkestner@novell.com>
23886
23887         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
23888         arrow in keynav state.  Fixes #78682.
23889
23890 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
23891
23892         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
23893           order (fixes #78393)
23894
23895 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
23896
23897         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
23898           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
23899           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
23900           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
23901           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
23902           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
23903           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
23904           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
23905           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
23906           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
23907           enumerations (FlagsAttribute, SerializableAttribute, added/removed
23908           values)
23909
23910 2006-06-28  Mike Kestner  <mkestner@novell.com>
23911
23912         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
23913
23914 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
23915
23916         * PropertyGrid.cs,
23917           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
23918           item lines from other area (It also makes BackColor consistent and
23919           compatible with .NET). Fixed bug #78564.
23920
23921 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
23922
23923         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
23924         Patch from Eno for #78555.
23925
23926 2006-06-27  Chris Toshok  <toshok@ximian.com>
23927
23928         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
23929
23930         * DataGridColumnStyle.cs: same.
23931
23932         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
23933         
23934         * DataGridDrawingLogic.cs: nuke.
23935
23936 2006-06-27  Chris Toshok  <toshok@ximian.com>
23937
23938         * DataGridTableStyle.cs: clean up the constructors, and build the
23939         list of child relations for this table.  I have no idea if this is
23940         where we should be doing it (it probably isn't), but since we're
23941         already iterating over the properties..
23942
23943         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
23944         struct and array for keeping track of row information, similar to
23945         what's shown in a hack on
23946         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
23947
23948         * Theme.cs: be consistent about the naming of DataGrid methods,
23949         prefering ColumnWidths and RowHeights over columnsWidths and
23950         RowsHeights.
23951
23952         * ThemeWin32Classic.cs: same, and also add support for variable
23953         sized rows (and the +/- expansion icons for related rows).
23954
23955 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
23956
23957         * TextBoxBase.cs: Applied Eno's patch from #78660
23958
23959 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
23960
23961         * Form.cs (ScaleCore): We don't want to scale our form if it's
23962           state is minimized or maximized, but we still need to scale our
23963           child windows. Also, added try/finally block to ensure layout
23964           gets reset (Fixes #78697)
23965
23966 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
23967
23968         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
23969
23970 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
23971
23972         * Form.cs: Fixed c+p error and added check to resize form if minimum
23973           size is bigger than current size (Fixes #78709)
23974
23975 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
23976
23977         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
23978
23979 2006-06-26  Mike Kestner  <mkestner@novell.com>
23980
23981         * ComboBox.cs: only do Keypress handling in the combo when there  
23982         are items in the collection. Fixes #78710.
23983
23984 2006-06-26  Chris Toshok  <toshok@ximian.com>
23985
23986         * Binding.cs: make this work bi-directionally.  also, clear up
23987         other mixups between Push/Pull Data (e.g. we're supposed to pull
23988         data when validating).
23989
23990         * BindingManagerBase.cs: trim some fully qualified collection
23991         types.
23992
23993         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
23994
23995 2006-06-23  Chris Toshok  <toshok@ximian.com>
23996
23997         * PropertyManager.cs: It appears (according to the unit tests)
23998         that PropertyManager doesn't use
23999         PropertyDescriptor.AddValueChanged to track propery value changes
24000         in its datasource, but uses the same scheme as Binding, where it
24001         looks for a <Property>Changed event and binds to it.
24002
24003         Also, according to the docs, IsSuspended always returns false for
24004         a property manager with a non-null datasource.
24005
24006 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
24007
24008         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
24009           need to update the actual DialogResult. (Fixes #78613)
24010
24011 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
24012
24013         * Form.cs (ShowDialog): Release any captures before running the
24014           new message pump (fixes #78680)
24015
24016 2006-06-22  Mike Kestner  <mkestner@novell.com>
24017
24018         * ListView.cs: Layout column widths properly in details mode even 
24019         if HeaderStyle.None is set.  Fixes #78691.
24020
24021 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
24022
24023         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
24024
24025 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
24026
24027         * Control.cs (ContainsFocus): Using new driver method to get focused
24028           window, instead of trying to use internal tracking var, which can
24029           recursion issues (Fixes #78685)
24030         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
24031           XplatUIWin32.cs: Added GetFocus method to return focused window
24032
24033 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24034
24035         * ColorDialog.cs: when the mouse button is pressed inside the color
24036         matrix, don't let the cursor move out of it until the button is
24037         released, which is the behavior on windows. Changed 'colours' by
24038         'colors' to use the same word consistently.
24039
24040 2006-06-21  Chris Toshok  <toshok@ximian.com>
24041
24042         * DataGrid.cs: add in some basic navigation stuff (navigating to a
24043         child relation and back, using a stack).  Also, remove
24044         GetDataSource and the code that calls it - it's not needed.  Also,
24045         track CurrencyManager.ListName's removal.
24046
24047 2006-06-21  Chris Toshok  <toshok@ximian.com>
24048
24049         * CurrencyManager.cs: push some of the original type checking from
24050         BindingContext.CreateBindingManager to here, and remove some of
24051         the finalType stuff.  Need more tests to make sure I've got the
24052         ListName part right, and we might need more in SetDataSource.
24053
24054         * PropertyManager.cs: add a ctor that takes just the datasource,
24055         and no property name.  Make SetDataSource work with a null
24056         property_name, and make Current return the data_source if the
24057         property descriptor is null.  this makes 'string foo = "hi";
24058         BindingContext[foo].Current' return "hi" as it should.
24059
24060         * RelatedCurrencyManager.cs: make this code more generic - there's
24061         no reason the parent manager has to be CurrencyManager, and
24062         there's no reason to pass the DataRelation.  It suffices to use a
24063         BindingManagerBase and PropetyDescriptor.
24064
24065         * RelatedPropertyManager.cs: make a similar change here.
24066         
24067         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
24068         flower I knew it could be.
24069
24070 2006-06-20  Chris Toshok  <toshok@ximian.com>
24071
24072         * PropertyManager.cs: the PropertyChangedHandler is invoked when
24073         data in the source has changed and we need to update the control,
24074         so s/PullData/PushData.
24075
24076         * CurrencyManager.cs: Refresh is meant to update the control from
24077         data in the datasource.  So, s/PullData/PushData.
24078
24079         * BindingContext.cs: add more ugliness (we weren't handling the
24080         case where data_source = DataTable and data_member = column_name).
24081
24082         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
24083         from the perspective of the datasource.  PullData pulls from the
24084         control, PushData pushes to the control.
24085
24086 2006-06-20  Chris Toshok  <toshok@ximian.com>
24087
24088         * BindingContext.cs: rewrite the CreateBindingManager code to
24089         handle navigation paths more or less properly.  This could
24090         definitely stand some more work, in particular to push the
24091         recursion up to the toplevel.  But that relies on fixes in other
24092         places (System.Data comes to mind).
24093
24094         Also, move to a flat hashtable (and encode the twolevel nature of
24095         the dictionary into the hash key).  This lets us implement the
24096         IEnumerable.GetEnumerator method.
24097
24098         * RelatedCurrencyManager.cs: new class.  Update our view based on
24099         our relation and our parent CurrencyManager's position.
24100
24101         * CurrencyManager.cs: split out some logic from the ctor into
24102         SetView, so it can be called from the new RelatedCurrencyManager
24103         subclass.
24104
24105         * RelatedPropertyManager.cs: new class.  Update our datasource
24106         based on the position of our parent CurrencyManager.
24107
24108         * PropertyManager.cs: split out some logic from the ctor into
24109         SetDataSource, so it can be called from the new RelatedDataSource
24110         subclass.  Also, make the Current getter return the value
24111         of the PropertyDescriptor, not the data_source.
24112
24113         * Binding.cs: no need to duplicate the string splitting code here.
24114
24115 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
24116
24117         * Control.cs:
24118           - set_Enabled: OnEnabledChanged is not called if the inherited state 
24119             of the control is not altered, even though  we might be changing the
24120             internal state of the control (#78458)
24121           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
24122             OnEnabledChanged, to allow easy altering of any child window state
24123           - OnEnabledChanged: Added code to enable/disable driver window state
24124           - OnParentEnabledChanged: Instead of firing the event, call 
24125             OnEnabledChanged, which will fire the event and also a) set driver
24126             window state and pass the enabled state to any grandchildren (#78458)
24127
24128 2006-06-19  Jackson Harper  <jackson@ximian.com>
24129
24130         * InternalWindowManager.cs: We don't set the cursor explicitly
24131         thats done via the response to NCHITTESTs.
24132         - Don't need to adjust for titlebar heights anymore, the
24133         coordinates are coming in the correct coordinates now (see peters
24134         last patch).
24135
24136
24137 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
24138
24139         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
24140           being translated relative to whole window, instead of client window.
24141           That caused broken offsets on mouseclick (and caused gas for our
24142           InternalWindowManager)
24143
24144 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
24145
24146         * TextControl.cs:
24147           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
24148           - Undo(): Added replay of cursor move on DeleteChars action; added
24149             calling Undo() again if a recorded cursor move is invalid (to
24150             ensure that some action is performed on Undo)
24151         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
24152
24153 2006-06-16  Jackson Harper  <jackson@ximian.com>
24154
24155         * MdiClient.cs: Instead of just sizing maximized windows when
24156         there is a resize we also have to adjust the Y of minimized
24157         windows, so they stay pinned to the bottom of the mdi container.
24158         - Eliminate separate tracking of the active control, we can just
24159         get this from the controls collection.
24160         - Paint the decorations for the newly activated titlebar so we get
24161         a pretty blue bar.
24162         * InternalWindowManager.cs:
24163         * ThemeWin32Classic.cs: Minimized windows get all three buttons
24164         even if they are a tool window.
24165         
24166 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
24167
24168         * TextControl.cs (Undo): Handle non-existent cursor locations in the
24169           undo buffer, these can happen when text was deleted and the cursor
24170           was recorded first. Since we will also have a recorded cursor
24171           after the delete this is not an issue. (Fixes #78651)
24172
24173 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
24174
24175         * AccessibleObject.cs: Remove dependence on Control.is_selected;
24176           instead properly track control states internally (allows us to
24177           remove is_selected from Control)
24178
24179 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24180
24181         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
24182         whose width is not a multiple of 8.
24183
24184 2006-06-13  Jackson Harper  <jackson@ximian.com>
24185
24186         * MdiClient.cs:  Only maximize the next child if the current one
24187         is maximized.
24188
24189 2006-06-13  Chris Toshok  <toshok@ximian.com>
24190
24191         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
24192         modified.  Also, guard against grid or grid_drawing being null in
24193         Invalidate.
24194
24195         * DataGrid.cs: Reformat tons of getters/setters.  In the
24196         DataMember setter, just call SetNewDataSource instead of
24197         duplicating some of its functionality.  In SetNewDataSource, don't
24198         check ListManager for null, since the property getter creates the
24199         object if needed.
24200
24201         * DataGridTableStyle.cs: don't set TableStyle or call
24202         SetDataGridInternal on the column here, it's done in
24203         GridColumnStylesCollection.Add.
24204
24205         * GridColumnStylesCollection.cs: fix all the explicit interface
24206         implementations to just call our methods.  Nuke AddInternal() and
24207         move the body of it to Add().  Also, add a call to
24208         column.SetDataGridInternal to Add().
24209
24210         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
24211         base()+duplicate code.  Also, use the Format property instead of
24212         format to generate an Invalidate ala MS.  Lastly, create the
24213         textbox here, unconditionally.
24214         (set_Format): call Invalidate.
24215         (get_TextBox): no need to call EnsureTextBox.
24216         (Commit): remove the message box.
24217         (Edit) remove the call to EnsureTextBox.
24218         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
24219         (EnterNullValue): no need to check textbox for null.
24220         (HideEditBox): no need to check textbox for null.
24221         (SetDataGridInColumn): add the textbox to the grid's controls.
24222         (EnsureTextBox): nuke.
24223         
24224 2006-06-13  Jackson Harper  <jackson@ximian.com>
24225
24226         * MdiWindowManager.cs: Hook up to the maximized menus paint event
24227         and redraw the buttons when needed. Unhook when the window is
24228         unmaximized.
24229         * MainMenu.cs: Add an internal Paint event, the mdi window manager
24230         needs this so that it can redraw its buttons when the menu is
24231         repainted.
24232         * InternalWindowManager.cs:
24233         * Form.cs: The method order has changed for DrawMaximizedButtons,
24234         so that it can be a PaintEventHandler.
24235         
24236 2006-06-13  Jackson Harper  <jackson@ximian.com>
24237
24238         * MdiClient.cs: When we close a maximized mdi window, the next mdi
24239         window is activated and maximized, even if it wasn't before.
24240         - When  a new window is activated repaint the decorations of the
24241         old one, so that it no longer has the Active "look" (the blue
24242         titlebar).
24243         * InternalWindowManager.cs: Open up CreateButtons to base classes
24244         so they can recreate the buttons on state changes.
24245         - If a window is maximized give it all three buttons
24246         * MdiWindowManager.cs: Create the titlebar buttons when the state
24247         is changed, this is needed because a toolwindow will not have all
24248         three buttons until it is maximized.
24249
24250 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
24251
24252         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
24253           Fixed bug #78609.
24254
24255 2006-06-12  Jackson Harper  <jackson@ximian.com>
24256
24257         * KeysConverter.cs: Make sure we handle the Ctrl special case
24258         if its the only key.
24259         
24260 2006-06-12  Jackson Harper  <jackson@ximian.com>
24261
24262         * Theme.cs: Add a method to get the size of a managed window
24263         toolbar button.
24264         * InternalWindowManager.cs: Remove the ButtonSize property, this
24265         should be retrieved from the theme.
24266         * MdiWindowManager.cs: Get the button size from the theme
24267         * ThemeWin32Classic.cs: Make the method to get the managed window
24268         titlebar button size public.
24269         - Handle the different button sizes of maximized toolwindows
24270         (should match any maximized window).
24271         - Get the titlebar height from the theme, not the WM (which gets
24272         it from the theme).
24273
24274 2006-06-12  Jackson Harper  <jackson@ximian.com>
24275
24276         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
24277         event down to the mdi window manager.
24278         - Expose some extra stuff to base classes
24279         - Make sure to end the Capture on an NC Mouse up, so that we can
24280         get double clicks properly, and the sizing doens't stick.
24281         - When doing PointToClient contain it in the workable desktop
24282         area, this prevents windows from changing size when the cursor is
24283         pulled outside of the working area while sizing.
24284         * MdiWindowManager.cs: When we get a double click maximize the
24285         window.
24286         - Reset the cursor after handling mode changes.
24287
24288 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
24289
24290         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
24291           current desktop, instead of just assuming a 0, 0 origin. This
24292           is needed for our internal window manager, to know the top
24293           margin of the desktop
24294
24295 2006-06-12  Chris Toshok  <toshok@ximian.com>
24296
24297         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
24298         we need this to get rid of the selected background in the bool
24299         column.
24300         (CancelEditing): move the ConcedeFocus call to above the Abort
24301         call.  Also, set is_changing to false and invalidate the row
24302         header if we were changing before.
24303         (ProcessKeyPreviewInternal): remove, since noone outside this
24304         class calls it anymore.  Roll the code into ProcessKeyPreview.
24305         (EndEdit): remove the internal version.
24306         (InvalidateCurrentRowHeader): make private.
24307
24308         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
24309         Keys.Escape handling (and with it the last call to
24310         DataGrid.EndEdit from outside the class.)
24311
24312
24313 2006-06-12  Chris Toshok  <toshok@ximian.com>
24314
24315         * DataGridTextBox.cs (.ctor): isedit defaults to false.
24316         (OnKeyPress): set isedit to true.
24317         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
24318         already handled by the grid.
24319
24320         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
24321         right.  ugh.
24322         (set_DataSource): SetDataSource always returns true, so stop
24323         putting it in an if statement.
24324         (EndEdit): get rid of some {}'s
24325         (ProcessGridKey): return true in case Keys.Escape.
24326         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
24327         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
24328         PositionChanged, stopped connecting to CurrentChanged.
24329         (GetDataSource): simplify this a bunch.
24330         (SetDataSource): change return type from bool to void.
24331         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
24332         to this, and make sure we don't set ListManager.Position inside
24333         set_CurrentCell.
24334         (OnListManagerItemChanged): if we're passed an actual index,
24335         redraw that row.
24336
24337         * CurrencyManager.cs (set_Position): don't call PullData here.
24338
24339 2006-06-09  Jackson Harper  <jackson@ximian.com>
24340
24341         * TreeNode.cs:  Recalculate the visible order before doing the
24342         Expand/Collapse Below calls, because those calls generate an
24343         expose.
24344         - Reduce calls to the TreeView property, which is mildly expensive
24345         by using a local var.
24346         * Form.cs: Layout the MDI child windows when creating the parent
24347         form.
24348         - Don't use the internal constructor anymore
24349         * MdiClient.cs: use the parent form width/height (if available)
24350         when laying out the child windows, we do this because the
24351         mdiclient isn't docked yet when the initial layout is done.
24352         - Don't need an internal constructor anymore.
24353
24354 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24355
24356         * FileDialog.cs: handle access errors when trying to create a folder
24357         or changing to a directory. No need to initialize out parameters.
24358
24359 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24360
24361         * FileDialog.cs: Append a number when creating a new folder if the
24362           folder already exists (use parenthesis instead of square brackets)
24363
24364 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24365
24366         * FileDialog.cs:
24367           - Disabled registry support for windows and added better registry
24368             error checking for other systems (need to investigate why it
24369             works perfectly on my system)
24370           - If a folder already exist show an error MessageBox instead of
24371             trying to create an indexed name.
24372           - Fixed a non intentional typo.
24373
24374 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24375
24376         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
24377
24378 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24379
24380         * FileDialog.cs: When creating a new folder don't crash if the
24381           folder already exists.
24382
24383 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24384
24385         * FileDialog.cs: Allmost a complete rewrite.
24386           - added a "virtual" file system that handles the differences
24387             between unix and windows file systems (especially the directory
24388             structure). Moved most of the directory and file handling code
24389             into the vfs.
24390             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
24391             UnixFileSystem and FSEntry.
24392           - Recently used folder/directory, size, location and used file names
24393             (file name ComboBox) are now stored in the registry and get read
24394             before the dialog shows up (fixes part 6 of bug #78446).
24395           - Creation of new folders/directories is now possible (context menu
24396             or ToolBar). Added TextEntryDialog for this that fills in the gap
24397             until ListView.LabelEdit works.
24398           - Fixed cursor handling (bug #78527) and focus handling for
24399             PopupButtonPanel
24400           - Various "Search in" ComboBox enhancements. The content of the
24401             dropdown listbox now almost matches ms.
24402           - Changed the behaviour when the user switches to SpecialFolder
24403             Recent to show the ListView in View.Details.
24404           - Beside using the ToolBar to change the View property of the
24405             file ListView it is now possible to use the context menu too.
24406
24407 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24408
24409         * ComboBox.cs: Don't create a new ObjectCollection when an item
24410           gets inserted. Just insert the item in the existing object_items
24411           ArrayList.
24412
24413 2006-06-08  Jackson Harper  <jackson@ximian.com>
24414
24415         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
24416         that the treeview and root node checks are done also, this fixes a
24417         regression i caused in the unit tests.
24418
24419 2006-06-07  Wade Berrier <wberrier@novell.com> 
24420
24421         * RichTextBox.cs: More ISO8859-1 -> unicode
24422
24423 2006-06-07  Mike Kestner  <mkestner@novell.com>
24424
24425         * ComboBox.cs : use items to hold highlight/selection so that
24426         collection insertions don't require synchronization.
24427
24428 2006-06-07  Jackson Harper  <jackson@ximian.com>
24429
24430         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
24431         routine.  We now always keep the sized edge at the cursor instead
24432         of computing movement and adjusting rects.  There is one buglet
24433         with this method though when the cursor is moved over area that
24434         the window can not expand too (such as the toolbars on the desktop).
24435
24436 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24437
24438         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
24439         here. Fixes crash on startup in AlbumSurfer.
24440
24441 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
24442
24443         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
24444           values
24445
24446 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24447
24448         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
24449         statement to avoid calling XNextEvent which will block if another thread
24450         took the event that we were expecting. Fixes bug #78605.
24451
24452 2006-06-07  Mike Kestner  <mkestner@novell.com>
24453
24454         * ListView.cs : isolated checkbox clicking from the selection logic.
24455         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
24456
24457 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24458
24459         * Form.cs: Check that the value passed to Form.DialogResult
24460         is a valid enum value.
24461
24462 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24463
24464         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
24465         Computer'. Clicking it in the network view goes to 'My Computer'.
24466         Added CIFS filesystem type. Display the mount point of filesystems.
24467         Avoid duplicate mount points (happens for me with CIFS);
24468
24469 2006-06-06  Jackson Harper  <jackson@ximian.com>
24470
24471         * InternalWindowManager.cs: Draw the maximized windows buttons
24472         when resizing.
24473
24474 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24475
24476         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
24477         all other dialogs. Fixes bug #78585.
24478
24479 2006-06-06  Mike Kestner  <mkestner@novell.com>
24480
24481         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
24482         Only invalidate checkbox on checkstate changes to avoid flicker.
24483         * ListBox.cs : avoid unselect/select when clicking selected item.
24484         avoid reselection flicker for already multiselected items.
24485         Fixes #78382.
24486
24487 2006-06-06  Jackson Harper  <jackson@ximian.com>
24488
24489         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
24490         the parent form so that the menu is removed if needed.
24491
24492 2006-06-06  Mike Kestner  <mkestner@novell.com>
24493
24494         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
24495         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
24496
24497 2006-06-06  Mike Kestner  <mkestner@novell.com>
24498
24499         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
24500
24501
24502 2006-06-06  Jackson Harper  <jackson@ximian.com>
24503
24504         * Control.cs: Use the property (instead of the field) to get the
24505         default cursor so it is instantiated correctly.
24506         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
24507         resizes so we need to manually repaint the window decorations here.
24508         - Set the titlebar button locations as soon as they are created,
24509         otherwise they are not set correctly on win32.
24510         
24511 2006-06-06  Chris Toshok  <toshok@ximian.com>
24512
24513         * CurrencyManager.cs (set_Position): call PullData before
24514         OnCurrentChanged.
24515         (AddNew): after calling IBindingList.AddNew, update our
24516         listposition, and call OnCurrentChanged/OnPositionChanged (without
24517         calling PullData).
24518         (OnCurrentChanged): remove the call to PullData from here.
24519         (OnItemChanged): remove the call to PushData from here.
24520         (OnPositionChanged): change the test from == null to != null to
24521         match the other methods.
24522         (ListChangedHandler): the grossest part of the patch.  Implement
24523         this such that it passes the unit tests in CurrencyManagerTest and
24524         the output more or less matches that of MS's implementation.
24525  
24526 2006-06-06  Mike Kestner  <mkestner@novell.com>
24527
24528         * ListView.cs : only update check state on single click.
24529         * ThemeWin32Classic.cs : fix focus drawing for details view without
24530         fullrowselect.  Fixes #78454.
24531         * XplatUIX11.cs : fix for double click emission.
24532
24533 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
24534
24535         * PropertyGridView.cs : Applied Atsushi's patch to fix
24536         font dialog bug  (#78197).
24537
24538 2006-06-05  Jackson Harper  <jackson@ximian.com>
24539
24540         * TreeNode.cs: Compute the next node for expanding/collapsing
24541         correctly. We now factor in nodes without a NextNode
24542         correctly. (Fixes somes cases in nunit-gui).
24543         * InternalWindowManager.cs: Set the bounds when updating the
24544         virtual position of a tool window.
24545         
24546 2006-06-05  Chris Toshok  <toshok@ximian.com>
24547
24548         * DataGrid.cs: rename cached_currencymgr to list_manager.
24549         (set_CurrentCell): move SetCurrentCell code here, and clean it up
24550         some.
24551         (CurrentRow, CurrentColumn): single accessors so we can make the
24552         cursor movement code a lot easier to understand.
24553         (CurrentRowIndex): implement this in terms of CurrentRow.
24554         (BeginEdit): clean this up a bit.
24555         (CancelEditing): sort out the is_editing/is_changing/is_adding
24556         stuff a little.
24557         (EndEdit): minor changes.
24558         (OnKeyDown): add a comment about a (most likely) unnecessary
24559         check.
24560         (OnMouseDown): cancel editing when we click on a row header.  And
24561         use the CurrentRow setter, not CurrentCell.
24562         (ProcessDialogKey): directly call ProcessGridKey.
24563         (UpdateSelectionAfterCursorMove): factor out this common block of
24564         code (it's used everywhere that we move the cursor by updating row
24565         or column).
24566         (ProcessGridKey): pretty substantial overhaul.  Use the
24567         CurrentRow/CurrentColumn properties to make the code a lot more
24568         readable.  Only use the CurrentCell property when we have to
24569         modify both row and column at once.  Tab behavior is still broken,
24570         and Delete is untested.
24571         (Select): if we have no selected rows, set selection_start to
24572         @row.
24573         (EditCurrentCell): rename EditCell this.  It was only ever invoked
24574         with CurrentCell as the arg, so drop the arg and rename it.
24575
24576         * DataGridColumnStyle.cs: clean up the constructors a little, and
24577         drop CommonConstructor().
24578
24579         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
24580         actually get notified when the user hits it.
24581         (ProcessKeyMessage): *substantially* simplify this method.
24582         There's no reason (that I can see) for the textbox to be making
24583         calls into the datagrid at all.  Remove all of them but the ones
24584         for Enter handling.  those will take some more work.
24585
24586         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
24587         calling HideEditBox.
24588         (HideEditBox): if we have an active textbox, render it invisible
24589         without causing a re-layout of the datagrid.
24590
24591 2006-06-05  Mike Kestner  <mkestner@novell.com>
24592
24593         * ListView.cs : fix NRE crasher when focuseditem is cleared by
24594         collection changes by resetting it to Items[0].  Fixes #78587.
24595
24596 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24597
24598         * MessageBox.cs: if the height of the text is larger than the icon_size,
24599         use that. Fixes bug #78575.
24600
24601 2006-06-05  Jackson Harper  <jackson@ximian.com>
24602
24603         * TreeView.cs: Fix line drawing when scrolling.  To do this each
24604         node is basically responsible for drawing its entire horizontal
24605         area.  When drawing a node it draws its parent node lines if
24606         needed.
24607         - Adjust the clip area to the viewport rectangle
24608         - Fix Left/Right key handling to match MS. (It expand/collapses
24609         and moves to parents/first child but does not move selection to
24610         sibling nodes).
24611         - Fix SetTop to work with new bound calculation code
24612         - When scrollbars are no longer needed we need to reset scrolling
24613         vars and recalculate the visible order so the redraw is correct
24614         * TreeNode.cs: We can't expand/collapse nodes with no children.
24615
24616 2006-06-03  John Luke  <john.luke@gmail.com> 
24617
24618         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
24619         so the colors work without dev packages
24620         
24621 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
24622
24623         * Control.cs 
24624           - Select: Implemented to just use activate. Seems to match MS 
24625             behaviour closest. Documented to only do actual control walking 
24626             based on it's parameters if in a container control so I moved 
24627             the code there.
24628           - Removed selection check logic from our internal Select() method
24629         * ContainerControl.cs:
24630           - Select: Moved selection logic from Control here, since MS documents
24631             that containers obey the bool arguments. No longer calling base
24632
24633 2006-06-02  Jackson Harper  <jackson@ximian.com>
24634
24635         * TreeView.cs: If the selected node isn't changed when we get
24636         focus update the previously selected node so that we see the
24637         selection box.
24638
24639 2006-06-02  Mike Kestner  <mkestner@novell.com>
24640
24641         * ComboBox.cs: restructure grab and general mouse event handling.
24642         Make the composite control raise mouse events like it was a single
24643         control for leaves/enters/motion/up/down events.  fix dropdown list
24644         coordinate mangling and refactor it into the scrollbar subclass to
24645         reduce code duplication.  Fixes #78282 #78361 and #78457.
24646
24647 2006-06-02  Mike Kestner  <mkestner@novell.com>
24648
24649         * ScrollBar.cs: remove Capture setting/clearing, as it happens
24650         automatically in the Control.WndProc.
24651
24652 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24653
24654         * FileDialog.cs: fix crash when running SharpChess, which sets the
24655         FilterIndex to 2 with only one Filter.
24656
24657 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24658
24659         * ToolBar.cs: add SizeSpecified property.
24660         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
24661         try to figure out our real size, otherwise fallback to what the
24662         container says.
24663
24664 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
24665
24666         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
24667         * Control.cs (WndProc): MS always calls the DefWndProc to pass
24668           up the event
24669
24670 2006-06-01  Mike Kestner  <mkestner@novell.com>
24671
24672         * ListView.cs: revamp the focus management in ListView.  It still
24673         causes churn of LostFocus/GotFocus emissions on clicks, but it's
24674         better than not handling focus at all.  Will revisit when pdb feels
24675         the general focus handling is solid.  Fixes #78526.
24676
24677 2006-06-01  Jackson Harper  <jackson@ximian.com>
24678
24679         * TreeView.cs: Set the default border style in the constructor.
24680         - Move painting to use OnPaintInternal instead of capturing
24681         WM_PAINT, this is the correct way of doing things
24682         - UpdateBelow shouldn't invalidate the scrollbar area
24683         - Cap the top on update below in case the node was above the top
24684         of the viewport rectangle.
24685         - ExpandBelow and Collapse below need to obey Begin/End Update.
24686         * TreeNode.cs: Make is_expanded internal so the treenode
24687         collection can change it without firing the whole event chain.
24688         * TreeNodeCollection.cs: When clearing all the child nodes make
24689         sure to recalc the visible order.
24690         - Improve algo for remove the top node
24691
24692 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
24693
24694         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
24695           SendMessage directly calling window procedures, which in turn might
24696           call SetFocus()
24697
24698 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
24699
24700         * Control.cs: Don't handle WM_SETFOCUS if the same window already
24701           has focus (works around X11 sending a FocusIn after our SetFocus)
24702         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
24703
24704 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
24705
24706         * Mime.cs: Fix for the NET_2_0 build.
24707           NameValueCollection needs StringComparer now.
24708
24709 2006-05-31  Chris Toshok  <toshok@ximian.com>
24710
24711         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
24712         return (via an out parameter) the starting X of the column.
24713         (UpdateVisibleColumn): track change to FromPixelToColumn.
24714         (HitTest): add a ColumnResize case here.
24715         (DrawResizeLine): new function, probably poorly named.
24716
24717         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
24718         only need to keep one reference.
24719         (set_ListManager): same.
24720         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
24721         Also, add support for HitTestType.ColumnResize.
24722         (OnMouseMove): add column resize behavior here, and change the
24723         cursor to the correct one as we move around the datagrid.
24724         (OnMouseUp): terminate the column resize if we're resizing.
24725         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
24726         for the current cell.
24727         (ConnectListManagerEvents): use cached_currencymgr.
24728         (DisconnectListManagerEvents): fill this in, using
24729         cached_currencymgr.
24730         (SetCurrentCell): remove cached_currencymgr_events handling.
24731         (SetDataMember): only call DisconnectListManagerEvents if
24732         cached_currencymgr is != null.
24733         (SetDataSource): same.
24734         (OnListManagerCurrentChanged): cached_currencymgr_events ->
24735         cached_currencymgr.
24736
24737 2006-05-31  Jackson Harper  <jackson@ximian.com>
24738
24739         * BindingManagerBase.cs: Remove somedebug code that creeped into
24740         SVN.
24741         * TreeNode.cs: We get the indent level dynamically right now, so
24742         don't track it as a member.
24743         * TreeNodeCollection.cs: Make sure all nodes added to the list
24744         have parents, treeviews/topnodes setup properly.
24745         - Don't attempt to track indent level.
24746
24747 2006-05-30  Jackson Harper  <jackson@ximian.com>
24748
24749         * BindingContext.cs: Create the currency manager tables here.
24750         This allows us to more easily create null tables (when bad data
24751         members are used), and more easily create related currency
24752         managers.
24753         * CurrencyManager.cs: All the table creation stuff is done by the
24754         binding context now.
24755         - Current should throw an exception if listposition is -1.
24756         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
24757         been bound yet.
24758
24759 2006-05-30  Mike Kestner  <mkestner@novell.com>
24760
24761         * ListView.cs: allow reexpansion of zero-width column headers.
24762         Fixes #78528.
24763
24764 2006-05-28  Chris Toshok  <toshok@ximian.com>
24765
24766         * CurrencyManager.cs (get_Current): after the late binding
24767         listposition = -1 fix, we need to guard against it here and return
24768         null, otherwise we raise an exception (which is swallowed
24769         elsewhere, and breaks datagrid databinding.)
24770
24771 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
24772
24773         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
24774           than WM_SYSKEY, don't throw if get something unexpected (#78507)
24775
24776 2006-05-26  Jackson Harper  <jackson@ximian.com>
24777
24778         * ControlPaint.cs:
24779         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
24780         values, it's faster and it's all we care about (we don't care if
24781         the names aren't equal).
24782         * KeyboardLayouts.cs: Eliminate some dead code.
24783         - Lazy init things
24784         * X11Keyboard.cs: Lazy init keyboard detection.
24785         - Cleanup access modifiers a little.
24786
24787 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
24788
24789         * XplatUIX11.cs: Once again, attempting to get layout just right.
24790
24791 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
24792
24793         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
24794           the sizes of each link section, that will result in sizes that
24795           match DrawString's layout (Fixes #78391)
24796
24797 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
24798
24799         * FileDialog.cs: If AddExtension property is true autocomplete the
24800           extensions in SaveFileDialog correctly. Fixes bug #78453.
24801           Set MyNetwork and MyComputer to "C:\" for windows. This should
24802           fix part 8 of bug #78446 for now.
24803
24804 2006-05-26  Chris Toshok  <toshok@ximian.com>
24805
24806         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
24807         invalidate the current row header if we need to, but presumably
24808         we'll invalidate the row corrsponding to the bounds or
24809         editingControl.
24810         (GridHScrolled): switch back to this method, as it's part of the
24811         public api.  *sigh*.
24812         (GridVScrolled): same.
24813         (OnMouseWheel): hack up something that more or less works.  Call
24814         GridHScrolled/GridVScrolled directly, instead of duplicating much
24815         of their code here.
24816         (EnsureCellVisibility): reinstate a bunch of this code, since we
24817         can't just set the scrollbar Value and expect to do all the work
24818         in the ValueChanged handler.  Also, Call Update() after scrolling
24819         in one direction so the other XplatX11.ScrollWindow call has the
24820         proper stuff in the proper places.
24821         (EditCell): set is_editing to true before calling .Edit.
24822
24823         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
24824         don't bother comparing first.
24825         (OnKeyPress): call grid.ColumnStartedEditing before calling
24826         base.OnKeyPress.  this will set is_changing and invalidate the row
24827         header if necessary.
24828         (ProcessKeyMessage): for WM_CHAR messages, call
24829         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
24830         and WM_KEYDOWN.
24831         
24832         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
24833         it's done in the DataGrid.
24834         (NextState): call grid.ColumnStartedEditing, which takes care of
24835         invalidating the row header (and setting is_changing).
24836
24837         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
24838         here.  it's done in the DataGrid.
24839
24840 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24841
24842         * Control.cs: allow changing the cursor when the mouse position is
24843         out of bounds but Capture is set.
24844         * LinkLabel.cs: handle the case when the mouse button is pressed on the
24845         linklabel but released somewhere else.
24846
24847 2006-05-25  Jackson Harper  <jackson@ximian.com>
24848
24849         * TreeView.cs: When we get focus if there is no selected node make
24850         it the top node
24851         - Remove some uneeded setup code from Draw.
24852         * TreeNodeCollection.cs: If the tree doesn't have a top node when
24853         a new node is inserted make the new node the top.
24854         * XplatUIX11.cs:
24855         * Timer.cs: Use Utc time so that no local time zone stuff needs to
24856         be used (should be faster).
24857         
24858 2006-05-25  Chris Toshok  <toshok@ximian.com>
24859
24860         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
24861         problem with the last commit.
24862
24863 2006-05-25  Chris Toshok  <toshok@ximian.com>
24864
24865         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
24866         need the invalidate call here, while scrolling right-to-left via
24867         the left arrow key (i.e. moving the editing cell while scrolling).
24868
24869         * DataGrid.cs (.ctor): remove the initialization of
24870         ctrl_pressed/shift_pressed.  We no longer track them using key
24871         up/down handlers, but by using Control.ModifierKeys.  Also, switch
24872         to using ValueChanged handlers on the scrollbars instead of
24873         Scrolled event handlers.  This simplifies a bunch of the scrolling
24874         code.
24875         (GridHValueChanged): rename from GridHScrolled, and change it to
24876         work with the new event args.
24877         (GridVValueChanged): same.
24878         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
24879         (OnMouseWheel): actually scroll the datagrid.  Don't change the
24880         selected cell.
24881         (ProcessGridKey): correct all the keyboard navigation stuff I
24882         could find.  Ctrl up/down/left/right/home/end work now.
24883         (EnsureCellVisibility): correct method name spelling.  Also,
24884         simplify this a touch by not explicitly calling the
24885         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
24886         scrollbar value.
24887         (OnKeyUpDG): no need for this method now.
24888         
24889 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24890
24891         * LinkLabel.cs: display the OverrideCursor when hovering the label.
24892         Fixes bug #78392.
24893
24894 2006-05-25  Chris Toshok  <toshok@ximian.com>
24895
24896         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
24897         r61019.
24898
24899 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
24900
24901         * Application.cs: Moved setting of is_modal and closing to before
24902           we create the control, to allow the event handlers called as a
24903           result of creation affect closing. Also removed Gonzalo's previous
24904           change to setting DialogResult, the behaviour has been moved to 
24905           Form.ShowDialog()
24906         * Form.cs: 
24907           - ShowDialog(): Removed explicit creation of the form, let RunLoop
24908             handle it instead
24909           - ShowDialog(): If no dialog result is set, we need to return Cancel
24910           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
24911             the close is cancelled
24912
24913 2006-05-25  Jackson Harper  <jackson@ximian.com>
24914
24915         * StatusBar.cs: We only need to update the sizes of the other
24916         panels when we have auto size contents.  Also we are only updating
24917         the contents of the panel, not the borders, so compensate for the
24918         border width (TODO: get this width from the theme somehow).
24919         * TreeView.cs: Scrollable is true by default
24920         - Use invalidate instead of refresh where needed
24921         - Factor the scrollable value into scrollbar updating
24922         - Update the scrollbars if the Scrollable property is altered
24923         - Update the selected node if its ImageIndex is changed
24924         - Handle null nodes in UpdateNode (mainly so we don't have to
24925         check if selected is null when updating it
24926         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
24927         are factored into the visible count
24928         - Use VisibleCount for clarity in the code
24929         - When the font is changed we need to recurse through all the
24930         nodes and invalidate their sizes
24931         
24932 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24933
24934         * Application.cs: set the DialogResult to fixed when the main form is
24935         hidden or destroyed while being modal.
24936
24937 2006-05-25  Miguel de Icaza  <miguel@novell.com>
24938
24939         * Theme.cs: Use Tangoified messagebox icons. 
24940
24941         (GetSizedResourceImage): Also cope with width = 0 and do not
24942         trigger a warning in that case (0 means "give me your icon from
24943         the resouce, no special size needed).
24944
24945 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
24946
24947         * Application.cs: Leave runloop if the the main modal form is 
24948           hidden (fixes #78484)
24949
24950 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
24951
24952         * BindingContext.cs : reject null datasource in Contains() and
24953           Item[].
24954         * CurrencyManager.cs : check data_member validity when data_source
24955           is dataset. When it is late binding, the initial position is -1.
24956
24957 2006-05-24  Jackson Harper  <jackson@ximian.com>
24958
24959         * TreeNodeCollection.cs: Dont't recalculate the visible order on
24960         inserted nodes that aren't visible.  This changes the
24961         max_visible_order which confuses scrollbar settings.
24962         - Use the enumerator to get the prev node instead of duplicating
24963         code.
24964         * TreeView.cs: Use new method for setting scrollbar values
24965         - Don't set the bounds every time the scrollbar is updated
24966         - When updating below the root node use an invalidate instead of a
24967         refresh to prevent the child controls (scrollbars) from being
24968         refreshed. (UpdateBelow still needs to be reworked anyways).
24969         - Reenable SetBottom now that visible orders are set correctly,
24970         added some debug code incase we ever get bad values there again.
24971         - Set the scrollbar max to 2 less then the max value, this
24972         compensates for the max value being one above the node count, and
24973         for scrollbars adding one extra "notch".
24974         - When drawing image nodes if there is an imagelist we draw the
24975         first image in the list if the supplied image index is out of the
24976         image list's bounds.
24977         
24978 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
24979
24980         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
24981           we receive a size change from the WM (Fixes #78503)
24982
24983 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
24984
24985         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
24986           rectangle (Fixes #78501)
24987
24988 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
24989
24990         * ButtonBase.cs: 
24991           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
24992             as a bitfield.
24993           - Fixed MouseMove to no longer switch pressed state unless the left
24994             mouse button is pressed. Atsushi provided the original patch (#78485)
24995           
24996 2006-05-24  Jackson Harper  <jackson@ximian.com>
24997
24998         * ScrollBar.cs: New internal methods that allow us to change a
24999         couple values on the scrollbar (the most common case is maximum
25000         and large change) without getting multiple invalidates.
25001
25002 2006-05-24  Chris Toshok  <toshok@ximian.com>
25003
25004         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
25005         (Edit): save off the original state in oldState, and set
25006         grid.is_editing to true.
25007         (OnKeyDown): abort editing if escape is pressed.  also, call
25008         NextState if space is pressed.
25009         (OnMouseDown): call NextState.
25010         (NextState): factor out shared code from OnKeyDown and OnMouseDown
25011         here.  Also, only invalidate the row header once (on the initial
25012         is_changing switch) to save on redraws.
25013
25014 2006-05-24  Chris Toshok  <toshok@ximian.com>
25015
25016         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
25017         if the value in the cell is different than it was before.  This
25018         keeps us from triggering a layout when we move around a datarid
25019         with a highlighted cell.
25020         (Edit): suspend layout when creating/positining the text box, and
25021         resume passing false so we don't ever actually re-layout.
25022         (ReleaseHostedControl): same.
25023         (EnsureTextBox): reformat slightly, and set WordWrap to false.
25024
25025         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
25026         control-key sequences should go to the datagrid - remove that
25027         lock.  Also, modify the conditions under which we move between
25028         cells when moving the cursor within a cell, and remove the "this"
25029         and "base" from field accesses.  We weren't even consistent, given
25030         they all were in the base class.
25031
25032 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
25033
25034         * Binding.cs : (.ctor)
25035           An obvious NRE fix for BindingTest.CtorNullTest().
25036
25037 2006-05-23  Chris Toshok  <toshok@ximian.com>
25038
25039         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
25040         them between lines.  This fixes some quirks editing cells in the
25041         datagrid.
25042
25043 2006-05-23  Jackson Harper  <jackson@ximian.com>
25044
25045         * TreeView.cs: Use begin/end update when doing expand/collapse all
25046         so that we don't get flicker on the scrollbar.
25047
25048 2006-05-23  Jackson Harper  <jackson@ximian.com>
25049
25050         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
25051         treenode calculations to be independant of the painting code. To
25052         do this nodes track a visible order which is calculated by the
25053         treeview.
25054         - Call new methods for expanding/collapsing nodes.  These methods
25055         use scrollwindow so we don't have to update everything below the
25056         node.
25057         * TreeView.cs: Refactored drawing and scrolling code.  We don't
25058         need to update nodes when drawing anymore or calculate scrollbar
25059         stuff.
25060         - Added new methods for expanding/collapsing nodes. These methods
25061         use ScrollWindow so as to not have to redraw all the nodes below.
25062         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
25063         we add/remove nodes or sort.
25064         - Handle removing the selected and the top node properly.
25065
25066 2006-05-23  Chris Toshok  <toshok@ximian.com>
25067
25068         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
25069         maybe this should actually happen in the datagrid code?
25070         (EndEdit): no need to invalidate anything, given that
25071         ReleaseHostedControl causes the datagrid to relayout, which
25072         invalidates everything anyway.
25073
25074         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
25075         in SetCurrentCell).
25076         (set_SelectionBackColor): call InvalidateSelection instead of
25077         Refresh.
25078         (set_SelectionForeColor): same.
25079         (BeginEdit): Flesh this out a bit.
25080         (CancelEditing): only do any of this if we're editing/adding.
25081         (EndEdit): same.
25082         (OnMouseDown): there's no need to cancel editing here, it's done
25083         in SetCurrentCell.
25084         (SetCurrentCell): only invalidate the current row header if it's a
25085         different row than the new one.
25086         (ShiftSelection): fix this to work like MS does.
25087         (ResetSelection): factor out the invalidation of selected_rows to
25088         InvalidateSelection.
25089         (SetDataSource): cancel any editing that's going on.
25090
25091         * DataGridColumnStyle.cs
25092         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
25093         call the non-interface version.
25094
25095         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
25096         header rectangle with the clip rectangle so we don't redraw the
25097         entire header for just a small area.  Gets rid of the last flicker
25098         when horizontally scrolling.
25099         (DataGridPaintRow): same.
25100
25101 2006-05-23  Mike Kestner  <mkestner@novell.com>
25102
25103         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
25104         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
25105         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
25106         Critical bug report.
25107
25108 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
25109
25110         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
25111           and this fixes #78493
25112
25113 2006-05-23  Miguel de Icaza  <miguel@novell.com>
25114
25115         * Theme.cs (GetSizedResourceImage): Scale images if the proper
25116         size is not found.  
25117         
25118         * FileDialog.cs: Do not change the background for the side bar as
25119         it wont work nicely with the theme, and also reduces the artifacts
25120         in rendering the icons (which I want to fix too).
25121
25122         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
25123         resources, not resgen resources. 
25124
25125         (PlatformDefaultHandler): Pull images using the new API.
25126
25127 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
25128
25129         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
25130           a reference to the hwnd and will not remove it unless there are
25131           no pending exposures (fixes #78341)
25132         * XplatUI.cs: Improved debug
25133
25134 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
25135
25136         * MenuAPI.cs : don't handle OnClick event when it was not the left
25137           button. Fixed bug #78487.
25138
25139 2006-05-23  Mike Kestner  <mkestner@novell.com>
25140
25141         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
25142         prefer submenus to the top menu for item lookup, to avoid popping down
25143         top-row items.
25144
25145 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
25146
25147         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
25148           Graphics.FillRectangle as the visual results are really bad (even
25149           on win). We now draw perfect arrows (and perfect shadows when the
25150           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
25151           Pen.DashPattern to draw the dots of each line.
25152
25153 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
25154
25155         * FileDialog.cs: Update the filename combobox when navigating through
25156           the ListView with the cursor keys. Fixes part 7 of bug #78446.
25157
25158 2006-05-22  Mike Kestner  <mkestner@novell.com>
25159
25160         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
25161         Fixes #78463.
25162
25163 2006-05-22  Mike Kestner  <mkestner@novell.com>
25164
25165         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
25166         requests. Fix a misspelled parameter and a copy paste exception error
25167         in Select.
25168
25169 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
25170
25171         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
25172           to get the same width/height (5/13) on X11 as the default font has on
25173           win32. This means that our DefaultFont emSize is smaller than the 
25174           the MS SWF equivalent (even thought the width/height stays the same)
25175
25176 2006-05-20  Jackson Harper  <jackson@ximian.com>
25177
25178         * MdiClient.cs:
25179         * MdiWindowManager.cs:
25180         * InternalWindowManager.cs: Make sure to use the border width from
25181         the theme.
25182
25183 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
25184
25185         * PrintDialog.cs: Implements printer details
25186
25187 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
25188
25189         * FileDialog.cs: Added focus handling for PopupButtonPanel.
25190           Fixes part 1 and 2 of bug #78446
25191
25192 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
25193
25194         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
25195           instead of sticking to the first ever calculated value
25196
25197 2006-05-19  Mike Kestner  <mkestner@novell.com>
25198
25199         * ComboBox.cs: fix mouse motion selection to use MousePosition and
25200         PointToClient, since Capture is set. Fixes #78344.
25201
25202 2006-05-19  Mike Kestner  <mkestner@novell.com>
25203
25204         * ListView.cs: match MS behavior in Details view where items are not
25205         drawn if Columns.Count == 0. 
25206         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
25207         Use a separate pen to draw the check, since changing the width affects
25208         the box as well.  Fixes #78454.
25209
25210 2006-05-18  Miguel de Icaza  <miguel@novell.com>
25211
25212         * ListView.cs: ArgumentOutOfRangeException, single versions of the
25213         exception should throw the name of the invalid argument.
25214
25215         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
25216         there are no files listed. 
25217
25218 2006-05-18  Jackson Harper  <jackson@ximian.com>
25219
25220         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
25221         up.
25222
25223 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
25224
25225         * Control.cs: Brought back our old UpdateZOrder method as a private
25226           function and switched our calls from UpdateZOrder to the new one.
25227           This fixes the Paint.Net canvas disappearing bug.
25228
25229 2006-05-18  Jackson Harper  <jackson@ximian.com>
25230
25231         * Theme.cs:
25232         * ThemeWin32Classic.cs:
25233         * InternalWindowManager.cs: Move the drawing into the theme,
25234         expose everything the theme should need from the window manager.
25235
25236 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
25237
25238         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
25239           from the call to NativeWindow to avoid walking up the parent chain
25240           further than needed (speeds up setting cursors and avoids setting
25241           the wrong cursor if a parent has another cursor defined)
25242         * Cursor.cs: When loading an icon as cursor, MS uses the center of
25243           the icon as hotspot, not what's contained as hotspot in the icon
25244           file. This fixes the perceived drawing offset seen with Paint.Net
25245         
25246 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
25247
25248         * XplatUIX11.cs: 
25249           - Store the calculated rectangle in Hwnd object and use it when 
25250             setting the client size
25251           - Force Toolwindows to always be type Dock, to ensure they're on top
25252
25253 2006-05-18  Mike Kestner  <mkestner@novell.com>
25254
25255         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
25256         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
25257         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
25258         Substantial refactoring to remove confusing nested classes. Coding
25259         standard and Get+Set->property refactorings.  Shift to index based
25260         highlighting in ComboListBox instead of constantly using IndexOf and
25261         Items[]. Add invalidations on resize for DropDownList to fix ugliness
25262         in FileDialog growth.  Draw borders manually since Simple mode needs
25263         to look like two independent controls.  Make listbox border
25264         conditional to DropDownStyle.  Improved OwnerDraw support.
25265
25266 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
25267
25268         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
25269         Don't set the disposed graphics to null, so we can throw the "right"
25270         exception if the graphics is reused later (added a flag to avoid 
25271         double disposing). Some behaviours are different under 2.0 and are
25272         filled under bug #78448.
25273
25274 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
25275
25276         * Control.cs: When double-buffering is enabled, we need to reset
25277           our graphics context between paint calls. Otherwise, any 
25278           transformations and other alterations on the context will 
25279           become cumulative (#77734)
25280
25281 2006-05-18  Mike Kestner  <mkestner@novell.com>
25282
25283         * ListView.cs: do focused item selection like MS on clicks. 
25284         Rework focus handling for ItemControl so LostFocus invalidates as
25285         well.
25286         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
25287         the ListView ItemControl has focus.
25288
25289 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
25290
25291         * XplatUIX11.cs: If client_window ends up being width or height zero
25292           due to border settings, move it off window inside whole_window (#78433)
25293
25294 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
25295
25296         * Mime.cs: Shrink the mime file cache correctly.
25297
25298 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
25299
25300         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
25301
25302 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25303
25304         * XplatUIX11.cs (AddExpose): More sanity checks
25305
25306 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25307
25308         * XplatUIX11.cs:
25309           - AddExpose: Don't add expose ranges outside the size of our
25310             window
25311           - Cast opacity values to Int32 to avoid crashes with certain
25312             values
25313           - Added disabled code paths that protect against illegal cross-
25314             thread painting (Developers.exe)
25315
25316 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25317
25318         * ProgressBar.cs: Invalidate the control when it's resized
25319           since block size is based on control size. (#78388)
25320
25321 2006-05-16  Miguel de Icaza  <miguel@novell.com>
25322
25323         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
25324         of setting the incoming argument to the "reset" value, we set the
25325         this.datamember to string.empty (before we were invalidating the
25326         incoming data).   
25327
25328         Fixes 78420
25329
25330 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25331
25332         * Form.cs: Only apply transparency settings after the form
25333           is created. (Fixes #77800)
25334
25335 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25336
25337         * ApplicationContext.cs: Grab the HandleDestroyed event so
25338           we know when to fire OnMainFormClosed 
25339
25340 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25341
25342         * Application.cs: Introduced sub-class to allow tracking of
25343           threads and centralized triggering of the event mess for
25344           ThreadExit, AppExit, etc..  (#76156)
25345
25346 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
25347
25348         * MimeIcon.cs:
25349           - Do not return a null icon index value for a mime subclass.
25350             Instead try the main mime type class too.
25351           - Seems that some newer distributions don't have a link to some
25352             gnome default icons anymore. So check the default gnome dir too.
25353           
25354
25355 2006-05-16  Jackson Harper  <jackson@ximian.com>
25356
25357         * MdiClient.cs: Don't paint the parent background image if we have
25358         our own background image.
25359
25360 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25361
25362         * Control.cs:
25363           - PerformLayout: Do not shrink space filled by DockStyle.Fill
25364             controls, all filled controls are supposed to overlap (#78080)
25365           - UpdateZOrder is supposed to update the control's z-order in the
25366             parent's z-order chain. Fixed to behave like that
25367           - BringToFront: Removed obsolete code
25368           - SendToBack: Simplyfied
25369           - SetChildIndex: Trigger layout calculations when Z-order changes
25370             since layout is done by z-order
25371
25372 2006-05-16  Chris Toshok  <toshok@ximian.com>
25373
25374         [ fixes bug #78410 ]
25375         * DataGrid.cs (set_AlternatingBackColor): use
25376         grid_drawing.InvalidateCells instead of Refresh().
25377         (set_BackColor): call grid_drawing.InvalidateCells.
25378         (set_BackgroundColor): use Invalidate instead of Refresh.
25379
25380         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
25381         invalidate the cell area.
25382
25383 2006-05-15  Chris Toshok  <toshok@ximian.com>
25384
25385         [ fixes bug #78011 ]
25386         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
25387         on to DataGridPaintRow.
25388         (DataGridPaintRow): take a clip argument, and only draw the cells
25389         which intersect it.  same with the not_usedarea.
25390
25391         * Theme.cs (DataGridPaintRow) add @clip parameter.
25392
25393         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
25394         XplatUI.ScrollWindow.
25395         (ScrollToRow): same.
25396
25397         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
25398         with last column which was causing a gray swath to appear with the
25399         XplatUI.ScrollWindow code.
25400
25401 2006-05-15  Chris Toshok  <toshok@ximian.com>
25402
25403         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
25404         use XplatUI.ScrollWindow.
25405         (VerticalScrollEvent): use XplatUI.ScrollWindow.
25406
25407 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
25408
25409         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
25410
25411 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
25412
25413         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
25414           file since there are no equivalent X11 cursors
25415
25416 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
25417
25418         * MonthCalendar.cs : DateTimePicker should reflect selected date
25419           on mouse*up*, not mouse*down*. Fixed originally reported part of
25420           bug #76474.
25421
25422 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
25423
25424         * TabControl.cs : When argument index is equal or more than tab
25425           count, just ignore. Fixed bug #78395.
25426
25427 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
25428
25429         * Control.cs: Dispose all child controls when control is diposed (#78394)
25430
25431 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25432
25433         * ColorDialog.cs: Finally it is possible to select the color with
25434           the text boxes
25435
25436 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25437
25438         * PrintDialog.cs: Fix typo
25439
25440 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25441
25442         * PrintDialog.cs: PrintDialog is not resizable
25443         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
25444           color. Made some ToolBar drawing methods protected virtual.
25445
25446 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
25447
25448         * PrintDialog.cs: Implementation of the PrintDialog
25449
25450 2006-05-12  Chris Toshok  <toshok@ximian.com>
25451
25452         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
25453         thumb, instead use MoveThumb.  This has the side effect of making
25454         most of the other thumb moving machinery use MoveThumb as well.
25455         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
25456         need to actually invalidate the rectangle where the new thumb will
25457         go.
25458         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
25459         We force an Update() after, so it's not as fast as it could be,
25460         but at least there's zero flicker and no droppings.
25461         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
25462         (UpdateThumbPos): add another argument (dirty), which says whether
25463         or not to calculate/add dirty regions which we later invalidate.
25464         For cases where we know we're going to use MoveThumb, we pass
25465         false for this.  Otherwise, pass true.
25466
25467 2006-05-12  Jackson Harper  <jackson@ximian.com>
25468
25469         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
25470         the status bar.
25471         
25472 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
25473
25474         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
25475           and GetClipRegion methods and UserClipWontExposeParent property.
25476         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
25477           overriding UserClipWontExposeParent property, setting to false, since
25478           Win32 handles the required expose messages to draw our clipped parent
25479           areas internally
25480         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
25481           PaintEventStart to set the user clip region if set.
25482         * Control.cs: 
25483           - Now internally tracking the Region for the control since we need to
25484             store it if the handle is not yet created and only set it when it
25485             becomes created. Before setting the region forced handle creation
25486           - Added code to draw the parents underneath a user-clipped region
25487         * Hwnd.cs: Added UserClip property
25488
25489 2006-05-12  Chris Toshok  <toshok@ximian.com>
25490
25491         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
25492         (set_Maximum): same.
25493         (set_Minimum): same.
25494         (set_SmallChange): same.
25495         (OnMouseUpSB): remove the call to refresh when releasing the
25496         thumb.  We shouldn't need it.
25497         
25498 2006-05-12  Miguel de Icaza  <miguel@novell.com>
25499
25500         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
25501         AutoSize set to None, we do not need to relayout everything, we
25502         just need to invalidate the current region.
25503
25504         (Draw): Do not draw the entire ClientArea, just redraw the
25505         clip area being passed.
25506
25507         * MdiClient.cs: Make MdiClient constructor with the Form argument
25508         internal. 
25509
25510 2006-05-12  Jackson Harper  <jackson@ximian.com>
25511
25512         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
25513         parents background image,  but strangely not their own.
25514         - (DrawStatusBarPanel): Take into account horizontal alignment
25515         when drawing the strings and icons.
25516
25517 2006-05-12  Mike Kestner  <mkestner@novell.com>
25518
25519         * ListBox.cs: avoid invalidations for focus when the collection is
25520         empty. 
25521
25522 2006-05-12  Chris Toshok  <toshok@ximian.com>
25523
25524         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
25525         invalidate the entire thumb area.  Call InvalidateDirty which
25526         limits the redraw to the thumb itself and surrounding pixels.
25527
25528         * XplatUIX11.cs (ScrollWindow): optimize copying.
25529         
25530 2006-05-12  Chris Toshok  <toshok@ximian.com>
25531
25532         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
25533         Figure out the positioning/layout in a single pass instead of
25534         multiple recursive invocations.  Speeds up the initial display of
25535         the data grid.  Also, make many things private that were
25536         originally public but unused outside this class.
25537
25538 2006-05-11  Jackson Harper  <jackson@ximian.com>
25539
25540         * MdiClient.cs: Improved layout code.
25541
25542 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
25543
25544         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
25545           not SelectedObject.
25546
25547 2006-05-11  Chris Toshok  <toshok@ximian.com>
25548
25549         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
25550         union of that will always be {0,0,width,height}.
25551
25552 2006-05-11  Jackson Harper  <jackson@ximian.com>
25553
25554         * Form.cs: Match MS's DefaultSize for forms (they must have
25555         changed the size in sp2).
25556
25557 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
25558
25559         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
25560
25561 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
25562
25563         * TextControl.cs : Fixed bug #78109. This incorrect position
25564           comparison caused crash on automatic line split.
25565         * TextBoxBase.cs : reduce duplicate code.
25566
25567 2006-05-10  Jackson Harper  <jackson@ximian.com>
25568
25569         * MdiClient.cs: Active form is only sent to the back when using
25570         the Next form functionality, when a form is clicked the current
25571         active shouldn't be sent to the back.
25572         - Layout the mdi windows when the container is first made visible.
25573         * Form.cs: Give the MdiClient a ref to the containing form when we
25574         create it.
25575         
25576 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
25577
25578         * LinkLabel.cs : link_font could be uninitialized, so populate one
25579           before actual use. Fixed bug #78340.
25580
25581 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
25582
25583         * XplatUIX11.cs : clipboard format native value is IntPtr.
25584           Fixed bug #78283.
25585
25586 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
25587
25588         * Control.cs: 
25589           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
25590             which is passed up the parent chain by DefWndProc
25591           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
25592             to DefWndProc (#77956)
25593         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
25594
25595 2006-05-10  Jackson Harper  <jackson@ximian.com>
25596
25597         * MdiClient.cs: We need to remove the controls from the mdi
25598         collection, when we close the window.
25599         * MdiWindowManager.cs: Special handling of closing mdi windows.
25600         * InternalWindowManager.cs: Make the close method virtual so the
25601         mdi window manager can handle it specially.
25602
25603 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
25604
25605         * DataGrid.cs:
25606           - Recalculate grid when the data source has changed
25607           - Matches styles provided by user from all data sources types
25608         * DataGridTableStyle.cs: For columns that provided by the user set the
25609         with the preferred value is there was unassigned.
25610         * CurrencyManager.cs: throw OnItemChanged event
25611
25612 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
25613
25614         * PictureBox.cs: Don't animate until handle is created. Start animation
25615           when handle is created.
25616
25617 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
25618
25619         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
25620           current codebase.
25621         * XEventQueue.cs: We don't need to provide the extra info
25622
25623 2006-05-10  Jackson Harper  <jackson@ximian.com>
25624
25625         * MdiClient.cs: If the mdi clients parent form has a background
25626         image set, we draw that background image for the mdi area's
25627         background.
25628
25629 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
25630
25631         * TextBoxBase.cs: Set IBeam cursor (#78347)
25632
25633 2006-05-10  Mike Kestner  <mkestner@novell.com>
25634
25635         * ToolBar.cs: fix some text padding issues with ButtonSize
25636         calculation. Update the default size to match MS documentation.
25637         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
25638         button size. Fixes #78296.
25639
25640 2006-05-10  Mike Kestner  <mkestner@novell.com>
25641
25642         * ListBox.cs: use is_visible for scrollbar positioning in case the
25643         control isn't on screen yet.  Fix off by one with Right vs Width
25644         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
25645         
25646 2006-05-10  Jackson Harper  <jackson@ximian.com>
25647
25648         * X11Dnd.cs: Drop to a control with another control on top of it.
25649         * ToolBar.cs: Work on a copy of the buttons list, so that it can
25650         be modified in click handlers. TODO: Look for similar problems in
25651         other controls.
25652
25653 2006-05-09  Jackson Harper  <jackson@ximian.com>
25654
25655         * Form.cs: Window managers need the old window state when setting
25656         window state now.
25657         * InternalWindowManager.cs: Allow the base mdi window manager to
25658         handle more of the MDI only stuff (like maximize buttons).
25659         * MdiWindowManager.cs: Fix some snafus in changing the window
25660         state.  Add all the menu functionality, for both popup and
25661         maximized menus.
25662         * MdiClient.cs: When a new form is selected the currently
25663         activated form is sent to the back, this matches MS.
25664         - Implement a new method to activate the next mdi child window.
25665
25666 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
25667
25668         * Control.cs: 
25669           - Added new InternalCapture method to allow controls to prevent
25670             the capture behaviour on the click handlers
25671           - Switched to use InternalCapture
25672         * ComboBox.cs:
25673           - Using InternalCapture to prevent mouse captures from being released
25674             on mouse button release (Fixes #78100)
25675         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
25676           returns Form borders if a caption is present. (Fixes #78310)
25677
25678 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
25679
25680         * TreeNode.cs: Changed serialization .ctor to not require every field
25681           to be present. (#78265)
25682         * OwnerDrawPropertyBag.cs: Added serialization .ctor
25683
25684 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
25685
25686         * MimeIcon.cs: for is faster than foreach for strings.
25687
25688 2006-05-05  Mike Kestner  <mkestner@novell.com>
25689
25690         * CheckedListBox.cs: update check handling code to not use selected.
25691         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
25692         behavior for visual feedback, motion response, shift/ctrl handling,
25693         and properly deal with all 4 selection modes. Updates to bounds
25694         handling logic.  Add scroll wheel support. [Fixes #77842]
25695
25696 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
25697
25698         * ListView.cs:
25699           - Moved adding of Implicit controls into .ctor. That way, subsequent
25700             creation of the controls will not cause them to think they are 
25701             toplevel windows (fixes #78200 header problem)
25702           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
25703           - Switched visibility setting of header control to use internal field
25704             to avoid triggering handle creation
25705           - Now checking if handle is created before causing a refresh when items
25706             are added (This makes us now match handle creation time with MS)
25707         * Splitter.cs: Removed loading of private splitter cursor, switched to
25708           Cursors version now that that is loading the right ones
25709         * Cursors.cs: Load proper splitter cursors from resources
25710         * Cursor.cs: Added second method of loading resource cursors for the 
25711           VS.Net users amongst us
25712
25713 2006-05-05  Mike Kestner  <mkestner@novell.com>
25714
25715         * ListView.cs: give header_control a minimum size based on the
25716         ListView size.
25717
25718 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
25719
25720         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
25721           window seems to do that with metacity, so set that type. (#78120)
25722
25723 2006-05-05  Mike Kestner  <mkestner@novell.com>
25724
25725         * ListViewItem.cs: fix Details mode checkbox layout bug.
25726         * ThemeWin32Classic.cs: draw a ListView column header for unused space
25727         at the end of the header, if it exists. [Fixes for #78200]
25728
25729 2006-05-04  Jackson Harper  <jackson@ximian.com>
25730
25731         * MdiClient.cs: Add a helper property to get the container form.
25732         * MdiWindowManager.cs: We have to make sure to use the menu origin
25733         when drawing the icons and buttons, this fixes maximized window
25734         icons/buttons on win32.
25735         * InternalWindowManager.cs: Reset the restore captions when a
25736         window goes from Maximized to Minimized and vice versa. Move the
25737         DrawMaximizedButtons into the MdiWindowManager source, tool
25738         windows can't be maximized. NOTE: This could use a little
25739         refactoring if time ever permits.
25740         
25741 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
25742
25743         * TextBox.cs: Add MWFCategoryAttributes
25744         * TextBoxBase.cs: Add MWFCategoryAttributes
25745         * Form.cs: Add MWFCategoryAttributes
25746
25747 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
25748
25749         * Control.cs: Add MWFCategoryAttributes
25750         * ScrollableControl.cs: Add MWFCategoryAttributes
25751
25752 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
25753
25754         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
25755           Divider is true. Fix a little glitch in PropertyToolBar
25756           drawing code
25757
25758 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
25759
25760         * Control.cs:
25761           - Dispose: Call base.Dispose, this causes the disposed event
25762             to be fired (and probably other, more important stuff)
25763           - SetVisibleCore: Set is_visible to true after creating the
25764             window so that the window still gets created invisible (if
25765             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
25766             to generate a WM_ACTIVE message
25767         * Form.cs: Call Dispose when we want to destroy the window, instead of
25768           just destroying the handle (Dispose will do that for us)
25769         * XplatUIX11.cs:
25770           - RootWindow also needs a queue, so we can properly process the
25771             property change events from RootWindow (like Activate)
25772           - Generatic synthetic WM_ACTIVE message when the active window is
25773             being destroyed
25774
25775 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
25776
25777         * LinkLabel.cs: Trigger a recalc of our label dimensions when
25778           bounds are changed
25779
25780 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
25781
25782         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
25783           for determining width and height (image might not be assigned if
25784           we're drawing an imagelist)
25785
25786 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
25787
25788         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
25789         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
25790           height from system
25791         * Theme.cs: No longer returns hardcoded menu height, instead calls
25792           new driver method
25793         * Form.cs (OnLoad): Scaling happens before triggering Load events 
25794           on MS (# 78257)
25795
25796 2006-05-01  Mike Kestner  <mkestner@novell.com>
25797
25798         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
25799
25800 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
25801
25802         * TextBoxBase.cs: Removed Fixme
25803         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
25804
25805 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
25806
25807         * XplatUIX11.cs:
25808           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
25809             the rectangle relative to the parent, considering borders. We
25810             don't really want that.
25811           - ScrollWindow: Fixed warning to be more understandable
25812         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
25813           scrollbars and scroll only the visible area
25814         * RichTextBox.cs: Removed debug output
25815
25816 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
25817
25818         * NumericUpDown.cs (Text): Just use base
25819         * UpDownBase.cs: Ensure txtView is created before using it
25820
25821 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
25822
25823         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
25824           casting to IntPtr to avoid 64bit overflow errors
25825
25826 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
25827
25828         * Control.cs:
25829           - AllowDrop: Don't force handle creation.
25830           - CreateHandle: Added call to tell driver if we're allowed to drop
25831
25832 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
25833
25834         * FileDialog.cs: Remember the last directory not only for the
25835           current instance but also for new FileDialog instances.
25836
25837 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
25838         
25839         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
25840           broke sending async messages
25841
25842 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
25843
25844         * XplatUIX11.cs:
25845           - ScrollWindow: Fixed method. We finally generate expose events again
25846             for scrolled areas. This was causing 'garbage' when scrolling
25847             textbox and other controls that used ScrollWindow
25848           - Switched from using the regular queue for paint events to the MS 
25849             model of 'generating' paint events when the queue is empty.
25850             We use the new XQueueEvent.Paint subclass to store which windows
25851             need painting.
25852           - AddExpose now takes the x/y/width/height of the exposed area
25853             and inserts the window into the paint queue if not already there
25854           - InvalidateWholeWindow: Switched to use new AddExpose method
25855           - UpdateMessageQueue: Added which queue to monitor for paint events
25856           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
25857             the unlikely case nothing above handles it. We reset the expose
25858             pending states to get them off the queue.
25859           - GetMessage: Now pulls a paint event if no other events are in the
25860             queue
25861           - Invalidate: Switched to new AddExpose method
25862           - PeekMessage: Updated to understand pending paint events
25863           - UpdateWindow: Fixed logic bug. We were only updating if the window
25864             didn't need updating. Also switched to sending WM_PAINT directly,
25865             like MS does.
25866         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
25867           and random access Remove(). The random access is needed to handle
25868           UpdateWindow() where a WM_PAINT is sent directly without accessing
25869           the queue.
25870         * ScrollBar.cs: Added Update() calls to cause immediate updates to
25871           allow for better feedback when scrolling. Scrollbars are small and
25872           the immediate update should make it 'feel' more responsive without
25873           slowing things down. ScrollBar still needs it's invaliate logic
25874           updated to not always invalidate the whole bar on certain changes.
25875
25876 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25877
25878         * Control.cs:
25879         (BackColor): if the control does not support a transparent background,
25880         return the default backcolor when the parent backcolor is transparent.
25881
25882 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
25883
25884         * Application.cs: Updated to new StartLoop/GetMessage API
25885         * RichTextBox.cs: Provide some output on RTF parsing errors
25886         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
25887           new queue_id argument to GetMessage and PeekMessage to allow faster
25888           handling of per-thread queues in drivers.
25889         * Hwnd.cs: Added Queue tracking and property
25890         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
25891         * XEventQueue.cs: Added thread trackingA
25892         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
25893         * XplatUIX11.cs:
25894           - Implemented new per-thread queue
25895           - GetMessage: Fixed return/break behaviour on several cases. We were
25896             returning stale messages in some cases, instead of just processing
25897             the next message
25898
25899 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
25900
25901         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
25902
25903 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
25904
25905         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
25906           fixed off-by-one comparisons between Width/Height and Right/Bottom.
25907
25908 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
25909
25910         * PropertyGridView.cs: Fix drop down width.
25911
25912 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
25913
25914         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
25915           a mess in DrawToolBar, so I removed one of them.
25916
25917 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
25918
25919         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
25920           needed (clip). Otherwise we get artifacts.
25921
25922 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
25923
25924         * FixedSizeTextBox.cs: Added constructor to allow specifying which
25925           dimension is fixed
25926         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
25927           and switched FixedSizeTextBox to only be fixed vertical (#78116)
25928         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
25929           if it matches the scale base font (avoids unneeded scaling)
25930
25931 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
25932
25933         * X11DesktopColors.cs: One gtk_init_check should be enough
25934
25935 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
25936
25937         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
25938           match MS behaviour
25939
25940 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
25941
25942         * TextBoxBase.cs: 
25943           - Generate OnTextChanged for Backspace even if we're only deleting
25944             the current selection
25945           - When setting the Text property, only select all text if the
25946             control does not have focus when it is being set. Otherwise
25947             just place the cursor at the beginning of the control
25948
25949 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
25950
25951         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
25952           Added a little helper to draw PropertyGrid ToolBar with a different
25953           border and a different BackColor.
25954         * PropertyGrid.cs: Some background parts didn't get painted with the
25955           correct background color. Added a class that helps us to draw the
25956           correct border for PropertyGridView and a class that helps us to
25957           draw ToolBars with a different backcolor
25958         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
25959
25960 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
25961
25962         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
25963         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
25964
25965 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
25966
25967         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
25968           into the palette entries. Also, since we're working on a copy
25969           we needed to copy the palette back onto the bitmap.
25970         * Cursor.cs: Same fix as XplatUIWin32.cs.
25971
25972 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
25973
25974         * ImageListStreamer.cs: Need to read the var (or we're off)
25975
25976 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
25977
25978         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
25979           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
25980           TextBoxBase.cs: Unused var fixes
25981         * AxHost.cs: Small 2.0 fix
25982         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
25983           as it seems that is what at least Metacity expects. This will make
25984           icons show up on 64bit platforms. We still have some 64bit size
25985           issues, though, since the startup app window size still won't match.
25986
25987 2006-04-25  Mike Kestner  <mkestner@novell.com>
25988
25989         * *.cs: cleanup newly reported exception var unused warnings.
25990
25991 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
25992
25993         * ThemeWin32Classic.cs: Button image alignment now matches exactly
25994           ms
25995
25996 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
25997
25998         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
25999           image. The image position is always the same, no matter if the
26000           button is pressed or not.
26001
26002 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
26003
26004         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
26005           selection and set the correct filename for SaveFileDialog.
26006           Patch by Emery Conrad.
26007
26008 2006-04-24  Mike Kestner  <mkestner@novell.com>
26009
26010         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
26011         check for item.X outside the ClientRect instead of item.Y. Fixes
26012         #78151.
26013
26014 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26015
26016         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
26017         trust that value blindly and do some sanity check. Fixes bug #77814.
26018
26019 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26020
26021         * ImageListStreamer.cs: save the mask as a 1bpp image.
26022
26023 2006-04-21  Mike Kestner  <mkestner@novell.com>
26024
26025         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
26026         pass Checked and Indeterminate to the Theme Engine. Improve
26027         encapsulation with ListBox.
26028         * ListBox.cs: Keep a StringFormat instead of calculating it every item
26029         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
26030         nested types.  Move all CheckState functionality to CheckedListBox.
26031         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
26032         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
26033         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
26034         single base list. Fix scrollbar sizing and placement to mirror MS.
26035         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
26036         used.
26037         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
26038         for CheckedListBox by using new DrawItemState info.  Center the
26039         checkboxes on the items. Use new StringFormat property.
26040
26041 2006-04-18  Jackson Harper  <jackson@ximian.com>
26042
26043         * Form.cs: MdiChildren don't do default locations the same way as
26044         regular forms.  This prevents a crash when trying to position the
26045         mdi windows.
26046
26047 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
26048
26049         * PropertyGridTextBox.cs: Formatting, copyright
26050         * PropertiesTab.cs: Formatting
26051         * PropertyGrid.cs: Formatting
26052         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
26053           click toggling of values
26054           
26055 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
26056
26057         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
26058         * Control.cs (.ctor): verify_thread_handle is static, don't reset
26059           every time a control is created
26060         * Application.cs: Removed obsolete EnableRTLMirroring method
26061
26062 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
26063
26064         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
26065         SelectedIndex to -1. Fixes bug #78121.
26066
26067 2006-04-17  Jackson Harper  <jackson@ximian.com>
26068
26069         * Binding.cs: Handle null values for Current and BindingContext.
26070         This occurs when binding is a little delayed.
26071         * CurrencyManager.cs: return null for Current when there are no
26072         items in the list.
26073         - Hookup to the listchanged event on the DataView and update
26074         bindings when the list is changed.  This fixes late binding of
26075         controls.
26076
26077 2006-04-17  Jackson Harper  <jackson@ximian.com>
26078
26079         * X11Dnd.cs:
26080         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
26081         Ringenbach.
26082
26083 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
26084
26085         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
26086           place
26087         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
26088           with the correct ButtonState
26089
26090 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
26091
26092         * XplatUIX11.cs: Improved distinguishing between window types to
26093           tell the WM a type closer to what the app wants (Fixes #78107)
26094
26095 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
26096
26097         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
26098           GrabHandle
26099
26100 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
26101
26102         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
26103           drawing code to reflect the size grip changes
26104
26105 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26106
26107         * ImageListStreamer.cs: fix handling of the mask that follows the main
26108         bitmap when deserializing and serialize it properly. The generated mask
26109         should better be a 1bpp image, but I'll do that later.
26110
26111 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
26112
26113         * FileDialog.cs: Show something in the DirComboBox on *nix if the
26114           path doesn't fit into some of our Current.Places
26115
26116 2006-04-13  Jackson Harper  <jackson@ximian.com>
26117
26118         * ComboBox.cs: Use borders instead of drawing our own decorations,
26119         try to obey correct rules for heights.
26120         * Theme.cs:
26121         * ThemeNice.cs:
26122         * ThemeClearLooks.cs:
26123         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
26124         this is now handled by borders.
26125         - Remove unused DrawListBoxDecorationSize method.
26126         
26127 2006-04-13  Mike Kestner  <mkestner@novell.com>
26128
26129         * MenuAPI.cs: null guarding for the disbled click check fixes crash
26130         reported by Alex.
26131
26132 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
26133
26134         * ThemeWin32Classic.cs: 
26135           - Fixed CPDrawStringDisabled
26136           - Corrected drawing of disabled menu items
26137           - Fixed drawing of disabled radio buttons (bug #78095)
26138           - Draw check in a disabled CheckBox with color ControlDark 
26139
26140 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26141
26142         * Form.cs: Use the provided width when calculating the menu size;
26143           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
26144           and ClientSize.Width won't be updated yet
26145         * Application.cs: Use Visible instead of Show() to make form visible,
26146           this way we create the handle later and menusize is considered
26147
26148 2006-04-12  Mike Kestner  <mkestner@novell.com>
26149
26150         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
26151         reporting.
26152
26153 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26154
26155         * TextBox.cs: Implemented context menu
26156
26157 2006-04-12  Mike Kestner  <mkestner@novell.com>
26158
26159         * ListView.cs: implement box selection. fixes #77838.
26160         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
26161
26162 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
26163
26164         * XplatUIX11.cs: Added setting of window type when transient window
26165           is created (metacity would move it otherwise)
26166         * X11Structs.cs: Added WINDOW_TYPE atoms
26167         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
26168           background (the control is Opaque but still wants transparent
26169           backgrounds)
26170
26171 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26172
26173         * Control.cs: Added OnPaintBackgroundInternal to allow controls
26174           that set Opaque but don't mean it (like all ButtonBase-derived
26175           controls) to still draw their background
26176         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
26177           the background
26178
26179 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
26180
26181         * Control.cs (PaintControlBackground): Set the graphics object
26182           on our PaintEvent to null to prevent it from being disposed
26183           when the PaintEvent gets disposed
26184
26185 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
26186
26187         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
26188         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
26189
26190 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26191
26192         * Control.cs: 
26193           - Added transparency check to BackColor property. Transparent
26194             backgrounds are only allowed if the control styles permit it
26195           - Added recursive painting of parent control background and
26196             foreground if a control with a transparent backcolor is drawn
26197             (Thanks to Tim Ringenback for providing his 'hack' as a base
26198              for this patch) Fixes #77985 and #78026.
26199           - Added Opaque style check before calling OnPaintBackground, no
26200             need to draw the background if the control is opaque
26201           - Removed ControlAccessibleObject owner variable (inherited from
26202             base, no need to define again)
26203           - Added some documentation links explaining the drawing events
26204             and styles
26205
26206 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
26207
26208         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
26209           that the affected control is the located at the left border of our
26210           parent (Fixes #77936)
26211
26212 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26213
26214         * TextBoxBase.cs: When rendering disabled or readonly controls,
26215           draw the background with 'Control' instead of 'Window' color as
26216           long as the user hasn't specifically set a color
26217
26218 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
26219
26220         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
26221           since that won't be updated if the user types text (only if it's
26222           programatically set)
26223
26224 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26225
26226         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
26227           layout changes do to app-triggered resizes will have the proper
26228           display rectangle for layout
26229
26230 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
26231
26232         * ThemeWin32Classic.cs:
26233           - Make use of the SystemBrushes and SystemPens wherever possible
26234           - Corrected some highlight colors
26235           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
26236             drawing
26237         * Theme.cs: Added Empty field to CPColor struct
26238
26239 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26240
26241         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
26242           is displayed when calculating the display rectangle. Thanks to Mike
26243           for teaching me the err of my ways.
26244
26245 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
26246
26247         * ScrollableControl.cs:
26248           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
26249             (instead of 0,0) and we now return the real width/height instead of
26250             just the clientrectangle, adjusted for padding. The rectangle is
26251             now cached and created by the new CalculateDisplayRectangle method.
26252           - Created new CalculateDisplayRectange method, which basically does
26253             what get_DisplayRectangle() did originally, but now using the 
26254             right edge instead of DisplayRectangle to determine the size of
26255             our scrollbars
26256           - get_Canvas(): Fixed it to properly calculate canvas for 
26257             right/bottom controls which seem to be placed to the right/bottom
26258             of any controls that have a fixed location
26259           - Removed TODO that's taken care of
26260           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
26261             and SetDisplayRectLocation according to new MSDN2 docs
26262           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
26263             event when that is called, this is added for compatibility
26264           - ScrollControlIntoView(): Implemented.
26265           - Switched scrollbars to be implicit, they shouldn't be selectable
26266         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
26267           call it when the active control is set/changed
26268         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
26269         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
26270           implicit_control variable (used for native Win32 message generation)
26271         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
26272           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
26273         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
26274         * XplatUIStructs.cs: Added ScrollBarCommands enum
26275
26276 2006-04-10  Jackson Harper  <jackson@ximian.com>
26277
26278         * ButtonBase.cs:
26279         * CheckedListBox.cs:
26280         * ComboBox.cs:
26281         * DataGrid.cs:
26282         * DataGridView.cs:
26283         * Form.cs:
26284         * GroupBox.cs:
26285         * ListBox.cs:
26286         * PrintPreviewControl.cs:
26287         * ProgressBar.cs:
26288         * PropertyGrid.cs:
26289         * Splitter.cs:
26290         * StatusBar.cs:
26291         * TrackBar.cs:
26292         * UpDownBase.cs: Fixup base event overrides.
26293         
26294 2006-04-06  Mike Kestner  <mkestner@novell.com>
26295
26296         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
26297         all user-initiated value changes to min <= value <= max-thumbsz+1.
26298         (set_Value): check for vert/horiz when calculating new thumb position.
26299         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
26300         like MS does.
26301         (OnMouseMoveSB): refactor the thumb dragging code and refine
26302         invalidation logic to reduce flicker.
26303         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
26304         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
26305         (UpdateThumbPosition): small code readability cleanup
26306
26307 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
26308
26309         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
26310           different
26311
26312 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
26313
26314         * ThemeNice.cs: Use a better graphics effect when a button is pressed
26315
26316 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
26317
26318         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
26319         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
26320           This dramatically reduces the number of Pen.Dispose calls. 
26321           Where possible call ResPool methods only once instead of calling it
26322           over and over again (for example for the same color).
26323
26324 2006-04-06  Mike Kestner  <mkestner@novell.com>
26325
26326         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
26327         Also remove an unused private field on the collection. Fixes #77972.
26328
26329 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
26330
26331         * ThemeNice.cs: Added ToolBar drawing code
26332
26333 2006-04-06  Mike Kestner  <mkestner@novell.com>
26334
26335         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
26336         I'm assuming that means we need to look up the toplevel for the
26337         provided control. Fixes the crash trace in #77911 but exposes another
26338         crash in some strange reflection usage in NDocGui.
26339
26340 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
26341
26342         * ThemeNice.cs: Gave it a little silver touch and added Images
26343           method
26344         * FontDialog.cs: FontDialog is not resizable
26345         * FileDialg.cs: Added SizeGripStyle.Show
26346
26347 2006-04-05  Jackson Harper  <jackson@ximian.com>
26348
26349         * KeyboardLayouts.cs: Remove warning.
26350
26351 2006-04-05  Jackson Harper  <jackson@ximian.com>
26352
26353         * Control.cs: Enable OnPaintInternal so we can use it for drawing
26354         all of our controls instead of Paint +=.
26355         * ListBox.cs:
26356         * ListView.cs:
26357         * MenuAPI.cs:
26358         * MessageBox.cs:
26359         * NotifyIcon.cs:
26360         * ProgressBar.cs:
26361         * ScrollBar.cs:
26362         * Splitter.cs:
26363         * StatusBar.cs:
26364         * TabControl.cs:
26365         * TextBoxBase.cs:
26366         * ToolBar.cs:
26367         * TrackBar.cs:
26368         * UpDownBase.cs:
26369         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
26370         use OnPaintInternal. Remove Width/Height and Visible checks in
26371         paint handler, this is done at a higher level now.
26372         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
26373         * PaintEventArgs.cs: Add a handled flag so controls that don't
26374         want anymore painting after OnPaintInternal can make sure OnPaint
26375         isn't called.
26376
26377 2006-04-05  Mike Kestner  <mkestner@novell.com>
26378
26379         * Form.cs: fix the menu WndProc hacks to respect the native enabled
26380         state of the form, so that we don't process events when Modal dialogs
26381         are up. Fixes #77922.
26382
26383 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
26384
26385         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
26386           checking is done.
26387
26388 2006-04-05  Mike Kestner  <mkestner@novell.com>
26389
26390         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
26391
26392 2006-04-05  Mike Kestner  <mkestner@novell.com>
26393
26394         * ListView.cs (HeaderMouseMove): null guarding for the over column
26395         when setting up the drag_to_index.  Fixes #78015.
26396
26397 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
26398
26399         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
26400           in the taskbar. Transient windows seem to accomplish that.
26401
26402 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
26403
26404         * Form.cs:
26405           - Re-enabled CreateParams.X/Y code for FormStartPosition
26406           - Added code for manual placement when creating the Control
26407           - Incomplete patch to treat MDI forms differently when
26408             setting the ClientSizeCore. (Still need to figure out handling
26409             x/y coords there)
26410         * XplatUIX11.cs:
26411           - When we're explicitly setting the X/Y position of a non-Child
26412             window, let the WM know. Metacity really wants this.
26413
26414 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26415
26416         * ThemeNice.cs: Added CPDrawButton
26417
26418 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26419
26420         * ThemeNice.cs: Changed the color for focused buttons and activated
26421           the arrows for small scroll buttons.
26422
26423 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26424
26425         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
26426           anymore. Changed some method modifiers to protected (virtual)
26427         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
26428           changes
26429         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
26430           Updated drawing of menus, buttons and progressbars; added
26431           CPDrawBorder3D 
26432
26433 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26434
26435         * ImageListStreamer.cs: implemented serialization/deserialization
26436         of the images.
26437
26438 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
26439
26440         * ThemeWin32Classic.cs:
26441           - Removed all the DrawFrameControl stuff; CPDrawButton,
26442             CPDrawCheckBox and CPDrawRadioButton are now handled directly
26443             inside the methods
26444           - Updated and corrected the drawing code of CPDrawButton,
26445             CPDrawCheckBox and CPDrawRadioButton to better match ms
26446           - Updated theme checkbox and radiobutton code to use the CP*
26447             methods
26448
26449 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
26450
26451         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
26452           bug is fixed
26453
26454 2006-03-31  Jackson Harper  <jackson@ximian.com>
26455
26456         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
26457         sometimes.
26458         * UpDownBase.cs: Don't CreateGraphics manually, use a
26459         Refresh. Ideally we would invalidate the correct areas here.
26460
26461 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
26462
26463         * XplatUIX11.cs: 
26464           - We now track the mapping state of windows. If a window (or 
26465             one of it's parents) is not mapped we no longer permit
26466             WM_PAINT messages to be generated since we'd otherwise get 
26467             lots of BadMatch X errors. Jackson did all the work figuring
26468             out the problem.
26469           - Destroying the caret if the window it's contained in is 
26470             destroyed. Can't use regular DestroyCaret method since it
26471             might fall into a drawing function (trying to remove the
26472             caret) and with that generate new BadMatch errors. Again,
26473             Jackson tracked this down.
26474           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
26475             make sure we send the messages to all windows. (The old code
26476             would send the WM_DESTROY to the window, and then all child
26477             windows would be 'gone' because the WM_DESTROY handle lookup
26478             would no longer find the destroyed window)
26479         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
26480         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
26481
26482 2006-03-31  Jackson Harper  <jackson@ximian.com>
26483
26484         * ScrollableControl.cs: Dont recalc if we are not visible.
26485
26486 2006-03-31  Mike Kestner  <mkestner@novell.com>
26487
26488         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
26489         the visibility branch.
26490
26491 2006-03-31  Jackson Harper  <jackson@ximian.com>
26492
26493         * ScrollBar.cs: Cap values when incrementing/decrementing.
26494
26495 2006-03-31  Mike Kestner  <mkestner@novell.com>
26496
26497         * MenuAPI.cs: setup menu.tracker for popup/context menus.
26498         * ToolTip.cs: guard against timer expirations with no active control.
26499         Not sure why it happened.
26500
26501 2006-03-31  Mike Kestner  <mkestner@novell.com>
26502
26503         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
26504         text.
26505         * ToolTip.cs: Position the tooltip based on where the cursor is at
26506         popup time, not at MouseEnter time.  Add a Down state so that we don't
26507         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
26508         positioning offset. Lookup DisplaySize at positioning time, since it
26509         can theoretically change during invocation.
26510         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
26511         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
26512
26513 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26514
26515         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
26516           Fixes behaviour when the Text property of the box is String.Empty
26517
26518 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
26519
26520         * XplatUIX11.cs: Only send mouseleave for our client windows, not
26521           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
26522           a window)
26523
26524 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26525
26526         * FileDialog.cs: Visual enhancement for the popup buttons in 
26527           PopupButtonPanel
26528
26529 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26530
26531         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
26532           code
26533
26534 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
26535
26536         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
26537           highlighted menu items to match ms
26538
26539 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
26540
26541         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
26542
26543 2006-03-30  Mike Kestner  <mkestner@novell.com>
26544
26545         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
26546         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
26547         go active to account for HotLight to Selected transition.
26548         * MenuItem.cs: add internal Selected prop. Fill out the Status
26549         property by calculating it from item info. Add HotLight,
26550         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
26551
26552 2006-03-30  Mike Kestner  <mkestner@novell.com>
26553
26554         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
26555
26556 2006-03-29  Jackson Harper  <jackson@ximian.com>
26557
26558         * Form.cs: Implement TODO.
26559
26560 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
26561
26562         * PrintPreviewDialog.cs: Implemented missing methods and events; still
26563           missing proper dialog setup in the constructor
26564
26565 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
26566
26567         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
26568         * Control.cs:
26569           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
26570           - Fixed ResetBindings and removed TODO
26571           - Added check for cross-thread calls to get_Handle()
26572           - Added Marshaller attribute for set_Font to satisfy class status
26573         * FontDialog.cs: Removed TODOs that seemed implemented
26574         * UpDownBase.cs: Removed unneeded TODO and Fixme
26575         * MessageBox.cs: Implemented support for Default button and removed TODO
26576         * FileDialog.cs: Removed obsolete TODO
26577         * DomainUpDown.cs: Removed obsolete TODO
26578         * ButtonBase.cs: Removed obsolete TODO
26579         * XplatUIWin32.cs: Removed obsolete TODO
26580         * Form.cs:
26581           - Removed obsolete TODO
26582           - Calling CheckAcceptButton when the acceptbutton is changed to allow
26583             internal status updates
26584           - Making sure the active control is selected when the control is created
26585         * CurrencyManager.cs: Removed obsolete TODO
26586
26587 2006-03-29  Mike Kestner  <mkestner@novell.com>
26588
26589         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
26590         of PrintPreviewDialog and RichTextBox.
26591
26592 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
26593
26594         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
26595           DarkDark, Light and LightLight colors for a specific color
26596         * ThemeWin32Classic.cs:
26597           - Use Button drawing code to draw RadioButtons and CheckBoxes with
26598             Appearance = Button 
26599           - Make use of the new ResPool helper CPColor
26600           - Draw ProgressBar and StatusBar with correct 3D borders
26601
26602 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
26603
26604         * ColorDialog.cs: Return selected color. Fixes bug #77940.
26605
26606 2006-03-28  Mike Kestner  <mkestner@novell.com>
26607
26608         * ListView.cs: fix Icon layout to plan for scrollbar widths when
26609         calculating col/row counts.
26610
26611 2006-03-28  Mike Kestner  <mkestner@novell.com>
26612
26613         * ColumnHeader.cs:
26614         * ListView.cs:
26615         * ListViewItem.cs:
26616         * Menu.cs: 
26617         switch to explicit interface method implementation for some methods
26618         corcompare identifies as inconsistent with MS.
26619
26620 2006-03-28  Mike Kestner  <mkestner@novell.com>
26621
26622         * MainMenu.cs: 
26623         * Menu.cs:
26624         add a few missing methods from the class status output.
26625
26626 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
26627
26628         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
26629           correct.
26630
26631 2006-03-28  Mike Kestner  <mkestner@novell.com>
26632
26633         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
26634
26635 2006-03-27  Mike Kestner  <mkestner@novell.com>
26636
26637         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
26638         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
26639
26640 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
26641
26642         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
26643
26644 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26645
26646         * ThemeWin32Classic.cs:
26647           - GroupBox: Inserted a little gap between the text and the lines
26648             on the right side
26649           - Made the code in CPDrawBorder3D more readable
26650           - Corrected the drawing location of the up and down arrows in 
26651             CPDrawScrollButton
26652
26653 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26654
26655         * ControlPaint.cs: Corrected line widths in DrawBorder for
26656           ButtonBorderStyle Inset and Outset
26657
26658 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26659
26660         * ThemeWin32Classic.cs:
26661           - Rewrote the totally broken CPDrawBorder3D method. That was
26662             one of the main problems for the terrific ThemeWin32Classic
26663             look
26664           - Updated and corrected Button drawing
26665           - Correct the dimensions of the SizeGrip to match ms ones
26666           - Removed a small drawing glitch in DrawComboBoxEditDecorations
26667         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
26668           Border3DStyle.Sunken to match ms.
26669
26670 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26671
26672         * ThemeWin32Classic.cs: First small part of the "de-uglify
26673           ThemeWin32Classic" effort, SizeGrip
26674
26675 2006-03-24  Jackson Harper  <jackson@ximian.com>
26676
26677         * XplatUIX11.cs: Give a max idle time of one second, this matches
26678         MS and forces an Idle event every second when there are no other
26679         events in the queue.
26680
26681 2006-03-24  Mike Kestner  <mkestner@novell.com>
26682
26683         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
26684         * ListView.Item.cs: fix layout issues with null image lists and images
26685         smaller than checkbox size.
26686         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
26687         mode like MS does.  It's weird, but consistent.  ;-)
26688         Fixes #77890.
26689
26690 2006-03-24  Mike Kestner  <mkestner@novell.com>
26691
26692         * ListView.cs: Scroll wheel support for the item control.  Fixes
26693         #77839.
26694
26695 2006-03-23  Jackson Harper  <jackson@ximian.com>
26696
26697         * ScrollableControl.cs: Special case negative sized areas, not
26698         zero.
26699         * MonthCalendar.cs: Save the rect of the clicked date so we can
26700         use it for invalidation.
26701         - Try to cut down on the number of invalidates
26702         - Invalidate the rect the mouse is over and was over when moving
26703         the mouse, so we get the focus box following the cursor.
26704
26705 2006-03-23  Mike Kestner  <mkestner@novell.com>
26706
26707         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
26708         focus rectangle drawing. Fixes #77835.
26709
26710 2006-03-23  Mike Kestner  <mkestner@novell.com>
26711
26712         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
26713         the if and else if and reverting back to the original == check on the
26714         None conditional.
26715
26716 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
26717
26718         * FontDialog.cs: Update the example panel if the selected index of
26719           the fontListBox changes.
26720
26721 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
26722
26723         * FileDialog.cs: Make FileDialog remember which directory it was in
26724           last in the same execution.
26725
26726 2006-03-22  Mike Kestner  <mkestner@novell.com>
26727
26728         * FileDialog.cs: make the DropDownMenu on the toolbar display
26729         RadioChecks since they are mutually exclusive and that's what MS does.
26730
26731 2006-03-22  Mike Kestner  <mkestner@novell.com>
26732
26733         * Theme.cs: add Color param to CPDrawMenuGlyph.
26734         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
26735         checks and radio marks and arrows are visible on highlighted items.
26736         * ControlPaint.cs: update to use new Theme signature.
26737
26738 2006-03-22  Mike Kestner  <mkestner@novell.com>
26739
26740         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
26741         is active. Fixes #77870.
26742
26743 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
26744
26745         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
26746           to be focused/selected after startup
26747
26748 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
26749
26750         * ColorDialog.cs: 
26751           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
26752             CustomColors and ShowHelp properties
26753           - Some internal rewrites to get better results when using the
26754             ColorMatrix
26755
26756 2006-03-22  Mike Kestner  <mkestner@novell.com>
26757
26758         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
26759         HoverSelection.  Fixes #77836.
26760
26761 2006-03-22  Mike Kestner  <mkestner@novell.com>
26762
26763         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
26764         ToggleButtons.  (De)Sensitize the Back button around a stack count of
26765         1, not 0.  Update ButtonSize based on a pixel count of the win32
26766         control.  Adjust the toolbar size/location for new button size.
26767
26768 2006-03-22  Jackson Harper  <jackson@ximian.com>
26769
26770         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
26771         true.
26772         * ScrollBar.cs: When doing increments and decrements we need to
26773         set the Value property so that ValueChanged gets raised. A
26774         possible optimization here would be to make an internal SetValue
26775         that doesn't invalidate immediately.
26776         * ToolTip.cs: Tooltips get added to their container (when
26777         supplied) so they get disposed when the container is disposed.
26778         - Don't create tooltips for String.Empty. This prevents all these
26779         little 2-3 pixel windows from showing up when running nunit-gui
26780         and driving me mad.
26781         * Form.cs: Don't set topmost when setting the owner if the handles
26782         haven't been created yet.  The topmost set will happen when the
26783         handles are created.
26784
26785 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
26786
26787         * XplatUIX11.cs:
26788           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
26789           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
26790             visible (to allow them to recalculate their sizes)
26791
26792 2006-03-21  Mike Kestner  <mkestner@novell.com>
26793
26794         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
26795         methods. Removed a ton of redundant code.  Still not really happy with
26796         the border rendering, but I think that's mainly because of the
26797         ControlDarkDark being black instead of a dark grey. Depending on how 
26798         close we want to be, we might want to revisit those color choices.
26799         Among the new features added during the refactor were DropDownArrow
26800         pressed rendering, Disabled image rendering.  Proper flat appearance
26801         boundary rendering.  Removed the Divider and Wrapping dividers since I
26802         can't figure out any combination of themes and conditions to make the
26803         MS control draw a horizontal line on a toolbar despite what the
26804         Divider property docs indicate.
26805         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
26806         conditions and incorrect layout.  Updated to coding standard.
26807         * ToolBarButton.cs: refactored layout and positioning code from
26808         ToolBar to here.  Invalidate wherever possible instead of forcing
26809         redraws of the whole toolbar. 
26810         (Known remaining issues: explicit ButtonSize smaller than provided
26811         images.)
26812
26813 2006-03-21  Mike Kestner  <mkestner@novell.com>
26814
26815         * ContextMenu.cs (Show): use the position parameter instead of just
26816         showing at the MousePosition.
26817
26818 2006-03-21  Jackson Harper  <jackson@ximian.com>
26819
26820         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
26821         control handle this.
26822         * TreeNodeCollection.cs: If we are clearing the root node we need
26823         to reset top_node so calcs can still happen.
26824         * ThemeWin32Classic.cs: This is a Flags so we need to check
26825         properly.
26826         
26827 2006-03-21  Jackson Harper  <jackson@ximian.com>
26828
26829         * DataGrid.cs: Create columns when the binding context has been
26830         changed.
26831         * X11Structs.cs: Keysyms are uints.
26832         - Add size to fix build.
26833
26834 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
26835
26836         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
26837           XplatUIOSX.cs: 
26838           - Added ResetMouseHover method to allow controls to retrigger
26839             hovering if they need it more than once
26840           - Implemented MouseHoverTime and MouseHoverSize properties
26841         * Timer.cs: Start() must reset the interval
26842         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
26843           properties
26844
26845 2006-03-21  Jackson Harper  <jackson@ximian.com>
26846
26847         * X11Keyboard.cs: improved layout detection. Move the nonchar
26848         tables into this file.
26849         * KeyboardLayouts.cs: Move the tables into resource files.
26850
26851 2006-03-21  Mike Kestner  <mkestner@novell.com>
26852
26853         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
26854
26855 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
26856
26857         * Mime.cs: Various speed optimizations. Looking up mime types
26858           is now 2 times faster than before
26859
26860 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
26861
26862         * CreateParams.cs: Added internal menu field
26863         * Control.cs: 
26864           - Switched call order for UpdateBounds; now we always call
26865             the one that also takes ClientSize, and we're calculating the 
26866             client size via driver method in the others. The previous
26867             method of tracking client size by difference wasn't working
26868             for forms where even the starting client size wouldn't match
26869             the overall form size (due to borders) (Part of fix for #77729)
26870           - CreateParams(): Do not use parent.Handle unless the handle is
26871             already created. Causes havoc with Nexxia and throws off our
26872             creation of controls
26873         * XplatUIX11.cs:
26874           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
26875           - Switched handling of ConfigureNotify over to new PerformNCCalc 
26876             method (consolidates code)
26877           - Changed RequestNCRecalc to use new PerformNCCalc method
26878           - Added calls to RequestNCRecalc when menus and borders are changed
26879             to allow app to set NC size. (Part of fix for #77729) This matches
26880             when MS send a WM_NCRECALC on Win32 windows.
26881           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
26882             (Part of fix for #77729). This matches what MS does, they also
26883             send that message when the form is made visible.
26884           - XException.GetMessage: Improved usability of X errors by including
26885             a translation of the window into Hwnd and Control class
26886           - Improved debug info for window creation, reparenting and destruction
26887           - Created helper method WindowIsMapped() [Currently not used]
26888         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
26889         * Form.cs:
26890           - CreateParams: Now setting our menu on the new internal menu field
26891           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
26892             avoid calculating the same property twice
26893         * Hwnd.cs:
26894           - Improved usability of ToString() for debugging purposes
26895           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
26896             determine the height of the menu, instead of just the font. This
26897             required to also create a graphics context and to keep a bmp 
26898             around (for performance reasons)
26899
26900 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
26901
26902         * MenuAPI.cs: Added OnMouseUp method
26903         * Form.cs:
26904           - Now remembering the requested client size, avoids size errors
26905           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
26906             instead of base if the menu is active. This is required due to
26907             control now capturing and releasing on down/up and it would
26908             prematurely release our menu capture
26909
26910 2006-03-17  Jackson Harper  <jackson@ximian.com>
26911
26912         * KeyboardLayouts.cs: Add the czech layouts.
26913
26914 2006-03-16  Jackson Harper  <jackson@ximian.com>
26915
26916         * Control.cs: Use the viewport space when sizing not the controls
26917         client size, so things like ScrollableControl that effect the
26918         viewport size (when scrollbars are added) are computed correctly.
26919         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
26920         of ManagerEntrys.
26921         - Handle creating BindingManagers for null data sources.
26922         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
26923         source, otherwise when rows are added they are added to the 'fake'
26924         datasource and we will crash when trying to set the position in
26925         those rows.
26926         - Use Implicit scrollbars on the datagrid so they arent
26927         selectable.
26928         
26929 2006-03-16  Jackson Harper  <jackson@ximian.com>
26930
26931         * Binding.cs:
26932         * InternalWindowManager.cs:
26933         * MdiWindowManager.cs:
26934         * X11Keyboard.cs: I really want Mike to love me again (fix
26935         compiler warnings).
26936
26937 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
26938
26939         * DataGrid.cs:
26940           - OnMouseDown: Switch to editing mode when clicking on the cell
26941                          even if we're clicking on the cell that's currently 
26942                          selected
26943           - ProcessGridKey: Left/Right now wrap like MS.Net does
26944           - ProcessGridKey: Tab now knows to add a new row when tab is
26945                             pressed in the cell of the last column of the 
26946                             last row
26947           - ProcessGridKey: Enter now adds another row  if pressed in the last
26948                             row and selectes the new row, same column cell
26949           - ProcessGridKey: Home/End navigate columns, not rows, like 
26950                             originally implemented
26951           - Broke ProcessKeyPreview code out into an extra Internal method
26952             so it can be called from the edit code
26953         * DataGridTextBox.cs (ProcessKeyMessage):
26954           - Switched to accept Tab keypresses
26955           - Added F2 handling to allow jumping to the end of the edited cell
26956           - Added logic to allow moving caret left/right inside edited cell
26957             and making the edited cell jump when the caret hits cell borders
26958           - Tab and Enter are now passed to the datagrid after being handled
26959         * TextBoxBase.cs:
26960           - Removed capture code now that Control handles it
26961           - set_SelectionStart now ensures caret is visible
26962
26963 2006-03-16  Jackson Harper  <jackson@ximian.com>
26964
26965         * TrackBar.cs: Debackwards the increment/decrement for handling
26966         mouse clicks on the bar with vertical trackbars.
26967         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
26968         bottom to match MS.
26969
26970 2006-03-16  Mike Kestner  <mkestner@novell.com>
26971
26972         * ListView.cs: make shift/ctrl keyboard and mouse selection 
26973         consistent with the MS control. Fix a bug in
26974         SelectedListViewItemCollection.Clear that was pissing me off for the
26975         better part of a day because the collection was being altered
26976         underneath us as we walked the list.
26977
26978 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
26979
26980         * Control.cs: Not sure how we could miss this so long, but it seems
26981           that MS.Net has Capture set all the way from before calling 
26982           OnMouseDown through sending the mouse events until after
26983           OnMouseUp. This will fix DataGrid's selection being set to end
26984           at the location of the MouseUp.
26985
26986 2006-03-15  Jackson Harper  <jackson@ximian.com>
26987
26988         * BindingContext.cs: Check the binding after its added so that it
26989           can initialize the binding managers and hookup to events.
26990         * Binding.cs: Data members seem to sometimes include rows/cols in
26991           the format Row.Column we now take this into account.
26992           - Hookup to the position changed event so we can update the
26993           control when the position has changed in the data set.
26994         * CurrencyManager.cs: Take into account the row/col naming
26995           convention when creating dataset tables.
26996         * BindingContext.cs: Using a newer better way of storing
26997           datasource/datamember pairs.  Hopefully this better matches MS for
26998           looking up binding managers.
26999
27000
27001 2006-03-15  Jackson Harper  <jackson@ximian.com>
27002
27003         * BindingContext.cs: The currency manager needs the data member
27004         name, if the member is a data set we use the name to find the
27005         correct table.
27006         * CurrencyManager.cs: When creating the list prefer an IList over
27007         an IListSource.
27008         - Attempt to create a DataTable from a DataSet (TODO: might need
27009         some better error checking here, although MS doesn't seem to have much)
27010         - If we have a DataTable create a view and use it as our list.
27011
27012 2006-03-15  Mike Kestner  <mkestner@novell.com>
27013
27014         * ListView.cs: keep a matrix of the icon mode layout to facilitate
27015         keyboard navigation. Support Up/Down/Left/Right selection correctly
27016         for all 4 View modes.
27017         * ListViewItem.cs: add internal row/col fields for icon layouts.
27018
27019 2006-03-15  Jackson Harper  <jackson@ximian.com>
27020
27021         * TabControl.cs: Redraw the tabs when we resize so their newly
27022         calculated sizes are drawn on screen.
27023         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
27024         composite characters.
27025         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
27026         - filter events so that composite characters can be created
27027         patches by peter
27028         * X11Structs.cs: Add XIMProperties enum.
27029
27030 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
27031
27032         * Control.cs (BringToFront, SendToBack): Don't use window or handle
27033           unless it's created
27034
27035 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
27036
27037         * Control.cs (PerformLayout): We don't need to consider visiblity
27038           for anchoring, only for docking. This fixes 'whacky' alignment
27039           in listbox and other controls that use implicit scrollbars after
27040           the previous PerformLayout patch
27041         * ListBox.cs: Switched to use implicit scrollbars
27042           
27043 2006-03-14  Mike Kestner  <mkestner@novell.com>
27044
27045         * ToolBar.cs: 
27046         * VScrollBar.cs:
27047         - chain up the "new event" overrides to base and use
27048         OnEvent to raise them.  Part of fix for bug #76509.
27049
27050 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
27051
27052         * FileDialog.cs: Do not select an item in the parent directory
27053           on backspace
27054
27055 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
27056
27057         * Control.cs (PerformLayout): It would seem that we considered
27058           invisible windows for our layout. Not quite the right thing
27059           to do. Now we don't any longer, thereby fixing bug #76889.
27060
27061 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
27062
27063         * Control.cs (CanFocus): I goofed. A control can have focus 
27064           even though it's not selectable. Made it match MS docs.
27065
27066 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27067
27068         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
27069           center by default (fixes #76895)
27070         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
27071           all uses of Border3DSides.All with the explicit ORd together
27072           Left|Right|Top|Bottom because I assume that nobody was aware 
27073           that All also implies a center fill. Most places I checked had
27074           a fill right above.
27075         * ProgressBarStyle.cs: Added
27076
27077 2006-03-13  Mike Kestner  <mkestner@novell.com>
27078
27079         * ListView.cs: fix breakage in drag shadow header positioning 
27080         from Peter's csc compilation fix.
27081
27082 2006-03-13  Mike Kestner  <mkestner@novell.com>
27083
27084         * ListView.cs: fix NRE produced by backspacing twice in a focused
27085         FileDialog.
27086
27087 2006-03-13  Mike Kestner  <mkestner@novell.com>
27088
27089         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
27090
27091 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27092
27093         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
27094           be changed
27095         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
27096           the allowed size before making programmatic size changes
27097
27098 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
27099
27100         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
27101           set, metacity is broken and will still use the emty sizes in 
27102           the struct. (Fix for #77089)
27103
27104 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27105
27106         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
27107           WindowExStyles and marked both enums as Flags
27108         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
27109           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
27110           to match WindowStyles split
27111         * XplatUIX11.cs:
27112           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
27113           - Updated to match WindowStyles split
27114         * XplatUIWin32.cs:
27115           - Fixed FosterParent creation, was using ExStyle on the Style field
27116             (This should help with Popup focus issues)
27117           - Updated to match WindowStyles split
27118
27119 2006-03-13  Jackson Harper  <jackson@ximian.com>
27120
27121         * MdiWindowManager.cs: Use the system menu height. Fixes some
27122         strange sizing issues.
27123
27124 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
27125
27126         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
27127         * TextBoxBase.cs:
27128           - Scroll to caret after inserting text (#77672)
27129           - Make scroll range one pixel higher, fixes off-by-one error (and
27130             makes underlines visible on the last line)
27131
27132 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
27133
27134         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
27135           the keyboard state from being stuck with keys in 'pressed' state when
27136           focus is switched away via keyboard
27137         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
27138           reset the keyboard if no X11 KeyUp events are expected to come
27139         * X11Structs.cs: Switched type of Visible to bool to match driver
27140
27141 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
27142
27143         * TextControl.cs:
27144           - Switched caret to be just 1 pixel wide, matches MS and looks less
27145             clunky
27146           - Moved caret display 1 pixel down from the top of the control
27147             to improve view
27148           - InsertCharAtCharet: Update the selection start if moving the caret
27149             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
27150           - No longer always creating the caret when the caret methods are
27151             called. Only the actual ShowCaret/HideCaret will do that now
27152           - Only setting caret visible if the owner control has focus
27153           - UpdateView: Added invalidation-shortcut logic for center and right 
27154             aligned text. Previously we'd update all according to the left
27155             logic which caused drawing errors. Also fixed height of invalidated
27156             areas, now properly invalidating the whole area (was off-by-one)
27157           - owner_HandleCreated: Always generate the document when the
27158             handle is created; this ensures that 
27159         * TextBoxBase.cs:
27160           - Fixed situation where caret would disappear under the right
27161             window border, also improved scrolling behaviour on left-
27162             aligned textboxes
27163           - Fixed right-aligned textboxes to have a border to the
27164             right instead of the caret being under the right border
27165         * XplatUIX11.cs:
27166           - Switched from 'nested' to simple visible/not visible tracking 
27167             for caret (part of fix for #77671)
27168           - No longer passing through translated FocusIn/FocusOut messages
27169             since we were notifying too often and the wrong windows. Instead
27170             we just notify our focussed window of receiving or loosing focus
27171         * XplatUIWin32.cs: Switched from 'nested' show/hide 
27172           counting for caret to simple visible yes/no behaviour (part of 
27173           fix for #77671)
27174
27175 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
27176
27177         * Mime.cs: Remove debug code...
27178
27179 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
27180
27181         * MimeGenerated.cs: Removed
27182         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
27183           and subclasses) from /usr/(local/)share/mime and
27184           $HOME/.local/share/mime.
27185
27186 2006-03-10  Jackson Harper  <jackson@ximian.com>
27187
27188         * MdiWindowManager.cs: Recalc the NC area when a window is
27189         maximized/restored so that the menu area is drawn on forms that
27190         don't have a menu.
27191
27192 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27193
27194         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27195           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
27196           us to force a WM_NCCALCRESIZE message being sent. This is needed
27197           for MDI maximizing.
27198
27199 2006-03-10  Jackson Harper  <jackson@ximian.com>
27200
27201         * Form.cs: We need to use the ActiveMenu when calculating menu
27202         height.
27203         - Fix nullref when the window manager hasn't been created yet.
27204         * Control.cs: Fix nullref when we try to bring a control to the
27205         front that has no parent.
27206         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
27207         height.
27208         - Add a dummy item to the maximized menu so it always has the
27209         correct height. Otherwise when there are no menus we don't get our
27210         icon and buttons.
27211         
27212
27213 2006-03-10  Jackson Harper  <jackson@ximian.com>
27214
27215         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
27216         stuff.
27217         * Form.cs: Make the window_state internal so the window managers
27218         can track it.
27219         - When an MDI child is maximized let its window manager create the
27220         main menu (so it can add its icon).
27221         - Notify the window managers of state changes
27222         - Let the window manager paint its buttons and handle button
27223         clicks on the menu when it is maximized.
27224         * InternalWindowManager.cs: Move the prev_bounds into the mdi
27225         window manager, since tool windows don't use it, only mdi windows.
27226         - Tell the main form that we don't want it to handle NCPAINT
27227         itself to avoid extra painting.
27228         - Handle clicks on a maximized windows menu.
27229         - Handle window state changes
27230         - Handle minimize/maximize clicks correctly by setting the window state.
27231         * MdiWindowManager.cs: Add an icon menu that (the menu you get
27232         when clicking on the forms icon).
27233         - New method to create a forms maximized menu. This is its normal
27234         menu + an icon.
27235         - Handle window state changes.
27236         - Handle sizing of maximized windows.  Maximized windows are just
27237         drawn bigger then the parent visible area. All controls are still
27238         there, they are just outside the visible area (this matches windows).
27239         * MdiClient.cs: No scrollbars when a child window is maximized.
27240         - Let the children windows figure out how big they should be when
27241         sizing maximized windows.
27242         - Implement a version of ArrangeIconicWindows somewhat similar to
27243         Windows version.  There are some little differences, but I don't
27244         think any app will rely on the layout of minimized mdi windows.
27245
27246 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27247
27248         * Padding.cs: Several fixes to allow compiling with csc 2.0
27249
27250 2006-03-09  Jackson Harper  <jackson@ximian.com>
27251
27252         * Menu.cs:
27253         * MenuItem.cs: Cheap hack so we can add items to the list without
27254         the events being raised.  This allows adding mdi items during
27255         drawing. TODO: Should probably find a better time to add the items.
27256
27257 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27258
27259         * ThemeWin32Classic.cs:
27260           - CheckBox_DrawText: Added logic to not wrap if not enough space
27261             is available (Fix for bug #77727)
27262           - RadioButton_DrawText: Added logic not to wrap if not enough
27263             space is available (Fix for bug #77727). Also removed some
27264             duplicate code, DrawString always drawing the regular text
27265             before hitting the if statement.
27266
27267 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
27268
27269         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
27270
27271 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27272
27273         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
27274         * ContainerControl.cs: Partial implementation of some 2.0 scaling
27275           methods. Moved the new 2.0 properties into alphabetical order with
27276           other properties and added MonoTODO tags
27277
27278 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27279
27280         * AutoScaleMode.cs: Added. Fix build.
27281
27282 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27283
27284         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
27285           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
27286           and was requiring premature handle creation for calls from above
27287         * Form.cs, Control.cs: Removed handle arguments from calls to
27288           CalculateClientRect()
27289
27290 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27291
27292         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
27293           drag_column.column_rect is MarshalByRef and can't be used that way
27294
27295 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27296
27297         * AxHost.cs: Added deserialization constructor for 
27298           AxHost+State (fixes 77743)
27299
27300 2006-03-09  Mike Kestner  <mkestner@novell.com>
27301
27302         * ListView.cs: 
27303         - Added column drag reordering for details view.
27304         - fixed behavior when mouse is dragged off column and
27305         AllowColumnReorder is false.
27306         * ColumnHeader.cs: clone the format too in Clone.
27307         * Theme.cs: add DrawListViewHeaderDragDetails method.
27308         * ThemeWin32Classic.cs:
27309         - impl new method for drawing drag column shadows and targets.
27310         - support column offset for details mode in DrawListViewItem.
27311
27312 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27313
27314         * TextControl.cs: Reset the char_count when the document is cleared
27315           (Fixes bug reported on mono-winforms mailing list)
27316
27317 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27318
27319         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
27320           of calling base we simply process the key ourselves, since both
27321           DefWindowProc and the handled method would set m.Result. 
27322           (Fixes #77732)
27323
27324 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27325
27326         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
27327           method also moves the window; instead implemented a copy of
27328           Control.ScaleCore (Part of fix for #77456)
27329         * TextBoxBase.cs: 
27330           - Created new CreateGraphicsInternal method to allow providing
27331             a graphics context when no handle is created without triggering
27332             handle creation. (Part of fix for #77456)
27333           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27334         * TextControl.cs: 
27335           - Switched Constructor to require TextBoxBase instead of Control (to
27336             allow uncast access to CreateGraphicsInternal)
27337           - Safeguarded use of owner.Handle property. No longer accessing it
27338             unless the handle is already created.
27339           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27340           - Now triggering a recalc when owning control becomes visible
27341         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
27342           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
27343           premature handle creation (Part of fix for #77456)
27344         * Control.cs:
27345           - We now only destroy our double-buffering buffers when the
27346             control is resized or disposed, but not when visibility
27347             changes. (The code even re-created them twice every time)
27348           - Now requiring a redraw of the buffer on visibility changes
27349             (fixes bug 77654 part 2)
27350           - Not passing OnParentVisibleChanged up unless the control
27351             is visible
27352           - CanFocus: Fixed to match MS documentation
27353           - Focus: Fixed to return actual focus state and to check if
27354             setting focus is legal before setting it
27355
27356 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
27357
27358         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
27359           when to draw focus rectangle by looking at parent focus and
27360           selected state instead. This fixes TabPages on Linux sometimes
27361           having none or multiple focus rectangles.
27362         * XplatUIX11.cs (SetFocus): 
27363           - Don't set the focus if the same window already has focus
27364           - Use SendMessage instead of PostMessage (like it's Win32
27365             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
27366             to match MS behaviour
27367         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
27368           are not selectable.
27369
27370 2006-03-07  Jackson Harper  <jackson@ximian.com>
27371
27372         * PictureBox.cs: Revert line I accidently committed last week.
27373
27374 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
27375
27376         * Control.cs: 
27377           - Added new IsRecreating and ParentIsRecreating properties to
27378             allow testing if RecreateHandle has been called on ourselves
27379             or one of our parents
27380           - WndProc(WM_DESTROY): If our control handle is being recreated
27381             we immediately need to create the handle when receiving the
27382             destroy, that way our child windows find a valid parent handle
27383             when they themselves are being recreated upon WM_DESTROY receipt
27384             (fix for bug #77654 part 1)
27385         * XplatUIX11.cs:
27386           - DestroyWindow: WM_DESTROY must be sent to our own window before
27387             notifying any child windows. MS documents that child windows
27388             are still valid when WM_DESTROY is received. (Control now relies on
27389             this behaviour)
27390           - Added some fine-grain debug options
27391
27392 2006-03-06  Jackson Harper  <jackson@ximian.com>
27393
27394         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
27395         box and base calculations off this.
27396         * MdiChildContext.cs:
27397         * MdiWindowManager.cs: Don't need to ensure scrollbars here
27398         anymore.
27399         
27400 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
27401
27402         * Splitter.cs: In situations where the affected control is added
27403           to the parent's control list after the splitter, we would not
27404           populate affected. Now we try populating it on mousedown, if
27405           it's not already set, and force it to be re-set whenever our
27406           parent changes.
27407
27408 2006-03-03  Matt Hargett  <matt@use.net>
27409
27410         * Control.cs: implement Control.Padding
27411         * Padding.cs: -Padding.All returns -1 when constructing with the
27412         implicit default ctor
27413         -Padding.ToString() matches MS.NET
27414         * ContainerControl.cs: implement
27415         ContainerControl.AutoScaleDimensions
27416         * ListControl.cs: implement ListControl.FormattingEnabled
27417         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
27418         * ButtonBase.cs:
27419         * TabPage.cs: Implement UseVisualStyleBackColor.
27420         * PictureBox.cs: Implement PictureBox.InitialImage.
27421
27422 2006-03-03  Mike Kestner  <mkestner@novell.com>
27423
27424         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
27425         event declarations to proxy to base event.
27426         * ListViewItem.cs: update to use ItemControl.
27427         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
27428         * ThemeWin32Classic.cs: update to new ListView theme API and fix
27429         column header label rendering for 0 width columns.
27430
27431 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
27432
27433         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
27434           that causes the control to be created. Fixes #77476.
27435
27436 2006-03-02  Jackson Harper  <jackson@ximian.com>
27437
27438         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
27439         expose_pending.
27440
27441 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
27442
27443         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
27444           passed in for the EventArgs (fixes #77690)
27445
27446 2006-03-01  Jackson Harper  <jackson@ximian.com>
27447
27448         * ScrollBar.cs: Refresh afterbeing resized.
27449
27450 2006-02-28  Mike Kestner  <mkestner@novell.com>
27451
27452         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
27453         Clean up a tracker compile warning.
27454         * MenuItem.cs: add internal PerformPopup method.
27455         [Fixes #77457]
27456
27457 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
27458
27459         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
27460           implicit expose) when the text is set to null
27461
27462 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
27463
27464         * RichTextBox.cs (FlushText): When newline is true, we always
27465           need to split the line, even if no text is on it and we may
27466           never eat newlines. (Fixes #77669)
27467
27468 2006-02-28  Mike Kestner  <mkestner@novell.com>
27469
27470         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
27471         and set Selected instead.
27472         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
27473         collections.
27474
27475 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
27476
27477         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
27478
27479 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
27480
27481         * FontDialog.cs:
27482           - Got rid of the panel. All controls are now directly added to
27483             the dialog form
27484           - It is now possible to set a font with the Font property
27485           - MinSize and MaxSize property do now what they should
27486           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
27487           - Searching and selecting a font with the font textbox works now,
27488             the same applies to the style and size textbox
27489           - Draw the correct 3D border in the example panel
27490           - Fixed a little mem leak (unused fonts didn't get disposed)
27491           - Many other internal updates/rewrites...
27492           - Fix typo
27493
27494 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
27495
27496         * TextControl.cs: 
27497           - InsertRTFFromStream: Added 'number of characters inserted' argument
27498           - set_SelectedRTF: Now using the number of characters to calculate
27499             the new location for the selection and cursor (x/y cannot be used
27500             due to potentially already wrapped text)
27501
27502 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
27503
27504         * TextControl.cs: Added property and implemented means to allow 
27505           disabling recalculation of a document (can be used to speed up
27506           multiple inserts and is needed to make RTF inserts predictable, see
27507           bug #77659)
27508         * RichTextBox.cs: Using the new NoRecalc property of Document to
27509           keep x/y insert locations predictable. Also makes it faster inserting
27510           large chunks of RTF
27511
27512 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
27513
27514         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
27515           it's easier for a child control to handle the other messages without
27516           having to duplicate the special functionality
27517         * TextBoxBase.cs
27518           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
27519             code to handle processing the key ourselves, in order to get 
27520             access to the result of KeyEventArgs.Handled. We now only call 
27521             ProcessKey if they key hasn't been handled already. Fixes #77526.
27522           - set_Text: If null or empty string is given, just clear the 
27523             document. Fixes part of #77526
27524
27525 2006-02-27  Jackson Harper  <jackson@ximian.com>
27526
27527         * SizeGrip.cs: Paint the background color before painting the grip
27528         so things look right.
27529         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
27530
27531 2006-02-27  Mike Kestner  <mkestner@novell.com>
27532
27533         * ListView.cs:
27534           - Restructure layout and invalidation model to remove a ton of
27535           flicker from the control and speed up performance in general.
27536           - Add manual column resize, flickers like crazy, but I already have
27537           some ideas on how I'll fix that. (#76822)
27538           - Merge the three Icon-based views into a single layout method.
27539           - Move item selection interaction logic from the item since 
27540           interaction with the collections is more appropriate to the view.
27541           - Deselection on non-item clicks.
27542         * ListViewItem.cs:
27543           - Encapsulate most of the layout. Add some internal props to trigger
27544           layout.  Move to a model where Items invalidate themselves instead
27545           of just invalidating the whole control every time something changes.
27546           - Invalidate on Text/Caption changes.
27547           - switch to an offset based layout model to avoid having to absolute
27548           position every element on item moves.
27549           - correct checkbox layout to conform to MS layout.
27550         * ThemeWin32Classic.cs:
27551           - refactor some column header drawing code.
27552           - fix string justification for column headers (#76821)
27553           - make SmallIcon labels top justified for compat with MS impl.
27554         * ThemeClearlooks.cs:
27555           - adjust to new ListViewItem internal checkbox bounds api.
27556
27557 2006-02-27  Jackson Harper  <jackson@ximian.com>
27558
27559         * Control.cs:  Change where implicit controls fall in the zorder.
27560         They are now on top of all children.
27561         - Synced AddImplicit code with Add
27562         - Removed unused enumerator.
27563         * SizeGrip.cs: Remove the TODO as its been TODONE.
27564
27565 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
27566
27567         * TextControl.cs(Insert): Combine the last lines unless the insertion
27568           string ends with \n\n, otherwise we leave one line too many (Fixes
27569           something I noticed with the testapp for #77526; the bug itself was
27570           already fixed in the previous checkin)
27571
27572 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
27573
27574         * RichTextBox.cs:
27575           - SelectionColor and SelectionFont methods no longer set absolute
27576             styles. Instead, the keep font or color respectively (This 
27577             resolves a long-standing FIXME in the code)
27578           - When flushing RTF text, the insert code now considers text trailing
27579             behind the insertion point (Fixes the bug where when replacing
27580             the selected text via SelectedRTF the remainder of the line behind 
27581             the selection would stay on the first insertion line)
27582         * TextBoxBase.cs:
27583           - AppendText now updates the selection points after inserting text
27584           - AppendText now ensures that the last tag (sometimes 0-length) of
27585             the document is used for the style information (Fixes part of 
27586             bug #77220)
27587         * TextControl.cs:
27588           - Created new FontDefiniton class to allow describing partial style
27589             changes
27590           - StreamLine() now takes a lines argument, to allow it to decide
27591             whether an encountered zero-length tag is the last in the document
27592             (which must be kept to not loose the font/color contained in it,
27593             for later appends)
27594           - Created Combine() and Split() methods for Marker structs, to 
27595             support marker updates due to reformatted documents (soft line
27596             wraps)
27597           - Implemented Document.CaretTag setter
27598           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
27599             of the last line (Not the cause, but also exposed by bug #77220)
27600           - Added LineTag argument to InsertString method, to allow callers
27601             to force a certain tag to be used (required to force use of the
27602             trailing zero-length tag of a document)
27603           - Now updating markers in Combine(), to avoid stale tag markers
27604           - Added some method descriptions to aid maintenance
27605           - Implemented new FormatText concept, allowing additive/subtractive
27606             formatting by only specifying the components that are to be 
27607             changed. This was needed for resolving the RTB.SelectedColor/
27608             RTB.SelectedFont fixmes
27609           - Added Break() support method to allow breaking up linetags (used
27610             for partial formatting)
27611           - Added GenerateTextFormat() method. It is used for partial 
27612             formatting and allows to generate a full font/color from given
27613             attributes and an existing tag.
27614
27615 2006-02-26  Jackson Harper  <jackson@ximian.com>
27616
27617         * XplatUIX11.cs:  Use the correct caption height.
27618         - Translate hittest coordinates to screen coords to match MS.
27619         * XplatUIWin32.cs: When we create MDI windows we need to reset
27620         some of the style flags, so we get a nice blank window, and can
27621         draw all the decorations ourselves.
27622         - Set a clipping rectangle on the non client paint event, the
27623         window manager drawing code needs one.
27624         * Form.cs: The window manager needs to know when the window state
27625         has been updated.
27626         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
27627         don't need to factor in border and title sizes in these
27628         methods. TODO: Remove the args and fix the call points.
27629         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
27630         properly.
27631         - Let the driver set the cursors.
27632         - Improve active window handling
27633         - Correct sizes for title bars and buttons.
27634         - Match MS drawing better
27635         * MdiWindowManager.cs: We don't need to handle border style
27636         updates specially anymore.
27637         - Check for scrollbars when windows are done moving
27638         - Handle Active properly.
27639         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
27640         correctly. I am spewing the exception though, so we don't hide the
27641         bugs.
27642         
27643 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
27644
27645         * DataGridViewRowPostPaintEventArgs.cs,
27646           DataGridViewCellPaintingEventArgs.cs,
27647           DataGridViewRowCollection.cs,
27648           DataGridViewRowPrePaintEventArgs.cs,
27649           DataGridViewCell.cs: Clear a few warnings and implement a few
27650           exceptions that should be thrown.
27651
27652 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
27653
27654         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
27655           'inheriting' our parent's (non-default) cursor. (Part of
27656            the fix for #77479)
27657
27658 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
27659
27660         * XplatUIX11.cs: Fixed cast to make csc happy
27661
27662 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
27663
27664         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
27665           it's for the client area (part of fix for #77479 and needed
27666           for MDI window cursor handling)
27667         * XplatUIX11.cs
27668           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
27669             the appropriate default cursors and also passing the message
27670             up the parent chain 
27671           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
27672             for non-client areas
27673
27674 2006-02-15  Jackson Harper  <jackson@ximian.com>
27675
27676         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
27677         is a real MDI window
27678
27679 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
27680
27681         * X11DesktopColors.cs: Instead of checking the desktop session
27682           string for "KDE" check if it starts with "KDE"
27683
27684 2006-02-10  Jackson Harper  <jackson@ximian.com>
27685
27686         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
27687         systems).
27688
27689 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
27690
27691         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
27692           errors
27693         * ColorDialog.cs:
27694           - Got rid of the panel. All controls are now directly added to
27695             the dialog form
27696           - Changed to mono coding style
27697
27698 2006-02-10  Jackson Harper  <jackson@ximian.com>
27699
27700         * InternalWindowManager.cs: We don't need the set visibility to
27701         false hack anymore now that peter has written beautiful shutdown
27702         code.
27703
27704 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
27705
27706         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
27707           where already explicitly destroyed
27708
27709 2006-02-10  Jackson Harper  <jackson@ximian.com>
27710
27711         * MdiClient.cs: Handle the case where windows are too high or to
27712         the left and we need scrollbars.
27713
27714 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
27715
27716         * MimeIcon.cs: Added some icons
27717         * FileDialog.cs:
27718           - Fixed bug #77477
27719           - Got rid of the panel. All controls are now directly added to
27720             the dialog form
27721           - Changed to mono coding style
27722           - On Linux "My Computer" and "My Network" will now show some
27723             more usefull information. A new class, MasterMount, gathers
27724             this information from /proc/mount. Updated MWFFileView to make
27725             use of this information
27726           - Fixed a bug that caused FileDialog to crash when
27727             ".recently_used" file had a zero size
27728           - FilterIndex does now what it should
27729           - Some Refactoring
27730         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
27731             FileDialog changes
27732
27733 2006-02-09  Jackson Harper  <jackson@ximian.com>
27734
27735         * ComboBox.cs: Don't touch if null.
27736
27737 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
27738
27739         * Cursor.cs: 64bit safeness fix
27740         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
27741
27742 2006-02-09  Jackson Harper  <jackson@ximian.com>
27743
27744         * Form.cs: If a form is made into an MDI form update the styles so
27745         all the props can get set correctly.
27746         - Kill the mdi_container when we dont need it anymore.
27747         * InternalWindowManager.cs: Add missing NOT
27748
27749 2006-02-08  Jackson Harper  <jackson@ximian.com>
27750
27751         * InternalWindowManager.cs: Respek clipping when drawing MDi
27752         decorations.
27753
27754 2006-02-08  Jackson Harper  <jackson@ximian.com>
27755
27756         * Hwnd.cs: Add bits to track non client expose events.
27757         * XplatUIX11.cs: Track non client expose events on the hwnd. This
27758         gives us a proper invalid rect and will allow for some nice
27759         optimizations with NC client drawing
27760         - MDI windows are children windows, so move their style handling
27761         into the child window block.
27762         * InternalWindowManager.cs: Remove a state reset that was
27763         getting invoked at the wrong time. Fixes managed windows getting
27764         into a 'stuck' captured state.
27765
27766 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
27767
27768         * TextControl.cs (Document.ctor): Now initializing 
27769           selection_anchor. Fixes #77493
27770
27771 2006-02-07  Jackson Harper  <jackson@ximian.com>
27772
27773         * TrackBar.cs: The increment/decrements were backwards.
27774
27775 2006-02-07  Mike Kestner  <mkestner@novell.com>
27776
27777         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
27778         to the instance itself.
27779
27780 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
27781
27782         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
27783           on ulongs and pointers, the size differs between 32bit and 64bit
27784           systems. 
27785
27786 2006-02-07  Mike Kestner  <mkestner@novell.com>
27787
27788         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
27789         for 64 bit platforms to work around a metacity bug. 
27790
27791 2006-02-07  Jackson Harper  <jackson@ximian.com>
27792
27793         * TrackBar.cs: Process the input keys we need, and hookup to
27794         KeyDown instead of using WndProc, so we get key messages.
27795
27796 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
27797
27798         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
27799           machine we're on. 
27800         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
27801           we need to translate the XdndVersion atoms array before sending it
27802
27803 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
27804
27805         * XplatUIX11.cs: 
27806           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
27807             number of bits for the property, not the number of bytes. The
27808             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
27809             but would not crash since it specified 8 bits instead of 4 bits)
27810           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
27811             defined as XID -> long in the C headers)
27812           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
27813             references since those are now IntPtr to begin with
27814           - Switched all Atom.XXX 'int' casts to IntPtr casts
27815           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
27816           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
27817           - Added XChangeActivePointerGrab DllImport (for X11DnD)
27818         * X11Structs.cs:
27819           - Changed 'int' type for Atoms in XEvent structures to IntPtr
27820           - Changed atom in HoverStruct to be IntPtr
27821         * X11DnD.cs:
27822           - Removed local DllImports, switched code to use those from XplatUIX11
27823           - Removed/fixed casts related to the switch of Atom to be a IntPtr
27824
27825 2006-02-06  Mike Kestner  <mkestner@novell.com>
27826
27827         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
27828         method signatures in the import region.  There may still be some
27829         lingering struct marshaling issues, as I didn't drill down into those.
27830         Yet.
27831
27832 2006-02-06  Jackson Harper  <jackson@ximian.com>
27833
27834         * ComboBox.cs: Dont manually set the top_item, this is computed
27835         when the scrollbar position is set.
27836
27837 2006-02-06  Mike Kestner  <mkestner@novell.com>
27838
27839         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
27840         startup crashes on amd64.  There's other fixes needed.  All pinvoke
27841         usage of Atom needs to be mapped to IntPtr for example.  And there are
27842         likely other int/long issues to be addressed.
27843
27844 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
27845
27846         * FileDialog.cs: One more...
27847
27848 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
27849
27850         * FileDialog.cs: Next try
27851
27852 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
27853
27854         * FileDialog.cs: First part of fix for #77464
27855
27856 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
27857
27858         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
27859           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
27860           AcceptButton border drawing.
27861
27862 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
27863
27864         * Form.cs: Moved positioning of form after auto scaling is applied,
27865           otherwise it would possibly use wrong form size.
27866
27867 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
27868
27869         * Control.cs (RecreateHandle): No need to re-create any child
27870           controls, the child windows will get destroyed automatically by
27871           the windowing system or driver, and re-created when the handle
27872           is being accessed the first time. Fixes #77456
27873         * Form.cs: No longer setting the form to closing if the handle is 
27874           being recreated. This seems like the right thing to do, don't
27875           have a bug or testcase for this, though.
27876
27877 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
27878
27879         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
27880           controls to avoid unwanted side effects
27881
27882 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
27883
27884         * Control.cs: 
27885           - ScaleCore needs to scale the bounds, not the ClientSize of the 
27886             control. Fixes #77416.
27887           - DefaultSize is 0,0 for control
27888         * TextBoxBase.cs: 
27889           - DefaultSize is 100, 20
27890           - SetBoundsCore: Now enforcing the height, no matter if the provided
27891             height is more or less than the preferred one, as long as AutoSize
27892             is on
27893         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
27894
27895 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
27896
27897         * Control.cs:
27898           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
27899             call unless both performLayout is true *and* we have a pending
27900             layout change
27901           - ResumeLayout: MS does not completely nest Suspend and Resume,
27902             they bottom out at 0, fixed our code to match that.
27903           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
27904             SetBoundsCore, we were updating even when we shouldn't. This fixes
27905             swf-anchors mis-anchoring when resizing the app fast and lots.
27906           - UpdateDistances: Now only setting the left and top distance if 
27907             we have a parent and are not suspended, this is based on
27908             a suggestion by Don Edvaldson in bug #77355.
27909           - OnVisibleChanged: Fixed logic when to create the control. We may
27910             not create the control if we have no parent or if it's not visible;
27911             switched to using Visible property instead of is_visible field 
27912             since the property also considers parent states. This fixes a bug
27913             when starting Paint.Net
27914
27915 2006-02-02  Jackson Harper  <jackson@ximian.com>
27916
27917         * Form.cs: If the forms handle hasn't been created yet don't call
27918         into xplatui to make it top most, just set the topmost flag on the
27919         form in CreateParams
27920         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
27921
27922 2006-02-01  Jackson Harper  <jackson@ximian.com>
27923
27924         * ScrollableControl.cs: Refactored the Recalculate method a
27925         little, this wasn't handling all the variants of bottom and right
27926         bars needed to be added and added/removed based on their
27927         counterparts being added/removed (which changes the drawable
27928         size). Also we special case client widths and heights of 0 and
27929         don't add the scrollbar for those.
27930
27931 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
27932
27933         * XplatUIX11.cs: 
27934           - Added method to get AbsoluteGeometry(); currently unused, but might
27935             be used in the future, if we try again to figure out toplevel
27936             coordinates with some more crappy window managers
27937           - Added FrameExtents() method to retrieve the WM set decoration size
27938           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
27939             to deal with at least KDE, FVWM and metacity (Fixes #77092)
27940         * Hwnd.cs: 
27941           - Added whacky_wm tracking var for metacity
27942           - Added logic to have default menu height if the actual menu height
27943             has not yet been calculated (part of fix for #77426)
27944         * Form.cs: Keep track whether client size has been set and re-set 
27945           it if a menu is added/removed afterwards (Fixes #77426)
27946
27947 2006-01-31  Jackson Harper  <jackson@ximian.com>
27948
27949         * Control.cs: When a new Site is set on the component attempt to
27950         pull the AmbientProperties from it.
27951
27952 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
27953
27954         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
27955           in the background of the owning form. Fixes #77332
27956
27957 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
27958
27959         * MimeIcon.cs: Fix for #77409
27960
27961 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
27962
27963         * XplatUIX11GTK.cs: Initial import
27964
27965 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
27966
27967         * FixedSizeTextBox: fixes class signature
27968
27969 2006-01-30  Jackson Harper  <jackson@ximian.com>
27970
27971         * FixedSizeTextBox.cs: New internal class that represents a
27972         textBox that will not be scaled.
27973         * TreeView.cs:
27974         * ComboBox.cs:
27975         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
27976         standard TextBox.
27977                 
27978 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
27979
27980         * XplatUIX11.cs: Retrieve default screen number instead of
27981           assuming 0. Attempted fix for #77318
27982
27983 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
27984
27985         * XplatUIWin32.cs: 
27986           - GetWindowPos: When a window is parented by FosterParent, use 
27987             the desktop instead of FosterParent as the base to get coordinates
27988           - CreateWindow: Don't make FosterParent the parent window for Popups
27989             if we don't want a taskbar entry, Popups automatically don't get one
27990         * Hwnd.cs: Need to call remove to actually remove the key from the
27991           hash table
27992
27993 2006-01-30  Mike Kestner  <mkestner@novell.com>
27994
27995         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
27996
27997 2006-01-30  Jackson Harper  <jackson@ximian.com>
27998
27999         * TreeView.cs:
28000         * TreeNode.cs: Raise events no matter how the treenode is
28001         checked. Patch by Don Edvalson.
28002
28003 2006-01-30  Jackson Harper  <jackson@ximian.com>
28004
28005         * TreeNode.cs: Signature fix.
28006
28007 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
28008
28009         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
28010
28011 2006-01-20  Mike Kestner  <mkestner@novell.com>
28012
28013         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
28014         event forwarding when menus are active.
28015         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
28016         Most of the patch is pdb's with a little rework.
28017
28018 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
28019
28020         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
28021           Removed GetMenuDC and ReleaseMenuDC methods; replaced
28022           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
28023         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
28024         * InternalWindowManager.cs: Added use of PaintEventStart/End to
28025           handling of WM_NCPAINT message, now passing the PaintEventArgs to
28026           the PaintWindowDecorations method
28027         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
28028         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
28029         * MenuAPI.cs: Made tracker window invisible
28030         * XplatUIWin32.cs:
28031           - Removed GetMenuDC and ReleaseMenuDC methods
28032           - Implemented the client=false path for PaintEventStart and
28033             PaintEventEnd
28034
28035 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
28036
28037         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
28038         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
28039           styles
28040         * Form.cs: 
28041           - MaximizeBox, MinimizeBox: Recreate the handle when setting
28042             the style
28043           - CreateParams: Reworked the styles to match MS look'n'feel,
28044             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
28045             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
28046
28047 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
28048
28049         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
28050           window is not mapped, since otherwise every form that's being 
28051           created is considered minimized, which is wrong.
28052         * Form.cs: Catching the exception and returning our internal value
28053           instead
28054
28055 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
28056
28057         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
28058           SetWindowMinMax() to have means to tell the driver about the minimum,
28059           maximum and maximized state window sizes. (Part of the fix for #76485)
28060         * Form.cs:
28061           - Implemented tracking of minimum and maximum window size, now calling
28062             new SetWindowMinMax() driver method to tell the driver (Part of the
28063             fix for #76485)
28064           - Finished handling of WM_GETMINMAXINFO method, now setting all values
28065             (Completes fix for #76485)
28066           - Calling new SetWindowMinMax driver method when the handle for a 
28067             form is created, to make sure the driver knows about it even if
28068             the values have been set before the window was created
28069           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
28070             to avoid messing up our anchoring calculations (partial fix
28071             for #77355)
28072         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
28073         * XplatUIX11.cs:
28074           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
28075           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
28076             (and presumably other freedesktop.org compliant WMs). Left the
28077             assumption unmapped=minimized, needed for SetVisible to work.
28078           - Now setting the window state when creating windows
28079           - Fixed SetVisible to consider/set the window state when mapping
28080             a Form. We cannot set the state before it's mapped, and we cannot
28081             use Form.WindowState once it's mapped (since it would ask the
28082             driver and get 'normal'. Therefore, we grab the state before
28083             mapping, map, and then set state.
28084           - Implmemented SetWindowMinMax method; Metacity does not seem to
28085             honor the ZoomHints, though.
28086         * XplatUIWin32.cs:
28087           - Removed MINMAXINFO (moved to XplatUIStructs)
28088           - Added SetWindowMinMax stub (on Win32 the only way to set that
28089             information is in response to the WM_GETMINMAXINFO message, which
28090             is handled in Form.cs)
28091           - Added logic to SetVisible to set the proper window state when a 
28092             form is made visible (fixes #75720)
28093
28094 2006-01-26  Jackson Harper  <jackson@ximian.com>
28095
28096         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
28097         same way we handle them with Invoke.
28098
28099 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
28100
28101         * Form.cs:
28102           - Added tracking of window state so CreateParams can return
28103             the appropriate style
28104           - Moved setting of WS_CAPTION style in CreateParams to allow
28105             styles without caption
28106         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
28107           control if the TextBox property is accessed. Fixes #77345
28108         * Control.cs:
28109           - get_Created: now uses is_disposed and is_created to determine
28110             return value (suggested by Jackson)
28111           - CreateHandle: No longer exits if the handle is being recreated
28112           - RecreateHandle: If the handle is not yet created call the 
28113             appropriate method to create either control or handle. If the
28114             control is already created CreateHandle will simply exit instead
28115             of just creating the handle
28116         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
28117           now SendMessage WM_DESTROY directly to the control when DestroyWindow
28118           is called.
28119         * XplatUIX11.cs: 
28120           - When DestroyWindow is called, instead of waiting for the 
28121             DestroyNotification from X11, we directly post it to the WndProc
28122             and immediately dispose the hwnd object.
28123             Same applies to DestroyChildWindows, and this obsoletes the
28124             expose_pending tracking. Contrary to Win32 behaviour we destroy our
28125             child windows before our own, to avoid X11 errors.
28126           - Removed the direct sending of WM_PAINT on UpdateWindow
28127         * XplatUIWin32.cs:
28128           - Reworked DoEvents and GetMessage to allow access to internal queue
28129             even when trying non-blocking access to the queue.  Fixes #77335. 
28130             Based on a patch suggestion by Don Edvalson. The new private
28131             GetMessage can now also be used as a backend for a PeekMessage
28132             frontend version.
28133         * XplatUI.cs: Improved debug output for CreateWindow
28134
28135 2006-01-25  Jackson Harper  <jackson@ximian.com>
28136
28137         * Help.cs: Allow param to be null. Patch by Don Edvalson.
28138
28139 2006-01-24  Jackson Harper  <jackson@ximian.com>
28140
28141         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
28142         when we have a MaxDropItems lower then the selected index.
28143
28144 2006-01-24  Jackson Harper  <jackson@ximian.com>
28145
28146         * Control.cs: Don't allow selection of non visible controls, allow
28147         selection of controls without parents.
28148
28149 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
28150
28151         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
28152         * DataGridDrawingLogic.cs: Add editing row only when is necessary
28153
28154 2006-01-23  Jackson Harper  <jackson@ximian.com>
28155
28156         * UpDownBase.cs: Make the textbox handle all the selection and
28157         tabbing. This fixes tabing to updown controls.
28158
28159 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
28160
28161         * TextBoxBase.cs: fixes exception thown the object was null
28162
28163 2006-01-23  Jackson Harper  <jackson@ximian.com>
28164
28165         * ButtonBase.cs: Just use the base CreateParams. They set
28166         visibility and enabled correctly.
28167         * ComboBox.cs:
28168         * TrackBar.cs:
28169         * MonthCalendar.cs: Lets let the base set as much of the
28170         createparams as possible so we don't have duplicate code all over
28171         the place.
28172
28173 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
28174
28175         * ThemeGtk.cs: Added TrackBar and some experimental code to
28176           get double buffering back
28177
28178 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
28179
28180         * DataGrid.cs: Allows row number set internally higher than the last
28181         when creating a new row. Restores the editing functionality.
28182
28183 2006-01-20  Mike Kestner  <mkestner@novell.com>
28184
28185         * MimeIcon.cs: delay Image creation until the icons are accessed
28186         instead of creating 190 scaled images on GnomeHandler startup.
28187
28188 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
28189
28190         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
28191           first call base before processing the event. Fixes #77279
28192
28193 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
28194
28195         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
28196           that the stride for the GDI bitmap would match the stride of
28197           a DIB or a Cursor.
28198
28199 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
28200
28201         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
28202
28203 2006-01-19  Jackson Harper  <jackson@ximian.com>
28204
28205         * ComboBox.cs: Hookup the text controls keydown event so we get
28206         those when the text control has the focus.
28207
28208 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
28209
28210         * Label.cs: Now using the base events instead of defining new ones;
28211           this allows us to just call the base properties without having to
28212           duplicate all base property logic 
28213
28214 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
28215
28216         * Label.cs: A label by default is not a tabstop (Fixes one of our
28217           failing nunit tests)
28218
28219 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
28220
28221         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
28222         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
28223
28224 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
28225
28226         * Cursor.cs: Reimplemented creating cursor bitmaps without using
28227           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
28228           This fixes #77218
28229         * XplatUIWin32.cs: 
28230           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
28231             constructor creates images that can't be saved. Part of the fix
28232             for #76103
28233           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
28234           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
28235             bug fix for handling window state in forms properly)
28236
28237 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28238
28239         * ThemeGtk.cs: Simplify ScrollBar drawing
28240
28241 2006-01-18  Jackson Harper  <jackson@ximian.com>
28242
28243         * Splitter.cs: Set the default dock style for the splitter control
28244         in the constructor.
28245
28246 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28247
28248         * ThemeGtk.cs: Corrected StateType and ShadowType for
28249           gtk_paint_box
28250
28251 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28252
28253         * Control.cs: Make use of Theme.DoubleBufferingSupported
28254         * ThemeGtk.cs:
28255           - Added drawing for flat style buttons
28256           - Added ScrollBar drawing
28257
28258 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28259
28260         * ThemeClearlooks.cs: Removed some unneeded code.
28261         * ThemeGtk.cs: First part of ThemeGtk enhancements.
28262
28263 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
28264
28265         * LinkLabel.cs: We need to update the hover drawing when
28266           leaving the control as well.
28267
28268 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
28269
28270         * DataGrid.cs: Clicking on non empty areas in the columns
28271            area was giving an exception
28272
28273 2006-01-17  Jackson Harper  <jackson@ximian.com>
28274
28275         * ThemeWin32Classic.cs:
28276         * ListView.cs: Do not draw/clip the headers when the header style
28277         is None.
28278
28279 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
28280
28281         * DataGrid.cs: Fixes 77260
28282         
28283 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
28284
28285         * DataGrid.cs: Clicking on a column on a empty grid was giving
28286           an exception
28287
28288 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
28289
28290         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
28291           or any keypress will crash the grid.
28292
28293 2006-01-17  Mike Kestner  <mkestner@novell.com>
28294
28295         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
28296         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
28297         invisible/previously-visible items.
28298         [Fixes #76909]
28299
28300 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
28301
28302         * ThemeClearlooks.cs:
28303         - Added CL_Draw_Button method; now other theme controls that are 
28304           not derived from button or do not have a button can draw buttons
28305           too
28306         - Updated ComboBox drawing
28307         - Beautified RadioButton drawing
28308         - Corrected drawing of bottom and left tabs
28309         - Beautified DateTimePicker and MonthCalendar
28310         - Added CPDrawButton and CPDrawRadioButton
28311
28312 2006-01-16  Jackson Harper  <jackson@ximian.com>
28313
28314         * ComboBox.cs: Set the initial value of the scrollbar to the
28315         current index. Reduce the numbers of refreshs and IndexOfs called.
28316
28317 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
28318
28319         * FileDialog.cs: When the file listview is focused hitting the
28320           backspace key moves the fileview to the parent directory
28321
28322 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
28323
28324         * Form.cs: 
28325           - Added RecreateHandle call when changing taskbar visibility to 
28326             trigger reparenting in Win32 driver (Fixes #75719)
28327           - If a window has minimize or maximize buttons, it cannot have
28328             a help button
28329         * XplatUIWin32.cs:
28330           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
28331             the toplevel form with FosterParent (A toolwindow not on the
28332             taskbar) (Fixes #75719)
28333           - Made FosterParent a toolwindow
28334
28335 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28336
28337         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
28338
28339 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28340
28341         * ToolTip.cs: If SetToolTip is called from a control and the mouse
28342           is currently over that control, make sure that tooltip_window.Text
28343           gets updated
28344
28345 2006-01-13  Mike Kestner  <mkestner@novell.com>
28346
28347         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
28348
28349 2006-01-13  Jackson Harper  <jackson@ximian.com>
28350
28351         * TreeView.cs: On MS GetNodeAt never actually factors in the X
28352         value passed.  Also redraw the selected node when we recieve
28353         focus, so tabbing between trees works correctly.
28354
28355 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28356
28357         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
28358           ~/.gconf/%gconf-tree.xml, so use
28359           .gconf/desktop/gnome/interface/%gconf.xml
28360
28361 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
28362
28363         * TextControl.cs: Draw text in gray if control is disabled
28364
28365 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
28366
28367         * TreeView.cs: Draw the focus rectangle outside the highlight, to
28368           make sure it's always visible. Fixes #76680.
28369
28370 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
28371
28372         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
28373
28374 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
28375
28376         * PageSetupDialog.cs: Added.
28377         * PrintDialog.cs: Attributes.
28378         * PrintPreviewControl.cs: Updates.
28379         * PrintPreviewDialog.cs: Updates.
28380         
28381 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28382
28383         * Control.cs: Undid my selection check fix, since it's not needed
28384         * TextBoxBase.cs:
28385           - Now considering the presence of hscroll/vscroll when sizing
28386             vscroll/hscroll respectively. Fixed bug #77077
28387           - Added Left/Up/Down/Right to IsInputKey list to prevent
28388             ContainerControl from stealing them. This fixes what I broke
28389             with my last checkin.
28390
28391 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
28392
28393         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
28394           I finally understand how the property can be set without a setter :-)
28395
28396 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28397
28398         * Application.cs:
28399           - Switched RunLoop to use static Message.Create to create a 
28400             Message object
28401           - Added PreProcessMessage call in runloop for keyboard events; this
28402             is part of the fix for #77219, I overlooked this originally in the
28403             MSDN doc for PreProcessMessage
28404         * Control.cs:
28405           - Removed call to PreProcessMessage from handling of keyboard 
28406             messages; it's supposed to be done in the message pump
28407           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
28408             per MSDN documentation.
28409           - IsInputChar: All chars are input chars by default; removed the 
28410             parent calling chain, MS does not document that
28411           - PreProcessMessage: If IsInputChar is true, we want to return false
28412             to allow dispatching of the message
28413           - When selecting the next control, now also check that we're not
28414             selecting ourselves again and therefore return a false positive.
28415         * TextBoxBase.cs:
28416           - Tried to match return values for IsInputKey and ProcessDialogKey
28417             to what MS returns; moved processing of our special keys outside
28418             ProcessDialogKey since MS does not seem to return true on those.
28419           - Moved code that previously was in ProcessDialogKey into new private
28420             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
28421           - Reworked handling of WM_CHAR to not have to duplicate code from
28422             Control.cs anymore, instead we simply call down to base.
28423            
28424 2006-01-12  Jackson Harper  <jackson@ximian.com>
28425
28426         * ComboBox.cs: We always need to refresh the text area when
28427         EndUpdate is called. Fixes the combobox in the file dialog.
28428         * Control.cs: Don't create the creator_thread until the controls
28429         handle is created.  Also in InvokeRequired we check if the
28430         creator_thread is null. This gives the effect of InvokeRequired
28431         returning true if the controls handle is not created yet, and
28432         matches MS.
28433
28434 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28435
28436         * XplatUI.cs:
28437           - Added StartLoop() driver method. This is used to allow drivers to
28438             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
28439             loop for a particular thread
28440           - Added EndLoop() driver method. This is called once the message
28441             pump for the thread is shut down
28442           - Added SupportsTransparency method to allow the driver to indicate
28443             opacity support for windows
28444         * Form.cs:
28445           - Removed TODO attribute, completed AllowTransparency property
28446           - Added documented logic to Opacity
28447         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
28448           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
28449           versions of CompatibleTextRendering
28450         * X11Structs.cs: Added opacity atom to our atom enumeration
28451         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
28452           of a form might be set before it's reparented by the WM, and we need
28453           the opacity value without calling up to Form)
28454         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
28455           SupportsTransparency() driver methods
28456         * Application.cs: Now calling StartLoop and EndLoop driver methods
28457         * XplatUIX11.cs:
28458           - Added opacity atom registration
28459           - Added StartLoop()/EndLoop() methods. They're empty right now but
28460             will need to get implemented when we switch to a per-thread queue
28461           - Implemented SupportsTransparency() method
28462           - Implemented SetWindowTransparency() method
28463           - Added support for setting the opacity value when a window is
28464             reparented (since the opacity needs to be set on the WM frame)
28465         * XplatUIOSX.cs, XplatUIWin32.cs:
28466           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
28467
28468 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
28469
28470         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
28471
28472 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
28473
28474         * FileDialog.cs: Added ToolTip for MWFFileView
28475         * MimeIcon.cs: Rewrote GnomeHandler.
28476           - Get currently used gnome icon theme from
28477             ($HOME)/.gconf/%gconf-tree.xml
28478           - Make use of inherited icon themes
28479           - Support SVG icon themes like Tango via librsvg
28480
28481 2006-01-12  Miguel de Icaza  <miguel@novell.com>
28482
28483         Revert's Jackson's revert which broke 2.0 builds.   Fix both
28484         builds. 
28485         
28486         * Application.cs: Move the use_compatible_text_rendering outside
28487         the NET_2_0 define.  If we ever need to use the
28488         use_compatible_text_rendering on the individual controls they will
28489         access the variable from the common shared code paths.
28490
28491 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28492
28493         * XplatUI.cs:
28494           - Added more granular debug options
28495           - Added method to print both window text and id
28496           - Switched debug output to use new Window() debug method
28497           - Added IsEnabled() driver method
28498           - Added EnableWindow() driver method
28499         * Form.cs:
28500           - Removed end_modal; no longer needed, new loop handles termination
28501             via 'closing' variable
28502           - If form is modal, setting DialogResult will now initiate loop
28503             termination via 'closing' variable
28504           - Added support for is_enabled/WS_DISABLED to CreateParams
28505           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
28506             does all the work
28507           - Removed code that's now in RunLoop from ShowDialog()
28508           - Added various documented sanity checks to ShowDialog()
28509           - Added handling of WM_DESTROY message; we set 'closing' on getting
28510             the message to indicate the message pump to terminate
28511           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
28512             send by the Application.ExitThread method. (We send the message
28513             to destroy the window after all other events have been
28514             processed through the queue, instead of destroying the handle 
28515             directly)
28516           - Moved code from Close() method to WM_CLOSE handler; added logic
28517             to only send close-related events if the form is not displayed
28518             modal
28519         * Splitter.cs (..ctor): Fixed typo in resource name
28520         * Control.cs:
28521           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
28522             brush now
28523           - set_Cursor: Now only setting calling into XplatUI if the handle for
28524             the control is already created; this avoids implict handle creation
28525             or crashes if it's not created
28526           - set_Enabled: Now setting the enabled state via the new driver method
28527             instead of just tracking it
28528           - CreateParams: Added logic to set WS_DISABLED based on enabled state
28529           - CreateControl: Reordered event firing and method calls to more
28530             closely fire events in the order MS does. Now setting the
28531             enabled state in the driver when creating the control.
28532           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
28533             match MS order
28534         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
28535           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
28536         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
28537         * Hwnd.cs:
28538           - Added tracking of window enabled state (get_Enabled/set_Enabled)
28539           - Added EnabledHwnd property to easily allow a driver to find the
28540             handle of the first enabled window in the parent chain (this is
28541             used by drivers to pass up input events of disabled windows)
28542         * XplatUIDriver.cs: Added IsEnabled() method
28543         * Application.cs:
28544           - Removed crude and obsolete exiting tracking variable
28545           - Removed internal ModalRun(); replaced by RunLoop()
28546           - Implemented private CloseForms() method to allow closing all 
28547             windows owned by a particular (or all) threads
28548           - Exit() now properly closes all windows without forcing the message
28549             pump to quit
28550           - Removed obsolete InternalExit() method
28551           - Changed Run() methods to use new RunLoop() message pump
28552           - Implemented new RunLoop() method for both modal and non-modal forms
28553         * CommonDialog.cs:
28554           - get_CreateParams: Added setting of WS_DISABLED
28555           - Simplified ShowDialog(); now all the work is done in RunLoop(),
28556             invoked via Form.ShowDialog()
28557         * NativeWindow.cs: We don't remove the window from the collection when
28558           the handle is destroyed; there might still be messages for it in the
28559           queue (mainly the resulting WM_DESTROY); instead it will be removed
28560           when Control calls InvalidateHandle in the WM_DESTROY handler
28561         * XplatUIX11.cs:
28562           - CreateWindow: Added logic to handle the WS_DISABLED window style
28563           - EnableWindow: Implemented based on Hwnd.Enabled
28564           - GetMessage: Reset PostQuitState so the method can be called again
28565           - Implemented support for disabled windows (passing messages to the
28566             first enabled parent) in handling all input messages
28567           - Added optimizations for handling Expose events
28568           - Implemeted new driver method IsEnabled()
28569           - Now always resetting paint pending tracking vars when we start paint
28570           - Re-implemented UpdateWindow via just sending a WM_PAINT message
28571         * XplatUIOSX.cs: Added IsEnabled method stub
28572         * XplatUIWin32.cs: Implemented new IsEnabled() method
28573
28574 2006-01-11  Jackson Harper  <jackson@ximian.com>
28575
28576         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28577         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
28578         variables a little.
28579         * ColorDialog.cs: Clear out the old form before adding the new
28580         panel.  
28581
28582 2006-01-11  Jackson Harper  <jackson@ximian.com>
28583
28584         * X11Dnd.cs: Make sure to add all the text formats when adding
28585         strings to the data object.
28586         * TreeNodeCollection.cs: When adding to a sorted tree we need to
28587         do some redrawing too.  Also change the UpdateNode to an
28588         UpdateBelow so the newly added node gets painted.
28589         
28590 2006-01-11  Miguel de Icaza  <miguel@novell.com>
28591
28592         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28593         LinkLabel.cs, PropertyGrid.cs: Implement the
28594         UseCompatibleTextRendering property for 2.x
28595
28596         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
28597
28598 2006-01-11  Jackson Harper  <jackson@ximian.com>
28599
28600         * TreeView.cs: Use the property for setting the selected node so
28601         the correct events get raised.
28602         * TreeNode.cs: Update the tree when the fore/back colours of a
28603         node are set.
28604
28605 2006-01-10  Jackson Harper  <jackson@ximian.com>
28606
28607         * TreeView.cs: Allow setting SelectedNode to null.
28608
28609 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28610
28611         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
28612
28613 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28614
28615         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
28616
28617 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28618
28619         * PrintDialog.cs: Added attributes and set default property values.
28620
28621 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28622
28623         * PrintControllerWithStatusDialog.cs: 
28624         Added PrintControllerWithStatusDialog.
28625
28626 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28627
28628         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
28629         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
28630
28631 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28632
28633         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
28634
28635 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
28636
28637         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
28638         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
28639
28640 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
28641
28642         * MimeIcon.cs: Added internal class SVGUtil.
28643
28644 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
28645
28646         * FileDialog.cs: Don't crash if there are two files with the
28647           same name but different locations.
28648
28649 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
28650
28651         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
28652         dates across multiple month grids. Used to not highlight entire 
28653         month, but does now.
28654         
28655 2006-01-06  Jackson Harper  <jackson@ximian.com>
28656
28657         * MonthCalendar.cs: Removed DoEvents call to prevent a running
28658         message loop. Change timer intervals to numbers that seem more
28659         natural.
28660
28661 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
28662
28663         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
28664           object for location info since screen object is now implemented.
28665
28666 2006-01-05  Jackson Harper  <jackson@ximian.com>
28667
28668         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
28669         * AsyncMethodResult.cs: We no longer use a WeakReference for the
28670         AsyncMethodResult, this is because we ALWAYS want the
28671         ManualResetEvent to get set.
28672         * Control.cs: When disposing use an async invoke to call shutdown
28673         code, so that thigns don't block on the finalizer thread.  Also
28674         check if we even have a message loop before trying to send
28675         messages, if we don't then don't bother sending messages.
28676         - No more weak references for async methods
28677         * XplatUIDriver.cs: No more weak references for async methods.
28678
28679 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28680
28681         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
28682           returns two FontFamily with the same name
28683
28684 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
28685
28686         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
28687           drawing disabled text. Instead using the ColorGrayText color
28688
28689 2006-01-04  Jackson Harper  <jackson@ximian.com>
28690
28691         * TreeNode.cs: redraw the node when its image index is changed.
28692
28693 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
28694
28695         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
28696           time I checked there are no others like it.
28697
28698 2006-01-04  Jackson Harper  <jackson@ximian.com>
28699
28700         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
28701         this gives the behavoir I was looking for.
28702         * Control.cs: Special case Invoking EventHandlers, this matches MS
28703         and fixes part of bug #76326.
28704
28705 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28706
28707         * ThemeClearlooks.cs, FileDialog.cs:
28708           - Reflect the latest Theme class changes
28709           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
28710             with DateTime
28711             
28712 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28713
28714         * Theme.cs: Cache UI resource images and resize them if needed
28715
28716 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
28717
28718         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
28719           is called. This fixes the crash in Nexxia when setting the font
28720           attributes in the chat. [However, RTF needs a look-over to make sure
28721           that all SelectionXXX methods handle the special case that selection
28722           is empty and therefore the change must be applied to all text starting
28723           at the cursor/selection start]
28724
28725 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
28726
28727         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28728           XplatUIOSX.cs: Added SendMessage and PostMessage methods
28729         * X11Keyboard.cs: Switched to new way of calling PostMessage
28730
28731 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
28732
28733         * Theme.cs: Added theme interface for images to allow the theme to
28734           control what images are used for things like FileDialog, MessageBox
28735           icons, etc.
28736         * MessageBox.cs: Now uses the new Theme icon/image interfaces
28737
28738 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
28739
28740         * FileDialog.cs:
28741           - Removed some dead code
28742           - Opening a recently used file does work now
28743           - Small UI enhancements
28744           - Refactoring
28745
28746 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
28747
28748         * FileDialog.cs: Forgot too add __MonoCS__
28749
28750 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
28751
28752         * FileDialog.cs: We are able to read recently used files now let's
28753           go on and write them.
28754
28755 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
28756
28757         * FileDialog.cs: Breathe some life into "last open"/"recently used"
28758           button
28759         * MimeIcon.cs: Do a check for the top level media type also
28760
28761 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
28762
28763         * ThemeClearlooks.cs:
28764           - Added CPDrawStringDisabled
28765           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
28766             some chars if the text doesn't fit into text_rect
28767           - DrawListViewItem: If View = View.LargeIcon center the image;
28768             rewrote the drawing of ListViewItem.Text if View = 
28769             View.LargeIcon
28770
28771 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
28772
28773         * MimeIcon.cs: Use default KDE icon theme if there is no
28774           "48x48" directory for the current icon theme, fixes #77114
28775         * Mime.cs: Disable not working and actually not used code. 
28776         * ThemeWin32Classic.cs:
28777           - Replace "new SolidBrush" in GetControlBackBrush and
28778             GetControlForeBrush with ResPool.GetSolidBrush
28779           - Changed DrawListViewItem from private to protected virtual
28780         * FileDialog.cs:
28781           - Added form.MaximizeBox = true
28782           - Don't throw an exception if there is a broken symbolic link
28783
28784 2005-12-23  Jackson Harper  <jackson@ximian.com>
28785
28786         * TabControl.cs: Give the panels focus, keyboard navigation is
28787         fixed so this works correctly now.
28788         - We need these key events also.
28789         * ToolBar.cs: Remove some of the poor mans double buffering.
28790         
28791 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
28792
28793         * ComboBox.cs: The internal TextBox now returns the focus.
28794
28795 2005-12-23  Jackson Harper  <jackson@ximian.com>
28796
28797         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
28798
28799 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
28800
28801         * Control.cs: Removed debug code
28802         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
28803           implicit children
28804
28805 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
28806
28807         * Control.cs: When creating the control, update the Z-order after
28808           all it's children are created, too. (Fixes nexxia not showing
28809           picturebox bug)
28810
28811 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
28812
28813         * Control.cs: Do not update the anchoring distances if layout is
28814           suspended, instead do it once layout is resumed
28815
28816 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
28817
28818         * Control.cs: 
28819           - After many hours of debugging, for both Jackson and
28820             myself, it turns out that it helps to set the parent of a control
28821             if you want to actually see it onscreen. In the spirit of that
28822             discovery, we're now setting the parent of the control and
28823             it's children when the control's handle is created. This fix
28824             will make Lutz Roeder's Reflector run happily. 
28825           - now just creating the handle instead of the whole control when
28826             getting a graphics context for the control.
28827
28828 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
28829
28830         * ScrollableControl.cs: When calculating the canvas, don't consider
28831           the scrollbar widths. Instead, predict if horizontal scrollbar
28832           will affect canvas when deciding on vertical display and vice versa.
28833
28834 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
28835
28836         * RichTextBox.cs: Set default RTF font for documents that don't
28837           have a font table (Fixes #77076)
28838
28839 2005-12-22  Jackson Harper  <jackson@ximian.com>
28840
28841         * TextBoxBase.cs: It's difficult to do, but you can have an empty
28842         clipboard. This prevents a NullRef in that case.
28843         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
28844         clipboard. PRIMARY is for the currently selected text only. (We
28845         should implement PRIMARY at some point.
28846
28847 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
28848
28849         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
28850           a Unicode function with a structure that was defined in Ansi way.
28851           This fixes #76942.
28852
28853 2005-12-21  Jackson Harper  <jackson@ximian.com>
28854
28855         * StatusBar.cs: Statusbar handles its fore/back colours on it's
28856         on. Because thats how it rolls. (and this avoids it using ambient
28857         colours).
28858         * ThemeWin32Classic.cs: Use the proper back color for filling.
28859         * Menu.cs: Use the system menu bar color for drawing menu
28860         bars. Using the window back color will bring ambient colours into
28861         the picture.
28862
28863 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
28864
28865         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
28866           Bitmaps were created and not disposed.
28867
28868 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
28869
28870         * Control.cs (CreateControl): Don't do anything if the control is
28871           already created, otherwise we'd fire the OnCreated event more than
28872           once
28873
28874 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
28875
28876         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
28877           will always match. Instead return -1. Fixes #76464.
28878
28879 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
28880
28881         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
28882           neither the beginning nor the end of the line (Fixes bug #76479)
28883
28884 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
28885
28886         * Control.cs:
28887           - ControlNativeWindow.ControlFromHandle(): Now handling situation
28888             where handle is invalid
28889           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
28890             instead of slower linear search
28891         * NativeWindow.cs: Don't remove the window from the hashtable until
28892           after the driver has destroyed it (since the driver might use
28893           Control.FromHandle to lookup the control object
28894         * Hwnd.cs: Added DestroyPending property to track if a window is 
28895           already destroyed as far as the driver is concerned and only hasn't
28896           yet notified the control
28897         * XplatUIX11.cs:
28898           - Activate(): Check if the window is still valid before using the 
28899             handle
28900           - Implemented DestroyChildWindow() method to mark child windows as
28901             destroyed when a window is destroyed. This prevents situations 
28902             where we might call an X method based on queued events for a
28903             window that already has been destroyed but we haven't yet pulled
28904             the destroy method from the queue.
28905           - Added a call to the new DestroyChildWindow() method to the drivers
28906             DestroyWindow code. Also now marking the destroyed window itself
28907             as pending
28908
28909 2005-12-20  Jackson Harper  <jackson@ximian.com>
28910
28911         * StatusBar.cs:
28912         * StatusBarPanel.cs: Don't calculate panel sizes on draw
28913         anymore. Just do them when needed, also track the rects of panels
28914         so that we can optimize refreshing more in the future.
28915
28916 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
28917
28918         * ColorDialog.cs: Fixed focus drawing in small color controls
28919
28920 2005-12-19  Jackson Harper  <jackson@ximian.com>
28921
28922         * InternalWindowManager.cs:
28923         * MdiWindowManager.cs: Cleanup some coordinate system changes so
28924         moving windows works properly.
28925
28926 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
28927
28928         * Control.cs: 
28929           - Removed call to InitLayout() from SetBoundsCore(); doc says
28930             it's only called when a control is added to a container
28931           - Split InitLayout logic, moved to separate UpdateDistances() method
28932             since we need to perform those calculations more often than just
28933             when adding the control to a container. (Needed to fix #77022)
28934           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
28935           - Reduced the OnBindingContextChanged events count, don't send them
28936             unless the control is created, we still aren't totally matching
28937             MS, but I can't quite figure out some of their rules
28938
28939 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28940
28941         * ThemeClearlooks.cs: Corrected distance between ProgressBar
28942           stripes
28943
28944 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28945
28946         * ThemeClearlooks.cs:
28947           - Updated ProgressBar drawing
28948           - Corrected drawing of ScrollBars and scroll buttons
28949           - Some temporary fixes for minor pixel artefacts
28950
28951 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
28952
28953         * Control.cs:
28954           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
28955             cause events to be sent in the same order as MS does.
28956           - Added ChangeParent() method to trigger various OnXXXChanged events
28957             that need to be fired when a parent changes (This is a reworking
28958             of the patch from r54254, with the X11 errors fixed)
28959           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
28960             since on MS we get OnLayoutChanged events when calling Clear()
28961           - Changed Enabled property to consider parent state as well, if a
28962             parent is not enabled, the control will not be either
28963           - Changed Parent property to simply call Controls.Add() since that
28964             now does all the work required, this way we avoid code duplication
28965           - Threw in a few OnBindingsContextChanged calls to try and match
28966             when MS sends them. We seem to send a few too many, though.
28967           - Added call to CreateControl when adding the control to a parent.
28968             We were never calling CreateControl. Still needs some work, in
28969             some places we treat HandleCreated and ControlCreated as equal, 
28970             which is wrong
28971           - Removed obsolete commented out code from UpdateZOrder()
28972
28973 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28974
28975         * ThemeClearlooks.cs: Updated TrackBar drawing.
28976
28977 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
28978
28979         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
28980
28981 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
28982
28983         * FileDialog.cs: Add the Help button and the open readonly
28984           checkbox only if needed
28985
28986 2005-12-16  Jackson Harper  <jackson@ximian.com>
28987
28988         * Control.cs: Make sure we have an active menu before trying to
28989         process commands on it. Prevents menu-less forms from crashing
28990         when Alt is pressed.
28991         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
28992         Dieter Bremes.
28993         * RichTextBox.cs: Expand statement to help out gmcs and fix the
28994         2.0 build.
28995
28996 2005-12-16  Jackson Harper  <jackson@ximian.com>
28997
28998         * InternalWindowManager.cs: Don't translate tool windows screen
28999         coordinates. This fixes windows 'bouncing' around when being moved.
29000
29001 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
29002
29003         * TextBoxBase.cs:
29004           - MaxLength now treats 2^31-1 equal to unlimited length (this is
29005             not quite MS compatible, MS uses that number only for single line
29006             and 2^32-1 for multi-line, but I figure it won't hurt keeping
29007             the limit at 2GB)
29008           - Now enforcing the MaxLength limit when entering characters
29009           - Added argument to internal Paste() method to track if it's called
29010             from programatically or via keyboard, since keyboard driven pastes
29011             need to enforce max-length
29012           - Added logic to Paste to only paste as many chars as MaxLength 
29013             allows
29014         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
29015         * TextControl.cs:
29016           - Added Length property to return number of characters in document
29017           - Added private CharCount property which only tracks actual chars
29018             in the document (no linefeeds) and fires event when CharCount
29019             changes
29020           - Added tracking of character count to all methods that alter it
29021           - Added LengthChanged event to allow applications to subscribe
29022             to any changes to the document
29023
29024 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
29025
29026         * TextBox.cs: 
29027           - Removed local password_char field (moved to TextBoxBase)
29028           - Now setting the document's password var when password is
29029             set
29030         * TextBoxBase.cs:
29031           - Added password_char field (needed here so MultiLine can
29032             access it)
29033           - Added logic to MultiLine property setter to set the document's
29034             variable when password display is allowed
29035           - Removed debug code and made some debug code conditional
29036         * TextControl.cs:
29037           - Added RecalculatePasswordLine() method to handle special password
29038             char only lines
29039           - Added PasswordChar property, also added related tracking vars
29040           - Draw() method now uses local text var for grabbing text to draw,
29041             this var is set to line.text unless we're doing password display,
29042             then it is set to the pre-generated all-password-chars line
29043           - Added calling RecalculatePasswordLine() method for password lines
29044
29045 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
29046
29047         * Hwnd.cs: 
29048           - Added Reparented property to allow tracking of Window Manager
29049             reparenting actions (which affect X/Y calculations of toplevel 
29050             windows)
29051           - Made ToString() print window handles in hex
29052         * XplatUIX11.cs:
29053           - AddConfigureNotify(): Now uses reparented state off Hwnd to
29054             determine if X/Y needs offsetting
29055           - AddConfigureNotify(): Fixed offset calculations
29056           - Now adds ReparentNotify messages into the queue
29057           - Now processes ReparentNotify messages and causes a 
29058             WM_WINDOWPOSCHANGED message to be sent upstream if a window
29059             is reparented (as most likely it's X/Y coordinates are changed
29060             due to that)
29061
29062 2005-12-14  Jackson Harper  <jackson@ximian.com>
29063
29064         * XplatUIX11.cs: Tool windows still need to respek focus.
29065
29066 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
29067
29068         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
29069           have a working release
29070
29071 2005-12-13  Jackson Harper  <jackson@ximian.com>
29072
29073         * Form.cs: Update styles after setting the border style regardless
29074         of whether or not the window is using a window manager.
29075
29076 2005-12-13  Jackson Harper  <jackson@ximian.com>
29077
29078         * Form.cs: We now hook into an internal window manager instead of just an
29079         MDI subsystem, this is so we can have properly behaving tool windows.
29080         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
29081         * InternalWindowManager.cs: New internal class that acts as a
29082         window manager for tool windows and as a base for mdi windows.
29083         * MdiWindowManager.cs: New class that acts as a window manager for
29084         mdi windows.
29085
29086 2005-12-12  Jackson Harper  <jackson@ximian.com>
29087
29088         * Control.cs: Updates so we match behavoir for for implicit
29089         controls. Fixes explosions in MDI.
29090
29091 2005-12-12  Jackson Harper  <jackson@ximian.com>
29092
29093         * Control.cs: Implement Invalidate (Region).
29094
29095 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
29096
29097         * Control.cs: 
29098           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
29099             the same events as MS does. MS fires events for each property 
29100             except, for unknown reasons, Cursor, when the control is reparented. 
29101             I can't seem to totally match add/remove since MS also fires some 
29102             VisibleChanged events, which makes no sense. Consolidated the
29103             parenting code into a separate method so it can be called from
29104             both Add and Remove. set_Parent no longer needs any special logic
29105             as it calls the parent's add method which implicitly fires
29106             all events
29107           - Removed some obsolete code and debug output
29108           - Enabled state is inherited from parents, if this is enabled
29109
29110 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
29111
29112         * Form.cs: Removed commented out code
29113
29114 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
29115
29116         * Control.cs:
29117           - Added internal version of Invoke, with additional argument 
29118             indicating if we're calling it from a Dispose() handler. That
29119             way we can avoid BeginInvoke throwing an exception if we're
29120             calling for an already destroyed window.
29121           - Added a dispose argument to BeginInvokeInternal, and made the
29122             check if a valid window handle chain exists conditional on
29123             it not being a dispose call
29124           - Removed code in DestroyHandle to destroy our children. Since we
29125             now handle the WM_DESTROY message we will catch all our children
29126             being destroyed.
29127           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
29128         * Form.cs:
29129           - Added a field to track the application context of the form.
29130           - No need to set closing variable as response to WM_CLOSE, instead
29131             we destroy the window. We also call PostQuitMessage if the form
29132             has an application context (which makes it the main app form,
29133             which, when closed terminates the app)
29134         * XplatUI.cs:
29135           - Dropped Exit() method, it's naming was confusing
29136           - Added PostQuitMessage() which causes GetMessage to return false
29137             once the message queue is empty
29138         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
29139           PostQuitMessage()
29140         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
29141           no longer a valid XplatUI method, but left it in since it's used
29142           internally. Added empty PostQuitMessage() method.
29143         * MenuAPI.cs: Replaced call to Exit() with call to
29144           PostQuitMessage, even though this is probably no longer needed.
29145         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
29146         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
29147         * Application.cs:
29148           - Replaced call to XplatUI.Exit() with PostQuitMessage()
29149           - Removed old debug code that would call XplatUI for exception
29150             display, enabled standard exception handling (Still not enabled
29151             though, until NativeWindow's ExternalExceptionHandler define
29152             is removed
29153         * NativeWindow.cs:
29154           - Added internal method to allow control to update NativeWindow
29155             after a window has been destroyed
29156           - Added handling of already destroyed windows when calling i
29157             DestroyWindow
29158           - Added removal of handle from list on ReleaseHandle
29159         * XplatUIX11.cs:
29160           - Dropped GetMessageResult var and related code
29161           - Added PostQuitState to field to track if PostQuitMessage has been
29162             called
29163           - Dropped Exit() method
29164           - Added PostQuitMessage() method
29165           - GetMessage now will return false if PostQuitState is set and no
29166             more messages are in the queue.
29167           - Expose handler will no longer generate WM_PAINT messages if we are
29168             in PostQuitState since it's very likely any windows have already
29169             been destroyed, and since Hwnd won't get updated until we have
29170             processed the DestroyNotify we'd be causing X errors.
29171         
29172 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29173
29174         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
29175           Thanks to Mike for pointing out the err of my ways.
29176
29177 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29178
29179         * Control.cs(PreProcessMessage): Moved menu handling back, but
29180           after all other key handling, to match MS (who handles Menu in
29181           DefWndProc)
29182         * Menu.cs (WndProc): Removed my brainfart
29183
29184 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29185
29186         * Control.cs(PreProcessMessage): Removed special menu handling 
29187         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
29188
29189 2005-12-07  Mike Kestner  <mkestner@novell.com>
29190
29191         * Control.cs : special case SYSKEYUP so that we can adjust keynav
29192         state according in tracker.
29193         * Menu.cs : promote tracker field to base class and provide a tracker
29194         lookup capability.  Add/Remove shortcuts dynamically if the top menu
29195         has a tracker. Unparent items that are removed from the collection.
29196         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
29197         * Theme*.cs: add always_show_hotkeys field to support configurability
29198         of mnemonic display.  win32 doesn't show mnemonics until Alt is
29199         pressed.
29200
29201 2005-12-07  Jackson Harper  <jackson@ximian.com>
29202
29203         * MdiChildContext.cs: Use Control.ResetCursor.
29204         * Control.cs: ResetCursor needs to set the property so that the
29205         correct XplatUI call gets made.
29206
29207 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29208
29209         * Control.cs: More fixes to make our key events match MS. We
29210           were not setting the modifier state on KeyData, and we were
29211           not generating any events when Alt was pressed with a key
29212           since handling of WM_SYSxxx was missing for the OnKey methods.
29213
29214 2005-12-07  Jackson Harper  <jackson@ximian.com>
29215
29216         * MdiChildContext.cs: reenable the sizing code.
29217         - When the mouse leaves a window reset its cursor.
29218
29219 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
29220
29221         * ThemeClearlooks.cs: Reflect latest Hwnd changes
29222
29223 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29224
29225         * Hwnd.cs: Now using the theme 3d bordersize to calculate
29226           widths of Fixed3D borders
29227
29228 2005-12-07  Jackson Harper  <jackson@ximian.com>
29229
29230         * MdiClient.cs: Fix warnings. Earn Mike's love.
29231
29232 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
29233
29234         * ThemeClearlooks.cs:
29235           - Adjusted mouse over button color
29236           - Added first parts of CheckBox drawing
29237           - Added correct color for selected text background
29238           - Fixed ComboBox drawing
29239           - Added CPDrawBorder3D and CPDrawBorder
29240
29241 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
29242
29243         * XplatUIX11.cs: Added call to XBell for AudibleAlert
29244
29245 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
29246
29247         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29248           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
29249           alert users via sound. We could add an enum arg with different
29250           types of alerts in the future
29251
29252 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
29253
29254         * Control.cs: Fix behaviour problems pointed out by Mike
29255
29256 2005-12-05  Mike Kestner  <mkestner@novell.com>
29257
29258         * StatusBarPanel.cs: add Invalidate method and hook it into all the
29259         prop setters.  Calls parent.Refresh for now, but could be maybe be
29260         optimized with an internal method on StatusBar at some point.
29261         [Fixes #76513]
29262
29263 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
29264
29265         * RichTextBox.cs: Implemented get_SelectionColor
29266
29267 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
29268
29269         * ThemeClearlooks.cs:
29270           - Removed dead code
29271           - Draw black button border only if button is Form.AcceptButton
29272           - Draw correct button color for pressed RadioButton if the mouse 
29273             has entered the button
29274           - Updated ProgressBar drawing!
29275           - Updated CPDrawSizeGrip drawing
29276           - Updated StatusBarPanel drawing
29277
29278 2005-12-05  Mike Kestner  <mkestner@novell.com>
29279
29280         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
29281         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
29282
29283 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
29284
29285         * ThemeClearlooks.cs: Initial check-in, activate with
29286           export MONO_THEME=clearlooks
29287         * ThemeEngine.cs: Added ThemeClearlooks
29288
29289 2005-12-03  Mike Kestner  <mkestner@novell.com>
29290
29291         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
29292         [Fixes #76897]
29293
29294 2005-12-02  Jackson Harper  <jackson@ximian.com>
29295
29296         * Form.cs: If the child form has no menu the default main menu is
29297         used as the active menu.
29298
29299 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
29300
29301         * ListBox.cs: Check if any items exist before trying to resolve 
29302           coordinates into items
29303
29304 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
29305
29306         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
29307           as the second color for the background hatch
29308
29309 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
29310
29311         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
29312         * RichTextBox.cs: FormatText position arguments are 1-based, now making
29313           sure that what we pass to FormatText is always 1-based. Fixes #76885
29314
29315 2005-11-29  Miguel de Icaza  <miguel@novell.com>
29316
29317         * NumericUpDown.cs (EndInit): When we are done initializing,
29318         reflect any updates on the UI.
29319
29320 2005-12-02  Jackson Harper  <jackson@ximian.com>
29321
29322         * ImplicitHScrollBar.cs:
29323         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
29324         their container controls.
29325         * TreeView.cs: Use the new implicit scrollbars.
29326
29327 2005-12-02  Jackson Harper  <jackson@ximian.com>
29328
29329         * TreeView.cs: Make top_node internal so the TreeNodeCollections
29330         can play with it.
29331         * TreeNodeCollection.cs: If we remove the topnode we need to
29332         update topnode to the next node in line.
29333         - When clearing nodes go through the same process as removing
29334         them, so they get depareneted and checked if they are top node.
29335
29336 2005-12-01  Jackson Harper  <jackson@ximian.com>
29337
29338         * TreeView.cs: When imagelists are used the image area is
29339         selectable as well as the text.
29340         - If there are no selected nodes select the first one.
29341         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
29342         so don't do it more then we need to.
29343
29344 2005-12-01  Jackson Harper  <jackson@ximian.com>
29345
29346         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
29347         that arrows can be scaled.
29348
29349 2005-12-01  Jackson Harper  <jackson@ximian.com>
29350
29351         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
29352         fail. Patch by Dieter Bremes
29353
29354 2005-11-30  Jackson Harper  <jackson@ximian.com>
29355
29356         * Form.cs: Property is 2.0 only
29357         * PrintDialog.cs: Signature fix.
29358
29359 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
29360
29361         * TextControl.cs: 
29362           - No longer artificially moves text 2 pixels down (now that we have
29363             borders this is no longer needed)
29364           - Added calcs for left, hanging and right indent
29365
29366 2005-11-23  Mike Kestner  <mkestner@novell.com>
29367
29368         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
29369
29370 2005-11-30  Jackson Harper  <jackson@ximian.com>
29371
29372         * MdiChildContext.cs: Set the cloned menus forms, as these don't
29373         get cloned as part of CloneMenu ().
29374         * Menu.cs: Make sure the parent of the items get set correctly
29375         when they are added.  And the owners are notified of the changes.
29376         * Form.cs: Create an ActiveMenu property, so that when MDI is used
29377         we can change the menu being displayed/handled by the form without
29378         changing the menu assosciated with the form.
29379         - Don't let Mdi children draw/handle menus.
29380         
29381 2005-11-30  Jackson Harper  <jackson@ximian.com>
29382
29383         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
29384         a MenuChanged event. Just to make the API a little more
29385         consistent.
29386         * MainMenu.cs:
29387         * MenuItem.cs: Use the new OnMenuChanged
29388         * MdiChildContext.cs: Handle menu merging.
29389         * Form.cs: Implement MergedMenu.
29390         
29391 2005-11-30  Jackson Harper  <jackson@ximian.com>
29392
29393         * Menu.cs: We were misusing Add. Add goes behind the specified
29394         index according to the docs, and does not replace the specified
29395         index. So I added an Insert method.
29396
29397 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
29398
29399         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
29400           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
29401           is for Jackson
29402         * RichTextBox.cs: Added calls to base for DnD events
29403
29404 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
29405
29406         * TextControl.cs:
29407           - Fixed drag-selection related crash; style fixes
29408           - Implemented undo class
29409             o Implemented method to capture document state for specified
29410               range in document tree
29411             o Implemented method to restore captured document state
29412             o Implemented cursor tracking
29413             o Implemented basic undo stack
29414           - Added undo cursor tracking to methods altering cursor location
29415           - Added undo tracking to selection deletion (still missing
29416             other text-altering hookups)
29417         * RichTextBox.cs:
29418           - Added SelectionLength property
29419           - Implemented CanPaste()
29420           - Implemented Paste()
29421           - Added missing protected methods
29422           - Fixed RTF->Document conversion; now uses font index 0 and color 
29423             index 0 as the default font for the parsed text
29424           - Fixed RTF<->Document font size translation
29425           - Fixed RTF generation, now properly handles cross-tag boundaries
29426             for single line selection
29427           - No longer always appends blank line to generated RTF
29428           - Removed TODOs
29429           - Added missing attributes
29430           - Hooked up undo-related methods
29431         * TextBoxBase.cs:
29432           - Implemented Copy()
29433           - Implemented Paste()
29434           - Implemented Cut()
29435           - Fixed caret mis-behaviour on backspace across line-boundaries
29436
29437 2005-11-29  Jackson Harper  <jackson@ximian.com>
29438
29439         * MdiClient.cs: Add a method for activating mdi children. Very
29440         basic right now. I imagine someday it might need more girth.
29441         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
29442         children windows names are added to the menu item.
29443         * ThemeWin32Classic.cs: Draw the arrow if the item is an
29444         mdilist. This happens regardless of whether or not there are any
29445         mdi windows to see in the list, and according to my tests happens
29446         before the items are even added. Also happens if there isn't even
29447         an mdi client to get windows from.
29448
29449 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
29450
29451         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
29452         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
29453
29454 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
29455
29456         * DataGridTableStyle.cs:
29457           - Create always the styles for the missing columns even if they are
29458             provided by the user (not default table style)
29459         * DataGrid.cs:
29460           - Fixes bug 76770
29461           - Fixes SetDataBinding (always re-attach source)
29462           - Fixes SetNewDataSource (only clear styles if they are not for 
29463             this source)
29464          -  Expands OnTableStylesCollectionChanged to handle style refresh 
29465             and remove properly
29466
29467 2005-11-29  Jackson Harper  <jackson@ximian.com>
29468
29469         * FileDialog.cs: Implement missing bits, remove some dead
29470         code.
29471         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
29472         creation of the panel so that the options set on the dialog are
29473         seen when the panel is created.
29474         * TreeView.cs: raise a click when items are clicked.
29475         
29476 2005-11-29  Jackson Harper  <jackson@ximian.com>
29477
29478         * MdiClient.cs: Pass some signature methods through to base.
29479
29480 2005-11-28  Jackson Harper  <jackson@ximian.com>
29481
29482         * ListView.cs: Raise the click event when items are clicked.
29483
29484 2005-11-28  Jackson Harper  <jackson@ximian.com>
29485
29486         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
29487         a nullref.
29488
29489 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
29490
29491         * ThemeNice.cs: - Removed 1 pixel bitmaps
29492           - Use SmoothingMode.AntiAlias where it makes sense
29493             (ScrollButton arrow for example)
29494           - Enhanced Button focus drawing
29495           - Fixed ComboBox drawing (no artefacts anymore, focus
29496             rectangle is back again, reduced size of ComboButton, etc.)
29497           - Fixed RadioButton focus drawing for Appearence.Button
29498           - Slight ScrollButton redesign
29499           - Some LinearGradientBrush size fixes
29500           - GroupBoxes have now rounded edges
29501           - Fixed StatusBar drawing
29502
29503 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
29504
29505         * ThemeNice.cs: - Remove dead code
29506           - use correct background colors for menus, etc.
29507           - Fake pixel drawing with 1 pixel bitmaps
29508
29509 2005-11-24  Jackson Harper  <jackson@ximian.com>
29510
29511         * MdiClient.cs: Size the scrollbars when resizing the window.
29512         - Resize the maximized windows when the client is resized
29513         * Form.cs: Make the child context available
29514         
29515 2005-11-23  Jackson Harper  <jackson@ximian.com>
29516
29517         * MdiChildContext.cs: Don't size windows if they are maximized.
29518
29519 2005-11-23  Mike Kestner  <mkestner@novell.com>
29520
29521         * ContextMenu.cs: use MenuTracker.
29522         * Control.cs: remove menu handle usage.
29523         * Form.cs: remove menu handle usage.
29524         * Hwnd.cs: remove menu handle usage.
29525         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
29526         motion and clicks to the new Tracker handlers.
29527         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
29528         and handle usage.
29529         * MenuAPI.cs: refactored to combine popup and menubar event handling.
29530         Killed the MENU and MENUITEM data types and associated collections
29531         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
29532         MenuTracker class that exposes the leftovers from the old MenuAPI
29533         static methods. Restructured Capture handling so that only one grab is
29534         done for the entire menu hierarchy instead of handing off grabs to
29535         submenus. Tracker now has an invisible control to Capture when active.
29536         * MenuItem.cs: add sizing accessors, kill Create
29537         and handle usage.
29538         * Theme.cs: remove menu handle and MENU(ITEM) usage.
29539         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
29540         MENU(ITEM). remove menu handle usage, use Menu directly.
29541         * XplatUIDriver.cs: remove menu handle usage.
29542         * XplatUIOSX.cs: remove menu handle usage.
29543         * XplatUIWin32.cs: remove menu handle usage.
29544         * XplatUIX11.cs: remove menu handle usage.
29545
29546 2005-11-22  Jackson Harper  <jackson@ximian.com>
29547
29548         * Hwnd.cs: Don't compute the menu size for
29549         DefaultClientRectangle.
29550         - Reenable menu sizes being computed for GetClienRectangle.
29551         * Form.cs: Remove comment of trechery
29552         
29553 2005-11-22  Jackson Harper  <jackson@ximian.com>
29554
29555         * Hwnd.cs: The adjustments for the menu bar are made when it is
29556         attached to the form.
29557
29558 2005-11-19  Jackson Harper  <jackson@ximian.com>
29559
29560         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
29561         (just like on windows).
29562
29563 2005-11-19  Jackson Harper  <jackson@ximian.com>
29564
29565         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
29566         use real buttons anymore because they are in non client area. The
29567         one TODO here is that I need to somehow invalidate a section of
29568         the non client area.
29569
29570 2005-11-18  Jackson Harper  <jackson@ximian.com>
29571
29572         * Control.cs: Put the enum check back in now that MDI doesnt have
29573         to use this to set border styles.
29574         * Form.cs: Only set mdi child windows borders if the handle has
29575         been created.
29576         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
29577         this directly on to the driver.
29578         - Get the move start position before adjusting for the titlebar
29579         height, this fixes the windows "skipping" when they are first
29580         moved.
29581
29582 2005-11-18  Jackson Harper  <jackson@ximian.com>
29583
29584         * XplatUIX11.cs: Just compute the mdi borders separately as they
29585         don't totally match up with normal form borders.
29586
29587 2005-11-18  Jackson Harper  <jackson@ximian.com>
29588
29589         * Control.cs: Set WS_ styles for borders, so that the driver does
29590         not have to retrieve the control instance to figure out what kind
29591         of borders it should have.
29592         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
29593         driver can know its an mdi child easily.
29594         * XplatUIX11.cs: Get the border styles and whether the window is
29595         MDI from the Styles and ExStyles params instead of having to get a
29596         control. This prevents a chicken and egg problem.       
29597
29598 2005-11-18  Jackson Harper  <jackson@ximian.com>
29599
29600         * MdiClient.cs: Fix typo so scrollbars show up correctly.
29601
29602 2005-11-18  Jackson Harper  <jackson@ximian.com>
29603
29604         * MdiClient.cs: Calculate when to add and remove scrollbars
29605         correctly.
29606         * MdiChildContext.cs: Adjust the y position to take the titlebar
29607         into account.
29608         - No height for FormBorderStyle.None
29609
29610 2005-11-18  Jackson Harper  <jackson@ximian.com>
29611
29612         * Control.cs: Allow non enum values to be used for
29613         InternalBorderStyle.  MDI does this to set a special border style.
29614         - New utility methods for converting points to/from client coords
29615         - Add the newly created control to the Controls collection before
29616         updating its style. This way UpdateStyle can walk the control
29617         heirarchy to find the control if needed.
29618         so I don't need to create a new Point object all the time.
29619         * Form.cs: Let MDI windows handle their border styles.
29620         - Set styles on MDI windows so the correct title style is derived.
29621         * MdiChildContext.cs: Move all the painting and window handling
29622         into the non client area.
29623         - Use correct sizing and put correct buttons on frames based on
29624         the FormBorderStyle.
29625         - Notify the mdi client about scrolling
29626         - Need to handle the buttons ourselves now, because they are all
29627         in non client areas and we can't add controls there.
29628         * MdiClient.cs: Halfway to scrolling, this implementation is
29629         somewhat broken though, we need to check to make sure other
29630         windows aren't causing scrolling before removing the bars. Also
29631         the bars need to be drawn on top, maybe I can switch implicit
29632         controls to be on top.
29633         * Hwnd.cs: caption_height and tool_caption_height are now
29634         properties of an hwnd, this way they can be set by the driver
29635         based on the type of window they are.  In X11 the window manager
29636         handles the decorations so caption_height is zero unless its an
29637         MDI window.
29638         - Add 3 pixel borders for MDI windows (0xFFFF).
29639         - Get rid of some code duplication, have DefaultClientRectanle
29640         just call GetClientRectangle.
29641         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
29642         Hwnd now.
29643         - Set border styles differently for mdi windows.
29644         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
29645         Hwnd now.
29646         
29647 2005-11-15  Mike Kestner  <mkestner@novell.com>
29648
29649         * Menu.cs: when adding an item to the collection, if item is already 
29650         parented, remove it from the parent.
29651
29652 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
29653
29654         * X11DesktopColors.cs: Added KDE support
29655
29656 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
29657
29658         * XplatUIWin32.cs: 
29659           - Clipboard methods now can translate Rtf format
29660           - No longer removes clipboard contents whenever a new format is added
29661             to allow placing multiple formats on the clipboard
29662         * Clipboard.cs: Clipboard now supports getting a IDataObject and
29663           will place all formats contained in it onto the clipboard. Also
29664           now cleans the clipboard before placing a new object onto it
29665         * RichTextBox.cs:
29666           - Implemented set_Rtf
29667           - Implemented set_SelectedRtf
29668           - Created InsertRTFFromStream() method to allow single code base
29669             for all properties and methods that insert RTF into document
29670           - Removed debug output
29671         * TextControl.cs:
29672           - Fixed Delete(int) to fix up line numbers
29673           - Fixed ReplaceSelection to combine start and end line
29674           - Fixed serious DeleteChars bug that would leave the document tree
29675             broken
29676           - Improved DumpTree with several logic checks to detect broken
29677             document trees
29678           - Removed debug lines
29679           - Fixed Caret.WordForward/WordBack moving code, now always also 
29680             updates caret.tag (fixes crash when word-selecting across tag
29681             boundaries via keyboard)
29682           - Added Insert() method for inserting multiline text into documents
29683           - Fixed DeleteChars() calculation errors that would cause a broken
29684             tag chain with multiple tag lines
29685           - DeleteChars() no longer crashes on multi-tag lines if not all tags
29686           - Split() no longer moves caret if split is at caret location
29687           - ReplaceSelection() now updates the cursor and re-displays it
29688           - ReplaceSelection() now uses new Insert() method to avoid code
29689             duplication
29690           - FormatText() can now handle formatting partial lines
29691         * TextBoxBase.cs:
29692           - Append now uses new TextControl.Insert() method (this avoids 
29693             duplicate code)
29694           - Implemented Ctrl-X (Cut) (
29695           - Implemented Ctrl-C (Copy)
29696           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
29697             regeneration when pasting text; roundtripping Copy&Paste within
29698             edit control still fails due to some calculation bugs in GenerateRTF)
29699           - The Delete key will now remove the current selection if it is visible
29700         * TextBox.cs: Removed debug lines
29701         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
29702           driver to be initialized and can't therefore be done via a static ctor)
29703
29704 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
29705
29706         * TextControl.cs: Added backend code for finding char arrays and strings
29707         * TextBoxBase.cs:
29708           - Added mouse wheel scroll support
29709           - Added support for VScroll and HScroll events
29710         * RichTextBox.cs:
29711           - Implemented all seven Find() variants
29712           - Implemented GetCharFromPosition()
29713           - Implemented GetCharIndexFromPosition()
29714           - Implemented GetLineFromIndex()
29715           - Implemented GetPositionFromCharIndex();
29716           - Implemented SaveFile for PlainText and UnicodeText
29717           - Fixed set_Font, now setting a new font applies that font to
29718             the whole document
29719           - Implemented generic Document to RTF converter
29720           - Implemented SaveFile for RichText format (still missing unicode
29721             conversion for non-ansi chars)
29722           - Implemented get_Rtf
29723           - Implemented get_SelectedRtf
29724
29725 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
29726
29727         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
29728           to allow any captures to be released before triggering OnClick. This
29729           way a click handler may capture the mouse without interference.
29730         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
29731           This way we send them even though X may not allow a grab (if the window
29732           isn't visible, for example)
29733
29734 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
29735
29736         * DataGridViewRowEventArgs.cs: DataGridView implementation
29737         * DataGridViewElement.cs: DataGridView implementation
29738         * DataGridViewComboBoxCell.cs: DataGridView implementation
29739         * DataGridViewDataErrorContexts.cs: DataGridView implementation
29740         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
29741         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
29742         * ImageLayout.cs: DataGridView implementation
29743         * DataGridViewComboBoxColumn.cs: DataGridView implementation
29744         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
29745         * DataGridViewSelectionMode.cs: DataGridView implementation
29746         * IDataGridViewEditingControl.cs: DataGridView implementation
29747         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
29748         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
29749         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
29750         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
29751         * DataGridViewColumnSortMode.cs: DataGridView implementation
29752         * DataGridView.cs: DataGridView implementation
29753         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
29754         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
29755         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
29756         * Padding.cs: DataGridView implementation
29757         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
29758         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
29759         * DataGridViewRowEventHandler.cs: DataGridView implementation
29760         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
29761         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
29762         * DataGridViewButtonCell.cs: DataGridView implementation
29763         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
29764         * DataGridViewEditMode.cs: DataGridView implementation
29765         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
29766         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
29767         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
29768         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
29769         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
29770         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
29771         * DataGridViewCellEventHandler.cs: DataGridView implementation
29772         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
29773         * DataGridViewCellStyleConverter.cs: DataGridView implementation
29774         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
29775         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
29776         * DataGridViewColumnEventArgs.cs: DataGridView implementation
29777         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
29778         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
29779         * QuestionEventArgs.cs: DataGridView implementation
29780         * IDataGridViewEditingCell.cs: DataGridView implementation
29781         * DataGridViewTriState.cs: DataGridView implementation
29782         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
29783         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
29784         * DataGridViewColumnCollection.cs: DataGridView implementation
29785         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
29786         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
29787         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
29788         * DataGridViewColumn.cs: DataGridView implementation
29789         * DataGridViewCellBorderStyle.cs: DataGridView implementation
29790         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
29791         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
29792         * DataGridViewRow.cs: DataGridView implementation
29793         * DataGridViewImageCellLayout.cs: DataGridView implementation
29794         * DataGridViewImageCell.cs: DataGridView implementation
29795         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
29796         * DataGridViewCheckBoxCell.cs: DataGridView implementation
29797         * DataGridViewHeaderCell.cs: DataGridView implementation
29798         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
29799         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
29800         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
29801         * DataGridViewTextBoxColumn.cs: DataGridView implementation
29802         * QuestionEventHandler.cs: DataGridView implementation
29803         * DataGridViewCellStyleScopes.cs: DataGridView implementation
29804         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
29805         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
29806         * DataGridViewCell.cs: DataGridView implementation
29807         * DataGridViewCellEventArgs.cs: DataGridView implementation
29808         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
29809         * DataGridViewCellStyle.cs: DataGridView implementation
29810         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
29811         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
29812         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
29813         * TextFormatFlags.cs: DataGridView implementation
29814         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
29815         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
29816         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
29817         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
29818         * DataGridViewButtonColumn.cs: DataGridView implementation
29819         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
29820         * HandledMouseEventArgs.cs: DataGridView implementation
29821         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
29822         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
29823         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
29824         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
29825         * DataGridViewRowCollection.cs: DataGridView implementation
29826         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
29827         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
29828         * DataGridViewHitTestType.cs: DataGridView implementation
29829         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
29830         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
29831         * DataGridViewColumnEventHandler.cs: DataGridView implementation
29832         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
29833         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
29834         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
29835         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
29836         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
29837         * DataGridViewContentAlignment.cs: DataGridView implementation
29838         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
29839         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
29840         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
29841         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
29842         * DataGridViewPaintParts.cs: DataGridView implementation
29843         * DataGridViewCellCollection.cs: DataGridView implementation
29844         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
29845         * DataGridViewImageColumn.cs: DataGridView implementation
29846         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
29847         * DataGridViewElementStates.cs: DataGridView implementation
29848         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
29849         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
29850         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
29851         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
29852         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
29853         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
29854         * DataGridViewRowHeaderCell.cs: DataGridView implementation
29855         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
29856         * DataGridViewTextBoxCell.cs: DataGridView implementation
29857         * DataGridViewBand.cs: DataGridView implementation
29858         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
29859         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
29860         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
29861         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
29862         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
29863         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
29864         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
29865         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
29866         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
29867         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
29868         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
29869
29870 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
29871
29872         * ThemeWin32Classic.cs: 
29873           - Draw the outside focus rectangle around buttons
29874           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
29875             doesn't use end caps for every dash of a line anymore. This
29876             workaround ignores the forecolor.
29877
29878 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
29879
29880         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
29881           endian safe.
29882
29883 2005-11-07  Jackson Harper  <jackson@ximian.com>
29884
29885         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
29886
29887 2005-11-07  Jackson Harper  <jackson@ximian.com>
29888
29889         * ScrollableControl.cs: Calculate the maximum and change vars
29890         (more) correctly so that scrollbars appear as a sensible size.
29891
29892 2005-11-04  Jackson Harper  <jackson@ximian.com>
29893
29894         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
29895         collection.
29896         * TreeView.cs: When the tree is sorted null out the top_node so
29897         that it is recalculated.
29898         - Use dotted lines instead of dashed lines to match MS better.
29899
29900 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
29901
29902         * ListView.cs: 
29903           - Implements key search for items. Useful when browsing files with FileDialog
29904           - When changing view mode or when clear the items reset scrollbar positions
29905
29906 2005-11-04  Jackson Harper  <jackson@ximian.com>
29907
29908         * CurrencyManager.cs: Implement the MetaDataChanged event, the
29909         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
29910         as to what the method may do as there is no real way of creating a
29911         derived CurrencyManager and calling the method. 
29912
29913 2005-11-03  Jackson Harper  <jackson@ximian.com>
29914
29915         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
29916         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
29917         method which seems to just be used internally to refresh the tabs.
29918
29919 2005-11-03  Jackson Harper  <jackson@ximian.com>
29920
29921         * TabControl.cs: Implement the remove method. Fix some broken
29922         comments.
29923
29924 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29925
29926         * DateTimePicker.cs:
29927           - Added missing DateTimePickerAccessibleObject class
29928           - Added missing events
29929           - Added OnFontChanged method
29930         * Form.cs: Added missing attributes
29931         * TreeView.cs: Added missing attributes
29932
29933 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
29934
29935         * GridItemCollection.cs: Fix signatures
29936
29937 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29938
29939         * XplatUI.cs: Updated build rev/date
29940         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
29941           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
29942         * Application.cs: Trigger context-specific ExitThread events
29943
29944 2005-11-03  Jackson Harper  <jackson@ximian.com>
29945
29946         * Menu.cs:
29947         * MainMenu.cs:
29948         * GridTableStylesCollection.cs:
29949         * Timer.cs:
29950         * TabPage.cs:
29951         * HelpProvider.cs:
29952         * StatusBar.cs:
29953         * MonthCalendar.cs: Signature fixes
29954
29955 2005-11-03  Jackson Harper  <jackson@ximian.com>
29956
29957         * TreeNodeCollection.cs: Remove should not be virtual.
29958         * TreeView.cs: Implement the last of the missing methods.
29959
29960 2005-11-03  Jackson Harper  <jackson@ximian.com>
29961
29962         * TreeNodeConverter.cs: Implement to get off my class-status back.
29963
29964 2005-11-03  Jackson Harper  <jackson@ximian.com>
29965
29966         * TreeView.cs: Hookup the bits for drag and drop.
29967         * TreeNode.cs: Don't cache the tree_view or index anymore, now
29968         that nodes can be moved from tree to tree easily this just causes
29969         all sorts of problems.
29970         * TreeNodeCollection: Don't need to give treenodes an index and
29971         treeview anymore when they are added, these are computed on the
29972         fly. Also make sure to remove a node before its added.
29973
29974 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29975
29976         * TextControl.cs:
29977           - Added CaretSelection enum
29978           - Added comparison methods to Marker struct, makes selection code
29979             more readable
29980           - Added SelectionStart and SelectionEnd as 'moveable' location for
29981             the CaretDirection enum and handler
29982           - Added selection_prev variable to track optimized invalidation for
29983             word and line selection
29984           - Added SelectionVisible property (returns true if there is a valid 
29985             selection)
29986           - Switched CaretHasFocus to only display the caret if there is no
29987             visible selection
29988           - Avoiding StringBuilder.ToString to retrieve a single char, instead
29989             using the direct character index; should be much faster
29990           - Added various conditional debug statements
29991           - Fixed invalidation calculation for selection ranges
29992           - Added ExpandSelection() method to support word and line selection
29993           - Switched SetSelectionToCaret to use new Marker compare overloads
29994           - Added central IsWordSeparator() method to determine word 
29995             separators/whitespace and FindWordSeparator() to streamline common
29996             usage of IsWordSeparator()
29997         * TextBoxBase.cs:
29998           - Removed unneeded grabbed variable, it was just mirroring
29999             Control.Capture
30000           - No longer firing OnTextChanged event when Text setter is called,
30001             since the base will fire the event for us
30002           - Added handling of Ctrl-Up/Down selection
30003           - Added handling of Shift-Cursorkey selection
30004           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
30005             words
30006           - Added handling of Shift and Ctrl-Shift-Home/End selection
30007           - Removed some debug output
30008           - Added handling for single/double/tripple-click to place caret/
30009             select word/select line respectively (Fixes bug #76031)
30010           - Added support for drag expansion of word/line selection
30011         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
30012           current selection
30013
30014 2005-11-02  Jackson Harper  <jackson@ximian.com>
30015
30016         * X11Dnd.cs: If the drag is going to and from a MWF window just
30017         copy the data instead of sending it out through the X Selection
30018         mechanism.
30019
30020 2005-11-02  Jackson Harper  <jackson@ximian.com>
30021
30022         * X11Dnd.cs:
30023         * XplatUIX11.cs: When in a drag we don't want motion notify
30024         messages to get passed on to the other controls. This prevents
30025         mouse move messages from showing up in the drag source.
30026
30027 2005-11-02  Jackson Harper  <jackson@ximian.com>
30028
30029         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
30030         the correct button is release to end a drag.
30031         * XplatUIX11.cs: Make the button state internal so the drag system
30032         can access it.  Dragging needs to know about all button releases,
30033         not just left button.
30034
30035 2005-11-02  Miguel de Icaza  <miguel@novell.com>
30036
30037         * Form.cs (Icon): If the icon is null, reset the icon to the
30038         default value. 
30039
30040         * Cursor.cs: When writing the AND-mask bitmap do not include the
30041         number of colors, but hardcode those to two (black and white),
30042         fixes the loading of color cursors (Paint Dot Net).
30043
30044         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
30045         turn off autoscaling.
30046
30047         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
30048
30049 2005-11-02  Jackson Harper  <jackson@ximian.com>
30050
30051         * X11Dnd.cs: Make sure to send a status message if the pointer
30052         enters a control that can not accept a drop, otherwise the cursor
30053         isn't updated correctly. Also tried to compress the lines of code
30054         a bit.
30055
30056 2005-11-02  Jackson Harper  <jackson@ximian.com>
30057
30058         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
30059         set actions correctly.  This isn't perfect as XDND and win32 have
30060         some differences on how you allow actions. I'll clear this up by
30061         adding a path for drag from MWF to MWF windows.
30062         * XplatUIX11.cs: Hook into the dnd system.
30063
30064 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
30065
30066         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
30067         previously shown but they are no longer need it. Very obvious when 
30068         browsing files with FileDialog.
30069
30070 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
30071
30072         * Control.cs: We always need to call OnPaintBackground. We pretty much
30073           ignore AllPaintingInWmPaint and always do the painting there, whether 
30074           it's set or not, since we always ignore the WM_ERASEBKGND message 
30075           (which we don't generate on X11). This fixes #76616.
30076         * Panel.cs: Removed unneeded background painting. This happens properly
30077           in Control.cs already
30078
30079 2005-10-31  Mike Kestner  <mkestner@novell.com>
30080
30081         * Menu.cs: Add items to collection before setting their index.
30082         * MenuItem.cs : add range checking with ArgumentException like MS.
30083         [Fixes #76510]
30084
30085 2005-10-31  Jackson Harper  <jackson@ximian.com>
30086
30087         * ListBox.cs: Invalidate if the area is visible at all not just
30088         contained in the visible rect. Fixes unselection of semi visible
30089         items.
30090
30091 2005-10-31  Jackson Harper  <jackson@ximian.com>
30092
30093         * Control.cs: Consistently name the dnd methods. Make them
30094         internal so we can override them to match some MS behavoir
30095         internally.
30096         * Win32DnD.cs: Use the new consistent names.
30097
30098 2005-10-31  Jackson Harper  <jackson@ximian.com>
30099
30100         * TreeView.cs: Don't draw the selected node when we lose focus.
30101
30102 2005-10-31  Jackson Harper  <jackson@ximian.com>
30103
30104         * X11Dnd.cs: We still need to reset the state even though a full
30105         reset isn't being done, otherwise status's still get sent all over
30106         the place.
30107
30108 2005-10-31  Jackson Harper  <jackson@ximian.com>
30109
30110         * Control.cs: Make the dnd_aware flag internal so the dnd
30111         subsystem can check it. Catch exceptions thrown in dnd handlers to
30112         match MS behavoir.
30113         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
30114         * X11Dnd.cs: Handle null data in the converters. Set the XDND
30115         version when sending a XdndEnter. Use the control/hwnd dnd_aware
30116         flags to reduce the number of dnd enters/status's sent.
30117
30118 2005-10-31  Jackson Harper  <jackson@ximian.com>
30119
30120         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
30121
30122 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
30123
30124         * PictureBox.cs: Fixes 76512
30125
30126 2005-10-28  Jackson Harper  <jackson@ximian.com>
30127
30128         * X11Dnd.cs: Early implementation to support winforms being a drag
30129         source for data on X11. Also restructured the converters so they
30130         can go both ways now.
30131         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
30132         
30133 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
30134
30135         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
30136           clipboard requests
30137
30138 2005-10-27  Jackson Harper  <jackson@ximian.com>
30139
30140         * TreeNode.cs: Implement serialization so my DnD examples will work.
30141
30142 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
30143
30144         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
30145           TreeView.cs: Don't dispose objects that are not owned.
30146           
30147 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
30148
30149         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
30150           should retrieve the current cursor and report that, but XplatUI
30151           doesn't (yet) have an interface for that (and I'm not sure I even
30152           can, on X11)
30153         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
30154           until any message loop processing is done (and the WM_SETCURSOR
30155           replaces the cursor to the proper one)
30156         * XplatUIX11.cs: 
30157           - Fixed override behaviour, we can't set the cursor globally on X11, 
30158             just for our windows.
30159           - Invalidating the System.Drawing X11 display handle when we are
30160             shutting down
30161         * Control.cs: Fix to make csc happy
30162
30163 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
30164
30165         * TextBoxBase.cs: 
30166           - get_Text: Add last line (without trailing newline) to returned
30167             value (Fixes 76212)
30168           - get_TextLength: Count last line in returned length
30169           - ToString: Call Text property instead of duplicating code
30170
30171 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
30172
30173         * ImageList.cs: Dispose ImageAttributes objects.
30174
30175 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
30176
30177         * ImageList.cs: Use attribute constructors with less arguments where
30178           possible.
30179
30180 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
30181
30182         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
30183           Use typeof instead of strings when assembly is referenced. Added
30184           some more comments.
30185
30186 2005-10-21  Jackson Harper  <jackson@ximian.com>
30187
30188         * ListView.cs: Raise a double click event. Also tried to somewhat
30189         fix when the selectedindexchanged event is raised. Its still
30190         broken though.
30191
30192 2005-10-21  Jackson Harper  <jackson@ximian.com>
30193
30194         * TreeView.cs: New method to invalidate the plus minus area of a
30195         node without invalidating the whole node (maybe this can be used
30196         in some more places).
30197         * TreeNodeCollection.cs: When adding to an empty node we need to
30198         invalidate its plus minus area so the little block shows up.
30199         
30200 2005-10-21  Jackson Harper  <jackson@ximian.com>
30201
30202         * TreeView.cs: Make sure that when we invalidate a node the bounds
30203         are big enough to cover the selected box and the focus
30204         rectangle. Use a different colour for the lines connecting nodes
30205         so they show up with all themes.
30206
30207 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
30208
30209         * NativeWindow.cs: Don't call anything that could call into the driver,
30210           we might be on a different thread.
30211
30212 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
30213
30214         * Control.cs(Dispose): Since Dispose might run on a different thread,
30215           make sure that we call methods that could call into the driver via
30216           invoke, to avoid thread issues
30217
30218 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
30219
30220         * XplatUI.cs: Removed finalizer
30221         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
30222           not allowing to be called on the finalizer thread.
30223
30224 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
30225
30226         * ImageList.cs:
30227           - Reverted r51889 and r51891.
30228           - Added ImageListItem class that stores unmodified image items and image
30229             properties required to create list images until handle is created.
30230           - Added AddItem and moved image creation logic to AddItemInternal.
30231           - Added CreateHandle method that creates images based on unmodified items.
30232           - Added DestroyHandle that changes state to store unmodified items.
30233           - Add and AddStrip methods no more create handle.
30234           - ReduceColorDepth has no return value.
30235           - Dispose destroys handle.
30236           - Modified other methods to reflect the above changes.
30237           - Implemented key support.
30238           - Added profile 2.0 members and attributes.
30239           - Added private Reset and ShouldSerialize methods that provide the same
30240             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
30241             them as they are private.
30242           - Added some more comments about implementation details.
30243
30244 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30245
30246         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
30247
30248 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30249
30250         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
30251
30252 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30253
30254         * DataGridDrawingLogic.cs: Fixes column hit calcultation
30255         * DataGridColumnStyle.cs: Remove debug message
30256
30257 2005-10-20  Jackson Harper  <jackson@ximian.com>
30258
30259         * TreeView.cs: We can always get input keys regardless of whether
30260         or not editing is enabled. They are used for navigation.
30261
30262 2005-10-20  Jackson Harper  <jackson@ximian.com>
30263
30264         * TreeNode.cs: Use the viewport rect for determining if a node
30265         needs to be moved for visibility. Don't use Begin/End edit. This
30266         calls a full refresh when its done.
30267         * TreeView.cs: New SetBottom works correctly.  Make the viewport
30268         rect property internal so the treenodes can see it. When clicking
30269         on a node we need to ensure that its visible because it might just
30270         be partly visible when clicked.
30271
30272 2005-10-20  Jackson Harper  <jackson@ximian.com>
30273
30274         * TreeNodeCollection.cs: Remove debug code.
30275
30276 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
30277
30278         * Datagrid.cs: Implements column sorting in Datagrid
30279         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
30280
30281 2005-10-20  Jackson Harper  <jackson@ximian.com>
30282
30283         * TreeNodeCollection.cs: Remove items properly. Update the correct
30284         area after removing them.
30285
30286 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
30287
30288         * Datagrid.cs: Should not call base.OnPaintBackground
30289
30290 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
30291
30292         * XplatUIX11.cs (GetMessage):
30293           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
30294             window instead of client window
30295           - Now properly calculates NC_xBUTTONUP message coordinates
30296           - ScreenToMenu now properly calculates it's coordinates of whole 
30297             window, since menus are in the whole window, not in the client
30298             window
30299           - Added WholeToScreen coordinate translation method
30300
30301 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
30302
30303         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
30304           want to return a message, loop back to the beginning of the function
30305           and grab the next real message to process instead.
30306
30307 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
30308
30309         * Splitter.cs: Properly set limits if no filler control is used
30310
30311 2005-10-19  Jackson Harper  <jackson@ximian.com>
30312
30313         * ColorDialog.cs: Don't show the help button if it is not enabled
30314         instead of disabling it (this is what MS does). Don't create the
30315         panel until the dialog is run, otherwise the vars (such as
30316         ShowHelp) are not set yet.
30317
30318 2005-10-19  Jackson Harper  <jackson@ximian.com>
30319
30320         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
30321         are reduced when adding nodes.
30322         * TreeNode.cs:
30323         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
30324         tree.
30325         
30326 2005-10-19  Jackson Harper  <jackson@ximian.com>
30327
30328         * FolderBrowserDialog.cs: End editing our treeview so the window
30329         actually gets refreshed.
30330
30331 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
30332
30333         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
30334           Obsoleted handling of WM_ERASEBKGND, now always draws our background
30335           inside of WM_PAINT
30336
30337 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30338
30339         * MenuAPI.cs: Returns after Hidding window
30340         * XplatUIX11.cs: Added TODO found while debugging menu issues
30341
30342 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
30343
30344         * XplatUIX11.cs: Do not re-map the whole window when it's size
30345           becomes non-zero unless it's supposed to be actually visible
30346
30347 2005-10-18  Jackson Harper  <jackson@ximian.com>
30348
30349         * TreeView.cs: We don't need to keep a count anymore.
30350         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
30351         use the Grow method.
30352
30353 2005-10-18  Jackson Harper  <jackson@ximian.com>
30354
30355         * TreeNodeCollection.cs: Insert is not supported on arrays, so
30356         implement it manually here.
30357
30358 2005-10-18  Jackson Harper  <jackson@ximian.com>
30359
30360         * ImageList.cs: Dont kill the list when the colour depth is
30361         changed, just change the colour depth of all the images.
30362         - Same goes for setting the image size. Just resize them all
30363         instead of killing the list softly.
30364
30365 2005-10-18  Jackson Harper  <jackson@ximian.com>
30366
30367         * Control.cs: Don't invalidate empty rectangles.
30368
30369 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30370
30371         * ListViewItem.cs:
30372           - Adds checked item to the Checked/Item lists (where empty before)
30373           - Do not add items to the Selected lists if they are already present
30374         * ListView.cs:
30375           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
30376           - When deleting items make sure that we delete them for the Selected
30377           and Checked list also.
30378
30379 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30380
30381         * Label.cs: Dispose objects no longer used
30382         * ThemeWin32Classic.cs: Dispose objects no longer used
30383
30384 2005-10-18  Jackson Harper  <jackson@ximian.com>
30385
30386         * TabControl.cs: Don't refresh the whole control when the tabs are
30387         scrolled, we just need to refresh the tab area.
30388
30389 2005-10-17  Jackson Harper  <jackson@ximian.com>
30390
30391         * XplatUIX11.cs: Compress code a little bit. Only calculate the
30392         after handle when we need it.
30393
30394 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
30395
30396         * Control.cs: When the parent size changes, recalculate anchor 
30397           positions. Partial fix for #76462
30398
30399 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
30400
30401         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
30402           drawn. Fixes #76462
30403
30404 2005-10-17  Jackson Harper  <jackson@ximian.com>
30405
30406         * MonthCalendar.cs: Don't create the numeric up down until our
30407         handle is created. Otherwise our handle is created in the
30408         constructor and we don't know if we are a WS_CHILD or WS_POPUP
30409         yet.
30410
30411 2005-10-17  Jackson Harper  <jackson@ximian.com>
30412
30413         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
30414         correctly.
30415
30416 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
30417         * TreeNode.cs : small logical fix (was using local var instead of field)
30418         
30419 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
30420
30421         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
30422
30423 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
30424
30425         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
30426
30427 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
30428
30429         * Control.cs: 
30430           - Re-implemented anchoring code. My first version was really broken.
30431             This fixes bug #76033. Unlike the previous implementation we will
30432             no longer have round errors since all numbers are calculated from
30433             scratch every time. Removed various anchor-related obsolete vars.
30434           - InitLayout no longer causes layout event firing and layout to be 
30435             performed
30436
30437 2005-10-16  Jackson Harper  <jackson@ximian.com>
30438
30439         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
30440         which was broken).
30441
30442 2005-10-16  Jackson Harper  <jackson@ximian.com>
30443
30444         * TabControl.cs: Remove debug code.
30445
30446 2005-10-16  Jackson Harper  <jackson@ximian.com>
30447
30448         * XEventQueue.cs: Increase the default queue size (very simple
30449         apps needed to grow the queue).
30450         * Hwnd.cs: No finalizer so we don't need to suppress
30451         finalization. Compute the invalid area manually so a new rectangle
30452         does not newto be created.
30453         * ScrollableControl.cs: Don't set any params (otherwise visibility
30454         isn't set correctly).
30455         * MdiChildContext.cs: New constructor takes the mdi parent so it
30456         doesn't have to be computed and avoids a crash on windows. Draw
30457         the window icon properly, and allow the text to be seen.
30458         * Form.cs: Use new MdiChildContext constructor. Make sure the
30459         child context isn't null in wndproc.
30460         * TabControl.cs: Don't set focus, this is muddling keyboard
30461         behavoir. Expand the tab rows when a window size increase will
30462         allow extra tabs to be seen. Don't allow tabs smaller than the
30463         width of a window to be scrolled out of view.
30464         * TreeNode.cs:
30465         * TreeView.cs: Use measure string to calculate a nodes width, the
30466         width is cached and only updated when the text or the font is
30467         changed. Don't check for expand/collapse clicks on the first level
30468         nodes if root lines are disabled.
30469         
30470 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
30471
30472         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
30473
30474 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
30475
30476         * DataGridBoolColumn.cs: fixes warning
30477
30478 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
30479
30480         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
30481         to match more to match more precisely the MS Net behavior
30482
30483 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
30484
30485         * Hwnd.cs: Added field to track if window is mapped
30486         * XplatUIX11.cs: 
30487           - Unmap windows if they become 0-size, re-map when 
30488             they are >0 again; fixes #76035
30489           - Re-set our error handler after initializing X11Desktop
30490             to override any error handlers Gtk or whatever was called
30491             may have set.
30492
30493 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
30494
30495         * CheckedListBox.cs: Removed unused vars
30496         * ListView.cs: Fixed signatures
30497         * RichTextBox.cs: Removed unused vars
30498         * TextBoxBase.cs: Removed unused vars
30499         * XplatUIWin32.cs: Removed unused vars
30500         * XplatUIX11.cs: Removed unused vars
30501         * XplatUI.cs: Updated version and date to latest published
30502
30503 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
30504
30505         * Cursor.cs: Added private .ctor to work around a bug in
30506           resourceset (Thanks to Geoff Norton for the help on this)
30507         * SplitterEventArgs.cs: Made fields accessible so we don't
30508           waste boatloads of objects and can reuse the same one
30509           in Splitter
30510         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
30511           any captions and borders when generating screen coordinates
30512         * Splitter.cs: Reimplemented control, now fully complete, uses
30513           rubberband drawing, supports and obeys all properties, has
30514           proper cursors
30515
30516 2005-10-13  Miguel de Icaza  <miguel@novell.com>
30517
30518         * Form.cs (Form): Setup default values for autoscale and
30519         autoscale_base_size;  Make these instance variables, not static
30520         variables. 
30521
30522         (OnLoad): on the first load, adjust the size of the form.
30523
30524 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
30525
30526         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
30527           width argument to DrawReversibleRectangle()
30528         * XplatUIWin32.cs, XplatUIX11.cs: 
30529           - Implemented width for DrawReversibleRectangle()
30530           - Added logic to DrawReversibleRectangle that recognizes a zero
30531             width or height and only draws a line in that situation
30532         
30533 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
30534
30535         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
30536         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
30537         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
30538           method (it uses our FosterParent window to get a graphics context)
30539
30540 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
30541
30542         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
30543           and SetWindowBackground methods
30544         * Control.cs:
30545           - Setting proper ControlStyles
30546           - We no longer call XplatUI.SetWindowBackground and XplatUI.
30547             EraseWindowBackground, instead we draw the window background
30548             ourselves in PaintControlBackground. This behaviour is
30549             required to match MS, where, when OnPaintBackground is not
30550             called, the background is not drawn.
30551           - Removed unneeded Refresh() in set_Text
30552         * Hwnd.cs: Dropped the ErasePending support. No longer needed
30553         * XplatUIX11.cs:
30554           - Created DeriveStyles method to translate from CreateParams to
30555             FormBorderStyle and TitleStyle, also handles BorderStyle (which
30556             matches FormBorderStyle enum values)
30557           - Consolidated SetHwndStyles and CalculateWindowRect border/title
30558             style calculations into single DeriveStyles method
30559           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
30560             from redrawing the whole window on any resize or expose.
30561           - Fixed CreateWindow usage of SetWindowValuemask. Before not
30562             all styles were applied to our whole/client window appropriately
30563           - Removed EraseWindowBackground() and SetWindowBackground() methods
30564           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
30565             no longer clear/redraw the background through X
30566           - Removed handling of erase_pending bit, we have no use for it (or
30567             so it seems)
30568         * XplatUIOSX.cs:
30569           - Removed generation and handling of WM_ERASEBKGND message
30570           - Removed EraseWindowBackground() and SetWindowBackground() methods
30571           - Removed handling of hwnd.ErasePending flag
30572         * XplatUIWin32.cs:
30573           - Removed EraseWindowBackground() and SetWindowBackground() methods
30574           - We no longer call EraseWindowBackground on PaintEventStart, we 
30575             ignore the fErase flag, erasing is handled in Control in the
30576             background handler
30577         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
30578           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
30579           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
30580           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
30581           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
30582           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
30583           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
30584
30585 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
30586
30587         * PropertyGrids.cs: Get sub properties
30588         * PropertyGridView.cs: Fix drawing code
30589
30590 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30591
30592         * ListBox.cs: Fixes 76383
30593
30594 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30595
30596         * DataGridTextBoxColumn.cs: Sets location and size before attachment
30597         * ThemeWin32Classic.cs: Fixes border drawing and calculations
30598         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
30599
30600
30601 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30602
30603         * ComboBox.cs: Fixes border drawing
30604
30605 2005-10-10  Miguel de Icaza  <miguel@novell.com>
30606
30607         * MimeIcon.cs: Ignore errors if the file can not be read.
30608
30609 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30610
30611         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
30612          - Fixed border calculations
30613          - Fixed horizontal scrolling in single column listboxes
30614          - Fixed drawing issues
30615
30616 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
30617
30618         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
30619           FormBorderStyle enum
30620         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
30621           code to determine FormBorderStyles from CreateParams
30622         * Form.cs:
30623           - Fixed bug where we'd set the wrong window styles if we were
30624             not creating an MDI window
30625           - Added call to XplatUI.SetBorderStyle when form borders are set
30626         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
30627         * Hwnd.cs:
30628           - Removed obsolete edge style
30629           - Switched from BorderStyle to FormBorderStyle
30630         
30631 2005-10-10  Jackson Harper  <jackson@ximian.com>
30632
30633         * Form.cs: Use the property to get the window handle instead of
30634         accessing it directly. Prevents a null reference exception.
30635
30636 2005-10-10  Jackson Harper  <jackson@ximian.com>
30637
30638         * TreeView.cs: Don't adjust the rect given to DrawString now that
30639         our libgdiplus draws correctly.
30640
30641 2005-10-08  Jackson Harper  <jackson@ximian.com>
30642
30643         * TreeView.cs: Don't try to find the clicked on node if there are
30644         no nodes in the tree.
30645
30646 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
30647
30648         * RichTextBox.cs:
30649
30650           restore
30651
30652 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
30653
30654         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
30655           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
30656           ErrorProvider.cs:
30657           Use ResPool for brushes and dispose System.Drawing objects that
30658           are not used anymore.
30659
30660 2005-10-07  Jackson Harper  <jackson@ximian.com>
30661
30662         * MdiChildContext.cs: Use the new borders instead of drawing them
30663         ourselves.
30664
30665 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
30666
30667         * Calling UpdateBounds after changing the window's BorderStyle 
30668         since the style can change the ClientSize
30669
30670 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30671
30672         * Control.cs: Made PaintControlBackground virtual
30673         * Panel.cs: Overriding PaintControlBackground instead of using paint
30674           event; paint event method was interfering with 'real' users of the
30675           event.
30676
30677 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
30678
30679         * ThemeWin32Classic.cs: remove border drawing since it is handled
30680         by the base control class now and was causing double border drawing.
30681
30682 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30683
30684         * Panel.cs: Redraw our background on paint. Not a pretty solution,
30685           but it does seem to match MS behaviour. This fixes bug #75324
30686
30687 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30688
30689         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
30690           somewhat hackish looking
30691
30692 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30693
30694         * TextBoxBase.cs:
30695           - We now accept Enter even if AcceptEnter is false, if the containing
30696             form does not have an AcceptButton configured (fixes bug #76355)
30697           - Calculations are now fixed to no longer use Width/Height, but
30698             ClientSize.Width/Height, since we now support borders (this was
30699             a result of fixing borders and therefore bug #76166)
30700           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
30701             true (fixes bug #76354)
30702         
30703 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30704
30705         * Control.cs: 
30706           - Defaulting BorderStyle and setting it in XplatUI when our window 
30707             is created
30708           - Added enum check to InternalBorderStyle setter
30709         * XplatUIX11.cs: 
30710           - Added drawing of window borders
30711           - Now properly calculates WM decorations offset for toplevel 
30712             windows (fixes bug #74763)
30713         * XplatUIWin32.cs: 
30714           - Implemented BorderStyles for windows (we're letting win32 draw 
30715             the border for us)
30716           - Fixed the signature for SetWindowLong
30717         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
30718           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
30719           setting borders
30720         * UpDownBase.cs: Remove drawing of borders, this is handled by
30721           the driver, outside the client area
30722         * ListView.cs: Removed bogus border calculations. The control should
30723           be oblivious to borders, since those are not part of the client
30724           area. 
30725         * X11DesktopColors.cs: Commented out (currently) unneeded variables
30726         * ThemeWin32Classic.cs: Removed border calculations from ListView 
30727           drawing code
30728
30729 2005-10-06  Jackson Harper  <jackson@ximian.com>
30730
30731         * MdiChildContext.cs: Clear out the old virtual position remove
30732         all the unneeded calls to CreateGraphics.
30733
30734 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30735
30736         * TextControl.cs: Use proper color for highlighted text; fixes #76350
30737
30738 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30739
30740         * Form.cs: 
30741           - Added loading and setting of our new default icon
30742           - Only set icon if window is already created
30743
30744 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30745
30746         * Label.cs:
30747           - Do not explicitly set the foreground and background colors, to
30748             allow inheriting from parents (fixes #76302)
30749           - Use Control's InternalBorderStyle property to deal with borders
30750
30751 2005-10-06  Jackson Harper  <jackson@ximian.com>
30752
30753         * MdiChildContext.cs: Use the new xplatui function to draw a
30754         reversible rect.
30755
30756 2005-10-06  Jackson Harper  <jackson@ximian.com>
30757
30758         * Form.cs: Add the parent before creating the child context cause
30759         we need the parent when setting up the child.
30760
30761 2005-10-06  Jackson Harper  <jackson@ximian.com>
30762
30763         * FolderBrowserDialog.cs: redo the tree population code so a
30764         second thread isn't used. Should be a lot faster and more stable
30765         now.
30766
30767 2005-10-05  Jackson Harper  <jackson@ximian.com>
30768
30769         * TreeView.cs: There are no expand/collapse boxes if the node has
30770         no children.
30771
30772 2005-10-05  Jackson Harper  <jackson@ximian.com>
30773
30774         * X11DesktopColors.cs: Get menu colours for the gtk theme.
30775
30776 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
30777
30778         * FileDialog.cs: Fix InitialDirectory
30779
30780 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
30781
30782         * ComboBox.cs:
30783                 - Fixes changing between styles
30784                 - Fixes simple mode
30785                 - Fixes last item crashing when navigating with keyboard
30786
30787 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
30788
30789         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
30790
30791 2005-10-05  Jackson Harper  <jackson@ximian.com>
30792
30793         * TreeView.cs: If updating the root node do a full refresh.
30794         * TreeNode.cs: The root node should be expanded by default. Also
30795         added a utility prop to tell if we are the root node.
30796         * TreeNodeCollection.cs: Only refresh if the node we are being
30797         added to is expanded. Also added a comment on a potential
30798         optimization.
30799         
30800 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
30801
30802         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
30803           in dispose method. Fixes #76330
30804
30805 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
30806
30807         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
30808
30809                 - Implements vertical and horizontal scrolling using XplatUI
30810                 - Fixes keyboard navagation
30811                 - Fixes EnsureVisible
30812                 - Drawing fixes
30813                 - Handles and draws focus properly
30814
30815
30816 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
30817
30818         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
30819           Create handle. NET_2_0: Destroy handle when value is null.
30820
30821 2005-10-03  Jackson Harper  <jackson@ximian.com>
30822
30823         * ScrollBar.cs: My last scrollbar patch was broken. This is a
30824         revert and a new patch to prevent the thumb from refreshing so
30825         much.
30826
30827 2005-10-02  Jackson Harper  <jackson@ximian.com>
30828
30829         * ScrollBar.cs: Don't update position if it hasn't actually
30830         changed. This occurs when you hold down the increment/decrement
30831         buttons and the thumb gets to the max/min.
30832
30833 2005-10-01  Jackson Harper  <jackson@ximian.com>
30834
30835         * Form.cs:
30836         * MdiChildContext.cs:
30837         * MdiClient.cs: Implement ActiveMdiChild in Form.
30838
30839 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
30840
30841         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
30842
30843 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
30844
30845         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
30846           be found
30847
30848 2005-09-30  Jackson Harper  <jackson@ximian.com>
30849
30850         * ListBox.cs: Don't do a full refresh unless some data has
30851         actually changed.
30852
30853 2005-09-30  Jackson Harper  <jackson@ximian.com>
30854
30855         * TreeView.cs: Make sure that the checkboxes size is factored in
30856         even when not visible.
30857
30858 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
30859
30860         * FileDialog.cs: Fix Jordi's build break
30861
30862 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
30863
30864         * FileDialog.cs: 
30865                 - Use standard the Windows colours for the combobox as espected
30866                 - Dispose objects that use resouces when no longer need them
30867
30868 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
30869
30870         * X11DesktopColors.cs: Initial incomplete implementation
30871         * XplatUIX11.cs: Added call to initialize X11DesktopColors
30872
30873 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
30874
30875         * Theme.cs: 
30876           - Switched Theme color names to match the names defined in 
30877             System.Drawing.KnownColors. Life's hard enough, no need to make 
30878             it harder.
30879           - Added setters to all theme color properties so themes can set
30880             their color schemes. The setters also propagate the color changes
30881             to System.Drawing.KnownColors via reflection
30882         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
30883           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
30884           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
30885           use the new, more logical theme color names
30886         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
30887           post-NT colors
30888         * ThemeWin32Classic.cs:
30889           - Removed code to set the old classic Windows colors. Instead it
30890             now relies on the colors returned by System.Drawing.KnownColors
30891             which will be either modern static colors (Unix) or colors
30892             read from the user's configuration (Win32)
30893           - Updated to use the new, more logical theme color names
30894           - Switched DataGrid drawing code to use only Theme colors instead of
30895             a mix of System.Drawing.KnownColors and Theme colors
30896           - DrawFrameControl(): Removed code that fills the button area, the
30897             fill would overwrite any previous fill done by a control. This
30898             fixes bug #75338 
30899           - Added DrawReversibleRectangle() stub
30900         * ScrollableControl.cs: Set visible state to false when scrollbars
30901           are removed (pdn fix)
30902         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
30903           DrawReversibleRectangle() method to allow drawing primitive 
30904           'rubber bands'
30905         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
30906
30907 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30908
30909         * ImageList.cs: Add(Icon): Create handle.
30910
30911 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
30912
30913         * ListView.cs:
30914         * ThemeWin32Classic.cs:
30915                 - Fixes detail mode
30916                 - Sets clippings
30917                 - Issues with drawing
30918
30919 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30920
30921         * ImageList.cs: Moved RecreateHandle back to ImageList as event
30922           source has to be the ImageList.
30923
30924 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30925
30926         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
30927
30928 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30929
30930         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
30931
30932 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30933
30934         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
30935
30936 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
30937         * GridItem.cs: Fixed TODOs
30938         * GridItemCollection.cs: Added ICollection interface
30939
30940 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30941
30942         * ImageList.cs: Resize icons when needed.
30943
30944 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
30945
30946         * ListViewItem.cs
30947                 - Fixes GetBounds and returns on screen rects
30948         * ListView.cs:
30949                 - Fixes vertical and horzintal scrolling of items
30950         * ThemeWin32Classic.cs:
30951                 - Fixes drawing
30952                 
30953 2005-09-29  Raja R Harinath  <harinath@gmail.com>
30954
30955         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
30956
30957 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
30958
30959         * ImageList.cs: Added comments about handle creation. Moved Handle,
30960           HandleCreated and OnRecreateHandle implementations to ImageCollection.
30961           Handle is created in Add methods.
30962
30963 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
30964          
30965         * DataGridDrawingLogic.cs: 
30966                 - Takes rows into account on Colum calculations
30967                 - Returns the column when clickig
30968         * DataGrid.cs:
30969                 - Fixes default HitTestInfo values
30970                 - Fixes HitTestInfo.ToString
30971                 - Fixes ResetBackColor          
30972         
30973 2005-09-28  Jackson Harper  <jackson@ximian.com>
30974
30975         * MdiChildContext.cs: Obey rules for fixed sized windows (no
30976         sizing or cursor changes). Also added some temp code to draw the
30977         titlebars text (Makes dev a little easier).
30978
30979 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
30980
30981         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
30982
30983 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
30984          
30985         * ListBox.cs: Fixes bug 76253
30986
30987 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
30988
30989         * ImageList.cs: Added comments about the current implementation. Added
30990           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
30991           Format32bppArgb to preserve transparency and can use Graphics.FromImage
30992           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
30993           with Bitmap.LockBits for better performance. Revised the whole file to
30994           match MS.NET behaviour and provide better performance. Non-public
30995           interface members are calling public members even when they throw
30996           NotSupportedException for better maintainability. Moved ColorDepth,
30997           ImageSize, ImageStream and TransparentColor implementations to
30998           ImageCollection for better performance as these properties are not used
30999           by ImageList.
31000         * ImageListStreamer.cs: Added a new internal constructor that takes an
31001           ImageList.ImageCollection and serializes Images based on
31002           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
31003           match ImageList property name.
31004
31005 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
31006
31007         * ListBox.cs: Fixes IndexFromPoint for last item
31008
31009 2005-09-27  Jackson Harper  <jackson@ximian.com>
31010
31011         * Form.cs: Set the position of new mdi children correctly.
31012
31013 2005-09-27  Jackson Harper  <jackson@ximian.com>
31014
31015         * MdiClient.cs: New mdi children need to be added to the back of
31016         the controls collection so the zorder is set correctly. Also add a
31017         count of all the child windows that have been created.
31018
31019 2005-09-27  Jackson Harper  <jackson@ximian.com>
31020
31021         * Form.cs (CreateParams): Setup MDI forms correctly.
31022
31023 2005-09-27  Jackson Harper  <jackson@ximian.com>
31024
31025         * MdiChildContext.cs:
31026         * MonthCalendar.cs:
31027         * UpDownBase.cs:
31028         * ListBox.cs:
31029         * ListView.cs:
31030         * TextBoxBase.cs:
31031         * TreeView.cs:
31032         * ScrollableControl.cs:
31033         * ComboBox.cs: Add implicit controls using the new implict control
31034         functionality in ControlCollection. Also try to block multiple
31035         control add in a suspend/resume layout to save some cycles.
31036         
31037 2005-09-27  Jackson Harper  <jackson@ximian.com>
31038
31039         * Control.cs: Add functionality to the controls collection to add
31040         'implicit controls' these are controls that are created by the
31041         containing control but should not be exposed to the user. Such as
31042         scrollbars in the treeview.
31043         * Form.cs: The list var of the ControlsCollection is no longer
31044         available because of the potential of implicit controls getting
31045         ignored by someone accessing the list directly.
31046
31047 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
31048
31049         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
31050           loose it's parent. (Fixed bug introduced in r49103 when we added
31051           setting the child parent to null on Remove)
31052
31053 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
31054
31055         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
31056         * Splitter.cs: Added missing attributes for BorderStyle property.
31057         * TextBoxBase.cs: Marked Calculate* methods internal.
31058         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
31059         MS.NET.
31060
31061 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
31062          
31063         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
31064
31065 2005-09-25  Jackson Harper  <jackson@ximian.com>
31066
31067         * TreeView.cs: Update the node bounds correctly regardless of
31068         whether the node is visible.
31069
31070 2005-09-25  Jackson Harper  <jackson@ximian.com>
31071
31072         * ImageList.cs: Don't dispose the image after it is added to the
31073         image list. Only reformat images that need to be resized.
31074
31075 2005-09-25  Jackson Harper  <jackson@ximian.com>
31076
31077         * ImageList.cs: Don't set the format when changing the image.
31078
31079 2005-09-25  Jackson Harper  <jackson@ximian.com>
31080
31081         * TreeView.cs: We can't just assume the node has a font. Use the
31082         treeviews font if no node font is available.
31083
31084 2005-09-25  Jackson Harper  <jackson@ximian.com>
31085
31086         * TreeView.cs: Allow the scrollbars to be reset with negative
31087         values.
31088         - Don't add scrollbars to negative sized windows.
31089
31090 2005-09-23  Jackson Harper  <jackson@ximian.com>
31091
31092         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
31093         old Mono.Posix. Also remove some stray code that shouldn't have
31094         been committed.
31095
31096 2005-09-23  Jackson Harper  <jackson@ximian.com>
31097
31098         * TreeView.cs: Attempt at proper sizing of the horizontal
31099         scrollbar. Also don't resize the scrollbars unless they are
31100         visible.
31101
31102 2005-09-23  Jackson Harper  <jackson@ximian.com>
31103
31104         * TreeView.cs: We don't need to expand the invalid area when the
31105         selection changes, as this is all drawn in the node's bounding
31106         box. The area needs to be expanded (previous typo was contracting
31107         it) when the focus rect moves.
31108
31109 2005-09-23  Jackson Harper  <jackson@ximian.com>
31110
31111         * TreeView.cs: Display the selection box under the correct
31112         circumstances. We were rendering white text with no selection box
31113         before.
31114
31115 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
31116
31117         * TextControl.cs(Split): Now updates selection start/end if it points 
31118           into a line that's being split. Fixes a FIXME and bug #75258
31119
31120 2005-09-23  Jackson Harper  <jackson@ximian.com>
31121
31122         * Binding.cs:
31123         * ListControl.cs: Don't use the path when retrieving binding
31124         managers from the binding context. My bat sense tells me that the
31125         path is only used on insertion.
31126
31127 2005-09-22  Jackson Harper  <jackson@ximian.com>
31128
31129         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
31130
31131 2005-09-22  Jackson Harper  <jackson@ximian.com>
31132
31133         * Splitter.cs: There are special cursors used for splitting.
31134         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
31135
31136 2005-09-22  Jackson Harper  <jackson@ximian.com>
31137
31138         * Splitter.cs: Change the cursor appropriately when the splitter
31139         is moused over, so the user actually knows there is a splitter
31140         there.
31141
31142 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31143
31144        * Label.cs : Fix ToString method to give same output as MS.NET
31145
31146 2005-09-22  Jackson Harper  <jackson@ximian.com>
31147
31148         * TreeView.cs: Create the scrollbars when the handle is created
31149         and add them right away, just make them invisble. Also account for
31150         the window being shrunk vertically to the point that the vert
31151         scrollbar needs to be added.
31152         - Remove some 0.5 adjustments to get around anti aliasing issues.
31153         
31154 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
31155          
31156         * MainMenu.cs: Fixes default value
31157         * MenuItem.cs: Fixes default value
31158
31159 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
31160
31161         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
31162
31163 2005-09-21  Jackson Harper  <jackson@ximian.com>
31164
31165         * Control.cs: Don't try to set the border style on the window if
31166         it hasn't been created. When the window is created the border
31167         style will be used.
31168
31169 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
31170
31171         * Control.cs (Update): Don't call XplatUI if we don't have a
31172           window handle yet
31173
31174 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
31175
31176         * ContainerControl.cs: Instead of throwing an exception, print
31177           a one-time warning about Validate not being implemented
31178         * XplatUIWin32.cs: Removed debug output
31179
31180 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
31181
31182         * Control.cs: Only set XplatUI background if we expect the windowing
31183           system to handle the background. This stops controls that draw their
31184           own background from flickering
31185
31186         * XplatUIX11.cs: Support custom visuals and colormaps for window 
31187           creation. This allows, amongst other things, using MWF X11 windows 
31188           with OpenGL.
31189
31190 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
31191
31192         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
31193           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
31194           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
31195           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
31196           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
31197           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
31198           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
31199           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
31200           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
31201           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
31202           GridColumnStylesCollection.cs, 
31203           IDataGridColumnStyleEditingNotificationService.cs,
31204           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
31205           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
31206           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
31207           TreeNodeCollection.cs, AmbientProperties.cs, 
31208           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
31209           DataObject.cs, ErrorProvider.cs, Splitter.cs,
31210           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
31211           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
31212           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
31213           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
31214           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
31215           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
31216           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
31217           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
31218           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
31219           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
31220           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
31221           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
31222           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
31223           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
31224           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
31225           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
31226           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
31227           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
31228           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
31229           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
31230           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
31231           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
31232           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
31233           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
31234           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
31235           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
31236           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
31237           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
31238           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
31239           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
31240           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
31241           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
31242           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
31243           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
31244           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
31245
31246 2005-09-21  Jackson Harper  <jackson@ximian.com>
31247
31248         * TreeNode.cs: Call Before/After Expand not Collapse when
31249         expanding.
31250
31251 2005-09-20  Jackson Harper  <jackson@ximian.com>
31252         
31253         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
31254
31255 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
31256          
31257         * ListViewItem.cs:
31258                 - Fixes bug 76120
31259                 - Fixes proper storing of subitems
31260                 - Fixes not updated items
31261
31262 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
31263
31264         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
31265           things if our window handle isn't created yet. Also disabled 
31266           debug for TextBoxBase
31267
31268 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
31269
31270         * MenuAPI.cs: Remove filtering of events to allow menu usage
31271
31272 2005-09-20  Miguel de Icaza  <miguel@novell.com>
31273
31274         * Cursor.cs: Allow null to be passed to Cursor.Current.
31275
31276 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
31277
31278         * ThemeWin32Classic.cs:
31279           - Change some private methods/fields to protected virtual so that 
31280             they can be accessed and overriden in derived classes
31281           - First refactoring of some methods. Derived themes now don't 
31282             need to duplicate the complete code from ThemeWin32Classic
31283         * ThemeNice.cs:
31284           - Added nice StatusBar
31285           - Derive from ThemeWin32Classic and not Theme
31286           - Removed duplicate ThemeWin32Classic code
31287
31288 2005-09-20  Miguel de Icaza  <miguel@novell.com>
31289
31290         * Control.cs (ControlCollection.Add): If the value null is passed
31291         the control is ignored. 
31292
31293         Optimize this loop.
31294
31295 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
31296
31297         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
31298           PostQuitMessage state.
31299         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
31300
31301 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
31302
31303         * Application.cs: Our constructor will never get called, move 
31304           initialization to fields; fixes bug #75933
31305
31306 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31307
31308         * FileDialog.cs :
31309                 - Allow files to be selected properly using file name
31310                 combo box.
31311                 - Add ability to change diretory (absolute / relative)
31312                 using file name combo box.
31313
31314 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
31315          
31316         * ListBox.cs: 
31317                 - Fixes Multicolumn listboxes item wrong calculations
31318                 - Allows to click when only one item is in the listbox
31319                 - Fixes crash when no items using keyboard navigation
31320
31321 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
31322
31323         * ComboBox.cs: Reverted almost everything from the latest patch which
31324           broke ComboBox
31325
31326 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
31327         
31328         * ToolTip.cs:
31329                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
31330         * ComboBox.cs:
31331                 - When DropDownStyle is Simple, it does not show scrollbar 
31332                 to the last item of the list.
31333                 - When DropDownStyle is Simple, it crashed when the list was 
31334                 scrolled down with the down cursor key.
31335                 - Fixed a bug that when DropDownStyle is DropDownList, the 
31336                 selected item was not shown.
31337                 - The position of the selected item was not preserved when 
31338                 the next dropdown happened.
31339         * ThemeWin32Classic.cs:
31340                 - Items were wrapped at the right end.
31341         * CheckedListBox.cs:
31342                 - Fixed Add method
31343         * ListBox.cs:
31344                 - Items should be fully shown.
31345                 - When resizing and vertical scrollbar disappeared, the item 
31346                 of index 0 should be on the top of the list.
31347                 - GetItemRectangle should consider the size of ver. scrollbar
31348         * StatusBar.cs:
31349                 - SizingGrip area should not be allocated when it is not 
31350                 displayed.
31351                 - Now it reflects MinWidth of the containing panel and 
31352                 fixed a crash that happens when its width becomes so small.
31353
31354 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
31355
31356         * CheckedListBox.cs: Fixes bug 76028
31357         * ListBox.cs: Fixes bug 76028
31358
31359 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
31360
31361         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
31362         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
31363
31364 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
31365
31366         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
31367
31368 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
31369
31370         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
31371
31372 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
31373
31374         * IRootGridEntry.cs: Added
31375         * PropertyGridCommands.cs: Added
31376         * PropertiesTab.cs: Added missing methods and property
31377         * PropertyGridView.cs: Made class internal
31378         * PropertyGridTextBox.cs: Made class internal
31379
31380 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31381
31382         * MimeIcon.cs: Try to check some other environment variables
31383           if "DESKTOP_SESSION" returns "default"
31384
31385 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31386
31387         * ThemeNice.cs: Corrected background colors (e.g. menus)
31388         * ColorDialog.cs: Use correct background colors for controls
31389
31390 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31391
31392         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
31393
31394 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
31395
31396         * RichTextBox.cs: Added initial implementation
31397         * lang.cs: Removed. Was accidentally checked in long time ago
31398         * TODO: Removed. Contents were obsolete
31399
31400 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
31401                                                                                 
31402         * PropertiesTab.cs : Added
31403
31404 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
31405                                                                                 
31406         * PropertyGrid.cs : Update
31407         * PropertyGridView.cs : Update
31408         * System.Windows.Forms.resx : Added images and strings
31409
31410 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
31411
31412         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
31413  
31414 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
31415
31416         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
31417           a busy loop right after the Ungrab the X11 display is otherwise 
31418           blocked
31419
31420 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
31421
31422         * ThemeWin32Classic.cs: Optimise the use of clipping
31423
31424 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
31425
31426         * DataGrid.cs: fixes recursion bug
31427
31428 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
31429
31430         * ThemeNice.cs: 
31431           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
31432           - Cleanup
31433
31434 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
31435
31436         * ThemeNice.cs: Draw nice ProgressBars
31437
31438 2005-09-01  Miguel de Icaza  <miguel@novell.com>
31439
31440         * VScrollBar.cs: Another buglet found by Aaron's tool. 
31441
31442         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
31443         bug finder.
31444
31445 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
31446
31447         * ThemeNice.cs:
31448           - Added nicer menu drawing
31449           - Updated DrawTab
31450           - some refactoring
31451
31452 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
31453
31454         * CreateParams.cs (ToString): Made output match MS
31455         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
31456             handle is already created (to avoid forcing window creation)
31457         * XplatUIX11.cs: Set window text to caption after creating window,
31458           in case Text was set before window was created
31459         * Form.cs: Use this.Text instead of a static string as caption
31460
31461 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
31462
31463         * NotifyIcon.cs: Don't set the window to visible; this screws
31464           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
31465           OnPaint without a bitmap)
31466         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
31467           happen very often anyway; we could add the check to the WM_PAINT 
31468           event generation code
31469
31470 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
31471
31472         * NotifyIcon.cs: Fill the icon area with a background color, to 
31473           avoid 'residue' when transparent icons are drawn
31474         * XplatUIX11.cs:
31475           - Handle whole_window == client_window when destroying windows
31476           - SystrayAdd(): Set client_window to whole_window value to
31477             get mouse and other events passed to NotifyIcon
31478
31479 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
31480
31481         * Form.cs: Set proper default for Opacity property
31482         * NotifyIcon.cs:
31483           - ShowSystray(): Don't bother creating telling the OS
31484             about the systray item if no icon is provided
31485           - Now handles WM_NCPAINT message to deal with whole/client window
31486             split
31487           - Create window as visible to not get caught by Expose optimization
31488         * Hwnd.cs: Removed debug message
31489         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
31490           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
31491             PaintEventStart/End to use new client argument
31492         * TextBoxBase.cs:
31493           - Commented out debug messages
31494           - Switched PaintEventStart/End to use new client argument
31495         * XplatUI.cs: Added client window bool to PaintEventStart()/
31496           PaintEventEnd() calls, to support drawing in non-client areas
31497         * XplatUIDriver.cs: 
31498           - Added client window bool to PaintEventStart()/PaintEventEnd() 
31499             calls, to support drawing in non-client areas
31500           - Added conditional compile to allow using MWF BeginInvoke 
31501             on MS runtime
31502         * XplatUIX11.cs:
31503           - Added some conditional debug output
31504           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
31505             whole/client window split
31506           - Implemented handling of client argument to PaintEventStart()/End()
31507         * Control.cs:
31508           - Throw exception if BeginInvoke() is called and the window handle
31509             or one of the window's parent handles is not created
31510           - Added conditional compile to allow using MWF BeginInvoke on
31511             MS runtime
31512           - get_Parent(): Only sets parent if handle is created. This avoids
31513             forcing window handle creation when parent is set.
31514           - Now fires Layout and Parent changed events in proper order
31515           - Switched to use Handle instead of window.Handle for Z-Order setting,
31516             the get_Parent() patch above causes us to possibly get null for 'window'
31517           - Implemented handling of client argument to PaintEventStart()/End()
31518           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
31519             default handling)
31520           - Now sends a Refresh() to all child windows when Refresh() is called
31521
31522 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
31523
31524         * Form.cs: Added (non-functional) Opacity property
31525         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
31526
31527 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
31528         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
31529           use export MONO_THEME=nice to activate it.
31530           Currently supported controls:
31531           - Button
31532           - ComboBox
31533           - ScrollBar
31534           - TabControl (TabAlignment.Top only, other will follow)
31535         * ThemeEngine.cs: Add theme nice
31536         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
31537           if enabled
31538
31539 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
31540
31541         * Splitter.cs: Resize docked control and its neighbor.
31542
31543 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31544         -- Making Windows with Menus layout correctly --
31545         * Form.cs : The first leg of the fix
31546                 Menu setter - adjust Client Size as needed to make space for the menu
31547                 SetClientSizeCore - doesn't call base version to be able to pass the 
31548                         menu handle to XplatUI.CalculateWindowRect
31549         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
31550         * XplatUIX11.cs: The critical second leg of the fix
31551                 GetWindowPos needs to use a recalculated client_rect
31552                 so that resizing the window doesn't break layout of child controls. 
31553                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
31554                 Lots of \t\n killed
31555
31556 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
31557
31558         * Label.cs: Now properly recalculates width and height on Font and Text
31559           changes if AutoSize is set
31560
31561 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31562         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
31563
31564 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
31565
31566         * ImageList.cs: Makes ToString method compatible with MS
31567
31568 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
31569
31570         * MenuAPI.cs: fixes bug 75716
31571
31572 2005-08-11 Umadevi S <sumadevi@novell.com>
31573         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
31574
31575 2005-08-11 Umadevi S <sumadevi@novell.com>
31576         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
31577
31578 2005-08-10  Umadevi S <sumadevi@novell.com>
31579         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
31580
31581 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
31582
31583         * Menu.cs: fixes bug 75700
31584         * MenuAPI.cs: fixes navigation issues
31585
31586 2005-08-09  Umadevi S <sumadevi@novell.com>
31587         * CheckedListBox.cs - simple fix for GetItemChecked.
31588
31589 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
31590
31591         * ComboBox.cs: Serveral fixes
31592         * ListBox.cs: Serveral fixes
31593
31594 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
31595
31596         * ComboBox.cs: Fixes FindString methods and GetItemHeight
31597         * ListBox.cs: Fixes FindString methods
31598
31599 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
31600
31601         * DataGrid.cs: fixes bugs exposed by new tests
31602
31603 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
31604
31605         * Mime.cs: Compile Mono assembly references only if compiling
31606           with Mono (Allows to build with VS.Net again)
31607
31608 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
31609
31610         * Control.cs (PaintControlBackground): Draw background image
31611         corrrectly.
31612         (CheckForIllegalCrossThreadCalls): Stubbed.
31613         
31614         * Form.cs (OnCreateControl): Center when should be centered.
31615         
31616         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
31617
31618 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
31619
31620         * Binding.cs: Binding to properties should be case unsensitive
31621
31622 2005-07-18 vlindos@nucleusys.com
31623
31624         * DataGrid.cs: fixes setmember order
31625
31626 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
31627
31628         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
31629         * FileDialog.cs: FileDialog is now resizable and uses the new
31630           MimeIconEngine
31631
31632 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
31633
31634         * DataGridTextBoxColumn.cs: default value
31635         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
31636         * GridTableStylesCollection.cs: fixes checking MappingName
31637         * DataGridDrawingLogic.cs: fixes drawing logic issues
31638         * DataSourceHelper.cs: rewritten to make compatible with more data sources
31639         * DataGrid.cs: fixes    
31640
31641 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
31642
31643         * MimeGenerated.cs: Use case sensitive comparer for
31644           NameValueCollections
31645
31646 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
31647
31648         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
31649         * ThemeWin32Classic.cs: bug fixes, code refactoring
31650         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
31651         * DataGrid.cs: bug fixes, code refactoring
31652         * DataGridTextBox.cs: bug fixes, code refactoring
31653         * DataGridColumnStyle.cs:  bug fixes, code refactoring
31654         * Theme.cs:  bug fixes, code refactoring
31655
31656 2005-07-01  Peter Bartok  <pbartok@novell.com> 
31657
31658         * TextControl.cs: Quick fix for the reported crash on ColorDialog
31659           and other text box usage
31660
31661 2005-07-01  Jackson Harper  <jackson@ximian.com>
31662
31663         * TabControl.cs: Make sure the bottom of the tab covers the pages
31664         border.
31665
31666 2005-06-30  Peter Bartok  <pbartok@novell.com> 
31667
31668         * Form.cs (ShowDialog): Assign owner of the dialog
31669         * TextBoxBase.cs: Always refresh caret size when deleting, caret
31670           might have been moved to a tag with different height
31671
31672 2005-06-30  Jackson Harper  <jackson@ximian.com>
31673
31674         * Form.cs: Don't create an infinite loop when setting focus
31675         * MenuItem.cs: Don't dirty the parents if we don't have any
31676
31677 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
31678
31679         * LibSupport.cs: Rename
31680
31681 2005-06-29  Peter Bartok  <pbartok@novell.com>
31682
31683         * TextBoxBase.cs: Re-align caret after deleting a character
31684         * TextControl.cs:
31685           - DeleteChars(): Ensure that tag covers the provided position
31686           - StreamLine(): Drop reference for dropped tag
31687
31688 2005-06-29  Peter Bartok  <pbartok@novell.com> 
31689
31690         * TextControl.cs: 
31691           - Selections now work properly, anchoring at the initial location
31692             and properly extending in either direction (SetSelectionToCaret(),
31693             SetSelectionStart() and SetSelectionEnd())
31694           - No longer redraws the whole control on selection change, now
31695             calculates delta between previous and new selection and only
31696             invalidates/redraws that area
31697           - Fixed FindPos() math off-by-one errors
31698           - Changed DeleteChars() to verify the provided tag covers the
31699             provided position, selections may have a tag that doesn't cover
31700             the position if the selection is at a tag border
31701           - Fixed off-by-one errors in DeleteChars()
31702           - Added missing streamlining check in DeleteChars() to remove
31703             zero-length tags
31704           - Implemented Invalidate() method, now properly calculates exposures
31705             between two given lines/positions
31706           - Implemented SetSelection()
31707           - Obsoleted and removed FixupSelection()
31708           - Improved RecalculateDocument() logic, removing code duplication
31709
31710 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31711
31712         * LibSupport.cs: changes to match different input/output arguments.
31713
31714 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31715
31716         * LibSupport.cs: added libsupport.so init routine.
31717
31718 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
31719         
31720         * ControlBindingsCollection.cs
31721                 - Throws an exception on null datasource when adding
31722                 - Checks for duplicated bindings when adding
31723
31724 2005-06-28  Jackson Harper  <jackson@ximian.com>
31725
31726         * TreeView.cs (OnKeyDown): Support left and right properly
31727         (navigates as well as expanding and collapsing.
31728         - Add support for Multiply, this expands all the selected nodes
31729         children.
31730         - Fix some tabbing.
31731
31732 2005-06-28  Jackson Harper  <jackson@ximian.com>
31733
31734         * TreeView.cs: Implement keyboard navigation, currently supports,
31735         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
31736         support for toggling checkboxes with the space bar.
31737
31738 2005-06-28  Jackson Harper  <jackson@ximian.com>
31739
31740         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
31741         tree.
31742
31743 2005-06-28  Jackson Harper  <jackson@ximian.com>
31744
31745         * TreeView.cs: Add missing event.
31746
31747 2005-06-27  Peter Bartok  <pbartok@novell.com> 
31748
31749         * TextControl.cs:
31750           - Made line ending size configurable (now allows for counting 
31751             lineendings as \n or \r\n)
31752           - Added margin to viewport to keep caret visible on right side
31753           - Fixed translation routines for line/pos to documentpos to consider
31754             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
31755           - Fixed some line-endings to be unix style
31756           - Fixed Document.FormatText to perform it's calculations 1-based
31757           - Added descriptions for a few methods that might otherwise get 
31758             used wrong
31759           - Added NOTE section with some basic conventions to remember at 
31760             the top of the file
31761           - Major fixup for RichTextBox selection drawing:
31762             * Fixed crashes when multiple tags on a single line were selected
31763             * fixed selection box drawing not overlaying text
31764             * fixed bogus offset calculation for tags not starting at index 1
31765             * Switched behaviour from using multiple Substrings of a 
31766               StringBuilder.ToString() to using multiple 
31767               StringBuilder.ToString(start, length) statements, hoping this is
31768               faster (kept original version commented out in the code, in case
31769               original version was faster)
31770         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
31771           alignment != Left
31772         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
31773           call it as well
31774
31775 2005-06-27  Jackson Harper  <jackson@ximian.com>
31776
31777         * TabControl.cs: Move to the left and right with the arrow
31778         keys. These keys don't cycle beyond first and last like
31779         tab. Refresh all the tabs when scrolling them to the left or
31780         right.
31781
31782 2005-06-27  Jackson Harper  <jackson@ximian.com>
31783
31784         * TabControl.cs:
31785           - ToString: Added method
31786           - CreateParams: Remove TODO and comment
31787           - OnKeyDown: Cycle through bounds properly.
31788           - SelectedIndex: Scroll to the right or left if we need to
31789           display the newly selected tab.
31790
31791 2005-06-23  Jackson Harper  <jackson@ximian.com>
31792
31793         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
31794         set.
31795
31796 2005-06-23  Jackson Harper  <jackson@ximian.com>
31797
31798         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
31799         CTRL-SHIFT-TAB, and HOME, END are there any others?
31800
31801 2005-06-23  Jackson Harper  <jackson@ximian.com>
31802
31803         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
31804
31805 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
31806         
31807         * DataGridTextBoxColumn.cs: fixes and enhancements
31808         * ThemeWin32Classic.cs: fixes and enhancements
31809         * DataGridBoolColumn.cs:  fixes and enhancements
31810         * DataGridDrawingLogic.cs:  fixes and enhancements
31811         * CurrencyManager.cs: fixes and enhancements
31812         * DataGrid.cs: fixes and enhancements
31813         * DataGridColumnStyle.cs:  fixes and enhancements
31814
31815 2005-06-22  Jackson Harper  <jackson@ximian.com>
31816
31817         * TabControl.cs: Add some missing methods that just call into the
31818         base. Make the TabPageCollection's IList interface behave in the
31819         same manner as the MS implementation.
31820
31821 2005-06-22  Peter Bartok  <pbartok@novell.com> 
31822
31823         * TextControl.cs: Added sanity check
31824         * TextBoxBase.cs: 
31825           - Fixed wrapping behaviour, don't set wrap on single line controls
31826             (this fixes the breakage of colordialog introduced in an earlier
31827              checkin)
31828           - Added rudimentary support for autoscrolling right-aligned controls
31829             (still needs fixing, also, center alignment scroll is missing)
31830
31831 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
31832         
31833         * ScrollBar.cs: Fixes thumbpos on Maximum values
31834
31835 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
31836         
31837         * PropertyGridView.cs: Pass context information to UITypeEditors 
31838
31839 2005-06-21  Peter Bartok  <pbartok@novell.com> 
31840
31841         * TextBoxBase.cs:
31842           - Now calling PositionCaret with absolute space coordinates
31843           - Enabled vertical scrolling
31844           - Better tracking of scrollbar changes, tied into WidthChange
31845             event
31846           - Improved cursor tracking
31847           - Removed debug output
31848         * TextControl.cs:
31849           - PositionCaret coordinates are now works in absolute space, not 
31850             the canvas
31851           - Improved tracking of document size
31852           - Added events for width and height changes
31853
31854 2005-06-21  Peter Bartok  <pbartok@novell.com>
31855
31856         * Form.cs: Set focus to active control when form is activated
31857         * TextControl.cs: 
31858           - Added word-wrap functionality to RecalculateLine() 
31859           - Added some short function descriptions for VS.Net to aid in
31860             writing dependent controls
31861           - Added Caret property, returning the current coords of the caret
31862           - Added ViewPortWidth and ViewPortHeight properties
31863           - Added Wrap property
31864           - Added CaretMoved event
31865           - Removed some old debug code
31866           - Split() can now create soft splits
31867           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
31868           - Added method to format existing text
31869           - Fixed size/alignment calculations to use viewport
31870           - RecalculateDocument now can handle changing line-numbers while
31871             calculating lines
31872
31873         * TextBox.cs:
31874           - Added some wrap logic, we don't wrap if alignment is not left
31875           - Added casts for scrollbar var, base class switched types to
31876             also support RichTextBoxA
31877           - Implemented handling of scrollbar visibility flags
31878
31879         * TextBoxBase.cs:
31880           - Switched scrollbars type to RichTextBoxScrollBars to support
31881             RichTextBox
31882           - Added tracking of canvas width/height
31883           - Switched scrollbars to be not selectable (to keep focus on text)
31884           - Added central CalculateDocument() method to handle all redraw
31885             requirements
31886           - Added ReadOnly support
31887           - Added WordWrap support
31888           - Fixed handling of Enter key (we now treat it as a DialogKey)
31889           - Fixed caret positioning when h or v scroll is not zero
31890           - Fixed placing/generation of vertical scrollbar
31891           - Added CalculateScrollBars() method to allow updating scrollbar
31892             limits and visibility
31893           - Fixed handling of horizontal scroll
31894           - Added handling of vertical scroll
31895           - Implemented auto-'jump' when caret moves to close to a left or
31896             right border and there is text to be scrolled into view (currently
31897             there's the potential for a stack overflow, until a bug in
31898             scrollbar is fixed)
31899
31900 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
31901         
31902         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
31903
31904 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
31905
31906         * Mime.cs:
31907         - added inodes.
31908         - return application/x-zerosize for files with size zero
31909           (if no extension pattern matches).
31910         - check matches collection for strings too.
31911         - return only the first mime type if the name value
31912           collection has more than one mime type.
31913
31914 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
31915         
31916         * PropertyGrid.cs: Cleaned up some TODOs
31917         * PropertyGridView.cs: Added support for UITypeEditors
31918
31919 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
31920         
31921         * DataGrid.cs: clears cached value
31922
31923 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
31924
31925         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
31926         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
31927         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
31928         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
31929         
31930 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
31931
31932         * ThemeWin32Classic.cs: fixes colour
31933
31934 2005-06-15  Peter Bartok  <pbartok@novell.com>
31935
31936         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
31937         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
31938         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
31939         * Control.cs: Added some MWFCategory and MWFDescription attributes
31940         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
31941
31942 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
31943
31944         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
31945         usage
31946
31947 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
31948
31949         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
31950         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
31951         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
31952         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
31953         * DataGrid.cs: default datagrid settings for Default Styles, fixes
31954         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
31955
31956 2005-06-13  Jackson Harper  <jackson@ximian.com>
31957
31958         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
31959         isn't printed when the user enables dropping. (X11 does accept
31960         drops).
31961         
31962 2005-06-13  Jackson Harper  <jackson@ximian.com>
31963
31964         * TreeView.cs: Remove some TODOS.
31965
31966 2005-06-13  Jackson Harper  <jackson@ximian.com>
31967
31968         * Form.cs: Hook into the mdi framework.
31969         * MdiClient.cs: Use the base control collections add method so
31970         parents get setup correctly. Set the default back colour and dock
31971         style.
31972         * MdiChildContext.cs: New class, this bad actor handles an
31973         instance of an MDI window. Right now there is only basic
31974         support. You can drag, close, and resize windows. Minimize and
31975         Maximize are partially implemented.
31976
31977 2005-06-13  Jackson Harper  <jackson@ximian.com>
31978
31979         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
31980         freaky when both vals are negative. NOTE: There are probably other
31981         places in XplatUIX11 that this needs to be done.
31982
31983 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
31984
31985         * DataGrid.cs: implement missing methods, move KeyboardNavigation
31986         * DataGridColumnStyle.cs: fixes signature
31987
31988 2005-06-12  Jackson Harper  <jackson@ximian.com>
31989
31990         * XplatUIX11.cs: Use sizing cursors similar to the ones on
31991         windows.
31992
31993 2005-06-11  Jackson Harper  <jackson@ximian.com>
31994
31995         * StatusBarPanel.cs: Signature cleanups. Implement
31996         BeginInit/EndInit.
31997
31998 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
31999
32000         * DataGridTextBoxColumn.cs: Honors aligment
32001         * GridColumnStylesCollection.cs: Contains is case unsensitive
32002         * GridTableStylesCollection.cs: several fixes
32003         * DataGridTableStyle.cs: default column creation
32004         * DataGridDrawingLogic.cs: fixes
32005         * CurrencyManager.cs: ListName property
32006         * DataGrid.cs: multiple styles support
32007         * DataGridColumnStyle.cs: fixes
32008         
32009
32010 2005-06-10  Peter Bartok  <pbartok@novell.com>
32011
32012         * Control.cs(Select): Moved SetFocus call to avoid potential
32013           loops if controls change the active control when getting focus
32014         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
32015           the up/down buttons
32016
32017 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
32018
32019         * ImageListConverter.cs: Implemented
32020
32021 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
32022
32023         * MonthCalendar.cs: Wired in NumericUpDown control for year
32024
32025 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
32026
32027         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
32028           DoubleClick events, since they are not meant to be fired.
32029
32030 2005-06-09  Peter Bartok  <pbartok@novell.com>
32031
32032         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
32033           Jonathan's standalone controls into MWF, implemented missing
32034           events, attributes and methods; added xxxAccessible classes
32035         * AccessibleObject.cs: Made fields internal so other classes
32036           can change them if needed
32037
32038 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
32039
32040         * UpDownBase.cs: Complete implementation
32041         * NumericUpDown.cs: Complete implementation
32042         * DomainUpDown.cs: Complete implementation
32043
32044 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
32045
32046         * DataGridTextBoxColumn.cs: drawing fixes
32047         * DataGridCell.cs: fixes ToString method to match MSNet
32048         * DataGridTableStyle.cs: fixes
32049         * DataGridBoolColumn.cs: fixes, drawing
32050         * DataGridDrawingLogic.cs: fixes, new methods
32051         * DataGridTextBox.cs: Keyboard and fixes
32052         * DataGrid.cs:
32053                 - Keyboard navigation
32054                 - Scrolling fixes
32055                 - Row selection (single, multiple, deletion, etc)
32056                 - Lots of fixes
32057         
32058 2005-06-07  Jackson Harper  <jackson@ximian.com>
32059
32060         * ThemeWin32Classic.cs: Clear the background area when drawing
32061         buttons.
32062
32063 2005-06-06  Peter Bartok  <pbartok@novell.com>
32064
32065         * ImageListStreamer.cs: Fixed signature for GetData
32066         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
32067         * ComboBox.cs:
32068           - Added missing ChildAccessibleObject class
32069           - Added missing OnXXXFocus overrides, switched to using those
32070             instead of the event handler
32071         * Control.cs:
32072           - Added Parent property for ControlAccessibleObject
32073           - Fixed signatures
32074           - Fixed attributes
32075           - Added ResetBindings()
32076         * ListBindingConverter.cs: Implemented some methods
32077         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
32078         * ImageList.cs: Implemented basic handle scheme, removed TODOs
32079         * ContainerControl.cs: Fixed signature, now subscribing to the
32080           ControlRemoved event instead of overriding the handler, LAMESPEC
32081         * CurrencyManager.cs: Added missing attribute
32082         * MonthCalendar.cs: Added missing properties
32083
32084 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
32085
32086         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
32087         
32088 2005-06-06  Gaurav Vaish and Ankit Jain
32089
32090         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
32091         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
32092         
32093 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
32094
32095         * Control.cs: fixes CreateParams Width / Height.
32096
32097 2005-06-05  Peter Bartok  <pbartok@novell.com>
32098
32099         * Win32DnD.cs: Removed compilation warnings
32100
32101 2005-06-05  Peter Bartok  <pbartok@novell.com>
32102
32103         * Control.cs (CreateParams): Since we don't know if one of the
32104           properties we use is overridden, lets make sure if we fail accessing
32105           we continue with a backup plan
32106
32107 2005-06-05  Peter Bartok  <pbartok@novell.com>
32108
32109         * Win32DnD.cs:
32110           - Removed debug output
32111           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
32112             struct
32113           - Plugged resource leak
32114         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
32115           MS size
32116
32117 2005-06-05  Peter Bartok  <pbartok@novell.com>
32118
32119         * XplatUIWin32.cs: Removed DnD code
32120         * Win32DnD.cs: Implemented drop source and drop target functionality
32121
32122 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32123
32124         * UpDownBase.cs: remove duplicate addition of event, enable some code
32125         that was commented out.
32126         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
32127         Validate input when a key is pressed. It works fine now for every
32128         combination of Hexadecimal. Only missing some drawing love when sharing
32129         space with other controls.
32130
32131 2005-06-04  Peter Bartok  <pbartok@novell.com>
32132
32133         * Control.cs:
32134           - We need to pass a window for DragDrop, so enable callback events
32135           - Added DnD callback events when being a DragSource
32136         * XplatUI.cs (StartDrag): Added window handle argument
32137         * XplatUIDriver.cs (StartDrag): Added window handle argument
32138         * QueryContinueDragEventArgs: Made fields internally accessible so
32139           drivers can set them
32140         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
32141           can set them
32142
32143 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
32144
32145         * DataGridTextBoxColumn.cs: column text editing
32146         * DataGridTableStyle.cs: Respect columns styles created by the user
32147         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
32148         * DataGridBoolColumn.cs: bool column editing
32149         * DataGrid.cs: fixes to scrolling, properties, etc
32150         * DataGridTextBox.cs: handle keyboard
32151         * DataGridColumnStyle.cs: fixes
32152
32153 2005-06-02  Jackson Harper  <jackson@ximian.com>
32154
32155         * ImageListStreamer.cs: Somewhat broken implementation of
32156         GetObjectData. The RLE needs some work to match MS properly.
32157
32158 2005-06-02  Jackson Harper  <jackson@ximian.com>
32159
32160         * X11Dnd.cs: Attempting to keep at least one file in MWF
32161         monostyled.
32162
32163 2005-06-02  Peter Bartok  <pbartok@novell.com>
32164
32165         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
32166           that way
32167
32168 2005-06-02  Peter Bartok  <pbartok@novell.com>
32169
32170         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
32171         * XplatUI.cs: Added DoDragDrop() method
32172         * XplatUIDriver.cs: Added DoDragDrop() method
32173
32174 2005-06-02  Jackson Harper  <jackson@ximian.com>
32175
32176         * Splitter.cs: Implement BorderStyle.
32177
32178 2005-06-02  Jackson Harper  <jackson@ximian.com>
32179
32180         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
32181         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
32182         X11 using XDND.
32183
32184 2005-06-02  Peter Bartok  <pbartok@novell.com>
32185
32186         * DataObject.cs:
32187           - Added Data setter
32188           - Fixed broken insertion code for SetData, now also
32189             overwrites any existing entry of the same format name
32190         * Hwnd.cs: Added list of pointers that automatically gets
32191           freed when the window is disposed
32192         * XplatUI.cs: Call driver initialization method when loading
32193           a driver
32194         * Control.cs:
32195           - OnDragLeave takes EventArgs, not DragEventArgs
32196           - Added setting of WS_EX_ACCEPTFILES style when dropping is
32197             supported
32198           - Forces style update when drop state changes
32199         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
32200           not perfect since we cannot (yet) call the IDataObject.GetData()
32201           method, we keep getting 0x80004005 error, dunno why)
32202
32203 2005-06-02  Peter Bartok  <pbartok@novell.com>
32204
32205         * DragEventArgs.cs: Make fields internal so we can cache the
32206           object and re-set the fields from XplatUI
32207
32208 2005-06-02  Jackson Harper  <jackson@ximian.com>
32209
32210         * Control.cs: Add some internal methods so the DnD subsystem can
32211         raise DnD events. Also call into the driver when AllowDrop is set.
32212         * XplatUI.cs:
32213         * XplatUIDriver.cs: New method for setting whether or not a window
32214         is allowed to accept drag and drop messages.
32215                 
32216 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
32217         
32218         * ScrollBar.cs: Make sure that values sent in Scroll events
32219         are always between Maximum and Minimum.
32220
32221 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
32222
32223         * Menu.cs: Call MenuChanged when menuitem visibility has been
32224         changed.
32225         * MenuItem.cs: Rebuild menu when item is (not) visible.
32226         * MainMenu.cs: MainMenu has special MenuChanged.
32227         * Theme.cs: Caption and FrameBorderSize are not fixed.
32228         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
32229         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
32230         * XplatUIX11.cs,
32231         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
32232         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
32233
32234 2005-05-30  Jackson Harper  <jackson@ximian.com>
32235
32236         * DataFormat.cs: We can't statically initialize this stuff because
32237         it calls into the xplatui and could create a loop. So we lazy init
32238         it.
32239
32240 2005-05-28  Jackson Harper  <jackson@ximian.com>
32241
32242         * Control.cs: Proper implementation of Product(Name/Version).
32243
32244 2005-05-27  Jackson Harper  <jackson@ximian.com>
32245
32246         * DataObject.cs: Dont crash if no data is found.
32247
32248 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
32249         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
32250                 as per status page, guessing it should be set to true
32251
32252 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
32253
32254         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
32255         * DataGridTableStyle.cs: set proper formatting text, def header text
32256         * ThemeWin32Classic.cs: new themable paramaters
32257         * DataGridBoolColumn.cs: paint check box, get data, fixes
32258         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
32259         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
32260         * DataGridColumnStyle.cs: fixes
32261         * Theme.cs: new themable paramaters
32262                 
32263 2005-05-26  Peter Bartok  <pbartok@novell.com>
32264
32265         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
32266
32267 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32268         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
32269
32270 2005-05-24  Peter Bartok  <pbartok@novell.com>
32271
32272         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
32273           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
32274           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
32275           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
32276           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
32277           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
32278           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
32279           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
32280           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
32281           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
32282           missing attributes, etc
32283         * DataGridPreferredColumnWidthTypeConverter.cs: Added
32284
32285 2005-05-24  Peter Bartok  <pbartok@novell.com>
32286
32287         * Help.cs: Added, implemented trivial functions, throws up MessageBox
32288           when user tries to get help
32289         * DataObject.cs, DataFormats.cs, LinkArea.cs,
32290           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
32291           to suppress warnings
32292         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
32293           avoid unreachable code warning
32294
32295 2005-05-20  Peter Bartok  <pbartok@novell.com>
32296
32297         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
32298
32299 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32300
32301         * DataGridTextBoxColumn.cs: Basic painting methods
32302         * DataGridTableStyle.cs: Set table style in the column
32303         * ThemeWin32Classic.cs: Use Theme for colors
32304         * DataGridDrawingLogic.cs: Implement more drawing
32305         * DataGrid.cs: drawing, theming, enhacements, fixes
32306         * DataGridColumnStyle.cs: fixes, drawing
32307         * Theme.cs: theming for Datagrid
32308
32309 2005-05-20  Peter Bartok  <pbartok@novell.com>
32310
32311         * Cursor.cs: Implemented GetObjectData() method
32312
32313 2005-05-20  Peter Bartok  <pbartok@novell.com>
32314
32315         * Cursors.cs: Added setting of cursor name
32316         * Cursor.cs:
32317           - Implemented constructors
32318           - Implemented Draw and DrawStretched
32319           - Implemented Current property
32320           - Implemented == and != operators
32321           - Implemented Dispose()
32322           - Implemented ToString
32323           - Added missing attributes
32324         * XplatUIX11.cs:
32325           - Added missing reset for OverrideCursor when DoEvents is called
32326           - Fixed creation of cursor, logic was wrong
32327         * XplatUIWin32.cs:
32328           - Added missing reset for OverrideCursor when DoEvents is called
32329           - Fixed creation of cursor, bit arrays were swapped
32330         * Clipboard.cs: Removed obsolete MonoTODO attribute
32331
32332 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32333
32334         * ComboBox.cs: fixes OnSelectedItemChanged
32335         * ControlBindingsCollection.cs: fixes item range check
32336
32337 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32338
32339         * UpDownBase.cs:
32340                 - Calc preferred height properly
32341                 - Implement missing properties
32342                 
32343         * NumericUpDown.cs: Implement missing events
32344
32345 2005-05-19  Jackson Harper  <jackson@ximian.com>
32346
32347         * TabControl.cs: New method that resizes the tab pages before
32348         redrawing them. This as needed as the control is double buffered
32349         and sizing will not be recalculated unless ResizeTabPages is
32350         called.
32351         * TabPage.cs: Set base.Text instead of Text in the constructor so
32352         that UpdateOwner does not get called. Use the new Redraw method of
32353         TabControl instead of Refresh so the sizing is recalculated.
32354         * ThemeWin32Classic.cs: Draw the text for button tabs.
32355
32356 2005-05-19  Jackson Harper  <jackson@ximian.com>
32357
32358         * Control.cs: Paint control background images. Fix typo where
32359         PaintControlBackground was not getting called correctly.
32360
32361 2005-05-19  Peter Bartok  <pbartok@novell.com>
32362
32363         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
32364           I can investigate, apparently I broke FileDialog
32365
32366 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
32367
32368         * AxHost.cs: Some simple properties.
32369         * Control.cs: window must be accessible after ctor.
32370         * Form.cs: Added TransparencyKey property.
32371         * TextBoxBase.cs: Implemented Clear. Text property can be null.
32372         * XplatUIWin32.cs: SetBorderStyle implemented.
32373
32374 2005-05-18  Peter Bartok  <pbartok@novell.com>
32375
32376         * DataObject.cs: Entries are not global but particular to the
32377           DataObject, now it behaves that way
32378         * XplatUIWin32.cs: Implemented Clipboard methods
32379         * Clipboard.cs: Implemented
32380         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
32381         * XplatUIOSX.cs: Updated to final clipboard prototypes
32382         * XplatUIX11.cs: Implemented Clipboard methods
32383         * XplatUIDriver.cs: Updated to final clipboard prototypes
32384         * XplatUIStructs.cs:
32385           - Added BITMAPINFOHEADER struct
32386           - Added ClipboardFormats enum
32387         * X11Structs.cs:
32388           - Added ClipboardStruct
32389           - Added Atom enum items for clipboard types
32390           - Fixed atom types for Selection event structures
32391         * DataFormats.cs:
32392           - Added internal properties and methods for drivers to enumerate
32393             all known formats
32394           - Switched initialization method to allow drivers to assign their
32395             own IDs even for the MS predefined clipboard IDs
32396         * XplatUI.cs: Updated to final clipboard interface
32397
32398 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32399         * PropertyGridView.cs: Fixed compiler warnings.
32400
32401 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32402         * PropertyGrid.cs: Added some event calls
32403         * PropertyGridView.cs: Change drawing code to use double buffering
32404         * PropertyGridTextBox.cs: Changed Text property name
32405         * GridItem.cs: Added Bounds property.
32406         * GridEntry.cs: Added Bounds property.
32407
32408 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
32409
32410         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
32411         since GetType() may not return the correct type if the object is
32412         a remoting proxy.
32413
32414 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
32415
32416         * TreeNodeCollection.cs: fixes get/set item ranges
32417         
32418 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
32419
32420         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
32421                 
32422 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
32423
32424         * ComboBox.cs: Fix item range comparation
32425         * ListView.cs: Fix item range comparation
32426
32427 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
32428
32429         * FontDialog.cs:
32430           - Clear example panel when OnPaint is called
32431           - Better solution for displaying the example panel text
32432           - Select default indexes in the ListBoxes
32433
32434 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
32435
32436         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
32437
32438 2005-05-11  Peter Bartok  <pbartok@novell.com>
32439
32440         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
32441         * SelectionRangeConverter.cs: Implemented
32442         * PropertyGrid.cs: Fixed attribute value
32443         * Control.cs:
32444           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
32445           - Added Sebastien Pouliot's CAS Stack Propagation fixes
32446         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
32447           that's common to all drivers. First methods to go there are
32448           Sebastien Pouliot's CAS Stack Propagation helper methods
32449         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
32450           Sebastien Pouliot for CAS Stack Propagation
32451
32452 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
32453
32454         * OSXStructs.cs:
32455           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
32456
32457 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
32458
32459         * DataGridTextBoxColumn.cs: fixed some members
32460         * GridColumnStylesCollection.cs: indexed column is case insensitive
32461         * DataGridTableStyle.cs: fixes
32462         * ThemeWin32Classic.cs: add new theme parameter
32463         * Theme.cs: add new theme parameter
32464         * DataGridDrawingLogic.cs: Datagrid's drawing logic
32465         * DataGrid.cs: fixes, new internal properties, etc.
32466         * DataGridColumnStyle.cs: allows to set grid value
32467         *
32468
32469 2005-05-10  Peter Bartok  <pbartok@novell.com>
32470
32471         * AccessibleObject.cs:
32472           - Removed MonoTODO attribute on help, method is correct
32473           - Fixed Bounds property
32474         * AxHost.cs: Moved MonoTODO
32475         * ButtonBase.cs: Now setting AccessibleObject properties
32476         * RadioButton.cs: Setting proper AccessibleObject role
32477         * CheckBox.cs: Setting proper AccessibleObject role
32478         * ControlBindingsCollection.cs: Added properties, methods and attributes
32479         * DataFormats.cs: Fixed awkward internal API, and changed to enable
32480           userdefined DataFormats.Format items as well
32481         * ListControl.cs: Removed data_member from the public eye
32482         * OpenFileDialog.cs:
32483           - Made class sealed
32484           - Added missing attributes
32485         * SaveFileDialog.cs: Added missing attributes
32486         * ImageListStreamer.cs: Fixed code that caused warnings
32487         * LinkLabel.cs: Removed unreachable code
32488         * TreeView.cs: Fixed code that caused warnings
32489         * PropertyGridView.cs: Fixed code that caused warnings
32490         * GridColumnStylesCollection.cs: Added missing attributes
32491         * GridTableStylesCollection: Added missing attribute
32492         * PropertyManager: Added .ctor
32493         * SecurityIDType: Added
32494         * DataObject.cs: Implemented class
32495         * LinkArea.cs: Added missing attribute
32496
32497 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
32498
32499         * RadioButton.cs: call base method to allow to fire OnClick event
32500         * UpDownBase.cs: OnMouseUp call base method
32501         * CheckedListBox.cs: call base method before returning
32502         * TrackBar.cs: call base method before returning
32503         
32504
32505 2005-05-10  Peter Bartok  <pbartok@novell.com>
32506
32507         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
32508           for messages
32509
32510 2005-05-10  Peter Bartok  <pbartok@novell.com>
32511
32512         * DataFormats.cs: Implemented
32513         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
32514           XplatUIX11.cs: Added Clipboard APIs
32515         * XplatUIWin32.cs: Implemented Clipboard APIs
32516         * FolderBrowserDialog.cs: Added missing event, attributes
32517
32518 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
32519
32520         * CheckBox.cs: call base method to allow to fire OnClick event
32521
32522 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
32523
32524         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
32525
32526 2005-05-06  Peter Bartok  <pbartok@novell.com>
32527
32528         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
32529         * Screen.cs: Implemented
32530         * HelpNavigator.cs: Added
32531         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
32532           property
32533         * HelpProvider.cs: Implemented all we can do until we have a CHM
32534           help library (which means that "What's This" does work now)
32535
32536 2005-05-06  Jackson Harper  <jackson@ximian.com>
32537
32538         * XplatUIX11.cs: Fix waking up the main loop.
32539                 
32540 2005-05-05  Peter Bartok  <pbartok@novell.com>
32541
32542         * XplatUI.cs: Updated revision
32543         * Form.cs: Removed enless loop
32544         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
32545         * Label.cs (OnPaint): Added call to base.OnPaint()
32546         * ToolTip.cs: Made ToolTipWindow reusable for other controls
32547         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
32548         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
32549         * AxHost.cs: Added
32550         * ButtonBase.cs: Moved base.OnPaint() call to end of method
32551         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
32552           to ToolTip.ToolTipWindow for drawing and size methods; this allows
32553           reuse of ToolTipWindow by other controls
32554         * SizeGrip.cs: Moved base.OnPaint() call to end of method
32555         * XplatUIX11.cs: Now clipping drawing area (experimental)
32556         * PictureBox.cs: Moved base.OnPaint() call to end of method
32557         * Theme.cs: Fixed ToolTip abstracts to match new format
32558         * ErrorProvider.cs: Implemented
32559
32560 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
32561
32562         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
32563         * LinkLabel.cs:
32564                 - Adds cursors
32565                 - Handles focus
32566                 - Implements LinkBehavior
32567                 - Fixes many issues
32568
32569 2005-05-03  Jackson Harper  <jackson@ximian.com>
32570
32571         * ListView.cs: Calculate the scrollbar positioning on resize and
32572         paint, so they get put in the correct place.
32573
32574 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
32575
32576         * ColorDialogs.cs: The small color panels are now handled by
32577           SmallColorControl. This fixes drawing of the focus rectangle
32578           and adds a 3D border.
32579
32580 2005-05-03  Peter Bartok  <pbartok@novell.com>
32581
32582         * Control.cs: Modified version of Jonathan Chamber's fix for
32583           double-buffering
32584
32585 2005-05-03  Jackson Harper  <jackson@ximian.com>
32586
32587         * ListView.cs: Remove redraw variable. Control now handles whether
32588         or not a redraw needs to be done, and will only raise the paint
32589         event if redrawing is needed.
32590
32591 2005-05-03  Jackson Harper  <jackson@ximian.com>
32592
32593         * Splitter.cs: No decorations for the splitter form. Cache the
32594         hatch brush.
32595
32596 2005-05-03  Jackson Harper  <jackson@ximian.com>
32597
32598         * TreeView.cs: Use dashed lines to connect nodes. Use the
32599         ControlPaint method for drawing the focus rect instead of doing
32600         that in treeview.
32601
32602 2005-05-02  Peter Bartok  <pbartok@novell.com>
32603
32604         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
32605
32606 2005-04-29  Jackson Harper  <jackson@ximian.com>
32607
32608         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
32609         entire image buffer. Just clear the clipping rectangle.
32610
32611 2005-04-29  Jackson Harper  <jackson@ximian.com>
32612
32613         * ThemeWin32Classic.cs: Don't draw list view items that are
32614         outside the clipping rectangle.
32615
32616 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
32617
32618         * ListBox.cs: added horizontal item scroll
32619
32620 2005-04-29  Jackson Harper  <jackson@ximian.com>
32621
32622         * ThemeWin32Classic.cs: Remove some old debug code that was
32623         causing flicker with the new double buffering code.
32624
32625 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
32626
32627         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
32628         behave like combobox and comboboxlist (still not sure if this is
32629         correct though).
32630
32631 2005-04-28  Jackson Harper  <jackson@ximian.com>
32632
32633         * ThemeWin32Classic.cs: Don't fill the middle of progress
32634         bars. This fills areas outside of the clip bounds that don't need
32635         to be filled.
32636
32637 2005-04-28  Jackson Harper  <jackson@ximian.com>
32638
32639         * Control.cs: Don't expose functionality to touch the image buffers.
32640         * ProgressBar.cs:
32641         * ListView.cs: We do not need to (and no longer can) manipulate
32642         the image buffers directly. All of this is handled by Control.
32643
32644 2005-04-28  Peter Bartok  <pbartok@novell.com>
32645
32646         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32647           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
32648           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
32649
32650 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
32651
32652         * Combobox:
32653                 - Adjust control's height for non-simple comboboxes (bug fix)
32654                 - Remove dead code
32655         * MenuAPI.cs: remove unused var
32656         * ScrollBar.cs: remove unsed var
32657                  
32658         * ListBox.cs: unselect items when clearing
32659
32660 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
32661
32662         * ListControl.cs: honors OnPositionChanged and default Selected Item
32663         * ListBox.cs: unselect items when clearing
32664
32665 2005-04-27  Jackson Harper  <jackson@ximian.com>
32666
32667         * X11Keyboard.cs: Initialize a default keyboard and give a warning
32668         if a "correct" keyboard is not found. This will make us not crash,
32669         but might give some users bad keyboard layouts...seems to be the
32670         same thing rewind does.
32671
32672 2005-04-27  Jackson Harper  <jackson@ximian.com>
32673
32674         * BindingManagerBase.cs: Attach the current/position changed
32675         handlers to their respective events.
32676
32677 2005-04-27  Jackson Harper  <jackson@ximian.com>
32678
32679         * Control.cs: Make sure that the first WM_PAINT does a full draw,
32680         not just a blit.
32681         * ThemeWin32Classic.cs: Don't fill the background for picture
32682         boxes. This could overright user drawing.
32683         * ComboBox.cs: Just fill the clipping rect not the entire client
32684         rect when drawing the background. This prevents pieces of the
32685         image buffer from getting overwritten and is theoretically faster.
32686
32687 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
32688
32689         * ComboBox.cs: Databinding support fixes, fire missing events
32690         * ListControl.cs: implement missing methods and properties, fixes
32691         * ThemeWin32Classic.cs: Databiding support on Drawing
32692         * CheckedListBox.cs: Databinding support fixes, fire missing events
32693         * ListBox.cs: Databinding support fixes, fire missing events
32694         
32695 2005-04-25  Peter Bartok  <pbartok@novell.com>
32696
32697         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
32698
32699 2005-04-25  Jackson Harper  <jackson@ximian.com>
32700
32701         * TreeView.cs: Use the horizontal scrollbars height not width when
32702         determining how much of the client area is available.
32703
32704 2005-04-25  Jackson Harper  <jackson@ximian.com>
32705
32706         * Control.cs: Double buffering is handled differently now. As per
32707         the spec, the extra buffer is created in the WM_PAINT message and
32708         passed down to the control's drawing code.
32709         * GroupBox.cs:
32710         * Label.cs:
32711         * CheckBox.cs:
32712         * ProgressBar.cs:
32713         * RadioButton.cs:
32714         * ColorDialog.cs:
32715         * ComboBox.cs:
32716         * PropertyGridView.cs:
32717         * UpDownBase.cs:
32718         * MessageBox.cs:
32719         * MenuAPI.cs:
32720         * ListView.cs:
32721         * ButtonBase.cs:
32722         * SizeGrip.cs:
32723         * ScrollBar.cs:
32724         * ListBox.cs:
32725         * TrackBar.cs:
32726         * ToolBar.cs:
32727         * PictureBox.cs:
32728         * DateTimePicker.cs:
32729         * StatusBar.cs:
32730         * TreeView.cs: Update to new double buffering system.
32731         * MonthCalendar.cs: Uncomment block, as Capture is now
32732         working. Update to new double buffering
32733         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
32734         * PaintEventArgs.cs: New internal method allows us to set the
32735         graphics object. This is used for double buffering.
32736         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
32737         rectangle. The internal paint_area var has been removed from
32738         StatusBar. The clipping rect should be used instead.
32739         * Theme.cs: Give the PictureBox drawing method a clipping rect.
32740         * TabPage.cs: The RefreshTabs method was removed, so just call the
32741         tab controls Refresh method now.
32742         * TabControl.cs: Update to new double buffering. Make sure the
32743         handle is created before sizing the tab pages, otherwise we will
32744         get stuck in a loop.
32745
32746 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
32747
32748         * LinkLabel.cs: Fix typo, bug #74719; patch
32749           from Borja Sanchez Zamorano
32750
32751 2005-04-22  Jackson Harper  <jackson@ximian.com>
32752
32753         * TreeNode.cs: Implement Handle stuff.
32754         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
32755
32756 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
32757
32758         * DataGridTextBoxColumn.cs: call base constructors, fixes
32759         * GridColumnStylesCollection.cs: missing events, methods, and functionality
32760         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
32761         * DataGridTableStyle.cs: implements create default column styles
32762         * DataGridBoolColumn.cs: which types can handle
32763         * DataGrid.cs: missing methods, fixes, new functionality
32764         * DataGridColumnStyle.cs: fixes
32765
32766 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
32767         * FolderBrowserDialog.cs:
32768         - Use a thread to fill the TreeView
32769         - Adjusted some sizes
32770
32771 2005-04-19  Peter Bartok  <pbartok@novell.com>
32772
32773         * LinkLabel.cs: (Re-)create the pieces when setting the Text
32774           property. Fixes #74360.
32775
32776 2005-04-19  Jackson Harper  <jackson@ximian.com>
32777
32778         * XEventQueue.cs: Lock when getting the lockqueue size.
32779         * PictureBox.cs: Call base OnPaint
32780         
32781 2005-04-19  Peter Bartok  <pbartok@novell.com>
32782
32783         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
32784           messages were no longer being processed (this broke BeginInvoke)
32785
32786           
32787 2005-04-18  Jackson Harper  <jackson@ximian.com>
32788
32789         * TreeView.cs: buglet that caused node images to get drawn
32790         regardless of whether or not they were in the clipping rectangle.
32791
32792 2005-04-18  Jackson Harper  <jackson@ximian.com>
32793
32794         * CurrencyManager.cs: There are four rules for GetItemProperties:
32795         - If the type is an array use the element type of the array
32796         - If the type is a typed list, use the type
32797         - If the list contains an Item property that is not an object, use
32798         that property
32799         - use the first element of the list if there are any elements in
32800         the list.
32801         
32802 2005-04-17  Jackson Harper  <jackson@ximian.oom>
32803
32804         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
32805         click. This handles offsets for scrolling properly and reduces
32806         memory. Also fixed GetNode to not offset now that TopNode works
32807         properly.
32808         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
32809         
32810 2005-04-17  Jackson Harper  <jackson@ximian.com>
32811
32812         * CursorConverter.cs: Initial implementation.
32813
32814 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
32815
32816         * ListControl.cs: work towards complex data binding support on ListControl
32817         * CurrencyManager.cs: work towards complex data binding support on ListControl
32818         * ListBox.cs: work towards complex data binding support on ListControl
32819
32820
32821 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
32822
32823         * GridTableStylesCollection.cs: fixes name and constructor
32824         * DataGridTableStyle.cs: fixes
32825         * DataGridBoolColumn.cs: fixes names and constructors
32826         * DataGrid.cs: define methods and properties. Some init implementations
32827         * DataGridCell.cs: define methods and properties. Some init implementations
32828         * GridTablesFactory.cs: Define methods and properties
32829
32830 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
32831
32832         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
32833         graphics port changes.  We still want the coordinates in global screen
32834         coordinates.
32835
32836 2005-04-14  Jackson Harper  <jackson@ximian.com>
32837
32838         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
32839         check plus minus or checkbox clicks unless those features are enabled.
32840
32841 2005-04-14  Jackson Harper  <jackson@ximian.com>
32842
32843         * TreeView.cs: Add methods for setting the top and bottom visible
32844         nodes. TreeNode::EnsureVisible uses these methods.
32845         * TreeNode.cs: Implement EnsureVisible
32846
32847 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
32848
32849         * Form.cs: Pospone menu assignation if the window has not been created yet
32850         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
32851         size and position
32852
32853 2005-04-12  Jackson Harper  <jackson@ximian.com>
32854
32855         * TreeView.cs: Set the TopNode properly when scrolling
32856         occurs. This has the added benifit of reducing the amount of
32857         walking that needs to be done when drawing. Also removed an old
32858         misleading TODO.
32859         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
32860         
32861 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
32862
32863         * Timer.cs: fixes interval setting when the timer is already enabled
32864         
32865 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
32866
32867         * FolderBrowserDialog.cs: First approach
32868
32869 2005-04-09  Peter Bartok  <pbartok@novell.com>
32870
32871         * FolderBrowserDialog: Added
32872
32873 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
32874
32875         * LinkLabel.cs: move drawing code into the theme
32876         * ThemeWin32Classic.cs: drawing code and painting background bugfix
32877         * Theme.cs: define DrawLinkLabel method
32878
32879 2005-04-05  Jackson Harper  <jackson@ximian.com>
32880
32881         * BindingContext.cs: Use weak references so these bad actors don't
32882         stay alive longer then they need to.
32883
32884 2005-04-05  Jackson Harper  <jackson@ximian.com>
32885
32886         * ListControl.cs: Basic implementation of complex databinding.
32887         * ComboBox.cs:
32888         * ListBox.cs: Add calls to ListControl databinding methods.
32889
32890 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
32891
32892         * FileDialog.cs:
32893           - Don't change PopupButtonState to Normal when the
32894             PopupButton gets pressed several times.
32895           - Renamed ButtonPanel to PopupButtonPanel
32896
32897 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
32898
32899         * ColorDialog.cs: Use cached objects instead of creating them
32900         * LinkLabel.cs: Use cached objects instead of creating them
32901         * Splitter.cs: Use cached objects instead of creating them
32902         * FontDialog.cs: Use cached objects instead of creating them
32903         * PropertyGridView.cs: Use cached objects instead of creating them
32904         * MessageBox.cs: Use cached objects instead of creating them
32905         * FileDialog.cs: Use cached objects instead of creating them
32906         * ThemeWin32Classic.cs: Use cached objects instead of creating them
32907         * TreeView.cs: Use cached objects instead of creating them
32908         
32909 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
32910
32911         * Control.cs: use Equals to compare the font since no == op
32912         * ScrollBar.cs: use Equals to compare the font since no == op
32913
32914 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
32915
32916         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
32917
32918 2005-04-01  Jackson Harper  <jackson@ximian.com>
32919
32920         * Binding.cs: Implement IsBinding.
32921         * BindingManagerBase.cs:
32922         * PropertyManager.cs:
32923         * CurrencyManager.cs: Add IsSuspended property.
32924
32925 2005-04-01  Jackson Harper  <jackson@ximian.com>
32926
32927         * Binding.cs: Had some IsAssignableFrom calls backwards.
32928
32929 2005-04-01  Jackson Harper  <jackson@ximian.com>
32930
32931         * Binding.cs: Handle null data members when pulling data.
32932         * PropertyManager.cs: Handle the data member being a property that
32933         does not exist.
32934
32935 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
32936
32937         * DataGridTextBoxColumn.cs: fixes signature
32938         * DataGrid.cs: calls right constructor
32939
32940 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
32941
32942         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
32943         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
32944         * GridTableStylesCollection.cs: implements GridTableStylesCollection
32945         * DataGridTableStyle.cs: implements DataGridTableStyle
32946         * DataGridBoolColumn.cs: implements DataGridBoolColumn
32947         * DataGridTextBox.cs: implements DataGridTextBox
32948         * DataGridColumnStyle.cs: implements DataGridColumnStyle
32949
32950 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
32951
32952         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
32953
32954 2005-03-29  Peter Bartok  <pbartok@novell.com>
32955
32956         * Application.cs:
32957           - Properly implemented CompanyName property
32958           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
32959             returns a path that includes CompanyName, ProductName and
32960             Version (fixes bug #70330)
32961
32962 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
32963
32964         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
32965           fixes bug #72588.
32966
32967 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
32968
32969         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
32970         
32971           - Added ReadOnly CheckBox
32972           - Further refactoring: moved some code from Open-/SaveFileDialog
32973             to FileDialog
32974
32975 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
32976
32977         * OpenFileDialog.cs: Fixed CheckFileExists
32978         * FileDialog.cs:
32979           Moved FileView and DirComboBox outside FileDialog class.
32980           They can now be used outside FileDialog
32981
32982 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
32983
32984         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
32985         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
32986
32987 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
32988
32989         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32990           - Added missing CreatePrompt property in SaveDialog
32991           - Overall SaveDialog handling should be better now
32992           - Added non standard ShowHiddenFiles property
32993           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
32994           - Added InitialDirectory and RestoreDirectory support
32995
32996 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
32997
32998         * FileDialog.cs: Made dirComboBox usable
32999
33000 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
33001
33002         * FileDialog.cs: Added Filter support (case sensitiv)
33003
33004 2005-03-24  Jackson Harper  <jackson@ximian.com>
33005
33006         * TabControl.cs: Need a couple more pixels for the lines.
33007
33008 2005-03-23  Jackson Harper  <jackson@ximian.com>
33009
33010         * TabControl.cs: Give the tab page focus when it is selected.
33011
33012 2005-03-23  Jackson Harper  <jackson@ximian.com>
33013
33014         * TabControl.cs: Account for the drawing of tabs borders when
33015         invalidating. If the slider was clicked dont do click detection on
33016         the tabs.
33017
33018 2005-03-23  Jackson Harper  <jackson@ximian.com>
33019
33020         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
33021
33022 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
33023
33024         * CategoryGridEntry.cs: Added
33025         * GridItem.cs: Added helper properties
33026         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
33027         * GridEntry.cs: Updated code for collection
33028         * PropertyGrid.cs: Cleaned up some formatting
33029         * PropertyGridView.cs: Added drop down functionality for enums.
33030         * GridItemCollection.cs: Added enumerator logic
33031         * PropertyGridEntry.cs: Added
33032
33033 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
33034
33035         * FileDialog.cs:
33036           - Removed unnecessary commented code
33037           - Fixed handling for entering the filename manually in the combobox
33038
33039 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
33040
33041         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
33042
33043 2005-03-18  Peter Bartok  <pbartok@novell.com>
33044
33045         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
33046           them being touching the border
33047
33048 2005-03-18  Peter Bartok  <pbartok@novell.com>
33049
33050         * TextControl.cs: Quick hack to center text better
33051
33052 2005-03-18  Peter Bartok  <pbartok@novell.com>
33053
33054         * ControlPaint.cs:
33055           - Don't throw NotImplemented exceptions, just print a notice once
33056             instead (requested by Miguel). This makes running existing SWF
33057             apps a bit easier
33058         * Control.cs:
33059           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
33060           - Added context menu trigger on right click
33061         * Panel.cs: Trigger invalidate on resize
33062         * StatusBar.cs:
33063           - Removed old double-buffer drawing
33064           - Added ResizeRedraw style to force proper update of statusbar
33065         * ListView.cs:
33066           - Removed debug output
33067         * ThemeWin32Classic.cs:
33068           - Fixed drawing of status bar, now draws Text property if there
33069             are no defined panels
33070
33071 2005-03-18  Jackson Harper  <jackson@ximian.com>
33072
33073         * ImageList.cs: When the image stream is set pull all the images
33074         from it.
33075         * ImageListStreamer.cs: Implement reading image list streams.
33076
33077 2005-03-18  Peter Bartok  <pbartok@novell.com>
33078
33079         * ThemeWin32Classic.cs (DrawPictureBox):
33080           - Fixed calculations for centered drawing
33081           - Fixed drawing for normal mode, not scaling the image on normal
33082
33083 2005-03-18  Peter Bartok  <pbartok@novell.com>
33084
33085         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
33086           textbox
33087         * FileDialog.cs:
33088           - Made Open/Save button the accept button for FileDialog
33089           - Tied the cancel button to the IButtonControl cancel button
33090           - Save/Open now properly builds the pathname
33091           - Now handles user-entered text
33092           - Preventing crash on right-click if no item is selected
33093           - Fixed Text property, now uses contents of textbox
33094           - Fixed SelectedText property, now just returns the text part that
33095             is selected in the text box
33096
33097 2005-03-18  Jackson Harper  <jackson@ximian.com>
33098
33099         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
33100         rect, make sure to de-adjust the interior rect after drawing the
33101         tab text.
33102
33103 2005-03-18  Peter Bartok  <pbartok@novell.com>
33104
33105         * MenuAPI.cs: Remove menu *before* executing selected action to
33106           prevent the menu from 'hanging around'
33107           
33108 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
33109
33110         * XplatUIOSX.cs: Implemented WorkingArea property
33111
33112 2005-03-17  Peter Bartok  <pbartok@novell.com>
33113
33114         * XplatUIX11.cs: Fixed menu coord calculations
33115         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
33116           for calculating offsets
33117
33118 2005-03-17  Peter Bartok  <pbartok@novell.com>
33119
33120         * Hwnd.cs: Do not consider menu presence for default client
33121           rectangle location/size
33122         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
33123           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
33124           translation functions
33125         * FileDialog.cs: Fixed (what I presume is a) typo
33126
33127 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
33128
33129         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
33130           X access (avoids X-Async errors)
33131
33132 2005-03-16  Jackson Harper  <jackson@ximian.com>
33133
33134         * TabControl.cs: Raise the SelectedIndexChanged event.
33135
33136 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
33137
33138         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33139           - Removed vertical ToolBar and replaced it with a custom panel
33140             (desktop and home button already work)
33141           - Added Help button (some controls get resized or relocated then)
33142           - Draw correct text depending on Open or Save.
33143           - Fixed some typos...
33144
33145 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
33146
33147         * ScrollBar.cs:
33148           - Only change Maximum and Minimum when need it (bug fix)
33149
33150 2005-03-15  Peter Bartok  <pbartok@novell.com>
33151
33152         * Form.cs: Use Handle for icon, to trigger creation if
33153           the window does not yet exist
33154         * Control.cs:
33155           - CanSelect: Slight performance improvement
33156           - Focus(): Preventing possible recursion
33157           - Invalidate(): Removed ControlStyle based clear flag setting
33158           - WM_PAINT: fixed logic for calling OnPaintBackground
33159           - WM_ERASEBKGND: Fixed logic, added call to new driver method
33160             EraseWindowBackground if the control doesn't paint background
33161         * XplatUIWin32.cs:
33162           - Moved EraseWindowBackground() method to internal methods
33163           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
33164             is sent via SendMessage on BeginPaint call on Win32
33165         * XplatUIX11.cs:
33166           - Added EraseWindowBackground() method
33167           - No longer sends WM_ERASEBKGND on .Expose, but on call to
33168             PaintEventStart, which more closely matches Win32 behaviour
33169           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
33170           - Fixed SetFocus() to properly deal with client and whole windows
33171         * Hwnd.cs: Added ErasePending property
33172         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
33173         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
33174
33175 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
33176
33177         * XplatUIOSX.cs:
33178           - Fix hard loop when timers exist.
33179           - Fix bugs with middle and right click for 3 button mice.
33180
33181 2005-03-11  Peter Bartok  <pbartok@novell.com>
33182
33183         * XplatUIX11.cs:
33184           - get_WorkingArea: Need to call X directly, GetWindowPos only
33185             returns cached data now
33186           - Added sanity check to GetWindowPos hwnd usage
33187
33188 2005-03-11  Jackson Harper  <jackson@ximian.com>
33189
33190         * BindingManagerBase.cs: This method isn't used anymore as
33191         PullData now updates the data in the control.
33192
33193 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
33194
33195         * Form.cs: fixes menu drawing on X11
33196         * MenuAPI.cs:  fixes menu drawing on X11
33197
33198 2005-03-11  Peter Bartok  <pbartok@novell.com>
33199
33200         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
33201           from Jonathan Gilbert; should fix bug #73606
33202         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
33203           in Screen coordinates. Thanks, Jordi.
33204         * Form.cs: Added missing attribute
33205
33206 2005-03-11  Peter Bartok  <pbartok@novell.com>
33207
33208         * Form.cs:
33209           - Rudimentary Mdi support
33210           - Removed outdated FormParent code
33211           - Implemented lots of missing properties and methods, still missing
33212             transparency support
33213           - Added missing attributes
33214           - Implemented support for MaximumBounds
33215           - Added firing of various events
33216         * XplatUI.cs: Added SetIcon() method
33217         * XplatUIDriver.cs: Added SetIcon() abstract
33218         * XplatUIOSX.cs: Stubbed out SetIcon() method
33219         * XplatUIX11.cs:
33220           - Implemented SetIcon() support
33221           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
33222           - Switched to unix line endings
33223         * XplatUIWin32.cs:
33224           - Made POINT internal so for can access it as part of MINMAX
33225           - Implemented SetIcon() support
33226           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
33227             native Mdi support again, might have to go managed)
33228         * Control.cs: Now fires the StyleChanged event
33229         * MdiClient.cs: Added; still mostly empty
33230
33231 2005-03-10  Peter Bartok  <pbartok@novell.com>
33232
33233         * SaveFileDialog.cs: Added emtpy file
33234
33235 2005-03-08  Peter Bartok  <pbartok@novell.com>
33236
33237         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
33238           in turn triggers OnCreateContro) when creating a handle for the
33239           first time.
33240         * TextControl.cs: Fixed endless loop in certain cases when
33241           replacing the current selection
33242
33243 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
33244
33245         * ScrollBar.cs:
33246           - Honors NewValue changes in Scroll events allowing apps to change it
33247           - Adds First and Last Scroll events
33248           - Fixes Thumb events
33249
33250 2005-03-07  Peter Bartok  <pbartok@novell.com>
33251
33252         * Hwnd.cs: Added DefaultClientRectangle property
33253         * XplatUI.cs: Now using the X11 driver Where() method, which provides
33254           more detailed debug information
33255         * XplatUIX11.cs:
33256           - Fixed size-change feedback loop, where we would pull an old size
33257             off the queue and mistakenly change our window's size to an
33258             earlier value
33259           - Now compressing ConfigureNotify events, to reduce looping and
33260             redraw issues
33261         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
33262           is called
33263
33264 2005-03-07  Jackson Harper  <jackson@ximian.com>
33265
33266         * Binding.cs: Push data pushes from data -> property. Check if the
33267         property is readonly when attempting to set it.
33268
33269 2005-03-07  Jackson Harper  <jackson@ximian.com>
33270
33271         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
33272         instead of IsSubclassOf. Pulling data now sets the value on the
33273         control.
33274         * PropertyManager.cs:
33275         * CurrencyManager.cs: Just need to pull data when updating now,
33276         because PullData will set the value on the control.
33277
33278 2005-03-04  Jackson Harper  <jackson@ximian.com>
33279
33280         * Binding.cs: Implement data type parsing and converting on pulled
33281         data. TODO: Are there more ways the data can be converted?
33282
33283 2005-03-04  Jackson Harper  <jackson@ximian.com>
33284
33285         * Binding.cs: Support <Property>IsNull checks. Also bind to the
33286         controls Validating method so we can repull the data when the
33287         control loses focus.
33288
33289 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
33290
33291         * ColumnHeader.cs:
33292           - Fixes null string format
33293           
33294         * ListView.cs:
33295           - Adds enum type checks
33296           - Fixes redrawing and recalc need after changing some properties
33297           - Fixes on focus_item set after the event
33298           - Fixes adding columns after the control has been created
33299           
33300         * ThemeWin32Classic.cs:
33301           - Fixes CheckBox focus rectangle
33302           - Fixes ColumnHeader drawing
33303
33304
33305 2005-03-03  Jackson Harper  <jackson@ximian.com>
33306
33307         * Binding.cs: Bind to <Property>Changed events so we can detect
33308         when properties are changed and update the data.
33309
33310 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
33311
33312         * ImageList.cs:
33313           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
33314           - Fixes ImageList constructor with ImageList container
33315           - Fixes image scaling (wrong parameters at DrawImage)
33316
33317 2005-02-02  Jackson Harper  <jackson@ximian.com>
33318
33319         * Binding.cs: Make property searches case-insensitive. Eliminate
33320         some duplicated code.
33321
33322 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
33323
33324         * ComboBox.cs:
33325                 - Handle focus event
33326                 - Fix scrollbar events
33327                 - Discard highlighted item if remove it
33328                 - Fixes SelectedItem with strings
33329
33330 2005-03-01  Peter Bartok  <pbartok@novell.com>
33331
33332         * Control.cs:
33333           - Fixed Visible property, now follows (once again) parent chain
33334             to return false if any control in the chain is visible=false
33335           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
33336           - Fixed several places where is_visible instead of Visible was used
33337           - Implemented FIXME related to focus selection when setting focused
33338             control to be invisible
33339
33340         * XplatUIWin32.cs: Now using proper method to find out if window is
33341           visible. Thanks to Jordi for pointing it out
33342
33343 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
33344
33345         * ComboBox.cs: show/hide scrollbar instead of creating it
33346
33347 2005-02-27  Jackson Harper  <jackson@ximian.com>
33348
33349         * CurrencyManager.cs: Add PositionChanged stuff.
33350
33351 2005-02-27  Peter Bartok  <pbartok@novell.com>
33352
33353         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
33354         * XplatUIOSX.cs: Added GetMenuOrigin() stub
33355         * XplatUIWin32.cs: Implemented GetMenuOrigin()
33356         * XplatUIX11.cs:
33357           - Implemented GetMenuDC()
33358           - Implemented GetMenuOrigin()
33359           - Implemented ReleaseMenuDC()
33360           - Implemented generation of WM_NCPAINT message
33361           - Implemented generation and handling of WM_NCCALCSIZE message
33362         * Form.cs: Added debug helper message for Jordi's menu work
33363         * Hwnd.cs:
33364           - Modified ClientRect property; added setter, fixed getter to handle
33365             setting of ClientRect
33366           - Added MenuOrigin property
33367
33368 2005-02-26  Peter Bartok  <pbartok@novell.com>
33369
33370         * XplatUIX11.cs:
33371           - Destroys the caret if a window that's being destroyed contains it
33372           - Ignores expose events coming from the X11 queue for windows that
33373             already are destroyed
33374           - Now uses the proper variable for handling DestroyNotify, before we
33375             marked the wrong window as destroyed
33376           - Improved/added some debug output
33377
33378 2005-02-26  Peter Bartok  <pbartok@novell.com>
33379
33380         * X11Keyboard.cs: Fixes to work on 64bit systems
33381
33382 2005-02-26  Peter Bartok  <pbartok@novell.com>
33383
33384         * Control.cs:
33385           - Now calling OnHandleDestroyed from DestroyHandle()
33386             instead of Dispose()
33387           - Removed bogus call to controls.Remove() from DestroyHandle()
33388
33389 2005-02-26  Peter Bartok  <pbartok@novell.com>
33390
33391         * Control.cs: Properly destroy child windows when our handle is
33392           destroyed
33393
33394 2005-02-25  Peter Bartok  <pbartok@novell.com>
33395
33396         * XplatUI.cs:
33397           - Added 'DriverDebug' define to allow tracing XplatUI API calls
33398           - Alphabetized Static Methods and Subclasses
33399
33400         * XplatUIX11.cs:
33401           - Added XException class to allow custom handling of X11 exceptions
33402           - Created custom X11 error handler, tied into XException class
33403           - Added support for MONO_XEXCEPTIONS env var to allow the user
33404             to either throw an exception on X errors or continue running
33405             after displaying the error
33406           - Added handling of DestroyNotify message
33407           - Added handler for CreateNotify message (still disabled)
33408           - Improved (tried to at least) Where method to provide file and lineno
33409         * X11Structs.cs:
33410           - Added XErrorHandler delegate
33411           - Added XRequest enumeration (to suppor translation of errors)
33412
33413 2005-02-25  Jackson Harper  <jackson@ximian.com>
33414
33415         * PropertyManager.cs: Implement editing features
33416         * CurrencyManager.cs:
33417         * Binding.cs: First attempt at UpdateIsBinding
33418         * BindingManagerBase.cs: Call UpdateIsBinding before
33419         pushing/pulling data.
33420
33421 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
33422
33423         * MenuAPI.cs: Respect disabled items
33424         * ThemeWin32Classic.cs
33425                 - Caches ImageAttributes creation for DrawImageDisabled
33426                 - Fixes vertical menu line drawing
33427                 - Draws disabled arrows in disable menu items
33428
33429 2005-02-24  Peter Bartok  <pbartok@novell.com>
33430
33431         * Hwnd.cs:
33432           - Added UserData property to allow associating arbitrary objects
33433             with the handle
33434           - Fixed leak; now removing Hwnd references from static windows array
33435         * XplatUIWin32.cs:
33436           - Fixed Graphics leak in PaintEventEnd
33437           - Removed usage of HandleData, switched over to Hwnd class
33438         * HandleData.cs: Removed, obsoleted by Hwnd.cs
33439
33440 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
33441
33442         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
33443         * ScrollBar.cs: Fixes bug
33444         * TrackBar.cs: removes death code, clipping, mimize refreshes,
33445          keyboard navigation enhancements
33446
33447 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
33448
33449         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
33450         * GroupBox.cs: Add control styles
33451         * Label.cs: Add control styles
33452         * UpDownBase.cs: Add control styles
33453         * ListBox.cs: Add control styles
33454         * XplatUIWin32.cs: Fixes wrong parameter order
33455
33456
33457 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
33458
33459         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
33460
33461 2005-02-23  Jackson Harper  <jackson@ximian.com>
33462
33463         * PropertyManager.cs: Implement property binding. This doesn't
33464         seem to work yet though as (I think) there are some bugs in
33465         System.ComponentModel.PropertyDescriptor.
33466         * BindingContext.cs: Use new PropertyManager constructor.
33467
33468 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
33469
33470         * ProgressBar.cs: use clip region in ProgressBar
33471         * ThemeWin32Classic.cs: use clip region in ProgressBar
33472
33473 2004-02-22  Jackson Harper  <jackson@ximian.com>
33474
33475         * BindingsCollection.cs: Remove some debug code.
33476
33477 2005-02-22  Jackson Harper  <jackson@ximian.com>
33478
33479         * BindingContext.cs:
33480         * ControlBindingsCollection.cs:
33481         * CurrencyManager.cs:
33482         * Binding.cs:
33483         * BindingManagerBase.cs: Initial implementation
33484         * BindingsCollection.cs: Add an internal contains method that the
33485         BindingManagerBase uses to ensure bindings aren't added twice to
33486         the collection.
33487         * PropertyManager.cs: Stubbed out.
33488         * Control.cs:
33489         * ContainerControl.cs: Hook up databinding
33490         
33491 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
33492
33493         * XplatUIOSX.cs:
33494           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
33495           Fixed Invalidate/Update chain.
33496           Fixed tons of other minor bugs (this is almost a complete rewrite).
33497
33498 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
33499
33500         * ComboBox.cs: do subcontrol creation when the control is created
33501
33502 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33503
33504         * Label.cs: fixes image drawing (image and imagelist)
33505         * ThemeWin32Classic.cs: cache brushes
33506         
33507 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33508
33509         * Form.cs: Move menu drawing code to Theme class
33510         * ComboBox.cs: Move ComboBox drawing code to Theme class
33511         * MenuItem.cs: Move menu drawing code to Theme class
33512         * MenuAPI.cs: Move menu drawing code to Theme class
33513         * ThemeWin32Classic.cs: New methods
33514         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
33515         * ListBox.cs: Move Listbox drawing code to Theme class
33516         * Theme.cs: New methods
33517
33518 2005-02-20  Peter Bartok  <pbartok@novell.com>
33519
33520         * Control.cs:
33521           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
33522             only process mnemonics on those)
33523           - Fixed event sequence for key handling; first calling
33524             ProcessKeyEventArgs now
33525         * TextBoxBase.cs:
33526           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
33527             for processing non-character keys
33528           - Fixed WM_CHAR to generate proper event sequence before processing
33529         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
33530           generation
33531
33532 2005-02-19  Peter Bartok  <pbartok@novell.com>
33533
33534         * UserControl.cs: Added TextChanged event; added attributes
33535         * SizeGrip.cs: Implemented resizing and optional display of grip
33536         * Form.cs: Fixed attribute
33537         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33538           Changed meaning of ScrollWindow bool argument; instead of the
33539           clear attribute (which will be true usually anyway), it gives the
33540           option of moving child controls as well.
33541         * XplatUIX11.cs:
33542           - Changed to match new ScrollWindow argument
33543           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
33544             now handles the implicit parent window a WM puts around us
33545         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
33546           to work)
33547         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
33548         * TreeView.cs: Adjusted to new ScrollWindow arguments
33549
33550 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33551
33552         * Form.cs: Menu integration with non-client area
33553         * MenuItem.cs: Menu integration with non-client area
33554         * MenuAPI.cs: Menu integration with non-client area
33555
33556 2005-02-18  Peter Bartok  <pbartok@novell.com>
33557
33558         * MethodInvoker.cs: Added
33559         * MdiLayout.cs: Added
33560         * SendKeys.cs: Started implementation
33561         * ErrorIconAlignment.cs: Added
33562
33563 2005-02-18  Peter Bartok  <pbartok@novell.com>
33564
33565         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
33566         * Form.cs: Added handling for Menu-related Non-client messages
33567
33568 2005-02-17  Peter Bartok  <pbartok@novell.com>
33569
33570         * UpDownBase.cs: Fixed typo, compilation errors
33571         * DomainUpDown.cs: Fixed attribute value
33572
33573 2005-02-16  Miguel de Icaza  <miguel@novell.com>
33574
33575         * UpDownBase.cs: Attach entry events.
33576         Propagate events.
33577         Add ForeColor property, Focused, InterceptArrowKeys (interception
33578         does not work yet).
33579
33580 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
33581
33582         * Form.cs:
33583                 - Redraw non client are on Setmenu
33584                 - Calc proper menu starting point
33585
33586 2005-02-17  Peter Bartok  <pbartok@novell.com>
33587
33588         * Application.cs: Fixed message_filter check
33589
33590 2005-02-17  Peter Bartok  <pbartok@novell.com>
33591
33592         * Application.cs: Now calls registered message filters
33593         * DockStyle.cs: Fixed attribute
33594         * Form.cs: Fixed attribute
33595         * Menu.cs: Fixed attribute
33596         * ToolTip.cs: Fixed attribute
33597         * TreeNode.cs: Added missing attributes and arranged in regions
33598         * PropertyGrid.cs: Fixed signatures
33599         * TreeNodeCollection.cs: Added attributes
33600         * Splitter.cs: Added missing attributes; arranged into regions
33601         * TabPage.cs: Added missing attributes; arranged into regions
33602         * TextBoxBase.cs: Added missing attributes
33603         * TextBox.cs: Added missing attributes
33604         * ArrangeDirection.cs: Added missing attributes
33605         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
33606         * ToolBarButton.cs: Fixed attributes
33607         * AnchorStyles.cs: Fixed attribute
33608         * TrackBar.cs: Fixed attributes
33609         * TabControl.cs: Added missing attributes and arranged into regions
33610         * ToolBar.cs: Fixed attribute
33611         * StatusBar.cs: Fixed signature, organized into regions and added
33612           attributes
33613         * StatusBarPanel.cs: Fixed attributes
33614         * ContentsResizedEventArgs.cs: Implemented
33615         * ContentsResizedEventHandler.cs: Implemented
33616         * DateBoldEventArgs.cs: Implemented
33617         * DateBoldEventHandler.cs: Implemented
33618         * UpDownEventArgs.cs: Implemented
33619         * UpDownEventHandler.cs: Implemented
33620         
33621 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
33622
33623         * Form.cs: first Menu NC refactoring
33624         * MenuAPI.cs: first Menu NC refactoring
33625         
33626 2005-02-16  Peter Bartok  <pbartok@novell.com>
33627
33628         * ImeMode.cs: Added missing attributes
33629         * Menu.cs: Fixed attribute
33630         * GroupBox.cs: Fixed attribute
33631         * Label.cs: Fixed attribute
33632         * ColorDialog.cs (RunDialog): Removed TODO attribute
33633         * ComboBox.cs: Fixed attributes
33634         * ListControl.cs: Added missing attributes
33635         * PropertyGrid.cs: Fixed attributes
33636         * Control.cs: Fixed attributes
33637         * ListViewItem.cs: Added TypeConverter attribute
33638         * NotifyIcon.cs: Fixed attributes
33639         * ListView.cs: Fixed attributes
33640         * ButtonBase.cs: Fixed attribute
33641         * ImageList.cs: Added missing attributes
33642         * ContainerControl.cs: Fixed signature
33643         * CheckedListBox.cs: Fixed attribute; added missing attributes
33644         * Panel.cs: Fixed attributes
33645         * PropertyTabChangedEventArgs.cs: Added missing attribute
33646         * PropertyValueChangedEventArgs.cs: Added missing attribute
33647         * Binding.cs: Fixed attribute
33648         * ListViewItemConverter: Implemented ListViewSubItemConverter class
33649         * ListBox.cs: Fixed attribute; added missing attributes;
33650         * ScrollableControl.cs: Added missing attributes
33651         * PictureBox.cs: Added missing attributes; implemented missing property
33652         * DateTimePicker.cs: Added missing attributes
33653         * Theme.cs (ToolWindowCaptionHeight): Fixed type
33654         * MonthCalendar.cs: Fixed attributes
33655         * StatusBarPanel.cs: Added missing attributes
33656         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
33657
33658 2005-02-16  Peter Bartok  <pbartok@novell.com>
33659
33660         * TextBoxBase.cs: The previous method to enforce height yet remember
33661           the requested high was less than ideal, this is an attempt to do
33662           it better.
33663         * Control.cs: Added comment about possible problem
33664         * Copyright: Updated format
33665         * GridItemType.cs: Fixed swapped values
33666
33667 2005-02-15  Jackson Harper  <jackson@ximian.com>
33668
33669         * BaseCollection.cs: Use property so we never access an
33670         uninitialized list. Also initialize the list in the property.
33671
33672 2005-02-15  Peter Bartok  <pbartok@novell.com>
33673
33674         * GroupBox.cs (ProcessMnemonic): Implemented
33675         * Label.cs (ProcessMnemonic): Implemented
33676         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
33677           hotkeys
33678
33679 2005-02-15  Peter Bartok  <pbartok@novell.com>
33680
33681         * RadioButton.cs (ProcessMnemonic): Implemented
33682         * CheckBox.cs (ProcessMnemonic): Implemented
33683         * Control.cs:
33684           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
33685             handling
33686           - Added internal method to allow calling ProcessMnemonic from other
33687             controls
33688         * ContainerControl.cs:
33689           - Started support for handling validation chain handling
33690           - Implemented ProcessMnemonic support
33691           - Added Select() call to Active, to make sure the active control
33692             receives focus
33693         * Form.cs: Setting toplevel flag for Forms (this was lost in the
33694           FormParent rewrite)
33695         * ThemeWin32Classic.cs:
33696           - DrawCheckBox(): Fixed stringformat to show hotkeys
33697           - DrawRadioButton(): Fixed stringformat to show hotkeys
33698         * CommonDialog.cs: Removed WndProc override, not needed
33699
33700 2005-02-14  Peter Bartok  <pbartok@novell.com>
33701
33702         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
33703           missed those in the rewrite
33704
33705 2005-02-14  Miguel de Icaza  <miguel@novell.com>
33706
33707         * NumericUpDown.cs (Increment, ToString): Add.
33708         (DecimalPlaces): implement.
33709         
33710         Add attributes.
33711         
33712         * UpDownBase.cs: Add the designer attributes.
33713
33714 2005-02-13  Peter Bartok  <pbartok@novell.com>
33715
33716         * Panel.cs: Removed border_style, now in Control
33717         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
33718           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
33719
33720 2005-02-13  Peter Bartok  <pbartok@novell.com>
33721
33722         * MouseButtons.cs: Added missing attributes
33723         * XplatUIStructs.cs: Added enumeration for title styles
33724         * LeftRightAlignment.cs: Added missing attributes
33725         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
33726           it compatible with Graphics.FromHwnd()
33727         * SelectedGridItemChangedEventArgs.cs: Fixed property type
33728         * Keys.cs: Added missing attributes
33729         * SelectionRange.cs: Added missing attributes
33730         * SelectionRangeConverter.cs: Added
33731         * XplatUI.cs:
33732           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
33733             ReleaseMenuDC methods
33734           - Renamed ReleaseWindow to UngrabWindow
33735           - Added proper startup notice to allow version identification
33736         * Form.cs:
33737           - Added missing attributes
33738           - Removed FormParent concept
33739         * Label.cs: Removed border_style field, now in Control
33740         * RadioButton.cs: Now properly selects RadioButton when focus is
33741           received
33742         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
33743         * Control.cs:
33744           - Added missing attributes
33745           - Added borderstyle handling
33746           - Removed FormParent concept support
33747           - Fixed calls to XplatUI to match changed APIs
33748           - Fixed bug that would case us to use disposed Graphics objects
33749           - Removed unneeded internal methods
33750           - PerformLayout(): Fixed to handle DockStyle.Fill properly
33751           - SelectNextControl(): Fixed to properly check common parents
33752         * TextBoxBase.cs: Removed border_style field (now in Control)
33753         * MessageBox.cs:
33754           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
33755             fixed calculations for form size
33756           - Added support for localized strings and icons
33757           - Improved form size calculations, added border
33758         * ListView.cs: Removed border_style field (now in Control)
33759         * X11Structs.cs: Moved several structs from X11 driver here
33760         * X11Keyboard.cs: Changed debug message
33761         * Application.cs: Removed FormParent concept support
33762         * CommonDialog.cs:
33763           - Resetting end_modal flag
33764           - Removed FormParent concept support
33765         * NativeWindow.cs: Removed FormParent concept support
33766         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
33767           Client area and Non-Client whole window to allow support for WM_NC
33768           messages
33769         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
33770           prevent using it until it supports Hwnd as per Geoff Norton's request
33771         * ToolBar.cs: Fixed drawing, was not doing proper drawing
33772         * PictureBox.cs: Removed border_style field, now in Control
33773         * XplatUIWin32.cs: Added new driver methods
33774
33775 2005-02-12  Peter Bartok  <pbartok@novell.com>
33776
33777         * OpacityConverter.cs: Implemented
33778         * Hwnd.cs: Internal class to support drivers that need to emulate
33779           client area/non-client area window behaviour
33780
33781 2005-02-11  Peter Bartok  <pbartok@novell.com>
33782
33783         * KeysConverter.cs: Implemented
33784
33785 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
33786
33787         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
33788         * LinkLabel: Added missing attributes
33789         * MainMenu.cs: fixes ToString
33790         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
33791         * ListBox.cs: fixes event position
33792         * TrackBar.cs: adds missing attributes and events
33793         
33794 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
33795
33796         * MenuItem.cs: Use SystemInformation and bug fixes
33797         * MenuAPI.cs: Use SystemInformation and bug fixes
33798
33799 2005-02-09  Jackson Harper  <jackson@ximian.com>
33800
33801         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
33802         their keystate otherwise things like VK_MENU get stuck "on".
33803
33804 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
33805
33806         * ListBox.cs: Fixes AddRange bug
33807         
33808 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
33809
33810         * ProgressBar.cs
33811                 - Add missing attributes
33812                 - Add missing method
33813                 
33814         * CheckedListBox.cs: Added missing attributes
33815                 - Add missing attributes
33816                 - Remove extra method
33817         
33818         * ComboBox.cs: Added missing attributes
33819         * VScrollBar.cs: Added missing attributes
33820         * ScrollBar.cs:  Added missing attributes
33821         * ListBox.cs: Fixes signature, add missing consts
33822         * LinkArea.cs:   Added missing attributes
33823         
33824
33825 2005-02-08  Peter Bartok  <pbartok@novell.com>
33826
33827         * Menu.cs: Added missing attributes
33828         * MainMenu.cs: Added missing attributes
33829         * GroupBox.cs: Added missing attributes
33830         * Label.cs: Added missing attributes
33831         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
33832         * ColorDialog.cs:
33833           - Added Instance and Options properties
33834           - Added missing attributes
33835         * Cursor.cs: Made Serializable
33836         * NotifyIcon: Added missing attributes
33837         * MenuItem.cs: Added missing attributes
33838         * TextBoxBase.cs: Implemented AppendText() and Select() methods
33839         * Panel.cs: Added Missing attributes
33840         * MonthCalendar.cs: Fixed CreateParams
33841
33842 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
33843         
33844         * LinkLabel.cs:
33845                 - Fixes signature
33846                 - Fixes issues with links
33847                 - Adds the class attributes
33848
33849 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
33850         
33851         * ComboBox.cs:
33852                 - Fixes button when no items available in dropdown
33853                 - Fixes repainting problems
33854                 - Adds the class attributes
33855                 
33856 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
33857
33858         * XplatUIOSX.cs: Detect the menu bar and title bar height from
33859         the current theme.  Cache these on startup.
33860
33861 2005-02-07  Jackson Harper  <jackson@ximian.com>
33862
33863         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
33864         the scrollbar buttons when they are depressed.
33865
33866 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
33867
33868         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
33869         Get the display size from the main displayid.  We currently dont
33870         support multiple display configurations.
33871
33872 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
33873
33874         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
33875
33876 2005-02-07  Miguel de Icaza  <miguel@novell.com>
33877
33878         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
33879
33880 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
33881
33882         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
33883
33884 2005-02-04  Jackson Harper  <jackson@ximian.com>
33885
33886         * ThemeWin32Classic.cs: Respect the clipping rect when
33887         drawing. Only fill the intersection of clips and rects so there
33888         isn't a lot of large fills.
33889         * ScrollBar.cs: Pass the correct clipping rect to the theme
33890         engine. Remove some debug code.
33891
33892 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
33893         
33894         * DateTimePicker.cs:
33895                 - Fixed crash on DateTime.Parse, use Constructor instead
33896
33897 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
33898         
33899         * MenuItem.cs:
33900         * MenuAPI.cs:
33901                 - Owner draw support (MeasureItem and DrawItem)
33902
33903 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
33904         
33905         *  Menu.cs:
33906                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
33907                 - Fixes MenuItems.Add range
33908         * MenuItem.cs:
33909                 - MergeMenu and Clone and CloneMenu functions
33910
33911 2005-02-03  Jackson Harper  <jackson@ximian.com>
33912
33913         * ScrollBar.cs: Make abstract
33914         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
33915         is abstract.
33916
33917 2005-02-03  Jackson Harper  <jackson@ximian.com>
33918
33919         * ScrollBar.cs: First part of my scrollbar fixups. This removes
33920         all the unneeded refreshes and uses invalidates with properly
33921         computed rects.
33922
33923 2005-02-03  Peter Bartok  <pbartok@novell.com>
33924
33925         * ComponentModel.cs: Added
33926         * IDataGridEditingService.cs: Added
33927         * Timer.cs: Added missing attributes
33928         * ToolTip.cs: Added missing attributes
33929
33930 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
33931
33932         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
33933
33934 2005-02-03  Peter Bartok  <pbartok@novell.com>
33935
33936         * ListBox.cs: Added missing attributes
33937
33938 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
33939         
33940         * ListBox.cs:
33941                 - Fixes font height after font change
33942                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
33943                 
33944 2005-02-02  Peter Bartok  <pbartok@novell.com>
33945
33946         * HandleData.cs: Introduced static methods to allow class
33947           to be more self-contained and track it's own HandleData objects
33948         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
33949           HandleData to use new static methods
33950
33951 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
33952
33953         * Combobox.cs:
33954                 - Fixes default size and PreferredHeight
33955                 - Missing events
33956                 - ObjectCollection.Insert implementation
33957                 
33958         * ListControl.cs
33959                 - Fixes signature
33960         * ListBox.cs:
33961                 - Several fixes
33962                 - ObjectCollection.Insert implementation
33963                 - No selection after clean
33964                 - Small fixes
33965
33966 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
33967
33968         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
33969
33970 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
33971
33972         * Combobox.cs:
33973                 - Caches ItemHeight calculation for OwnerDrawVariable
33974                 - Handles dropdown properly
33975                 - Fixes several minor bugs
33976
33977 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
33978
33979         * ListBox.cs:
33980                 - Fixes 71946 and 71950
33981                 - Fixes changing Multicolumn on the fly
33982                 - Fixes keyboard navigation on Multicolumn listboxes
33983
33984 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33985         
33986         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
33987         crash reporter log.
33988
33989 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33990
33991         * XplatUIOSX.cs: Allow applications to actually exit.
33992
33993 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33994
33995         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
33996         their parent at creation time rather than lazily later.  Fixes a major
33997         regression we were experiencing.
33998
33999 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
34000
34001         * ThemeWin32Classic.cs: more date time picker painting fixes
34002         * DateTimePicker.cs: more monthcalendar drop down fixes
34003         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
34004
34005 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
34006
34007         * ScrollBar.cs:
34008                 - When moving the thumb going outside the control should stop the moving
34009                 - Adds the firing of missing events
34010                 - Fixes no button show if Size is not specified
34011                 - End / Home keys for keyboard navigation
34012
34013 2005-01-30  Peter Bartok  <pbartok@novell.com>
34014
34015         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
34016           sanity check to prevent theoretical loop
34017         * XplatUIWin32.cs (SetVisible): Removed debug output
34018         * XplatUIX11.cs (SystrayChange): Added sanity check
34019         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
34020         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
34021           behaviour, valid until the X11 client window rewrite is done
34022         * TextBox.cs (ctor): Setting proper default foreground and background
34023           colors
34024
34025 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
34026
34027         * Theme: Added DrawDateTimePicker to interface
34028         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
34029         * DateTimePicker.cs: Created (still needs keys and painting code)
34030         * DateTimePickerFormat.cs: added
34031         * MonthCalendar.cs: fixed CreateParams for popup window mode
34032           
34033 2005-01-29  Peter Bartok  <pbartok@novell.com>
34034
34035         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
34036           this should also the calculations for ligher/darker
34037         * Theme.cs: Fixed defaults for ScrollBar widths/heights
34038
34039 2005-01-29  Peter Bartok  <pbartok@novell.com>
34040
34041         * ArrangeDirection.cs: Added
34042         * ArrangeStartingPositon.cs: Added
34043         * SystemInformation.cs: Implemented
34044         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34045           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
34046           used by SystemInformation class
34047         * X11Strucs.cs: Added XSizeHints structure
34048         * MenuAPI.cs:
34049           - Fixed CreateParams to make sure the menu window is always visible
34050           - TrackPopupMenu: Added check to make sure we don't draw the
34051             menu offscreen
34052
34053 2005-01-29  Peter Bartok  <pbartok@novell.com>
34054
34055         * HandleData.cs: Added method for altering invalid area
34056         * TextBoxBase.cs: Implemented TextLength
34057
34058 2005-01-28  Peter Bartok  <pbartok@novell.com>
34059
34060         * XplatUIX11.cs: Improvement over last patch, not sending
34061           the WM_PAINT directly anymore, instead we scroll any pending
34062           exposed areas and let the system pick out the WM_PAINT later
34063
34064 2005-01-28  Peter Bartok  <pbartok@novell.com>
34065
34066         * SWF.csproj: Deleted, no longer used. Instead,
34067           Managed.Windows.Forms/SWF.csproj should be used
34068         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
34069           directly, to avoid a potential race condition with the next
34070           scroll
34071
34072 2005-01-28  Peter Bartok  <pbartok@novell.com>
34073
34074         * XplatUI.cs: Made class internal
34075
34076 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
34077
34078         * CheckedListBox.cs:
34079                 - Draw focus
34080                 - Fixed Drawing
34081                 - Missing methods and events
34082
34083 2005-01-27  Peter Bartok  <pbartok@novell.com>
34084
34085         * Application.cs (Run): Don't use form if we don't have one
34086
34087 2005-01-27  Peter Bartok  <pbartok@novell.com>
34088
34089         * TextBoxBase.cs (get_Lines): Fixed index off by one error
34090
34091 2005-01-27  Peter Bartok  <pbartok@novell.com>
34092
34093         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
34094         * GridItem.cs: Added; Patch by Jonathan S. Chambers
34095         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
34096         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
34097         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
34098         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
34099         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34100         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34101         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34102         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34103         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34104         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34105
34106 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
34107
34108         * Combobox.cs:
34109                 - Draw focus on Simple Combobox
34110                 - Fixes drawing issues
34111                 - fixes 71834
34112
34113 2005-01-27  Peter Bartok  <pbartok@novell.com>
34114
34115         * Form.cs:
34116           - Place window in default location, instead of hardcoded 0/0
34117           - Send initial LocationChanged event
34118         * Control.cs:
34119           - UpdateBounds after creation to find out where the WM placed us
34120           - Make sure that if the ParentForm changes location the Form
34121             is notified
34122         * XplatUIX11.cs: XGetGeometry will not return the coords relative
34123             to the root, but to whatever the WM placed around us.
34124             Translate to root coordinates before returning toplevel
34125             coordinates
34126         * XplatUIWin32.cs: Removed debug output
34127         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
34128           flag to GetWindowPos, to allow translation of coordinates on X11
34129
34130 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
34131
34132         * ListBox.cs: connect LostFocus Event
34133
34134 2005-01-27  Peter Bartok  <pbartok@novell.com>
34135
34136         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34137           XplatUIX11.cs: Extended the Systray API
34138         * Form.cs: Removed debug output
34139         * Application.cs: Fixed focus assignment, always need to call
34140           XplatUI.Activate() since Form.Activate() has rules that may
34141           prevent activation
34142         * NotifyIcon.cs: Should be complete now
34143         * ToolTip.cs: Worked around possible timer bug
34144
34145 2005-01-27  Jackson Harper  <jackson@ximian.com>
34146
34147         * TabControl.cs:
34148         - Only invalidate the effected tabs when the
34149         selected index changes. This reduces drawing and gets rid of some
34150         flicker.
34151         - Only refresh if the tabs need to be shifted, otherwise only
34152         invalidate the slider button.
34153         - On windows the tabs are not filled to right if the slider is
34154         visible.
34155         
34156 2005-01-27  Jackson Harper  <jackson@ximian.com>
34157
34158         * TabControl.cs: Only refresh on mouseup if we are showing the
34159         slider. Also only invalidate the button whose state has changed.
34160
34161 2005-01-26  Peter Bartok  <pbartok@novell.com>
34162
34163         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
34164         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
34165           and SystrayRemove() methods
34166         * XplatUIOSX.cs: Stubbed Systray methods
34167         * XplatUIX11.cs:
34168           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
34169             methods
34170           - Fixed broken XChangeProperty calls (marshalling messed up things)
34171         * X11Structs.cs: Added enums and structs required for Size hinting
34172         * NotifyIcon.cs: Added & implemented
34173
34174 2005-01-26  Jackson Harper  <jackson@ximian.com>
34175
34176         * TabControl.cs: Space vertically layed out tabs properly.
34177
34178 2005-01-26  Peter Bartok  <pbartok@novell.com>
34179
34180         * Form.cs (CreateClientParams): Always set the location to 0,0
34181           since we're a child window.
34182
34183         * Control.cs (SetVisibleCore): Always explicitly setting the location
34184           of a toplevel window, apparently X11 doesn't like to move windows
34185           while they're not mapped.
34186
34187 2005-01-26  Jackson Harper  <jackson@ximian.com>
34188
34189         * TabControl.cs: Implement FillToRight size mode with vertically
34190         rendered tabs.
34191
34192 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
34193
34194         * ControlPaint.cs, ThemeWin32Classic.cs
34195                 - Fixes DrawFocusRectangle
34196
34197 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
34198
34199         * MenuAPI.cs:
34200                 - MenuBar tracking only starts when item is first clicked
34201                 - Fixes menu hidding for multiple subitems
34202                 - Unselect item in MenuBar when item Executed
34203                 - Fixes bug 71495
34204
34205 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
34206
34207         * ListControl.cs:
34208                 - IsInputKey for ListBox
34209         * ListBox.cs:
34210                 - Focus item
34211                 - Shift and Control item selection
34212                 - Implement SelectionMode.MultiExtended
34213                 - Fixes RightToLeft
34214         * ComboBox.cs:
34215                 - IsInputKey implemented
34216                 - Do not generate OnTextChangedEdit on internal txt changes
34217                 
34218 2005-01-23  Peter Bartok  <pbartok@novell.com>
34219
34220         * AccessibleObject.cs: Partially implemented Select()
34221         * MonthCalendar.cs: Added missing attributes and events
34222         * Form.cs: Fixed CreateParams behaviour, now controls derived from
34223           form can properly override CreateParams.
34224         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34225           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
34226           Control performs Invalidate & Update
34227         * NativeWindow (CreateHandle): Added special handling for Form
34228           and Form.FormParent classes to allow overriding of From.CreateParams
34229         * Control.cs:
34230           - ControlNativeWindow: Renamed 'control' variable to more intuitive
34231             name 'owner'
34232           - ControlNativeWindow: Added Owner property
34233           - Removed usage of Refresh() on property changes, changed into
34234             Invalidate(), we need to wait until the queue is processed for
34235             updates, direct calls might cause problems if not all vars for
34236             Paint are initialized
34237           - Added call to UpdateStyles() when creating the window, to set any
34238             styles that CreateWindow might have ignored.
34239           - Added support for Form CreateParent overrides to UpdateStyles()
34240         * MessageBox.cs: Removed no longer needed FormParent override stuff,
34241           CreateParams are now properly overridable
34242         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
34243           CreateParams are now properly overridable
34244
34245 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
34246
34247         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
34248         OnTextBoxChanged.
34249
34250         Capture LostFocus and OnTextBoxChanged.  The later introduces a
34251         recursive invocation that I have not figured out yet.
34252
34253         Reset the timer when not using (it was accumulating).
34254
34255
34256         (OnTextBoxChanged): Set UserEdit to true here to track whether the
34257         user has made changes that require validation.
34258
34259         Reset changing to avoid loops.
34260
34261 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
34262
34263         * NumericUpDown.cs: Display value at startup.
34264
34265         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
34266         ValidateEditText.
34267
34268         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
34269         filled in.  Added some basic parsing of text.
34270
34271         Still missing the OnXXX method overrides, and figuring out the
34272         events that must be emitted.
34273
34274         * UpDownBase.cs: Handle UserEdit on the Text property.
34275         
34276 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
34277
34278         * ComboBox.cs:
34279           - Fixes IntegralHeight
34280           - ToString method
34281
34282 2005-01-21  Jackson Harper  <jackson@ximian.com>
34283
34284         * TabControl.cs: Set the SelectedIndex property when SelectedTab
34285         is set so that the page visibility is updated and the tabs are
34286         sized correctly.
34287
34288 2005-01-21  Jackson Harper  <jackson@ximian.com>
34289
34290         * TabControl.cs: Use cliping rectangle for blitting. Give the
34291         theme the clipping rect so we can do clipping while
34292         drawing. Remove some debug code.
34293
34294 2005-01-21  Jackson Harper  <jackson@ximian.com>
34295
34296         * TabPage.cs: Add a new method so tab pages can force the tab
34297         control to recalculate the tab page sizes.
34298         * TabControl.cs: UpdateOwner needs to make the tab control recalc
34299         sizes.
34300
34301 2005-01-20  Jackson Harper  <jackson@ximian.com>
34302
34303         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
34304
34305 2005-01-20  Jackson Harper  <jackson@ximian.com>
34306
34307         * TreeView.cs: Set the bounds for nodes properly. They were
34308         getting screwed up when checkboxes were not enabled, but images
34309         were.
34310
34311 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
34312
34313         * ListBox.cs:
34314                 - Owner draw support
34315                 - Fixes
34316                 
34317 2005-01-20  Jackson Harper  <jackson@ximian.com>
34318
34319         * XplatUIStructs.cs: More misc keys
34320         * X11Keyboard.cs: Ignore some control keys.
34321
34322 2005-01-20  Jackson Harper  <jackson@ximian.com>
34323
34324         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
34325         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
34326
34327 2005-01-19  Peter Bartok  <pbartok@novell.com>
34328
34329         * Control.cs: Un-selecting the control when it is loosing focus
34330
34331 2005-01-19  Jackson Harper  <jackson@ximian.com>
34332
34333         * TreeView.cs: Hook up to the text controls leave event so we can
34334         end editing when the users clicks outside the text box.
34335         
34336 2005-01-19  Jackson Harper  <jackson@ximian.com>
34337
34338         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
34339         get set in the conversion array.
34340
34341 2005-01-19  Peter Bartok  <pbartok@novell.com>
34342
34343         * Application.cs (ModalRun): Added a call to CreateControl to ensure
34344           focus is properly set
34345         * Button.cs:
34346           - Added missing attributes
34347           - removed styles, those are already set in the base class
34348         * ButtonBase.cs:
34349           - Added missing attributes
34350           - Added clip window styles
34351         * CheckBox.cs: Added missing attributes
34352         * CommonDialog.cs:
34353           - FormParentWindow.CreateParams: Added required clip styles
34354         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
34355           also filters modifier keys
34356         * MessageBox.cs:
34357           - Added assignment of Accept and Cancel button to enable Enter
34358             and Esc keys in MessageBox dialogs
34359           - FormParentWindow.CreateParams: Added required clip styles
34360         * RadioButton.cs: Added missing attributes
34361         * TextControl.cs: No longer draws selection if control does not
34362           have focus
34363         * TextBoxBase.cs:
34364           - Now draws simple rectangle around test area to make it obvious
34365             there's a control. This is a hack until we properly support borders
34366           - A few simple fixes to support selections better, now erases selected
34367             text when typing, and resets selection when using movement keys
34368
34369 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
34370
34371         * UpDownBase.cs: Added some new properties.
34372
34373         * DomainUpDown.cs: Implement a lot to get my test working.
34374
34375 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34376
34377         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
34378
34379 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34380
34381         * OSXStructs (WindowAttributes): Fixed csc complaints
34382
34383 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34384
34385         * XplayUIOSX.cs:
34386           OSXStructs.cs: Initial refactor to move enums and consts into
34387           OSXStructs and use them in the driver for greater readability.
34388
34389 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34390
34391         * XplatUIOSX.cs: Initial support for Standard Cursors.
34392         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
34393
34394 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
34395
34396         * ComboBox.cs: ability to change style when the ctrl is already
34397         created, missing methods and events, bug fixes, signature fixes
34398
34399 2005-01-19  Peter Bartok  <pbartok@novell.com>
34400
34401         * Cursors.cs (ctor): Added ctor to fix signature
34402
34403 2005-01-18  Peter Bartok  <pbartok@novell.com>
34404
34405         * Button.cs: Implemented DoubleClick event
34406         * ButtonBase.cs:
34407           - Fixed keyboard handling to behave like MS, where the press of
34408             Spacebar is equivalent to a mousedown, and the key release is
34409             equivalent to mouseup. Now a spacebar push will give the same
34410             visual feedback like a mouse click.
34411           - Added missing attributes
34412           - Added ImeModeChanged event
34413           - Added support for generating DoubleClick event for derived classes
34414         * CheckBox.cs:
34415           - Implemented DoubleClick event
34416           - Added missing attributes
34417         * CommonDialog.cs: Added missing attribute
34418         * ContextMenu.cs: Added missing attributes
34419         * RadioButton.cs:
34420           - AutoChecked buttons do not allow to be unselected when clicked
34421             (otherwise we might end up with no selected buttons in a group)
34422           - Added missing attributes
34423           - Implemented DoubleClickEvent
34424         * ThreadExceptionDialog.cs: Enabled TextBox code
34425
34426 2005-01-18  Peter Bartok  <pbartok@novell.com>
34427
34428         * Form.cs: Removed debug output
34429         * Button.cs: Added support for DoubleClick method
34430
34431 2005-01-18  Peter Bartok  <pbartok@novell.com>
34432
34433         * Form.cs:
34434           - Added method to parent window that allows triggering size
34435             calculations when a menu is added/removed
34436           - set_Menu: Cleaned up mess from early days of Form and Control,
34437             now properly triggers a recalc when a menu is added/removed
34438           - Added case to select form itself as focused form if no child
34439             controls exist
34440           - Added PerformLayout call when showing dialog, to ensure properly
34441             placed controls
34442         * Control.cs:
34443           - Select(): Made internal so Form can access it
34444           - Focus(): Only call Xplat layer if required (avoids loop), and sets
34445             status
34446         * Application.cs (Run): Removed hack and calls PerformLayout instead
34447           to trigger calculation when Form becomes visible
34448
34449 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
34450
34451         * ComboBox.cs: fixes for ownerdraw
34452
34453 2005-01-18  Peter Bartok  <pbartok@novell.com>
34454
34455         * TextControl.cs:
34456           - Sentinel is no longer static, each Document gets it's own, this
34457             avoids locking or alternatively overwrite problems when more
34458             than one text control is used simultaneously.
34459           - Switched to use Hilight and HilightText brushes for text selection
34460
34461         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
34462
34463 2005-01-18  Peter Bartok  <pbartok@novell.com>
34464
34465         * Control.cs:
34466           - Hooked up the following events:
34467                 o ControlAdded
34468                 o ControlRemoved
34469                 o HandleDestroyed
34470                 o ImeModeChanged
34471                 o ParentChanged
34472                 o TabStopChanged
34473                 o Invalidated
34474                 o SystemColorsChanged
34475                 o ParentFontChanged
34476                 o Move
34477           - Removed debug output
34478           - Added a call to the current theme's ResetDefaults when a color change
34479             is detected
34480         * Form.cs: Now setting the proper ImeMode
34481         * Theme.cs: Defined a method to force recreation of cached resources
34482           and rereading of system defaults (ResetDefaults())
34483         * ThemeWin32Classic.cs: Added ResetDefaults() stub
34484
34485 2005-01-17  Peter Bartok  <pbartok@novell.com>
34486
34487         * Control.cs: Added missing attributes
34488
34489 2005-01-17  Jackson Harper  <jackson@ximian.com>
34490
34491         * TreeNode.cs: Implement editing. Add missing properties selected
34492         and visible.
34493         * TreeView.cs: Implement node editing. Also some fixes to use
34494         Invalidate (invalid area) instead of Refresh when selecting.
34495
34496 2005-01-17  Peter Bartok  <pbartok@novell.com>
34497
34498         * Control.cs:
34499           - Implemented InvokeGotFocus() method
34500           - Implemented InvokeLostFocus() method
34501           - Implemented InvokePaint() method
34502           - Implemented InvokePaintBackground() method
34503           - Implemented InvokeClick() method
34504           - Implemented FindForm() method
34505           - Implemented RectangleToClient() method
34506           - Implemented ClientToRectangle() method
34507           - Implemented ResetBackColor() method
34508           - Implemented ResetCursor() method
34509           - Implemented ResetFont() method
34510           - Implemented ResteForeColor() method
34511           - Implemented ResetImeMode() method
34512           - Implemented ResetLeftToRight() method
34513           - Implemented ResetText() method
34514           - Implemented Scale() methods
34515           - Implemented ScaleCore() method
34516           - Implemented Update() method
34517           - Removed unused variables
34518           - Stubbed AccessibilityNotifyClients and
34519             ControlAccessibleObject.NotifyClients() methods (dunno what to do
34520             with those yet)
34521           - Now setting proper default for RightToLeft property
34522           - Fixed bug in SetClientSizeCore that would cause windows to get
34523             really big
34524           - Now sending Click/DoubleClick events
34525           - Now selecting controls when left mouse button is clicked on
34526             selectable control
34527         * AccessibleEvents.cs: Added
34528         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
34529         * XplatUIOSX.cs: Stubbed UpdateWindow() method
34530         * XplatUIWin32.cs: Implemented UpdateWindow() method
34531         * XplatUIX11.cs: Implemented UpdateWindow() method
34532         * Form.cs: Removed stray semicolon causing CS0162 warning
34533         * ThemeWin32Classic.cs: Fixed unused variable warnings
34534         * ScrollableControl.cs: Now calls base method for ScaleCore
34535         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
34536           style to avoid interference with internal click handler (which is
34537           different than standard Control click handling)
34538         * RadioButton.cs:
34539           - Now unchecks all sibling radio buttons when control is
34540             selected (Fixes #68756)
34541           - Removed internal tabstop variable, using the one inherited from
34542             Control
34543
34544 2005-01-17  Jackson Harper  <jackson@ximian.com>
34545
34546         * NavigateEventArgs.cs: Fix base type.
34547         * LinkLabel.cs: Sig fix
34548         
34549 2005-01-17  Jackson Harper  <jackson@ximian.com>
34550
34551         * TreeView.cs: Only invalidate the effected nodes bounds when
34552         selecting nodes.
34553
34554 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34555
34556         * XplatUIWin32.cs: fixes Win32 marshaling
34557         * XplatUIX11.cs: fixes method signature
34558
34559 2005-01-17  Peter Bartok  <pbartok@novell.com>
34560
34561         * XplatUIX11.cs: Clean up resources when we no longer need them
34562
34563 2005-01-17  Peter Bartok  <pbartok@novell.com>
34564
34565         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
34566           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
34567           and DestroyCursor() methods.
34568         * Cursor.cs: Partially implemented, now supports standard cursors;
34569           still contains some debug code
34570         * Cursors.cs: Implemented class
34571         * Control.cs:
34572           - WndProc(): Added handling of WM_SETCURSOR message, setting the
34573             appropriate cursor
34574           - Implemented Cursor property
34575           - Replaced break; with return; more straightforwar and possibly
34576             faster
34577           - Now properly setting the result for WM_HELP
34578         * X11Structs.cs: Added CursorFontShape enum
34579         * XplatUIStructs.cs:
34580           - Added StdCursor enum (to support DefineStdCursor() method)
34581           - Added HitTest enum (to support sending WM_SETCURSOR message)
34582         * XplatUIX11.cs:
34583           - Now sends the WM_SETCURSOR message
34584           - Implemented new cursor methods
34585         * XplatUIOSX.cs: Stubbed new cursor methods
34586         * XplatUIWin32.cs:
34587           - Implemented new cursor methods
34588           - Added GetSystemMetrics function and associated enumeration
34589
34590 2005-01-15  Peter Bartok  <pbartok@novell.com>
34591
34592         * Control.cs:
34593           - WndProc(): Now handles EnableNotifyMessage
34594           - SelectNextControl(): Fixed bug where if no child or sibling
34595             controls exist we looped endlessly
34596
34597 2005-01-14  Jackson Harper  <jackson@ximian.com>
34598
34599         * TreeView.cs: Recalculate the tab pages when a new one is added
34600         so that the proper bounding rects are created.
34601
34602 2005-01-14  Jackson Harper  <jackson@ximian.com>
34603
34604         * TreeView.cs: Draw a gray box instead of a grip in the lower
34605         right hand corner when there are both horizontal and vertical
34606         scroll bars.
34607
34608 2005-01-14  Jackson Harper  <jackson@ximian.com>
34609
34610         * Control.cs: When erasing backgrounds use FromHwnd instead of
34611         FromHdc when there is a NULL wparam. This occurs on the X driver.
34612         * XplatUIX11.cs: Set the wparam to NULL.
34613
34614 2005-01-13  Jackson Harper  <jackson@ximian.com>
34615
34616         * PictureBox.cs: Implement missing methods (except ToString, need
34617         to test that on windows) and events. When visibility is changed we
34618         need to redraw the image because the buffers are killed. When size
34619         is changed refresh if the sizemode needs it.
34620
34621 2005-01-13  Peter Bartok  <pbartok@novell.com>
34622
34623         * Control.cs (SelectNextControl): Was using wrong method to select
34624           a control
34625
34626 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34627
34628         * ComboBox.cs: fixes dropstyle
34629
34630 2005-01-13  Peter Bartok  <pbartok@novell.com>
34631
34632         * Form.cs:
34633           - Implemented Select() override
34634           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
34635           - Now sets keyboard focus on startup
34636         * Control.cs (SelectNextControl): Now properly handles directed=true
34637         * TextBoxBase.cs:
34638           - WndProc: Now passes tab key on to base if AcceptTabChar=false
34639           - Added (really bad) focus rectangle (mostly for testing)
34640         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
34641           to enforce redraw on focus changes
34642         * ContainerControl.cs:
34643           - Fixed detection of Shift-Tab key presses
34644           - Fixed traversal with arrow keys
34645         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
34646           gonna keep this or if it's complete yet
34647         
34648 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34649
34650         * ComboBox.cs: missing properties, fixes
34651
34652 2005-01-13  Peter Bartok  <pbartok@novell.com>
34653
34654         * Panel.cs (ctor): Setting Selectable window style to off
34655         * Splitter.cs (ctor): Setting Selectable window style to off
34656         * GroupBox.cs (ctor): Setting Selectable window style to off
34657         * Label.cs (ctor): Setting Selectable window style to off
34658
34659 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
34660
34661         * UpDownBase.cs (InitTimer): If the timer has been already
34662         created, enable it.
34663
34664         Use a TextBox instead of a Label.
34665
34666 2005-01-12  Jackson Harper  <jackson@ximian.com>
34667
34668         * TreeView.cs: Refresh the tree after sorting the nodes. Always
34669         draw the connecting node lines (when ShowLines is true).
34670         * TreeNode.cs: The nodes index can now be updated. This is used
34671         when a node collection is sorted.
34672         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
34673         insert or an existing unsorted node collection can be sorted.
34674         
34675 2005-01-12  Peter Bartok  <pbartok@novell.com>
34676
34677         * ContainerControl.cs: Implemented ProcessDialogKeys()
34678
34679 2005-01-12  Peter Bartok  <pbartok@novell.com>
34680
34681         * Control.cs:
34682           - Implemented SelectNextControl() method
34683           - Several focus related bug fixes
34684           - Fixed Docking calculations to match MS documentation and
34685             behaviour
34686
34687 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
34688
34689         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
34690         bug fixes
34691
34692 2005-01-12  Peter Bartok  <pbartok@novell.com>
34693
34694         * Control.cs:
34695           - Fixed broken Contains() method
34696           - Implemented GetNextControl() method. Finally. This is the pre-
34697             requisite for focus handling.
34698
34699 2005-01-12  Peter Bartok  <pbartok@novell.com>
34700
34701         * OSXStrucs.cs: Added
34702
34703 2005-01-12  Peter Bartok  <pbartok@novell.com>
34704
34705         * XplatUIWin32.cs:
34706           - Removed PeekMessageFlags
34707           - Implemented SetWindowStyle() method
34708         * XplatUIStructs.cs: Added PeekMessageFlags
34709         * X11Structs: Added missing border_width field to XWindowChanges struct
34710         * XplatUIX11.cs:
34711           - PeekMessage: Now throws exception if flags which are not yet
34712             supported are passed
34713           - Implemented SetWindowStyle() method
34714           - Fixed SetZOrder to handle AfterHwnd properly
34715         * XplatUI.cs: Added SetWindowStyle() method
34716         * XplatUIDriver.cs: Added SetWindowStyle() abstract
34717         * Control.cs:
34718           - Implemented UpdateStyles() method
34719           - Implemented UpdateZOrder() method
34720         * XplatUIOSX.cs: Added SetWindowStyle() stub
34721
34722 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
34723
34724         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
34725         button mouse).
34726
34727
34728 2005-01-11  Jackson Harper  <jackson@ximian.com>
34729
34730         * TreeView.cs: Still need to draw lines to siblings even if out of
34731         the current node is out of the clip.
34732
34733 2005-01-11  Jackson Harper  <jackson@ximian.com>
34734
34735         * TreeView.cs: When setting the hbar/vbar/grip position use
34736         SetBounds so that perform layout is only called once. Also suspend
34737         and resume layout so layout is only done once for all controls.
34738         - Removed some debug fluff
34739         * SizeGrip.cs: Call base implmentation in overriding methods.
34740         - When visibility is changed the drawing buffers are killed so we
34741         need to redraw.
34742
34743 2005-01-11  Jackson Harper  <jackson@ximian.com>
34744
34745         * TreeView.cs: Calculate the open node count while drawing. This
34746         saves us an entire tree traversal for every paint operation. Use
34747         a member var for the open node count so less vars are passed around.
34748
34749 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
34750
34751         * MonthCalendar.cs:
34752         - fixed selection to use mousemove, not mouse polling on timer
34753         * ThemeWin32Classic.cs
34754         - removed redundant unused variable "no_more_content"
34755         
34756 2005-01-11  Peter Bartok  <pbartok@novell.com>
34757
34758         * XplatUIX11.cs (DoEvents): Needs to return when no more events
34759           are pending, so it now calls PeekMessage instead of GetMessage;
34760           implemented a incomplete version of PeekMessage
34761         
34762 2005-01-11  Peter Bartok  <pbartok@novell.com>
34763
34764         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
34765           I18n issues
34766         * TextBoxBase.cs: Added sending of TextChanged event
34767
34768 2005-01-10  Jackson Harper  <jackson@ximian.com>
34769
34770         * TreeView.cs: Try not to draw outside the clipping rectangle on
34771         each node element.
34772
34773 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
34774
34775         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
34776
34777 2005-01-10  Jackson Harper  <jackson@ximian.com>
34778
34779         * TreeView.cs:
34780         - Implement fast scrolling. Now only the newly
34781         exposed nodes are drawn and the old image is moved using the
34782         XplatUI::ScrollWindow method.
34783         - Factor in height of nodes when calculating whether or not the
34784         node is in the clipping rect.
34785
34786 2005-01-10  Jackson Harper  <jackson@ximian.com>
34787
34788         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
34789
34790 2005-01-10  Peter Bartok  <pbartok@novell.com>
34791
34792         * Application.cs: Added temporary hack to resolve all our resize
34793           required issues on startup. This will get fixed properly at
34794           some point in the future
34795
34796 2005-01-10  Jackson Harper  <jackson@ximian.com>
34797
34798         * SizeGrip.cs: New internal class that is used as a sizing
34799         grip control...hence the name.
34800
34801 2005-01-10  Peter Bartok  <pbartok@novell.com>
34802
34803         * Control.cs: Implemented proper TabIndex handling, now assigning
34804           a tabindex when a control is added to a container
34805         * GroupBox.cs (ctor): Now sets the Container style bit, required
34806           for Control.GetNextControl()
34807
34808 2005-01-09  Jackson Harper  <jackson@ximian.com>
34809
34810         * TextBoxBase.cs: Clear window when scrolling (fixes build).
34811
34812 2005-01-09  Peter Bartok <pbartok@novell.com>
34813
34814         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34815           XplatUIX11.cs: Added ability to control ScrollWindow expose and
34816           an overload for ScrollWindow to allow only scrolling a rectangle
34817
34818 2005-01-09  Peter Bartok <pbartok@novell.com>
34819
34820         * Form.cs:
34821           - Implemented SetDesktopBounds method
34822           - Implemented SetDesktopLocation method
34823
34824 2005-01-08  Jackson Harper  <jackson@ximian.com>
34825
34826         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
34827         the node count has changed, this removes to VScroll::Refresh calls
34828         when drawing.
34829
34830 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
34831
34832         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
34833
34834 2005-01-07  Jackson Harper  <jackson@ximian.com>
34835
34836         * TreeNode.cs: Just update the single node when it is
34837         checked. Don't refresh after toggling, the Expand/Collapse already
34838         handles this.
34839         * TreeView.cs: Respect clipping a little more when drawing. Try
34840         not to redraw things that don't need to be redrawn. Just hide the
34841         scrollbars when they are no longer needed instead of removing
34842         them, so they don't have to be created again and again.
34843         
34844 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
34845
34846         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
34847         coordinates to window space to place the caret properly, FIXED.
34848         Implement GetWindowState & SetWindowState
34849
34850 2005-01-06  Peter Bartok <pbartok@novell.com>
34851
34852         * Form.cs:
34853           - Implemented ClientSize property
34854           - Implemented DesktopBounds property
34855           - Implemented DesktopLocation property
34856           - Implemented IsRestrictedWindow property
34857           - Implemented Size property
34858           - Implemented TopLevel property
34859           - Implemented FormWindowState property
34860         * Control.cs:
34861           - Implemented GetTopLevel() method
34862           - Implemented SetTopLevel() method
34863         * X11Structs.cs (Atom):
34864           - Added AnyPropertyType definition
34865           - Added MapState definiton and updated XWindowAttribute struct
34866         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
34867         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
34868         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
34869         * XplatUIWin32.cs:
34870           - Implemented GetWindowState() and SetWindowState() methods
34871           - Fixed Win32GetWindowLong return type
34872         * XplatUIX11.cs:
34873           - Introduced central function for sending NET_WM messages
34874           - Implemented GetWindowState() and SetWindowState() methods
34875         * TextBoxBase.cs (set_Lines):
34876           - Now uses Foreground color for text added via Text property (Duh!)
34877           - Added code to remember programmatically requested size (fixes
34878             behaviour when Multiline is set after Size)
34879           - Added AutoSize logic
34880
34881 2005-01-06  Jackson Harper  <jackson@ximian.com>
34882
34883         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
34884
34885 2005-01-06  Jackson Harper  <jackson@ximian.com>
34886
34887         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
34888         set to less then 0.
34889
34890 2005-01-06  Jackson Harper  <jackson@ximian.com>
34891
34892         * ScrollableControl.cs: Lazy init the scrollbars.
34893         
34894 2005-01-06  Jackson Harper  <jackson@ximian.com>
34895
34896         * Theme.cs: Speed up getting pens and solid brushes, by using
34897         their ARGB as a hash instead of tostring and not calling Contains.
34898
34899 2005-01-06  Peter Bartok <pbartok@novell.com>
34900
34901         * Form.cs:
34902           - Implemented OnActivated and OnDeactivate event trigger
34903           - Implemented Activate() method
34904           - Fixed ShowDialog() to activate the form that was active before
34905             the dialog was shown
34906         * XplatUIX11.cs:
34907           - Added global active_window var that tracks the currently active
34908             X11 window
34909           - Now always grabs Property changes from the root window to always
34910             catch changes on the active window property
34911           - Added code to PropertyNotify handler to send Active/Inactive
34912             messages when state changes. This puts X11 and Win32 en par on
34913             WM_ACTIVATE notifications (except for double notifications when
34914             the user clicks away from our modal window to another one of our
34915             windows)
34916
34917 2005-01-05  Jackson Harper  <jackson@ximian.com>
34918
34919         * ImageList.cs: Implment ctor
34920
34921 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34922
34923         * XplatUIOSX.cs: Implement Activate/SetTopmost
34924
34925 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34926
34927         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
34928
34929 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34930
34931         * XplatUIOSX.cs: Implement GetActive/SetFocus.
34932
34933 2005-01-05  Peter Bartok <pbartok@novell.com>
34934
34935         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
34936           XplatUIOSX.cs: Added GetActive method to return the currently
34937           active window for the application (or null, if none is active)
34938         * Form.cs:
34939           - Implemented ActiveForm
34940           - Commented out owner assignment for modal dialogs (causes problems
34941             on Win32, since the owner will be disabled)
34942           - Reworked some Active/Focus handling (still incomplete)
34943         * CommonDialog.cs: Commented out owner assignment for modal dialogs
34944           (causes problems on Win32, since the owner will be disabled)
34945         * IWin32Window: Added ComVisible attribute
34946
34947 2005-01-05  Peter Bartok <pbartok@novell.com>
34948
34949         * ToolTip.cs (WndProc): Enable setting focus now that we have the
34950           required XplatUI functions.
34951
34952 2005-01-05  Peter Bartok <pbartok@novell.com>
34953
34954         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
34955           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
34956           to implement focus and activation handling; still incomplete and
34957           with debug output
34958
34959 2005-01-04  Peter Bartok <pbartok@novell.com>
34960
34961         * TextBoxBase.cs: Changed access level for Document property to
34962           match switch to internal for TextControl
34963
34964 2005-01-04  Peter Bartok <pbartok@novell.com>
34965
34966         * AccessibleObject: Added ComVisible attribute
34967
34968 2005-01-04  Jackson Harper  <jackson@ximian.com>
34969
34970         * X11Keyboard.cs: Remove unneeded var.
34971
34972 2005-01-04  Jackson Harper  <jackson@ximian.com>
34973
34974         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
34975         but PAINT.
34976         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
34977         ClientMessage. This makes apps exit cleanly (more often).
34978         
34979 2005-01-04  Jackson Harper  <jackson@ximian.com>
34980
34981         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
34982         handling focus, return correct colors and fonts,
34983         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
34984         handle selection, horizontal scrolling, and mouse interaction.
34985
34986 2005-01-04  Peter Bartok <pbartok@novell.com>
34987
34988         * ICommandExecutor.cs: Added
34989         * IDataGridColumnStyleEditingNotificationService.cs: Added
34990         * IFeatureSupport.cs: Added
34991         * IFileReaderService.cs: Added
34992         * IDataObject.cs: Added ComVisible attribute
34993         * AmbientProperties.cs: Added
34994         * BaseCollection.cs: Added missing attributes
34995         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
34996         * BaseCollection.cs: Added missing attributes
34997         * Binding.cs: Added TypeConverter attribute
34998         * BindingContext.cs: Added DefaultEvent attribute
34999         * BindingsCollection.cs: Added DefaultEvent attribute
35000         * Button.cs: Added DefaultValue attribute
35001         * DragEventArgs.cs: Added ComVisible attribute
35002         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
35003         * KeyEventArgs.cs: Added ComVisible attribute
35004         * KeyPressEventArgs.cs: Added ComVisible attribute
35005         * MouseEventArgs.cs: Added ComVisible attribute
35006         * NavigateEventArgs.cs: Added
35007         * NavigateEventHandler.cs: Added
35008         * FeatureSupport.cs: Added
35009         * OSFeature.cs: Added
35010         * Theme.cs: Added abstract Version property to support OSFeature
35011         * ThemeWin32Classic.cs: Added Version property to
35012           support OSFeature.Themes
35013         * ProgressBar.cs: Removed OnPaintBackground override, not required since
35014           the proper styles to avoid background drawing are set, also doesn't
35015           match MS signature
35016         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
35017         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
35018         * ScrollEventArgs.cs: Added ComVisible attribute
35019         * SplitterEventArgs.cs: Added ComVisible attribute
35020         * AccessibleSelection.cs: Added Flags attribute
35021         * Appearance.cs: Added ComVisible attribute
35022         * Border3DSide.cs: Added ComVisible attribute
35023         * Border3DStyle.cs: Added ComVisible attribute
35024         * BorderStyle.cs: Added ComVisible attribute
35025         * DragAction.cs: Added ComVisible attribute
35026         * ErrorBlinkStyle.cs: Added
35027         * ScrollEventType.cs: Added ComVisible attribute
35028         * AnchorStyles.cs: Added Editor attribute
35029         * DockStyle.cs: Added Editor attribute
35030         * HorizontalAlignment.cs: Added ComVisible attribute
35031         * HelpEventArgs.cs: Added ComVisible attribute
35032         * PaintEventArgs.cs: Added IDisposable
35033
35034 2005-01-04  Peter Bartok <pbartok@novell.com>
35035
35036         * TextControl.cs: Switched Line, LineTag and Document classes to
35037           internal
35038
35039 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
35040
35041         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
35042         Simple mode, fixes, IntegralHeight, etc.
35043
35044 2005-01-04  Peter Bartok <pbartok@novell.com>
35045
35046         * TextBoxBase.cs: Using proper font variable now
35047
35048 2005-01-04  Peter Bartok <pbartok@novell.com>
35049
35050         * Form.cs (ShowDialog): Set parent to owner, if provided
35051         * GroupBox.cs: Removed unused vars
35052         * TextControl.cs:
35053           - Added GetHashCode() for Document and LineTag classes
35054           - Removed unused variables
35055           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
35056             to allow translation between continuous char position and line/pos
35057         * CheckBox.cs: Removed vars that are provided by base class
35058         * RadioButton.cs: Removed vars that are provided by base class, added
35059           new keyword where required
35060         * LinkLabel.cs: Added new keyword where required
35061         * Control.cs (WndProc): Removed unused variable
35062         * TextBoxBase.cs:
35063           - Finished SelectionLength property
35064           - Implemented SelectionStart property
35065           - Implemented Text property
35066           - Removed unused vars
35067         * MessageBox.cs: Added new keyword where required
35068         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
35069           WndProc signature
35070         * MenuAPI.cs: Added new keyword where required
35071         * ButtonBase.cs: Removed vars that are provided by base class, added
35072           new keyword where required
35073         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
35074           argument to double, to allow compiling with csc 2.0 (Atsushi ran
35075           into this)
35076         * Application.cs (Run): Now triggers the ThreadExit event
35077         * CommonDialog.cs: Added new keyword where required; now properly sets
35078           parent (owner) for dialog
35079         * XplatUIX11.cs: Commented out unused vars
35080         * StatusBar.cs: Fixed signature for Text property
35081         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
35082
35083 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
35084
35085         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
35086         TrackBar.cs, MonthCalendar.cs: remove unused vars
35087
35088 2005-01-03  Jackson Harper  <jackson@ximian.com>
35089
35090         * ThemeWin32Classic.cs:
35091         * X11Keyboard.cs: Remove unused vars.
35092
35093 2005-01-03  Peter Bartok  <pbartok@novell.com>
35094
35095         * TextBox.cs:
35096           - set_Text: Tied into TextControl
35097           - set_TextAlignment: Tied into TextControl
35098         * TextControl.cs:
35099           - Added alignment properties and implemented alignment handling
35100             and drawing (still has a bug, not generating proper expose events)
35101           - Added new Line() constructor to allow passing the line alignment
35102           - Fixed selection setting, properly handling end<start now
35103           - Added aligment considerations to RecalculateDocument()
35104         * TextBoxBase.cs:
35105           - Now properly enforces control height for single line controls
35106           - Added support for CharacterCasing
35107           - Added IsInputKey override
35108           - Fixed Keys.Enter logic
35109           - Added SetBoundsCore override
35110           - Fixed mouse selection handling
35111
35112 2005-01-03  Jackson Harper  <jackson@ximian.com>
35113
35114         * TreeView.cs:
35115           - Collapse and uncheck all nodes when CheckBoxes is disabled.
35116           - Checkboxes are always aligned to the bottom of the node,
35117           regardless of item height.
35118           - Use the node bounds to draw the text so we can center it when
35119           the item height is greater then the font height.
35120           - Node::Bounds are only the text part of the node.
35121         * TreeNode.cs: New method to combine collapsing and unchecking all
35122           nodes recursively.
35123
35124 2005-01-02  Jackson Harper  <jackson@ximian.com>
35125
35126         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
35127         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
35128         tree when a check is changed. TODO: Only refresh the checked node.
35129
35130 2004-12-30  Jackson Harper  <jackson@ximian.com>
35131
35132         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
35133         * TreeNode.cs: When collapsing make sure to never collapse the
35134         root node.
35135
35136 2004-12-29  Jackson Harper  <jackson@ximian.com>
35137
35138         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
35139         
35140 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
35141
35142         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
35143
35144 2004-12-28  Peter Bartok  <pbartok@novell.com>
35145
35146         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
35147           not yet assigned
35148
35149 2004-12-28  Peter Bartok  <pbartok@novell.com>
35150
35151         * Control.cs (WndProc): Added WM_HELP handler, now generates
35152           HelpRequested event
35153         * Form.cs: Added HelpButton property and required support code
35154         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
35155
35156 2004-12-28  Peter Bartok  <pbartok@novell.com>
35157
35158         * CommonDialog.cs:
35159           - Made DialogForm.owner variable internal
35160           - Added check to ensure owner form is set before setting
35161             owner properties in CreateParams
35162
35163 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
35164
35165         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
35166           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
35167           GetCursorPos.  Fix major visibility issues.  Rework the windowing
35168           system to support borderless/titleless windows (implements menus).
35169           Fix GetWindowPos.  Implement initial background color support for
35170           views.
35171
35172 2004-12-28  Peter Bartok  <pbartok@novell.com>
35173
35174         * Form.cs (get_CreateParams): Make sure we have an owner before using
35175           the owner variable. Implement proper default if no owner exists
35176
35177 2004-12-28  Peter Bartok  <pbartok@novell.com>
35178
35179         * In preparation for making Managed.Windows.Forms the default build target
35180           for System.Windows.Forms, the following stubbed files were added.
35181           Dialogs are currently being implemented by contributors and are only
35182           short-term place holders.
35183         * ColorDialog.cs: Initial check-in (minmal stub)
35184         * DataGrid.cs: Initial check-in (minimal stub)
35185         * DataGridLineStyle.cs: Initial check-in (minimal stub)
35186         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
35187         * DataGridTableStyle.cs: Initial check-in (minimal stub)
35188         * FontDialog.cs: Initial check-in (minimal stub)
35189         * FileDialog.cs: Initial check-in (minimal stub)
35190         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
35191         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
35192         * OpenFileDialog: Initial check-in (minimal stub)
35193         * IComponentEditorPageSite.cs: Initial check-in
35194         * Splitter.cs: Initial check-in (for Jackson)
35195         * SplitterEventArgs.cs: Initial check-in (for Jackson)
35196         * SplitterEventHandler.cs: Initial check-in (for Jackson)
35197         * TextBox.cs: Initial check-in; still needs some wiring to
35198           TextControl backend
35199         * Form.cs: Implemented ControlBox property
35200         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
35201         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
35202         * TextControl.cs: Added selection functionality; added todo header
35203         * TextBoxBase.cs:
35204           - Implemented Lines property
35205           - Implemented TextHeight property
35206           - Implemented SelectedText property
35207           - Implemented SelectionLength property
35208           - Implemented SelectAll method
35209           - Implemented ToString method
35210           - Removed and cleaned up some debug code
35211           - Implemented (still buggy) mouse text selection
35212
35213 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
35214
35215         * ComboBox.cs: Complete DropDownList implementation, fixes.
35216
35217 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
35218
35219         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
35220         * ComboBoxStyle.cs: ComboBoxStyle enum
35221         * ComboBox.cs: Initial work on ComboBox control
35222
35223 2004-12-21  Peter Bartok  <pbartok@novell.com>
35224
35225         * Control.cs (ctor, CreateParams): Moved setting of is_visible
35226           forward so that anything that creates a window gets the default,
35227           also no longer uses Visible property in CreateParams to avoid
35228           walking up the parent chain and possibly get the wrong visible
35229           status. Fixed IsVisible to no longer walk up to the parent.
35230
35231 2004-12-21  Peter Bartok  <pbartok@novell.com>
35232
35233         * Form.cs (ShowDialog): Unset modality for the proper window
35234  
35235 2004-12-20  Peter Bartok  <pbartok@novell.com>
35236
35237         * CommonDialog.cs: Initial check-in
35238
35239 2004-12-20  Peter Bartok  <pbartok@novell.com>
35240
35241         * Control.cs (Visible): Now uses the parent window instead of the
35242           client area window for the property
35243
35244         * Form.cs
35245           - ShowDialog(): Now uses the proper window for modality
35246           - The default visibility state for the form parent is now false. This
35247             will prevent the user from seeing all the changes to the form and
35248             its controls before the application hits Application.Run()
35249           - Removed some stale commented out code
35250
35251         * NativeWindow.cs:
35252           - Added FindWindow() method to have a method to check for existence
35253             of a window handle
35254           - Added ability to override default exception handling (for example
35255             when debugging with VS.Net; to do this the ExternalExceptionHandler
35256             define must be set
35257           - Removed some useless debug output
35258
35259         * XplatUIX11.cs:
35260           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
35261             not working as expected
35262           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
35263             property to allow switching back to the modal window if focus is
35264             given to another one of our windows (Application Modal)
35265           - Now only sets override_redirect if we create a window
35266             without WS_CAPTION
35267           - Moved EventMask selection before mapping of newly created window
35268             so we can catch the map event as well
35269           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
35270           - Added various Atom related DllImports
35271           - Implemented Exit() method
35272           - .ctor() : No longer shows window if WS_VISIBLE is not defined
35273             in the CreateParams
35274
35275         * MessageBox.cs: Now properly deals with the FormParent window by
35276           providing an override the FormParent CreateParams property to
35277           set as POPUP instead of OVERLAPPED window.
35278
35279 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
35280
35281         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
35282         Minor code cleanup.
35283
35284 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
35285         
35286         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
35287
35288 2004-12-18  Peter Bartok  <pbartok@novell.com>
35289
35290         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
35291           implementing SetModal() method
35292
35293 2004-12-18  Peter Bartok  <pbartok@novell.com>
35294
35295         * X11Structs.cs (XGCValues): Fixed type of function element
35296         * XplatUI.cs: Added ScrollWindow() method
35297         * XplatUIDriver.cs: Added ScrollWindow() abstract
35298         * XplatUIWin32.cs: Implemented ScrollWindow() method
35299         * XplatUIX11.cs: Implemented ScrollWindow() method
35300         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
35301
35302 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35303
35304         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
35305         Some more keyboard support (INCOMPLETE)
35306
35307 2004-12-17  Peter Bartok  <pbartok@novell.com>
35308
35309         * TextControl.cs:
35310         - Added color attribute to line tags.
35311         - Added color argument to all functions dealing with tags
35312         - Added color argument support to various functions
35313         - Fixed miss-calculation of baseline/shift in certain circumstances
35314
35315         * TextBoxBase.cs: Added new color option to test code
35316
35317 2004-12-17  Jackson Harper  <jackson@ximian.com>
35318
35319         * TreeNode.cs:
35320         * MonthCalendar.cs: Signature fixes
35321
35322 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35323
35324         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
35325         keyboard event moved it.  Create a new graphics context for each paint resolves this
35326
35327 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35328
35329         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
35330         Make caret exist and go blink blink.  Initial keyboard support.
35331         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
35332         works.
35333
35334 2004-12-17  Jackson Harper  <jackson@ximian.com>
35335
35336         * XplatUIStructs.cs: Updated set of virtual keycodes.
35337         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
35338
35339 2004-12-17  Jackson Harper  <jackson@ximian.com>
35340
35341         * XplatUIX11.cs: Prune old keyboard code.
35342
35343 2004-12-17  Jackson Harper  <jackson@ximian.com>
35344
35345         * XplatUIX11.cs: When generating mouse wparams get the modifier
35346         keys from the ModifierKeys property.
35347
35348 2004-12-17  Jackson Harper  <jackson@ximian.com>
35349
35350         * X11Keyboard.cs: Send up/down input when generating
35351         messages. Remove some unused vars.
35352
35353 2004-12-17  Jackson Harper  <jackson@ximian.com>
35354
35355         * TabControl.cs:
35356         * TreeView.cs: get rid of warnings.
35357
35358 2004-12-17  Jackson Harper  <jackson@ximian.com>
35359
35360         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
35361
35362 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
35363
35364         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
35365           CheckedListBox.cs: Implementation
35366
35367 2004-12-17  Peter Bartok  <pbartok@novell.com>
35368
35369         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
35370
35371 2004-12-16  Peter Bartok  <pbartok@novell.com>
35372
35373         * TextControl.cs:
35374           - InsertCharAtCaret(): Fixed start pos fixup
35375           - CaretLine_get: No longer derives the line from the tag, the tag
35376             could be stale if lines in the document have been added or deleted
35377           - RebalanceAfterDelete(): Fixed bug in balancing code
35378           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
35379           - Line.Streamline(): Now can also elminate leading empty tags
35380           - DumpTree(): Added a few more tests and prevented exception on
35381             uninitialized data
35382           - Added Debug section for Combining lines
35383           - Delete(): Now copies all remaining properties of a line
35384           
35385         * TextBoxBase.cs:
35386           - Left mousebutton now sets the caret (and middle button still acts
35387             as formatting tester, which must go away soon)
35388           - Added Debug section for Deleting/Combining lines
35389           - Fixed calculations for UpdateView after Combining lines
35390
35391 2004-12-16  Peter Bartok  <pbartok@novell.com>
35392
35393         * TextControl.cs: Now properly aligns text on a baseline, using the
35394           new XplatUI.GetFontMetrics() method. Simplified several calculations
35395         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
35396           defined
35397
35398 2004-12-16  Peter Bartok  <pbartok@novell.com>
35399
35400         * XplatUI.cs: Added GetFontMetrics() method
35401         * XplatUIDriver.cs: Added GetFontMetrics() abstract
35402         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
35403           into libgdiplus, our private GetFontMetrics function
35404         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
35405         * XplatUIWin32.cs: Implemented GetFontMetrics() method
35406
35407 2004-12-16  Jackson Harper  <jackson@ximain.com>
35408
35409         * XplatUIStruct.cs: Add enum for dead keys
35410         * X11Keyboard.cs: Map and unmap dead keys.
35411
35412 2004-12-16  Jackson Harper  <jackson@ximian.com>
35413
35414         * X11Keyboard.cs: Detect and use the num lock mask.
35415
35416 2004-12-16  Peter Bartok  <pbartok@novell.com>
35417
35418         * Control.cs (CreateGraphics): Added check to make sure the
35419           handle of the window exists before calling Graphics.FromHwnd()
35420
35421 2004-12-16  Peter Bartok  <pbartok@novell.com>
35422
35423         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
35424           contains a lot of code that's not supposed to be there for the
35425           real thing, but required for developing/testing the textbox
35426           backend.
35427
35428 2004-12-16  Peter Bartok  <pbartok@novell.com>
35429
35430         * TextControl.cs:
35431         - Fixed Streamline method
35432         - Added FindTag method to Line
35433         - Added DumpTree method for debugging
35434         - Added DecrementLines() method for deleting lines
35435         - Fixed UpdateView to update the cursor to end-of-line on single-line
35436           updates
35437         - Added PositionCaret() method
35438         - Fixed MoveCaret(LineDown) to move into the last line, too
35439         - Added InsertChar overload
35440         - Fixed InsertChar tag offset calculations
35441         - Added DeleteChar() method
35442         - Added Combine() method for folding lines
35443         - Fixed Delete() method, no longer allocates wasted Line object and
35444           now copies all properties when swapping nodes
35445         - Delete() method now updates document line counter
35446
35447 2004-12-15  Jackson Harper  <jackson@ximian.com>
35448
35449         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
35450         * X11Keyboard.cs: Expose the currently selected modifier keys
35451         through a property.
35452
35453 2004-12-15  Peter Bartok  <pbartok@novell.com>
35454
35455         * TextControl.cs: Initial check-in. Still incomplete
35456
35457 2004-12-15  Jackson Harper  <jackson@ximian.com>
35458
35459         * TreeNode.cs:
35460         * TreeView.cs: Fix build on csc (second time today ;-))
35461
35462 2004-12-15  Jackson Harper  <jackson@ximian.com>
35463
35464         * TreeView.cs: Store the treenodes plus/minus box bounds when it
35465         is calculated and use this for click testing.
35466         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
35467
35468 2004-12-15  Jackson Harper  <jackson@ximian.com>
35469
35470         * TreeView.cs: Pass the nodes image index to the image list when
35471         drawing that image.
35472
35473 2004-12-15  Jackson Harper  <jackson@ximian.com>
35474
35475         * X11Keyboard.cs: Set messages hwnd.
35476         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
35477         post_message calls.
35478
35479 2004-12-15  Jackson Harper  <jackson@ximian.com>
35480
35481         * X11Keyboard.cs: Fix to compile with csc.
35482         
35483 2004-12-15  Jackson Harper  <jackson@ximian.com>
35484
35485         * X11Structs.cs: Add key mask values
35486         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
35487         * X11Keyboard.cs: New file - Extrapolates and interpolates key
35488         down/up foo into WM_CHAR foo
35489         * KeyboardLayouts.cs: Common keyboard layouts
35490         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
35491         post messages into the main queue.
35492
35493 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
35494
35495         * Button.cs: implement ProcessMnemonic
35496         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
35497           brushes everytime
35498         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
35499         * ButtonBase.cs: Show HotkeyPrefix (not the &)
35500
35501 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
35502         
35503         * MonthCalendar.cs: Implemented click-hold for next/previous month
35504           and date selection
35505           
35506 2004-12-11  Peter Bartok  <pbartok@novell.com>
35507
35508         * X11Structs.cs:
35509           - Added XKeyboardState (moved from XplatUIX11.cs)
35510           - Added XCreateGC related enums and structures
35511           - Added GXFunction for XSetFunction
35512
35513         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
35514
35515         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
35516           CaretVisible() calls
35517
35518         * ToolTip.cs: Added code to prevent stealing focus from app windows
35519
35520         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
35521           DestroyCaret, SetCaretPos and CaretVisible)
35522
35523         * XplatUIX11.cs:
35524           - Added implementation for caret functions
35525           - Moved hover variables into a struct, to make it a bit easier
35526             on the eyes and to debug
35527           - Removed XKeyboardState (moved to XplatUIX11.cs)
35528           - Moved Keyboard properties into the properties region
35529
35530         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
35531           call to get a graphics context for our control
35532
35533         * XplatUIOSX.cs: Added empty overrides for the new caret functions
35534
35535         * TreeView.cs: Fixed bug. No matter what color was set it would always
35536           return SystemColors.Window
35537
35538         * XplatUIWin32.cs: Implemented caret overrides
35539
35540 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
35541
35542         * ListBox.cs: fire events, implement missing methods and properties,
35543         sorting.
35544
35545 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
35546
35547         * MonthCalendar.cs: invalidation bug fixing
35548         * ThemeWin32Classic.cs: paint fixing
35549
35550 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
35551
35552         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
35553         prepare the CGContextRef there now.
35554
35555 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
35556
35557         * MonthCalendar.cs:
35558           - optimisationL only invalidate areas that have changed
35559         * ThemeWin32Classic.cs:
35560           - only paint parts that intersect with clip_area
35561
35562 2004-12-09  Peter Bartok  <pbartok@novell.com>
35563
35564         * Application.cs: Undid changes from r37004 which cause problems
35565         on X11
35566
35567 2004-12-09  Ravindra  <rkumar@novell.com>
35568
35569         * ToolBar.cs: Added support for displaying ContextMenu
35570         attached to a button on ToolBar.
35571         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
35572         property.
35573
35574 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
35575
35576         * Label.cs: autosize works in text change and removes unnecessary
35577         invalidate
35578
35579 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
35580
35581         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35582         remove warnings
35583
35584 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
35585
35586         * XplatUIOSX.cs: Added mouse move/click/grab support
35587         Remove some debugging WriteLines not needed anymore.
35588         Add window resizing/positioning.
35589         Fix visibility on reparenting.
35590
35591 2004-12-08  Peter Bartok  <pbartok@novell.com>
35592
35593         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
35594
35595 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
35596
35597         * XplatUIOSX.cs: Initial checkin
35598         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
35599
35600 2004-12-03  Ravindra <rkumar@novell.com>
35601
35602         * ListView.cs: Added some keybindings and fixed scrolling.
35603         ScrollBars listen to ValueChanged event instead of Scroll
35604         Event. This would let us take care of all changes being
35605         done in the scrollbars' values programmatically or manually.
35606         * ListView.cs (CanMultiselect): Added a check for shift key.
35607         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
35608         * ListViewItem.cs (Clone): Fixed. We need to make a copy
35609         of ListViewSubItemCollection as well.
35610
35611 2004-12-06  Peter Bartok <pbartok@novell.com>
35612
35613         * Control.cs (Parent): Added check and exception to prevent
35614         circular parenting
35615
35616 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
35617
35618         * ListBox.cs: implemented clipping, selection single and multiple,
35619         bug fixing
35620
35621 2004-12-03  Ravindra <rkumar@novell.com>
35622
35623         * ListView.cs (ListView_KeyDown):
35624         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
35625         when CTRL key is pressed.
35626         * ListViewItem.cs (Selected): Fixed setting the property.
35627
35628 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
35629
35630         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
35631
35632         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
35633         MinimizeBox, ShowInTaskbar, TopMost properties.
35634
35635         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
35636         will be implemented).
35637
35638 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
35639
35640         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
35641
35642         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
35643         tests.
35644         
35645         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
35646         
35647         * TreeView.cs: BackColor is Colors.Window.
35648
35649 2004-12-01  Jackson Harper  <jackson@ximian.com>
35650
35651         * TreeView.cs: When resizing the tree if the user is making it
35652         smaller we don't get expose events, so we need to handle adding
35653         the horizontal scrollbar in the size changed handler as well as
35654         the expose handler.
35655
35656 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
35657
35658         * DrawItemState.cs: fixes wrong enum values
35659
35660 2004-12-01  Jackson Harper  <jackson@ximian.com>
35661
35662         * TreeView.cs: Resize the hbar as well as the vbar on resize.
35663
35664 2004-12-01  Jackson Harper  <jackson@ximian.com>
35665
35666         * NodeLabelEditEventArgs.cs:
35667         * NodeLabelEditEventHandler.cs:
35668         * OpenTreeNodeEnumerator.cs:
35669         * TreeNode.cs:
35670         * TreeNodeCollection.cs:
35671         * TreeView.cs:
35672         * TreeViewAction.cs:
35673         * TreeViewCancelEventArgs.cs:
35674         * TreeViewCancelEventHandler.cs:
35675         * TreeViewEventArgs.cs:
35676         * TreeViewEventHandler.cs: Initial implementation.
35677
35678 2004-12-01  Ravindra <rkumar@novell.com>
35679
35680         * ListView.cs (CalculateListView): Fixed scrolling related
35681         calculations. Also, removed some debug statements from other
35682         places.
35683         * ListViewItem.cs: Changed access to 'selected' instance variable
35684         from private to internal.
35685         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
35686
35687 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
35688
35689         * ThemeWin32Classic.cs: remove cache of brush and pens for
35690         specific controls and use the global system, fixes scrollbutton
35691         bugs (for small sizes, disabled, etc)
35692         
35693         * ScrollBar.cs: does not show the thumb for very small controls
35694         (as MS) and allow smaller buttons that the regular size
35695
35696 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
35697
35698         * UpDownBase.cs: Add abstract methods for the interface.
35699         Add new virtual methods (need to be hooked up to TextEntry when it
35700         exists).
35701         Add override methods for most features.
35702         Computes the size, forces the height of the text entry.
35703
35704         * NumericUpDown.cs: Put here the current testing code.
35705
35706         * Set eol-style property on all files that do not have mixed line
35707         endings, to minimize the future problems.  There are still a few
35708         files with mixed endings, and someone should choose whether they
35709         want to move it or not.
35710
35711 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
35712
35713         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
35714         System.Colors
35715         
35716 2004-11-30  Ravindra <rkumar@novell.com>
35717
35718         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
35719         drawing and replaced use of SystemColors by theme colors.
35720         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
35721         * ListView.cs (ListViewItemCollection.Add): Throw exception when
35722         same ListViewItem is being added more than once.
35723
35724 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
35725
35726         * MonthCalendar.cs:
35727           - ControlStyles love to make the control not flicker
35728           
35729 2004-11-30  Peter Bartok  <pbartok@novell.com>
35730
35731         * CharacterCasing.cs: Added
35732
35733 2004-11-29  Peter Bartok  <pbartok@novell.com>
35734
35735         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35736           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
35737           I am removing these files as they conflict with already completed
35738           work. While it is fantastic to get contributions to MWF, I
35739           respectfully ask that everyone please coordinate their contributions
35740           through mono-winforms-list or #mono-winforms at this time. We're
35741           explicitly avoiding stubbing and don't want controls that don't have
35742           their basic functionality implemented in svn. Please also see
35743           http://www.mono-project.com/contributing/winforms.html
35744
35745
35746 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
35747
35748         * Application.cs (ModalRun): Don't hang after exit.
35749
35750         * Theme.cs: New TreeViewDefaultSize property.
35751
35752         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
35753         with less hardcoded SystemColors constant.
35754         Implemented TreeViewDefaultSize.
35755
35756         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35757         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
35758
35759
35760 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
35761
35762         * MonthCalendar.cs:
35763           - Fix NextMonthDate and PrevMonthDate click moving calendar
35764
35765 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
35766
35767         * MonthCalendar.cs:
35768           - Fix usage of ScrollChange Property when scrolling months
35769
35770 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
35771
35772         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
35773          - Fixes menu destroying
35774          - Support adding and removing items on already created menus
35775
35776 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
35777
35778         * MonthCalendar.cs:
35779           - Re-worked all bolded dates handling to match win32
35780         * ThemeWin32Classic.cs:
35781           - Fixed rendering with bolded dates
35782
35783 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
35784
35785         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
35786         - Horizontal scroolbar
35787         - Multicolumn
35788         - Fixes
35789
35790
35791 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
35792
35793         * MonthCalendar.cs:
35794           - Fix Usage of MaxSelectionCount from SelectionRange
35795           - Fixed Shift + Cursor Selection
35796           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
35797           - Fixed normal cursor selection to be compat with win32
35798           - Fixed Shift + Mouse Click selection
35799
35800 2004-11-24  Peter Bartok <pbartok@novell.com>
35801
35802         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
35803         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
35804         * XplatUIX11.cs:
35805           - CreatedKeyBoardMsg now updates keystate with Alt key
35806           - Added workaround for timer crash to CheckTimers, Jackson will
35807             develop a proper fix and check in later
35808           - Implemented DispatchMessage
35809           - Removed calling the native window proc from GetMessage (call
35810             now moved to DispatchMessage)
35811
35812         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
35813           the keydata (Fixes bug #69831)
35814
35815         * XplatUIWin32.cs:
35816           - (DispatchMessage): Switched to return IntPtr
35817           - Added DllImport for SetFocus
35818
35819 2004-11-24  Ravindra <rkumar@novell.com>
35820
35821         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
35822         background drawing.
35823         * ListViewItem.cs: Fixed various properties, calculations
35824         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
35825         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
35826         and some internal properties. Fixed MouseDown handler and Paint
35827         method.
35828
35829 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
35830
35831         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
35832
35833 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
35834
35835         * ContainerControl.cs: correct accidental check in of local changes
35836
35837 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
35838
35839         * ThemeWin32Classic.cs:
35840                 - Fixed Drawing Last month in grid (sometimes not showing)
35841         * MonthCalendar.cs:
35842                 - Fixed title width calculation bug (makeing title small)
35843
35844 2004-11-23  Peter Bartok <pbartok@novell.com>
35845
35846         * XplatUIX11.cs:
35847           - Added generation of WM_MOUSEHOVER event
35848           - Added missing assignment of async_method atom
35849           - Fixed WM_ERASEBKGND; now only redraws the exposed area
35850
35851 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
35852
35853         * ThemeWin32Classic.cs:
35854                 - Fixed Drawing of today circle when showtodaycircle not set
35855                 - fixed drawing of first and last month in the grid (gay dates)
35856         * MonthCalendar.cs:
35857                 - Fixed Drawing of today circle
35858                 - Fixed drawing of grady dates
35859                 - Fixed HitTest for today link when ShowToday set to false
35860                 - Fixed DefaultSize to obey ShowToday
35861
35862 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
35863
35864         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
35865         * System.Windows.Forms/Theme.cs
35866         * MonthCalendar.cs: added for MonthCalendar
35867         * SelectionRange.cs: added for MonthCalendar
35868         * Day.cs: added for MonthCalendar: added for MonthCalendar
35869         * DateRangeEventArgs.cs: added for MonthCalendar
35870         * DateRangeEventHandler.cs: added for MonthCalendar
35871
35872 2004-11-22  Ravindra <rkumar@novell.com>
35873
35874         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
35875         property.
35876
35877 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
35878
35879         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
35880         event handler.
35881         
35882         * NumericUpDown.cs: Added new implementation.
35883         * UpDownBase.cs: Added new implementation.
35884
35885         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
35886         implementations.
35887         
35888         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
35889         implementations.
35890
35891         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
35892         methods.
35893
35894 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
35895
35896         * Timer.cs  (Dispose): Should call the base dispose when
35897         overriding.
35898
35899 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
35900
35901         * ScrollBar.cs: updates thumb position when max, min or increment
35902         is changed
35903
35904 2004-11-21  Ravindra <rkumar@novell.com>
35905
35906         * ListView.cs: Implemented item selection, activation and
35907         column header style. Fixed properties to do a redraw, if
35908         required. Added support for MouseHover, DoubleClick, KeyDown
35909         and KeyUp event handling and some minor fixes.
35910         * ListViewItem.cs: Fixed constructor.
35911         * ThemeWin32Classic.cs: Improved drawing for ListView.
35912
35913 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
35914
35915         * ThemeWin32Classic.cs: initial listbox drawing code
35916         * DrawMode.cs: new enumerator
35917         * ListControl.cs: stubbed class
35918         * ListBox.cs: initial implementation
35919         * Theme.cs: new methods definitions
35920         * SelectionMode.cs: new enumerator
35921
35922 2004-11-17  Peter Bartok  <pbartok@novell.com>
35923
35924         * XplatUIWin32.cs: Added double-click events to the class style
35925         * Control.cs (WndProc):
35926           - Added handling of click-count to MouseDown/ MouseUp events.
35927           - Added handling of middle and right mouse buttons
35928           - Removed old debug code
35929
35930 2004-11-17  Jackson Harper  <jackson@ximian.com>
35931
35932         * XplatUIX11.cs: Use the new Mono.Unix namespace.
35933
35934 2004-11-17  Ravindra <rkumar@novell.com>
35935
35936         * ListView.cs: Added event handling for MouseMove/Up/Down.
35937         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
35938         * ThemeWin32Classic.cs: We need to clear the graphics context and
35939         draw column header in a proper state.
35940
35941
35942 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
35943
35944         *  Menu.cs: fixes signature
35945
35946 2004-11-16  Peter Bartok  <pbartok@novell.com>
35947
35948         * XplatUIX11.cs (GetMessage): Implemented generation of
35949           double click mouse messages
35950
35951 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
35952
35953         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
35954         not by menu
35955
35956 2004-11-11  Peter Bartok  <pbartok@novell.com>
35957
35958         * HandleData.cs: Added Visible property
35959         * XplatUIX11.cs (IsVisible): Now uses Visible property from
35960           HandleData
35961         * XplatUIX11.cs: Removed old debug leftovers
35962         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
35963         * Control.cs (WndProc): Removed old debug leftovers,
35964           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
35965           needed WM_SIZE handling
35966
35967 2004-11-11  Jackson Harper  <jackson@ximian.com>
35968
35969         * OwnerDrawPropertyBag.cs:
35970         * TreeViewImageIndexConverter.cs: Initial implementation
35971
35972 2004-11-10  Jackson Harper  <jackson@ximian.com>
35973
35974         * ThemeWin32Classic.cs:
35975         * TabControl.cs: instead of moving tabs by the slider pos just
35976         start drawing at the tab that is offset by the slider. This way
35977         scrolling always moves by exactly one tab.
35978
35979 2004-11-10  Jackson Harper  <jackson@ximian.com>
35980
35981         * TabControl.cs: You can only scroll left when the slider has
35982         already ben moved right.
35983         
35984 2004-11-10  Jackson Harper  <jackson@ximian.com>
35985
35986         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
35987         the clip area.
35988         
35989 2004-11-10  Jackson Harper  <jackson@ximian.com>
35990
35991         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
35992         clip area.
35993         
35994 2004-11-09  Jackson Harper  <jackson@ximian.com>
35995
35996         * TabControl.cs (CalcXPos): New helper method so we can determine
35997         the proper place to start drawing vertical tabs.
35998         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
35999         
36000 2004-11-09  Jackson Harper  <jackson@ximian.com>
36001
36002         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
36003         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
36004         and Bottom, left and right are illegal values for this and
36005         multiline is enabled when the alignment is set to left or right.
36006         (DrawTab): Each alignment block should draw the text itself now
36007         because Left requires special love. Also add rendering for Left
36008         aligned tabs.
36009         
36010 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
36011
36012         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
36013         does not destroy the windows, removes debugging messages
36014
36015 2004-11-09  jba  <jba-mono@optusnet.com.au>
36016
36017         * ThemeWin32Classic.cs
36018         (DrawButtonBase): Fix verticle text rect clipping in windows
36019         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36020         rendering and incorrect text rect clipping
36021         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36022         rendering and incorrect text rect clipping
36023         
36024 2004-11-08  Jackson Harper  <jackson@ximian.com>
36025
36026         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
36027         bottom when they are bottom aligned so the bottoms of the tabs get
36028         displayed.
36029         * TabControl.cs (DropRow): Move rows up instead of down when the
36030         tab control is bottom aligned.
36031
36032 2004-11-08 13:59  pbartok
36033
36034         * XplatUIX11.cs:
36035           - Added handling for various window styles
36036           - Added handling for popup windows
36037           - Added SetTopmost handling
36038
36039 2004-11-08 13:55  pbartok
36040
36041         * XplatUIWin32.cs:
36042           - Added argument to SetTopmost method
36043           - Fixed broken ClientToScreen function
36044
36045 2004-11-08 13:53  pbartok
36046
36047         * XplatUIStructs.cs:
36048           - Added missing WS_EX styles
36049
36050 2004-11-08 13:53  pbartok
36051
36052         * XplatUI.cs, XplatUIDriver.cs:
36053           - Added argument to SetTopmost
36054
36055 2004-11-08 13:52  pbartok
36056
36057         * X11Structs.cs:
36058           - Added XSetWindowAttributes structure
36059           - Improved XWindowAttributes structure
36060           - Added SetWindowValuemask enum
36061           - Added window creation arguments enum
36062           - Added gravity enum
36063           - Added Motif hints structure
36064           - Added various Motif flags and enums
36065           - Added PropertyMode enum for property functions
36066
36067 2004-11-08 13:50  pbartok
36068
36069         * Form.cs:
36070           - Fixed arguments for updated SetTopmost method
36071
36072 2004-11-08 13:49  pbartok
36073
36074         * ToolTip.cs:
36075           - Fixed arguments for updated SetTopmost function
36076           - Fixed usage of PointToClient
36077
36078 2004-11-08 13:44  pbartok
36079
36080         * MenuAPI.cs:
36081           - Added Clipping of children and siblings
36082
36083 2004-11-08 13:41  pbartok
36084
36085         * MainMenu.cs:
36086           - Removed SetMenuBarWindow call. We do this in Form.cs
36087
36088 2004-11-08 13:40  jackson
36089
36090         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
36091           scrolling jimmi in the correct location with bottom aligned tabs
36092
36093 2004-11-08 13:36  pbartok
36094
36095         * ContainerControl.cs:
36096           - Implemented BindingContext
36097           - Implemented ParentForm
36098
36099 2004-11-08 12:46  jackson
36100
36101         * TabControl.cs: Put bottom rendered tabs in the right location
36102
36103 2004-11-08 07:15  jordi
36104
36105         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
36106           removes dead code
36107
36108 2004-11-05 17:30  jackson
36109
36110         * TabControl.cs: When selected tabs are expanded make sure they
36111           don't go beyond the edges of the tab control
36112
36113 2004-11-05 14:57  jackson
36114
36115         * TabControl.cs: Reset show_slider so if the control is resized to
36116           a size where it is no longer needed it's not displayed anymore
36117
36118 2004-11-05 13:16  jackson
36119
36120         * TabControl.cs: Make tab pages non visible when added to the
36121           control
36122
36123 2004-11-05 12:42  jackson
36124
36125         * TabControl.cs: Implement SizeMode.FillToRight
36126
36127 2004-11-05 12:16  jackson
36128
36129         * Control.cs: Do not call CreateHandle if the handle is already
36130           created
36131
36132 2004-11-05 11:46  jackson
36133
36134         * TabControl.cs: Remove superflous call to CalcTabRows
36135
36136 2004-11-05 09:07  jackson
36137
36138         * XplatUIX11.cs: Update for Mono.Posix changes
36139
36140 2004-11-05 07:00  ravindra
36141
36142         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
36143           scrolling.
36144
36145 2004-11-04 22:47  jba
36146
36147         * ThemeWin32Classic.cs:
36148           - Fix Button rendering for FlatStyle = Flat or Popup
36149           - Fix RadioButton and CheckBox rendering when Appearance = Button
36150             (normal and flatstyle).
36151           - Correct outer rectangle color when drawing focus rectangle
36152           - Adjust button bounds to be 1 px smaller when focused
36153           - Make button not draw sunken 3d border when pushed (windows compat)
36154           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
36155           - Offset the text in RadioButton and Checkbox when being rendered as
36156           a button.
36157           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
36158           radiobuttons
36159           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
36160           - Fixed disabled text rendering for normally rendered radiobuttons
36161
36162 2004-11-04 10:26  jackson
36163
36164         * TabControl.cs: Recalculate tab rows when resizing
36165
36166 2004-11-04 07:47  jordi
36167
36168         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
36169           collection completion, drawing issues, missing features
36170
36171 2004-11-04 05:03  ravindra
36172
36173         * ScrollBar.cs:
36174                 - We need to recalculate the Thumb area when
36175                 LargeChange/maximum/minimum values are changed.
36176           - We set the 'pos' in UpdatePos() method to minimum, if it's less
36177                 than minimum. This is required to handle the case if large_change is
36178                 more than max, and use LargeChange property instead of large_change
36179                 variable.
36180           - We return max+1 when large_change is more than max, like MS does.
36181
36182 2004-11-04 04:29  ravindra
36183
36184         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
36185                 - Changed default value signatures (prefixed all with ListView).
36186                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
36187                 ListView.
36188           - Fixed calculations for ListViewItem and implemented Clone()
36189           method.
36190
36191 2004-11-04 04:26  ravindra
36192
36193         * Theme.cs, ThemeWin32Classic.cs:
36194                 - Changed default ListView values signatures (prefixed all with
36195                 ListView).
36196           - Fixed default size values for VScrollBar and HScrollBar.
36197                 - Fixed DrawListViewItem method.
36198
36199 2004-11-04 04:05  ravindra
36200
36201         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
36202
36203 2004-11-04 04:04  ravindra
36204
36205         * ImageList.cs: Implemented the missing overload for Draw method.
36206
36207 2004-11-03 19:29  jackson
36208
36209         * TabControl.cs: Handle dropping rows on selection properly
36210
36211 2004-11-03 11:59  jackson
36212
36213         * TabControl.cs: remove debug code
36214
36215 2004-11-03 11:52  jackson
36216
36217         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
36218           the scrolly widgerywoo
36219
36220 2004-11-02 13:52  jackson
36221
36222         * TabControl.cs: Resize the tab pages and tabs when the tab control
36223           is resized
36224
36225 2004-11-02 13:40  jackson
36226
36227         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
36228           selected tab to the bottom
36229
36230 2004-11-02 13:39  jackson
36231
36232         * TabPage.cs: Store the tab pages row
36233
36234 2004-11-02 12:33  jordi
36235
36236         * MenuItem.cs: fixes handle creation
36237
36238 2004-11-02 11:42  jackson
36239
36240         * TabControl.cs: signature fix
36241
36242 2004-11-02 08:56  jackson
36243
36244         * TabControl.cs: Calculate whether the tab is on an edge properly.
36245           Remove top secret debugging code
36246
36247 2004-11-01 19:57  jackson
36248
36249         * TabControl.cs: Add click handling, and proper sizing
36250
36251 2004-11-01 19:47  jackson
36252
36253         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
36254           tab controls
36255
36256 2004-11-01 19:39  jackson
36257
36258         * TabPage.cs: add internal property to store the bounds of a tab
36259           page
36260
36261 2004-10-30 04:23  ravindra
36262
36263         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
36264           values.
36265
36266 2004-10-30 04:21  ravindra
36267
36268         * ListView.cs, ListViewItem.cs: Added support for scrolling and
36269           fixed calculations.
36270
36271 2004-10-30 03:06  pbartok
36272
36273         * XplatUIX11.cs:
36274           - Removed extension of DllImported libs
36275
36276 2004-10-29 09:55  jordi
36277
36278         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
36279           navigation, itemcollection completion, menu fixes
36280
36281 2004-10-27 22:58  pbartok
36282
36283         * XplatUIX11.cs:
36284           - Now throws a nice error message when no X display could be opened
36285
36286 2004-10-26 13:51  jordi
36287
36288         * ListView.cs: removes warning
36289
36290 2004-10-26 03:55  ravindra
36291
36292         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
36293           ThemeWin32Classic.cs: Some formatting for my last checkins.
36294
36295 2004-10-26 03:36  ravindra
36296
36297         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
36298           control and default values.
36299
36300 2004-10-26 03:35  ravindra
36301
36302         * Theme.cs: Added some default values for ListView control.
36303
36304 2004-10-26 03:33  ravindra
36305
36306         * ToolBar.cs: ToolBar should use the user specified button size, if
36307           there is any. Added a size_specified flag for the same.
36308
36309 2004-10-26 03:33  ravindra
36310
36311         * ColumnHeader.cs: Added some internal members and calculations for
36312           ColumnHeader.
36313
36314 2004-10-26 03:32  ravindra
36315
36316         * ListViewItem.cs: Calculations for ListViewItem.
36317
36318 2004-10-26 03:31  ravindra
36319
36320         * ListView.cs: Added some internal members and calculations for
36321           ListView.
36322
36323 2004-10-22 13:31  jordi
36324
36325         * MenuAPI.cs: speedup menus drawing
36326
36327 2004-10-22 13:16  jackson
36328
36329         * XplatUIX11.cs: Make sure to update exposed regions when adding an
36330           expose event
36331
36332 2004-10-22 11:49  jackson
36333
36334         * Control.cs: oops
36335
36336 2004-10-22 11:41  jackson
36337
36338         * Control.cs: Check to see if the window should have its background
36339           repainted by X when drawing.
36340
36341 2004-10-22 11:31  jackson
36342
36343         * XplatUIX11.cs: When invalidating areas only use XClearArea if
36344           clear is true, this way we do not get flicker from X repainting the
36345           background
36346
36347 2004-10-22 11:28  jackson
36348
36349         * XEventQueue.cs: Queue properly
36350
36351 2004-10-21 09:38  jackson
36352
36353         * XEventQueue.cs: Fix access modifier
36354
36355 2004-10-21 09:36  jackson
36356
36357         * XEventQueue.cs: Don't loose messages
36358
36359 2004-10-21 09:22  jackson
36360
36361         * XEventQueue.cs: Don't loose messages
36362
36363 2004-10-20 04:15  jordi
36364
36365         * BootMode.cs: enum need it by SystemInfo
36366
36367 2004-10-19 21:58  pbartok
36368
36369         * XplatUIWin32.cs:
36370           - Small sanity check
36371
36372 2004-10-19 21:56  pbartok
36373
36374         * Form.cs:
36375           - Added private FormParentWindow class which acts as the container
36376             for our form and as the non-client area where menus are drawn
36377           - Added/Moved required tie-ins to Jordi's menus
36378           - Fixed/Implemented the FormStartPosition functionality
36379
36380 2004-10-19 21:52  pbartok
36381
36382         * Control.cs:
36383           - Removed unneeded locals
36384           - Added code to all size and location properties to understand and
36385             deal with the parent container of Form
36386
36387 2004-10-19 21:33  pbartok
36388
36389         * Application.cs:
36390           - Fixed to deal with new Form subclasses for menus
36391
36392 2004-10-19 17:48  jackson
36393
36394         * XEventQueue.cs: commit correct version of file
36395
36396 2004-10-19 16:50  jackson
36397
36398         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
36399
36400 2004-10-19 16:15  jordi
36401
36402         * MenuAPI.cs: MenuBarCalcSize returns the height
36403
36404 2004-10-19 08:31  pbartok
36405
36406         * Control.cs:
36407           - Added missing call to PreProcessMessage before calling OnXXXKey
36408           methods
36409
36410 2004-10-19 00:04  ravindra
36411
36412         * ToolTip.cs: Fixed constructor.
36413
36414 2004-10-18 09:31  jordi
36415
36416         * MenuAPI.cs: menuitems in menubars do not have shortcuts
36417
36418 2004-10-18 09:26  jordi
36419
36420         * MenuItem.cs: fixes MenuItem class signature
36421
36422 2004-10-18 08:56  jordi
36423
36424         * MenuAPI.cs: prevents windows from showing in the taskbar
36425
36426 2004-10-18 00:28  ravindra
36427
36428         * ToolTip.cs: Suppressed a warning message.
36429
36430 2004-10-18 00:27  ravindra
36431
36432         * Control.cs: Default value of visible property must be true.
36433
36434 2004-10-17 23:19  pbartok
36435
36436         * ToolTip.cs:
36437           - Complete implementation
36438
36439 2004-10-17 23:19  pbartok
36440
36441         * XplatUIX11.cs:
36442           - Added EnableWindow method
36443           - Added SetModal stub
36444           - Added generation of WM_ACTIVATE message (still needs testing)
36445           - Added SetTopMost stub
36446           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
36447
36448 2004-10-17 23:17  pbartok
36449
36450         * XplatUIWin32.cs:
36451           - Removed VirtualKeys to XplatUIStructs
36452           - Implemented SetTopMost method
36453           - Implemented EnableWindow method
36454           - Bugfix in ScreenToClient()
36455           - Bugfixes in ClientToScreen()
36456
36457 2004-10-17 22:51  pbartok
36458
36459         * XplatUIStructs.cs:
36460           - Added WS_EX styles to WindowStyles enumeration
36461
36462 2004-10-17 22:50  pbartok
36463
36464         * XplatUI.cs, XplatUIDriver.cs:
36465           - Added method for enabling/disabling windows
36466           - Added method for setting window modality
36467           - Added method for setting topmost window
36468
36469 2004-10-17 22:49  pbartok
36470
36471         * ThemeWin32Classic.cs:
36472           - Added ToolTip drawing code
36473
36474 2004-10-17 22:49  pbartok
36475
36476         * Theme.cs:
36477           - Added ToolTip abstracts
36478
36479 2004-10-17 22:47  pbartok
36480
36481         * Form.cs:
36482           - Fixed Form.ControlCollection to handle owner relations
36483           - Added Owner/OwnedForms handling
36484           - Implemented Z-Ordering for owned forms
36485           - Removed unneeded private overload of ShowDialog
36486           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
36487             so I hope)
36488           - Fixed Close(), had wrong default
36489           - Added firing of OnLoad event
36490           - Added some commented out debug code for Ownership handling
36491
36492 2004-10-17 22:16  pbartok
36493
36494         * Control.cs:
36495           - Fixed/implemented flat list of controls
36496
36497 2004-10-17 22:14  pbartok
36498
36499         * Application.cs:
36500           - Added code to simulate modal dialogs on Win32
36501
36502 2004-10-17 16:11  jordi
36503
36504         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
36505           mouse event
36506
36507 2004-10-17 13:39  jordi
36508
36509         * MenuAPI.cs: menu drawing fixes
36510
36511 2004-10-15 09:10  ravindra
36512
36513         * StructFormat.cs: General Enum.
36514
36515 2004-10-15 09:09  ravindra
36516
36517         * SizeGripStyle.cs: Enum for Form.
36518
36519 2004-10-15 09:08  ravindra
36520
36521         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
36522           in Theme for ListView.
36523
36524 2004-10-15 09:06  ravindra
36525
36526         * ColumnHeader.cs: Flushing some formatting changes.
36527
36528 2004-10-15 09:05  ravindra
36529
36530         * ListViewItem.cs: Implemented GetBounds method and fixed coding
36531           style.
36532
36533 2004-10-15 09:03  ravindra
36534
36535         * ListView.cs: Implemented Paint method and fixed coding style.
36536
36537 2004-10-15 07:34  jordi
36538
36539         * MenuAPI.cs: fix for X11
36540
36541 2004-10-15 07:32  ravindra
36542
36543         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
36544                 - Renamed Paint() method to Draw() for clarity. Also, moved
36545                 DrawImage() to OnPaint().
36546
36547 2004-10-15 07:25  ravindra
36548
36549         * CheckBox.cs, RadioButton.cs:
36550                 - Removed Redraw (), we get it from ButtonBase.
36551                 - Implemented Paint (), to do class specific painting.
36552
36553 2004-10-15 07:16  ravindra
36554
36555         * ButtonBase.cs:
36556                 - Redraw () is not virtual now.
36557                 - Added an internal virtual method Paint (), so that
36558                 derived classes can do their painting on their own.
36559                 - Modified OnPaint () to call Paint ().
36560
36561 2004-10-15 06:43  jordi
36562
36563         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
36564           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
36565
36566 2004-10-15 00:30  ravindra
36567
36568         * MessageBox.cs:
36569                 - MessageBox on windows does not have min/max buttons.
36570                 This change in CreateParams fixes this on Windows. We
36571                 still need to implement this windowstyle behavior in
36572                 our X11 driver.
36573
36574 2004-10-14 05:14  ravindra
36575
36576         * ToolBar.cs:
36577                 - Changed Redraw () to do a Refresh () always.
36578                 - Fixed the MouseMove event handling when mouse is pressed,
36579                 ie drag event handling.
36580                 - Replaced the usage of ToolBarButton.Pressed property to
36581                 ToolBarButton.pressed internal variable.
36582
36583 2004-10-14 05:10  ravindra
36584
36585         * ToolBarButton.cs:
36586                 - Added an internal member 'inside' to handle mouse move
36587                 with mouse pressed ie mouse drag event.
36588                 - Changed 'Pressed' property to return true only when
36589                 'inside' and 'pressed' are both true.
36590                 - Some coding style love.
36591
36592 2004-10-14 00:17  ravindra
36593
36594         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
36595           public method.
36596
36597 2004-10-14 00:15  ravindra
36598
36599         * ButtonBase.cs: Redraw () related improvements.
36600
36601 2004-10-14 00:14  ravindra
36602
36603         * MessageBox.cs: Moved InitFormSize () out of Paint method and
36604           removed unnecessary calls to Button.Show () method.
36605
36606 2004-10-13 17:50  pbartok
36607
36608         * XplatUIX11.cs:
36609           - Formatting fix
36610           - Removed destroying of window until we solve the problem of X
36611             destroying the window before us on shutdown
36612
36613 2004-10-13 16:32  pbartok
36614
36615         * ButtonBase.cs:
36616           - Now Redraws on MouseUp for FlatStyle Flat and Popup
36617
36618 2004-10-13 14:18  pbartok
36619
36620         * XplatUIX11.cs:
36621           - Added code to destroy the X window
36622
36623 2004-10-13 14:18  pbartok
36624
36625         * XplatUIWin32.cs:
36626           - Added code to destroy a window
36627
36628 2004-10-13 14:12  pbartok
36629
36630         * ButtonBase.cs:
36631           - Added the Redraw on Resize that got dropped in the last rev
36632
36633 2004-10-13 09:06  pbartok
36634
36635         * ThemeWin32Classic.cs:
36636           - Path from John BouAntoun:
36637             * Fix check rendering (centre correctly for normal style, offset
36638               correctly for FlatStyle).
36639             * Fix border color usage (use backcolor) for FlatStyle.Popup
36640             * Use checkbox.Capture instead of checkbox.is_pressed when
36641               rendering flatstyle states.
36642
36643 2004-10-12 21:48  pbartok
36644
36645         * ThemeWin32Classic.cs:
36646           - Removed all occurences of SystemColors and replaced them with the
36647             matching theme color
36648
36649 2004-10-12 21:41  pbartok
36650
36651         * ThemeWin32Classic.cs:
36652           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
36653             him using the function for flatstyle drawing
36654           - Changed functions to use the new version of CPDrawBorder3D
36655
36656 2004-10-12 21:15  pbartok
36657
36658         * ControlPaint.cs:
36659           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
36660             match MS documentation. They need to return defined colors if the
36661             passed color matches the configured control color. Thanks to John
36662             BouAntoun for pointing this out.
36663
36664 2004-10-12 20:57  pbartok
36665
36666         * Control.cs:
36667           - Fix from John BouAntoun: Raise ForeColorChanged event when text
36668             color is changed
36669
36670 2004-10-12 20:46  pbartok
36671
36672         * CheckBox.cs:
36673           - Fix from John BouAntoun: Now properly sets the Appearance property
36674
36675 2004-10-12 20:45  pbartok
36676
36677         * ThemeWin32Classic.cs:
36678           - Fixes from John BouAntoun: now handles forecolors and backcolors
36679             for flatstyle rendered controls much better; It also fixes normal
36680             checkbox rendering when pushed or disabled.
36681
36682 2004-10-08 02:50  jordi
36683
36684         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
36685           work
36686
36687 2004-10-07 08:56  jordi
36688
36689         * ThemeWin32Classic.cs: Removes deletion of cached brushes
36690
36691 2004-10-06 03:59  jordi
36692
36693         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
36694           XplatUIWin32.cs: removes warnings from compilation
36695
36696 2004-10-05 12:23  jackson
36697
36698         * RadioButton.cs: Fix ctor
36699
36700 2004-10-05 11:10  pbartok
36701
36702         * MessageBox.cs:
36703           - Partial implementation by Benjamin Dasnois
36704
36705 2004-10-05 10:15  jackson
36706
36707         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
36708           by John BouAntoun
36709
36710 2004-10-05 03:07  ravindra
36711
36712         * ToolBar.cs:
36713                 - Removed a private method, Draw ().
36714                 - Fixed the ButtonDropDown event handling.
36715                 - Fixed MouseMove event handling.
36716
36717 2004-10-05 03:04  ravindra
36718
36719         * ThemeWin32Classic.cs:
36720                 - Added DrawListView method and ListViewDefaultSize property.
36721                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
36722                 - Changed DOS style CRLF to Unix format (dos2unix).
36723
36724 2004-10-05 03:03  ravindra
36725
36726         * Theme.cs:
36727                 - Added DrawListView method and ListViewDefaultSize property.
36728
36729 2004-10-05 02:42  ravindra
36730
36731         * ToolBarButton.cs: Added an internal member dd_pressed to handle
36732           clicks on DropDown arrow.
36733
36734 2004-10-04 22:56  jackson
36735
36736         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
36737           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
36738           Control handle the buffers, derived classes should not have to
36739           CreateBuffers themselves.
36740
36741 2004-10-04 21:20  jackson
36742
36743         * StatusBar.cs: The control handles resizing the buffers now.
36744
36745 2004-10-04 21:18  jackson
36746
36747         * Control.cs: When resizing the buffers should be invalidated. This
36748           should be handled in Control not in derived classes.
36749
36750 2004-10-04 14:45  jackson
36751
36752         * TabPage.cs: oops
36753
36754 2004-10-04 02:14  pbartok
36755
36756         * LeftRightAlignment.cs:
36757           - Initial check-in
36758
36759 2004-10-04 01:09  jordi
36760
36761         * ThemeWin32Classic.cs: fixes right button position causing right
36762           button not showing on horizontal scrollbars
36763
36764 2004-10-02 13:12  pbartok
36765
36766         * XplatUIX11.cs:
36767           - Simplified the Invalidate method by using an X call instead of
36768             generating the expose ourselves
36769           - Added an expose when the window background is changed
36770           - Implemented ClientToScreen method
36771
36772 2004-10-02 13:08  pbartok
36773
36774         * XplatUIWin32.cs:
36775           - Added Win32EnableWindow method (test for implementing modal
36776           dialogs)
36777           - Added ClientToScreen method and imports
36778
36779 2004-10-02 13:07  pbartok
36780
36781         * XplatUI.cs, XplatUIDriver.cs:
36782           - Added ClientToScreen coordinate translation method
36783
36784 2004-10-02 13:06  pbartok
36785
36786         * KeyPressEventArgs.cs:
36787           - Fixed access level for constructor
36788
36789 2004-10-02 13:06  pbartok
36790
36791         * NativeWindow.cs:
36792           - Changed access level for the window_collection hash table
36793
36794 2004-10-02 13:05  pbartok
36795
36796         * Form.cs:
36797           - Added KeyPreview property
36798           - Added Menu property (still incomplete, pending Jordi's menu work)
36799           - Implemented ProcessCmdKey
36800           - Implemented ProcessDialogKey
36801           - Implemented ProcessKeyPreview
36802
36803 2004-10-02 13:02  pbartok
36804
36805         * Control.cs:
36806           - Added private method to get the Control object from the window
36807           handle
36808           - Implemented ContextMenu property
36809           - Implemented PointToScreen
36810           - Implemented PreProcessMessage
36811           - Implemented IsInputChar
36812           - Implemented IsInputKey
36813           - Implemented ProcessCmdKey
36814           - Completed ProcessKeyEventArgs
36815           - Fixed message loop to call the proper chain of functions on key
36816           events
36817           - Implemented ProcessDialogChar
36818           - Implemented ProcessDialogKey
36819           - Implemented ProcessKeyMessage
36820           - Implemented ProcessKeyPreview
36821           - Added RaiseDragEvent stub (MS internal method)
36822           - Added RaiseKeyEvent stub (MS internal method)
36823           - Added RaiseMouseEvent stub (MS Internal method)
36824           - Added RaisePaintEvent stub (MS Internal method)
36825           - Added ResetMouseEventArgs stub (MS Internal method)
36826           - Implemented RtlTranslateAlignment
36827           - Implemented RtlTranslateContent
36828           - Implemented RtlTranslateHorizontal
36829           - Implemented RtlTranslateLeftRight
36830           - Added generation of KeyPress event
36831
36832 2004-10-02 05:57  ravindra
36833
36834         * ListViewItem.cs: Added attributes.
36835
36836 2004-10-02 05:32  ravindra
36837
36838         * ListView.cs: Added attributes.
36839
36840 2004-10-01 11:53  jackson
36841
36842         * Form.cs: Implement the Close method so work on MessageBox can
36843           continue.
36844
36845 2004-09-30 14:06  pbartok
36846
36847         * XplatUIX11.cs:
36848           - Bug fixes
36849
36850 2004-09-30 11:34  jackson
36851
36852         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
36853
36854 2004-09-30 07:26  ravindra
36855
36856         * ListViewItemConverter.cs: Converter for ListViewItem.
36857
36858 2004-09-30 07:26  ravindra
36859
36860         * SortOrder.cs: Enum for ListView control.
36861
36862 2004-09-30 07:25  ravindra
36863
36864         * ColumnHeader.cs: Supporting class for ListView control.
36865
36866 2004-09-30 07:24  ravindra
36867
36868         * ListView.cs, ListViewItem.cs: Initial implementation.
36869
36870 2004-09-30 07:20  ravindra
36871
36872         * ItemActivation.cs: Enum for ListView Control.
36873
36874 2004-09-29 20:29  pbartok
36875
36876         * XplatUIX11.cs:
36877           - Added lookup of pixel value for background color; tries to get a
36878             color 'close' to the requested color, it avoids having to create a
36879             colormap.  Depending on the display this could mean the used color
36880             is slightly off the desired color. Might have to change it to a more
36881             resource intensive colormap approach, but it will work as a
36882           workaround to avoid red screens.
36883
36884 2004-09-29 14:27  jackson
36885
36886         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
36887
36888 2004-09-28 12:44  pbartok
36889
36890         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
36891           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
36892           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
36893           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
36894           TrackBar.cs, VScrollBar.cs:
36895           - Streamlined Theme interfaces:
36896             * Each DrawXXX method for a control now is passed the object for
36897               the control to be drawn in order to allow accessing any state the
36898               theme might require
36899
36900             * ControlPaint methods for the theme now have a CP prefix to avoid
36901               name clashes with the Draw methods for controls
36902
36903             * Every control now retrieves it's DefaultSize from the current
36904             theme
36905
36906 2004-09-28 12:17  jackson
36907
36908         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
36909           drawing
36910
36911 2004-09-24 14:57  jackson
36912
36913         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
36914           Gives us a nice little performance boost.
36915
36916 2004-09-24 12:02  jackson
36917
36918         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
36919           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
36920           Control and supporting classes. Initial checkin
36921
36922 2004-09-23 13:08  jackson
36923
36924         * Form.cs: Temp build fixage
36925
36926 2004-09-23 01:39  ravindra
36927
36928         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
36929           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
36930           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
36931           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
36932           EventHandlers needed by ListView Control.
36933
36934 2004-09-22 14:12  pbartok
36935
36936         * ScrollableControl.cs:
36937           - Implemented DockPadding property
36938           - Implemented AutoScroll property
36939           - Implemented AutoScrollMargin property
36940           - Implemented AutoScrollMinSize property
36941           - Implemented AutoScrollPosition property
36942           - Implemented DisplayRectangle property (still incomplete)
36943           - Implemented CreateParams property
36944           - Implemented HScroll property
36945           - Implemented VScroll property
36946           - Implemented OnVisibleChanged property
36947
36948 2004-09-22 14:09  pbartok
36949
36950         * Form.cs:
36951           - Added Form.ControllCollection class
36952           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
36953             RemoveOwnedForm (still incomplete, missing on-top and common
36954             minimize/maximize behaviour)
36955           - Added StartPosition property (still incomplete, does not use when
36956             creating the form)
36957           - Added ShowDialog() methods (still incomplete, missing forcing the
36958             dialog modal)
36959
36960 2004-09-22 14:05  pbartok
36961
36962         * Application.cs:
36963           - Added message loop for modal dialogs
36964
36965 2004-09-22 14:02  pbartok
36966
36967         * GroupBox.cs:
36968           - Fixed wrong types for events
36969
36970 2004-09-22 14:00  pbartok
36971
36972         * Shortcut.cs, FormWindowState.cs:
36973           - Fixed wrong values
36974
36975 2004-09-22 12:01  jackson
36976
36977         * Control.cs: Text is never null
36978
36979 2004-09-20 22:14  pbartok
36980
36981         * XplatUIWin32.cs:
36982           - Fixed accessibility level for Idle handler
36983
36984 2004-09-20 18:54  jackson
36985
36986         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36987           XplatUIX11.cs: New message loop that uses poll so we don't get a
36988           busy loop
36989
36990 2004-09-17 10:43  pbartok
36991
36992         * ScrollBar.cs:
36993           - Fixed behaviour of arrow buttons. Now properly behaves like
36994             Buttons (and like Microsoft's scrollbar arrow buttons)
36995
36996 2004-09-17 10:14  pbartok
36997
36998         * ScrollBar.cs:
36999           - Added missing release of keyboard/mouse capture
37000
37001 2004-09-17 06:18  jordi
37002
37003         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
37004           Theme.cs: Very early menu support
37005
37006 2004-09-16 17:45  pbartok
37007
37008         * XplatUIWin32.cs:
37009           - Fixed sending a window to the front
37010           - Added overload for SetWindowPos to avoid casting
37011
37012 2004-09-16 17:44  pbartok
37013
37014         * Control.cs:
37015           - Added SendToBack and BringToFront methods
37016
37017 2004-09-16 07:00  ravindra
37018
37019         * Copyright: Added Novell URL.
37020
37021 2004-09-16 07:00  ravindra
37022
37023         * ToolBar.cs: Invalidate should be done before redrawing.
37024
37025 2004-09-15 21:19  ravindra
37026
37027         * ColumnHeaderStyle.cs: Enum for ListView Control.
37028
37029 2004-09-15 21:18  ravindra
37030
37031         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
37032           ListView Control.
37033
37034 2004-09-13 18:26  jackson
37035
37036         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
37037           properly
37038
37039 2004-09-13 18:13  jackson
37040
37041         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
37042           a second thread and post messages into the main threads message
37043           queue. This makes timing much more consistent. Both win2K and XP
37044           have a minimum timer value of 15 milliseconds, so we now do this
37045           too.
37046
37047 2004-09-13 15:18  pbartok
37048
37049         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37050           XplatUIX11.cs:
37051           - Added Z-Ordering methods
37052
37053 2004-09-13 10:56  pbartok
37054
37055         * Form.cs:
37056           - Fixed #region names
37057           - Moved properties and methods into their proper #regions
37058
37059 2004-09-13 10:51  pbartok
37060
37061         * Form.cs:
37062           - Added Accept and CancelButton properties
37063           - Added ProcessDialogKey() method
37064
37065 2004-09-13 08:18  pbartok
37066
37067         * IWindowTarget.cs:
37068           - Initial check-in
37069
37070 2004-09-10 21:50  pbartok
37071
37072         * Control.cs:
37073           - Added DoDragDrop() [incomplete]
37074           - Properly implemented 'Visible' handling
37075           - Added SetVisibleCore()
37076           - Implemented FindChildAtPoint()
37077           - Implemented GetContainerControl()
37078           - Implemented Hide()
37079
37080 2004-09-10 19:28  pbartok
37081
37082         * Control.cs:
37083           - Moved methods into their appropriate #regions
37084           - Reordered methods within regions alphabetically
37085
37086 2004-09-10 18:57  pbartok
37087
37088         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37089           - Added method to retrieve text from window
37090
37091 2004-09-10 18:56  pbartok
37092
37093         * Control.cs:
37094           - Moved some internal functions into the internal region
37095           - Implemented FontHeight
37096           - Implemented RenderRightToLeft
37097           - Implemented ResizeRedraw
37098           - Implemented ShowFocusCues
37099           - Implemented ShowKeyboardCues
37100           - Implemented FromChildHandle
37101           - Implemented FromHandle
37102           - Implemented IsMnemonic
37103           - Implemented ReflectMessage
37104           - All public and protected Static Methods are now complete
37105
37106 2004-09-10 16:54  pbartok
37107
37108         * Control.cs:
37109           - Implemented remaining missing public instance properties
37110           - Alphabetized some out of order properties
37111
37112 2004-09-10 05:51  ravindra
37113
37114         * PictureBox.cs: Added a check for null image.
37115
37116 2004-09-10 00:59  jordi
37117
37118         * GroupBox.cs: remove cvs tag
37119
37120 2004-09-09 05:25  ravindra
37121
37122         * ToolBar.cs: Make redraw accessible from ToolBarButton.
37123
37124 2004-09-09 05:23  ravindra
37125
37126         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
37127           parent redraw.
37128
37129 2004-09-09 02:28  pbartok
37130
37131         * ThemeWin32Classic.cs:
37132           - Improve disabled string look
37133
37134 2004-09-09 01:15  jordi
37135
37136         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
37137           args and handler
37138
37139 2004-09-08 23:56  ravindra
37140
37141         * ItemBoundsPortion.cs: It's enum, not a class!
37142
37143 2004-09-08 23:47  ravindra
37144
37145         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
37146           Enums for Form.
37147
37148 2004-09-08 21:13  ravindra
37149
37150         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
37151           ListView control.
37152
37153 2004-09-08 21:03  ravindra
37154
37155         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
37156           avoid crash.
37157
37158 2004-09-08 21:01  ravindra
37159
37160         * ScrollableControl.cs: Removed unreachable code.
37161
37162 2004-09-08 06:45  jordi
37163
37164         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
37165
37166 2004-09-08 01:00  jackson
37167
37168         * XplatUIX11.cs: Only run the timers when updating the message
37169           queue. This effectively gives X messages a higher priority then
37170           timer messages. Timers still need love though
37171
37172 2004-09-07 14:01  jackson
37173
37174         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
37175           this for us and the handle is no longer valid.
37176
37177 2004-09-07 13:59  jackson
37178
37179         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
37180           loop that manages to not crash. TODO: Add poll and cleanup timers
37181
37182 2004-09-07 11:12  jordi
37183
37184         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
37185
37186 2004-09-07 03:40  jordi
37187
37188         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
37189           fixes, methods, multiple links
37190
37191 2004-09-06 06:55  jordi
37192
37193         * Control.cs: Caches ClientRectangle rectangle value
37194
37195 2004-09-05 02:03  jordi
37196
37197         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
37198           certain situations
37199
37200 2004-09-04 11:10  jordi
37201
37202         * Label.cs: Refresh when font changed
37203
37204 2004-09-02 16:24  pbartok
37205
37206         * Control.cs:
37207           - Added sanity check to creation of double buffer bitmap
37208
37209 2004-09-02 16:24  pbartok
37210
37211         * ButtonBase.cs:
37212           - Fixed selection of text color
37213           - Fixed handling of resize event; now properly recreates double
37214             buffering bitmap
37215           - Added missing assignment of TextAlignment
37216           - Added proper default for TextAlignment
37217
37218 2004-09-02 14:26  pbartok
37219
37220         * RadioButton.cs:
37221           - Added missing RadioButton.RadioButtonAccessibleObject class
37222
37223 2004-09-02 14:26  pbartok
37224
37225         * Control.cs:
37226           - Added missing Control.ControlAccessibleObject class
37227           - Started to implement Select()ion mechanisms, still very incomplete
37228
37229 2004-09-02 14:25  pbartok
37230
37231         * AccessibleObject.cs:
37232           - Added missing methods
37233
37234 2004-09-02 14:23  pbartok
37235
37236         * AccessibleNavigation.cs, AccessibleSelection.cs:
37237           - Initial check-in
37238
37239 2004-09-02 10:32  jordi
37240
37241         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
37242           pool for pens, brushes, and hatchbruses
37243
37244 2004-09-01 15:30  jackson
37245
37246         * StatusBar.cs: Fix typo
37247
37248 2004-09-01 14:44  pbartok
37249
37250         * RadioButton.cs:
37251           - Fixed state
37252
37253 2004-09-01 14:39  pbartok
37254
37255         * Button.cs, RadioButton.cs:
37256           - Functional initial check-in
37257
37258 2004-09-01 14:01  pbartok
37259
37260         * CheckBox.cs:
37261           - Added missing default
37262           - Added missing region mark
37263
37264 2004-09-01 09:10  jordi
37265
37266         * Label.cs: fixes method signatures, new methods, events, fixes
37267           autosize
37268
37269 2004-09-01 07:19  jordi
37270
37271         * Control.cs: Init string variables with an empty object
37272
37273 2004-09-01 04:20  jordi
37274
37275         * Control.cs: fires OnFontChanged event
37276
37277 2004-08-31 20:07  pbartok
37278
37279         * ButtonBase.cs:
37280           - Enabled display of strings
37281
37282 2004-08-31 20:05  pbartok
37283
37284         * Form.cs:
37285           - Added (partial) implementation of DialogResult; rest needs to be
37286             implemented when the modal loop code is done
37287
37288 2004-08-31 19:55  pbartok
37289
37290         * CheckBox.cs:
37291           - Fixed to match the removal of the needs_redraw concept
37292
37293 2004-08-31 19:55  pbartok
37294
37295         * ButtonBase.cs:
37296           - Removed the rather odd split between 'needs redraw' and redrawing
37297           - Now handles the events that require regeneration (ambient
37298             properties and size)
37299
37300 2004-08-31 19:41  pbartok
37301
37302         * Control.cs:
37303           - Added firing of BackColorChanged event
37304           - Added TopLevelControl property
37305           - Fixed handling of WM_ERASEBKGRND message
37306
37307 2004-08-31 12:49  pbartok
37308
37309         * ButtonBase.cs:
37310           - Removed debug
37311           - Minor fixes
37312
37313 2004-08-31 12:48  pbartok
37314
37315         * CheckBox.cs:
37316           - Finished (famous last words)
37317
37318 2004-08-31 04:35  jordi
37319
37320         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
37321           scrolling bugs, adds new methods
37322
37323 2004-08-30 14:42  pbartok
37324
37325         * CheckBox.cs:
37326           - Implemented CheckBox drawing code
37327
37328 2004-08-30 14:42  pbartok
37329
37330         * ButtonBase.cs:
37331           - Made Redraw() and CheckRedraw() virtual
37332           - Improved mouse up/down/move logic to properly track buttons
37333
37334 2004-08-30 09:44  pbartok
37335
37336         * CheckBox.cs:
37337           - Updated to fix broken build. Not complete yet.
37338
37339 2004-08-30 09:28  pbartok
37340
37341         * CheckState.cs:
37342           - Initial checkin
37343
37344 2004-08-30 09:17  pbartok
37345
37346         * Appearance.cs:
37347           - Initial check-in
37348
37349 2004-08-27 16:12  ravindra
37350
37351         * ToolBarButton.cs: Added TypeConverter attribute.
37352
37353 2004-08-27 16:07  ravindra
37354
37355         * ImageIndexConverter.cs: Implemented.
37356
37357 2004-08-27 14:17  pbartok
37358
37359         * Control.cs:
37360           - Removed unneeded stack vars
37361           - First attempt to fix sizing issues when layout is suspended
37362
37363 2004-08-25 15:35  jordi
37364
37365         * ScrollBar.cs: more fixes to scrollbar
37366
37367 2004-08-25 14:04  ravindra
37368
37369         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
37370           Added the missing divider code and grip for ToolBar Control.
37371
37372 2004-08-25 13:20  pbartok
37373
37374         * Control.cs:
37375           - Control now properly passes the ambient background color to child
37376             controls
37377
37378 2004-08-25 13:20  jordi
37379
37380         * ScrollBar.cs: small bug fix regarding bar position
37381
37382 2004-08-25 12:33  pbartok
37383
37384         * Timer.cs:
37385           - Now only calls SetTimer or KillTimer if the enabled state has
37386           changed
37387
37388 2004-08-25 12:33  pbartok
37389
37390         * XplatUIWin32.cs:
37391           - Fixed timer handling, now seems to work
37392           - Improved error message for window creation
37393
37394 2004-08-25 12:32  pbartok
37395
37396         * Control.cs:
37397           - Fixed generation of MouseUp message
37398
37399 2004-08-25 12:29  jordi
37400
37401         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
37402           and fixes for progressbar
37403
37404 2004-08-24 18:43  ravindra
37405
37406         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
37407           in ToolBar control.
37408
37409 2004-08-24 17:15  pbartok
37410
37411         * Panel.cs:
37412           - Added #region
37413           - Added missing events
37414           - Alphabetized
37415
37416 2004-08-24 17:14  pbartok
37417
37418         * StatusBar.cs, PictureBox.cs:
37419           - Now uses Control's CreateParams
37420
37421 2004-08-24 16:36  pbartok
37422
37423         * XplatUIX11.cs:
37424           - Fixed background color handling
37425           - Fixed sending of enter/leave events on a grab
37426
37427 2004-08-24 16:35  pbartok
37428
37429         * X11Structs.cs:
37430           - Refined definitions for CrossingEvent
37431
37432 2004-08-24 12:37  jordi
37433
37434         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
37435           formmating, methods signature, and adds missing events
37436
37437 2004-08-24 12:24  jordi
37438
37439         * Control.cs: fire OnEnabledChanged event
37440
37441 2004-08-24 11:17  pbartok
37442
37443         * XplatUIWin32.cs:
37444           - Implemented SetTimer() and KillTimer()
37445
37446 2004-08-24 11:16  pbartok
37447
37448         * XplatUIX11.cs:
37449           - Now uses Remove instead of Add to kill the timer
37450
37451 2004-08-24 10:16  jackson
37452
37453         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
37454           picture boxes in the theme now. Draw picture box borders and obey
37455           sizing modes
37456
37457 2004-08-24 05:49  jackson
37458
37459         * Timer.cs: Remove top secret debugging code
37460
37461 2004-08-24 05:34  jackson
37462
37463         * PictureBox.cs: Temp hack to make picture boxes draw their full
37464           image
37465
37466 2004-08-24 05:29  jackson
37467
37468         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37469           XplatUIX11.cs: Move timers to the driver level. On X they are
37470           queued by the driver and checked on idle.
37471
37472 2004-08-24 01:07  jackson
37473
37474         * XplatUIX11.cs: Use a queue for async messages instead of passing
37475           them as ClientMessages since that was totally broken. Also simply
37476           check for events and return an idle message if none are found. This
37477           gives us an idle handler, and prevents deadlocking when no messages
37478           are in the queue.
37479
37480 2004-08-23 18:19  ravindra
37481
37482         * XplatUIWin32.cs: Removed the unwanted destructor.
37483
37484 2004-08-23 17:27  pbartok
37485
37486         * ButtonBase.cs:
37487           - Finishing touches. Works now, just needs some optimizations.
37488
37489 2004-08-23 16:53  jordi
37490
37491         * ScrollBar.cs: small fix
37492
37493 2004-08-23 16:45  pbartok
37494
37495         * Application.cs:
37496           - Removed debug output
37497           - Simplifications
37498
37499 2004-08-23 16:43  jordi
37500
37501         * ScrollBar.cs: [no log message]
37502
37503 2004-08-23 16:10  pbartok
37504
37505         * Form.cs:
37506           - Fixed handling of WM_CLOSE message
37507           - Removed debug output
37508
37509 2004-08-23 16:09  pbartok
37510
37511         * Application.cs:
37512           - Added handling of Idle event
37513           - Added handling of form closing
37514           - Fixed reporting of MessageLoop property
37515           - Removed some unneeded code, should provide a bit of a speedup
37516
37517 2004-08-23 15:22  pbartok
37518
37519         * Control.cs:
37520           - Added InitLayout() method
37521           - Added code to properly perform layout when Anchor or Dock property
37522             is changed
37523           - Changed 'interpretation' of ResumeLayout. MS seems to have a
37524             LAMESPEC, tried to do it in a way that makes sense
37525
37526 2004-08-23 14:10  jordi
37527
37528         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
37529           properties and methods
37530
37531 2004-08-23 13:55  pbartok
37532
37533         * Control.cs:
37534           - Properly fixed Jordi's last fix
37535           - Now uses Cursor's Position property instead of calling XplatUI
37536           directly
37537
37538 2004-08-23 13:44  jordi
37539
37540         * PaintEventHandler.cs: Adding missing attribute
37541
37542 2004-08-23 13:39  pbartok
37543
37544         * Cursor.cs:
37545           - Implemented Position property
37546
37547 2004-08-23 13:39  pbartok
37548
37549         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37550           - Added method to move mouse cursor
37551
37552 2004-08-23 13:39  pbartok
37553
37554         * XplatUIX11.cs:
37555           - Fixed setting of background color
37556           - Added method to move mouse cursor
37557
37558 2004-08-23 13:16  jordi
37559
37560         * Control.cs: avoids null exception
37561
37562 2004-08-22 17:46  jackson
37563
37564         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
37565           PictureBox
37566
37567 2004-08-22 17:40  jackson
37568
37569         * XplatUIX11.cs: Add some missing locks
37570
37571 2004-08-22 15:10  pbartok
37572
37573         * Control.cs, Form.cs:
37574           - Removed OverlappedWindow style from Control, instead it's default
37575             now is child
37576           - Made form windows OverlappedWindow by default
37577
37578 2004-08-22 13:34  jackson
37579
37580         * ScrollBar.cs: Update the position through the Value property so
37581           the OnValueChanged event is raised.
37582
37583 2004-08-22 12:04  pbartok
37584
37585         * SWF.csproj:
37586           - Added Cursor.cs and UserControl.cs
37587
37588 2004-08-22 12:03  pbartok
37589
37590         * Cursor.cs:
37591           - Started implementation, not usable yet
37592
37593 2004-08-22 12:00  pbartok
37594
37595         * UserControl.cs:
37596           - Implemented UserControl (complete)
37597
37598 2004-08-21 19:20  ravindra
37599
37600         * ToolBar.cs: Correcting the formatting mess of VS.NET.
37601
37602 2004-08-21 18:49  ravindra
37603
37604         * ToolBar.cs: Probably this completes the missing attributes in
37605           toolbar control.
37606
37607 2004-08-21 18:03  ravindra
37608
37609         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
37610           Fixed toolbar control signatures.
37611
37612 2004-08-21 16:32  pbartok
37613
37614         * LinkLabel.cs:
37615           - Signature Fixes
37616
37617 2004-08-21 16:30  pbartok
37618
37619         * Label.cs:
37620           - Signature fixes
37621
37622 2004-08-21 16:19  pbartok
37623
37624         * Control.cs, Label.cs:
37625           - Signature fixes
37626
37627 2004-08-21 15:57  pbartok
37628
37629         * ButtonBase.cs:
37630           - Added loads of debug output for development
37631           - Fixed typo in method name
37632
37633 2004-08-21 15:52  pbartok
37634
37635         * ToolBarButtonClickEventArgs.cs:
37636           - Added missing base class
37637
37638 2004-08-21 14:53  pbartok
37639
37640         * Control.cs:
37641           - Updated to match new GrabWindow signature
37642
37643 2004-08-21 14:51  pbartok
37644
37645         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37646           - Added method to get default display size
37647
37648 2004-08-21 14:23  pbartok
37649
37650         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37651           - Added method to query current grab state
37652           - Added argument to allow confining a grab to a window
37653
37654 2004-08-21 14:22  pbartok
37655
37656         * Keys.cs:
37657           - Added [Flags] attribute so that modifiers can be used in bitwise
37658           ops
37659
37660 2004-08-21 14:21  pbartok
37661
37662         * TrackBar.cs, ScrollBar.cs:
37663           - Replaced direct XplatUI calls with their Control counterpart
37664
37665 2004-08-21 13:32  pbartok
37666
37667         * Control.cs:
37668           - Implemented Created property
37669
37670 2004-08-21 13:28  pbartok
37671
37672         * Control.cs:
37673           - Implemented ContainsFocus
37674
37675 2004-08-21 13:26  pbartok
37676
37677         * Control.cs:
37678           - Implemented CausesValidation
37679
37680 2004-08-21 13:21  pbartok
37681
37682         * Control.cs:
37683           - Implemented CanFocus
37684           - Implemented CanSelect
37685           - Implemented Capture
37686
37687 2004-08-21 12:35  pbartok
37688
37689         * XplatUIWin32.cs:
37690           - Fixed bug with Async message handling
37691           - Implemented getting the ModifierKeys
37692
37693 2004-08-21 12:32  jackson
37694
37695         * AsyncMethodResult.cs: Make sure we have the mutex before we
37696           release it. Fixes BeginInvoke on windows
37697
37698 2004-08-21 11:31  pbartok
37699
37700         * XplatUIWin32.cs, XplatUIX11.cs:
37701           - Drivers now return proper mouse state
37702
37703 2004-08-21 10:54  jackson
37704
37705         * Control.cs: Implement EndInvoke
37706
37707 2004-08-21 10:48  jackson
37708
37709         * Timer.cs: Remove unneeded finalizer
37710
37711 2004-08-20 19:52  ravindra
37712
37713         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
37714           in mouse event handling in the ToolBar control.
37715
37716 2004-08-20 19:50  ravindra
37717
37718         * ImageList.cs: Changed draw method to use the arguments passed in
37719           to draw the image.
37720
37721 2004-08-20 18:58  pbartok
37722
37723         * XplatUIStructs.cs:
37724           - Added private message for async communication
37725
37726 2004-08-20 17:38  ravindra
37727
37728         * Control.cs: Made RightToLeft property virtual and removed a
37729           Console.WriteLine.
37730
37731 2004-08-20 14:39  jordi
37732
37733         * ThemeGtk.cs: use style_attach
37734
37735 2004-08-20 14:39  pbartok
37736
37737         * XplatUIWin32.cs:
37738           - Added jackson's Async code from X11 to Win32
37739
37740 2004-08-20 14:09  pbartok
37741
37742         * SWF.csproj:
37743           - Added all new files
37744
37745 2004-08-20 14:09  pbartok
37746
37747         * Control.cs:
37748           - Added call to set window background color
37749
37750 2004-08-20 14:03  pbartok
37751
37752         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37753           - Added method for setting the window background
37754
37755 2004-08-20 14:02  pbartok
37756
37757         * XplatUIWin32.cs:
37758           - Added method for setting the background color
37759           - Added handling for erasing the window background
37760
37761 2004-08-20 13:45  jordi
37762
37763         * TrackBar.cs: fixes timer, new properties and methods
37764
37765 2004-08-20 13:34  jackson
37766
37767         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
37768           correct thread
37769
37770 2004-08-20 13:22  jackson
37771
37772         * Timer.cs: Timer Tick events are now handed through Controls Async
37773           mechanism so the callbacks are executed in the same thread as X
37774
37775 2004-08-20 13:19  jackson
37776
37777         * XplatUIDriver.cs: Expose functionality to send async messages
37778           through the driver
37779
37780 2004-08-20 13:18  jackson
37781
37782         * Control.cs: Implement Begininvoke
37783
37784 2004-08-20 13:14  jackson
37785
37786         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
37787           messages through the driver
37788
37789 2004-08-20 13:12  jackson
37790
37791         * XplatUIX11.cs: Lock before all X operations. Also added Async
37792           method functionality through XSendEvent
37793
37794 2004-08-20 13:11  jackson
37795
37796         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
37797           This will screw up on 64 bit systems)
37798
37799 2004-08-20 13:10  jackson
37800
37801         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
37802           Async messages through X/Win32
37803
37804 2004-08-19 19:39  pbartok
37805
37806         * XplatUIX11.cs:
37807           - Updated code to match new HandleData.DeviceContext type
37808
37809 2004-08-19 19:38  pbartok
37810
37811         * HandleData.cs:
37812           - Made DeviceContext a generic object to allow usage from various
37813           drivers
37814           - Added support for queueing Windows messages
37815
37816 2004-08-19 19:37  pbartok
37817
37818         * XplatUIWin32.cs:
37819           - Added generation of MouseEnter, MouseLeave and MouseHover events
37820           - Added cleanup on EndPaint
37821
37822 2004-08-19 19:17  pbartok
37823
37824         * Control.cs:
37825           - Added handling of WM_MOUSEHOVER
37826           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
37827           code
37828
37829 2004-08-19 18:55  jordi
37830
37831         * ThemeGtk.cs: fixes button order
37832
37833 2004-08-19 18:12  jordi
37834
37835         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
37836
37837 2004-08-19 17:09  pbartok
37838
37839         * Control.cs:
37840           - Added Right property
37841           - Added RightToLeft property
37842
37843 2004-08-19 16:27  jordi
37844
37845         * ThemeGtk.cs: experimental GTK theme support
37846
37847 2004-08-19 16:26  jordi
37848
37849         * ITheme.cs, Theme.cs: move themes from an interface to a class
37850
37851 2004-08-19 16:25  jordi
37852
37853         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
37854           theme enhancaments
37855
37856 2004-08-19 16:04  pbartok
37857
37858         * XplatUIX11.cs:
37859           - Added colormap basics
37860           - Added a way to re-initialize with a different display handle
37861           - Fixed setting of the window background color
37862           - Added various X11 imports related to colors and colormaps
37863
37864 2004-08-19 15:51  pbartok
37865
37866         * X11Structs.cs:
37867           - Removed packing hints (Paolo suggested this a while back)
37868           - fixed colormap type
37869           - Added default Atom types
37870           - Added Screen and color structs and enums
37871
37872 2004-08-19 15:39  pbartok
37873
37874         * ImageList.cs:
37875           - Added missing Draw() method
37876           - Added missing RecreateHandle event
37877
37878 2004-08-19 15:30  pbartok
37879
37880         * Form.cs:
37881           - Added handling of WM_CLOSE
37882
37883 2004-08-18 13:16  jordi
37884
37885         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
37886           a table
37887
37888 2004-08-18 09:56  jordi
37889
37890         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
37891
37892 2004-08-17 15:31  ravindra
37893
37894         * SWF.csproj: Updated project.
37895
37896 2004-08-17 15:25  pbartok
37897
37898         * Control.cs:
37899           - Drawing improvement; don't call UpdateBounds if we are not visible
37900             (or have been minimized)
37901
37902 2004-08-17 15:24  pbartok
37903
37904         * XplatUIWin32.cs:
37905           - Finished IsVisible
37906           - Added Win32GetWindowPlacement
37907
37908 2004-08-17 15:08  jackson
37909
37910         * Panel.cs: Initial checkin of the Panel
37911
37912 2004-08-17 14:25  pbartok
37913
37914         * Control.cs:
37915           - Fixed broken handling of default window sizes
37916
37917 2004-08-17 13:29  jackson
37918
37919         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
37920           has a large startup time.
37921
37922 2004-08-17 10:25  jackson
37923
37924         * HandleData.cs: union areas properly
37925
37926 2004-08-17 10:12  jackson
37927
37928         * HandleData.cs: union areas properly
37929
37930 2004-08-16 20:00  ravindra
37931
37932         * ToolBar.cs, ToolBarButton.cs: Added attributes.
37933
37934 2004-08-16 18:48  ravindra
37935
37936         * ToolBar.cs: Added attributes.
37937
37938 2004-08-16 17:17  ravindra
37939
37940         * SWF.csproj: Updated project.
37941
37942 2004-08-16 17:16  jackson
37943
37944         * XplatUIX11.cs: Check for more expose events before sending a
37945           WM_PAINT so they can all be grouped together. This makes dragging a
37946           window across another window redraw in a sane way.
37947
37948 2004-08-16 15:47  pbartok
37949
37950         * Control.cs:
37951           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
37952             support OnMouseEnter/Leave()
37953           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
37954             exposure handling
37955
37956 2004-08-16 15:46  pbartok
37957
37958         * XplatUIStructs.cs, XplatUIX11.cs:
37959           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
37960           OnMouseEnter/Leave()
37961
37962 2004-08-16 15:34  jackson
37963
37964         * XplatUIX11.cs: Group multiple expose events in HandleData, make
37965           sure messages get the message field set to WM_NULL if they are not
37966           handled.
37967
37968 2004-08-16 15:24  jackson
37969
37970         * HandleData.cs: HandleData is used for storing message information
37971           for window handles
37972
37973 2004-08-15 17:23  ravindra
37974
37975         * ColorDepth.cs: Added attribute.
37976
37977 2004-08-15 17:23  ravindra
37978
37979         * SWF.csproj: Updated project for ToolBar Control.
37980
37981 2004-08-15 17:20  ravindra
37982
37983         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
37984           control and also dos2unix format.
37985
37986 2004-08-15 17:13  ravindra
37987
37988         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
37989           ToolBarButtonClickEventArgs.cs,
37990           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
37991           ToolBarTextAlign.cs: First Implementation of ToolBar control.
37992
37993 2004-08-15 15:31  pbartok
37994
37995         * ButtonBase.cs:
37996           - First (mostly) working version
37997
37998 2004-08-13 16:15  pbartok
37999
38000         * Control.cs:
38001           - Fixed Anchor default
38002
38003 2004-08-13 15:43  pbartok
38004
38005         * Control.cs:
38006           - Changed GetCursorPos signature
38007
38008 2004-08-13 15:42  pbartok
38009
38010         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38011           - Changed signature for GetCursorPos
38012
38013 2004-08-13 15:25  pbartok
38014
38015         * XplatUIX11.cs:
38016           - Cleanup
38017           - Fixed resizing/exposure handling
38018
38019 2004-08-13 15:22  jordi
38020
38021         * ThemeWin32Classic.cs: removes redundant code and fixes issues
38022           with tickposition
38023
38024 2004-08-13 14:55  jordi
38025
38026         * TrackBar.cs: change from wndproc to events
38027
38028 2004-08-13 13:00  jordi
38029
38030         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38031           XplatUIX11.cs: implements PointToClient (ScreenToClient)
38032
38033 2004-08-13 12:53  pbartok
38034
38035         * XplatUIWin32.cs:
38036           - Changed GetWindowPos to also provide client area size
38037           - Fixed broken prototypes for several win32 functions
38038
38039 2004-08-13 12:53  pbartok
38040
38041         * XplatUI.cs, XplatUIDriver.cs:
38042           - Changed GetWindowPos to also provide client area size
38043
38044 2004-08-13 12:52  pbartok
38045
38046         * XplatUIX11.cs:
38047           - Added generation of WM_POSCHANGED
38048           - Changed GetWindowPos to also provide client area size
38049
38050 2004-08-13 12:52  pbartok
38051
38052         * Control.cs:
38053           - Added Dispose() and destructor
38054           - Fixed resizing and bounds calculation
38055           - Fixed Layout
38056           - Added memory savings for invisible windows
38057
38058 2004-08-13 12:46  jordi
38059
38060         * TrackBar.cs: adds timer and grap window
38061
38062 2004-08-13 10:25  jackson
38063
38064         * Timer.cs: SWF Timer
38065
38066 2004-08-12 16:59  pbartok
38067
38068         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38069           - Implemented method to get current mouse position
38070
38071 2004-08-12 14:29  jordi
38072
38073         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
38074           enhancement, fix mouse problems, highli thumb, etc
38075
38076 2004-08-12 13:31  pbartok
38077
38078         * Control.cs:
38079           - Fixed Anchoring bugs
38080
38081 2004-08-12 13:01  jackson
38082
38083         * StatusBar.cs: Don't forget things
38084
38085 2004-08-12 12:54  jackson
38086
38087         * ThemeWin32Classic.cs: Handle owner draw status bars
38088
38089 2004-08-12 12:54  jackson
38090
38091         * StatusBar.cs: Implement missing properties, events, and methods.
38092           Handle mouse clicking
38093
38094 2004-08-12 10:19  jackson
38095
38096         * StatusBarPanelClickEventArgs.cs,
38097           StatusBarPanelClickEventHandler.cs: Classes for handling status
38098           bar panel click events
38099
38100 2004-08-12 10:10  jackson
38101
38102         * Control.cs: Add missing properties
38103
38104 2004-08-12 09:46  pbartok
38105
38106         * BindingsManagerBase.cs:
38107           - Name changed to BindingManagerBase.cs
38108
38109 2004-08-12 09:25  jordi
38110
38111         * ScrollableControl.cs: calls ctrlbase instead of exeception
38112
38113 2004-08-11 16:28  pbartok
38114
38115         * InputLanguageChangingEventArgs.cs:
38116           - Never check in before compiling. Fixes the last check-in
38117
38118 2004-08-11 16:26  pbartok
38119
38120         * InputLanguageChangingEventArgs.cs:
38121           - More signature fixes
38122
38123 2004-08-11 16:20  pbartok
38124
38125         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
38126           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
38127           ImageListStreamer.cs, InputLanguage.cs,
38128           InputLanguageChangedEventArgs.cs,
38129           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
38130           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
38131           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
38132           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38133           - Signature fixes
38134
38135 2004-08-11 16:16  pbartok
38136
38137         * Application.cs:
38138           - Fixed Signature
38139           - Added .Net 1.1 method
38140
38141 2004-08-11 15:25  pbartok
38142
38143         * SWF.csproj:
38144           - Fixed BindingManagerBase.cs filename
38145
38146 2004-08-11 15:22  pbartok
38147
38148         * BindingManagerBase.cs:
38149           - Was checked in with wrong filename
38150
38151 2004-08-11 14:50  pbartok
38152
38153         * SWF.csproj:
38154           - Updated
38155
38156 2004-08-11 13:41  jordi
38157
38158         * XplatUIWin32.cs: Fixes ClientRect
38159
38160 2004-08-11 13:19  pbartok
38161
38162         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38163           XplatUIX11.cs:
38164           - We had SetWindowPos and MoveWindow to set window positions and
38165             size, removed MoveWindow. We have GetWindowPos, so it made sense to
38166             keep SetWindowPos as matching counterpart
38167           - Added some X11 sanity checking
38168
38169 2004-08-11 12:59  pbartok
38170
38171         * Control.cs:
38172           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
38173             (It seems that SetBounds is just a front for SetBoundsCore and
38174              SetBoundsCore updates the underlying window system and
38175              UpdateBounds is responsible for updating the variables associated
38176              with the Control and sending the events)
38177           - Major cleanup of Size handling; we now have two sizes, client_size
38178             and bounds. Bounds defines the window with decorations, client_size
38179             without them.
38180
38181 2004-08-11 12:55  pbartok
38182
38183         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38184           - Added method to calculate difference between decorated window and
38185             raw client area
38186
38187 2004-08-11 12:54  pbartok
38188
38189         * Label.cs:
38190           - Forcing redraw on resize
38191
38192 2004-08-11 11:43  pbartok
38193
38194         * ImageList.cs:
38195           - Removed disposing of the actual images when the list is disposed
38196
38197 2004-08-11 09:13  pbartok
38198
38199         * Control.cs:
38200           - Now properly reparents windows
38201
38202 2004-08-11 08:37  pbartok
38203
38204         * Control.cs:
38205           - Duh!
38206
38207 2004-08-11 07:47  pbartok
38208
38209         * Control.cs:
38210           - Rewrote the collection stuff. Might not be as fast now, not
38211             keeping the number of children around and accessible directly, but
38212             it's more straightforward
38213
38214 2004-08-11 07:44  pbartok
38215
38216         * AccessibleObject.cs:
38217           - Fixed to match ControlCollection rewrite
38218
38219 2004-08-11 07:43  pbartok
38220
38221         * ImageList.cs:
38222           - Added missing creation of the collection list
38223
38224 2004-08-10 20:08  jackson
38225
38226         * StatusBar.cs: Get the paint message from WndProc
38227
38228 2004-08-10 19:31  jackson
38229
38230         * ThemeWin32Classic.cs: Create Brushes as little as possible
38231
38232 2004-08-10 19:20  jackson
38233
38234         * UICues.cs: Add Flags attribute
38235
38236 2004-08-10 19:19  jackson
38237
38238         * StatusBarPanel.cs: Signature cleanup
38239
38240 2004-08-10 19:10  jackson
38241
38242         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
38243           Initial implementation of status bar item drawing
38244
38245 2004-08-10 17:27  jordi
38246
38247         * TrackBar.cs: add missing methods, properties, and restructure to
38248           hide extra ones
38249
38250 2004-08-10 16:24  jackson
38251
38252         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
38253           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
38254           attribute
38255
38256 2004-08-10 13:21  jordi
38257
38258         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
38259           enhancements and standarize on win colors defaults
38260
38261 2004-08-10 12:52  jackson
38262
38263         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
38264           ThemeWin32Classic.cs: Implement DrawItem functionality
38265
38266 2004-08-10 12:47  jordi
38267
38268         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
38269
38270 2004-08-10 12:32  jordi
38271
38272         * Control.cs: throw ontextchange event
38273
38274 2004-08-10 11:43  pbartok
38275
38276         * Control.cs:
38277           - Added more to the still unfinished Dock/Anchor layout code
38278
38279 2004-08-10 11:39  pbartok
38280
38281         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38282           - Added GetWindowPos method
38283
38284 2004-08-10 11:36  pbartok
38285
38286         * XplatUIWin32.cs:
38287           - Implemented several methods
38288
38289 2004-08-10 09:47  jackson
38290
38291         * TrackBar.cs: Allow control to handle buffering
38292
38293 2004-08-10 09:41  jackson
38294
38295         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
38296
38297 2004-08-10 09:24  jackson
38298
38299         * Label.cs, LinkLabel.cs: Let Control handle buffering.
38300
38301 2004-08-10 09:09  jackson
38302
38303         * StatusBar.cs: Let Control handle all the buffering.
38304
38305 2004-08-10 09:08  jackson
38306
38307         * Control.cs: Control will now handle the buffering code, so each
38308           control does not have to implement this.
38309
38310 2004-08-10 08:34  jackson
38311
38312         * XplatUIDriver.cs: Use default colors from the theme
38313
38314 2004-08-09 17:12  pbartok
38315
38316         * ImageList.cs:
38317           - Fixed several bugs Ravindra pointed out
38318
38319 2004-08-09 16:11  pbartok
38320
38321         * Control.cs:
38322           - Added incomplete dock layout code
38323           - Added support for mouse wheel
38324
38325 2004-08-09 16:09  pbartok
38326
38327         * XplatUIX11.cs:
38328           - Added handling for middle and right mousebutton
38329           - Added handling for mouse wheel
38330           - Added handling for key state and mouse state and position
38331           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
38332           messages
38333
38334 2004-08-09 15:40  jackson
38335
38336         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
38337           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
38338           checkin
38339
38340 2004-08-09 15:37  jackson
38341
38342         * StatusBar.cs: Initial implementation of StatusBar
38343
38344 2004-08-09 15:36  jackson
38345
38346         * ITheme.cs: Add support for drawing status bar and getting status
38347           bar item sizes
38348
38349 2004-08-09 15:35  pbartok
38350
38351         * MouseButtons.cs:
38352           - Fixed values
38353
38354 2004-08-09 15:34  jackson
38355
38356         * ThemeWin32Classic.cs: Add support for drawing status bar and get
38357           status bar item sizes
38358
38359 2004-08-09 15:21  jackson
38360
38361         * ThemeWin32Classic.cs: Use known colors for default control
38362           colours
38363
38364 2004-08-09 15:12  jackson
38365
38366         * ThemeWin32Classic.cs: Make the default font static, it is static
38367           in control so this doesn't change functionality and creating fonts
38368           is sloooooow.
38369
38370 2004-08-09 14:56  pbartok
38371
38372         * X11Structs.cs:
38373           - Added GrabMode enum
38374
38375 2004-08-09 14:55  pbartok
38376
38377         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38378           - Removed Run method, was only required for initial development
38379
38380 2004-08-09 14:51  pbartok
38381
38382         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38383           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
38384           capture
38385
38386 2004-08-09 13:48  pbartok
38387
38388         * XplatUIX11.cs:
38389           - Fixed default sizing for child windows
38390
38391 2004-08-09 12:56  pbartok
38392
38393         * XplatUIX11.cs:
38394           - Added generation of WM_DESTROY message
38395           - Added handling of window manager induced shutdown
38396
38397 2004-08-09 11:31  jackson
38398
38399         * ThemeWin32Classic.cs: New names for control properties
38400
38401 2004-08-09 11:25  jackson
38402
38403         * Control.cs: Use new color names
38404
38405 2004-08-09 11:02  jackson
38406
38407         * XplatUI.cs: Get default window properties from the theme
38408
38409 2004-08-09 11:01  jackson
38410
38411         * ITheme.cs: The theme engine now controls default window
38412           properties
38413
38414 2004-08-09 11:00  jackson
38415
38416         * ThemeWin32Classic.cs: Add default window color properties
38417
38418 2004-08-09 10:17  jackson
38419
38420         * ThemeWin32Classic.cs: Use correct default back color
38421
38422 2004-08-09 10:05  jackson
38423
38424         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
38425           the theme now.
38426
38427 2004-08-09 09:56  jackson
38428
38429         * XplatUI.cs: Remove defaults, these are handled by the theme now.
38430
38431 2004-08-09 09:54  jackson
38432
38433         * Control.cs: Get default properties from the theme.
38434
38435 2004-08-09 09:53  jackson
38436
38437         * ITheme.cs: Themes now handle default control properties
38438
38439 2004-08-09 09:53  jackson
38440
38441         * ThemeWin32Classic.cs: Themes now handle default control
38442           properties so coloring will be consistent
38443
38444 2004-08-08 16:54  jordi
38445
38446         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
38447
38448 2004-08-08 15:08  jordi
38449
38450         * XplatUIX11.cs: fixes keyboard crash
38451
38452 2004-08-08 13:47  jordi
38453
38454         * Label.cs: add cvs header info
38455
38456 2004-08-08 12:09  jackson
38457
38458         * ThemeWin32Classic.cs: Add pen_buttonface
38459
38460 2004-08-08 11:52  jordi
38461
38462         * Label.cs, LinkLabel.cs: [no log message]
38463
38464 2004-08-08 11:34  jordi
38465
38466         * ThemeWin32Classic.cs: Use Windows Standard Colours
38467
38468 2004-08-07 17:32  jordi
38469
38470         * TrackBar.cs: throw exceptions of invalid enums values
38471
38472 2004-08-07 17:31  jordi
38473
38474         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
38475           draw method name
38476
38477 2004-08-07 16:56  jackson
38478
38479         * HorizontalAlignment.cs: Initial checkin
38480
38481 2004-08-07 13:16  jordi
38482
38483         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
38484           methods
38485
38486 2004-08-07 13:05  jordi
38487
38488         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
38489           GetSysColor defines
38490
38491 2004-08-06 18:01  pbartok
38492
38493         * ThemeWin32Classic.cs:
38494           - Fixed some rounding issues with float/int
38495
38496 2004-08-06 18:00  jackson
38497
38498         * DockStyle.cs, AnchorStyles.cs:
38499
38500                   Add flags and serializable attributes.
38501
38502 2004-08-06 17:46  pbartok
38503
38504         * XplatUIX11.cs:
38505           - Implemented GetParent
38506
38507 2004-08-06 17:18  pbartok
38508
38509         * TrackBar.cs:
38510           - Fixed some rounding issues with float/int
38511
38512 2004-08-06 17:17  pbartok
38513
38514         * X11Structs.cs, XplatUIX11.cs:
38515           - Fixed Refresh and Invalidate
38516
38517 2004-08-06 15:30  pbartok
38518
38519         * Control.cs, X11Structs.cs, XplatUIX11.cs:
38520           - Fixed recursive loop when resizing
38521           - Improved/fixed redrawing on expose messages
38522
38523 2004-08-06 09:53  jordi
38524
38525         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
38526           keyboard navigation
38527
38528 2004-08-06 08:02  pbartok
38529
38530         * X11Structs.cs, XplatUIX11.cs:
38531           - Fixed reparenting
38532           - Fixed window border creation
38533
38534 2004-08-05 15:38  pbartok
38535
38536         * XplatUIX11.cs:
38537           - Attempted fix for reparenting problems
38538
38539 2004-08-04 15:14  pbartok
38540
38541         * Control.cs:
38542           - Fixed Invalidation bug (calculated wrong client area)
38543           - Added ClientSize setter
38544
38545 2004-08-04 15:13  pbartok
38546
38547         * Form.cs:
38548           - Added AutoScale properties
38549
38550 2004-08-04 15:13  pbartok
38551
38552         * SWF.csproj:
38553           - Added latest files
38554
38555 2004-08-04 14:11  pbartok
38556
38557         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38558           XplatUIX11.cs:
38559           - Added Invalidate handling
38560
38561 2004-08-03 17:09  jordi
38562
38563         * XplatUIDriver.cs: fixes spelling mistake
38564
38565 2004-07-27 09:53  jordi
38566
38567         * TrackBar.cs: fixes trackbar events, def classname, methods
38568           signature
38569
38570 2004-07-27 09:29  jordi
38571
38572         * ScrollBar.cs: fixes scrollbar events
38573
38574 2004-07-27 04:38  jordi
38575
38576         * Control.cs: changes to be able to run winforms samples
38577
38578 2004-07-26 11:42  jordi
38579
38580         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
38581           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
38582
38583 2004-07-26 05:41  jordi
38584
38585         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
38586           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
38587           implementation
38588
38589 2004-07-22 09:22  jordi
38590
38591         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
38592           check link overlapping, implement events, and fixes
38593
38594 2004-07-21 10:28  jordi
38595
38596         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
38597
38598 2004-07-21 10:19  jordi
38599
38600         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
38601           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
38602           LinkLabelLinkClickedEventArgs.cs,
38603           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
38604           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
38605           implementation
38606
38607 2004-07-19 13:09  jordi
38608
38609         * Control.cs, Label.cs: label control re-written: added missing
38610           functionlity, events, and properties
38611
38612 2004-07-19 10:49  jordi
38613
38614         * Control.cs: fixes SetBounds logic
38615
38616 2004-07-19 01:29  jordi
38617
38618         * Control.cs: Call RefreshWindow only if the window has created
38619
38620 2004-07-15 14:05  pbartok
38621
38622         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
38623           - Implemented ImageList and ImageList.ImageCollection classes
38624           - Added ColorDepth enumeration
38625           - Updated SWF VS.Net project
38626
38627 2004-07-15 11:06  jordi
38628
38629         * XplatUIStructs.cs: added MsgButons enum
38630
38631 2004-07-15 11:03  jordi
38632
38633         * Control.cs: added basic mouse handeling events
38634
38635 2004-07-15 03:38  jordi
38636
38637         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
38638           Vertical TrackBar control implementation
38639
38640 2004-07-13 09:33  jordi
38641
38642         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
38643
38644 2004-07-13 09:31  jordi
38645
38646         * Control.cs, Form.cs: commit: new properties and fixes form size
38647           problems
38648
38649 2004-07-09 14:13  miguel
38650
38651         * ProgressBar.cs: Spelling
38652
38653 2004-07-09 11:25  pbartok
38654
38655         * ProgressBar.cs:
38656           - Removed usage of Rectangle for drawing. Miguel pointed out it's
38657           faster
38658
38659 2004-07-09 11:17  miguel
38660
38661         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
38662
38663                 * ProgressBar.cs: Fixed spelling for `block'
38664
38665                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
38666                 style guidelines.
38667
38668                 Avoid using the += on rect.X, that exposed a bug in the compiler.
38669
38670 2004-07-08 23:21  pbartok
38671
38672         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
38673           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
38674           BaseCollection.cs, Binding.cs, BindingContext.cs,
38675           BindingMemberInfo.cs, BindingsCollection.cs,
38676           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
38677           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
38678           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
38679           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
38680           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
38681           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
38682           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
38683           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
38684           FrameStyle.cs, GiveFeedbackEventArgs.cs,
38685           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
38686           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
38687           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
38688           InputLanguageChangedEventArgs.cs,
38689           InputLanguageChangedEventHandler.cs,
38690           InputLanguageChangingEventArgs.cs,
38691           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
38692           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
38693           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
38694           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
38695           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
38696           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
38697           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
38698           QueryAccessibilityHelpEventArgs.cs,
38699           QueryAccessibilityHelpEventHandler.cs,
38700           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
38701           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
38702           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
38703           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
38704           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
38705           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
38706           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
38707           XplatUIX11.cs, lang.cs:
38708           - Initial check-in
38709
38710