2009-01-03 Ivan N. Zlatev <contact@i-nz.net>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
2
3         * DataGridViewCell.cs: We should return a value even if we are not bound 
4         to a DataGridView.
5
6 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
7
8         * CurrencyManager.cs, DataGrid.cs: 
9            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
10            concept of "rows".
11            - Add two more internal properties AllowRemove and AllowEdit.
12         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
13         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
14         CurrencyManager data source.
15
16 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
17
18         * DataGridView.cs: Fix crashes caused by assigning negative values to 
19         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
20         the column/row heights/widths.
21         [Fixes bug #462684]
22
23 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
24
25         * DataGridView.cs: Non-autogenerated columns that have a data property 
26         set that exists in the current datasource should be set to be data-bound.
27
28 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
29
30         * DataGridView.cs: Fix column sorting for columns containing null 
31         values. A "null" value is not always "null" (e.g could be String.Empty) 
32         and thus parsing numeric types throwed an exception for "null" values.
33
34 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
35
36         * DataGridView.cs: Detach the editing control when the edit is 
37         finished.
38
39 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
40
41         * DataGridView.cs: Multiple fixes to handle last column/row removal 
42         and cell movement after that instead of throwing exceptions.
43
44 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
45
46         * DataGridViewCellCollection.cs: When cells are removed the column 
47         indices become invalid if the cell is not the last one and have to 
48         be refreshed.
49
50 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
51
52         * DataGridView.cs: Return false in CommitEdit if there was an error.
53
54 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
55
56         * DataGridView.cs: Remove a leftover Console.WriteLine.
57
58 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
59
60         * DataGridViewRow.cs: Access the indexer of the data manager directly 
61         instead of the internal list.
62
63 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
64
65         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
66         Rewrite the value getting, setting, parsing, formatting logic:
67            - If data-bound value get/set should actually get and set from the 
68              data source.
69            - Make proper usage of TypeConverters for value parsing/formatting.
70            - Raise DataError if setting the new value fails.
71            - Get rid off the internal valueType field and get/set the ValueType 
72            property instead.
73         [Fixes bug #462051]
74
75 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
76
77         * DataGridView.cs: Rewrite the DataBinding layer:
78            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
79            specific code.
80            - Get rid off the per DataSource type column autogeneration code.
81            - Use the CurrencyManager for everything that is DataBinding related.
82
83 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
84
85         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
86
87 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
88
89         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
90         DataManager to fetch the CurrencyManager for the DataGridView and to 
91         spare this logic for the other components to follow.
92
93 2008-12-31  Mario Carrion  <mcarrion@novell.com>
94
95         * MessageBox.cs: UIA support: new properties: UIAMessage, 
96         UIAMessageRectangle and UIAIconRectangle.
97
98 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
99
100         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
101         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
102
103 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
104
105         * DataGridView.cs: Do not autogenerate duplicate column for a 
106         data member that has already problematically been assigned one.
107         [Fixes bug #457305]
108
109 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
110
111         * ProfessionalColorTable.cs: Better detection of user's theme.
112         [Fixes bug #462766]
113
114 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
115
116         * DataGridView.cs: In the case where there are no autogenerated 
117         columns and the user adds columns problematically we must generate 
118         the rows after the very first column is added.
119
120 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
121
122         * DateTimePicker.cs: When increasing/decreasing the value of month
123         with ShowUpDown set to true, moving from december to january, and
124         moving from january to december should adjust the year to the next and
125         the previous year, respectively.
126         Fixes the remaining bits of #459674.
127
128 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
129
130         * DataGridView.cs: If a new cell is selected edit mode should be 
131         immediately enabled only if EditOnEnter is set. Whether the mouse 
132         or not was used to select the cell is irrelevant.
133
134 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
135
136         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
137         recursive rebinding.
138
139 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
140
141         * DateTimePicker.cs: Handle the "MMMM" month format.
142         Fixes #459674.
143
144 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
145
146         * DataGridView.cs: 
147            - Make ReBind private and refactor various calls to call ReBind 
148            instead of ClearBinding/DoBinding
149            - Rebind when the column collection changes
150         * DataGridViewColumnCollection.cs: 
151            - Leave the rebinding on change to be handled by the DataGridView.
152
153 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
154
155         * DataGridView.cs: Add a ReBind convenience method.
156         * DataGridViewColumnCollection.cs: Rebind when a column is added.
157         [Fixes bug #462019]
158
159 2008-12-23  Neville Gao  <nevillegao@gmail.com>
160
161         * StatusBar.cs: Modified argument variable.
162         * SplitContainer.cs: Control enabled to support accessibility.
163         [Fixes Bug #455950]
164
165 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
166
167         * ToolStripMenuItem.cs: Guard against an NRE.
168         [Fixes bug #457110]
169
170 2008-12-22  Mario Carrion  <mcarrion@novell.com>
171
172         * Control.cs: AccessibleXXXX properties don't return 
173         AccessibleObject.XXXX, instead a local referece is returned.
174
175 2008-12-22  Neville Gao  <nevillegao@gmail.com>
176
177         * PrintPreviewControl.cs: Added internal properties to support
178         accessibility.
179         [Fixes Bug #459699]
180
181 2008-12-19  Mario Carrion  <mcarrion@novell.com>
182
183         * Control.cs: Reverted r121561. 
184
185 2008-12-19  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
186
187         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
188         it has been moved to the bridge.
189
190 2008-12-18  Brad Taylor  <brad@getcoded.net>
191
192         * DateTimePicker.cs: Add a few UIA specific events, and a couple
193         internal methods useful for UIA.
194
195 2008-12-18  Mario Carrion <mcarrion@novell.com>
196
197         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
198         [Fixes Bug #455752]
199
200 2008-12-17  Mike Gorse  <mgorse@novell.com>
201
202         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
203           item's Focused property is set.
204
205 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
206
207         * TreeView.cs:
208         * TreeNode.cs:
209         * TreeNodeCollection.cs: Add events for UIA support:
210         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
211         UIACollectionChanged.
212
213 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
214
215         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
216           SubItemStyle member field. 
217
218         Contributed under MIT/X11 license.
219
220 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
221
222         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
223         y coord, since it's useless in this case, and we need to rely only on
224         the number of rows and ItemHeight to compute this value.
225         Fixes part of #257471.
226
227 2008-12-15  Mike Gorse  <mgorse@novell.com>
228
229         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
230
231 2008-12-15  Mario Carrion  <mcarrion@novell.com>
232
233         * Control.cs: Accessibility properties instantiate AccessibilityObject when
234         needed.
235         [Fixes Bug #459223]
236
237 2008-12-15  Brad Taylor  <brad@getcoded.net>
238
239         * ToolStripItem.cs: Add a UIA specific event for listening for when a
240         ToolStripItem becomes selected or deselected.
241
242 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
243
244         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
245         .net does. Use the date in the point of the mouse move coords as the
246         new range as well, if the left button of the mouse is being pressed.
247         Fixes #364914.
248
249 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
250
251         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
252         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
253         effectively repaint the control.
254         Fixes the remaining bits of #417961.
255
256 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
257
258         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
259         range to contain only dates within the new possible range.
260         Fixes part of #417961.
261
262 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
263
264         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
265         length of the text, but the end position, so we need to substract 1 to
266         have a valid value. Also, in the same InputText method, don't use
267         SelectionLength as the length of the text, since the selected text
268         could actually be empty, but we need to set the value anyway.
269         Fixes #457370.
270
271 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
272
273         * TextBox.cs: Don't do any auto complete task if the custom source is
274         null or empty. Also avoid duplication of code.
275         Fixes #457743.
276
277 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
278
279         * DataGridView.cs: Refresh column sizes when new rows are added.
280         [Fixes bug #457050]
281
282 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
283         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
284         Split to create a line - we are already doing this, by _adding_ a new
285         one when rtf_cursor_x is 0 (this field gets this value just after we
286         receive the newline param as true). This avoids having a proportional number
287         of empty lines in the end of the rich text box.
288         Fixes #396664.
289
290 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
291
292         * RichTextBox.cs: When saving the contents as a plain text, don't add
293         a new line for every Line structure, since the data in Document
294         already contains the new line characters. This avoids duplicated new
295         lines using the Save methods.
296         Fixes #445618.
297
298 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
299
300         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
301         framework.  Fixes bug #457678.
302
303 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
304
305         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
306         where datasource is null.
307         [Fixes exception reported in bug 441240]
308
309 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
310
311         * DataGridView.cs: EndEdit validation fixes.
312
313 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
314
315         * DataGridView.cs: This is the cool patch that adds support for 
316         actually updating the data in the databinding backend after editing. 
317         With bonus firing and handling the DataError event.
318
319 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
320
321         * Line.cs: When calculating the text tags's Shift value, store it as
322         pixels instead of points. This way we can actually handle different
323         fonts in the same RichTextBox, as well as the right size of the caret.
324         Fixes part of #351938.
325
326 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
327
328         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
329         casted to CheckState causing InvalidCastExceptions.
330
331 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
332
333         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
334         to not depend on the item being clicked.
335
336 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
337
338         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
339         longer throws a NotImplementedException.
340
341 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
342
343         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
344         IDataGridViewEditingControl for editing.
345
346 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
347
348         * DataGridViewComboBoxCell.cs: Implement data binding support.
349
350 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
351
352         * DataGridView.cs: Use the CurrencyManager to update the data source 
353         binding position instead of casting the data sourcde to BindingSource.
354         This enables position updating for other type of data sources.
355
356 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
357
358         * ComboBox.cs: Update the SelectedIndex before updating the Text 
359         in OnDisplayMemberChanged.
360
361 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
362
363         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
364         [Fixes bug #457112]
365
366 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
367
368         * DataGridView.cs: Sorting fixes:
369            - Be strict when sorting is enabled.
370            - If there is a data source delegate the sorting request.
371
372 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
373
374         * Binding.cs: When converting the data also try with the destination 
375         type typeconverter. This indirectly adds support for Nullable types 
376         in our databinding layer.
377
378 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
379
380         * DataGridView.cs: When cell editing is finished focus back the 
381         DataGridView. Fixes keyboard navigation post-editing.
382
383 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
384
385         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
386         setting to after EndEdit is called for the old cell.
387
388 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
389
390         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
391
392 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
393
394         * XplatUIX11.cs: Send WM_HELP only to the focused window.
395
396 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
397
398         * CurrencyManager.cs: Fix exceptions when resetting the data source 
399         for the same time (e.g. in ComboBox): 
400            - Do not set the list position if we are still transferring data
401            - When resetting the list firstly push the data then update the 
402            binding.
403         * Binding.cs: Check BindingManager.Position == -1 instead of 
404         BindingManager.Current == null in order to avoid unexpected 
405         exceptions.
406
407 2008-12-05  Brad Taylor  <brad@getcoded.net>
408
409         * MonthCalendar.cs: Add UIA specific events so that we can know when
410         the selection changes, and when MaxSelectedCount changes.
411
412 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
413
414         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
415         used for anything.
416
417 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
418
419         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
420         to the control being drawn for the first time by:
421            - Implement DisplayedRowsCount to not rely on the control being
422            already painted. Also added support for the partial row flag.
423            - Fix scrolling to take into account partial rows and scroll to
424            them.
425         [Fixes bug #456527]
426
427 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
428
429         * DataGridView.cs: Do not reset the CurrentCell when the handle is
430         created if the user has already set it.
431
432 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
433
434         * DataGridView.cs: Fix CurrentCell to actually select the cell.
435
436 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
437
438         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
439         text and then let the underneath users of IDataObject interpret and
440         parse by themselves. 
441         Fixes #439251.
442
443 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
444
445         * DataGridView.cs: Fix my previous commit to actually update what it 
446         was supposed to.
447
448 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
449
450         * DataGridView.cs: Ensure that when a row is removed the all the 
451         current row/column/cell get updated. Fixes multiple exceptions.
452
453 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
454
455         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
456         is used.
457         [Fixes bug #443560]
458
459 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
460
461         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
462         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
463         new state.
464         [Fixes issue 1 in bug #443560]
465
466 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
467
468         * DataGridView.cs: Invalidate after the current row/column seletion 
469         chagnes.
470         [Fixes bug #438434]
471
472 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
473
474         * DataGridView.cs: Refresh the data if the data list is reset, etc.
475
476 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
477
478         * DataGridView.cs: Handle datasource state changes:
479            - IBindingList - list changes
480            - BindingSource - list changed and datasource changes
481
482 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
483
484         * DataGridView.cs: Select the first cell when databound. 
485         Visually select when CurrentCell is set.
486
487 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
488
489         * DataGridView.cs: Set the current cell before raising CellClick.
490
491 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
492
493         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
494         CellLeave events as this is already done in SetCurrentCellAddressCore.
495
496 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
497
498         * DataGridView.cs: Set the minimum size for the columns to be the 
499         width of their header, so that the columns don't get squashed 
500         all together.
501
502 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
503
504         * DataGridView.cs: After the data is bound PerformLayout, so that 
505         the columns get autosized.
506
507 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
508
509         * DataGridView.cs: Move all currentCell setting code into 
510         one central place - SetCurrentCellAddressCore. That way the 
511         current cell is properly updated when programatically set.
512         Fire RowEnter/Leave events.
513
514 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
515
516         * DataGridView.cs: Update the CurrencyManager.Position, so that 
517         when a BindingSource is used BindingSource.Current will be correct.
518
519 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
520
521         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
522            - No caption text is drawn because Color.Empty is used.
523            - Fix top and height off by 1.
524
525 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
526
527         * DataGridViewRow.cs: Implement DataBoundItem.
528
529 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
530
531         * BindingSource.cs: Return null for Current if there is no data present.
532
533 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
534
535         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
536         menus using the arrow keys. Also when handling the left arrow key, don't 
537         assign the current menu to the parent one, if the parent is null.
538         Fixes #446392.
539
540 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
541
542         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
543         #413501.
544
545 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
546
547         * Scrollbar.cs:
548         * ScrollableControl.cs: Simplify the code to manually set the size of
549         the thum area, avoiding duplication of code, and also preserving the
550         right value for different code paths - this can happen when size
551         changes are made to the scrollbar after setting LargeChange, Maximum
552         or related properties for the ScrollBar.
553
554 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
555
556         * ScrollableControl.cs: When scrolling, don't invalidate the entire
557         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
558         what .Net does: copy the visible area, and only invalidate the part of
559         the area that wasn't visible before scrolling.
560         Fixes #441738.
561
562 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
563
564         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
565         can clear ourselves when it is raised, we don't have a newrowindex
566         if we don't have any columns.
567         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
568         re-index after each delete so the NewRow will have the correct index.
569         [Fixes bug #448005]
570
571 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
572
573         * Form.cs: Don't change min/max size if it is empty.
574         [Fixes bug #447873]
575
576 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
577
578         * ScrollBar.cs:
579         * ScrollableControl.cs: When the manual thumb size is used, the
580         maximum allowed value should depend on that thumb size, instead of
581         LargeChange (using the maximum - LargeChange + 1 value). But
582         LargeChange should be used normally when incrementing/decrementing.
583         Fixes the remaining part of #441546.
584
585 2008-11-23  Andreia Gaita  <avidigal@novell.com>
586
587         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
588         until an about:blank has been loaded (according to spec). Fix 
589         ScrollbarsEnabled to set when a document is loaded (since we use js 
590         for it). Fix url so it reflects the current loading document and not 
591         the previous one. Send StatusChanged events.
592
593 2008-11-23  Andreia Gaita  <avidigal@novell.com>
594
595         * Application.cs: If a message comes in for an embedded control
596         (like webbrowser) when we're capturing the keyboard, release the
597         capture and continue.
598         [fixes #429462]
599
600 2008-11-22  Andreia Gaita  <avidigal@novell.com>
601
602         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
603
604 2008-11-21  Andreia Gaita  <avidigal@novell.com>
605
606         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
607         
608 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
609
610         * ScrollBar.cs:
611         * ScrollableControl.cs: Set manually the thumb size for the
612         ScrollableControl scrollbars, so any further changes to the underneath
613         scrollbars respect the original size.
614         Fixes part of #441546.
615
616 2008-11-21  Geoff Norton  <gnorton@novell.com>
617
618         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
619         PlatformID.MacOSX now exists.
620
621 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
622
623         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
624         Having something internal abstract isn't very nice for people who want
625         to inherit from this class.
626
627 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
628
629         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
630         invalid value.  Just return null for the Image, and use the ImageList's
631         ImageSize for calculations.
632
633 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
634
635         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
636         through DroppedDown so the proper events get called and state gets reset.
637         [Fixes bug #446805]
638
639 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
640
641         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
642         the collection is modified.
643
644 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
645
646         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
647         aren't always correct, and fixing them for every case is not worth the
648         negligible benefit they provide.
649         [Fixes bug #445713]
650
651 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
652
653         * DataGridView.cs: We should never add actual cells to the RowTemplate.
654         Internally, use RowTemplateFull to give us a new row with cells.
655         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
656         * DataGridViewRowCollection.cs: Use RowTemplateFull.
657
658 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
659
660         * XplatUIX11.cs: Forms without borders should be able to change its
661         size - specially they should be able to be maximized, adding the
662         respective MotifFunctions.Resize bit when setting window properties as
663         well as *not* marking the Hwnd as size fixed.
664         Fixes #444347.
665
666 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
667
668         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
669         an alpha value.
670         [Fixes bug #444348]
671
672 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
673
674         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
675         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
676         AutoSizeColumnModeChanged.
677         [Fixes bug #443609]
678
679 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
680
681         * DataGridViewRowCollection.cs: Guard against the user deleting the
682         NewRow.  Add an internal delete so we can still delete it.
683         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
684         [Fixes bug #442181]
685
686 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
687
688         * TextControl.cs: Add some order of operation to our math so
689         we don't end up with a negative height for our invalidate rect.
690         [Fixes bug #381889]
691
692 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
693
694         * Control.cs: When our enabled changes, notify our implicit children
695         controls as well as our regular controls.
696         [Fixes bug #441523]
697
698 2008-11-08  Andreia Gaita <shana@jitted.com> 
699
700         * HtmlElement.cs: Small code cleanup
701
702 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
703
704         * BindingNavigator.cs: MoveFirstItem should be enabled only if
705         position is larger than 0, not only different than 0. Also Position
706         and Count items should be enabled if the BindingSource is non null and
707         non empty.
708         Fixes #439961.
709
710 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
711
712         * TabControl.cs: Don't raise SelectedIndexChanged until we have
713         actually modified the tab collection, so TabCount will be correct.
714         [Fixes bug #441896]
715
716 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
717
718         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
719         NonSerialized to fix serialization of ListViewItem.
720
721 2008-11-04  Mike Gorse  <mgorse@novell.com>
722
723         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
724           focus change, and always call in SetFocusedItem.
725         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
726
727 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
728
729         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
730         mode.  Based on a patch by John Mortlock.
731         [Fixes bug #436790]
732
733 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
734
735         * ListView.cs: Use the UsingGroups property where needed, instead of
736         duplicating the check in other places.
737
738 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
739
740         * ListView.cs: When calculating layout, refresh the count of items
741         belonging to the default item, insteas of doing it only one time. This
742         was already working fine for icon views, not not for details.
743         Fixes #438948.
744
745 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
746
747         * ListView.cs:
748         * ListViewItem.cs:
749         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
750         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
751         does.
752         Fixes #437933.
753
754 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
755
756         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
757
758 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
759
760         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
761         #441280, patch by Mike Gorse <mgorse@novell.com>.
762
763 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
764
765         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
766         if there is no scrollbar.
767         [Fixes bug #440885]
768
769 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
770
771         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
772         patch from Andy Hume that fixes many issues with ProgressBar.
773         [See bug #440220]
774
775 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
776
777         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
778         [Fixes bug #438866]
779
780 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
781
782         * UpDownBase.cs:
783         * DomainUpDown.cs:
784         * NumericUpDown.cs: Internal events added to UpDownBase:
785         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
786         <ngao@novell.com>.
787
788 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
789
790         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
791
792 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
793
794         * ListView.cs:
795         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
796         Application.EnableVisualStyles hasn't been called.
797         Fixes part of #437933.
798
799 2008-10-31  Andreia Gaita  <shana@jitted.com>
800
801         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
802           if the container is not focused already, we need to specifically set
803           focus to the first available control, or to the form itself if there
804           are no controls.
805
806 2008-10-31  Andreia Gaita  <shana@jitted.com>
807
808         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
809         WM_ACTIVATE have been processed before returning, so it is guaranteed that
810         once it returns and the form is visible, it is actually on the screen on X11
811
812         * ContainerControl.cs: Only send focus to the control if the top container
813           is already focused. This is so that, when a form is first shown, all
814           the enter/leave events are done first before any focus stuff comes in.
815           If a control has no top container, there's an extra check on Control.Focus
816           to make sure it gets focused in this particular case.
817
818         * Control.cs: Force focus if the control is active but did not receive
819           focus after being set as active.
820
821         * MdiClient.cs: Dispose the form when closing
822
823         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
824           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
825           if the window is a top Form.
826           Reset all hwnd properties when the window has been destroyed so that
827           we don't land in any codepaths that might try to do something with it.
828           Added a bunch of debugging messages. If TRACE is defined, all X calls
829           are logged through DebugHelper. Set a few missing EntryPoint attributes.
830
831 2008-10-29  Mario Carrion <mcarrion@novell.com>
832
833         * ListViewItem.cs: Control enabled to support Accessibility:
834         - Internal events: UIATextChanged, UIASubItemTextChanged.
835         - Internal event UIATextChanged in ListViewSubItem that triggers
836         UIASubItemTextChanged.
837         * ListView.cs: Control enabled to support Accessibility:
838         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
839         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
840         - Internal event UIACollectionChanged in ColumnHeaderCollection.
841         - Internal event UIACollectionChanged in ListViewItemCollection.
842         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
843         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
844         - Internal methods: UIAGetHeaderBounds.
845
846 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
847
848         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
849         the event from the respective scrollbars.
850         Fixes #436709.
851
852 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
853
854         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
855         textbox to know whether any navigation key will be handled or not. If
856         not, don't pass the message to the textbox, and use it here instead. 
857         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
858         is more precise- than the previous AutoCompleteMatches one.
859         This should the keyboard navigation in ComboBox when using auto
860         complete modes.
861
862 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
863
864         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
865         [Fixes bug #436730]
866
867 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
868
869         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
870         overridden methods will get called.
871         * ToolStripItem.cs: Raise Click before MouseUp.
872         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
873         the item's location into account.
874         [Fixes bug #437683]
875
876 2008-10-24  Neville Gao  <nevillegao@gmail.com>
877
878         * NumericUpDown.cs: Control enabled to support accessibility.
879         [Fiexes bug #438135]
880
881 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
882
883         * TextBox.cs: Check that we actually have items no navigate, select
884         text when pressing enter, as well as handle direction keys only if
885         mode is different to Suggest or the suggest listbox is visible.
886
887 2008-10-23  Andreia Gaita  <shana@jitted.com>
888
889         * WebBrowser.cs: Use the new ContentStream property to retrieve
890           a stream encoded from the document content
891
892 2008-10-23  Andreia Gaita  <shana@jitted.com>
893
894         * HtmlDocument.cs,
895           HtmlElement.cs,
896           HtmlWindow.cs: Fix GetHashcode for null objects
897
898 2008-10-22  Andreia Gaita  <shana@jitted.com>
899
900         * HtmlDocument.cs,
901           HtmlElement.cs,
902           HtmlWindow.cs: Fix equality operators (fixes #428173)
903
904 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
905
906         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
907         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
908         [Fixes bug #436772]
909
910 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
911
912         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
913         same item with the mouse as was already selected.
914         [Fixes bug #436789]
915
916 2008-10-21  Brad Taylor  <brad@getcoded.net>
917         
918         * TextControl.cs: Break out code to get the visible range into
919           GetVisibleLineIndexes to be used in UIA code.
920         
921         * Line.cs:
922         * TextControl.cs:
923         * TextBoxBase.cs: Add comments indicating that the method or property
924           is used via reflection from UIA code.
925
926 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
927
928         * ListViewItem.cs: Match .net serialization.
929         Fixes remaining part of #417520.
930
931 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
932
933         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
934
935 2008-10-20  Mario Carrion <mcarrion@novell.com>
936
937         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
938         added: UIAToolTipRectangle.
939
940 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
941
942         * ListViewItem.cs: When deserializing enumerate over the data, instead
943         of accessing the data directly. This way we handle much better the
944         cases were we lack information.
945         Fixes #417520.
946
947 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
948
949         * ListView.cs: When removing an item from a main ListView.Items
950         collection (and not a ListViewGroupCollection.Items one), remove it
951         also from the group, as .net does. Patch by Mario Carrion (mario at
952         novell dot com).
953         Fixes #436653.
954
955 2008-10-19  Andreia Gaita  <avidigal@novell.com>
956
957         * Form.cs: Forms that get closed without a handle being created are
958         disposed in 2.0. Fixes failing FormTest.FormClose and
959         FormTest.FormClose2 on windows.
960
961 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
962
963         * ListView.cs: If both scrollbars are visible, the vertical one
964         shouldn't extend too far down.
965         Fixes #435771.
966
967 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
968
969         * DataGridView.cs: Add the ability to resize columns and rows with
970         the mouse.  Also support double-clicking to autoresize.
971         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
972         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
973         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
974         isn't shown on autoresize.
975         [Fixes bug #420193]
976
977 2008-10-17  Mario Carrion <mcarrion@novell.com>
978
979         * ComboBox.cs: Remove UIAListbox.
980
981 2008-10-17  Mario Carrion <mcarrion@novell.com>
982
983         * ComboBox.cs, ListBox.cs: Using added/removed item in 
984           OnUIACollectionChangedEvent instead of index.
985
986 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
987
988         * ComboBox.cs: When we are sorting the items, if the item's type
989         doesn't support IComparer, use a default one that compares based
990         off the item's visible text.
991         [Fixes bug #436328]
992
993 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
994
995         * ColumnHeader.cs: Invalidate ListView.header_control when setting
996         ImageIndex/ImageKey.
997         * ThemeWin32Classic.cs: When drawing the column header, draw a image
998         for the column if available, and make the required adjustments to the
999         text location.
1000         Fixes #435105.
1001
1002 2008-10-17  Neville Gao  <nevillegao@gmail.com>
1003
1004         * StatusBarPanel.cs: Control enabled to support accessibility.
1005         [Fixes bug #435988]
1006
1007 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1008
1009         * DataGridView.cs: When a user begins an edit in the 'new row',
1010         make that a real row, and add a new 'new row'.  If the user
1011         cancels the edit, remove the new 'new row' and reset everything.
1012         Also, ensure UserAddedRow and UserRemovedRow events are raised.
1013         [Fixes bug #430954]
1014
1015 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
1016
1017         * TableLayoutSettings.cs: Fix NREs when deserializing and 
1018         panel is not yet set.
1019         [Fixes bug #436199]
1020
1021 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1022
1023         * DataGridView.cs: Invalidate after deleting a row.
1024
1025 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1026
1027         * DataGridView.cs: Handle Enter and Escape keys.
1028           - Move call to EndEdit to MoveCurrentCell.
1029           - Remove call to EndEdit from navigation key routines.
1030           - Fire CellLeave and CellEnter.
1031
1032 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1033
1034         * DataGridViewCell.cs: Some fixes to the new cell border
1035         painting code.
1036
1037 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1038
1039         * ThemeEngine.cs: Enable visualstyles rendering by default
1040         (on platforms that support it).
1041
1042 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
1043
1044         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
1045         MainForm.OnLoad has completed unless DoEvents is forced.
1046         [Fixes bug #412536]
1047
1048 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
1049
1050         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
1051
1052 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
1053
1054         * Control.cs: Make our implementation of DrawToBitmap better 
1055         match WmPaint.  [Fixes bug #435579]
1056
1057 2008-10-14  Andreia Gaita  <avidigal@novell.com>
1058
1059         * WebBrowser.cs: Use DocumentElement as the document's root for the
1060         whole content. Should fix DocumentText and DocumentStream problems.
1061
1062 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
1063
1064         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
1065         these will get called in DGV.OnCollectionChanged.  Make sure 
1066         OnCollectionChanged always gets called.
1067         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
1068         from every row.  Call this in OnCollectionChanged.
1069         [Fixes bug #433669]
1070
1071 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1072
1073         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
1074         textbox if auto complete is used, since we need to navigate over it.
1075         And in this case don't pass this messages to the base impl. Also hide
1076         the auto complete list box when displaying the drop down listbox.
1077         * TextBox.cs: new internal members to expose some of the auto complete
1078         functionality to combobox.
1079
1080 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
1081
1082         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
1083         MainForm.OnLoad has completed.
1084         [Fixes bug #412536]
1085
1086 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1087
1088         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
1089         Append support to this controls. We need it to apply new patches.
1090
1091 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1092
1093         * Control.cs: When updating z order in child controls, send to back
1094         the implicit controls. Also, do it explicitly, instead of making
1095         GetAllControls return the implicit controls in a specific order, and
1096         thus avoid depending on that, which could change in the future.
1097         Fixes #434304.
1098
1099 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1100
1101         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
1102         call to StartDrag, since we must fire DragDrop/DragLeave *before*
1103         that, as .net does - instead of firing DragDrop/DragLeave *after* the
1104         call to Control.DoDragDrop has completed. This is needed since at the
1105         point of returning, we have sent related dnd ClientMessages, but we
1106         need to wait for them to fire the wmf respective ones.
1107         Fixes #325076.
1108
1109 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
1110
1111         * LinkLabel.cs: Recreate link pieces when change Padding.
1112
1113 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
1114
1115         * LinkLabel.cs: Take Padding into account when recreate link pieces.
1116         [Fixes bug #412530]
1117
1118 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
1119
1120         * Control.cs: Implement internal property PaddingClientRectangle, it will be
1121         useful for drawing controls that must take care about Padding property.
1122
1123 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
1124
1125         * BindingSource.cs: Make item_type internal so we can access it in DGV.
1126         * DataGridView.cs: Add support for autogenerating columns from a
1127         BindingSource.
1128
1129 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1130
1131         * DataGridView.cs: Comment out an exception that is getting thrown
1132         too often currently.
1133
1134 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1135
1136         * DataGridView.cs: Always rebind to the datasource, as things may
1137         have changed in it that we aren't capturing yet.
1138
1139 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1140
1141         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
1142         drawing mode.  If we are top aligned, give ourselves some top padding.
1143
1144 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1145
1146         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
1147         events on the control under the mouse pointer, instead of firing them
1148         on the window generating the dnd operation. To achieve this re-use the
1149         code used to get the window under the pointer when getting MouseMove
1150         events.
1151         Fixes #381876.
1152
1153 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1154
1155         * X11Dnd.cs: Don't check that that the window sending the dnd events
1156         is the owner of the selection. Although Gtk+ sets it that way, it's
1157         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
1158         So, just as Gtk+ does, we set our window sending the dnd events as the
1159         owner of the selection, but don't check it when receiving them. This
1160         should fix interoperability with Qt/Kde.
1161         Fixes #324251.
1162
1163 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
1164
1165         * DataGridView.cs: Make sure we take the vertical scrollbar into
1166         account when autosizing columns.
1167
1168 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
1169
1170         * DataGridView.cs: Handle sorting datetimes.
1171
1172 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
1173
1174         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
1175         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
1176         compilation warnings.
1177
1178 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1179
1180         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
1181         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
1182         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
1183         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
1184         compilation warnings.
1185
1186 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1187
1188         * DataGridView.cs, DataGridViewCell.cs, 
1189         DataGridViewCellValidatingEventArgs.cs, 
1190         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
1191         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
1192         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
1193
1194 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1195
1196         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
1197         Cleanup compilation warnings.
1198
1199 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1200
1201         * XplatUIWin32.cs: Cleanup compilation warnings.
1202
1203 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1204
1205         * PropertyGrid.cs: Cleanup compilation warnings.
1206
1207 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1208
1209         * DataGridViewRow.cs: Only clear the row background if we
1210         are going to paint a new background.
1211
1212 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1213
1214         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
1215         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
1216         use PaintBorder instead.        
1217
1218 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1219
1220         * DataGridView.cs: When CellBorderStyle is set, update the
1221         AdvancedCellBorderStyle to match.
1222
1223 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1224
1225         * DataGridViewCell.cs: Add helper methods to convert Alignment
1226         to TextFormatFlags and align rectangles.
1227         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
1228         * DataGridViewImageCell.cs: Use Alignment when painting the image.
1229
1230 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
1231
1232         * ToolTip.cs: Display tooltips only for controls on the active form.
1233         [Fixes bug #428115]
1234
1235 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1236
1237         * DataGridView.cs: Make OnCellValueNeeded internal.
1238         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
1239         user can supply their own value if they choose.
1240
1241 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1242
1243         * DataGridViewColumnHeaderCell.cs: Create a new style object
1244         so the DefaultCellStyle doesn't get changed.
1245
1246 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1247
1248         * ToolStripItem.cs: Check to make sure the owner is actually
1249         changing in InternalOwner before doing any work.  Fixes some
1250         failing tests.
1251
1252 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1253
1254         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
1255         * DataGridView.cs: Use a column header's inherited style instead
1256         of just using the default.
1257
1258 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1259
1260         * SplitContainer.cs: Raise SplitterMoved when the splitter is
1261         moved through code.
1262
1263 2008-10-01  Mario Carrion <mcarrion@novell.com>
1264
1265         * ScrollBar.cs: Internal property added: UIAThumbPosition.
1266
1267 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1268
1269         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
1270
1271 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1272
1273         * ToolStripItem.cs: When the user sets Owner, we need to remove
1274         it from its previous owner and then add it to the new owner's
1275         item collection.  Also, create InternalOwner, so we can set the owner
1276         that doesn't do this new stuff.
1277         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
1278
1279 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1280
1281         * ToolStripItem.cs: When our parent changes, recalculate our text
1282         size, since we may be getting our Font from our parent.  When our
1283         owner's Font changes, recalculate ourselves as we may be using
1284         that font.
1285
1286 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
1287
1288         * MenuAPI.cs: Select the first option of a popup when opening the popup via
1289         return key. [Fixes bug #413792].
1290
1291 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1292
1293         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
1294         ambient properties.  (Get their value from their parents if
1295         values haven't been set.)
1296
1297 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1298
1299         * ToolStripSystemRenderer.cs: Call overridden methods' bases
1300         after our logic, so users can do painting by handling the events.
1301         Currently, we draw over any user painting.
1302
1303 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1304
1305         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
1306         after our logic, so users can do painting by handling the events.
1307         Currently, we draw over any user painting.
1308
1309 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
1310
1311         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
1312
1313 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
1314
1315         * TreeNode.cs, TreeView.cs: Move logic that determines the node
1316         image to draw to TreeNode.  Give Index/Keys put on the node
1317         precedence over the global one for the TreeView.
1318
1319 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
1320
1321         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
1322
1323 2008-09-29  Mario Carrion <mcarrion@novell.com>
1324
1325         * ListBox.cs: Index fixed.
1326
1327 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1328
1329         * TabControl.cs: When expanding the tab -because it's selected now-,
1330         using Right alignment, instead of adding some selected delta value to
1331         the X origin, substract it, so it gets a location adjacent to the panel, 
1332         instead of be more separated.
1333         Fixes #409170.
1334
1335 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
1336
1337         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
1338         own copies of them.
1339
1340 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1341
1342         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
1343         as well as the other static fields, to avoid using their previous
1344         values my mistake when handling the dnd events. This should avoid
1345         handling any status event after the drop has been finalized/cancelled.
1346
1347 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1348
1349         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
1350         operation, instead of waiting until we get any movement - this will
1351         help us to have the data available in case no movement was detected
1352         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
1353         Finally add a windows.forms-only fallback to fire the mentioned events
1354         if no movement at all was detected, just like .net does.
1355         Fixes #381876.
1356
1357 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
1358
1359         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
1360         return early if the text is empty because the icon doesn't get
1361         drawn then.  [Fixes bug #428113]
1362
1363 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1364
1365         * FileDialog.cs: Implement basic support for sorting by columns in
1366         Details view. Patch by Eric Petit.
1367         Fixes #428006.
1368
1369 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1370
1371         * ThemeWin32Classis.cs: When drawing gridlines take into account the
1372         case where ListView.ItemSize hasn't been computed, and provide a
1373         fallback as well. This prevents a division by 0.
1374
1375 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1376
1377         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
1378         correctly draw tooltip backgrounds.
1379
1380 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1381
1382         * ImageList.cs: Change CopyTo implementation to ensure clones are
1383         created of our images.
1384         [Fixes bug #409169]
1385
1386 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1387
1388         * Control.cs: When setting fonts, we need to ensure we change our
1389         reference to the new font object, even if it represents the same
1390         font as before.  If we don't, the original font can get disposed
1391         and we will still try to use it.
1392         [Fixes bug #386450]
1393
1394 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1395
1396         * FileDialog.cs: Take into account Tile view when selecting the view
1397         (2.0 profile).
1398
1399 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1400
1401         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
1402         the item bounds, since we can't iterate over them in virtual mode.
1403         Also fix wrong calculation of the gridlines when using scrolling.
1404         Fixes #400390.
1405
1406 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1407
1408         * XplatUIX11.cs: When handling EnterNotify events, take into account
1409         both the public and implicit controls when trying to detect the
1410         grab/ungrab process. This should fix ListView selection in Details
1411         view.
1412
1413 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1414
1415         * TreeView.cs: Redraw the whole node area when the selected node changes.
1416         Things like state images were not getting redrawn because the invalid
1417         rectangle was too small.
1418         [Fixes bug #428211]
1419
1420 2008-09-23  Mario Carrion  <mcarrion@novell.com>
1421
1422         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
1423         [Fixes bug #428993]
1424
1425 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1426
1427         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
1428         [Fixes bug #428114]
1429
1430 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1431
1432         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
1433         [Fixes bug #427884]
1434
1435 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1436
1437         * StatusBar.cs: Add tooltip support.
1438         [Fixes bug #428113]
1439
1440 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1441
1442         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
1443         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
1444         hlaustralia.com.au).
1445         Fixes #425360.
1446
1447 2008-09-23  Neville Gao  <nevillegao@gmail.com>
1448
1449         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
1450         [Fixes bug #419079]
1451
1452 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
1453
1454         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
1455         [Fixes bug #428107]
1456
1457 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1458
1459         * ListView.cs: Don't do anything when EnsureVisible is called inside a
1460         BeginUpdate/EndUpdate block.
1461         Fixes #425049.
1462
1463 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1464
1465         * ListViewItem.cs: The semantics for the public .ctor of
1466         ListViewSubItemCollection need us to already have a Text value for the
1467         item, which in our implementation have as available *after* adding the
1468         first sub item. So create an internal .ctor that satisfies our needs
1469         and let the public .ctor have the same semantics as .net.
1470         Fixes #427561.
1471
1472 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1473
1474         * ListControl.cs: Changes in Formatting related values should call
1475         RefreshItems, as .net does.
1476         * ComboBox.cs:
1477         * ListBox.cs: In the respective overrides of RefreshItems calculate
1478         layout as well as refreshing - again, this is what .net does.
1479         Fixes #426168.
1480
1481 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1482
1483         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
1484         since we are already doing that when we change the value of the
1485         scrollbar or force the call to ScrollWindow in the same method. This
1486         way we don't cause a Invalidate call for all the listbox bounds for
1487         methods calling UpdateTopItem with an already updated top item. This
1488         was happening specially calling EnsureVisible with already visible
1489         items.
1490
1491 2008-09-18  Mike Gorse <mgorse@novell.com>
1492
1493         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
1494           XplatUIStructs.cs: Added KeyFilter
1495         [Fixes bug #427039]
1496
1497 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1498
1499         * RelatedPropertyManager.cs: The properties returned by
1500         GetItemProperties should be that ones of the *actual* object returned
1501         by the property, not the property type - this is very special when the
1502         property exposes a type, but the returned object actually is a child
1503         class and implements more functionality and properties.
1504
1505 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1506
1507         * Binding.cs: Don't look for the property in the data source if the
1508         passed string is empty.
1509
1510 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
1511
1512         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
1513         fix unused variable warnings.
1514
1515 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
1516
1517         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
1518         [Fixes bug #427073]
1519
1520 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
1521
1522         * XplatUIX11.cs: 
1523          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
1524          leads to the window manager overriding our border style and zorder. 
1525          - Allow the activation of non-modal forms, which are children of a 
1526          modal form.
1527         [Fixes bug #423417]
1528
1529 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
1530
1531         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
1532         ask the window manager to do the work instead of changing the property 
1533         directly.
1534         [Fixes bug #423417]
1535
1536 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
1537
1538         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
1539         AddNew to fix some navigation for empty datasets. [Fixes #323053]
1540
1541 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
1542
1543         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
1544         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
1545         border and fixes some drawing issues when resize form.
1546
1547 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
1548
1549         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
1550         
1551         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
1552         AcceptButton.
1553
1554 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
1555
1556         * TextBoxBase.cs: For standard textbox the scrollbars are always 
1557         visible if Multiline is true.
1558         [Fixes bug #426896]
1559
1560 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
1561
1562         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
1563         patch.
1564         
1565 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
1566
1567         [Fixes most od DBNull and HeadersVisible problems]
1568         
1569         * DataGrid.cs:
1570         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
1571         returns the value that we need.
1572         - Fixed FromPixelToColumn method that return zero for first     column and for
1573         row header cell, now it returns -1 for row header cell.
1574         - Fixed HitTest to check row header cell in column header area, it now
1575         returns HitTestType.None. [Fixes #322864]
1576         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
1577         checks for RowHeadersVisible and other things.
1578         - If an exception occurs when setting CurrentCell and user type 'yes' in
1579         message dialog, invalidade current and new cell and set setting_current_cell
1580         to false to prevent future errors. [Partially fixes #323050]
1581
1582         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
1583         value (SetColumnValueAtRow), it must be done by grid to properly show 
1584         messages. [Fixes #323050]
1585
1586         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
1587         better draw column and row header. Also dont draw anything when column
1588         headers is not visible.
1589
1590 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1591
1592         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
1593         logic.
1594
1595 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1596
1597         * TreeView.cs: Don't start editing a node on right click, only
1598         left click.
1599
1600 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1601
1602         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
1603         disabled over a year ago.
1604         * Form.cs: Wrap calling Load in a try/catch because it can happen
1605         before the catch-all one in NativeWindow.
1606         [Fixes bug #425414]
1607
1608 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1609
1610         * ToolStripDropDownMenu.cs: Calculate the connected area better
1611         to take into account when the drop down is not directly under the
1612         owner item.
1613         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
1614
1615 2008-09-16  Mario Carrion <mcarrion@novell.com>
1616
1617         * ScrollBar.cs: New event added: UIAValueChanged, generated when
1618           LargeChange, SmallChange, Maximum or Minimum values are changed.
1619         [Fixes bug #426464]
1620
1621 2008-09-16  Mario Carrion <mcarrion@novell.com>
1622
1623         * ErrorProvider.cs: Component enabled to support accessibility.
1624         * Application.cs: Updated to Initialize UIA in ErrorProvider.
1625         [Fixes bug #426459]
1626
1627 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1628
1629         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
1630         so we don't highlight on first focus.
1631         [Fixes bug #360869]
1632
1633 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1634
1635         * TextControl.cs: Correctly calculate the height of the area we 
1636         need to invalidate when we have started scrolling and viewport_y
1637         is used.  [Fixes bug #387608]
1638
1639 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1640
1641         * TextControl.cs: When getting the SelectedText, don't add in
1642         NewLine characters, as they are already contained in the lines.
1643         [Fixes bug #388115]
1644
1645 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1646
1647         * TextBoxBase.cs: Replace the buggy Lines setter with one that
1648         simply concats the lines and send it to the Text setter.
1649         [Fixes issue #2 and #3 of 388115]
1650
1651 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1652
1653         * Binding.cs: The default value of DataSourceNullValue should be
1654         Convert.DBNull actually. Also, the NullValue should only be used *if*
1655         itself is not null, and use the null/Convert.DBNull value instead.
1656
1657 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1658
1659         * TextControl.cs: Add a method to convert a string newline to the
1660         newline enum.
1661         * TextBoxBase.cs: When the user hits enter, insert a native newline.
1662         [Fixes part 1 of bug #388115]
1663
1664 2008-09-15  Mario Carrion <mcarrion@novell.com>
1665
1666         * ToolTip.cs: UnPopup event set to internal to match public API.
1667
1668 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1669
1670         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
1671         have to remove the Ctrl in order for the focus moving code to kick in.
1672         [Fixes bug #426170]
1673
1674 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1675
1676         * CheckedListBox.cs: Return the real item index from Add.  It may not be
1677         the last item if the list is sorted.  The user can change the NewValue in
1678         the ItemCheck event, we need to use that value if so.
1679         * ListBox.cs: Return the real item index from a sorted Add.
1680         [Fixes bug #426166]
1681
1682 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
1683
1684         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
1685         happen that the icons from the theme is missing or the particular size 
1686         unavailable.
1687         [Fixes bug #424981]
1688
1689 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1690
1691         * Binding.cs: When assigning null or DBNull depending on value/ref type,
1692         use IsValueType instead to get the precise desired value.
1693         Fixes #424276.
1694
1695 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1696
1697         * TreeNodeCollection.cs: When adding a new node to an opened node,
1698         we have to invalidate everything below the parent node because
1699         every node scoots down and we have to repaint them.
1700         [Fixes bug #411386]
1701
1702 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1703
1704         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
1705         property into account when drawing.
1706         [Fixes bug #416064]
1707
1708 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1709
1710         * ListBox.cs: When calling Items.Clear(), call
1711         SelectedIndexCollection.ClearCore instead of normal Clear method, to
1712         not fire any Selected*Changed event - this is done to match .net and
1713         don't have invalid values when changing the DataSourceProperty.
1714         Fixes #424273.
1715
1716 2008-09-12  Mario Carrion  <mcarrion@novell.com>
1717
1718         * HelpProvider.cs: Control enabled to support accessibility.
1719         * Application.cs: Updated to Initialize UIA in HelpProvider.
1720         [Fixes bug #425988]
1721
1722 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1723
1724         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
1725         make the dialog TopMost as well.
1726         [Fixes bug #425984]
1727
1728 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1729
1730         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
1731         clipboard data better.
1732         [Fixes bug #414446]
1733
1734 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1735
1736         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
1737         TextChanged and SelectionChanged events fire in the same order as .Net.
1738         [Fixes bug #425725]
1739
1740 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1741
1742         * DataGridView.cs: When sorting a column, if it only contains numbers,
1743         do a numeric sort instead of a string sort.
1744         [Fixes bug #425849]
1745
1746 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1747
1748         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
1749         against NRE's when the settings have a null panel.
1750         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
1751         the panel gets set.
1752         [Fixes bug #425647]
1753
1754 2008-09-11  Mario Carrion  <mcarrion@novell.com>
1755
1756         * ToolTip.cs: Control enabled to support accessibility.
1757         * Application.cs: Updated to Initialize UIA in ToolTip.
1758         [Fixes bug #425277]
1759
1760 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1761
1762         * Control.cs: Make the custom Enumerator internal to fix build.
1763
1764 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1765
1766         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
1767         already in edit mode, begin edit mode.  Generally edit mode isn't
1768         started until the second click, but CheckBoxes are special.
1769
1770 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1771
1772         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
1773         since that can be set to anything.  Always add them to the Control's
1774         parent.  [Fixes bug #416058]
1775
1776 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1777
1778         * ListView.cs: Use a custom enumerator for ListViewItemCollection
1779         so items can be deleted in a foreach.
1780         [Fixes bug #425342]
1781
1782 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1783
1784         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
1785         Store the user set explicit height so that the row can be AutoSized
1786         and then when AutoSize is turned off, it can get its original size back.
1787         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
1788         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
1789         rows' heights back to their explicit values.
1790         [Fixes bug #415780]
1791
1792 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1793
1794         * DateTimePicker.cs: When getting focus, select the checkbox if we are
1795         already showing it. Also, don't change its value when pressing space
1796         if the checkbox is not visible (ShowCheckBox as false). Finally, the
1797         checkbox should remain selected as long as Checked is false, and the
1798         other parts are disabled.
1799         Fixes #424267.
1800         
1801 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1802
1803         * MessageBox.cs: Handle shortcut keys to dialog buttons.
1804         [Fixes bug #425425]
1805
1806 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1807
1808         * Binding.cs: When the value retrieved from the control property is
1809         null, don't return Convert.DBNull for Nullable instances, since they
1810         can *actually* get a null value.
1811         Fixes #424265.
1812
1813 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
1814
1815         * Control.cs: Add an internal field to force doublebuffering regardless
1816         of what the public mechanisms are set to.  This is because MS's native
1817         controls are doublebuffered even though their .Net bits are set to false.
1818         * ProgressBar.cs: Set force_double_buffer to true.
1819         [Fixes bug #406595]
1820
1821 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
1822
1823         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
1824         the cell template.
1825         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
1826         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
1827         without EditingControls, paint background selection for types without
1828         EditingControls, reset the EditingCellValueChanged flag when the
1829         cell's value is committed.
1830         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
1831         have EditingControls, remove a double call to a cell's OnContentClickInternal,
1832         don't do cell changing logic in OnMouseDown if the cell didn't change.
1833         [Fixes bug #420351]
1834
1835 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1836
1837         * DateTimePicker.cs: Fix the edition of am/pm specifier.
1838
1839 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
1840
1841         * TextControl.cs: Add "&" to the list of valid characters in a URL.
1842
1843 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1844
1845         * DateTimePicker.cs: Before incrementing or decrementing any part in
1846         the textbox, end any current edit. Also when ending the current edit
1847         use the editing_part_index field instead of the current selected
1848         value, since they can be out of synch, and we really need to work on
1849         the *real* current edit part. Finally when PartData.Selected changes,
1850         always try to end any ongoing edit.
1851         This should fix some small errors handling mouse navigation and
1852         increase/decrease operations.
1853
1854 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1855
1856         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
1857         respectively) should handled different, since the 12 hours format
1858         needs the value typed by the user to be adjusted depending on the
1859         a.m/p.m value, so it is preserved, and only changed when the value
1860         reaches the 12 value (when it changes from a.m to p.m).
1861         Fixes part of #416555.
1862
1863 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
1864
1865         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
1866         * ToolStripDropDownItem.cs: Don't fire events and such again if
1867         ShowDropDown is called on an already dropped down item.
1868         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
1869         subitems, the user may add some in the DropDownOpening event.
1870         [Fixes bug #417877]
1871
1872 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
1873
1874         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
1875         [Fixes bug #424270]
1876
1877 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
1878
1879         * MdiClient.cs: When looking for menustrips on a child form to merge,
1880         look inside ToolStripContainers.
1881         [Fixes bug #424264]
1882
1883 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
1884
1885         * ErrorProvider.cs: Unbreak my previous commit.
1886
1887 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
1888
1889         * ErrorProvider.cs: Icon should always be 16x16.
1890         [Fixes bug #424380]
1891
1892 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
1893
1894         * GridEntry.cs: Invalidate the child items cache when the property 
1895         value changes.
1896
1897 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
1898
1899         * GridEntry.cs, PropertyGridView.cs: 
1900            - Update the ReadOnly detection and rendering to finally hopefully 
1901            match the one of MSFT.
1902            - Niceify and move the debug CWLS.
1903         [Fixes bug #409028]
1904
1905 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1906
1907         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
1908         since we are already calling Invalidate for the entire control when
1909         needed - and call Redraw() when size changes, since we need to paint
1910         there by ourselved and not anymore from the mentioned method. 
1911         This should improve the layout process. Also clean some not needed calls 
1912         here and there.
1913
1914 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
1915
1916         * MenuAPI.cs: Add a null check to the Alt-F4 code.
1917         [Fixes bug #420309]
1918
1919 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
1920
1921         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
1922         [Fixes bug #423040]
1923
1924 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
1925
1926         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
1927         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
1928         on item expansion. Improves performance and fixes bug #417955.
1929         [Fixes bug #417955]
1930
1931 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
1932
1933         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
1934         fix the build.
1935
1936 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1937
1938         * TextControl.cs: Add "_" to the list of valid characters in a URL.
1939         [Fixes bug #423408]
1940
1941 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1942
1943         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
1944         region gets set.
1945         [Fixes bug #414166]
1946
1947 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1948
1949         * FontDialog.cs: When storing our font size from the starting font,
1950         use SizeInPoints instead of Size in case Size is a different unit
1951         from Points.
1952         [Fixes bug #416489]
1953
1954 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1955
1956         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
1957         don't use it for anything else, check if a directory is highlighted.
1958         If it is, navigate into it.
1959         [Fixes bug #422087]
1960
1961 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1962
1963         * Binding.cs: When acquiring a BindingManagerBase for the first time,
1964         check that the specified property actually exists in the data source,
1965         and throw an ArgumentException if that's not the case - this is only
1966         done for this scenario, since for later cases (such Position changes)
1967         we throw different exceptions (match .Net).
1968
1969 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
1970
1971         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
1972           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
1973           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
1974           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
1975           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
1976           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
1977           properties.
1978           [Fixes bug #418684]
1979
1980 2008-09-03  Neville Gao  <nevillegao@gmail.com>
1981
1982         * StatusBar.cs: Control enabled to support accessibility.
1983         [Fixes bug #419079]
1984
1985 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1986
1987         * Binding.cs: When connecting the event handler for the "Changed"
1988         event for the property, only do it for PropertyManager, and not for
1989         CurrencyManager - this is exactly what does .Net, totally ignoring any
1990         change in the property of the elements of a list.
1991         Fixes the tests.
1992
1993 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
1994
1995         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
1996         to Windows when creating a window, as we fake MDI stuffs.
1997         [Fixes bug #421858]
1998
1999 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
2000
2001         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
2002         change takes effect.
2003
2004 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
2005
2006         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
2007         [Fixes bug #419001]
2008
2009 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
2010
2011         * DataGridView.cs: Raise CellContentClick event.
2012         [Fixes part of bug #420351]
2013
2014 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2015
2016         * ScrollBar.cs: Control enabled to support accessibility.
2017         [Fixes bug #416759]
2018
2019 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2020
2021         * ComboBox.cs: Control enabled to support accessibility.
2022         [Fixes bug #416663]
2023
2024 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2025
2026         * ListBox.cs: Control enabled to support accessibility.
2027         [Fixes bug #416640]
2028
2029 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
2030
2031         * ComboBox.cs: Don't suppress the TextChanged event when changing
2032         the SelectedIndex.
2033         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
2034         and re-raise it.
2035         [Fixes bug #420673]
2036
2037 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
2038
2039         * ErrorProvider.cs: Fix a regression NRE when setting properties
2040         for a control before it has a parent.
2041         [Fixes bug #420305]
2042
2043 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2044
2045         * Binding.cs: Use the BindingManagerBase.Current value to obtain
2046         connect the property "Changed" event, instead of using the data
2047         sources - this is useful when the property specifies actually a
2048         multiple objects path.
2049         Fixes part of #417973.
2050
2051 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2052
2053         * RelatedPropertyManager.cs: PropertyManager instances associated to a
2054         nested properties should return not the properties of the data source
2055         itself, but the properties of the type of a specific property in the
2056         data source - match .net.
2057
2058 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
2059
2060         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
2061         AddRange overloads into AddItems method, and added missing NULL check.
2062         Added extra argument check to RemoveAt for compatibility with MS. 
2063         Modified IList implementation of Add, Contains, IndexOf and Remove to
2064         throw an ArgumentException if item is not an int. Modified IList.Insert
2065         to throw a NotSupportException instead of an Exception. Implemented
2066         ICollection.
2067         (ObjectCollection): To avoid duplication, use AddItems method from
2068         AddRange overloads. On 1.0 profile, first perform NULL check on items
2069         in AddItems.
2070
2071 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
2072
2073         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
2074          #419087.
2075
2076 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
2077
2078         * X11Keyboard.cs : comment out some Console.WriteLine().
2079
2080 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
2081
2082         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
2083           even if premises are not filled. Also XLookupString() was not
2084           receiving correct input, which blocked precise input handling
2085           on non-XIM mode.
2086
2087 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2088
2089         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
2090         type of delegate, instead of EventHandler - this was causing a type
2091         cast exception in all apps handling this event.
2092         Fixes #417876.
2093
2094 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
2095
2096         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
2097         ShowDropDown to give the user a chance to dynamically add
2098         drop down items.  [Step 1 of fixing bug #417877]
2099
2100 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2101
2102         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
2103         had any mouse motion since the call to StartDrag, to match the dnd
2104         behaviour of .net.
2105         Fixes part of #381876.
2106
2107 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2108
2109         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
2110         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
2111         Also, if we are actually moving into a different window after
2112         grabbing, generate a LeaveNotify event for the previous window, since
2113         we need to fire the leave events until the grab ends, not when
2114         actually moving outside of the control.
2115
2116 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2117
2118         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
2119         events only for client windows was wrong - we need to compare the
2120         client window against the window receiving the EnterNotify event, not
2121         against zero (since client window is never Zero, btw).
2122         This prevents having unnecessary handling of EnterNotify events for
2123         non-client windows when a gran begins.
2124
2125 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2126
2127         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
2128         MouseMove/MotionNotify events at all (which should only happen after
2129         MouseUp/ButtonRelease, as .Net does).
2130         This avoids firing an extra and unnecessary MouseMove event just after
2131         every MouseDown event.
2132
2133 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2134
2135         * LinkLabel.cs: Always clear any previous links when LinkArea
2136         is set.  [Fixes bug #410709]
2137
2138 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2139
2140         * ToolStripProfessionalRenderer.cs: Revert last change.
2141         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
2142         for ToolStripDropDownBackground.
2143
2144 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2145
2146         * ToolStripProfessionalRenderer.cs: Use Window color for the 
2147         background of dropdowns to match .Net when the user is not
2148         using the default white.  [Fixes bug #418108]
2149
2150 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
2151
2152         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
2153           it caused timer registration twice. Fixed bug #418107.
2154
2155 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2156
2157         [Correction: This is the actual change to X11Dnd issue, not the
2158         previous one, which was actually a different issue.]
2159
2160         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
2161         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2162         when the pointer is actually in motion, but only when the pointer
2163         seems to stop (as .net does).
2164         Fixes part of #381876.
2165
2166
2167 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
2168
2169         * ListBox.cs: Fix CopyTo implementation.
2170         [Fixes bug #409169]
2171
2172 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
2173
2174         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
2175         drawing a ComboBox's background.  Fixes bad disabled rendering when
2176         the control is not at 0,0.
2177         [Fixes bug #416063]
2178
2179 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
2180
2181         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
2182         ComponentModel layer, which will properly prioritize the attributes.
2183         Avoids wrong prioritization of duplicate attributes when retrieving 
2184         the converter and editor.
2185         [Fixes bug #417729]
2186
2187 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2188
2189         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
2190         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2191         when the pointer is actually in motion, but only when the pointer
2192         seems to stop (as .net does).
2193         Fixes part of #381876.
2194
2195 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
2196
2197         * GridEntry.cs: Perform stricter check for the ParentEntry's 
2198         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
2199         implementation.
2200         [Fixes bug #417567]
2201
2202 2008-08-14  Geoff Norton  <gnorton@novell.com>
2203
2204         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
2205         Fixes #396983.  Properly fix ActiveWindow trackin and do not
2206         prematurely show POPUP windows.
2207
2208 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2209
2210         * XplatUIX11.cs: Handle the obscured regions while scrolling using
2211         GraphicsExpose event, processing it just after we copy the scrolled
2212         area. This ensures that the next calls to ScrollWindow will copy
2213         regions already updated, and the scrolling will be smooth. Also remove
2214         the code that was trying to detect the obscured regions, since we are
2215         not using it anymore (too slow).
2216
2217 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2218
2219         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
2220         MultiExtended mode, by separating some logic between the ctrl/shift
2221         handling. Also ignore any MouseMove events generated together with
2222         MouseDown events - we are only interested in the real motion event.
2223         Fixes part of #414963.
2224
2225 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
2226
2227         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
2228         is selected.  [Fixes bug #414143]
2229
2230 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
2231
2232         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
2233         and not the parent one (the propertyowner). Fixes the behavior of 
2234         GetConverter/GetEditor.
2235         [Fixes bug #415452]
2236
2237 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
2238
2239         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
2240         [Fixes part of bug #415452]
2241
2242 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
2243
2244         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
2245         GridEntry, not the current.
2246         [Fixes bug #413896]
2247
2248 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
2249
2250         * TextBoxBase.cs: De-internalize max_length field.
2251         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
2252         share the same logic.
2253         [Fixes bug #414454]
2254
2255 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2256
2257         * ListBox.cs: Selection changes made in the MouseDown handler should
2258         use the *Core versions of selection in SelectedIndices collection,
2259         since the SelectedIndexChanged/SelectedValueChanged events are fired
2260         until we get a MouseUp event, and thus we need to separate the logic
2261         from the events, as done in the keyboard navigation. Also, fire those
2262         selection events from keyboard navigation in SelectionMode.None, even
2263         if we don't have a selection, as .Net does.
2264
2265 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
2266
2267         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
2268         last change introduced when an item is clicked but isn't on a toolstrip.
2269
2270 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2271
2272         * ListBindingHelper.cs: When looking for an object's properties, check
2273         if it implements ICustomTypeDescriptor, in which case we should
2274         resolve the propertu based on its GetProperties method, not in its
2275         actual properties. This is what .Net seems to do.
2276         Fixes a UsingWebBrowser problem during initialization.
2277
2278 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2279
2280         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
2281         sitting on a MenuStrip.
2282
2283 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2284
2285         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
2286         no children with the keyboard, we need to release the keyboard capture.
2287         [Fixes bug #413567]
2288
2289 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2290
2291         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
2292         no children with the keyboard, we need to release the keyboard capture.
2293         [Fixes bug #413567]
2294
2295 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
2296
2297         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
2298         the GTK+-based implementation of VisualStyles.
2299         * ThemeWin32Classic.cs: Exposed various layout values for use in the
2300         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
2301         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
2302         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
2303         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
2304         TrackBarHorizontalTrackHeight.
2305
2306 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
2307
2308         * TabControl.cs: Added hot style handling for the scroll buttons.
2309         right_slider_state, left_slider_state are now of type PushButtonState to
2310         allow for a hot state. Added tracking of the mouse button being held down
2311         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
2312         LeftScrollButtonArea.
2313         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
2314         TabControlGetRightScrollRect.
2315
2316 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2317
2318         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
2319         runtime errors.
2320
2321 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2322
2323         * Form.cs: Ensure that we reset the shown_raised flag after 
2324         the form is closed, so that we raise the show events the next 
2325         time the form is shown.
2326         [Fixes bug #413141]
2327
2328 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2329
2330         * Form.cs: Ensure closing events are raised only once.
2331         [Fixes bug #413143]
2332
2333 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2334
2335         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
2336         so that we can successfully generate the LParam in-place instead of 
2337         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
2338         navigation for menus.
2339
2340 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2341
2342         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
2343         'navigating'. Fixes bug #411356.
2344
2345 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2346
2347         [Fixed remaining issues of #406773 (#1)]
2348         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
2349
2350         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
2351         MainMenu (already done) and ContextMenu creation.
2352
2353         * ContextMenu.cs: Create tracker on construction. 
2354
2355 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2356
2357         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
2358         possible to instantiate MenuTracker without GrabControl.
2359
2360 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2361
2362         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
2363
2364         * MainMenu.cs: Set GrabControl on SetForm using current form.
2365
2366 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2367
2368         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
2369
2370 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2371
2372         * MenuAPI.cs: Check if menu is activated before deactivate it in 
2373         ProcessShortcut.
2374
2375 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2376
2377         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
2378         ColumnStyle.cs: 
2379         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
2380          - One style instance can only participate in a single style collection.
2381          - Styles can request their owner to layout whenever their properties 
2382          change.
2383          [Fixes bugs #412583 and #412582]
2384
2385 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
2386
2387         * X11Keyboard.cs: Implement the generation of the LParam for 
2388         all keyboard messages.
2389         [Fixes bug #378728]
2390
2391 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
2392
2393         * ListBox.cs: Don't let the user set TopIndex so high that it
2394         scrolls up far enough to show empty items.
2395         [Fixes bug #412728]
2396
2397 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2398
2399         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
2400         (I'm an idiot and forgot to commit the actual changes, as well as
2401         specify the right file, which is this one, not ListView.cs).
2402
2403 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2404
2405         * ListView.cs: Don't draw ListViewSubItem instances from
2406         DrawListViewItem - we need to reuse the main item's drawing for the
2407         first sub item in case owner draw is true, but wants the system to
2408         do the default draw for the first sub item, without incurring in a
2409         recursion problem.
2410         Fixes #410880.
2411
2412 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
2413
2414         * ToolStripButton.cs: Update Checked for CheckOnClick before
2415         raising the Click event.  [Fixes bug #412505]
2416
2417 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
2418
2419         * Form.cs: Remove some seems leftover code for non-TopLevel's 
2420         CreateParams, which is breaking ClientSize sizing, because it 
2421         removes the border window styles.
2422
2423 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
2424
2425         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
2426         changes.
2427
2428 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
2429
2430         * WebBrowser.cs: Removed debug output.
2431
2432 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
2433
2434         * FileDialog.cs: Apply patch from Ernesto to clean up some
2435         dialog messages.
2436
2437 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2438
2439         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
2440         that the change has an immediate effect.
2441
2442 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2443
2444         * ScrollableControl.cs: Update PerformLayout calls to include 
2445         provide the name of the property that changed.
2446
2447 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2448
2449         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
2450         location. Fixes drawing of border and cell borders if scrollable.
2451
2452 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2453
2454         * ScrollableControl.cs: Perform layouting after the AutoScroll 
2455         properties have changed, so that the changes have immediate 
2456         effect.
2457         [Fixes bug #409090]
2458
2459 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2460
2461         * XplatUIX11.cs: Non Client area is actually Client such in the 
2462         case of NotifyIcon, so double check WholeWindow == ClientWindow 
2463         when adding an expose.
2464         [Fixes bugs #324237 and #357022]
2465
2466 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2467
2468         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
2469         repaint the cell borders.
2470
2471 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2472
2473         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
2474         disposal to avoid unexpected ObjectDisposedExceptions.
2475
2476 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
2477
2478         * TableLayoutPanel.cs: Layout on Row/Column count change.
2479
2480 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
2481
2482         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
2483         bug #409351.
2484         * PictureBox.cs: When ImageLocation is set to null or an empty string,
2485         only set image to null if it was previously initialized from an url
2486         (or using ImageLocation). In ImageLocation, load specified image
2487         asynchronously if WaitOnLoad is false. Added support for local file
2488         paths to LoadAsync, and added missing argument check.
2489
2490 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2491
2492         * DateTimePicker.cs: 
2493         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
2494         order to set the value as required (which means: when selection
2495         changes for a part being edited, and not before that if not needed).
2496         Also use an enum to describe which part are we using, and use the
2497         selection as a property in PartData, in order to notify the
2498         DateTimePicker owner that we need to end the current edit.
2499         Fixes #383462.
2500
2501 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
2502
2503         * PropertyGridTextBox.cs: Validation should be performed only if we 
2504         are focused. We can lose focus for example if the Return key is used 
2505         to set the entry and there is an error. When the message box is 
2506         displayed we would have validate on click in the message box.
2507
2508 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
2509
2510         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
2511         in order to determine that we are expandable is wrong. There was a bug, 
2512         now fixed, in TypeDescriptor that was causing the wrong converter to be 
2513         returned which caused GetPropertiesSupported == false in most cases.
2514         [Fixes bug #409027]
2515
2516 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
2517
2518         * ImageList.cs: Fix ICollection.CopyTo implementation for
2519         ImageListCollection.  [Fixes bug #409169]
2520
2521 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2522
2523         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
2524         WorkingArea so that menus can appear on the second monitor
2525         when one has dual monitors.
2526
2527 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2528
2529         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
2530         Fixes build.
2531
2532 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2533
2534         * TextBox.cs: Implement navigation support for auto complete in
2535         TextBox, as well as refactor the code to show the auto complete window
2536         when receiving a WM_CHAR message, instead of TextChanged, since
2537         autocomplete itself should be able to set the Text a lot of times and
2538         finally only typing should show it, not changes from code.
2539
2540 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2541
2542         * TabControl.cs: When expanding the selected tab, don't adjust the
2543         width if alignment is Right, since it has a different offset than 0,
2544         as opposed to the other alignments.
2545         Fixes the selected tab not being painted at all with alignment = Right
2546         and using FillToRight size mode.
2547
2548 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2549
2550         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
2551
2552 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2553
2554         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
2555         values from the textbox to the boundary values.  [Fixes bug #409026]
2556
2557 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2558
2559         * TreeNodeCollection.cs: We were copying one too many elements when
2560         doing our array copy.  Fixes a crash when RemoveAt is called.
2561         [Fixes bug #408999]
2562
2563 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2564
2565         * TabControl.cs: When doing the layout and need to call FillRow -using
2566         FillToRight size mode-, use the overload receiving a bool param
2567         indicating whether we need to do a vertical or horizontal calculation.
2568         Fixes part of #399583.
2569
2570 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2571
2572         * TextBox.cs: When painting, use the value returned by
2573         GetLastVisibleItem instead of using the cached last_item field, since
2574         there could be a desynchronization between the layout and the
2575         painting. Fixes a AOOR exception in auto complete mode.
2576
2577 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
2578
2579         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
2580         NonClientAreaEnabled until our VisualStyles is modified to allow it.
2581
2582 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
2583
2584         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
2585
2586 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2587
2588         * TextBox.cs: When focus is lost, if the auto complete listbox is
2589         visible, hide it.
2590
2591 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
2592
2593         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
2594         tracking size for tool windows.
2595         * Theme.cs, ThemeWin32Classic.cs : Extracted
2596         ManagedWindowSpacingAfterLastTitleButton.
2597
2598 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
2599
2600         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
2601         They are bit-rotted and have always been listed as "unsupported".
2602
2603 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
2604
2605         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
2606
2607 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
2608
2609         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
2610
2611 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2612
2613         * ListBox.cs: Make sure last_item_visible gets reset before we try
2614         to do a layout due to scrollbars appearing or disappearing.
2615         [Fixes bug #408139]
2616
2617 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2618
2619         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
2620         for different window themes.  [Fixes bug #339140]
2621
2622 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2623
2624         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
2625         in ManagedWindowBorderWidth.
2626
2627 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2628
2629         * InternalWindowManager.cs: Change MouseMove to take a point, so
2630         we can use the same point later on.
2631         * MdiWindowManager.cs: Store point sent to MouseMove so we can
2632         later reset to it.  On Windows, the Cursor.Position had already
2633         changed by the time we were resetting to it.
2634         [Fixes bug #363239]
2635
2636 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2637
2638         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
2639         are inactive.
2640         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
2641         user requested it.
2642         [Fixes bug #398686]
2643
2644 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2645
2646         * MdiWindowManager.cs: Double-clicking on the title bar should not
2647         maximize a MDI form if MaximizeBox = false.
2648
2649 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2650
2651         * ThemeVisualStyles.cs: Fixed a warning.
2652
2653 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2654
2655         * ThemeVisualStyles.cs: Fixed warnings and formatted.
2656
2657 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2658
2659         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
2660         implementation produces a better result.
2661
2662 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2663
2664         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
2665         windows.
2666
2667 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2668
2669         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
2670         cannot be used from the ThemeEngine constructor.
2671         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
2672         Application.VisualStylesEnabled because it does not work on X11.
2673
2674 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
2675
2676         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
2677         that we did not always check for, as well as fixes to the IList
2678         implementations.  [Fixes bug #402703]
2679
2680 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2681
2682         * IDeviceContext.cs: Added Dispose.
2683
2684 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2685
2686         * Control.cs: Added OnSizeInitializedOrChanged.
2687         * Form.cs: OnLoadInternal: Added a call to
2688         Control.OnSizeInitializedOrChanged.
2689         * InternalWindowManager.cs:
2690          * HandleTitleBarMouseMove: No longer invalidates the parent window.
2691          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
2692          * TitleButton: Added Entered.
2693          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
2694         * MdiWindowManager.cs:
2695          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
2696          move over the maximized title buttons causes a change.
2697          * IsActive: Can now be called before the window is added to a MDI parent.
2698         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
2699         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2700         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
2701         * ThemeWin32Classic.cs:
2702          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
2703          * DrawTitleButton takes a new form parameter.
2704          * Added ManagedWindowTitleButtonHasHotElementStyle,
2705          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2706
2707 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2708
2709         * ThemeEngine.cs: ThemeVisualStyles is now selected if
2710         Application.EnableVisualStyles has been called, even if the current system
2711         configuration does not support rendering with Visual Styles.
2712         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
2713         Styles should not be used.
2714
2715 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
2716
2717         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
2718         ComboBox in FormsTest.
2719
2720 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
2721
2722         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
2723         for fixed toolwindows.
2724
2725 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
2726
2727         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
2728
2729 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2730
2731         * Control.cs: CreateControl just returns if the Control is diposed 
2732         and doesn't throw ObjectDisposedException.
2733         [Fixes bug #406566]
2734
2735 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2736
2737         * Control.cs: Do not create the control if the parent isn't created 
2738         yet, e.g in the case of a parented form on which .Show is called.
2739         It will be created when the parent is made visible/created.
2740         Improves #402446.
2741
2742 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2743
2744         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
2745         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
2746         [Fixes bug #406786]
2747
2748 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2749
2750         * Form.cs: When disposed set owner to null. Improves #402446.
2751
2752 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2753
2754         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
2755         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
2756         if not.
2757         * Form.cs: Take the Padding into account for the PreferredSize.
2758         [Fixes bug #402849]
2759
2760 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2761
2762         * TabControl.cs: Since we don't support more than one direction in
2763         TabControl rows alignment (this is, the row becomes the
2764         bottom row when selected), make Direction return always 1. This way
2765         the layout doesn't get confused about a bad calculation.
2766         Fixes #399582.
2767
2768 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2769
2770         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
2771         so that the wparam is properly set.
2772         Fixes form moving in the test case in bug 402446.
2773
2774 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
2775
2776         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
2777         the full tree instead of nothing.  [Improves bug #406584]
2778
2779 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
2780
2781         * ThemeWin32Classic.cs: Adjusted minimized window painting.
2782
2783 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
2784
2785         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
2786         children.
2787
2788 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
2789
2790         * TreeView.cs: Add a null check when using CollapseAll on an
2791         empty tree.  [Fixes bug #406449]
2792
2793 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2794
2795         * Form.cs: Make OnMenuComplete internal so we can call it.
2796         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
2797         [Fixes bug #399321]
2798
2799 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2800
2801         * TabControl.cs: Handle Up and Down keys when TabControl is in
2802         vertical alignment.
2803         [Fixes bug #399585]
2804
2805 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2806
2807         * TabControl.cs: Invalidate when we remove a tab.  Guard against
2808         an AOORE when trying to remove a tabpage that is not owned by the
2809         parent control.
2810         [Fixes bug #399927]
2811
2812 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2813
2814         * ScrollBar.cs: Change the LargeChange calculation to be correct.
2815         Ensure we are using LargeChange instead of large_change so we our
2816         calculations are correct.
2817         [Fixes bug #403122]
2818
2819 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2820
2821         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
2822         we need to ensure the ColumnCount/RowCount gets set.
2823         [Fixes bug #404851]
2824
2825 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2826
2827         * ListBox.cs: When handling item navigation, if selection mode is
2828         None, call EnsureVisible, since scrolling is normally handled by
2829         selection, that we are not calling in this case.
2830         Fixes #398345.
2831
2832 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
2833
2834         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
2835         a null check to our focus walking code.  [Fixes bug #394332]
2836
2837 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
2838
2839         * ComboBox.cs: Case missed in bug 379596 "Support item
2840         navigation by entering text": On _close_ drop-down select
2841         the first item matching the text in the textbox.  [Fixes bug #397265]
2842
2843 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
2844
2845         * DataGridView.cs: Fix a crash when sorting by column headers, 
2846         mentioned in bug #404841.  Remove some dead switch cases.
2847
2848 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2849
2850         * ComboBox.cs:
2851         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
2852         uses the AutoComplete support in the internal TextBox. Also TextBox
2853         can store a reference to ComboBox, in case AutoCompleteSource is set
2854         to ListItems (this is, ComboBox's items, and we don't want to pass an
2855         additional collection).
2856
2857 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2858
2859         * ListViewItem.cs: Restore the initial value of bounds rect to
2860         Rectangle.Empty, and is this value for Layout detection in virtual
2861         mode. Fixes the tests.
2862
2863 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
2864
2865         * XPlatUI.cs: Remove references to "new" X11 backend.
2866
2867 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
2868
2869         * Control.cs: Add an internal virtual OnDragDropEnd method 
2870         to allow controls such as ListBox, which depend on a sequence 
2871         of MouseDown+Move+End events, to handle the lack of a MouseUp 
2872         when a DnD operation is started in MouseDown.
2873         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
2874         get a MouseUp, so reset our state whenever a DnD operation ends.
2875
2876 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
2877
2878         * PropertyGrid.cs: Clear the root griditem first thing when 
2879         new object/s is/are selected. Fixes some rare cases where 
2880         the View will get a paint request and won't know that the 
2881         grid is in the process of repopulating.
2882
2883 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2884
2885         * XplatUIX11.cs, InternalWindowManager.cs: 
2886         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
2887         doesn't automagically update the FormBorderStyle, so we must 
2888         double check the CreateParams explicitly to determine if the 
2889         window is a toolwindow.
2890         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
2891         instead of doing custom checks.
2892
2893         Fixes toolwindows for the test case in bug #402446
2894
2895 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2896
2897         * Control.cs: Visibility of the control should be false 
2898         when the handle is destroyed in WmDestroy and not immediately 
2899         in Dispose(). This is effectively where the disposing process 
2900         ends even though the control is marked as Disposed immediately 
2901         after calling Dispose().
2902         [Fixes bug #402446]
2903
2904 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2905
2906         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
2907         when the textbox gets focus.
2908         [Fixes bug #402704]
2909
2910 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2911
2912         * PropertyGridTextBox.cs, PropertyGridView.cs: 
2913          - Alt + Down should show the drop down editor.
2914          - Focus the editor when showing it
2915         [Fixes bug #402710]
2916
2917 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
2918
2919         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
2920         that are not the first panel.
2921         * StatusBar.cs: Ensure that the X coordinate of panels is always
2922         stored.  Fix IList implementation of StatusBarPanelCollection to
2923         call the regular methods.
2924         [Fixes bug #403599, #402165]
2925
2926 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
2927
2928         * ThemeWin32Classic.cs: Fix position calculation for centered
2929         text on status bar panels.  [Fixes bug #402165]
2930
2931 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
2932
2933         * Splitter.cs: Fix Splitter to:
2934          - Work for arbitrary splitter size
2935          - Handle MinSize and MinExtra properly
2936          - Get rid of absolute positioning during drag and use relative
2937          - Multiple other fixes 
2938          [Fixes bug #338966]
2939
2940 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
2941
2942         * Cursor.cs: Show shouldn't hide the cursor.
2943
2944 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2945
2946         * ListViewItem.cs: When invalidating, add some extra space to bounds,
2947         since focus rectangle and selection can add some space and need to
2948         take into account those small offsets - specially in Details view.
2949         * ListView.cs: Instead of invalidate using item Bounds directly, call
2950         item.Invalidate, to have the code centralized.
2951         Fixes focused/selection garbage when selecting and deselecting items
2952         that are close.
2953
2954 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2955
2956         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
2957         mode we can check whether we have to force a Layout or not, and can
2958         cache based on this, instead of avoiding caching all the the time. Do
2959         this check in GetBounds and TextBounds.
2960         Fixes selection in Details view.
2961
2962 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2963
2964         * ListView.cs: Make HeaderControl internal, thus the theme engine can
2965         get its *real* height instead of trying to infere it.
2966         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
2967         get the position of them, since it's in general a bad idea in general,
2968         and because we can't do that in virtual mode. Instead get the first
2969         visible item as well as item height, and draw them.
2970         Fixes #400390.
2971
2972 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
2973
2974         * ToolStripSplitButton.cs: We can't add in extra width if
2975         the button is not AutoSize.  [Fixes bug #401279]
2976
2977 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
2978
2979         * PaddingConverter.cs: 
2980          - Implement conversion to InstanceDescriptor
2981          - Handle "All" in CreateInstance by using the supplied 
2982          ITypeDescriptorContext.
2983          [Fixes bugs #396076 and #396078]
2984
2985          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
2986          Code contributed under MIT/X11 license.
2987
2988 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
2989
2990         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
2991         ButtonBase.cs:
2992         Add Category attributes.
2993         Code is contributed under the MIT/X11 license.
2994
2995 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
2996
2997         * Form.cs: 
2998          - Fix a NRE when unparenting a form.
2999          - Do not recreate or destroy a parented form when 
3000         unparenting. 
3001
3002 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3003
3004         * TextBox.cs: Implement basic support for AutComplete with custom
3005         sources.
3006
3007 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
3008
3009         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
3010         DropDownButtonBounds should be from the origin of the button, not the
3011         ToolStrip.  [Fixes bug #401279]
3012
3013 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
3014
3015         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
3016           running gtk_init_check.  This prevents GAIL from loading
3017           unnecessarily, which was breaking UIA support.  Initial fix for bug
3018           #375987.
3019         * Application.cs: Add UIA support to Winforms.  New static constructor
3020           uses reflection to initialize UIAutomationWinforms assembly.  Added
3021           PreRun event so UIA can initialize before the mainloop starts, and
3022           FormAdded event so UIA can provide a11y support for new Forms in an
3023           Application.
3024
3025 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
3026
3027         * DataGridView.cs: When binding to a dataset, subscribe to table
3028         and column change events.  Unsubscribe to these when we clear bindings.
3029         [Fixes bug #399601]
3030
3031 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
3032
3033         [DataGrid drawing refactory]
3034
3035         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
3036
3037         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
3038         must be handle by Theme, now it call DataGridPaintColumnHeader.
3039
3040         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
3041         test cases must be also fixed because it checks for wrong size.
3042
3043         * ThemeWin32Classic.cs: 
3044                 - Draw the bottom line of grid caption.
3045                 - Prevent to draw caption text when it is empty.
3046                 - Use CPDrawBorder3D for 3D efects to simplify code.
3047                 - Uses 3D (when not flat) to paint corner shared between row and column
3048                 header.
3049                 - Fix header drawing issues on win32, now borders are drawing.
3050                 - Fix column header paint issues to mimic win32.
3051                 - Adjust header drawing for last column, like first one it must be draw
3052                 different.
3053                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
3054                 not an character.
3055                 - DataGridPaintColumnHeader created to draw column headers, it also
3056                 paint stuff right on Win32.
3057                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
3058                 class.
3059
3060         * Theme.cs: 
3061                 - DataGridPaintRowHeaderStar method added.
3062                 - DataGridPaintColumnHeader method added.
3063
3064 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
3065
3066         * Control.cs: Don't reset to Dock style layout if DockStyle is
3067         set to none.  [Fixes bug #399316]
3068
3069 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
3070
3071         * Win32DnD.cs: Fix the check for control not equal null.
3072         Fixes bug #341420 and #381886. 
3073
3074 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
3075
3076         * DataGridViewRowCollection.cs: Update the indexes of rows after
3077         one has been removed.
3078         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
3079         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
3080         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
3081         rows for the Rows collection, or deleting rows from the bound DataSet.
3082
3083 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
3084
3085         * DataGridView.cs: Listen to a DataSet's changed event even
3086         when autogeneratecolumns is false.  Refactor the changed event's
3087         add row code to use the same as the existing add row code.
3088         [Fixes bug #399601]
3089
3090 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3091
3092         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
3093         much any time the caret moves and there is text, not just when
3094         the selection changes as one would think.
3095         * RichTextBox.cs: Override RaiseSelectionChanged and fire
3096         SelectionChanged.
3097         [Fixes bug #397271]
3098
3099 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3100
3101         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
3102         instead of trying to duplicate the code.
3103         * ListBox.cs: Make method internal so we can send keyboard events.
3104         [Fixes bug #398344]
3105         
3106 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3107
3108         * TextBoxBase.cs: When pasting and checking the max length,
3109         subtract the selected text length (the text we will be replacing) from
3110         the document length.
3111         * TextControl.cs: Ensure every character insertion is reflected in
3112         charcount, so max length will work properly.
3113         [Fixes bug #398605]
3114
3115 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3116
3117         * ListBox.cs: Ensure scrollbars are updated when a single
3118         column listbox with an already set top-index is created.
3119         [Fixes bug #398342]
3120
3121 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3122
3123         * FontDialog.cs: Typing in the font/style textboxes should search
3124         the list boxes case-insensitively.  [Fixes bug #398343]
3125
3126 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
3127
3128         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
3129         widths of icon and buttons instead of hard coded values.
3130
3131 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3132
3133         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
3134         as well as generating a SelectedIndexChanged event, just like .Net does
3135         -surprise-.
3136         Fixes #398345.
3137
3138 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3139
3140         * ListBox.cs: When navigating items visually, use FocusedItem as the
3141         reference point instead of SelectedIndex, since even in
3142         SelectionMode.None we need to support navigation, and in that case we
3143         just can't use SelectedIndex.
3144         Fixes part of #398345.
3145
3146 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
3147
3148         * Control.cs: Make a SetBoundsInternal that avoids the new
3149         SetBounds code.
3150         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
3151         SetBoundsInternal instead of SetBoundsCoreInternal.
3152
3153 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
3154
3155         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
3156         SetBounds for the scrollbars.
3157
3158 2008-06-10  Andreia Gaita <avidigal@novell.com> 
3159
3160         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
3161           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
3162           OnMouseMove, OnMouseOver, OnMouseUp
3163         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
3164           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
3165         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
3166           to the WebControl object to pass to new collection objects
3167         * HtmlHistory.cs: Implement support for individual window histories.
3168         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
3169           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
3170           GotFocus, LostFocus, OnLoad, OnUnload
3171         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
3172           ContextMenu
3173         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
3174           security level changes and context menu event support.
3175
3176 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3177
3178         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
3179         as happens with Esc, patch my Andy Hume.
3180         Fixes #396294.
3181
3182 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3183
3184         * MdiWindowManager.cs: DrawMaximizedButtons now uses
3185         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
3186         * Theme.cs: Made MenuButtonSize platform dependent. Added
3187         ManagedWindowButtonSize.
3188         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
3189         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
3190
3191 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3192
3193         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
3194         Added support for rendering with VisualStyles.
3195
3196 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3197
3198         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3199         support for rendering the border with VisualStyles.
3200
3201 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3202
3203         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
3204         the icon is not shown.
3205         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
3206         its own logic.
3207
3208 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3209
3210         * InternalWindowManager.cs: Draw minimized windows even if they don't have
3211         borders.
3212
3213 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
3214
3215         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
3216
3217 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
3218
3219         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
3220         [Fixes bug #397943]
3221
3222 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3223
3224         * ComboBox.cs: When snaping height -because of IntegralHeight set to
3225         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
3226         if the requested height leaves the listbox area with *less* than the
3227         required are to see one item. We were setting it to PreferredHeight
3228         even for values matching the height for a single item.
3229         Fixes #396297.
3230
3231 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
3232
3233         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
3234
3235 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
3236
3237         * DataGridViewCell.cs: Use property instead of field.
3238
3239 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3240
3241         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
3242         null checks.
3243
3244 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3245
3246         * Theme.cs: Added #region around the managed window code. Made the managed
3247         window methods abstract.
3248         * ThemeWin32Classic.cs: Added #region around the managed window code.
3249
3250 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3251
3252         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
3253         if it has borders.
3254         * ThemeWin32Classic.cs: Removed HasBorders checks in
3255         DrawManagedWindowDecorations.
3256
3257 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3258
3259         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3260         Extracted ManagedWindowGetTitleBarIconArea.
3261
3262 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3263
3264         * DataGridViewCellStyle.cs: Don't clone the font.
3265
3266 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3267
3268         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
3269
3270 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3271
3272         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
3273         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
3274         in 64 bit machines.
3275
3276 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3277
3278         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
3279         Use Format/FormatProvider before trying converters.
3280         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
3281         are 'set'.  Change constructor to not use ApplyStyle since it wants
3282         everything applied.  Clone the Font.
3283         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
3284         ApplyStyle the rest.
3285
3286 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3287
3288         * ListView.cs: We need to calculate the scrollbars even if the handle
3289         hasn't been created - this is needed when methods using scrollbars
3290         info, such EnsureVisible, are called before control has been created.
3291         Fixes #397272.
3292
3293 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
3294
3295         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
3296         only if the elements are defined. 
3297
3298 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3299
3300         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
3301         section. Also, when setting bounds, snap height as well as save the
3302         requested height if Dock has any value affecting the height: Left,
3303         Right and Bottom - important if using IntegralHeight as true.
3304
3305 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3306
3307         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
3308         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
3309         instead of doing that only in our SetBoundsCore override, since the 
3310         bounds cached can be the same as saved one and we could not get the
3311         new height applied.
3312         Fixes #396297.
3313
3314 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3315
3316         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
3317         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
3318         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
3319         ToolWindowCaptionButtonSize.
3320         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
3321
3322 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3323
3324         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
3325         hard coded values.
3326         * Theme.cs: Made DoubleClickTime plaform dependent.
3327
3328 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3329
3330         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
3331         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3332         ToolWindowCaptionHeight.
3333
3334 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3335
3336         * InternalWindowManager.cs: The adjustment to ensure positive client area
3337         sizes is now platform dependent (disabled on Windows).
3338         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3339         RequiresPositiveClientAreaSize.
3340
3341 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3342
3343         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
3344
3345 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3346
3347         * InternalWindowManager.cs: Changed IconicSize to use
3348         SystemInformation.MinimizedWindowSize.
3349         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
3350         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
3351
3352 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3353
3354         * ComboBox.cs: If the combobox is anchored both on top and bottom,
3355         adjust height if IntegralHeight is true when calling SetBoundsCore (as
3356         likely the height was modified even if Height wasn't specified in
3357         BoundsSpecified parameter).
3358         Fixes part of #396297.
3359
3360 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
3361
3362         * InternalWindowsManager.cs: Changed minimum window size while resizing to
3363         SystemInformation.MinWindowTrackSize.
3364         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
3365         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
3366
3367 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
3368
3369         * MenuItem.cs: Fixed Dispose.
3370
3371 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
3372
3373         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
3374         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
3375         EnteredHeaderCell, PressedHeaderCell: Added.
3376         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
3377         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
3378         theme a chance to override default painting.
3379         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
3380         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
3381         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
3382         ListView and DataGridView header rendering.
3383         
3384 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
3385
3386         * RichTextBox.cs: GetPositionFromCharIndex should return the 
3387         visual position of the character relative to the viewport.
3388         [Fixes part of bug #396664]
3389
3390 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
3391
3392         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
3393         and not just for the existance of an UITypeEditor. In some cases 
3394         there is an editor associated just to do PaintValue, but which 
3395         doesn't actually support editing.
3396         [Fixes bug #396632]
3397
3398 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3399
3400         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
3401         if needed, instead of 0 - this should help us in the corner case where
3402         we have more than one item but we are only partially showing 1 item.
3403         Fixes part of #374713.
3404
3405 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3406
3407         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
3408         control, return immediately if the any parent control's handle hasn't
3409         been created or isn't visible, as well as avoiding creating the parent
3410         Form if the handle hasn't been previously created.
3411         Fixes tests.
3412
3413 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
3414
3415         * TableLayoutPanel.cs: Use border sizes when calculating the
3416         panel's preferred size.  [Fixes part of bug #396433]
3417
3418 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
3419
3420         * SplitContainer.cs:
3421          - Fix SplitterDistance to update only if needed. 
3422          - Make it force min and max validation.
3423          - Handle properly mouse moves outside the resizeable area.
3424          [Fixes bug #396232]
3425
3426 2008-06-02  Andreia Gaita <avidigal@novell.com> 
3427
3428         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
3429           (which also suppresses all popup dialogs). Throw NotSupported
3430           exceptions for activex getters/setters.
3431         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
3432           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
3433           StatusText, Version, GoSearch
3434         * HtmlDocument.cs: Add DocType support
3435
3436 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
3437
3438         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
3439         [Fixes bug 396124]
3440
3441 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
3442
3443         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
3444
3445 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
3446
3447         * TableLayoutPanel.cs: When calculating preferred size, use the
3448         actual number of columns and rows, not what the user set them to.
3449         [Fixes bug #396141]
3450
3451 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
3452
3453         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
3454         394311.
3455
3456 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3457
3458         * XplatUIX11.cs: When detecting areas obscured in a control by other
3459         toplevel windows while scrolling, return if the control hasn't a 
3460         container form.
3461         Fixes some tests.
3462
3463 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3464
3465         * XplatUIX11.cs: Properly detect the visible area of a control being
3466         scrolled (obscured by other winforms controls and any X toplevel
3467         windows), to mark as invalid the requested area to be scrolled that
3468         isn't visible and thus can't be copied.
3469         Fixes #324513.
3470
3471 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3472
3473         * ListBox.cs: Compute the precise amount to vertically scroll when
3474         using DrawMode.OwnerDrawVariable.
3475         Patch by jkeymer (j.keymer@gmx.net).
3476
3477 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3478
3479         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
3480         to avoid setting an invalid value for the verticall scrollbar 
3481         when navigating items. And, duh, also remove my silly debug messages
3482         from previous commits.
3483         Fixes #374713.
3484
3485 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
3486
3487         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
3488         make it MS compatible.
3489
3490 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
3491
3492         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
3493          - Allow the editing of entries even if their parent is read-only.
3494          - Do not render expandable properties read-only.
3495          - Refactor expansion checks form PropertyGrid into PropertyGrid.
3496
3497 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
3498
3499         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3500         support for the hover style.
3501
3502 2008-05-29  Andreia Gaita <avidigal@novell.com> 
3503
3504         * ContainerControl.cs: Check for null dead-end when traversing the tree
3505           of parent controls.
3506         
3507           [Fixes #394332, patch by Ernesto Carrea]
3508
3509 2008-05-29  Geoff Norton  <gnorton@novell.com>
3510
3511         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
3512         constant that it is.  Fixes #393981
3513
3514 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
3515
3516         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
3517         that the user probably doesn't want to set this.
3518
3519 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
3520
3521         * ThemeWin32Classic.cs: Don't let the text size be bigger than
3522         the control size for CheckBox/RadioBox.
3523         [Fixes part of bug #394645]
3524
3525 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
3526
3527         * PropertyGrid.cs: Update the state of the sorting buttons in 
3528         the toolbar if PropertySort is set programatically.
3529
3530 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
3531
3532         * GridItemCollection.cs: Add multiple items with conflicting names 
3533         support and also preserve name ordering.
3534         [Fixes #395345]
3535
3536 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
3537
3538         * GridItemCollection.cs: Revert my multiple items with same 
3539         name patch.
3540
3541 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3542
3543         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
3544         or middle ones.
3545         Fixes part of #393908.
3546
3547 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
3548
3549         * ToolStripDrowDown.cs: When using the Show () methods that have a
3550         Control parameter, set the menu owner to that Control.
3551         [Fixes bug #394345]
3552
3553 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
3554
3555         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
3556         [Fixes bug #362756]
3557
3558 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3559
3560         * GridItemCollection.cs: Refactor to support multiple items with the 
3561         same name.
3562         [Fixes bug #394314]
3563
3564 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
3565
3566         * Control.cs: The 2.0 check for illegal cross thread calls in 
3567         Control.Handle were throwing an exception when we were getting
3568         the Handle in order to invoke correctly.  Created a private
3569         version that does not contain this check.
3570         [Fixes bug #394531]
3571
3572 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3573
3574         * PropertyGrid.cs: Respect DefaultTabType.
3575
3576 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3577
3578         * ListView.cs: SPACE selects an item.
3579         [Fixes bug #393023]
3580
3581 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3582
3583         * ListView.cs: Reset the search string whenever the items are 
3584         modified.
3585         [Fixes bug #393020]
3586
3587 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3588
3589         * ListControl.cs: For the first added item PositionChanged is fired
3590         _before_ ItemChanged, which leave us in a temporary invalid state - so
3591         we need to set the selected index from ItemChanged handler *if* we
3592         know that the first item has just been added *and* the items have been
3593         actually added to the ListControl.
3594         Fixes #369048.
3595
3596 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3597
3598         * TabControl.cs: Only clicks with the left button should be
3599         handled.
3600         Fixes #393908.
3601
3602 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3603
3604         * ComboBox.cs: 
3605         * FIleDialog.cs:
3606         * TextBox.cs: Expose an internal method in TextBox to restore the
3607         original context menu, and call it from ComboBox to re-use it in the
3608         combobox containing the file name in FileDialog.cs.
3609         Fixes part of #393775.
3610
3611 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
3612
3613         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
3614         style.
3615
3616 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
3617
3618         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
3619         down button style.
3620
3621 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3622
3623         * ComboBox.cs: Minor correction to previous patch: PageDown should
3624         also *try* to move by one item if the computed offset is negative,
3625         just like the PageUp case.
3626
3627 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3628
3629         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
3630         should be done for at least 1 item, and not stay at the same item.
3631         Fixes part of #374713.
3632
3633 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
3634
3635         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
3636         directories.  [Fixes bug #393931]
3637
3638 2008-05-22  Andreia Gaita <avidigal@novell.com> 
3639
3640         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
3641           Don't fire events until the initial about:blank page has finished
3642           loading. Clean up events.
3643
3644 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
3645
3646         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
3647           FocusIn() too. This should fix the issue on switching
3648           scim keyboards.
3649
3650 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
3651
3652         * X11Keyboard.cs : set XIM font size to somewhat reasonable
3653           number (ideally the input textbox size, but that could be
3654           too messy).
3655
3656 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
3657
3658         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
3659         the ToolStripItem's TextChanged.  [Fixes bug #393597]
3660
3661 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3662
3663         * TabControl.cs: When invalidating in SelectedIndex and we need to
3664         inflate to take into account the border of the tabs, make sure that
3665         the invalidated rect doesn't overflow the control bounds, since that
3666         would avoid updating at all.
3667
3668 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3669
3670         * TabControl.cs: Don't substract scroller width from the row width,
3671         since we need to take into account the total width of the control when
3672         calculating the position of the tabs. This avoids showing scroller
3673         when it is actually not needed.
3674         Fixes part of #322325.
3675
3676 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3677
3678         * ThemeVisualStyles.cs: Added support for TextBoxBase.
3679
3680 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3681
3682         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3683         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
3684
3685 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3686
3687         * DataGridView.cs: Only paint the top left header cell if there
3688         are columns.
3689
3690 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3691
3692         * DataGridView.cs: When binding to a BindingSource, get the underlying
3693         list to bind to.  [Fixes bug #345483]
3694
3695 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3696
3697         * DataGridView.cs: Do not bind to collection properties.
3698         [Fixes bug #337470]
3699
3700 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3701
3702         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
3703
3704 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3705
3706         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
3707         thumb style.
3708
3709 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3710
3711         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
3712
3713 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3714
3715         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
3716         background.
3717
3718 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3719
3720         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
3721
3722 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3723
3724         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
3725         checked styles.
3726
3727 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3728
3729         * TabControl.cs: Extended to handle the hot style.
3730
3731 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3732
3733         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
3734         Extended UpDownBase code to handle hot and disabled styles.
3735
3736 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3737
3738         * DataGridView.cs: Handle databinding to generic list type things.
3739         [Fixes bug #325239]
3740
3741 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3742
3743         * DataGridViewCellCollection.cs: Add a method to find the cell
3744         with the given DataPropertyName.
3745         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
3746         * DataGridViewColumnCollection.cs: Add a method to clear all
3747         autogenerated columns.
3748         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
3749         columns.
3750         [Fixes bug #348082]
3751
3752 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3753
3754         * DataGridView.cs: Don't try to update the RowTemplate with
3755         a null CellTemplate.
3756
3757 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3758
3759         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
3760         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
3761         * DataGridView.cs: Lots of fixes/enhancements to databinding to
3762         a DataSet.
3763
3764 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3765
3766         * Control.cs: Remove invalidating implicit child controls when
3767         control is invalidated.  It was causing too many redraws on
3768         controls with implicit scrollbars.
3769         * ListView.cs: Listen to the Invalidated event and invalidate
3770         child controls.
3771
3772 2008-05-20  Andreia Gaita <avidigal@novell.com> 
3773
3774         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
3775         * HtmlDocument.cs: Check for nulls
3776
3777 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3778
3779         * Control.cs: In ControlCollection.RemoveInternal, remove the
3780         internal control before calling PerformLayout and OnControlRemoved,
3781         which was leaving us in an invalid state and causing a X error (bad
3782         match). Observe that Remove () call has the same order.
3783         Fixes an X error changing ComboBoxStyle.DropDownStyle.
3784
3785 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3786
3787         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
3788         being fired if ControlStyles.UserPaint style is activated.
3789         Fixes #371905.
3790
3791 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
3792
3793         * GridEntry.cs: Don't be so strict when setting the value - 
3794         do not check if what we set is what we get.
3795         [Fixes bug #389245]
3796
3797 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
3798
3799         * XplatUIX11.cs: If there are no timers timeout should be 0
3800         [Fixes bug #363522]
3801
3802 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
3803
3804         * Control.cs: As a followup to invalidating implicit children when
3805         a control is invalidated, only invalidate them if they are in the
3806         clip rectangle.
3807
3808 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3809
3810         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
3811
3812 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3813
3814         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
3815
3816 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3817
3818         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
3819         * XplatUIWin32.cs: Made Win32DeleteObject public.
3820
3821 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
3822
3823         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
3824         PropertyDescriptor.ShouldSerializeValue.
3825         [Fixes bug #391924]
3826
3827 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3828
3829         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
3830         in the classic theme.
3831
3832 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3833
3834         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
3835         ThumbPressed.
3836         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
3837         ScrollBarHasPressedThumbStyle.
3838
3839 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3840
3841         * TextRenderer.cs: Included some methods in the 1.1 profile.
3842
3843 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
3844
3845         * Control.cs: When we make a control visible, it may have been
3846         previously visible and while it wasn't visible, the z-order of
3847         things may have been shuffled, so the control needs to have its
3848         z-order updated just in case.  [Fixes bug #391518]
3849
3850 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3851
3852         * ThemeVisualStyles.cs: Added support for GroupBox.
3853
3854 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3855
3856         * GroupBoxRenderer.cs: Included in the 1.1 profile.
3857
3858 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
3859
3860         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
3861           bug #389996; XSelectInput() behaved as mouse handler robber,
3862           so remove extra call to it.
3863
3864 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3865
3866         * Control.cs: Simplify ControlCollection.Contains method.
3867
3868 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3869
3870         * DataGridViewRow.cs: Implement GetPreferredSize.
3871
3872 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3873
3874         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
3875
3876 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3877
3878         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
3879         painting and edit control fixes.
3880
3881 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3882
3883         * DataGridView.cs, DataGridViewCell.cs: Work around some external
3884         checks to make sure we are in an actual row/col for top left header cell.
3885         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
3886
3887 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3888
3889         * Control.cs: Use long instead of int when handling WParam from
3890         mousewheel scrolling.  Int was overflowing on Win64.
3891
3892 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3893
3894         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
3895         flow panel without scrolling first, and then calculate the 
3896         scrolling based on the new layout.  [Fixes bug #390149]
3897
3898 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3899
3900         * ListBox.cs: Invalidate after scrolling up when selected index
3901         changes.  [Fixes bug #390151]
3902
3903 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3904
3905         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
3906         set, default height to 150. I tried first with DefaultSize, but this
3907         is not generating a SetBoundsCore call before handle creation time, so
3908         we can take it into account. This is just what .net does.
3909
3910 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
3911
3912         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
3913         as it broke some stuff.  Calberto is filing a bug for eno to
3914         work with.
3915
3916 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3917
3918         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
3919         to 0 is the current value is -1, and if style is not Simple, just
3920         return, like .net does.
3921         Fixes part of #374713.
3922
3923 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
3924
3925         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
3926         progress bar stuffs, use doubles instead of ints to prevent
3927         overflow.  [Fixes bug #389798]
3928
3929 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
3930
3931         * XplatUIX11.cs, X11Keyboard.cs :
3932           Significant refactoring on XIM support. Now IM engine UI
3933           should show up, at mostly-correct preedit position.
3934           - Eliminated use of FocusWindow, as it is never mapped
3935             and hence blocks correct preedit position. XIC is now
3936             created per window, and it must be destroyed too when
3937             the window is destroyed.
3938           - WM_QUIT messages should not be filtered even when hwnd
3939             is zombie. Filtering it could cause endless loop.
3940           - Preedit position must move only when the window is alive.
3941           - Make it IDisposable and make sure to release XIM/XICs.
3942
3943 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
3944
3945         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
3946           XplatUIX11.cs, XplatUIWin32.cs :
3947           fix for bug #325033 and #387693;
3948           - WM_QUIT should not be sent when no running application
3949             exists.
3950           - SetTimer/KillTimer (especially on win32) should be
3951             invoked for the window that the timer is/will_be attached.
3952           - There could be unattached timers to a window when it's
3953             started. For those timers, hold pending timers and when
3954             a window is mapped, attach them to it.
3955           - WaitForHwndMessage() could run into loop when
3956             WM_SHOWWINDOW is handled before this method is called.
3957             So, strictly check wm_showwindow state.
3958           - Tick handler should not be invoked while one Tick handler
3959             call is still running (introduced Busy state).
3960
3961 2008-05-13  Andreia Gaita <avidigal@novell.com> 
3962
3963         * WebBrowserBase.cs: Override Internal alternative methods for
3964           SetBoundsCore and OnResize instead of the protected ones.
3965         * Control.cs: Move SetBoundsCore and OnResize implementations to
3966           SetBoundsCoreInternal and OnResizeInternal, so they can be
3967           overriden internally (WebBrowserBase needs to catch them but can't
3968           override the protected methods without api compat problems)
3969
3970 2008-05-13  Andreia Gaita <avidigal@novell.com> 
3971
3972         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
3973
3974 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3975
3976         * Binding.cs:
3977         * ListView.cs: Remove debug messages.
3978
3979 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3980
3981         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
3982         area is empty. Also calculate scrollbars in Simple mode based in area
3983         height and total number of items, not in MaxDropDownItems.
3984         Fixes part of #371991.
3985
3986 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3987
3988         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
3989
3990 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3991
3992         * BindingSource.cs: GetListSortDescription is not public.
3993
3994 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3995
3996         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
3997
3998 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3999
4000         * HtmlElement.cs: Fix parameter names to match MS.
4001         * HtmlWindowCollection.cs: Should not be sealed.
4002
4003 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4004
4005         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
4006         button, because the thumb button will not get drawn if the scrollbar
4007         is disabled.  [Fixes bug #389262]
4008
4009 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4010
4011         * ListBox.cs: Handle End key for multi-column listboxen.
4012         [Fixes bug #389266]
4013
4014 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4015
4016         * ListBox.cs: Fix algorithm to determine which column our item is in.
4017         [Fixes bug #389265]
4018
4019 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4020
4021         * ListBox.cs: Invalidate when the listbox is resized.
4022         [Fixes bug #389256]
4023
4024 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4025
4026         * ListBox.cs: There is always at least one row in the ListBox (if
4027         we are doing these calculations.)  [Fixes bug #389253]
4028
4029 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4030
4031         * ListBox.cs: There is always at least one column in the ListBox.
4032         [Fixes bug #389250]
4033
4034 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4035
4036         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
4037         ensure in Simple mode that the height is exactly the requested one.
4038         Also add the ComboBoxListControl to the controls collection in Simple
4039         mode even if handle hasn't been created.
4040         Fixes part of #371991.
4041
4042 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4043
4044         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
4045         our ComboBox owner instead of giving it back to the previous control (
4046         as done in other controls). Also remove the empty override of Select
4047         method, since we want to be selected *and* give focus to our owner.
4048         This should let the user do keys-navigation in Simple mode. 
4049
4050 2008-05-10  Geoff Norton  <gnorton@novell.com>
4051
4052         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
4053         problems with rapid scrolling of treeviews. Fixes #381084
4054
4055 2008-05-10  Geoff Norton  <gnorton@novell.com>
4056
4057         * XplatUICarbon.cs: Deactivate the active window before
4058         activating the desired window.  Completes fixing #386504
4059
4060 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4061
4062         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
4063         SmallChange to the item size width plus the padding, to match .net.
4064
4065 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4066
4067         * FileDialog.cs: Apply the custom filter typed by the user in the file
4068         name combobox as much as possible while navigating in the file dialog.
4069         Fixes #385261.
4070
4071 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4072
4073         * Binding.cs: Actually use NullValue if the retrieved value of
4074         data source is null or DBNull. Makes a test pass.
4075
4076 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
4077
4078         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
4079         * MimeIcon.cs: Provide a way to get icons from resources.
4080
4081 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4082
4083         * Binding.cs: When the value retrieved from the control to be assigned
4084         to the data source is null, actually use the 2.0 DataSourceNullValue
4085         value. Make pass a data binding test.
4086
4087 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4088
4089         * Control.cs: We need to invalidate implicit children even when
4090         invalidate is called with invalidatechildren = false.  (Implicit
4091         children are really part of the parent.)
4092         * ListView.cs: Double-buffer internal child controls for less
4093         flicker.
4094         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
4095         owner ListView subitems for greatly increased performance.
4096         [Fixes bug #388477]
4097
4098 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
4099
4100         * FileDialog.cs: When the user types a wildcard character in the
4101         filename combobox, update the contents of the folder using the text as
4102         a filter.
4103         Fixes part of #385261.
4104
4105 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4106
4107         * ListBox.cs: Various fixes for MultiColumn listboxen.
4108         [Fixes bug #388114]
4109
4110 2008-05-08  Andreia Gaita <avidigal@novell.com> 
4111
4112         * HtmlElement.cs: Implement Style property
4113
4114 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4115
4116         * ListBox.cs: Respect checkboxes when measuring item size.
4117         * ThemeWin32Classis.cs: When drawing list items, don't draw
4118         text outside of the item's bounds to prevent overlapping.
4119         (.Net actually overlaps, but that's just silly.)
4120         [Fixes bug #388117]
4121
4122 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
4123
4124         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
4125         Gert Driesen. Fixes bug #324830. 
4126
4127 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
4128
4129         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
4130         method implemented.
4131
4132 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4133
4134         * BindingSource.cs: When calling IsSynchronized, return the value of
4135         the related IList list.
4136
4137 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4138
4139         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
4140         make a test pass.
4141
4142 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
4143
4144         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
4145         navigation to scroll the grid if the current cell is not visible.
4146
4147 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4148
4149         * HtmlElement.cs: Implement TabIndex
4150
4151 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
4152
4153         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
4154         properties, even when there are no items.
4155         [Fixes bug #387611]
4156
4157 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
4158
4159         * NativeWindow.cs: Add support for multiple handles per window.
4160         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
4161         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
4162         directly - use FromHandle instead.
4163         [Fixes bug #374660]
4164
4165 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4166
4167         * HtmlElement.cs: Implement InnerHTML setter
4168
4169 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4170
4171         * HtmlDocument.cs: Implement Focused
4172
4173 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4174
4175         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
4176         methods, as well as add messages to the exceptions.
4177
4178 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4179
4180         * BindingSource.cs: Setting DataSource should only reset DataMember if
4181         the previous value was null (make pass a not working test).
4182
4183 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4184
4185         * BindingSource.cs: When EndInit call is postponed and is called until
4186         DataSource.EndInit is called, remove the handler for data source.
4187
4188 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4189
4190         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
4191
4192 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4193
4194         * ToolStripManager.cs: Store references to toolstrips as
4195         weak references so they do not prevent forms from getting collected.
4196         [Fixes bug #386483]
4197
4198 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4199
4200         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
4201         on .Net.  So do the same thing in WndProc.
4202
4203 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4204
4205         * TrackBar.cs: Commit patch from Andy Hume that corrects
4206         the clickable areas to better match .Net.
4207         [Fixes bug #387074]
4208
4209 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4210
4211         * TrackBar.cs: Commit patch from Andy Hume that adds the
4212         ResizeRedraw control flag so the track bar repaints itself
4213         when it is resized.  [Fixes bug #387072]
4214
4215 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4216
4217         * TrackBar.cs: Commit patch from Andy Hume that adds better
4218         support for keyboard navigation when the TrackBar is vertical.
4219         [Fixes bug #387071]
4220
4221 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4222
4223         * BindingSource.cs: Implement ISupportInitializeNotification support.
4224
4225 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
4226
4227         * ThemeVisualStyles.cs: Added support for ToolBar.
4228
4229 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
4230
4231         * ToolBar.cs: Made the Vertical property internal.
4232
4233 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4234
4235         * ThemeVisualStyles.cs: Added support for TrackBar.
4236
4237 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4238
4239         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
4240         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
4241         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
4242         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
4243         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
4244         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
4245
4246 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4247
4248         * ThemeVisualStyles.cs: Added support for UpDownBase.
4249
4250 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4251
4252         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
4253         Extracted Theme.UpDownBaseDrawButton.
4254
4255 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
4256
4257         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
4258         removed from the static toolstrips collection in ToolStripManager
4259         when they are disposed.  Provides a workaround for bug #386483.
4260
4261 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
4262
4263         * GridEntry.cs: Read-only properties with Editor with 
4264         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
4265         [Fixes bug #384184]
4266
4267 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
4268
4269         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
4270         the menu key and there are no items on the menu.
4271         [Fixes bug #386644]
4272
4273 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
4274
4275         * Control.cs: Avoid calling ToString on a string.
4276         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
4277         * GroupBox.cs: In FlatStyle property throw, not just create, the 
4278         exception. Avoid calling ToString on a string.
4279         * ProgressBar.cs: Avoid calling ToString on a string. 
4280         * ScrollBar.cs: Avoid calling ToString on a string. 
4281         [All issues were found using Gendarme]
4282
4283 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
4284
4285         * NotifyIcon.cs: Prevent click events to be trigger after double click 
4286         events. Fixes remaining issues of bug #324832.
4287
4288 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
4289
4290         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
4291         to mimic win32 behavior. Partially fixes bug #324832.
4292
4293 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4294
4295         * BindingSource.cs: Implement Find methods.
4296
4297 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4298
4299         * BindingSource.cs: Implement Sort, ApplySort overloads, and
4300         RemoveSort methods.
4301
4302 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4303
4304         * ListBindingHelper.cs: When calling GetListItemProperties and the
4305         passed object is ITypedList, return the result of
4306         ITypedList.GetItemProperties instead.
4307
4308 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4309
4310         * LinkLabel.cs: Set default value of name on constructor of Link class
4311         only for 2.0 profile.
4312
4313 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4314
4315         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
4316         Fixes remaining issues of bug #346154.
4317
4318 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4319
4320         * LinkLabel.cs: Set a default value for name on internal contructor of
4321         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
4322
4323 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4324
4325         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
4326         and refer all instances to owner.links. Partially fixes #346154.
4327
4328 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4329
4330         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
4331         length equal zero. Also called CreateLinkPieces in constructor. It fixes
4332         the LinkLabel test 'TestLinkArea'.
4333
4334 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4335
4336         * Form.cs: Remove menu before close form to prevent form to be not gaced.
4337         [Fixes #386460]
4338
4339 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4340
4341         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
4342         [Fixes #386463]
4343
4344 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4345
4346         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
4347         [Fixed bug #357004]
4348
4349 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4350
4351         * MenuAPI.cs: Remove unused ProcessCmdKey method.
4352
4353 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4354
4355         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
4356         [Fixes bug #375398]
4357
4358 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4359
4360         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
4361         of bug #367492.
4362
4363 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4364
4365         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
4366         sometimes we open a conext menu on mouse down of some controls and the mouse
4367         up is dispatched to menu and dont need to. It fix remaining issues of 
4368         #363711 and other problems related to menu mouse click events.
4369
4370 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4371
4372         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
4373         some var names to better fit changes, now we have month_menu and today_menu
4374         vars. Fixes bug #363711.
4375
4376 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4377
4378         * MonthCalendar.cs: Handle every right mouse click to open context menu,
4379         right now the default month menu but it will be change to have "Go to today"
4380         menu.
4381
4382 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4383
4384         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
4385
4386 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4387
4388         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
4389
4390 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4391
4392         * ThemeVisualStyles.cs: Added support for TreeView.
4393
4394 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4395
4396         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
4397         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
4398
4399 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4400
4401         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
4402
4403 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4404
4405         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
4406         Implement 2.0 SP1 stuffs.
4407
4408 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4409
4410         * FileDialog.cs: Implement 2.0 SP1 stuffs.
4411
4412 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4413
4414         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
4415         Implement CanEnableIme property. (2.0 SP1)
4416
4417 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4418
4419         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
4420         from the 2.0 API.
4421
4422 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4423
4424         * Control.cs: Provide an internal way for a control to override
4425         the setting of Height.
4426         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
4427         set height using new method.
4428
4429 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4430
4431         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
4432
4433 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4434
4435         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4436         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
4437
4438 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4439
4440         * ThemeVisualStyles.cs: Added support for StatusBar.
4441
4442 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4443
4444         * DataObject.cs: Add the other IDataObject interface.
4445
4446 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4447
4448         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
4449         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
4450
4451 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4452
4453         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
4454         * ListView.cs: Hide non-public API.
4455         * MaskedTextBox.cs: Remove extra attribute.
4456
4457 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4458
4459         * DataGridViewImageCell.cs: Use formatted value instead of value
4460         to calculate preferred size.
4461
4462 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4463
4464         * ListBox.cs: Move some initialization around so that selected_indices
4465         is not accessed before it is created.
4466
4467 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4468
4469         * InputLanguageCollection.cs: Implement the collection better.
4470         [Fixes bug #385506]
4471
4472 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4473
4474         * ToolStripDropDownItem.cs: Get the correct event object for
4475         DropDownItemClicked.
4476         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
4477         [Fixes bug #385475]
4478
4479 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4480
4481         * DataGridViewRowCollection.cs: We don't currently support shared 
4482         rows.  Should fix test failures caused by previous commit.
4483
4484 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
4485
4486         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
4487         datagridview gets set.  Only paint cells in visible columns.
4488         * DataGridViewCell.cs: Draw border after cell content.
4489         * DataGridView.cs: Invalidate after setting some properties.  Only
4490         use visible columns.  Fit hit test bug with areas in the col/row header
4491         area but not in a row or col.  Implement UpdateCell/Row methods.
4492
4493 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
4494
4495         * DataGridViewElement.cs: Don't throw NIEX.
4496         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
4497         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
4498         * DataGridViewCheckBoxColumn.cs: Implement ToString.
4499         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
4500         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
4501         if the user filled in the formatting Value, use it.
4502
4503 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
4504
4505         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
4506         to a string.
4507
4508 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4509
4510         * BindingSource.cs: Some corrections to Filter property, as well as
4511         setting it for our list when resetting it.
4512
4513 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
4514
4515         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
4516         than the maximum.  Fixes reopened bug #384182.
4517
4518 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4519
4520         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
4521         Fixes remaining issues of #367490.
4522
4523 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4524
4525         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
4526         SystemInformation.WorkingArea to get max_screen value.
4527
4528 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4529
4530         * BindingSource.cs: Implement Filter and RemoveFilter.
4531
4532 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4533
4534         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
4535
4536 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4537
4538         * X11Dnd.cs: When trying to convert data and we know we started the
4539         dnd loop, don't try to use the cached data if the loop is not running,
4540         which means that the data has been resetted.
4541         Fixes #378191.
4542
4543 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4544
4545         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
4546         win32 behavior.
4547
4548 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4549
4550         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
4551         it to drawn off screen edge. Fixes bug #367490.
4552
4553 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4554
4555         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
4556         menu position to have only one assignment of Location var.
4557
4558 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4559
4560         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
4561         for this patch. Fixes bug #384115.
4562
4563 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
4564
4565         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
4566         the same.  If LargeChange is zero, set a minimum size for the scroll
4567         thumb grip.  [Fixes bug #384182]
4568
4569 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
4570
4571         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
4572         [Fixes bug #384181]
4573
4574 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
4575
4576         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
4577
4578 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4579
4580         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
4581         patch from Ernesto).
4582
4583 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4584
4585         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
4586
4587 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4588
4589         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
4590
4591 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4592
4593         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
4594
4595 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4596
4597         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
4598
4599 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
4600
4601         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
4602
4603 2008-04-27  Andreia Gaita <avidigal@novell.com> 
4604
4605         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
4606           supposed to return a reference to an mshtml interface, which we
4607           don't support).
4608         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
4609           reference to an mshtml interface, which we don't support). Code
4610           formatting cleanup.
4611         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
4612           DomDocument getter (it's supposed to return a reference to an
4613           mshtml interface, which we don't support). Code formatting cleanup.
4614
4615 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4616
4617         * ListView.cs: Ouch, forgot to commit.
4618
4619 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4620
4621         * ListView.cs: 
4622         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
4623
4624 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4625
4626         * ListView.cs: When calculating box selection for virtual mode, don't
4627         look for intersection with item's text, but item bounds, since that
4628         would mean read ListViewItem's text for _every_ item, and that's
4629         something we just can't do in virtual mode (items are only requested
4630         when drawn).
4631
4632 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
4633
4634         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
4635         partial support for managed windows (based on the patch from Ernesto).
4636
4637 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4638
4639         * ListView.cs: When doing a key search use FindItemWithText method
4640         instead of doing the search by ourselves, this way we avoid
4641         duplicating the code and also we handle the special case for virtual
4642         mode. To achieve that make our private overload of FindItemWithText
4643         internal and also have a 'roundtrip' parameter.
4644
4645 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4646
4647         * ListView.cs: When doing the layout don't request the
4648         ListViewItem instance if we are in virtual mode (since we can't request it
4649         until the item is actully drawn).
4650
4651 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4652
4653         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
4654         from Ernesto).
4655
4656 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4657
4658         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
4659         the patch from Ernesto).
4660
4661 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4662
4663         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
4664         * ThemeVisualStyles.cs: Added.
4665
4666 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4667
4668         * IDeviceContext.cs: Added a missing using.
4669
4670 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4671
4672         * ButtonBase.cs: Made IsDefault protected internal.
4673         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
4674
4675 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4676
4677         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
4678         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
4679         RadioButtonRenderer.cs: Included in the 1.1 profile.
4680         * IDeviceContext.cs: Added.
4681         * TextRenderer.cs: Included a member in the 1.1 profile.
4682
4683 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4684
4685         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
4686
4687 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4688
4689         * ErrorProvider.cs: Make the error icons come after the control
4690         they refer to.  It isn't the way the MS does it, but its better
4691         than what we were doing.  See bug #368587.
4692
4693 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4694
4695         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
4696         from Eric Albright that lazy loads the input language as ensures
4697         everything gets properly initialized.  Fixes bug #373871.
4698
4699 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4700
4701         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
4702         implicit mnemonics.  [Fixes bug #383000]
4703
4704 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4705
4706         * X11Dnd.cs: When canceling the operation, automatically restore the
4707         default cursor - normally the default cursor is restored when the
4708         mouse buttons are released, but we should be able to restore it even
4709         if the buttons are still pressed (for example, when pressing ESC to
4710         cancel).
4711         Fixes #381894.
4712
4713 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4714
4715         * X11Dnd.cs: When starting a new drad and drop operation, set control
4716         field to null, just as the other fields, to avoid calling any
4717         operation on a previous control. Also, when calling DndLeave on a
4718         control, set it to null, thus we don't fire that event multiple times
4719         for that control.
4720         Fixes #209264.
4721
4722 2008-04-23  Geoff Norton  <gnorton@novell.com>
4723
4724         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
4725         the whole_window object.  Fixes #377084.
4726
4727 2008-04-23  Andreia Gaita <avidigal@novell.com> 
4728
4729         * HtmlElement.cs: Implement RaiseEvent (event injection into the
4730           embedded browser)
4731
4732 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
4733
4734         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
4735
4736 2008-04-23  Andreia Gaita <avidigal@novell.com> 
4737
4738         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
4739           invocation
4740
4741 2008-04-23  Andreia Gaita <avidigal@novell.com> 
4742
4743         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
4744           attaching/detaching
4745
4746 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4747
4748         * X11Dnd.cs: When the drop was cancelled, or could just not be
4749         performed, return DragDropEffect.None always (match .net).
4750
4751 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
4752
4753         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
4754
4755 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
4756
4757         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
4758
4759 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
4760
4761         * DataGridView.cs: Add support for error icon tool tips.
4762         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
4763         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
4764
4765 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
4766
4767         * X11Structs.cs: Add mouse button masks enum.
4768         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
4769         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
4770         form resize/move operation instead of for each step of it.
4771         [Fixes bug #346529 for the x11 backend]
4772
4773 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4774
4775         * DataGridView*: Implement support for drawing error icons.
4776
4777 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4778
4779         * TreeView.cs: Make vbar and hbar internal.
4780         * TreeNode.cs: If collapsing the node removes one of the TreeView's
4781         scrollbars, invalidate the whole thing.
4782         [Fixes bug #382001]
4783
4784 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4785
4786         * TreeView.cs: Calling Sort() sets Sorted = true.
4787         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
4788         if the nodes need to be sorted.
4789         [Fixes bug #382028]
4790
4791 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
4792
4793         * Form.cs: Fire SizeChanged for both when the form is minimized and 
4794         restored.
4795         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
4796         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
4797
4798 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4799
4800         * ComboBox.cs: If the combobox is disabled, draw a disabled
4801         background before painting anything else.
4802         [Fixes bug #381729]
4803
4804 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4805
4806         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
4807         forget to send a Leave event to the target window - just as .net does
4808         when cancelling dnd operations.
4809
4810 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4811
4812         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
4813         soon as possible - this happens when we send the drop message to the
4814         target window. This way we avoid firing any DragOver _after_ drop finished.
4815         Fixes #378179.
4816
4817 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4818
4819         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
4820         * Form.cs: Handle form minimization as a special state, where size doesn't 
4821         change, but we have to fire SizeChanged.
4822         [Fixes bug #325122 for the win32 and x11 backends]
4823
4824 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4825
4826         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
4827         if the handle is disabled.
4828         [Fixes bug #371751]
4829
4830 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4831
4832         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
4833         for forms with FormBorderStyle.None.
4834         [Fixes bug #349571]
4835
4836 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4837
4838         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
4839         WM_EXITSIZEMOVE.
4840         [Fixes bug #346529 for the X11 backend]
4841
4842 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4843
4844         * XplatUIX11.cs: 
4845           - Send a mouse Enter message after say dragging the mouse with a 
4846           button down and then release it in another client.
4847           - Reset the cursor to prevent X11 from remembering it and setting it 
4848           before the control gets WM_SETCURSOR.
4849           - Qeueue a mouse move after a mouse enter like win32.
4850           [Fixes bug #323234]
4851
4852 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4853
4854         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
4855         It's sent when the form gets moved, resized, closed.
4856         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
4857         [Fixes bug #359193 for X11]
4858
4859 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4860
4861         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
4862         the build.
4863
4864 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4865
4866         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
4867         group. Fixes the 1.1 build.
4868
4869 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4870
4871         * ListView.cs: Use display indexes for selection in Details view, as
4872         well as do the proper layout based on display indexes for that view
4873         too.
4874
4875 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4876
4877         * ListView.cs: Focused item information is now stored as a display
4878         index, and display indexes are used all over the place for selection,
4879         instead of ListViewItem.Index values, which doesn't give us enough
4880         information to modify the selection in groups mode, and was broken.
4881
4882 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
4883
4884         * Control.cs: Do not fire MouseDown if validation of the control has 
4885         failed.
4886         * Form.cs: Validate the form before closing.
4887         [Fixes bugs #330501 and #353310]
4888
4889 2008-04-18  Andreia Gaita <avidigal@novell.com> 
4890
4891         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
4892           CreateWebBrowserSiteBase implementations
4893         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
4894           Style and TabIndex setters
4895
4896 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4897
4898         * ListViewGroup.cs: When returning the actual item count, return the
4899         proper count for default group.
4900         Fix the tests.
4901
4902 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4903
4904         * ListView.cs:
4905         * ListViewGroup.cs: When calculating groups layout, get the actual
4906         number of items per group, since groups added to the group BUT not
4907         added to the ListView are just ignored, and can cause some nasty
4908         exceptions because of the lack of synchronization. Also for
4909         ListViewGroup don't use lazy initialization for items, since we 
4910         the common scenario is to use it always - and it helps us to  refactor
4911         and clean the .ctor overloads.
4912
4913 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4914
4915         * ListView.cs: When adding an item to a ListViewItemCollection
4916         belonging to a group (ListViewGroup.Items), don't generate a redraw if
4917         the added item hasn't beeen previously added to the ListView instance
4918         refered by the group, since it will be ignored. This should avoid some 
4919         really nasty flickering.
4920
4921 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4922
4923         * ListView.cs: When accessing an item in a specific display
4924         position, use the helper method GetItemAtDisplayIndex, instead of
4925         direct access to the reordered_items_indices array. When doing layout
4926         for groups set the correct Items index for the display position (since
4927         in groups mode items don't have the same position as in Items
4928         collection).
4929         * ListViewGroup.cs: Add a field to store the starting item number,
4930         which is later used when calculating the layout.
4931
4932         Fixes #360805.
4933
4934 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
4935
4936         * Application.cs: Fixed ProductVersion to fallback to the assembly
4937         version. Fixes regression for bug #325413.
4938
4939 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4940
4941         * ListView.cs: New helper method to retrieve an item in a _specific
4942         display_ position (the items can be displayed in a different order
4943         than one of Items collection).
4944         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
4945         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
4946         specific display position (again remember that items can be sorted
4947         different than Items).
4948
4949 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
4950
4951         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
4952         list and update it when the collection changes.  We were recreating
4953         this several times per row paint and for every pixel the mouse moved
4954         across the grid.
4955         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
4956         changes.
4957
4958 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
4959
4960         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
4961         list to use generics.
4962         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
4963         and remove unneccessay casts.
4964
4965 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
4966
4967         * DataGridViewBand.cs: Add internal way to set displayed variable.
4968         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
4969         * DataGridView.cs: Make sure we always keep track of Displayed
4970         rows and columns, and only draw things that are displayed.
4971
4972 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
4973
4974         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
4975           whether the key events are filtered or not. Introduced
4976           PreFilter() process for this purpose. This fixes atokx3/iiimx
4977           shift state issue.
4978
4979 2008-04-16  Andreia Gaita <avidigal@novell.com> 
4980
4981         * HtmlHistory.cs: Implement Length property
4982
4983 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
4984
4985         * DataGridView.cs: Call EndEdit when a sort is performed so we take
4986         away the edit textbox.  Refactor to reuse column sort code.
4987
4988 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
4989
4990         * MenuAPI.cs: Remove the code that save and restore capture status of 
4991         grab_control, this fixes some Menu and Context menu bugs but maybe it can
4992         cause some others, I cant figure the possible problems of this patch but
4993         right now remove the code looks to be better than keep it. This patch fixes
4994         bugs #357638, #378721 and #379570.
4995
4996 2008-04-12  Andreia Gaita <avidigal@novell.com> 
4997
4998         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
4999         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
5000         add missing properties and event handlers.
5001         
5002 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
5003
5004         * ListBox.cs: Make sure the LargeChange we are setting is at least
5005         zero, to prevent an IOORE.  [Fixes bug #379531]
5006
5007 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
5008
5009         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
5010         in DropDownList mode, for each key-press select the next item 
5011         starting with that letter.
5012         For other modes, when no item selected, on arrow-up/-down and open 
5013         drop-down select the first item matching the text in the textbox.
5014
5015 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
5016
5017         * X11Keyboard.cs : Control.FromHandle() could return null
5018           in MoveCurrentCaretPos().
5019
5020 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5021
5022         * ListView.cs: When changing the size in VirtualMode, also Reset the
5023         selection.
5024         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
5025         changing selection info for VirtualMode.
5026         Fixes #372618.
5027
5028 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5029
5030         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
5031         view, don't use LineLimit for the first item - use NoWrap *always*
5032         instead, since ListView.LabelWrap is not used for this view.
5033         Fixes #378054.
5034
5035 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5036
5037         * Binding.cs: Call UpdateIsBinding when setting control - probably
5038         Binding is already usable and we don't need to wait to check the
5039         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
5040         Created, just like 2.0 does.
5041         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
5042
5043 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5044
5045         * Binding.cs: Just realized we don't need to have a handler for
5046         BindingContextChanged, since this info should be now consumed directly
5047         in the BindingManagerBase. And also, the manager.IsBindingSuspended
5048         state info is checked directly, instead of caching it.
5049
5050         * CurrencyManager.cs: IsSuspended should return always false if Count
5051         == 0.
5052
5053 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5054
5055         * Binding.cs: When calling PushData, return if manager.Count == 0,
5056         since we just don't have data to be read. Also, when setting the
5057         Control for binding, hook up some events to refresh the IsBinding
5058         state when BindingContext change or control gets created; use
5059         Control.IsHandleCreated instead of Control.Created check to set
5060         IsBinding state - we *actually* need to modify IsBinding when control
5061         is created, but we don't have any Created event, only HandleCreated.
5062         Fixes part of #349364.
5063
5064 2008-04-11  Geoff Norton  <gnorton@novell.com>
5065
5066         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
5067         warping a null Caret.
5068
5069 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5070
5071         * DataGridView.cs: Implement row/column autosizing methods. Implement
5072         autosorting.
5073         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
5074         * DataGridViewRowCollection.cs: Add an internal sorting method.
5075
5076 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5077
5078         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
5079         value in ListView drawing code.
5080
5081 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5082
5083         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
5084         is clicked.  Respect the user setting Cancel in FileOk.
5085
5086 2008-04-11  Geoff Norton  <gnorton@novell.com>
5087
5088         * ListView.cs: Avoid setting and resetting control Width/Heights and
5089         calculate the final value and set it once.  Prevents a feedback loop
5090         on the mac.
5091
5092 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5093
5094         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
5095         [Fixes bug #378869]
5096
5097 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
5098
5099         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
5100           Add some on-the-spot code, but it seems we don't need it.
5101
5102 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5103
5104         * Form.cs: Add method for DataGridView to trigger focus cues
5105         even when it handles the tab keypress.
5106
5107 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5108
5109         * DataGridView.cs: More keyboard handling, tab, esc.
5110         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
5111         when at the beginning or end of the text in the text box.
5112
5113 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5114
5115         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
5116
5117 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5118
5119         * DataGridView.cs: Some fixups for showing and adding the edit control.
5120         * DataGridViewButtonColumn.cs: Implement ToString.
5121         * DataGridViewCell.cs: Size and position the control simultaneously.
5122         * DataGridViewTextBoxCell.cs: Use base to position control.
5123
5124 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5125
5126         * DataGridViewCell.cs: Fix up some formatting and painting code.
5127         * DataGridViewImageCell.cs: Implement some NIEX methods.
5128
5129 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5130
5131         * ToolStripItemCollection.cs: What moving an item from one owner
5132         to another, remove from source owner before adding to destination.
5133         [Fixes bug #378109]
5134
5135 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5136
5137         * PictureBox.cs: Call Load when ImageLocation is set.
5138         [Fixes bug #378308]
5139
5140 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
5141
5142         * X11Keyboard.cs, XplatUIX11.cs :
5143           Implement over-the-spot mode (with some odd offsets).
5144           - set preedit position when caret is set.
5145           - Wrap XMoveResizeWindow() to move preedit position.
5146
5147 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5148
5149         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
5150         array lenght.
5151
5152 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5153
5154         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
5155         and ScanTableIndex public, it fix compilations errors when compiling
5156         WinForms to generate keyboard layout resources.
5157
5158 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5159
5160         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
5161         different element count than scan table. It prevents some errors in non
5162         standard keyboards.
5163
5164 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
5165
5166         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
5167
5168 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
5169
5170         * DataGridView.cs: Call OnContentClick.
5171         * DataGridViewCell.cs: Do a null check on ValueType instead
5172         of valueType.
5173         * DataGridViewCheckBoxCell.cs: Implement.
5174
5175 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5176
5177         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
5178
5179 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5180
5181         * X11Keyboard.cs : Check XGetIMValues() return value in
5182           case it does not return input styles in some environment.
5183
5184 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5185
5186         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
5187
5188 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5189
5190         * BindingContext.cs: Stub UpdateBinding method.
5191
5192 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
5193
5194         * X11Structs.cs : added couple of structs for XIM support.
5195         * X11Keyboard.cs :
5196           Release XIM in case it failed to create XIC. 
5197           Use consts for XNblah string.
5198           Add support for IM style customization and XIC creation
5199           for preedit-position and preedit-callback.
5200           Right now use MONO_WINFORMS_XIM_STYLE environment variable
5201           (list of: over-the-spot | on-the-spot | root). Only root
5202           mode works so far.
5203
5204           (redoing r99172 with fix.)
5205
5206 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5207
5208         * TreeView.cs: Center the checkbox a little better.
5209
5210 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5211
5212         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
5213         Apply very nice patch from Ernesto Carrea that simplifies our
5214         scrollbar drawing.  [From bug #376146]
5215
5216 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5217
5218         * TreeView.cs: Correct the location of the root node checkbox when
5219         ShowRootLines = false.  Don't draw the root lines for the root node
5220         when ShowRootLines = false.  [Fixes bug #377535]
5221
5222 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
5223
5224         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
5225         Fixed line endings.
5226         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
5227         line endings.
5228         * MaskedTextBox.cs: Added missing attribute. Code formatting.
5229         * PageSetupDialog.cs: Added missing attribute. Code formatting.
5230         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
5231         * ImeMode.cs: Added missing field.
5232         * HtmlWindow.cs: Code formatting. Fixed line endings.
5233         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
5234         warnings.
5235         * HtmlHistory.cs: Code formatting. Fixed line endings.
5236         * HtmlDocument.cs: Code formatting. Fixed line endings.
5237         * ToolStripPanel.cs: Added missing IList implementation.
5238         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
5239
5240 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
5241
5242         * BindingContext.cs: Changed argument names to fix corcompare errors.
5243         * DataGridView.cs: Removed extra explicit interface implementation
5244         of IDropTarget. Code formatting.
5245         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
5246         * ComboBox.cs: Changed argument names to fix corcompare errors.
5247         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
5248         errors.
5249         * GridColumnStylesCollection.cs: Changed argument names to fix
5250         corcompare errors. Removed extra tabs.
5251         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
5252         errors.
5253         * Control.cs: Changed argument names to fix corcompare errors. Code
5254         formatting. Removed extra explicit IList implementation.
5255         * TextBox.cs: Changed argument names to fix corcompare errors. Code
5256         formatting. Use string.Empty instead of "".
5257         * GridItemCollection.cs: Changed argument names to fix corcompare
5258         errors. Code formatting.
5259         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
5260         corcompare errors. Code formatting.
5261         * ImageList.cs: Changed argument names to fix corcompare errors.
5262         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
5263         * DataGridViewRowCollection.cs: Changed argument names to fix
5264         corcompare errors. Code formatting.
5265         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
5266         * DataGridViewSelectedCellCollection.cs: Changed argument names to
5267         fix corcompare errors. Code formatting.
5268         * DataGridViewComboBoxCell.cs: Changed argument names to fix
5269         corcompare errors. Code formatting.
5270         * LinkLabel.cs: Changed argument names to fix corcompare errors.
5271         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
5272         formatting.
5273         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
5274         Code formatting.
5275         * BindingSource.cs: Changed argument names to fix corcompare errors.
5276         Removed extra explicit interface implementations.
5277         * DataGridViewSelectedRowCollection.cs: Changed argument names to
5278         fix corcompare errors. Code formatting.
5279         * ToolStripItemCollection.cs: Removed extra explicit interface
5280         implementation of IList.ReadOnly.
5281         * DataGridViewColumnCollection.cs: Changed argument names to fix
5282         corcompare errors. Code formatting.
5283         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
5284         * ListView.cs:  Changed argument names to fix corcompare errors.
5285         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
5286         errors.
5287         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
5288         errors.
5289         * ListBindingHelper.cs: Changed argument names to fix corcompare
5290         errors.
5291         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
5292         fix corcompare errors. Code formatting.
5293         * ToolStripPanel.cs: Removed extra explicit implementation of
5294         IDropTarget interface.
5295         * ListBox.cs: Changed argument names to fix corcompare errors. Code
5296         formatting. Removed extra tabs and spaces.
5297         * DataGridViewCellCollection.cs: Changed argument names to fix
5298         corcompare errors.
5299         * Help.cs: Changed argument names to fix corcompare errors. Code
5300         formatting.
5301         * TabControl.cs: Changed argument names to fix corcompare errors.
5302         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
5303         errors.
5304         * TableLayoutSettings.cs: Changed argument names to fix corcompare
5305         errors.
5306
5307 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5308
5309         * ListBindingHelper.cs: When returning properties, only return those
5310         that are browsable. Also, don't do a linear search of the properties,
5311         but use the indexer of the PropertyDescriptorCollection class.
5312
5313 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5314
5315         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
5316         Dictionary containing the related (child) currency managers. Also,
5317         when setting DataSource, add datasource to our List if it is not a list.
5318
5319 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
5320
5321         * PropertyGridTextBox.cs: Fix background color of the buttons.
5322         * PropertyGridView.cs: Make the entry less jumpy.
5323
5324 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
5325
5326         * PropertyGrid.cs: Fix unused variable warnings.
5327
5328 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
5329
5330         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
5331         double-click. It expanded it once in the mouse down and then 
5332         again in the double-click handler.
5333
5334 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
5335         
5336         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
5337         TypeConverter and UITypeEditors.
5338
5339 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
5340
5341         * Control.cs: Visibility should be set synchronously, 
5342         so we must also redraw once it is and not rely on layouting or 
5343         other code to repaint.
5344         [Fixes bug #339898]
5345
5346 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
5347
5348         * DataGridViewCell.cs: Respect DataGridView.GridColor.
5349
5350 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5351
5352         * Control.cs: Invalidate when the alpha channel is less than 255,
5353         not only when control is transparent.
5354
5355 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5356
5357         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
5358         Implement some painting convenience methods that threw NIEX.
5359
5360 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5361
5362         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
5363         * DataGridViewLinkCell.cs: Implement.
5364
5365 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
5366
5367         * GridEntry.cs: Report the conversion exception error description.
5368         [Fixes bug #375792]
5369
5370 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
5371
5372         * PropertyGridView.cs: Do not scroll to item on resize.
5373         [Fixes bug #375789]
5374
5375 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5376
5377         * BindingContext.cs: When retrieving a BindingManagerBase, if the
5378         dataSource parameter is ICurrencyManagerProvider, then return
5379         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
5380         instead of creating a new one.
5381
5382 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5383
5384         * BindingSource.cs: Implement support for Type instances as
5385         DataSource.
5386
5387 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
5388
5389         * DataGridView.cs: Minor cleanups and call CellMouseUp.
5390         * DataGridViewCell.cs: Make some painting routines internally virtual.
5391         * DataGridViewButtonCell.cs: Implement.
5392
5393 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
5394
5395         * Control.cs: We always need to invalidate our children with
5396         transparent backgrounds when we are invalidated.
5397         [Fixes bug #376081]
5398
5399 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5400
5401         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
5402         and CancelCurrentEdit on CurrencyManager respectively. Implement
5403         support for ICancelAddNew too.
5404
5405 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5406
5407         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
5408         call EndNew/CancelNew if list is ICancelAddNew.
5409
5410 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
5411
5412         * DataGridView.cs: Guard against an exception while painting
5413         if there are no rows.
5414
5415 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
5416
5417         * DataGridView.cs: Implement a bunch of keyboard commands.
5418
5419 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
5420
5421         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
5422         isn't set, don't call OnPaint.  [Fixes bug #375300]
5423
5424 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5425
5426         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
5427         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
5428         hookup the remaining events related to CurrencyManager, and fire
5429         OnListChanged also for the Clear () method.
5430
5431 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5432
5433         * BindingSource.cs: Use Current and Position implementations in
5434         CurrencyManager instead of using our own routines, since we need 
5435         to be in synch with it. Count should NEVER return a -1 value, and 
5436         also report ListChanged events for both simple IList data 
5437         sources (manually) as well for IBindingList ones (by hooking up an
5438         event handler for it).
5439
5440 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5441
5442         * BindingSource.cs: Make one .ctor call the another, to avoid
5443         duplicate code. Add the CurrencyManager property, and also for AddNew
5444         throw the proper exceptions and show better error messages.
5445
5446 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5447
5448         * ComboBox.cs: Only adjust selectedindex if Handle has been
5449         created.  Fixes failing test.
5450
5451 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5452
5453         * ComboBox.cs: Adjust selectedindex if we insert a new item
5454         above the current selectedindex in a sorted ComboBox.
5455         [Fixes bug #374654]
5456
5457 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5458
5459         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
5460         [Fixes bug #374712]
5461
5462 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5463
5464         * DataGridViewTextBoxCell.cs: Implement stuffs.
5465
5466 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5467
5468         * TreeView.cs: Create the scrollbars even earlier to be
5469         double dog certain they are created before they are accessed.
5470
5471 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5472
5473         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
5474
5475 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5476
5477         * ScrollBar.cs: Create an internal safe Value setter so we
5478         won't crash if we try to set a value outside the min and max.
5479         * TextBoxBase.cs: Use safe value setter to guard against a
5480         potential NRE that is being reported by Reflector.
5481
5482 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5483
5484         * TreeView.cs: Create the scrollbars earlier in the constructor
5485         to attempt to guard against an NRE in SetTop in Reflector.
5486
5487 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5488
5489         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
5490         DataGridViewRowCollection.cs: Do not scroll column and row headers,
5491         show messagebox on data format error, use column display index
5492         correctly, make sure HitTest supports new layout stuff,
5493         make sure scrollbars support new layout stuff.
5494
5495 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
5496
5497         * XplatUIX11.cs : Patch by Doug Rintoul.
5498           For some IM engines, keypress events need to delay call
5499           to XPending() and XNextEvent() in the loop so that it
5500           does not mess the orders in XIM commit callback.
5501           Some KeyRelease events such as shift keys need to be
5502           processed both in the IM engine and winforms driver
5503           itself since winforms holds its own state check.
5504
5505           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
5506
5507 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
5508
5509         * X11Keyboard.cs, XplatUIX11.cs :
5510           add primitive support for XIM input support (preedit-
5511           nothing and status-nothing). It requires precise event
5512           capturing (XSelectInput/"filterEvents") and different
5513           call to XFilterEvent against root window.
5514           Get composed string and send dummy WM_IME_COMPOSITION.
5515           Free XIM and XIC instances in finalizer.
5516
5517           (This first patch does not include suggested changes
5518            by Doug Rintoul. It will follow.)
5519
5520 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
5521
5522         * DataGridView.cs: When binding to a property, if the property
5523         doesn't have a setter, set the column to readonly.
5524         [Fixes bug #343965]
5525
5526 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
5527
5528         * ComboBox.cs: Guard against NRE if an arrow key is hit while
5529         we aren't dropped down.  Support Home/End in DropDownList mode.
5530         [Fixes bug #371990]
5531
5532 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
5533
5534         * TreeNodeCollection.cs: Don't increment count until we've
5535         saved our index to return.
5536         [Fixes bug #373603]
5537
5538 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5539
5540         * Label.cs: Add padding to the label's AutoSize calculation.
5541         [Fixes bug #373792]
5542
5543 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5544
5545         * ListBindingHelper.cs: Actually implement GetListName method.
5546
5547 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5548
5549         * BindingSource.cs: Throw the propert expceptions for some methods, as
5550         well as detect the list item type for Add method if DataSource is null.
5551
5552 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5553
5554         * DataGridViewCell.cs: I don't know why I commented this out,
5555         putting it back for now.
5556
5557 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5558
5559         * DataGridViewCell.cs: Remove storage for owning column, just
5560         use column index.
5561         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
5562         * DataGridViewColumnHeaderCell.cs: If the header text has been
5563         explicitly set, return it.
5564         [Fixes bug #325979]
5565
5566 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5567
5568         * DataGridViewRowCollection.cs: Disable row sharing when
5569         using data binding.  Its a great feature, but lets work on
5570         getting DGV usable first before we worry about optimizations.
5571
5572 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5573
5574         * BindingSource.cs: When resetting our internal list, compute list
5575         item type information to be used for indirect list access. Also
5576         implement/tune some properties and methods related to the list access
5577         too.
5578         * ListBindingHelper.cs: Add a stub for GetListName method, used from
5579         BindingSource.
5580
5581 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5582
5583         * DataGridView.cs: If RowCount is increased while ColumnCount
5584         is zero, add a column.  [Fixes bug #331649]
5585
5586 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5587
5588         * DataGridViewRowCollection.cs: When adding new rows for
5589         databinding, make sure they are place before the add row.
5590         [Fixes bug #343961]
5591
5592 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5593
5594         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
5595         instead of Index order.
5596
5597 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5598
5599         * DataGridView.cs: If columns are added by increasing ColumnCount,
5600         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
5601         [Fixes bug #325588]
5602
5603 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5604
5605         * DataGridView.cs: Turn off and on the "new row" when 
5606         AllowUserToAddRows is toggled.  When the handle is created,
5607         set current cell and selected cell/row/col.
5608
5609 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5610
5611         * ComboBox.cs: When navigating the drop down by keyboard, we
5612         need to scroll the list box if our selection moves out of the
5613         currently shown items.  [Fixes bug #371990]
5614
5615 2008-03-24  Luke Page <luke.a.page@gmail.com>
5616
5617         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
5618         on the control. Also now handles unicode compatibility characters and
5619         stores the unicode compatibility length on the stack. Fixes Bugs
5620         #355198 and #366436.
5621
5622 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5623
5624         * BindingSource..cs: Take into account DataMember when re-creating the
5625         List property, and also create a specific kind of list as needed.
5626
5627 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5628
5629         * ListBindingHelper.cs: Add a new case for GetList () method - when we
5630         get an empty IEnumerable, try to detect whether the datamember is
5631         valid or not for that type, if true, return null, and throw exception
5632         otherwise.
5633
5634 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
5635
5636         * ComboBox.cs: Alt-Down should drop down the list, Esc should
5637         retract it.  [Fixes bug #371989]
5638
5639 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
5640
5641         * PropertyGrid.cs: Initialize the sorting button as pushed.
5642
5643 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
5644
5645         * PropertyGrid.cs: 
5646          - Visually select the PropertyTab.
5647          - Filter Properties by Attributes properly.
5648
5649 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5650
5651         * MenuItem.cs: Remove menu item from parent when disposed.
5652         [Fixes bug #372845]
5653
5654 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5655
5656         * ToolBar.cs: Don't reset layout_type if Dock = None.
5657
5658 2008-03-21  Andreia Gaita <avidigal@novell.com> 
5659
5660         * UserControl.cs: Select the first available control when we get focus.
5661           Fixes #372616
5662
5663 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5664
5665         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
5666         the content if we are in edit mode.  [Fixes bug #343964]
5667
5668 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5669
5670         * DataGridViewCell.cs: Fix border painting for column headers.
5671
5672 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5673
5674         * BindingSource.cs: When setting or resetting data source,
5675         use ListBindingHelper.GetList () method, since it will get the list in
5676         case datasource is IListSource.
5677
5678 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
5679
5680         * DataGridViewCell.cs: Implement lots more stuffs.
5681
5682 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5683
5684         * PropertyGridView.cs, GridEntry.cs: Implement support for 
5685         UITypeEditor.IsDropDownResizable.
5686
5687 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
5688
5689         * DataGridViewCell.cs: Remove unused variables, improve how
5690         several of the property getters work.
5691         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
5692         get its size from the parent row/col.
5693
5694 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5695
5696         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
5697         user alters manually the PropertyTabs collection via the 
5698         PropertyTabs property.
5699
5700 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5701
5702         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
5703         new tests for them to be sure to be compatible with .net.
5704
5705 2008-03-20  Andreia Gaita <avidigal@novell.com> 
5706
5707         * WebBrowserBase.cs: Fix attributes, add events
5708         * WebBrowser.cs: Fix Padding signature
5709
5710 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5711
5712         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
5713
5714 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
5715
5716         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
5717         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
5718         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
5719         passes the new suite of tests for it.
5720
5721 2008-03-18  Andreia Gaita <avidigal@novell.com> 
5722
5723         * WebBrowser.cs: Add missing attributes, missing Padding and
5724           DefaultSize properties, remove extraneous getters
5725
5726 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5727
5728         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
5729         method overloads.
5730
5731 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
5732
5733         * ComboBox.cs: Move resetting the selected index to keypress
5734         instead of textchanged.  Changing the text programmatically
5735         should not trigger resetting the selected index.  Fixes test.
5736
5737 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
5738
5739         * ComboBox.cs: When the user types into the textbox, reset
5740         the selected index to -1.  [Fixes bug #371672]
5741
5742 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
5743
5744         * FileDialog.cs: Support Control-A for selecting everything
5745         in an OpenFileDialog.  [Fixes bug #371564]
5746
5747 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
5748
5749         * DataGridView.cs: When row/column visible/height properties
5750         change, invalidate.  Take the NIEX out of InvalidateRow/Column
5751         etc.  We don't support them yet, but we can just invalidate
5752         everything until we do support them.  (Added MonoTODO).  Set
5753         proper control styles.
5754         * DataGridViewRow.cs: Don't call PaintHeader if row headers
5755         are turned off. 
5756
5757 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5758
5759         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
5760
5761 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
5762
5763         * DataGridViewRow.cs: Only paint the white background in
5764         cell bounds, the row bounds extends past the cells if the 
5765         grid width isn't as wide as the DGV.
5766
5767 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
5768
5769         * DataGridView*: Completely revamp the drawing to match the
5770         public API.  Our grids now look better, and call all the
5771         appropriate methods and event to allow users to override
5772         the painting and do their own.
5773
5774 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5775
5776         * ListBindingHelper.cs: Implement 2.0 GetList methods.
5777
5778 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
5779
5780         * DataGridView.cs: Implement BorderStyle.
5781
5782 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
5783
5784         * FileDialog.cs: Apply patch from Andy Hume: Any time we
5785         are comparing attributes, make sure we only look at the
5786         one we are interested.  These calls were failing if there
5787         were more than one attribute.
5788         [Fixes bug #370385]
5789
5790 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
5791
5792         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
5793
5794 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
5795
5796         * PageSetupDialog.cs: Stub EnableMetric.
5797         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
5798         * PrintPreviewDialog.cs: Add ProcessDialogKey,
5799         ProcessTabKey.
5800
5801 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
5802
5803         * MonthCalendar.cs: Remove unused variable.
5804
5805 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
5806
5807         * DataGridView*.cs: corcompare stuffs.
5808
5809 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5810
5811         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
5812         The savings aren't worth the extra code to fix the optimization.
5813         [Fixes bug #368585]
5814
5815 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5816
5817         * ToolBar.cs: Always call base.Dock in the Dock override so that
5818         Control's layout_type gets reset correctly.
5819         [Fixes bug #368882]
5820
5821 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
5822
5823         * X11Dnd.cs: End DnD operation also for the middle mouse button.
5824
5825 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5826
5827         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
5828         at the same time we do explicit ones, because we have to give all
5829         other controls on the container a chance to handle explicit ones
5830         first.  If no one has an explicit mnemonic, then we can let the
5831         MenuStrip have a shot at implicit mnemonics.
5832         * MenuStrip.cs: Create an implicit mnemonic function.
5833         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
5834         mnemonics for MenuStrips.
5835         [Fixes bug #368493]
5836
5837 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5838
5839         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
5840         DataGridColumnStyle.cs: corcompare stuffs.
5841
5842 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5843
5844         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
5845         Details - This is needed after we added the bits to use any available
5846         column also for List and SmallIcon view. 
5847
5848 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5849
5850         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
5851         at the proper place, not only when changing SelectedIndex and changing
5852         the selection using keys/mouse, as .net does.
5853
5854 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5855
5856         * ControlBindingsCollection.cs: Implement last 2.0
5857         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
5858         in the new 2.0 Add methods.
5859
5860 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5861
5862         * ListBox.cs: When calling SelectedIndexCollection.Clear,
5863         return if no items are previously selected - this is done to avoid 
5864         firing OnSelectedIndexChanged without need to do so. Also,
5865         when creating handle ensure that the focused item is visible (as
5866         .net does).
5867
5868 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5869
5870         * ListBox.cs: Rewrote/refactored most of selection code. We require
5871         the following things in selection: a) keep selection sorted (both
5872         indices and items), b) SelectedIndices automatically detect the
5873         selection mode, c) SelectedIndex should be the first selected item
5874         index, d) Need to Focus/adjust scroll bar when selecting a new item,
5875         not only for SelectedIndex, which is specially important in Multi*
5876         selection modes. To achieve this we are moving the selection core to
5877         SelectedIndexCollection and make depend all selection modifications on
5878         it.
5879         Fixes #366438.
5880
5881 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5882
5883         * ToolStrip.cs: Enable implicit mnemonics for drop down
5884         menu strips.  [Fixes part of bug #367692]
5885
5886 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5887
5888         corcompare - fix parameter names [stragglers].
5889         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
5890         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
5891         TabControl.cs.
5892
5893 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5894
5895         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
5896         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
5897         mnemonic, let the ToolStripManager have it even if it doesn't
5898         have a matching mnemonic.
5899         [Fixes bug #367499]
5900
5901 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5902
5903         corcompare - fix warning about implicit implementation
5904         * ToolStrip.cs: Add IToolStripData interface.
5905         * IToolStripData.cs: Add.
5906
5907 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5908
5909         corcompare - fix warning about implicit implementation
5910         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
5911         * IBounds.cs: Add.
5912
5913 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
5914
5915         corcompare - fix parameter names [N-Z].
5916         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
5917         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
5918         PropertyManager.cs, RichTextBox.cs,
5919         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
5920         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
5921         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
5922         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
5923         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
5924         ToolStripContentPanel.cs, ToolStripDropDown.cs,
5925         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
5926         ToolStripPanel.cs, ToolStripSeparator.cs,
5927         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
5928         UICuesEventHandler.cs, UpDownBase.cs.
5929
5930 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
5931
5932         corcompare - fix parameter names [G-M].
5933         GridColumnStylesCollection.cs, GridItemCollection.cs,
5934         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
5935         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
5936         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
5937         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
5938         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
5939
5940 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
5941
5942         corcompare - fix parameter names [A-F].
5943         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
5944         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
5945         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
5946         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
5947         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
5948         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
5949         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
5950
5951 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
5952
5953         * GridEntry.cs: Do not convert not only if the types match, 
5954         but also if the property type is assigneable from the value's
5955         type.
5956         [Fixes bug #366566]
5957
5958 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
5959
5960         * PropertyGridView.cs: 
5961          - Subscribe to the listbox only once and not everytime.
5962          - Update the textbox even if SetValue fails.
5963          - Close the listbox before calling TrySetValue just in case.
5964          [Fixes bug #366569]
5965
5966 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
5967
5968         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
5969
5970 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5971
5972         * ListView.cs: Implement support for custom column width based on
5973         Columns collection (we were previously using this collection only
5974         with Details view).
5975         Fixes #364484.
5976
5977 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5978
5979         * ListViewItem.cs: For Tile view, always set bounds for the first
5980         subitem (which is the main one), and also don't let Width be larger
5981         than ListView.TileSize.Width. Improve code readibility also.
5982         * ThemeWin32Classic.cs: When painting the ListViewItem instances
5983         in Tile view, _always_ use the NoWrap flag.
5984         Fixes #360798.
5985
5986 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
5987
5988         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
5989         in case.
5990         * GridEntry.cs: For MS compitability make all child properties 
5991         readonly if the parent is readonly. Ugh.
5992         [Fixes bug #365945 and #365944]
5993
5994 2008-02-29  Andreia Gaita <avidigal@novell.com> 
5995
5996         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
5997           relative to the history
5998
5999 2008-02-29  Andreia Gaita <avidigal@novell.com>
6000
6001         * HtmlElement.cs: More handlers for mouse and key events
6002
6003 2008-02-28  Andreia Gaita <avidigal@novell.com>
6004
6005         * WebBrowserBase.cs: MouseClick sig changed.
6006         * HtmlHistory.cs: Implement history navigation
6007         * HtmlElement.cs: Add event handlers, and connect them.
6008
6009 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
6010
6011         * GridEntry.cs: 
6012          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
6013            so that DisplayNameAttribute doesn't get ignored.
6014          - Check for ParenthesizeNameAttribute and parenthesize the Label.
6015          - Add support for PasswordPropertyTextAttribute
6016         * PropertyGridView.cs: Check if an entry is a password.
6017         [Fixes bugs #365589, #365586, #365588]
6018
6019 2008-02-28  Andreia Gaita <avidigal@novell.com>
6020
6021         * PropertyGridView.cs: Revert the message filtering change, as we
6022         need it to block after all. Remove block parameter, unnecessary.
6023
6024 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
6025
6026         * UserControl.cs: Better implementation of GetPreferredSize.
6027         First step to fixing bug #361441.
6028
6029 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6030
6031         * Binding.cs: Actually implement data binding support for 
6032         classes implementing IBindableComponent.
6033         * ControlBindingsCollection.cs: Likewise.
6034
6035 2008-02-26  Andreia Gaita  <avidigal@novell.com>
6036
6037         * PropertyGridView.cs: Use a message filter to check when to 
6038         close the dropdown
6039
6040 2008-02-26  Andreia Gaita  <avidigal@novell.com>
6041
6042         * Application.cs: Change the message_filters loop so a filter 
6043         can be removed while looping.
6044
6045 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
6046
6047         * GridEntry.cs: Optimization in ToggleValue so that it caches
6048         the current value.
6049         * PropertyGridView.cs: An optimization so that the property isn't 
6050         re-read twice for each StandardValue added to the drop-down menu.
6051         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
6052         license.
6053         [Fixes bug #362755]
6054
6055 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
6056
6057         * Application.cs: Apply patch from Justin Cherniak to match
6058         MS better for ProductName, ProductVersion, and CompanyName.
6059         [Fixes bug #361709]
6060
6061 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6062
6063         * Binding.cs: Actually implement 2.0 NullValue property. Also
6064         when changing the formatting related properties, only update the state
6065         if formatting_enabled is true (we don't mind otherwise).
6066
6067 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
6068
6069         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
6070         [Fixes bug #364486]
6071
6072 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
6073
6074         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
6075         of GetType on the current value as it uses reflection to 
6076         determine the type. This fixes the case where the new value is 
6077         null. 
6078
6079 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
6080
6081         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
6082         past the view.
6083
6084 2008-02-24  Luke Page  <luke.a.page@gmail.com>
6085
6086         * Line.cs, TextControl.cs: Implement offset x and y so that a
6087         document doesn't have to begin  at (0,0) on the viewpoint.
6088         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
6089         bars and switches the text alignment (and therefore is now
6090         implemented for textbox). Fixes #321383.
6091
6092 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6093
6094         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
6095         properties. Also when changing FormattingEnabled update the control
6096         property -as .Net does-.
6097
6098 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
6099
6100         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
6101         * Binding.cs: Add stubs for the overloads of the Add method in
6102         CBCollection.
6103
6104 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6105
6106         * Binding.cs: PullData () returns a false value if we got an exception.
6107         Also when validating the control and we get an error, instead of
6108         setting the value of the previous one, cancel the event (tested in 1.1
6109         and 2.0).
6110
6111 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
6112
6113         * TreeView.cs: Make selected_node and highlighted_node internal.
6114         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
6115         to null when Nodes.Clear is called.
6116         [Fixes bug #363884]
6117
6118 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6119
6120         * FontDialog.cs: Ensure that when the Font is set in code,
6121         all the gui pieces are updated accordingly.
6122         [Fixes bug #361020]
6123
6124 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6125
6126         * TextRenderer.cs: Respect proposed size for MeasureString.
6127         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
6128         autosize, use a proposed width to force wrapping for long text.
6129         [Fixes bug #360981]
6130
6131 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6132
6133         * TreeView.cs: Factor in checkboxes = false and state images in
6134         to HitTest.  [Fixes bug #363360]
6135
6136 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6137
6138         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
6139         when drawing the selected range.
6140         [Fixes bug #363648]
6141
6142 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6143
6144         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
6145         ResizeRedraw control styles.
6146         [Fixes bug #363555]
6147
6148 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6149
6150         * TreeView.cs: StateImages are basically custom checkboxes, so
6151         factor their size the same as real checkboxes when determining
6152         what got clicked.
6153         [Fixes bug #363367]
6154
6155 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6156
6157         * MessageBox.cs: Make the message box wider if the form caption
6158         is longer than the text in the form.
6159         [Fixes bug #361137]
6160
6161 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
6162
6163         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
6164
6165 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6166
6167         * TreeNode.cs: Guard against an NRE when the parent's
6168         StateImageList hasn't been set.
6169         [Fixes bug #363353]
6170
6171 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6172
6173         * SplitContainer.cs: Add SupportsTransparentBackColor and
6174         OptimizedDoubleBuffering control styles.
6175         [Fixes bug #363303]
6176
6177 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6178
6179         * Application.cs: For the app data paths and the registry key paths,
6180         ensure they are created before returning them to the user.
6181         [Fixes bug #361709]
6182
6183 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6184
6185         * Application.cs: Guard against an NRE in CompanyName and
6186         ProductName.
6187
6188 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6189
6190         * Application.cs: For CompanyName, ProductName, and ProductVersion,
6191         make sure we handle all three cases correctly: attribute is present,
6192         attribute is present but is an empty string, and attribute is not
6193         present.
6194
6195 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
6196
6197         * PropertyGridView.cs: 
6198          - Fix a NRE that caused a test failure
6199          - Another performance improvement - cache the standard values
6200          listbox.
6201
6202 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6203
6204         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
6205         code paths.
6206
6207 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
6208
6209         * PropertyGridView.cs: Fix a big performance bug.
6210
6211 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6212
6213         * SelectionRange.cs: Apply patch from Andy Hume to make
6214         constructor behavior more accurate.  [Fixes bug #362117]
6215
6216 2008-02-19  Andreia Gaita <avidigal@novell.com> 
6217
6218         * Control.cs: Added a new flag is_disposing to track if the
6219         window is currently in the process of being disposed of.
6220         This is used so that, when firing visibility changes triggered
6221         by unparenting controls during Dispose, the control doesn't
6222         get created again.      
6223
6224 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6225
6226         * ComboBox.cs: Set height to preferred height when the handle
6227         is created.  [Fixes bug #360862]
6228
6229 2008-02-18  Andreia Gaita <avidigal@novell.com>
6230
6231         * XplatUIX11.cs: Create FosterParent with border width at 0.
6232         With the previous value of 4, everytime a control got reparented
6233         from parent = null, it's location would be shifted right and 
6234         down by 4, since these coordinates would be offset by the 
6235         FosterParent's border width.
6236
6237 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
6238
6239         * Control.cs: During diposing firstly remove ourselfes from
6240         the parent and *then* destroy our handle, because removing
6241         ourselfes from the parent controls collection causes 
6242         VisibilityChange, etc events, which require a handle and end
6243         up recreating the control.
6244
6245 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
6246
6247         * GridEntry.cs: Set expanded state before notifying that the
6248         expansion has taken place.
6249         * PropertyGridView.cs:
6250          - Set the propertygridtextbox text to the selected 
6251          StandardValue before proceeding to setting it.
6252          - Scrolling bugfixes.
6253
6254 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6255
6256         * GridEntry.cs:
6257          - Fix ValueText to not return null.
6258          - Fix conversion error reporting to actually happen.
6259         * PropertyGridView.cs: Set entry only if the text has changed.
6260         [Fixes bug #362116]
6261
6262 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6263
6264         * GridEntry.cs: 
6265          - Fix handling of a null current value.
6266          - Swallow editor exceptions.
6267         [Fixes bug #362114]
6268
6269 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6270
6271         * PropertyGrid.cs: Clear current items first thing before 
6272         repopulating subitems.
6273         * GridEntry.cs: 
6274          - Handle null StandardValuesCollection.
6275          - Mark as not editable if there is no PropertyDescriptor and
6276          if the Converter cannot convert from string.
6277         [Part of fix for bugs #360666 and #358332]
6278
6279 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6280         * MaskedTextBox.cs: Now skips non editable characters after a
6281         character has been entered and we are progressing to the next
6282         position in the MaskedTextBox.
6283
6284 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6285         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
6286         that it changes the selection rather than just repositioning the
6287         cursor. Fixes Bug #360873.
6288
6289 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6290         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
6291         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
6292         correctly. See #359330
6293
6294 2008-02-15  Andreia Gaita <avidigal@novell.com>
6295
6296         * XplatUIX11.cs: If the handle is null when posting a message, use the
6297         current thread queue to post instead. Fixes #332409
6298
6299         * SendKeys.cs: Slight optimization
6300
6301 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
6302
6303         * PropertyGrid.cs, PropertyGridView.cs:
6304         Fix multiple scrolling and sizing issues.
6305         [Fixes bug #359199]
6306
6307 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
6308
6309         * PropertyGridView.cs: Ensure that drop down editors are shown
6310         in the WorkingArea of the screen.
6311         [Fixes bug #359807]
6312
6313 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
6314
6315         * GridEntry.cs: Fail silently when UITypeEditor is missing.
6316         [Fixes bug #360666]
6317
6318 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6319
6320         * Binding.cs: Implement 2.0 DataSourceNullValue property.
6321
6322 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
6323
6324         * PropertyGridView.cs:
6325          - Clear the controls in the drop down form after it is hidden.
6326          - Fix Width sizing of the dropdown editors to match MSFT.
6327
6328 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
6329
6330         * PropertyGridView.cs: 
6331          - Fix height for drawing the grid entry
6332          text value, so that it clips multiline text properly.
6333          - Fix unfocusing to match MSFT.
6334
6335 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
6336
6337         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
6338         Fixes a bug where on repopulation after value changed items become
6339         expandable.
6340
6341 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6342
6343         * Binding.cs: For the 2.0 profile, look for a 
6344         'PropertyChanged' event in the target control, and add checks for
6345         DataSourceUpdateMode property to change -or not- the data source
6346         from validation/control property change.
6347
6348 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
6349
6350         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
6351           not compare struct with null in 2.0).
6352
6353 2008-02-10  Luke Page <luke.a.page@gmail.com>
6354
6355         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
6356         updates the provider and if not using a provider, uses the internal document
6357         class implementation of password char. Also when showing text, uses display string
6358         from the provider, instead of the actual text.
6359
6360 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6361
6362         * Binding.cs: Ooooops, forgot to take into account the data_source
6363         and binding_member_info null case (it was breaking the Binding tests).
6364
6365 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6366
6367         * Binding.cs: Implement support for data source changes exposed by
6368         'PropertyNameChanged' events, and update the control property as
6369         needed.
6370
6371 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6372
6373         * Binding.cs: Implement 2.0 WriteValue method.
6374
6375 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6376
6377         Commit patch from James Purcell for better AutoScale implementation:
6378
6379         * ScaleControl should call GetScaledBounds with the control's total size rather
6380         than client size.  GetScaledBounds should handle ignoring the borders in its
6381         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
6382         (for the most part they just call the base code now since that is fixed).
6383         * Added ScaleChildrenInternal to allow controls to disable scaling of children
6384         without having to override ScaleChildren (since none of .NET's controls do). 
6385         This is required for most controls in Mono that have scrollbars to prevent the
6386         scrollbars from being moved/resized.
6387         * Nested ContainerControls can have a different scale mode than their parent. 
6388         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
6389         designer produce different results both of which look incorrect).
6390         * Default AutoScaleMode for ContainerControl should be Inherit.
6391         * Simplified workaround for ComboBox scaling issue.
6392         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
6393         1.0 style auto scaling should scale the whole control's size instead of
6394         ignoring the borders (except for Form) and the rounding is done differently to
6395         preserve control alignment.
6396         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
6397         GetAutoScaleSize.
6398         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
6399         * CurrentAutoScaleDimensions should round the estimated character width instead
6400         of truncating.
6401         * ListBox's GetScaledBounds should always use the height it was set to instead
6402         of the height that was passed in.  This prevents rounding errors from
6403         accumulating quickly with IntegralHeight.
6404         [Bug #359098]
6405
6406 2008-02-08  Andreia Gaita <avidigal@novell.com>
6407
6408         * Form.cs: Add a null check (darn it). 
6409
6410 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6411
6412         * MdiClient.cs: Make sure the requesting form actually owns the
6413         control menu items before removing them.  Also, use
6414         Suspend/ResumeLayout when adding or removing items so we only
6415         layout once.
6416         [Fixes bug #359887]
6417
6418 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6419
6420         * Control.cs: Guard against an NRE in ShowFocusCues.
6421         [Fixes bug #359830]
6422
6423 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6424
6425         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
6426         property, as well as stubbing DataSourceUpdateMode.
6427
6428 2008-02-08  Andreia Gaita <avidigal@novell.com>
6429
6430         * Form.cs: When closing forms, get focus back to the active control of the
6431         active form. [Fixes #341314, corner case]
6432         
6433 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6434
6435         * MdiClient.cs: After we move the scrollbars, invalidate the NC
6436         area, so any old scrollbar artifacts are cleaned up.
6437         [Fixes bug #336305]
6438
6439 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6440
6441         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
6442         for our menus, display that control box menu instead of the 1.1
6443         menu one.
6444
6445 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6446
6447         * MdiControlStrip.cs: Add property to access the mdi form tied to
6448         each toolstripitem.
6449         * MdiClient.cs: Be smarter about removing and adding toolstripitems
6450         to the implicitly merged menu.  Every time we clicked the form, items
6451         were getting removed and the re-added, causing the form to jump around
6452         as the menu resized.
6453
6454 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6455
6456         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
6457         was being reset by the implicit menu merge for menustrips.
6458         [Fixes bug #336296]
6459
6460 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6461
6462         * Form.cs: Don't do the previous change when WindowState = Normal,
6463         or it messes up where the window is placed.  Fixes test failure.
6464
6465 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6466
6467         * Form.cs: When becoming visible, if we are an MDI child, call
6468         SetWindowState with a dummy old_state so that changes will actually
6469         be made.
6470         [Fixes the 2nd part of bug #325473]
6471
6472 2008-02-07  Andreia Gaita <avidigal@novell.com>
6473
6474         * Control.cs: Reset properties to their pre parent-change values in case
6475         the new parent == null (in which case we're basically removing the control, 
6476         and don't want any events fired due to fake property changes)
6477         [Fixes #355850]
6478
6479 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
6480
6481         * PropertyGridView.cs: 
6482          - Refactor SetValue to allow setting the value
6483         when a custom editor is used, but the entry is not editable.
6484          - Remove the custom editor control on CloseDropDown.
6485         [Fixes #359196]
6486
6487 2008-02-06  Andreia Gaita <avidigal@novell.com>
6488
6489         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
6490         reflection only on 1.1, this property is public on system.drawing on 2.0.
6491         Fixed #359247
6492
6493 2008-02-06  Andreia Gaita  <avidigal@novell.com>
6494         
6495         * WebBrowser.cs: Do a normal page refresh by default.
6496
6497 2008-02-05  Andreia Gaita  <avidigal@novell.com>
6498
6499         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
6500         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
6501         platforms. Fixes #359036
6502         
6503         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
6504         platform-specific flags.
6505
6506 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6507
6508         * Binding.cs: Add 2.0 BindableComponent property - just return control
6509         by now.
6510
6511 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
6512
6513         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
6514         Jonathan for this patch. Fixes #358442.
6515
6516 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
6517
6518         * Form.cs: If we change the active MDI child form, let the others
6519         know they need to repaint their title bar so it will appear inactive.
6520         [Fixes part 1 of bug #325473]
6521
6522 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
6523
6524          * PropertyGridView.cs: Do not trucate custom editors' width
6525          and align them to the left.
6526          [Fixes #358353 and #358349]
6527
6528 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6529
6530         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
6531         Also fix the arguments passed to CollectionChangeEventArgs in the
6532         related methods.
6533
6534 2008-02-04  Geoff Norton  <gnorton@novell.com>
6535
6536         * Hwnd.cs: The conversion to Quartz coordinates happens in
6537         System.Drawing.  Removing this translation from here.
6538
6539 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
6540
6541          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
6542          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
6543          GridItemCollection.cs:
6544          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
6545
6546 2008-02-04  Geoff Norton  <gnorton@novell.com>
6547
6548         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
6549         SYSKEYUP if any other key has been pressed in the mean time.
6550         Fixes #324404
6551
6552 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6553
6554         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
6555         when the item in current position is different than 0. Also, save the
6556         item index in the beginning of the operation, instead of getting the
6557         index of the item when the event is actually performed. Lastly clean
6558         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
6559         triggered.
6560         [Fixes #357873]
6561
6562 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6563
6564         * Form.cs: Alt-Minus for MDI children system menu should work
6565         with both the minus keys on the keyboard.
6566         [Fixes bug #336295]
6567
6568 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6569
6570         * Control.cs: Don't invalidate on region change.  The WM should
6571         take care of this automagically.  Keeps us out of an infinite
6572         paint loop if someone changes the Region in the OnPaint.
6573         [Fixes bug #358327]
6574
6575 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
6576
6577          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
6578
6579 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6580
6581         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
6582         down the MonthCalendar only on F4, not Alt+F4.
6583         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
6584         [Fixes bug #358340]
6585
6586 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6587
6588         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
6589         if its part of a DateTimePicker, else, use the back color.
6590         [Fixes bug #358339]
6591
6592 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6593
6594         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
6595         [Fixes bug #358342]
6596
6597 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6598
6599         * CurrencyManager.cs: When we get a ListChanged event from our source,
6600         always fire our own ListChanged event, as .Net does.
6601
6602 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6603
6604         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
6605         #358379.
6606
6607 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6608
6609         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
6610         property. Removed if for richtext property that was always true.
6611         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
6612
6613 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6614
6615         * TextBoxBase.cs - commited patch from James Purcell that
6616         correctly sets the FixedHeight control style when the MultiLine
6617         property is changed on a TextBox control. Fixes bug 358229.
6618
6619 2008-02-02  Luke Page  <luke.a.page@gmail.com>
6620
6621         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
6622         Fixes bug 351938 - caret is positioned correctly when drawn
6623         and when calculating textual position of caret, no longer
6624         has a NRE in certain situations.
6625         
6626 2008-02-01  Geoff Norton  <gnorton@novell.com>
6627
6628         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
6629         get that region removed from the paint event.
6630         * XplatUICarbon.cs: Remove the window mapping after disposing of 
6631         window.  Prevents a crash with handle reuse.  Optimize exposes
6632         only onto visible windows (rare; but possible).
6633
6634 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6635
6636         * UpDownBase.cs: Make sure the internal textbox calls the base's
6637         OnMouseDown and OnMouseUp so the textbox will function correctly.
6638         There were notes saying it doesn't chain up, but its an internal
6639         class, so our implementation may differ.
6640         [Fixes bug #357482]
6641
6642 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6643
6644         * ListBox.cs: Fix a logic error and don't process MouseDown
6645         for mouse buttons other than Left.
6646
6647 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6648
6649         * Control.cs: Remove HeightInternal.
6650         * ListBox.cs: Commit patch from James Purcell that correctly
6651         calculates heights for ListBoxen.
6652         [Fixes bug #357152]
6653
6654 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6655
6656         * Label.cs: Apply patch from James Purcell that corrects the 
6657         signature of the AutoSize property.
6658         [Fixes bug #357605]
6659
6660 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6661
6662         * ListBox.cs: Don't throw [Mouse]Click events for buttons
6663         other than the left mouse button.
6664
6665 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
6666
6667         * Control.cs: Remove my awesome optimization as it caused some
6668         regressions with control ordering.  :(
6669         [Fixes bug #357467]
6670
6671 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
6672
6673          * PropertyGridView.cs: Fix a NRE on double click when there is no
6674          selected object.
6675
6676 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6677
6678         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
6679
6680 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
6681
6682         * ListBox.cs: Call MouseClick and MouseDoubleClick.
6683         [Fixes bug #357146]
6684
6685 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6686
6687         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
6688         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
6689         instead of Hwnd.bmp_g.
6690
6691 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6692
6693         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
6694         Use the Hwnd one instead.
6695
6696 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6697
6698         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
6699
6700 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6701
6702         * Form.cs: corcompare for RestoreBounds.
6703
6704 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6705
6706         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
6707
6708 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6709
6710         * Form.cs: Handle Alt-Minus for MDI children forms.
6711         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
6712         Add mnemonics to the control menu.
6713         [Fixes bug #336295]
6714
6715 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6716
6717         * Binding.cs: Initial implementation bits of FormattingEnabled
6718         property and BindingComplete event (2.0). 
6719         * BindingCompleteEventArgs.cs: Internal methods for setting error text
6720         and exception.
6721
6722 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
6723
6724         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
6725         table.Location.  [Fixes bug #354672]
6726
6727 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
6728
6729         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
6730         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
6731
6732 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6733
6734         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
6735         of doing all the re-bound work, just invalidate and call SetControlText 
6736         to set the updated text of selected item to our textbox.
6737         Fixes #333750.
6738
6739 2008-01-28  Andreia Gaita <avidigal@novell.com>
6740
6741         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
6742         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
6743         missing properties and methods. Add Load, Unload, Error, GotFocus, 
6744         LostFocus, Resize, Scroll events (only load and unload are connected)
6745
6746 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
6747
6748         * AccessibleObject.cs: Modified argument names to match MS.
6749         * Button.cs: Modified argument names to match MS.
6750         * BindingContext.cs: Modified argument names to match MS.
6751         * BindingMemberInfo.cs: Modified argument names to match MS.
6752         * ButtonBase.cs: Modified argument names to match MS.
6753         * ComboBox.cs: Modified argument names to match MS.
6754         * Control.cs: Modified argument names to match MS.
6755         * CheckedListBox.cs: Modified argument names to match MS.
6756         * CommonDialog.cs: Modified argument names to match MS.
6757         * DataGrid.cs: Modified argument names to match MS.
6758         * CursorConverter.cs: Modified argument names to match MS.
6759         * ControlPaint.cs: Modified argument names to match MS.
6760         * CheckBox.cs: Modified argument names to match MS.
6761         * ControlBindingsCollection.cs: Modified argument names to match MS.
6762         * BindingSource.cs: Modified argument names to match MS.
6763         * DataFormats.cs: Modified argument names to match MS.
6764         * ContainerControl.cs: Modified argument names to match MS.
6765         * CurrencyManager.cs: Modified argument names to match MS.
6766         * Application.cs: Modified argument names to match MS.
6767         * ContextMenuStrip.cs: Modified argument names to match MS.
6768         * ContextMenu.cs: Modified argument names to match MS.
6769         * BindingManagerBase.cs: Modified argument names to match MS.
6770         * WindowsFormsSection.cs: Fixed line ending.    
6771
6772 2008-01-27  Andreia Gaita <avidigal@novell.com>
6773
6774         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
6775         detecting that the dropdown toolwindow is hidden. EndLoop outside the
6776         while.
6777
6778 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
6779
6780         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
6781         MS. Code formatting.
6782
6783 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6784
6785         * Binding.cs: Don't avoid the Format event if the control 
6786         property type is object. Also, if the value retrieved by 
6787         the data source is null _and_ the control proeprty type 
6788         is object, return Convert.DBNull (match .Net).
6789         Fixes part of #324286.
6790
6791 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6792
6793         * ListControl.cs: Since we are getting two BinginContextChanged events
6794         for the same binding context instance (when the control is added to
6795         form, and when the form is actually shown), take it into account only the
6796         first time for a given binding context instance.
6797         Fixes part of #324286.
6798
6799 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
6800
6801          * PropertryGridView.cs: Ops.
6802
6803 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
6804
6805          * PropertyGridView.cs: Close dropdown form if the owner form is
6806          moved or minimized.
6807          [Fixes bug #322446]
6808
6809 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
6810
6811          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
6812          RootGridEntry.cs, CategoryGridEntry.cs:
6813          PropertyGrid rewrite.
6814          - Rewrite all of the control logic in PropertyGrid.
6815          - Rewrite all of the ComponentModel logic in GridEntry.
6816          - Rewrite all UI work in PropertyGridView.
6817          - Many bugfixes, etc.
6818
6819 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
6820
6821         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
6822         when all contained controls are autosize or dock-fill.  Also take into
6823         account when the total percentage of column/row sizes is not 100%.
6824         [Fixes bug #354672]
6825
6826 2008-01-24  Andreia Gaita <avidigal@novell.com>
6827
6828         * HtmlDocument.cs:
6829         - Save a reference to the IDocument in the instance and
6830           use that one instead of going to WebHost.Document; the document that the 
6831           WebHost returns might not be the right one (in case of frames).
6832         - Use the hashcode returned from the IDocument interface.
6833         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
6834           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
6835           LinkColor, Url, VisitedColor, Window
6836
6837         * HtmlElement.cs: 
6838         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
6839           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
6840           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
6841           SetAttribute, Equals, equality operators.
6842         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
6843           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
6844         
6845         * HtmlElementCollection.cs: Change implementation to use a generic
6846         collection. Implemented Enumerator and CopyTo
6847
6848         * HtmlHistory.cs: Add constructor, no implementation yet.
6849
6850         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
6851         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
6852         Equals, equality operators.
6853
6854         * HtmlWindowCollection.cs: Implemented. 
6855
6856         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
6857         has been deprecated).
6858
6859         * WebBrowserBase.cs: Use Completed event to track document loading
6860         (Navigated has been deprecated)
6861
6862 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
6863
6864         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
6865         level MenuItems do not respect tabs.
6866         [Fixes bug #355196]
6867
6868 2008-01-23  Geoff Norton  <gnorton@novell.com>
6869
6870         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
6871         FormWindowState.  Finished fixing Fullscreen windows on Carbon
6872
6873 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6874
6875         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
6876         be used as grab_control. Also save status of capture before show ContextMenu
6877         and restore it after close.
6878
6879 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6880
6881         * Control.cs: Internal FindRootParent method added to return high control
6882         in parent tree.
6883
6884 2008-01-23  Geoff Norton  <gnorton@novell.com>
6885
6886         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
6887         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
6888         it work again.  Handle HITTEST events.
6889
6890 2008-01-23  Geoff Norton  <gnorton@novell.com>
6891
6892         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
6893         a crash in certain cases.  Support for fullscreen windows in certain cases.
6894
6895 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
6896
6897         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
6898         [Fixes bug #355703]
6899
6900 2008-01-23  Geoff Norton  <gnorton@novell.com>
6901         
6902         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
6903
6904 2008-01-23  Geoff Norton  <gnorton@novell.com>
6905
6906         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
6907
6908 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6909
6910         * SplitContainer.cs: Remove unused declarations.
6911         * Binding.cs: Remove unused declarations.
6912
6913 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6914
6915         * Form.cs: Remove unused declaration of 'active' in Activate method.
6916         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
6917         prevent compilation warnings.
6918         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
6919         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
6920         * Bindings.cs: Remove unused formatting_enabled declaration.
6921         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
6922         warnings.
6923         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
6924         warnings.
6925         * PropertyGridView.cs: Remove usused 'ex' declaration.
6926         * DataGridView.cs: Remove unused declarations.
6927
6928 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6929
6930         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
6931         
6932         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
6933         to Control class, it makes possible to grab menu to controls that can't 
6934         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
6935         WmMouseMove removed since it was used only to track menu events.
6936
6937         * Control.cs:
6938         - Moved all active_tracker stuff from Form.
6939         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
6940         can call this method instead of reimplement all necessary code handle for
6941         menu tracker.
6942         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
6943         and WmMouseMove).
6944         
6945         * MenuAPI.cs: 
6946         - Remove special handle to ToolStripOverflow, now we can grab menu to 
6947         controls that can't reach Form using parent tree.
6948         - Change type of grab_control from Form to Control.
6949
6950 2008-01-22  Geoff Norton  <gnorton@novell.com>
6951
6952         * TextBoxBase.cs: Split up the sizing of controls and placing of 
6953         controls.  Fixes a bug where scrollbars in Reflector could be sized
6954         wrong and have non-working thumbers.
6955
6956 2008-01-23  Geoff Norton  <gnorton@novell.com>
6957
6958         * XplatUI.cs: Refactor environment variables to default support to the
6959         Carbon driver on the Mac.
6960
6961 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6962
6963         * Label.cs: Uses new LabelPainter for drawing operations.
6964         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
6965         * Theme.cs: DrawLabel and LabelDefaultSize removed.
6966
6967 2008-01-22  Geoff Norton  <gnorton@novell.com>
6968
6969         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
6970
6971 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
6972
6973         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
6974         through the normal flat button code and don't draw the checkbox glyph.
6975         * Theme.cs: Button->ButtonBase signature change.
6976         [Fixes bug #324755]
6977
6978 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
6979
6980         * LinkLabel.cs: Uses new class LinkLabelPainter.
6981
6982 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
6983
6984         * MessageBox.cs: Adjust right border space, we don't need to add 
6985         "space_border*2" two times.
6986
6987 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
6988
6989         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
6990         becomes a wrapper around Padding.
6991         [Fixes a part of bug #354676]
6992
6993 2008-01-22 Geoff Norton  <gnorton@novell.com>
6994
6995         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
6996         acquired.  Also ensure the buffer is large enough to grab the header
6997         we need on linux boxes.
6998
6999 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7000
7001         * Control.cs: Implement a custom enumerator so people can delete
7002         from the Controls collection while in a foreach.
7003         [Fixes bug #355074]
7004
7005 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7006
7007          * PropertyGridView.cs: Fix focusing behavior:
7008          - Tab should focus the grid text box.
7009          - Clicking on the labels shouldn't focus the grid text box.
7010
7011 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7012
7013          * PropertyGridView.cs: IsValueTypeGridItem should return true 
7014          for Arrays as well.
7015
7016 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7017
7018          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
7019           - Renamed GridEntry.SelectedObjects to TargetObjects to better
7020           reflect the property name role.
7021           - PropertyGrid.GetTarget is not required as the target is known
7022           (TargetObjects).
7023           - Setting values will handle value types as a special case now and
7024           populate them up in the chain.
7025           [Fixes #354990]
7026
7027 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
7028
7029         * Hwnd.cs: Create a public property for the Graphics we keep around.
7030
7031 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
7032
7033          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
7034          when the current object selection changes. 
7035          Fixes failing test SelectedObject_Null2.B5.
7036
7037 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
7038
7039          * PropertyGrid.cs: Process Browsable properties with 
7040          DesignerSerializationVisibilityAttribute.Content as being expandable.
7041          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
7042          will not be expandable. We should be nested components-friendly now.
7043
7044 2008-01-21  Andreia Gaita <avidigal@novell.com>
7045
7046         * WebBrowserBase.cs: Check if control was loaded properly, 
7047         don't bind if it wasn't.
7048
7049         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
7050         GetElementFromPoint, equality operators, OpenNew, Write.
7051         Remove extra set_Body
7052
7053 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
7054
7055         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
7056         that makes our AutoScale* stuff more tolerant to different orders
7057         of being set.  [Fixes bug #354669]
7058
7059 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
7060
7061          * PropertyGridView.cs, PropertyGridTextBox.cs: 
7062          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
7063          [Fixes #339005 and #348209]
7064
7065 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
7066
7067          * PropertyGridView.cs: Hide the grid text box before adjusting it
7068          for the newly selected GridItem.
7069          [Fixes #338999]
7070
7071 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
7072
7073         * Form.cs: Give MDI children the opportunity to cancel the parent form
7074         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
7075         properly for both the parent and child.
7076         * Application.cs: Signature of internal method changed, pass the previous
7077         default of false.
7078         [Fixes bug #354286]
7079
7080 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
7081
7082         * PropertyGridView.cs: Set the property value only if it has changed.
7083         [Fixes bug #338997]
7084
7085 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
7086
7087         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
7088         If the mouse hasn't actually moved, ignore these messages so the currently
7089         highlighted menuitem isn't reset to the one under the mouse.
7090         [Fixes bug #333668]
7091
7092 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
7093
7094         * PropertyGridView.cs: When the property changes Invalidate the GridItem
7095         in order for the properties with UITypeEditor.GetPaintValueSupported == true
7096         to reflect the change visually.
7097         [Fixes bug #338998]
7098
7099 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
7100
7101         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
7102         to 2.0 button drawing.
7103         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
7104         the button text is tall enough for one line.  LineLimit says it will
7105         always draw at least one line, but it is a lie.
7106         [Fixes bug #324941]
7107
7108 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
7109
7110         * XplatUIStructs.cs, X11Keyboard.cs :
7111           added some more VK_* keys to be handled.
7112
7113 2008-01-16  Andreia Gaita <avidigal@novell.com>
7114
7115         * Control.cs: Check if there is a container before setting or getting
7116         the validation flag.
7117
7118 2008-01-16  Andreia Gaita <avidigal@novell.com>
7119
7120         * ContainerControl.cs: Add flag to track if a control cancels validation, 
7121         so we don't fire click events.
7122
7123         * Control.cs: 
7124         - (HandleClick) Check if validation was cancelled before  firing the click
7125         events (doubleclicks are fired, but not clicks)
7126         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
7127         ContainerControl.set_ActiveControl, but in the case of non-selectable
7128         controls, like a Label, activecontrol is not set. 
7129
7130         * ButtonBase.cs: Only fire clicks if validation passes.
7131         
7132         Fixes #353310
7133
7134 2008-01-16  Geoff Norton  <gnorton@novell.com>
7135
7136         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
7137         trunk
7138
7139 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
7140
7141         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
7142         SelectedPath, just display the default dialog instead of crashing.
7143         [Fixes bug #348989]
7144
7145 2008-01-16  Geoff Norton  <gnorton@novell.com>
7146
7147         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
7148         AddExpose instead of trusting apples compositing manager which doesn't
7149         work for our use case.  Remove some dead code causing warnings and 
7150         redecorate some other code to prevent warnings.
7151
7152 2008-01-16  Geoff Norton  <gnorton@novell.com>
7153
7154         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
7155         carbon signals us to redraw.  Fixes another portion of the flickering bug
7156
7157 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7158
7159         * Form.cs: Prevent the MdiParent property to be set when value is the same
7160         as value already set. Fixes bug #328019.
7161
7162 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7163
7164         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
7165         it prevents NRE when closing mdi child windows. Fixes bug #325211.
7166
7167 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7168
7169         * InternalWindowManager.cs: Invalidade close button after mouse up when 
7170         mdi form is prevented to close.
7171
7172 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7173
7174         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
7175         thanks to Andy Hume. Fixes bug #325433.
7176
7177 2008-01-16  Andreia Gaita <avidigal@novell.com>
7178
7179         * LinkLabel.cs: Reset focused_index when resellecting the control.
7180         Fixes #323190
7181
7182 2008-01-15  Geoff Norton  <gnorton@novell.com>
7183
7184         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
7185         messages.
7186
7187 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
7188
7189         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
7190         of truncate.
7191
7192 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
7193
7194         * ContainerControl.cs: Setting AutoScaleMode to anything should set
7195         Form.AutoScale to false.
7196         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
7197         AutoScaleBaseSize should be changed on Font change unless it has been
7198         explicitly set.
7199         [Fixes bug #353827]
7200
7201 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
7202
7203         * MenuAPI.cs: On instance of MenuTracker check if source control is
7204         ToolStripOverflow and use properly method to find form.
7205         [Fixes bug #338511]
7206
7207 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
7208
7209         [Fixes bug #323241 Transparent toolbar support]
7210
7211         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
7212         is flat.
7213
7214         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
7215         defined in control style to mimic win32 behavior.
7216
7217         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
7218         it will be transparent.
7219
7220 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
7221
7222         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
7223         CreateParams for ToolBar controls.
7224
7225 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7226
7227         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
7228         FixedToolWindow, SizeableToolWindow, or None for border styles have
7229         different minimum sizes than regular forms.  Implemented to fix
7230         regression in PDN with toolbox being too wide.
7231
7232 2008-01-14  Andreia Gaita <avidigal@novell.com>
7233
7234         * HtmlElementCollection.cs: Implemented
7235
7236         * HtmlElement.cs: Implemented:
7237           - All
7238           - InnerHtml
7239           - InnerText
7240           - Id
7241           - Name
7242           - FirstChild
7243
7244         * HtmlDocument.cs: Implemented GetElementsByTagName.
7245
7246 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7247
7248         * Screen.cs: Stub BitsPerPixel to always return 32.
7249
7250 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7251
7252         * Form.cs: Implement RestoreBounds.
7253
7254 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7255
7256         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
7257         Sebastien and his fabulous magical problem-finding machine:
7258         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
7259         respect the value set.
7260
7261 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
7262
7263         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
7264         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
7265
7266 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7267
7268         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
7269         messages (to match .Net), we need to remove the capture ourselves.
7270
7271 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
7272
7273         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
7274         will process the message and close our window.
7275         [Fixes bug #324328]
7276
7277 2008-01-10  Geoff Norton  <gnorton@novell.com>
7278
7279         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
7280         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
7281         window manager.
7282
7283 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7284
7285         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
7286         failing test.
7287
7288 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7289
7290         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
7291         Linux doesn't care, having a minimum matches MS and keeps the window
7292         from becoming too small to use window decorations.
7293         [Fixes bug #338996]
7294
7295 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7296
7297         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
7298         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
7299         control.  [Fixes bug #325419]
7300
7301 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7302
7303         * ComboBox.cs: Guard against an NRE if the user open a new form from a
7304         SelectedIndexChanged event.  This closes the combobox dropdown, and we
7305         were trying to dispose it.  [Fixes bug #352830]
7306
7307 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
7308
7309         * Control.cs, Form.cs: Implement the necessary semantics for
7310         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
7311         to determine if a focus rectangle should be drawn.
7312         * PropertyGrid.cs: Fix property visibility to match override.
7313         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
7314
7315 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
7316
7317         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
7318         [Fixes bug #323552]
7319
7320 2008-01-09  Geoff Norton  <gnorton@novell.com>
7321         
7322         * XplatUICarbon.cs: Scroll windows in the correct direction.
7323
7324 2008-01-09  Geoff Norton  <gnorton@novell.com>
7325
7326         * XplatUICarbon.cs: Track all created utility windows so we can hide them
7327         when the app is deactivated or spaces is enabled.
7328
7329 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7330
7331         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
7332         extra separation pixel for the label rect origin if SmallImageList is
7333         null, and thus we don't need that separation between icon and label
7334         rects.
7335         Patch by Ernesto Carrea.
7336         Fixes # 340195.
7337
7338 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
7339
7340         * StatusStrip.cs: Invalidate after completing a layout.  The base
7341         OnLayout does this, but we don't call the base.
7342         * ToolStripItem.cs: Revert the previous change to invalidate after
7343         the item moves.
7344         [Fixes bug #351341 better.]
7345
7346 2008-01-07  Geoff Norton  <gnorton@novell.com>
7347
7348         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
7349         not a notification to exit the application.  Listen for WM_QUIT
7350         instead.
7351
7352 2008-01-07  Andreia Gaita <avidigal@novell.com>
7353
7354         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
7355
7356 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
7357
7358         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
7359         so it can repaint at the correct location.
7360         [Fixes bug #351341]
7361
7362 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7363
7364         * ListControl.cs: SelectedValue should return a null value if
7365         SelectedIndex is -1. Also, when setting it, it should throw an
7366         ArgumentNullException if the value is null, as well as taking
7367         into account the String.Empty value, instead of ignoring it (we have
7368         tests for that now).
7369         Fixes part of #324286.
7370
7371 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
7372
7373         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
7374         SelectionStart is updated after pressing enter.  Fixes bug #351918.
7375
7376 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7377
7378         * TextControl.cs: Revert a piece r92316 that prevented the fix
7379         from working when there were multiple tags in the text box.
7380         Fixes bug #351881.
7381
7382 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7383
7384         * TextControl.cs: Apply patch from Luke Page that prevents an
7385         NRE when determining the beginning of a paragraph.
7386         Fixes bug #351886.
7387
7388 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7389
7390         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
7391         caret gets moved with clicking away from a selected block of
7392         text.  Fixes bug #351885.
7393
7394 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7395
7396         * TextControl.cs: Apply patch from Luke Page that takes line
7397         alignment into account for mouse selection, so that center and
7398         right aligned text can be selected.
7399         Fixes bug #351881.
7400
7401 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7402
7403         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
7404         issues after loading an RTF file by using the correct line feeds.
7405         Fixes bug #351841.
7406
7407 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7408
7409         * TextControl.cs: When deleting multiple line selections, we need
7410         to invalidate every line beginning at the first line of the selection.
7411         Patch from Luke Page fixes bug #351791.
7412
7413 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7414
7415         * ListControl.cs: When getting a CurrencyManager.PositionChanged
7416         event, don't set SelectedIndex if the number of items is 1. This is
7417         because, for the first item, PositionChanged is fired _before_
7418         ItemChanged (the place where we actually populate the items), and
7419         leave us in a temporary invalid state (since items collection is
7420         empty).
7421         Fixes #349655.
7422
7423 2008-01-04  Geoff Norton  <gnorton@novell.com>
7424
7425         * XplatUICarbon.cs:  Create native toolwindows instead of
7426         the managed drawing ones.
7427
7428 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7429
7430         * LineTag.cs: If the line doesn't have any characters, return
7431         0 for GetCharIndex.  Fixes an AOORE exception after certain
7432         caret movements.  Fixes bug #351683.  Patch by Luke Page.
7433
7434 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7435
7436         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
7437         is hit when there is selected text, only the selected text gets
7438         deleted, not the character in front of the selection as well.
7439         Fixes bug #351578.
7440
7441 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7442
7443         * ComboBox.cs: When the values are displayed, calculate the
7444         ComboListBox scrollbar's LargeChange based on the visible area's
7445         height and  the actuall ItemHeight, instead of calculating it
7446         based on MaxDropItems value, since it's not used by our _current_ 
7447         2.0 profile.
7448         Fixes #332366.
7449
7450 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7451
7452         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7453         Patch from Luke Page that fixes issues with font colors and styles
7454         not showing up in a readonly RichTextBox.  Fixes bug #324354.
7455
7456 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7457
7458         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
7459         from Luke Page.  This one fixes bug #349926.
7460
7461 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7462
7463         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
7464         an item in the IBindingList source changes with
7465         ListChangedType.ItemAdded. Ignore for now firing the event for other
7466         changes, since we want to have tests for those cases as well.
7467
7468 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7469
7470         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
7471         created.
7472
7473 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7474
7475         * TextBoxTextRenderer.cs: Implement a cache for measuring each
7476         character.  This is effective because the typical usage of a
7477         TextBox is with a limited amount of fonts and characters, and
7478         the current implementation of TextBox measures everything one
7479         character at a time.  Another second or two speedup for bug #347238.
7480
7481 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7482
7483         * Control.cs: Rewrite the Font getter to only query the parent's
7484         Font property once instead of twice.  Since this operation is
7485         recursive, the queries were growing exponentially as the control
7486         tree got deeper.  Another second or two speedup for bug #347238.
7487
7488 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7489
7490         * Control.cs: Avoid setting a parent (and more importantly, updating
7491         the zorder of all its children) if the parent is already correct in
7492         WmShowWindow.  Decreases the startup time of the test case on bug
7493         #347238 from 35 seconds to 11 seconds.
7494
7495 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7496
7497         * X11Dnd.cs: When the dnd operation has started and we are 
7498         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
7499         This is done to match .Net, which doesn't send those messages after
7500         dnd operation was completed/cancelled.
7501         Fixes #349922.
7502
7503 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
7504
7505         * ToolStrip.cs: Previous change should be != null, not == null.
7506         Thanks Gert!
7507
7508 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
7509
7510         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
7511         user may have moved the mouse off the current item during the event.
7512
7513 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7514
7515         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
7516         calling GetItemAt for every MouseMove event by also taking into
7517         account whether any mouse button is pressed (probably dragging); 
7518         if so, we can call GetItemAt, and if not, try to not call it 
7519         (GetItemAt can be quite expensive when used with a large number of items).
7520
7521 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7522
7523         * ListView.cs: Implement -finally- support for dnd, by calling
7524         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
7525         authors list ;-).
7526         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
7527         simple calculation of distances for all the items in the owner
7528         listview.
7529
7530 2007-12-21  Geoff Norton  <gnorton@novell.com>
7531
7532         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
7533         for windows that are originally created as invisible.  Fixes missing
7534         main window in paint-mono.
7535
7536 2007-12-21  Geoff Norton  <gnorton@novell.com>
7537
7538         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
7539         subclass handler for com.novell.mwfview subclassing HIView.  Implement
7540         Pasteboard and Dnd methods.
7541
7542 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7543
7544         * ListBox.cs: When we got focus, give focus to first item if there
7545         wasn't any pervious focused item. Also update navigation to depend on
7546         SelectedIndex rather than FocusedItem, just as .Net does.
7547         Fixes #349174.
7548
7549 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7550
7551         * ListBox.cs: Both FindString and FindStringExact methods must do an
7552         case insensitive search, should allow the last valid index to be
7553         passed in the overload taking an initial index, and should also
7554         continue searching from the top back to the specified index when it
7555         reaches the bottom.
7556
7557 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7558
7559         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
7560         redraw issue, and allows RichTextBox to draw colored text even while
7561         disabled or readonly.
7562
7563 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7564
7565         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
7566         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
7567         and doesn't grey text in a disabled RichTextBox.
7568
7569 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7570
7571         * RichTextBox.cs: Apply patch from Luke Page that adds better support
7572         for many RTF commands: quad alignment, separate formatting for blocks
7573         inside groups, and ParDef support.  Makes the test case from bug #324589
7574         look much better.
7575
7576 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7577
7578         * LineTag.cs: Fix an error in the new Draw method that caused
7579         a crash when rendering the document on bug #324589.
7580
7581 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7582
7583         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
7584         TextControl.cs: Apply patch from Luke Page that adds support
7585         for URL links in RichTextBox.
7586         [Fixes enhancement #342516]
7587
7588 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
7589
7590         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
7591         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
7592
7593 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7594
7595         * ListBox.cs: When a key gets pressed, try to find a string
7596         if the key is a character or a digit.
7597         Fixes #343971.
7598
7599 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7600
7601         * TableLayoutPanel.cs: Remove some unused variables.
7602
7603 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7604
7605         * DateTimePicker.cs: Commit patch from Luke Page that ensures
7606         we don't end up at an invalid date when we click the up/down
7607         spinner to change the month or year.  Fixes bug #348682.
7608
7609 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7610
7611         * Application.cs: Calling Exit in 2.0 should chain to the
7612         Exit (CancelEventArgs) version so it can be cancelled.
7613         * Form.cs: Create a flag to allow raising the Closing
7614         events to be skipped.  We raise them once in Application.Exit
7615         and don't want to raise them again when the Form is actually
7616         closed.  [Fixes bug #349073]
7617
7618 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
7619
7620         * ToolStripDropDown.cs: Guard against an NRE when there
7621         hasn't been a mainform set in the application context.
7622         [Fixes bug #349108]
7623
7624 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7625
7626         * ListBox.cs: When SetBoundsCore gets called, besides
7627         calling UpdateScrollBars, update the value of
7628         last_visible_index, since we could need to show more items
7629         than before, and we need to let the paint routines know that.
7630         Fixes #344445.
7631
7632 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7633
7634         * ListView.cs: Add DesignerSerializationVisibility attribute to
7635         InsertionMark property.
7636         * ListViewItem.cs: Add same attribute to Position property.
7637
7638 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7639
7640         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
7641         is 2.0 only.
7642
7643 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
7644
7645         * ThemeWin32Classic.cs: Don't draw the background on a
7646         flat button if there is a background image.
7647         [Fixes bug #348649]
7648
7649 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7650
7651         * ListBox.cs: If we remove the item currently selected,
7652         remove it not only from SelectedItems, but also
7653         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
7654         the items count decreased and focused_item has bigger value than that.
7655
7656 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
7657
7658         * Control.cs: Perform our layout after we resize ourselves
7659         if we had to adjust our AutoSize.  Missed commit for bug
7660         #346246.
7661
7662 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
7663
7664         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
7665         we can provide an implementation of AutoSize.
7666         [Fixes bug #346246]
7667
7668 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7669
7670         * ListBox.cs: Add the internal overload Sort (bool paint),
7671         to indicate whether we actually need a paint or we will
7672         call Refresh ourselves. This way we don't request a paint
7673         _before_ having an updated and valid layout.
7674         Fixes #347233.
7675
7676 2007-12-12  Andreia Gaita <avidigal@novell.com>
7677
7678         * XPlatUIX11.cs: Send paint messages when updating a systray icon
7679         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
7680         properly invalidated. 
7681         Fixes #324237
7682
7683 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7684
7685         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
7686         don't simply assign it to our internal group field, but instead 
7687         use our Group property, which should do all the neccessary work
7688         required to support groups. Fixes an issue reported to me (mail) by a 
7689         guy using this new feature.
7690
7691 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
7692
7693         * Control.cs: Use Scale instead of ScaleControl to ensure the
7694         whole hierarchy gets scaled.
7695         [Fixes bug #347282]
7696
7697 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7698
7699         * DateTimePicker.cs: Don't set the internal MonthCalendar's
7700         Parent property.  Doing this causes the control to be hosted by
7701         the Form instead of being a popup window.
7702         [Fixes bug #347665]
7703
7704 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7705
7706         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
7707         at an index higher than Count, just use Add instead of Insert.
7708         [Fixes bug #347669]
7709
7710 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7711
7712         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
7713         DrawPictureBox, this is handled by Control.PaintBackground.
7714         [Fixes bug #347276]
7715
7716 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
7717
7718         * MenuAPI.cs: When process menu keys return true by default only if menu is
7719         active. Fixes bug #342892.
7720
7721 2007-12-09  Andreia Gaita <avidigal@novell.com>
7722
7723         * Control.cs: check if windows are actually mapped before
7724         trying to zorder. Fixes #342509, #346955
7725
7726 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7727
7728         * ListView.cs:
7729         * ListViewInsertionMark.cs:
7730         * ThemeWin32Classic.cs: Implement the drawing side of the
7731         new 2.0 ListView.InsertionMark property.
7732
7733 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
7734
7735         * CurrencyManager.cs: Silence some debug spew.
7736
7737 2007-12-07  Geoff Norton  <gnorton@novell.com>
7738         
7739         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
7740         masks for our children as well as siblings to avoid having to query
7741         Quartz for this information.
7742         * XplatUICarbon.cs: Implement a delegate based system to pass
7743         information to System.Drawing.  Implement Async methods.  Remove
7744         the hack for the resize thumb and imlpement a transparent Grow Box.
7745         Rework the messaging system to proplery create window's and messages,
7746         fixes TabControl.
7747
7748 2007-12-06  Andreia Gaita <avidigal@novell.com>
7749
7750         * X11Keyboard.cs: Use Xutf8LookupString to support international 
7751         characters under alternate codepages. Patch from #340878
7752
7753 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7754
7755         * ListView.cs: When doing layout computations, set position in the
7756         ListView instances (we cache the position just as .Net does).
7757         * ListViewItem.cs: New internal setter method for Position. Also set
7758         position field as also available in 1.1, since we are going to use it
7759         now in the common case.
7760
7761 2007-12-06  Andreia Gaita <avidigal@novell.com>
7762
7763         * Control.cs: When removing controls, get the actual container
7764         to notify about active control changes. Fixes 341314.
7765
7766 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7767
7768         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
7769
7770 2007-12-05  Andreia Gaita <avidigal@novell.com>
7771
7772         * Control.cs: When updating the zorder, ignore windows that are not
7773         mapped. Fixes #342509
7774
7775 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7776
7777         * ListViewItem.cs: Actually implement serialization on this class.
7778
7779 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
7780
7781         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
7782         LinkCollection. Spaces to tabs, and removed extra tabs.
7783
7784 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7785
7786         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
7787           tests to fail (hopefully).
7788
7789 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
7790
7791         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
7792         the image margin so custom renderers can correctly place it.
7793
7794 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
7795
7796         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
7797         so custom renderers can correctly place it.
7798
7799 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
7800
7801         * Application.cs: Let WM_CHAR messages flow through to controls
7802         hosted in Strips.  [Fixes bug #343972]
7803
7804 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
7805
7806         * ToolStripManager.cs: Guard against an NRE I ran into.
7807
7808 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
7809
7810         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
7811         a Link is manually added to the Links collection, we need to set
7812         its owner, so it can invalidate properly.
7813         [Fixes bug #344012]
7814
7815 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7816
7817         * ListView.cs: When changing ListViewItem.Position (which calls
7818         ListView.ChangeItemLocation), invalidate not only the area
7819         corresponding to the main item, but also to the area occupied
7820         by the items being moved.
7821
7822 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7823
7824         * ListView.cs: When changing the position of a given item,
7825         don't use item bounds, but item areas (which includes the item spacing
7826         between them). Also, use first/last position if the requested
7827         position is outside bounds (as .Net does). Invalidate the previous and
7828         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
7829         in a specific position, instead of directly accessing Items collection
7830         (this is done to get the right item - remember an Item can have a
7831         different position in the grid than in the Items collection).
7832
7833 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
7834
7835         * MessageBox.cs: Calculate text area instead of just top left, this rect 
7836         area will be used in DrawString. Fixes bug #343364.
7837
7838 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
7839
7840         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
7841         screen width. Partially fixes bug #343364.
7842
7843 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
7844
7845         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
7846         code inside recalculate, it makes code more simple.
7847
7848 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
7849
7850         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
7851         between update or add icon. Fixes bug #324344.
7852
7853 2007-11-21  Andreia Gaita <avidigal@novell.com>
7854
7855         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
7856         window manager, since that stretches the drawing area to include
7857         the window decorations, and they get hidden. Reverts r84444 and fixes
7858         #335849 and #342790 (mdi and pdn3 regression)
7859
7860 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7861
7862         * ListView.cs: When setting focused item, try to give focus to the
7863         previous one _only_ if the previous one remains valid. 
7864         Fixes #342504.
7865
7866 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
7867
7868         * Application.cs: Revert r89650, as it broke a common case to fix
7869         an obscure case.  Fixes bug #342606.
7870
7871 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
7872
7873         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
7874
7875 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
7876
7877         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
7878         alignment. [Fixes #324228]
7879
7880 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
7881
7882         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
7883         [Fixes bug #342123]
7884
7885 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
7886
7887         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
7888         it prevent problems when empty captions. [Fixes #342141]
7889
7890 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
7891
7892         * Label.cs: Use Size instead of None.  Fixes bug #342077.
7893
7894 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7895
7896         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
7897
7898 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
7899
7900         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
7901         but there isn't a MdiContainer.
7902         [Fixes bug #342358]
7903
7904 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
7905
7906         * TextControl.cs: Don't recalculate document if the recalc_start and
7907         recalc_end hasn't changed.
7908         [Fixes bug #342505]
7909
7910 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
7911
7912         * DataGridViewTextBoxCell.cs: Removed CWL.
7913
7914 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7915
7916         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
7917
7918 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
7919
7920         * TextControl.cs: Missed some code for bug 341534 to trigger a
7921         recalculation when the font changes.
7922
7923 2007-11-16  Andreia Gaita <avidigal@novell.com>
7924
7925         * Control.cs: When updating the zorder, check if the child to update is
7926         the same control that is set to always be on top (i.e., scrollbars), and 
7927         just put it on top directly. Fixes BadMatch error on pdn3
7928
7929 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7930
7931         * ListView.cs: Throw the needed exceptions for FindNearestItem.
7932
7933 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
7934
7935         * Control.cs: Don't perform a new layout when a label changes its text,
7936         cause label handles its own autosizing.
7937         [Fixes bug #342077]
7938
7939 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7940
7941         * ListView.cs: Implement 2.0 FindNearestItem methods.
7942
7943 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
7944
7945         * ToolStripPanel.cs: Make Join at least add the control to the panel,
7946         even if the rest of what Join does isn't supported.  Add some more
7947         support for vertical toolbars.
7948         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
7949         [Fixes the application breaking parts of bug #341998]
7950
7951 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
7952
7953         * ToolStripItem.cs: When determining if we have a check/image margin,
7954         we need to look at ShowCheckMargin as well as ShowImageMargin.
7955
7956 2007-11-15  Geoff Norton  <gnorton@novell.com>
7957
7958         * XplatUIOSX.cs: Rename to...
7959         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
7960         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
7961
7962 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
7963
7964         * KeysConverter.cs: The default values should be an array of Keys, not
7965         strings.  Also, the array has more values for 2.0.
7966         [Fixes bug #341851]
7967
7968 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
7969
7970         * Application.cs: Change ExecutablePath to use 
7971         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
7972         [Fixes bug #323552]
7973
7974 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
7975
7976         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
7977         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
7978         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
7979         be ignored.  Create a new GetLineEnding that can specify which types of
7980         line endings to look for.  On Insert, only create new lines for \n and \r\n.
7981         [Fixes bug #324274]
7982
7983 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
7984
7985         * TextBoxBase.cs: As we loop through each line changing the font, tell
7986         the document that the line needs to be recalculated.  Fixes bug #341534.
7987
7988 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
7989         [Another round of refactoring]
7990         * Line.cs: Add DeleteCharacters.
7991         * LineTag.cs: Add Delete.
7992         * TextBoxBase.cs: Update to use new methods.
7993         * TextControl.cs: Refactor the Delete* methods.
7994
7995 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
7996
7997         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
7998         the patch. [Fixes #324856]
7999
8000 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8001
8002         * ListView.cs:
8003         * ListViewItem.cs: Add an initial implementation of
8004         2.0 ListViewItem.Position getter.
8005
8006 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8007
8008         * ListView.cs: Add a reordered_items_indices array, to allow us
8009         to have a different sorting than that of Items (the sorting in Items
8010         could not match the actual sorting in screen). This is needed to
8011         implement a pair of 2.0 features.
8012         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
8013         actual position in the ListView grid, since it could have a position
8014         different than its Index (position in ListViewItemCollection). 
8015
8016 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
8017
8018         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
8019         not draw partial lines.
8020         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
8021         LineLimit flag from the base is preserved.
8022         Fixes the windows part of bug #338965.
8023
8024 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
8025
8026         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
8027         so that it can be canceled in KeyPress.
8028         Fixes bug #340078.
8029
8030 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8031
8032         * ListView.cs: In ItemControl, reset mouse-handling related
8033         fields even if we dont' have items (we still should reset them when
8034         we had items but then called Items.Clear). Partially based in a patch
8035         by George Giolfan.
8036         Fixes #338399.
8037
8038 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
8039
8040         * Application.cs: In ProductVersion first try AssemblyFileVersion
8041         before falling back to assembly version. Fixes bug #339787.
8042
8043 2007-11-08  Andreia Gaita <avidigal@novell.com>
8044
8045         * HtmlElement.cs: Implement InnerText setter.
8046         * WebBrowserBase.cs: Implement Navigated event support.
8047         Add flag to track when the browser "document" is ready to be retrieved.
8048         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
8049         Make sure browser document is ready before retrieving it.
8050         Clean up cached objects (document) when moving to a new page through
8051         any of the navigation methods.
8052         Use the new Mono.WebBrowser.INavigation interface to control navigation.
8053         Implement OnNavigated event.
8054
8055 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
8056
8057         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
8058         DrawLinkLabel, this is handled by OnPaintBackground.
8059         Fixes bug #339565, part II.
8060
8061 2007-11-07  Andreia Gaita <avidigal@novell.com>
8062
8063         * Control.cs: Revert r88915. Selecting text on a textbox depends on
8064         getting a Select call on click, so this call needs to be here for now.
8065         Unfixes #325809
8066
8067 2007-11-07  Geoff Norton  <gnorton@novell.com>
8068
8069         * OSXStructs.cs: Add the kEventClassApplication constants.
8070         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
8071         application is deactivated otherwise Menu overlays linger on top of
8072         other application windows.
8073
8074 2007-11-07  Geoff Norton  <gnorton@novell.com>
8075
8076         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
8077         dont support cursors yet anyways.  This allows Reflector to run.
8078
8079 2007-11-07  Geoff Norton  <gnorton@novell.com>
8080
8081         * XplatUIOSX.cs: Implement DragSize.
8082
8083 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8084
8085         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
8086         ItemControl, request the focus, as .Net does. This is needed after 
8087         Control does not request focus anymore when it receives a
8088         WM_LBUTTONDOWN.
8089
8090 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
8091
8092         * Label.cs: Make DrawImage internal so it can be called from Theme code.
8093         Remove the DrawImage call from OnPaint.
8094         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
8095         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
8096         but before we draw the text for DrawLabel and DrawLinkLabel.
8097         Fixes bug #339565.
8098
8099 2007-11-05  Andreia Gaita <avidigal@novell.com>
8100
8101         * Control.cs: Remove select call on click. Fixes #325809
8102
8103 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8104
8105         * ListViewItem.cs: Add 2.0 Position property getter.
8106
8107 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8108
8109         * ListView.cs: Add 2.0 BackgroundImageTiled property.
8110         Also, to make it work properly, change item's BackColor and
8111         BackgroundImageLayout as needed.
8112         * ThemeWin32Classic.cs: Don't fill any background rectangle 
8113         in ListView.ItemControl when drawing items; just let the Control
8114         base implementation fill it.
8115
8116 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8117
8118         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
8119         as well as adding a custom 'dummy' Converter, as .net does.
8120
8121 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8122
8123         * PropertyGridView.cs: When clicking drop-down button,
8124         select an index in the listbox only if our standard values collection 
8125         has one or more items.
8126
8127 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8128
8129         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
8130         property.
8131
8132 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8133
8134         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
8135         the value is not changed. This ensure a pushed button remains in that
8136         state when clicked again. When switching the value of PropertySort
8137         between Categorized and CategorizedAlphabetical, do not update the
8138         grid items and do not fire a PropertyChangedEvent. When clicking the
8139         sorting buttons, do not modify the PropertySort value when switching
8140         between Categorized and CategorizedAlphabetical but only update the
8141         button state.
8142
8143 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8144
8145         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
8146         formatting.
8147         * PropertyGrid.cs: Also put Categorized button in pushed state when
8148         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
8149         for help description label.
8150
8151 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8152
8153         * ListView.cs: When calculating the biggest item for a given column,
8154         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
8155         the item's width.
8156
8157 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
8158
8159         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
8160         value for PropertySort on 1.0 profile. PropertySortChanged event
8161         should only be fired on 2.0 profile. Fixed NullReferenceException
8162         in UpdateSortLayout when PropertyGrid contains no items.
8163
8164 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
8165
8166         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
8167         [Fixes bug #338554]
8168
8169 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8170
8171         * ListViewItem.cs: Implement 2.0 IndentCount property.
8172
8173 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8174
8175         * X11Dnd.cs: When sending status in a dnd operation, compare current
8176         effect with the 'allowed' field instead of 'drag_data.Allowed', since
8177         the later is only created when a Winforms application is both the
8178         source and the target, but not when we are the target only.
8179         Fixes part of #324251.
8180
8181 2007-11-01  Geoff Norton  <gnorton@novell.com>
8182
8183         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
8184         order of Z-Order.
8185         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
8186         children out of the drawing view on mac.
8187         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
8188         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
8189         
8190 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
8191
8192         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
8193         on the non-hosted-control part of it shouldn't do anything.
8194         Fixes part of bug #327498.
8195
8196 2007-11-01  Andreia Gaita <avidigal@novell.com>
8197
8198         * WebBrowserBase.cs: revert previous change, resize can be called anytime
8199
8200 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
8201
8202         * Application.cs: When a toolstrip has the keyboard input loop, let messages
8203         it does not use flow through to controls that are hosted in menus.
8204         Same with mouse clicks.
8205         * Form.cs: Don't close all menus on click if the click is on a
8206         control hosted in a menu.
8207         Fixes part of bug #327498, and part of bug #325969.
8208
8209 2007-10-31  Andreia Gaita <avidigal@novell.com>
8210
8211         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
8212
8213 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
8214
8215         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
8216         Addresses an issue raised in bug #336218.
8217
8218 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
8219
8220         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
8221         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
8222
8223 2007-10-30  Andreia Gaita <avidigal@novell.com>
8224
8225         * ContainerControl.cs: Check if the active control is a
8226         child of a removed control and update active_control accordingly.
8227         Fixes #329718
8228
8229 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8230
8231         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
8232         or the MaxDate.  Fixed bug #337693.
8233
8234 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8235
8236         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
8237         after calling SetWindowLong for a form, to force an immediate NC refresh.
8238         Fixes first part of bug #325150.
8239
8240 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8241
8242         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
8243         simple.  Fixes the last part of bug #322668.
8244
8245 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8246
8247         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
8248         needs to be TopMost as well, or else the MessageBox is under the form.
8249         Patch by George fixes bug #325300.
8250
8251 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8252
8253         * X11Dnd.cs: When starting a new drag operation, reset the static
8254         'dropped' field to false (previously the implementation didn't reset
8255         it and got confused after the first drag).
8256         Fixes #325071.
8257
8258 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8259
8260         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
8261         items instead of re-creating them all. For this purpose we now cache
8262         both CategoryGridEntry items and the GridEntries for the main object's
8263         properties.
8264         * GridItem.cs: Make SetParent method abstract.
8265         * GridEntry.cs: Override the SetParent method (already there, but now
8266         we override it).
8267         Fixes #324866.
8268
8269 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8270
8271         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
8272         depending on its depth (as .Net does). Update the needed values in
8273         MouseDown handler. Also draw the plus/minus rect after the label,
8274         so we don't draw on top of it.
8275
8276 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
8277
8278         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
8279         processed by forms or controls when menu is active. [Fixes #333548]
8280
8281 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8282
8283         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
8284         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
8285         focus on mouse over.
8286
8287 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8288
8289         * TextControl.cs: Code cleaning, simplifying.
8290
8291 2007-10-24  Geoff Norton  <gnorton@novell.com>
8292
8293         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
8294         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
8295
8296 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8297
8298         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
8299         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
8300
8301 2007-10-24  Andreia Gaita <avidigal@novell.com>
8302
8303         * SendKeys.cs: apply jpobst's patch to bug #332409
8304
8305 2007-10-23  Andreia Gaita <avidigal@novell.com>
8306
8307         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
8308         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
8309         for some reason
8310
8311 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8312
8313         * PropertyGridView.cs: If a property has an UIEditor available,
8314         make the drop-down/editor button available only if the property
8315         is _not_ read only.
8316
8317 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8318
8319         * PropertyGridView.cs: Don't make the grid item textbox 
8320         editable when a drop-down control is available, but 
8321         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
8322         true. The same bur the color of the grid item value's label.
8323
8324 2007-10-22  Geoff Norton  <gnorton@novell.com>
8325
8326         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
8327         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
8328         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
8329         driver.  Padd the bottom of all real windows so the resize thumb doesn't
8330         obscure scroll/status bars.
8331
8332 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
8333
8334         * WindowsFormsSection.cs: Implement.
8335
8336 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
8337
8338         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
8339         closed see #325434 patch.
8340
8341 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
8342
8343         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
8344         see #325434 patch.
8345
8346 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8347
8348         * PropertyGridView.cs: When showing the textbox for a grid item,
8349         have two local variables to store the read-only and non-editable
8350         status of a grid item (we were previously using just one variable
8351         to do this, when actually they are slightly different).
8352         Fixes part of #325023.
8353
8354 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8355
8356         * PropertyGridView.cs: When showing a drop-down list, try to get the
8357         values using TypeConverter.ConvertTo (to convert to a string). Fixes
8358         part of #325023.
8359
8360 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8361
8362         * PropertyGrid.cs: When updating a property and populating sub grid
8363         items, remove the previous ones, and invalidate the specific area.
8364         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
8365         area behind a grid item.
8366         * GridItemCollection.cs: Add an internal Clear method, to allow us to
8367         clean the items if needed (specially for controls implementing 
8368         ICustomTypeDescriptor and returning a variable number of properties).
8369         Fixes #324865.
8370
8371 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
8372
8373         * TextControl.cs: Clean up and document the Insert function.
8374
8375 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8376
8377         * TextControl.cs: Make sure we know our start point for updating the view
8378         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
8379         update the view.
8380
8381 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8382
8383         * ListView: Couple of corcompare fixes.
8384
8385 2007-10-17  Geoff Norton  <gnorton@novell.com>
8386
8387         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
8388         the title caption of real window.
8389
8390 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8391
8392         * ErrorProvider.cs: Add the error provider's internal window to a 
8393         containercontrol when the parent changes.  [Fixes bug #329714]
8394
8395 2007-10-17  Geoff Norton  <gnorton@novell.com>
8396
8397         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
8398         When we make a new window; restore the old active window - fixes dialogs.
8399
8400 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8401
8402         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
8403         when modifying a property, and if found then invalidate as
8404         requested.
8405         Fixes part of #324865.
8406
8407 2007-10-17  Geoff Norton  <gnorton@novell.com>
8408
8409         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
8410         highly experimental.  Fixed coordinate translation.  Fixed window locations.
8411         Initial support for clipping. Implemented NC areas and menus.  Support for
8412         launching from command line from Will Johansson (wjohansson@atacomm.com).
8413         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
8414         wjohansson@atacomm.com)
8415         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
8416         Hwnds now track the existence of all of their children for Mac clipping.
8417     * XplatUI.cs: Re-enabled the native driver on the Mac.
8418
8419 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8420
8421         * Line.cs: Move the InsertString function to here.
8422         * TextControl.cs: Cleanup some duplicate code, move some InsertString
8423         functionality to Line.
8424
8425 2007-10-17  Geoff Norton  <gnorton@novell.com>
8426
8427         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
8428
8429 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
8430
8431         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
8432         always setting value to true.
8433         * Form.cs: When changing AcceptButton, notify new and original button.
8434
8435 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
8436
8437         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
8438         a custom control that implements IButtonControl instead of an actual
8439         button.  [Fixes bug #334244]
8440
8441 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
8442
8443         * Form.cs: Change SelectActiveControl to internal, we need to call it in
8444         MdiWindowManager.
8445         
8446         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
8447         active control when activate a new mdi window.
8448         
8449         [Fixes bug #330495]
8450
8451 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
8452
8453         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
8454         is already added.
8455         [Fixes bug #333617]
8456
8457 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8458
8459         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
8460         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
8461         so we always recalculate the whole document instead of just the new part.
8462         [Fixes bug #325082]
8463
8464 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8465
8466         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
8467         when the mouse was to the left of the first character in the line.
8468
8469 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8470
8471         * TextBox.cs, TextBoxBase.cs: When setting the document's password
8472         character, use the property instead of the variable so that the
8473         UseSystemPasswordChar property is taken into account.
8474         [Fixes bug #333748]
8475
8476 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8477
8478         * FolderBrowserDialog.cs: When a node is right clicked and the "New
8479         folder" contex menu appears, actually add the new folder to it, even
8480         if the node is not currently selected. Still use SelectedNode in case 
8481         there wasn't found a node under the pointer.
8482         Fixes #325452.
8483
8484 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8485
8486         * ListViewItem.cs: When retrieving the focused state, the index check
8487         should be done only when ListView is in virtualmode, as it is an
8488         expensive check for normal mode.
8489
8490 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8491
8492         * ListViewItem.cs: Make the focus state information be stored
8493         in the ListView, not in the items. This is done to match the MS
8494         behaviour for items that are not yet part of a ListView control;
8495         besides that, since just one item can be focused at the same time,
8496         we save a little space in our items.
8497         Fixes part of #331643.
8498
8499 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
8500
8501         * ComboBox.cs: When focus is lost, deselect the text. When setting
8502         text of control, select all text. Do not hide selection when control
8503         does not have focus. Fixes bug #333663.
8504
8505 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
8506
8507         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
8508         instead of ArgumentException when SelectionLength is set to negative
8509         value. Added same check to SelectionStart. Code formatting.
8510
8511 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
8512
8513         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
8514         or SelectionStart. Code formatting.
8515
8516 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8517
8518         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
8519         indicating that there was not a previous drag-and-drop operation going
8520         on.
8521         Fixes part of #325071.
8522
8523 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8524
8525         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
8526         AllowedEffect, don't let the drop operation happen. 
8527         Fixes #32580.
8528
8529 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
8530
8531         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
8532
8533 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
8534
8535         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
8536         is called.
8537
8538 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
8539
8540         * Line.cs: Add a method that finds the tag that contains an x-coord.
8541         * LineTag.cs: Add a method that finds the character at an x-coord using
8542         a binary search, the old way was a linear search.
8543         * TextControl.cs: Change FindCursor to use the above new methods.
8544
8545 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8546
8547         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
8548         value different than AllowedEffect). This should be possible to
8549         indicate that dragging is not possible in some control/area.
8550
8551 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
8552
8553         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
8554         descent internally when font changes instead of outside code being responsible
8555         for setting it.
8556         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
8557         instead of accessing internal variables.
8558
8559 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
8560
8561         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
8562         remove special treatment for ArrangeIcons since it is already arranged.
8563
8564 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8565
8566         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
8567         the Win32 backend uses Color.
8568         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8569         Refactor to store a Color instead of a Brush for Color.
8570
8571 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8572
8573         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
8574         away.  I didn't realize I needed this when I refactored these earlier.
8575
8576 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8577
8578         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
8579         store a Color structure and use the ResPool for back color instead of
8580         holding onto brushes.
8581
8582 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8583
8584         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
8585         [Fixes bug #325592]
8586
8587 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8588
8589         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
8590         to recalculate its size.  Fixes a part of bug #331052.
8591
8592 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8593
8594         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
8595         button.  Fixes a part of bug #331052.
8596
8597 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8598
8599         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
8600         the CreateParams.
8601         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
8602         decorations.
8603         [Fixes bug #330986]
8604
8605 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8606
8607         * TextBoxTextRenderer.cs: Don't make this a static class, as static
8608         doesn't exist in 1.1.  (Thanks jb!)
8609
8610 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8611
8612         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
8613         class to allow us to use different backends on different platforms.
8614         Linux uses the current [Draw|Measure]String backend.  Windows uses
8615         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
8616         of GDI+.  This leads to better looking text and more accurate measurements
8617         on Windows, fixing many of the reported issues.
8618         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
8619
8620 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8621
8622         * FolderBrowserDialog.cs: When running on Windows,
8623         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
8624         since we must match both "C:" and "C:\" forms. A little hackish, but
8625         works.
8626         Fixes #325247.
8627
8628 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8629
8630         * ListView.cs: When calling EndEdit (after editing an item),
8631         create a new instance of LabelEditEventArgs to keep clean the fields
8632         in case we get a new call to BeginEdit; also do Application.DoEvents
8633         to have focus in synch. This is a fix similar to TreeView's #325244.
8634
8635 2007-10-07  Andreia Gaita <avidigal@novell.com>
8636
8637         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
8638         * WebBrowserBase.cs: Added dialog support, calling the
8639           WebBrowserDialogs classes for each specific dialog type.
8640
8641 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8642
8643         * ListView.cs: When the last item is focused and is removed,
8644         move the focus to the previous item (in Items order). This is what MS
8645         does.
8646         Fixes #330415.
8647
8648 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8649
8650         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
8651         instead of the opposite (RemoveAt call Remove). This is a better
8652         approach since we don't need to to a pair of traversals when using
8653         RemoveAt.
8654
8655 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8656
8657         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
8658         check that the node actually has nodes, and if not, move to the
8659         parent node instead. 
8660         Fixes #325265.
8661
8662 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8663
8664         * TreeView.cs: Move the previous change to the general case (to
8665         call Application.DoEvents in cases where the method was called by
8666         different places).
8667
8668 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8669
8670         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
8671         call Application.DoEvents. This is neccessary when we get a call to
8672         BeginEdit from an AfterLabelEdit handler, because the focus always
8673         goes to the TreeView, even if we try to give it to our
8674         LabelEditTextBox. The call do Application.DoEvents seems to
8675         synchronize the focus, basically.
8676         Fixes #325244.
8677
8678 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8679
8680         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
8681         should be false. This also removes some nasty recursive paths. Fixes
8682         part of #325244.
8683
8684 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
8685
8686         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
8687         state to normal. Also resize window when cascading. Fixes #325433. 
8688
8689 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
8690
8691         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
8692         DefaultForeColor, as drawing empty colored lines isn't very useful.
8693         [Fixes the not drawn lines part of bug #324358]
8694
8695 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
8696
8697         * TextControl.cs: Move Line and LineTag classes into separate files to
8698         make things easier to find.
8699         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
8700         * RichTextBox.cs: Capitalize LineTag.Length property access.
8701         - This is purely an organizational/formatting change, no logic changed. -
8702
8703 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8704
8705         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
8706         text is empty.
8707
8708 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8709
8710         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
8711         text is empty.
8712
8713 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8714
8715         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
8716         prevent calling of OnBackColorChanged. Fixes #325321.
8717
8718 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8719
8720         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
8721         because control can be disabled because owner is disabled.
8722
8723 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
8724
8725         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
8726         string.Empty, test failed from previous change.
8727
8728 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
8729
8730         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
8731         is null, not String.Empty.  See bug #323038.
8732
8733 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
8734
8735         * TextControl.cs: Change the margins to match MS a little better.
8736         Still not perfect for X11 due to some DrawString differences, but
8737         is still an improvement over the old stuff.
8738         Partially fixes #324467.
8739
8740 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8741
8742         * FolderBrowserDialog.cs: When using MyComputer as 
8743         RootFolder, let absolute paths be considered as valid ones. Also, use
8744         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
8745         for Windows compatibility.
8746         Partially fixes #325247.
8747
8748 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8749
8750         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
8751         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
8752         method, since it causes the dialog to not select folders directly
8753         under the root path (when setting SelectedPath property).
8754
8755 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8756
8757         * TreeNode.cs: When calling Expand/Collapse and need to call 
8758         ExpandBelow/CollapseBelow respectively, take into account
8759         partially visible nodes (previously Expanding/Collapsing
8760         a partially visible node in the bottom was not updating its +- sign).
8761
8762 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8763
8764         * TreeView.cs: When calling Expand on a TreeNode, and we need to
8765         expand nodes below (ExpandBelow), scroll the entire Viewport
8766         area if the node is above it and not visible (instead of scrolling
8767         the area from node's Bottom, which applies only when the node is
8768         visible).
8769         Fixes #325266.
8770
8771 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8772
8773         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
8774         node in the bottom area (as .Net does). This is done to preserve the
8775         scroll position when ExpandAll is called before handle is created for
8776         the 1.1 profile (bottom area, as opposed to top area in 2.0).
8777         Fixes #324103.
8778
8779 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8780
8781         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
8782         bottom area if we are in fact not using the vertical scroll bar.
8783         Fixes #324824.
8784
8785 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
8786
8787         * Control.cs: Comment out a double buffering optimization that doesn't
8788         take into account invalidates created in OnPaint, causing the control
8789         to never be redrawn.  It would take quite a bit of work to work around
8790         this, but I left it commented with an explanation for later possible
8791         optimization.
8792         [Fixes bug #328681]
8793
8794 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
8795
8796         * Control.cs: Ask parent to perform a layout if control is AutoSize and
8797         the text changes.
8798         * RadioButton.cs: Implement GetPreferredSizeCore.
8799         [Fixes bug #328672]
8800
8801 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
8802
8803         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
8804         corcompare stuffs.
8805
8806 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
8807
8808         * Application.cs: Move the sync context stuff to Run instead of RunLoop
8809         so that it doesn't get uninstalled on modal forms.
8810         * Control.cs: Install a sync context when a control is created.
8811         * WindowsFormsSyncronizationContext.cs: Create a private static control
8812         to invoke on.  This is easier than trying to find a created control we
8813         can use.
8814         [Fixes bug #327608]
8815
8816 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
8817
8818         * Application.cs: Install a WindowsFormsSynchronizationContext in the
8819         run loop, and uninstall it when done.
8820         * WindowsFormsSynchronizationContext.cs: Implement.
8821         [Fixes the common case in bug #327608]
8822
8823 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
8824
8825         * DataGridViewCellCollection.cs: Added argument checks for indexers.
8826         Use case-insensitive lookup of column name in indexer. Code
8827         formatting.
8828
8829 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8830
8831         * TreeNode.cs: When collapsing or expanding a node, check whether its
8832         change will affect the visible area (we were previously doing a
8833         IsVisible check, but that check is not enough since children nodes
8834         could be still visible). Fixes part of #325266.
8835
8836 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
8837
8838         * TreeView.cs: Always select the first node when the TreeView gets
8839         focus if there is no currently selected node.
8840         [Fixes bug #324279]
8841
8842 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
8843
8844         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
8845         node being selected is null.
8846         [Patch from Yves Bastide fixes bug #326858]
8847
8848 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8849
8850         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
8851         whether all the parent nodes are expanded.
8852         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
8853         call RecalculateVisibleOrder if all previous nodes are expanded.
8854         Before that we were doing a IsVisible check, but sometimes the node
8855         is not in the visible area, but _should_already be ready, because of
8856         all previous nodes are expanded. Fixes #325259.
8857
8858 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8859
8860         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
8861         portion of the item is clicked.
8862
8863 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8864
8865         * TextControl.cs: Do not tell the system to move the cursor if the
8866         textbox isn't focused.  Fixes part of bug #322668.
8867
8868 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8869
8870         * ComboBox.cs: When there are no items, do not show the dropdown if
8871         the down arrow is clicked.  Fixes part of bug #322668.
8872
8873 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8874
8875         * ToolStripComboBox.cs: Manually set the size of this control in the
8876         constructor, as it doesn't seem to be the same as DefaultSize.
8877         Fixes a failing monobuild test.
8878
8879 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
8880
8881         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
8882         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
8883
8884 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
8885
8886         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
8887         Desktop.  This lets it work for people who have moved their desktops
8888         from the default location on windows.  For people who have not, both
8889         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
8890
8891 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8892
8893         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
8894         but when the base constructor sets this, the control is null.  Set it
8895         again in the constructor.  Fixes a failing monobuild test.
8896
8897 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8898
8899         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
8900         get called.
8901         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
8902         called.
8903
8904 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8905
8906         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
8907         will handle it themselves.
8908         * ToolStripItem.cs: When deciding what the text of a tooltip should
8909         be, use the Text property instead of the text field.
8910         * ToolStripTextBox.cs: Handle tooltips.
8911         [Fixes bugs #325417 and #325973]
8912
8913 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8914
8915         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
8916         left click.  Fixes the easy part of bug #325969.
8917
8918 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8919
8920         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
8921         bug #325406, but set a minimum for StatusStrip to 22 to keep
8922         bug #325390 fixed.  I think this minimum would have been figured
8923         up automatically if the grip was actually a ToolStripItem, but it
8924         currently is not.
8925
8926 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8927
8928         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
8929         as this is apparently the actual value used by .Net. Also apply
8930         ItemPadding in Details view only, and decrease the general width padding,
8931         to have only the needed. This should fix #324340 in Windows too.
8932
8933 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8934
8935         * ListViewItem.cs: Don't Invalidate item if parent is inside
8936         a BeginUpdate/EndUpdate block. This prevents to have differences
8937         between the ListView and items state, as well as avoid some exceptions
8938         there.
8939         * ListView.cs: Make 'updating' field internal.
8940
8941 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8942
8943         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
8944         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
8945         size if appropriate.
8946         Fixes reopened bug #325414.
8947
8948 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8949
8950         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
8951         * ToolStripItem.cs: Invalidate before and after our new autosize when
8952         text changes.
8953         Fixes reopened bug #325390.
8954
8955 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8956
8957         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
8958         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
8959         #325044.
8960
8961 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8962
8963         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
8964
8965 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8966
8967         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
8968         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
8969         #82734.
8970
8971 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
8972
8973         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
8974         item to select when the ToolStrip is selected.
8975         * ToolStripControlHost: Realign the control when the bounds or visibility
8976         change.
8977         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
8978         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
8979         preferred height.
8980         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
8981         base.OnPaint.  Was causing text not to be drawn.
8982
8983 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
8984
8985         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
8986
8987 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8988
8989         * TreeView.cs: When creating the label edit text box,
8990         set is initially to Visible = false. This is done to
8991         prevent a confusion in the layout which makes it to lose
8992         focus when shown the first time. Fixes part of #82592.
8993
8994 2007-09-13 Andreia Gaita <avidigal@novell.com>
8995
8996         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
8997
8998 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8999
9000         * ToolStrip.cs: Take Margin into account when calculating preferred
9001         size.  Also, allow preferred size to get smaller than the explicit
9002         size.
9003         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
9004         First step towards fixing bug #82747.
9005
9006 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9007
9008         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
9009         full row select background over the plus/minus glyph.  Also, turn
9010         off the focus rectangle for full row select since MS doesn't seem
9011         to ever paint it.  [Fixes bug #81839]
9012
9013 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9014
9015         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
9016         This was causing keyboard opened dropdowns to lose focus.
9017         [Fixes bug #82803]
9018
9019 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9020
9021         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
9022         ClientRectangle instead.  [Fixes bug #82838]
9023
9024 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9025
9026         * SplitContainer.cs: We can't reset Visible on every layout because
9027         someone may have set Visible = false explicitly on a SplitterPanel.
9028         Make sure when we switch orientation the SplitterDistance does not
9029         change.  Fixes two failing tests.
9030
9031 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9032
9033         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
9034         TextRenderer, since the latter is only available in 2.0.
9035
9036 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
9037
9038         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
9039         * SplitContainer.cs: Implement FixedPanel layouting.
9040
9041 2007-09-12  Andreia Gaita  <avidigal@novell.com>
9042
9043         * WebBrowserBase.cs: setup shutdown routine
9044
9045 2007-09-12  Andreia Gaita  <avidigal@novell.com>
9046
9047         * Application.cs: Let keyboard events that are targetted 
9048                 to non-mwf windows hosted inside mwf (as in, webbrowser),
9049                 propagate properly. Fixes keyboard handling on the webbrowser.
9050
9051 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9052
9053         * ListView.cs: When handling MouseUp event and we are 
9054         highligting a node with the mouse right button, don't trigger
9055         Before/AfterSelecting event, since we are not actually selecting
9056         the node.
9057
9058 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9059
9060         * TreeView.cs: When editing a node, modify the edit text box
9061         depending on the text length (as you are typing), like MS does.
9062
9063 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
9064
9065         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
9066         Override GetPreferredSizeCore to perform calculations.  Remove custom
9067         autosize logic.  [Fixes bug #82739]
9068
9069 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
9070
9071         * TextBoxBase.cs: Modified should default to false.
9072
9073 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9074
9075         * Control.cs: Update the anchoring distances even when layout is supspended.
9076         Patch provided by George fixes bug #82805.
9077
9078 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9079
9080         * Control.cs: Provide a setter for ExplicitHeight.
9081         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
9082         remove the hacks in here for requested_height.
9083         [Fixes bug #82749]
9084
9085 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9086
9087         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
9088         Maximum to lower that its current Value caused an ArgumentException by setting
9089         the Value to the new Maximum.
9090
9091 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9092
9093         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
9094         handle moves to the closest tick when it is being dragged.
9095         [Fixes bug #82751]
9096
9097 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9098
9099         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
9100         can't let them count as real items when calculating where to merge in the
9101         user's items.  [Fixed bug #82786]
9102
9103 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9104
9105         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
9106         who want to add a menu item directly onto a toolstrip.
9107         [Fixes bug #82775, part II]
9108
9109 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9110
9111         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
9112         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
9113         don't set it to available.
9114         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
9115         [Fixes bug #82727, part II]
9116
9117 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9118
9119         * StatusStrip.cs: Change item placement to None if not visible.
9120         * ToolStripItem.cs: Invalidate when InternalVisible changes.
9121         These should have been committed to fix 82723, but I missed them.
9122
9123 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9124
9125         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
9126         Click, and that it is only called once.
9127         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
9128         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
9129         dropped down.
9130         [Fixes bug #82775]
9131
9132 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9133
9134         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
9135         to match .Net.
9136         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
9137         instead of 8, just like above. Partially fixes #82734.
9138
9139 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9140
9141         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
9142         fixes #82734.
9143
9144         * ListView.cs: Remove extra space between rows in Details view (match
9145         .Net). 
9146         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
9147         the DefaultFont.
9148
9149 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
9150
9151         * Application.cs: Modified ProductVersion to return value of
9152         AssemblyInformationVersion if available, and fallback to assembly
9153         version. Fixes bug #82746. Code formatting.
9154         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
9155         instead.
9156
9157 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9158
9159         * Control.cs: When updating ZOrder for a child control,
9160         take into account the implicit ones (we need it in our controls
9161         using them). Fixes #82642.
9162
9163 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
9164
9165         * ToolStripItem.cs: Add support for animated images.
9166         [Fixes bug #82726]
9167
9168 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
9169
9170         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
9171         visible.  [Fixes bug #82727]
9172
9173 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9174
9175         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
9176         so we repaint using the new size.  [Fixes bug #82723]
9177
9178 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9179
9180         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
9181         option.  [Fixes bug #81779]
9182
9183 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9184
9185         * TreeView.cs: Override HandleClick because the StandardClick style is
9186         set to false.  According to MSDN (and testing), the click events should
9187         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
9188
9189 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9190
9191         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
9192         the border will disappear.  Fixes reopened #82653.
9193
9194 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9195
9196         * Control.cs: If the control is autosize, and its preferred size changes
9197         when it lays out its children, tell its parent so it can be re-layed out.
9198         Fixing some of the fallout from r85433.
9199
9200 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9201
9202         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
9203         and CheckBox share some code.
9204
9205 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9206
9207         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
9208         the TrackBar, not every mouse move.  [Fixed bug #82718]
9209
9210 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9211
9212         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
9213         under 2.0 rendering.  [Fixes bug #82657]
9214
9215 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9216
9217         * TreeView.cs: If we found a TreeNode to display a context menu, but
9218         it doesn't have one to show, let the TreeView display its menu
9219         instead.  [Fixes bug #82680]
9220
9221 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9222
9223         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
9224         OnPaintInternal instead.  Give the internal TextBox a Border property
9225         so it can draw itself more correctly.  [Fixes bug #82653]
9226
9227 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
9228
9229         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
9230
9231 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9232
9233         * ComboBox.cs: Adjust combobox button state to reflect current state when
9234         back to enabled = true. Fixes first issue of #82654.
9235
9236 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9237
9238         * Control.cs: Fix last patch regression, prevent forms to update zorder when
9239         setting visible property.
9240
9241 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9242
9243         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
9244         fix zorder for controls initially created as non visible. Fixes #82667.
9245
9246 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
9247
9248         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
9249         mimic win32 look. Fixes #82656.
9250
9251 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
9252
9253         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
9254         Stubs for new net 3.5 classes.
9255
9256 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9257
9258         * ListViewItem.cs: In ListViewItemCollection operations calculate
9259         Layout for owner as well as invalidate it. Fixes part of #82642.
9260
9261 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
9262
9263         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
9264         when returning Enabled.  [Fixes bug #82651]
9265
9266 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
9267
9268         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
9269
9270 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9271
9272         * ListView.cs: Put item padding info in a single place
9273         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
9274         columns again.
9275         * ThemeWin32Classic.cs:
9276         * Theme.cs: Likewise.
9277
9278 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9279
9280         * ListView.cs: When a ListViewSubItem instance is invalidated,
9281         invoke Invalidate on parent ListViewItem, not parent ListView.
9282         Fixes #81570.
9283
9284 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9285
9286         * ListView.cs, ListViewItem.cs: corcompare stuffs.
9287
9288 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9289
9290         * BindingMemberInfo.cs: Implement == and != operators.
9291
9292 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9293
9294         * HtmlElementEventArgs.cs: Implement properties.
9295
9296 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9297
9298         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
9299
9300 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9301
9302         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
9303         Add (string,string,string) to implement the imagekey.  It turns out, we
9304         use the requested imagekey whereas .Net does not.  So I broke ours to match
9305         theirs.  :(
9306
9307 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9308
9309         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
9310
9311 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9312
9313         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
9314
9315 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
9316
9317         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
9318         up-to-date. Fixes bug #82618.
9319
9320 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
9321
9322         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
9323         reflect document changes. Fixes #82367.
9324
9325 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9326
9327         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
9328         as well as add new ones. This should make work the BackgroundImage
9329         property for ListView again.
9330
9331 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9332
9333         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
9334         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
9335         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
9336
9337 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9338
9339         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
9340         IsKeyLocked.
9341
9342 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9343
9344         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
9345         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
9346
9347 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9348
9349         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
9350         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
9351
9352 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
9353
9354         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
9355
9356 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
9357
9358         * GridEntry.cs: Implement GetService.
9359
9360 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
9361
9362         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
9363         for label editting, make sure we focus back on the TreeView.
9364         [Fixes bug #82590]
9365
9366 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9367
9368         * ListView.cs: Add some 2.0 overrides.
9369
9370 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9371
9372         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
9373         because getter dont returns right value before handle creation. Thanks 
9374         to George. Fixes #82569.  
9375
9376 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9377
9378         * Theme.cs: Revert last patch, it causes error under win32. 
9379
9380 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9381
9382         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
9383         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
9384         logical Desktop rather than the physical file system location. Fixes #82603. 
9385
9386 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
9387
9388         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
9389         for the patch. Fixes #82568.
9390
9391 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9392
9393         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
9394         methods.
9395
9396 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9397
9398         * ListViewInsertionMark.cs: New stubbed class.
9399
9400 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9401
9402         * FolderBrowserDialog.cs: When adding folder, immediately create the
9403         directory with temporary name and rename the directory when editing
9404         finishes. This matches MS. Ensure the node for the new folder is 
9405         selected and LabelEdit is disabled, when editing is either finished
9406         or cancelled.
9407
9408 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9409
9410         * TreeView.cs: When editing label of node, ensure node is visible.
9411
9412 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
9413
9414         * PropertyGridView.cs: Set the value only if it has changed.
9415
9416 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9417
9418         * ListView.cs: Some more code refactoring to add support sorting
9419         with groups (now for Details view). Remove unused code also.
9420
9421 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9422
9423         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
9424         Not a big fan of reacting immediately to a field in an EventArg, but that's
9425         the way it's done.  (This is part of the previous commit that got left out.)
9426
9427 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9428
9429         * FolderBrowserDialog.cs: Removed need for separate description field.
9430         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
9431         has focus when dialog box is displayed again, regardless of what
9432         button was pressed the previous time. Set RootFolder and SelectedPath
9433         each time dialog box is displayed. This ensures the treeview is
9434         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
9435         when it does not have focus. Added support for more special folders.
9436
9437 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9438
9439         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
9440         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
9441         it resets the edit_args.
9442         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
9443         [Fixes bug #82577]
9444
9445 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
9446
9447         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
9448         button to match MS. Provide more meaningful exception message for
9449         invalid RootFolder value. Use zero-length string when SelectedPath
9450         is set to null. Allow non-rooted paths in SelectedPath, but ignore
9451         them in FolderBrowserTreeView. Allow folders to be created in
9452         RootFolder. Fixes bug #82576.
9453
9454 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9455
9456         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
9457         since we need to take into account the group headers and the margin
9458         between them.
9459         * ListViewGroup.cs: Add a rows field to store the number of rows per
9460         group.
9461
9462 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9463
9464         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
9465           Anyways, let's just follow the lead.
9466
9467 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9468
9469         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
9470         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
9471         controls in GetPreferredSizeCore.
9472         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
9473         [Fixes bug #82488]
9474
9475 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9476
9477         * PrintDialog.cs: Need to instantiate the form variable here too.
9478
9479 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9480
9481         * ListView.cs: Do some reorganization to support sorting in groups,
9482         by doing the layout sequentially in ListView.Items. Also add support
9483         for the Default Group, which should be available for items with no
9484         group assigned.
9485         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
9486         for storing layout info also.
9487         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
9488         collection, as well as providing internal members to do a traversal
9489         including the default group (needed when doing layout/drawing).
9490         * ThemeWin32Classic.cs: When drawing group headers use internal
9491         ListViewGroupCollection members to take into account the default
9492         group.
9493
9494 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
9495
9496         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
9497
9498 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9499
9500         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
9501         been created.  If handle is created, we want arror keys.  If we are editing
9502         a node, we want things like enter, esc, home, end, page up, page down.
9503         Allows Esc to work for FolderBrowserDialog.
9504
9505 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9506
9507         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
9508         they close when ESC is pressed.  Thanks Andy!
9509
9510 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9511
9512         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
9513         This way we can tell if this is a CommonDialog provided with mono, or one
9514         that is being implemented outside by a developer.  If it is an external one,
9515         the developer is responsible for showing their own form.  We were showing
9516         our blank form after the developer showed his.
9517         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
9518         PageSetupDialog.cs: Instantiate form variable in our constructor.
9519         [Fixes bug #82531]
9520
9521 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9522
9523         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
9524         and always return true.  [Fixes bug #81616]
9525
9526 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9527
9528         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
9529         TextBox.  [Fixes bug #82549]
9530
9531 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
9532
9533         * FileDialog.cs: When Save/Open is clicked and no filename is selected
9534         or entered then do not close the dialog. Fixes bug #82539. Removed
9535         CWLs.
9536
9537 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
9538
9539         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
9540         code to this method. It is calling every time filter changes. This method
9541         will help to fix the bug #80887.
9542
9543 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
9544
9545         * CheckBox.cs: Implement AutoSize calculation.
9546
9547 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
9548
9549         * CheckBox.cs: Use new 2.0 rendering for 2.0.
9550         * Theme.cs: Method declarations for 2.0 rendering path.
9551         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
9552
9553 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9554
9555         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
9556
9557 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9558
9559         * ListViewGroupCollection.cs: Implement AddRange the right way, to
9560         only call Redraw on the parent one time.
9561
9562 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9563
9564         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
9565           GetClipboardContent.
9566         * DataGridViewCell.cs: Implemented GetClipboardContent,
9567           GetEditedFormattedValue, GetFormattedValue.
9568         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
9569
9570 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
9571
9572         * TableLayoutStyleCollection.cs: corcompare fix.
9573
9574 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9575
9576         * DataObject.cs: Implemented retrieval of convertible / not convertible
9577           objects.
9578
9579 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
9580
9581         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
9582         ourselves.  This ensures the entire old bounds are repainted, in case our new
9583         size is smaller.  [Fixes bug #82518]
9584
9585 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
9586
9587         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
9588         flag to make fast handle of mouse events, without this the mouse move is
9589         handled in some manner, whether it is a mouse move or not. Fixes #81588.
9590
9591 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9592
9593         * ListView.cs: When doing layout calculations don't use a ref
9594         param to keep the current item; instead use its Index value (this 
9595         is specially important when doing the layout with Groups
9596         and Items being sparse). Also don't take into account items added to
9597         the Group but not yet added to the main ListView.Items collection.
9598
9599 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9600
9601         * ListViewGroupCollection.cs: Forgot to mimic an issue
9602         in the indexer (don't assign the ListView owner for new values).
9603
9604 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9605
9606         * ListViewGroupCollection.cs: Make the string indexer use
9607         the int based indexer to re-use code, instead of duplicate the code.
9608         Also Redraw as needed and take into account null values.
9609
9610 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
9611
9612         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
9613         [Fixes bug #82481]
9614
9615 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
9616
9617         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
9618         when other buttons are clicked or navigated to.
9619
9620 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9621
9622         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
9623           it's XplatUIX11 that attaches them.
9624
9625 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9626
9627         * DataGridView.cs: If a column has been added, recreate the editing row.
9628           Fixes #82226.
9629
9630 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9631
9632         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
9633           of the tag to draw. Makes disappearing text show up again.
9634
9635 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9636
9637         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
9638           Contents. Fixes #82487.
9639
9640 2007-08-19  Andreia Gaita  <avidigal@novell.com>
9641
9642         * Added HtmlElement.cs, HtmlElementCollection.cs, 
9643           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
9644           
9645 2007-08-19  Andreia Gaita  <avidigal@novell.com>
9646
9647         * BindingSource.cs: Implement this, dispose and getenumerator.
9648         * DataGridViewRowCollection.cs: Move the InvalidOperationException
9649         out of AddInternal, throw it only on public Add calls. The 
9650         UsingWebBrowser sample was blowing up with this when setting the
9651         DataSource after adding DataBindings, so it's likely that .net
9652         only throws this exception when Add is called directly. 
9653         
9654         * ToolStripControlHost.cs: Return the hosted control's text
9655         property, and not the ToolStripItem one (it would always return
9656         the initial value).
9657         
9658         * HtmlDocument.cs: Implement GetElementById and All
9659         * WebBrowser.cs: Remove exception on set_DocumentStream.        
9660
9661 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9662
9663         * Form.cs: Fix the max and min value for opacity (0~1).
9664
9665 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9666
9667         [Fixes #80118]
9668         * DataGridTableStyle.cs: Default header font is now null, on getter it 
9669         returns datagrid font when is null. On setter permits null.
9670
9671         * DataGrid.cs:
9672         - When ResetHeaderFont set header font to null.
9673         - On EndInit set grid_style.DataGrid.
9674
9675 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9676
9677         * TabControl.cs: Fix regression in default padding x.
9678
9679 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9680
9681         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
9682
9683 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9684
9685         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
9686         not 2. Fixes #82229.
9687
9688 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9689
9690         * TabControl.cs: Fix tab size when image height is less than text height.
9691         Partially fixes #81837.
9692
9693 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9694
9695         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
9696         "alt + tab". It works only for Win32, for X11 theres no way to remove window
9697         from taskbar and keep it on "alt_tab". Fixes #81722.
9698
9699 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9700
9701         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
9702         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
9703         Fixes #80877 and #79418.
9704
9705 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9706
9707         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
9708         between position and one of the screen borders. Fixes #82349.
9709
9710 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9711
9712         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
9713         the MessageBox in the taskbar. Fixes #82457.
9714
9715 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9716
9717         * MessageBox.cs: Fix form size when icon is set and text height is bigger
9718         than icon. Fixes #82468.
9719
9720 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9721
9722         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
9723         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
9724           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
9725           Refactored HandleNCCalcSize somewhat to avoid code duplication.
9726         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
9727           FormBorderStyle to decide if we're calculating a new size from the
9728           client size or not. CreateParams: Don't fake tool windows, only the X11
9729           backend manages toolwindows manually.
9730
9731 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9732
9733         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
9734         ObjectDisposedException.
9735
9736 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9737
9738         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
9739         in OnLoad should not have any effect.  [Fixes bug #82470]
9740
9741 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9742
9743         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
9744         paint for controls that create their own ToolTipWindow instead of
9745         going through ToolTip.
9746
9747 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9748
9749         * ToolTip.cs: Make Hide internal instead of public to match MS API.
9750
9751 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9752
9753         * ListViewGroupCollection.cs: Use generic List instead of an
9754         ArrayList, since this collection is 2.0 only.
9755
9756 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
9757
9758         * ToolTip.cs (Hide): Made public to make the build work (should
9759         this not be public?).
9760
9761 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9762
9763         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
9764         ToolTipWindow.
9765         * ToolTip.cs: Add an internal Visible property to facilitate transition.
9766
9767 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9768
9769         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
9770         PopupEventHandler.cs: Make these internal for 1.1.
9771         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
9772         use ToolTipWindow internals.
9773         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
9774         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
9775
9776 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9777
9778         * X11Dnd.cs: Add a null check.
9779
9780 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9781
9782         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
9783           nothing else succeeds. Fixes #82453.
9784
9785 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9786
9787         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
9788           rectangle if we're painting to another window than the one the paint
9789           message was generated on. Simplify the code somewhat, which makes
9790           PaintEventEnd also simpler.
9791
9792 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9793
9794         * Control.cs: When changing parent of a form, let the form decide whether
9795           XplatUI.SetParent should be called or not.
9796         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
9797           recreating the handle. If the new parent's handle isn't created, don't
9798           recreate our handle, just destroy it. CreateParams: Check if the
9799           parent's handle is created before fetching it.
9800
9801 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9802
9803         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
9804           Update calls to PaintEventStart/End to take a Message argument.
9805         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
9806           take a Message argument.
9807         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
9808           Message argument, and handle the case where we don't paint to the window
9809           for which the paint message was generated.
9810
9811 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9812
9813         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
9814           Marshal.GetLastWin32Error. Plug nasty memory leak in
9815           PaintEventStart/End, we were creating a DC we weren't releasing.
9816
9817 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9818
9819         * ListView.cs: Add Groups support in Details view. Also have a small
9820         method to do the layout of the group header. Don't use a separate
9821         method to do the groups calculation in Icons view, since our methods
9822         are now a little simpler.
9823         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
9824         `Bounds'.
9825         * ThemeWin32Classic.cs: Likewise.
9826
9827 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
9828
9829         * Application.cs: Add FilterMessage method and rework our message loop
9830         logic to use it.
9831
9832 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
9833
9834         * Application.cs: Add some methods and stub a few methods that are
9835         pretty much never used.
9836
9837 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
9838
9839         * TreeNode.cs: Add some serialization methods.
9840
9841 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9842
9843         * ListView.cs: In ListViewItemCollection have a 
9844         'is_main_collection' field to not modify ListViewItem.ListView
9845         when using it as ListViewGroup.Items (and not ListView.Items)
9846         and also don't modify selection state (.Net behaviour). 
9847         Instead, set group for items contained in a ListViewGroup.Items collection.
9848         * ListViewItem.cs: Simplify some code in Group setter.
9849         * ListViewGroup.cs: use the new .ctor to pass the current instance
9850         to the ItemsCollection.
9851         * ListViewGroup.cs: Set the ListView property for ListViewGroup
9852         instances when adding/removing. Also make Remove use RemoveAt, which
9853         should perform better.
9854
9855 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
9856
9857         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
9858         that crept into the 1.1 profile.
9859
9860 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
9861
9862         * ToolBarButton.cs: Implement ImageKey.
9863
9864 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
9865
9866         * ToolBar.cs: Implement ScaleControl/ScaleCore.
9867
9868 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9869
9870         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
9871           created, it might have gotten destroyed since we last checked. Fixes
9872           #82405.
9873
9874 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
9875
9876         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
9877         tooltip will hide when mouse is moved off the control.
9878         [Fixes bug #82407]
9879
9880 2007-08-11 Andreia Gaita <avidigal@novell.com>
9881
9882         * WebBrowserBase.cs, WebBrowser.cs: add implementation
9883         using Mono.Mozilla for loading and navigating webcontrol
9884         with xulrunner.
9885         The initial implementation was done on 
9886         /trunk/mozembed/tests/browser , and copied here.
9887
9888 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
9889
9890         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
9891         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
9892
9893 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9894
9895         * DataGridView.cs: Add support for an editing row. Fixes #82226.
9896           RowTemplateFull: throw an exception if a column doesn't have a template.
9897         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
9898           add the row just before it.
9899         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
9900           selected.
9901         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
9902           DataGridView field to be able to reach the grid's editing row.
9903
9904 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
9905
9906         * ToolTip.cs: If the control's handle hasn't been created when it has a
9907         tooltip set on it, don't check to see if we need to show the tooltip.  This
9908         check was causing the control's handle to be created.
9909         [Fixes bug #82399]
9910
9911 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
9912
9913         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
9914                                         1.1             2.0
9915         Handle Not Created      -1              0
9916         Handle Created          0               0
9917         [Fixes bug #82371]
9918
9919 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
9920
9921         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
9922         [Fixes bug #82348]
9923
9924 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
9925
9926         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
9927         * ToolTip.cs: Implement some properties and owner draw.
9928
9929 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9930
9931         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
9932           show them again, since setting visibility causes a paint, causing an
9933           endless loop (instead use a temporary and set it all when it's known if
9934           they should be shown or not). Fixes #79265.
9935
9936 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9937
9938         * DataGridView.cs: Only do a full column/row selection if a header was
9939           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
9940           isn't pressed, deselect everything before selecting something.
9941
9942 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9943
9944         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
9945           behaviour according to bug #81075 - they are returned in the order they
9946           are selected. Fix HitTest to check if the point is within any of the
9947           headers. Allow for row/column selection when in ColumnHeader or
9948           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
9949           the row and column to call when their selected state changes, and
9950           updated selected_[rows|columns] whenever SetSelected* is called.
9951         * DataGridViewBand.cs: Initialize isRow correctly. Call
9952           SetSelected[Row|Column]CoreInternal when the selected state changes, and
9953           add a SelectedInternal to avoid StackOverflows.
9954         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
9955           ReadOnly no matter what.
9956         * DataGridViewSelectedColumnCollection.cs,
9957           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
9958           the items in reverse order (just as MS does...)
9959
9960 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
9961
9962         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
9963         itself, not part of a mnemonic.  [Fixes bug #82378]
9964
9965 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9966
9967         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
9968         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
9969           the DGV, the column, the row, or the cell itself is readonly.
9970
9971 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
9972
9973         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
9974         OSVersion.Platform.
9975         * FileDialog.cs: Same.
9976         * TextRendered.cs: Same.
9977         * FolderBrowserDialog.cs: Same.
9978         * TextBoxBase.cs: Same.
9979         * Application.cs: Same.
9980         * Cursors.cs: Same.
9981         * ThemeClearLooks.cs: Same.
9982
9983 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
9984
9985         * XplatUI.cs: Added RunningOnUnix property to be used by controls
9986         instead of duplicating these checks everywhere.
9987         * FileDialog.cs: Use case-insensitive comparison for populating the
9988         DirComboBox when not running on unix. Fixes bug #82385.
9989         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
9990         "Look in".
9991
9992 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9993
9994         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
9995           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
9996           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
9997           cell and column selection with ctrl and shift pressed. Call the correct
9998           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
9999           the corresponding virtual method (PaintBackground to paint background,
10000           etc).
10001         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
10002           either the column, row or the cell itself is selected.
10003         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
10004           OnRowsAdded.
10005         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
10006           here. When the row is selected, don't select all cells. Each cell now
10007           queries the row to see if the row is selected.
10008
10009 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10010
10011         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
10012           SelectionMode.
10013
10014 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10015
10016         * ListView.cs: In ListViewItemsCollection check that owner is
10017         not null before trying to access it (this happens quite often
10018         using Groups). Also don't duplicate calls by calling CollectionChanged
10019         method.
10020
10021 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10022
10023         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
10024         when we are dismissed to clear keyboard mnemonics.
10025         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
10026         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
10027         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
10028         was activated by keyboard or the OS tells us to always draw them.
10029         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
10030         [Fixes bugs #82376, #82377]
10031
10032 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10033
10034         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
10035         shot at having it because Alt was pressed.
10036         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
10037         the first real menu item.
10038         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
10039         a mnemonic if Text is null.
10040         [Fixes bug #82374]
10041
10042 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10043
10044         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
10045         search do check whether the item is already contained in the
10046         collection or not; instead check if the owner of the item is the same
10047         as ours. Also, remove a redundant check in the same method. 
10048
10049 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10050
10051         * Control.cs: Allow the clip region to be set back to null.
10052         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
10053         [Fixes button still showing up in bug #82370 when Show Through is turned off]
10054
10055 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10056
10057         * GridEntry.cs: Add a null check.
10058         * PropertyGrid.cs: When checking for existing grid entries, ignore category
10059           entries. Fixes #82297.
10060
10061 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
10062
10063         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
10064         for 2.0.
10065
10066 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
10067
10068         * ListBox.cs: Implement ScaleControl.
10069
10070 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10071
10072         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
10073           have a menu strip.
10074         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
10075           parent has a menu strip. Fixes #81689.
10076
10077 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10078
10079         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
10080           moments, so apply some fuzzy logic to determine if the mouse is still
10081           inside a control or not. Fixes #82288 (for the third time).
10082
10083 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10084
10085         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
10086           Don't create the child if it has been disposed already (may happen if
10087           the user closes the form the Load event).
10088
10089 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10090
10091         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
10092           #82288.
10093
10094 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10095
10096         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
10097           might call us after we've been destroyed, in which case our own private
10098           parent field is null. Fixes #82326.
10099
10100 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
10101
10102         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
10103         check for setting the dropdown's owner.
10104
10105 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
10106
10107         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
10108         before removing system menu items.
10109
10110 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
10111
10112         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
10113         folding.
10114         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
10115         folding.
10116         * ToolStrip.cs: Add a null check to mnemonics.
10117         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
10118         no ConnectedArea.
10119         [Fixes most of bug #81689]
10120
10121 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10122
10123         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
10124
10125 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10126
10127         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
10128
10129 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10130
10131         * DataGridViewCell.cs: EditType: returns
10132           DataGridViewTextBoxEditingControl always.
10133
10134 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
10135
10136         * TextRenderer.cs: Remove the LineLimit string format flag from the
10137         DrawString fallback method so that things like buttons that aren't
10138         tall enough to draw a full line will still draw part of the text.
10139         [Fixes part of bug #82272]
10140
10141 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10142
10143         * DataGridView.cs: Implemented AutoResizeColumn(s).
10144         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
10145           according to the Alignment.
10146         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
10147           Implement alignment and padding when painting.
10148         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
10149           exists.
10150         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
10151           way.
10152         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
10153           a column is added.
10154
10155 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10156
10157         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
10158         which is internal.
10159
10160 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10161
10162         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
10163         hide GetPreferredSize from public API.
10164         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
10165         * ToolStripItem.cs: Stub out drag and drop methods and events.
10166         * ToolStripManager.cs: Stub out Save/LoadSettings.
10167         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
10168         * ToolStripPanel.cs: Fix corcompare error.
10169         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
10170         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
10171         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
10172
10173 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10174
10175         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
10176         bounds height instead of PreferredHeight.  Puts things back the way 
10177         they were for height while still fixing the width.  Fixes broken unit
10178         tests.
10179
10180 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10181
10182         * Binding.cs: Implement 2.0 constructors and add a null check.
10183
10184 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10185
10186         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
10187           and fix row index (off by one).
10188
10189 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10190
10191         * PropertyGridView.cs: Remove debug output.
10192
10193 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10194
10195         * Control.cs: We need to reset the is_created flags when the handle is
10196           destroyed. Fixes #82187.
10197         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
10198           client coordinates if the window doesn't have a parent.
10199           Win32GetParent returns the parent or the owner, and for top-level
10200           windows with no parent (but with an owner) we were calculating the
10201           location from the location of the owner.
10202         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
10203           form has been disposed.
10204         * MdiClient.cs: Add a null-check.
10205
10206 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
10207
10208         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
10209         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
10210         so we can provide an implementation that returns the current width
10211         and preferred height.  Allows anchor = right to work with TextBox 2.0.
10212         [Fixes bug #82233]
10213
10214 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10215
10216         * ListView.cs: Add support for navigating items in Groups mode, by
10217         creating a big matrix containing all rows and cols of all groups. When
10218         are in other mode than Details, pressing Up should have a similar
10219         behaviour as that one of Down (moving to the next available column if
10220         current one doesn't have an item in the requested row). Also, don't
10221         proceed to use groups if ShowGroups is false.
10222         * ListViewGroup.cs: Add an internal int field to store the starting
10223         row of the group (used by the big matrix used for navigating the
10224         ListView).
10225         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
10226         false.
10227
10228 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
10229
10230         * ToolStripDropDown.cs: When we do Show, start with the 
10231         DefaultDropDownDirection, but if our popup menu is going to off-screen,
10232         modify the direction to keep it on screen.  [Fixes bug #82210]
10233
10234 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
10235
10236         * FileDialog.cs: Accept any FilterIndex value, and store it
10237         unmodified. When FilterIndex is less than 1, or greater than number
10238         of filters, then default to first filter. Only add filter extension to
10239         file if user did not specifiy an extension. When type of dialog is
10240         OpenFileDialog and DefaultExt is set, then only use filter extension
10241         if: CheckFileExists is true and no file wih the default extension
10242         exists, or CheckFileExists is false, and user specified file does not
10243         exist. When CheckFileExists is true, then add first extension of 
10244         selected filter that matches existing file. Perform checks for
10245         existing file, overwrite and create after extension has been added to
10246         file name. When CheckFileExists is true and type is SaveFileDialog,
10247         then only consider first filter extension if DefaultExt is set.
10248         When CheckFileExists is true, then ignore DefaultExt if file with that
10249         extension does not exist. Also perform check for existing file when
10250         type is SaveFileDialog. Changed some field to constants.
10251
10252 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10253
10254         * ListView.cs: Take into account the region used by header
10255         control when doing the vertical scroll (this way we invalidate
10256         the precise area, and don't get any dirty one).
10257
10258 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
10259
10260         * FileDialog.cs: Check for valid filterIndex on button open/save. 
10261         Fixes #82184.
10262
10263 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10264
10265         * ListView.cs: Update some layout calculations in details view
10266         and clean the code in a pair of assignations.
10267
10268 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10269
10270         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
10271         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
10272         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
10273         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
10274
10275 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10276
10277         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
10278         performance of thread-safe Graphic methods.  (Thanks rolf!)
10279
10280 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10281
10282         * ListView.cs: When doing the layout calculations, don't calculate
10283         scroll bars before handle is created. This is unnecessary and also
10284         calculating them before handle creation item causes a number of random
10285         bugs (which begin to appear after Chris' big patch for handle creation
10286         fixes). 
10287
10288 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10289
10290         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
10291         for things that don't have a Graphics object.  Currently, things just use
10292         the static Hwnd.bmp_g which is not thread safe.
10293
10294 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10295
10296         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
10297           dialog. Fixes #82187.
10298
10299 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10300
10301         * DataGridViewElement.cs: Initialize state.
10302         * DataGridView.cs: Forward a few Mouse events to cells. Add
10303           GetRowInternal and GetCellInternal that doesn't unshare rows.
10304           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
10305           don't use the index, but look it up. Add
10306           DataGridViewControlCollection.RemoveInternal to remove controls
10307           that Remove won't remove (scrollbars, edit control).
10308         * DataGridViewColumn.cs: Initialize State correctly.
10309         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
10310           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
10311           implementing this.
10312         * DataGridViewRowCollection.cs: Implemented shared rows.
10313         * DataGridViewRow.cs: Throw exceptions as MS do.
10314         * DataGridViewCell.cs: A few properties are implemented by a
10315           Get<Property> method, so move implementation there and remove the
10316           NIEX in the method. Add a bunch of OnXInternal that DataGridView
10317           calls when necessary.
10318         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
10319           complicates matters.
10320         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
10321           unshare any rows.
10322
10323 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
10324
10325         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
10326         the children controls.  Instead, we will just set up the proper docking for the
10327         children controls so we don't have to worry about it.  [Fixes bug #82188]
10328
10329 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
10330
10331         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
10332         canceling and correct Before/AfterLabelEdit properties as layed out in bug
10333         81847.  [Fixes bug #81847]
10334
10335 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
10336
10337         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
10338         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
10339         an explicit size based on the design-time size of the text.  Since our fonts
10340         may not match this explicit size, we tend to cut off the ends of people's labels.
10341
10342 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
10343
10344         * Menu.cs: Add some missing methods to MenuItemCollection.
10345
10346 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10347
10348         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
10349         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
10350         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
10351         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
10352         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
10353         * DataGridViewElement.cs: State defaults to Visible.
10354         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
10355         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
10356
10357 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10358
10359         * Control.cs: Minor 1.1 corcompare fix.
10360
10361 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10362
10363         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
10364         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
10365
10366 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10367
10368         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
10369           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
10370           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
10371           DataGridViewSelectedColumnCollection.cs,
10372           DataGridViewSelectedRowCollection.cs: Corcompare work.
10373
10374 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10375
10376         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
10377         it is autoset by VS2005 designer and the effect is barely noticeable.
10378
10379 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10380
10381         * TreeView.cs: Implement HitTest.
10382
10383 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10384
10385         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
10386           manually adding and removing the control from the Controls
10387           collecftion.
10388         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
10389           EditingControlInternal property that tracks the editing control.
10390           Always keeping the scrollbars in the Controls collection, as MS
10391           testing confirms is the right behaviour.
10392
10393 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10394
10395         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
10396           according to MSDN and new test.
10397
10398 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10399
10400         * TreeNode.cs: Implement ToolTipText.
10401         * TreeView.cs: Implement tooltips, NodeMouse* events.
10402
10403 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10404
10405         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
10406
10407 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10408
10409         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
10410         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
10411
10412 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
10413
10414         * Control.cs, Form.cs, ContainerControl.cs,
10415         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
10416         for misc properties.
10417
10418 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10419
10420         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
10421         * TreeView.cs: Implement StateImageList.
10422
10423 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10424
10425         * Form.cs: Don't check if the current form is the active form before
10426           activating it. Fixes #81904.
10427
10428 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10429
10430         * Form.cs: Don't check if the current form is the active form before
10431           activating it. Fixes #81904.
10432
10433 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10434
10435         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
10436
10437 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10438
10439         * Form.cs: Don't try to position the form after loading if the form was
10440           disposed. Fixes #81969.
10441
10442 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10443
10444         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
10445           properties. Had to change ToolBar into ToolStrip, which required a
10446           few #ifs.
10447
10448 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10449
10450         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
10451           resized, fixes part of #79829 (vertical lines in toolbar).
10452           PropertyGrid: Refactored Populate* to something that's easier to
10453           follow at least for me, as well as splitting it up into several new
10454           methods, required to update only subitems when something has
10455           changed by a popup editor or listbox. Don't use events to check
10456           when any values are changed, since the events are unreliable (we're
10457           changing the objects the events are registered with, and if the
10458           event handling requires the objects to be immutable (objects stored
10459           in hashtables for instance), the events will never be raised).
10460         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
10461           everytime we change a value, since events are unreliable.
10462           DropDownButtonClicked: For the same reason don't compare objects to
10463           check if it has changed or not, it would require all objects to
10464           derive Equals. Fix dialog location on windows, MS is doing weird
10465           things when creating parented forms.
10466         * GridEntry.cs: Add a SelectedObject setter.
10467
10468 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
10469
10470         * TreeNode.cs: Add some corcompare attributes.
10471         * TreeNodeCollection.cs: Implement 2.0 stuffs.
10472         * TreeView.cs: Implement some 2.0 stuffs.
10473
10474 2007-07-18  Andreia Gaita  <avidigal@novell.com>
10475
10476         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
10477         for moma.
10478
10479 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
10480
10481         * ListBox.cs: Implement custom tab offsets.
10482
10483 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10484
10485         * ToolStripContentPanel.cs: Support System renderer.
10486         * ToolStripControlHost.cs: Set RightToLeft to default to No.
10487
10488 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10489
10490         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
10491
10492 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10493
10494         * CheckBox.cs: Chain TextAlign to base implementation instead of
10495         maintaining another one.
10496
10497 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10498
10499         * ButtonBase.cs: Fix an incorrect string constant.
10500
10501 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10502
10503         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
10504         of creating one for measuring strings.
10505
10506 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10507
10508         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
10509         Implement MaxItemSize.
10510
10511 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
10512
10513         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
10514         for DeviceContext.  Instead, use the static one available in Hwnd.
10515         Informal tests show this saves about 500k on formtest.exe.
10516
10517 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
10518
10519         * ContainerControl.cs: Implement 2.0 AutoScaling.
10520
10521 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10522
10523         * ComboBox.cs: Work around bug #82120 (bug in mcs).
10524
10525 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
10526
10527         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
10528         Darken the focus color.
10529
10530 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
10531
10532         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
10533         for the checkbox.
10534         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
10535         X, Y instead of a rect for drawing text.
10536         - For ControlPaint.DrawCheckBox, center the check a little better when the
10537         checkbox is odd width.  When drawing a flat checkbox, use a white background
10538         when state != inactive.
10539         [Fixes bugs #82097, 82100]
10540
10541 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
10542
10543         * ListControl.cs: When changing CurrencyManager, disconnect event
10544         handlers from previous one. Fixes bug #81771. Code formatting.
10545
10546 2007-07-15  Andreia Gaita <avidigal@novell.com>
10547
10548         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
10549         full preview invalidation from layout invalidation, and only invalidate
10550         the layout when setting zoom or other properties. Invalidation should
10551         always be done even when resetting properties with the same values as
10552         what is there. Fixes #81744 and #79830.
10553
10554 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10555
10556         * ListView.cs: Implement initial support for Groups. Split some of the
10557         LayoutIcons code to render a partial list of the items (needed by
10558         items contained in ListViewGroup instances). Let the
10559         ListViewItemsCollection.ListView property be modifiable (needed when
10560         using Groups, too).
10561         * ListViewGroup.cs: Use a Bounds property rather than a Location
10562         one. Also invalidate the bounds when they get changed.
10563         * ThemeWin32Classic.cs: When drawing items, also draw the group header
10564         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
10565         method as well.
10566
10567 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10568
10569         * ListView.cs: When space gets pressed and CheckBoxes is true, 
10570         don't invoke the Begin and EndUpdate methods. We are generating 
10571         a redraw of the entire control without need to do so.
10572
10573 2007-07-13  William Holmes <billholmes54@gmail.com> 
10574
10575         * Control.cs: Changing logic in FindFlatForward and 
10576           FindFlatBackward to handle multiple Controls with 
10577           the same TabIndex.  
10578           This fixes bug 81687.
10579
10580 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
10581
10582         * OSFeature.cs: Enable IsPresent.
10583
10584 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10585
10586         * Control.cs: Don't do anything in WmShowWindow if the control has been
10587           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
10588           control is created, put on a form, the control is disposed (the
10589           form is never shown), and then we get a MapNotify, triggering a
10590           WM_SHOWWINDOW.
10591         * Form.cs: Exclude the current form when sending Deactivate to all
10592           MdiChildren.
10593         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
10594           there was a race condition because assigning the handle raises
10595           events, we can get more messages, therefore trying to assign the
10596           handle again, which would fail if any of those event handlers
10597           closed/disposed the control.
10598
10599 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10600
10601         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
10602
10603 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
10604
10605         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
10606         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
10607
10608 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10609
10610         * DateTimePicker.cs: If there's no part format specifier, return an
10611           empty string.
10612
10613 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
10614
10615         * FlatButtonAppearance.cs: Throw NotSupportedException for a
10616         Transparent BorderColor.
10617
10618 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10619
10620         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
10621           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
10622           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
10623           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
10624           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
10625           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
10626           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
10627           Remove warnings.
10628         * X11Structs.cs: Remove warnings, add ToString implementations.
10629
10630 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10631
10632         * XplatUIX11.cs: Translate min/max size according to the actual min/max
10633           size, and not the current size. Fixes #81798.
10634
10635 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10636
10637         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
10638           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
10639           to the control yet).
10640
10641 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10642
10643         * PropertyGridTextBox.cs: Add a method that sends any forwarded
10644           mousedowns to the contained textbox.
10645         * X11Structs.cs: More ToString implementation.
10646         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
10647           #81791.
10648
10649 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10650
10651         * PropertyGridView.cs: Add a null-check, fixes a few tests.
10652
10653 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
10654
10655         * TableLayoutPanelCellPosition.cs: TypeConverter.
10656
10657 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10658
10659         [ Fixes #79761]
10660         
10661         * PropertyGridTextBox.cs: Propagate any color changes to all contained
10662           controls.
10663         * PropertyGridView.cs: A few color fixes.
10664
10665 2007-07-10  Jackson Harper  <jackson@ximian.com>
10666
10667         * TextControl.cs: Remove some old unused text formatting stuff.
10668
10669 2007-07-10  Jackson Harper  <jackson@ximian.com>
10670
10671         * TreeView.cs: Update full row select invalidation to match the
10672         newer DrawSelection... method.
10673         - Make sure to invalidate the entire width when selecting a new
10674         node, if we have full row selection enabled.
10675
10676 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10677
10678         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
10679           display of properties again.
10680
10681 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
10682
10683         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
10684         to existing collections.
10685
10686 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10687
10688         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
10689         that changed between 1.1 and 2.0.
10690
10691 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10692
10693         * PowerStatus.cs: Added.  This is just a data class, it is filled
10694         in by SystemInformation.
10695
10696 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10697
10698         * Message.cs: Add op_Equality and op_Inequality.
10699
10700 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10701
10702         * MenuStrip.cs: Finish corcompare work.
10703
10704 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10705
10706         * LinkArea.cs: Add op_Equality and op_Inequality.
10707
10708 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10709
10710         * Application.cs: Add MessageLoopCallback delegate.
10711
10712 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10713
10714         * ListBox.cs: First set of 2.0 stuffs.
10715
10716 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10717
10718         * Control.cs: Make an internal Height property we can override
10719         without messing up the public API.
10720         * ListBox.cs: Override HeightInternal to always return the size
10721         the user set.  [Fixes bug #80466]
10722
10723 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
10724
10725         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
10726         paint cell borders if we haven't calculated where they go yet.
10727         [Fixes bugs #82040 and #82041]
10728
10729 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10730
10731         * ListView.cs: In Details view, set the location of item_control
10732         in the (0,0) position (and the header_control is thus on the
10733         item_control). This way the Bounds of the Items are relative to the
10734         ListView control (before this, they had a Bounds value without the
10735         header_control offset, which wasn't matching .Net). Fixes #82004.
10736
10737 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10738
10739         * ListControl.cs: When DataSource is set to null, pass an empty
10740         array of object to SetItemsCore. This is done to clean the items
10741         in the ListContol children. Fixes #81788.
10742
10743 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10744
10745         * ListControl.cs: Add 2.0 stuffs.
10746
10747 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10748
10749         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
10750         Refresh is overkill for just about every repaint request.
10751
10752 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10753
10754         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
10755         so remove my custom Get method and fix the property getter.
10756
10757 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10758
10759         * Label.cs: DefaultMargin for 2.0.
10760
10761 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10762
10763         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
10764         reported issue where other controls with mnemonics would steal strokes
10765         from a selected ComboBox.
10766
10767 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10768
10769         * ScrollOrientation.cs: Make internal for 1.1.
10770         * ScrollEventArgs.cs: Add 2.0 stuffs.
10771
10772 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
10773
10774         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10775         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
10776         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
10777
10778 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10779
10780         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
10781
10782 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10783
10784         * ListView.cs: Implement the so-incredibly broken 2.0 
10785         VirtualItemsSelectionRangeChanged event.
10786
10787 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10788
10789         * ListView.cs: When enter is pressed and selection is non empty,
10790         an OnItemActivate event must be fired.
10791
10792 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10793
10794         * ListView.cs: Store the FocusedItem information as an
10795         int instead of a ListViewItem (needed by VirtualMode).
10796         Update the calls to SetFocusedItem to pass an index instead of
10797         an item.
10798         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
10799         the Focused state from the owner ListView. 
10800
10801 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10802
10803         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
10804         property. Also, invalidate previous focused item in the mentioned
10805         property (match .Net).
10806
10807 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10808
10809         * ListView.cs: Implement 2.0 FocusedItem property setter.
10810
10811 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10812
10813         * ListView.cs: Implement 2.0 TopItem property setter.
10814
10815 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
10816
10817         * StatusStrip.cs: The default renderer is System.
10818         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
10819         if the user specifies it.
10820         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
10821         if we are ManagerRenderMode.
10822         * ToolStripMenuItem.cs: Calculate our text color better.
10823         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
10824         from Professional to the base class based off working with the System renderer.
10825         * ToolStripSystemRenderer.cs: Added.
10826
10827 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10828
10829         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
10830
10831 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
10832
10833         * ToolTip.cs: Implement 2.0 Tag property.
10834
10835 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10836
10837         * ListView.cs: Implement 2.0 HitTest methods.
10838
10839 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10840
10841         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
10842         item is under the pointer or not (sugar). Also remove the TODO
10843         regarding to the cursor changes in OneClick activation.
10844         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
10845         the subitems use the parent's HotFont if UseItemStyleForSubItems is
10846         true; otherwise don't show the underline style.
10847
10848 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10849
10850         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
10851         the code to retrieve the item at position only one time. Also
10852         change cursor when Activation is ItemActivation.OneClick as well
10853         as invalidate the item if HotTracking is true (to show/hide the
10854         underline style). Add an internal HotItemIndex property to retrieve
10855         the current hot item's index.
10856         * ListViewItem.cs: Add an internal HotFont property to cache the
10857         font used when HotTracking is true and the pointer moves within the
10858         item's borders.
10859         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
10860         HotFont depending on the hot state of the item.
10861
10862 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10863
10864         * ListView.cs: Implement 2.0 HotTracking property.
10865
10866 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
10867
10868         * ToolStripControlHost.cs: If our hosted control never got created,
10869         don't try to dispose it.  [Fixes bug #81909]
10870
10871 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
10872
10873         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
10874
10875 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
10876
10877         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
10878
10879 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10880
10881         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
10882         Details view.
10883         * DrawListViewColumnHeaderEventArgs.cs:
10884         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
10885         using the DrawText () methods.
10886
10887 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
10888
10889         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
10890         background which got erased in my changes yesterday.
10891
10892 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10893
10894         * ListViewItem.cs: Actually set bounds for subitems in Details view
10895         (2.0 feature).
10896         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
10897         can invoke from the owner draw routines if we need it. Also, add
10898         support for Owner draw in Details view.
10899
10900 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
10901
10902         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
10903         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
10904         ShowImageMargin setting, properly align text in a ToolStripLabel
10905         hosted on a ToolStripDropDown.
10906
10907 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
10908
10909         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
10910         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
10911
10912 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10913
10914         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
10915
10916 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
10917
10918         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
10919         location to match ToolStripMenuItems.
10920
10921 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10922
10923         * DrawListViewColumnHeaderEventArgs.cs:
10924         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
10925         column headers in ListView. 
10926
10927 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
10928
10929         * UserControl.cs: Implement AutoSize.
10930
10931 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10932
10933         * DrawListViewItemEventArgs.cs:
10934         * ListView.cs:
10935         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
10936         ListView.
10937
10938 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
10939
10940         * ToolStripDropDownItemAccessibleObject.cs: Added.
10941         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
10942         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10943         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
10944         ToolStripTextBox.cs: corcompare work.
10945
10946 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
10947
10948         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
10949         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
10950         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
10951                 corcompare.
10952
10953 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
10954
10955         * OSFeature.cs: Add IsPresent.
10956         * PrintPreviewControl.cs: Add RightToLeft.
10957         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
10958         * SplitterPanel.cs: Add AutoSizeMode.
10959
10960 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10961
10962         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
10963         * MdiClient.cs: Add 2.0 ScaleControl.
10964         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
10965         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
10966
10967 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10968
10969         * Form.cs: Implement some scaling methods, stub some RTL methods,
10970         corcompare work.
10971
10972 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10973
10974         * Control.cs: corcompare work.
10975         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
10976
10977 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10978
10979         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
10980         ControlPaint 2.0 stuffs.
10981
10982 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10983
10984         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
10985
10986 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10987
10988         * UpDownBase.cs: Add 2.0 stuffs.
10989
10990 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10991
10992         * NumericUpDown.cs: Add 2.0 stuffs.
10993
10994 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10995
10996         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
10997
10998 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10999
11000         * ErrorProvider.cs: Implement 2.0 stuffs.
11001
11002 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11003
11004         * DomainUpDown.cs: Implement 2.0 stuffs.
11005
11006 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11007
11008         * CheckedListBox.cs: Fix RefreshItems signature.
11009
11010 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11011
11012         * PictureBox.cs: Implement 2.0 stuffs.
11013
11014 2007-06-12  Andreia Gaita  <avidigal@novell.com>
11015         
11016         * TabControl.cs: Check if there are tabpages before checking
11017         the selected index - fix #81802 (font changes raise a ResizeTabs
11018         call on controls.add, which blew up nicely with no tabpages)
11019
11020 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11021
11022         * ListView.cs:
11023         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
11024
11025 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11026
11027         * ListView.cs:
11028         * ListViewItem.cs: In VirtualMode the selection information
11029         resides in the ListView, rather than in the Items. Also, throw
11030         InvalidOperationExceptions when VirtualMode is being used and
11031         CheckedItemCollection is accessed.
11032
11033 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11034
11035         * ComboBox.cs: Add ScaleControl.
11036
11037 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11038
11039         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
11040
11041 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11042
11043         * GroupBox.cs: Add 2.0 stuffs.
11044
11045 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11046
11047         * Panel.cs: Add autosize properties/event.
11048
11049 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
11050
11051         * Control.cs:
11052         - When we remove a control, remove it from the collection before performing the layout.
11053         - Setup an internal property for explicit_bounds.
11054         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
11055         - Perform a layout when we set a new AutoSizeMode.
11056
11057 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
11058
11059         * ScrollableControl.cs: Add 2.0 stuffs.
11060
11061 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11062
11063         * ScrollBar.cs: Add 2.0 stuffs.
11064
11065 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11066
11067         * Splitter.cs: Add 2.0 stuffs.
11068
11069 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11070
11071         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
11072         to have BindingContext simply use base implementation.
11073
11074 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11075
11076         * ColumnHeader.cs: corcompare fix.
11077
11078 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11079
11080         * Button.cs: corcompare fixes.
11081         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
11082
11083 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11084
11085         * Button.cs: Override GetPreferredSizeCore.
11086         * ButtonBase.cs: PerformLayout after changing properties that can affect
11087         AutoSize.  Simplify some mouse/keyboard code.
11088         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
11089         * MouseEventArgs.cs: Make Location internal for 1.1.
11090         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
11091         * Theme.cs: Add CalculateButtonAutoSize.
11092         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
11093
11094 2007-06-05  Miguel de Icaza  <miguel@novell.com>
11095
11096         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
11097
11098 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11099
11100         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
11101         since we can get different item instances every time we retrieve it.
11102
11103 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11104
11105         * ListView.cs: Work around for #81602, since an unkown an pretty
11106         infrequent condition appears only in some systems (old linux boxes, it
11107         seems).
11108
11109 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11110
11111         * Button.cs: Completely reformat and a little refactor to bring
11112         this closer to Mono circa 2007.
11113
11114 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11115
11116         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
11117         to be ButtonBase.Invalidate.
11118
11119 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11120
11121         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
11122
11123 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11124
11125         * ButtonBase.cs: Completely reformat and a little refactor to bring
11126         this closer to Mono circa 2007.
11127
11128 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
11129
11130         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
11131         values for autosize. Fixes #80137.
11132
11133 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11134
11135         * Control.cs: Don't perform layout when AutoSize changes.
11136         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
11137         directly when autosizing, use SetBounds with BoundsSpecified.None.
11138         Fixes unit tests my last commit broke.
11139
11140 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11141
11142         * Control.cs: Perform layout when AutoSize changes.
11143         * Form.cs: Implement AutoSizing.
11144
11145 2007-06-01  Chris Toshok  <toshok@ximian.com>
11146
11147         * DataGrid.cs: remove the XXX'ed check at the top of
11148         ProcessGridKey.  fixes #80464.
11149
11150 2007-06-01  Chris Toshok  <toshok@ximian.com>
11151
11152         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
11153         adding idempotent (add/remove in Edit()), and also make sure we
11154         don't add it until after we set the text, so it's not tripped in
11155         Edit().  Fixes unit test regression.
11156
11157 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11158
11159         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
11160         change is user explicit, not when the layout engine moves stuff.  Fixes
11161         anchoring to bottom and right.  [Fixes bug #81790]
11162
11163 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11164
11165         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
11166
11167 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11168
11169         * ContainerControl.cs: 
11170         Fire enter event for common ancestor if it is not a ContainerControl.
11171         Send focus to the active_control and not the 'value', the active 
11172         control might have been changed in one of the events fired.     
11173         Definitely fixes #80159.
11174
11175 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11176
11177         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
11178
11179 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11180
11181         * PropertyGrid.cs: Anchor the help description to the bottom of the
11182           help panel and refactor SelectGridItem into a
11183           SelectGridItemInternal that can be set to null (and update it to
11184           clear the help texts when it is set to null). Set root item to null
11185           when there's no SelectedObject. Fixes #80438.
11186         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
11187           when we're recalculating after a resize (only).
11188
11189 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11190
11191         * ListView.cs: Implement 2.0 RedrawItems method.
11192
11193 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11194
11195         * ListControl.cs: Disconnect PositionChanged and ItemChanged
11196         handlers from previous data manager when DataSource is set to
11197         null. Fixes #81771.
11198
11199 2007-05-31  Jackson Harper  <jackson@ximian.com>
11200
11201         * TextBoxBase.cs: These seem to be the correct values.
11202
11203 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
11204
11205         * FileDialog.cs: When close dialog with ok set filterindex using combobox
11206         value. Fixes #81784.
11207
11208 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
11209
11210         * Control.cs: Implement 2.0 scaling methods.
11211
11212 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11213
11214         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
11215           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
11216           corcompare issues.
11217
11218 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11219
11220         * ProgressBar.cs: Implemented missing 2.0 members.
11221
11222 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11223
11224         * Control.cs: Corcompare issues.
11225         * MessageBox.cs: Implemented missing 2.0 functions.
11226
11227 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11228
11229         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
11230           Implemented more 2.0 members.
11231
11232 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11233
11234         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
11235           null (strange, but it seems to happen when running unit tests).
11236
11237 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11238
11239         * ContainerControl.cs: Set active_control even earlier, before 
11240         firing any events, and undo it if validation returns false.
11241
11242 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11243
11244         * ContainerControl.cs: Raise Validation and Enter/Leave events
11245         even if there is no Form and set active_control earlier, just
11246         before firing Enter events (toshok's patches). Fixes #80647.
11247
11248 2007-05-30  Jackson Harper  <jackson@ximian.com>
11249
11250         * TextControl.cs: Redid the pageup/pagedown a little to simplify
11251         things and fix bug #81311.
11252
11253 2007-05-30  Jackson Harper  <jackson@ximian.com>
11254
11255         * X11Dnd.cs: Now that we have our own event loop, we need to
11256         cancel when we get a mouseup but it won't be accepted.
11257
11258 2007-05-30  Chris Toshok  <toshok@ximian.com>
11259
11260         * DataGrid.cs (set_CurrentCell): guard against negative
11261         column/row.
11262
11263         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
11264         array index syntax instead of looping over the property names.
11265
11266         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
11267         and set IsInEditOrNavigateMode to false there.
11268
11269 2007-05-30  Jackson Harper  <jackson@ximian.com>
11270
11271         * TreeView.cs: Make sure we don't get a bad visible order when
11272         setting to the top node.  Fixes some misc crashing in
11273         ControlInspector.
11274
11275 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11276
11277         * UserControl.cs: Add 2.0 AutoSizeMode
11278
11279 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11280
11281         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
11282
11283 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11284
11285         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
11286         lines. Fixes #80285. 
11287
11288 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11289
11290         * DataGridColumnStyle.cs: Add char trimming column header text format. 
11291
11292 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11293
11294         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
11295         Fixes #80147.
11296
11297 2007-05-29  Jackson Harper  <jackson@ximian.com>
11298
11299         * TreeNode.cs: Fix off by one on calculating whether or not a node
11300         is visible.
11301
11302 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
11303
11304         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
11305         * ScrollableControl.cs: Force an UpdateDistances when we move the
11306         scrollbars.
11307         [Fixes bug #80605]
11308
11309 2007-05-29  Andreia Gaita  <avidigal@novell.com>
11310
11311         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
11312         update the page setup screen.
11313
11314 2007-05-29  Andreia Gaita  <avidigal@novell.com>
11315
11316         * PageSetupDialog.cs: Fix landscape mode.
11317
11318 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11319
11320         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
11321         IconSizeHorizontalSpacing.
11322
11323 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11324
11325         * ListView.cs: The declaration of prev_tooltip_item should be inside
11326         a NET_2_0 conditional (avoid a warning).
11327
11328 2007-05-28  Andreia Gaita  <avidigal@novell.com>
11329
11330         * PageSetupDialog.cs: Implement PrintPreview control to display
11331         the preview thumbnail. Change unit conversion to use 
11332         PrinterUnitConvert methods.
11333         
11334         Note: there is a huge bug in ms.net where the default margins are 
11335         interpreted as centimeters (?), when in fact they are set in inches. When 
11336         loading the page setup dialog initially (ms.net), the default margins 
11337         are set to 1 inch, and the dialog shows them with value 10, when in fact 
11338         it should be 25 (properly converted). Our dialog doesn't have this bug.
11339         
11340         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
11341         RectangleF.
11342         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
11343
11344 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11345
11346         * ListView.cs:
11347         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
11348         items.
11349
11350 2007-05-28  Andreia Gaita  <avidigal@novell.com>
11351
11352         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
11353         an IntPtr on csc (it builds fine on mcs, could it be a compiler
11354         bug?), convert the ptr to Int32 first.
11355
11356 2007-05-28  Jackson Harper  <jackson@ximian.com>
11357
11358         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
11359         recieved, we will exit the dnd tracking loop.
11360
11361 2007-05-28  Jackson Harper  <jackson@ximian.com>
11362
11363         * X11Dnd.cs: Keep tracking until the xdnd finished event is
11364         recieved. TODO: I should probably stick a timer on the dropped
11365         event, and finish the drag if the XDND Finished event never shows
11366         (because some apps don't seem to send it).
11367
11368 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
11369
11370         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
11371         #81733.
11372
11373 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11374
11375         * MonthCalendar.cs: Only mark the keypresses we actually handle as
11376           handled.
11377
11378 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11379
11380         * MonthCalendar.cs: Set the size after initializing all the relevant
11381           variables. Fixes #81742.
11382
11383 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11384
11385         * KeyEventArgs.cs: Fix typo.
11386
11387 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
11388
11389         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
11390         to match MS. Fixed MinDate to only accept value less than or equal
11391         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
11392         Removed TODO's that are now verified by unit tests.
11393
11394 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
11395
11396         * TreeNodeCollection.cs: Minor corrections to exceptions to match
11397         MS.
11398
11399 2007-05-25  Jackson Harper  <jackson@ximian.com>
11400
11401         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
11402         it's own message loop.
11403         * XplatUIX11.cs: Remove some of the dnd hooks
11404
11405 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
11406
11407         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
11408         instead of MinimizedWindowSize.
11409
11410 2007-05-25  Jackson Harper  <jackson@ximian.com>
11411
11412         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
11413
11414 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11415
11416         * KeyEventArgs.cs: Added SuppressKeyPress.
11417         * Control.cs: Added support for SuppressKeyPress.
11418
11419 2007-05-24  Andreia Gaita  <avidigal@novell.com>
11420
11421         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
11422         problems with PieChart. suppress_validation should not be a counter,
11423         if there are several BeginInit calls, the first EndInit will 
11424         activate validation. Fix exceptions thrown by set_Value.
11425         * UpDownBase.cs: ValidateText only if it's the user editing it.
11426
11427 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11428
11429         * ListControl.cs: FilterItemOnProperty should return the filtered
11430         item proeprty even if DataSource is null. The same applies for
11431         GetItemText. Fixes #80427.
11432
11433 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11434
11435         * Control.cs: If a control doesn't have a parent when it's Dock is
11436         set, but it has children, it needs to do a layout.  Fixes some nested
11437         controls issues.  [Fixes bug #81199]
11438
11439 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11440
11441         * ComboBox.cs: If there are few items in the drop down list, make it
11442           the exact size the items need, no bigger. Fixes #81612.
11443
11444 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11445
11446         * Application.cs: When we have captured the keyboard for a menu,
11447         check for mouse down events in case we need to close the menu.
11448         * Control.cs, Form.cs: Remove mouse down checks for menus.
11449
11450 2007-05-24  Jackson Harper  <jackson@ximian.com>
11451
11452         * TextControl.cs: Handle tabs in non multiline mode a little
11453         differently.
11454
11455 2007-05-24  Jackson Harper  <jackson@ximian.com>
11456
11457         * TextControl.cs: We need to manually break apart tabbed text and
11458         move the tabs, since the system.drawing tabbing mechanism relies
11459         on tab stops.
11460         * TextBoxBase.cs: Move the caret properly when the user enters a
11461         tab.
11462
11463 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11464
11465         * ContainerControl.cs: Don't check CanSelect before calling
11466         ProcessMnemonic.
11467         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
11468         release a KeyboardActive on click if it's not ours.
11469
11470 2007-05-23  Andreia Gaita  <avidigal@novell.com>
11471
11472         * ColumnHeader.cs: Add TypeConverter
11473
11474 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11475
11476         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
11477
11478 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11479
11480         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
11481
11482 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11483
11484         * LinkLabel.cs: Implement public Padding property.
11485
11486 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11487
11488         * LinkLabel.cs: Implement public FlatStyle.
11489
11490 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
11491
11492         * Control.cs: Apply patch from George to call parent.PerformLayout
11493         when Visible is changed.  [Fixes bugs #81118, 81718]
11494
11495 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11496
11497         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
11498
11499 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11500
11501         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
11502
11503 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11504
11505         * ContextMenu.cs: Implement Collapse.
11506
11507 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
11508
11509         * ToolBarButton.cs: Implement Name.
11510
11511 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
11512
11513         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
11514         use current_item, it prevents some NRE. Fixes #81675.  
11515
11516 2007-05-22  Andreia Gaita  <avidigal@novell.com>
11517
11518         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
11519         without updating the text.
11520
11521 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
11522
11523         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
11524         without calling DeleteObject.  [Should fix bug #81709]
11525
11526 2007-05-22  Jackson Harper  <jackson@ximian.com>
11527
11528         * RichTextBox.cs: Set the line endings correctly, when flushing
11529         RTF text.
11530
11531 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
11532
11533         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
11534          {Width=0,Height=0}.
11535
11536 2007-05-22  Jackson Harper  <jackson@ximian.com>
11537
11538         * TreeView.cs: Setting top with a null node should set to the very
11539         top.
11540
11541 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11542
11543         * Form.cs: ShowDialog: destroy the handle when message loop is
11544           finished, matches MS behaviour. Refactor parts of WmClose into
11545           RaiseCloseEvents, that only raises events if they haven't already
11546           been raised. Fixes #81688 and #81521.
11547         * Application.cs: Don't call close on the form when exiting a modal
11548           loop, it will raise all the (Form)Closed/Closing events again if
11549           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
11550           which doesn'r raise any events it they have been raised before.
11551
11552 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
11553
11554         * Control.cs: Add OnPrint.
11555         * ToolStrip.cs: Add GetChildAtPoint.
11556         * ToolStripContainer.cs: Add OnRightToLeftChanged.
11557         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
11558
11559 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
11560
11561         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
11562
11563 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11564
11565         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
11566           isn't visible anymore. Fixes #81651.
11567
11568 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11569
11570         * Control.cs: WmShowWindow: Update children's z-order after setting
11571           their parent. SetParent may show the window, thereby corrupting
11572           z-order, since the window will be shown on top.
11573         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
11574           multiple (and redundant) WM_SHOWWINDOW messages.
11575         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
11576           event has already been raised.
11577         * Form.cs: Change is_changing_visible_state to a counter, since
11578           SetVisibleCore can be called recursively. CreateHandle: when
11579           creating mdi children, send (De)Activated events.
11580         * MdiClient.cs: Update use of is_changing_visible_state.
11581         * Application.cs: OnThreadException: Surround exception handling with
11582           try/finally to ensure we always reset the error-handling state
11583           before leaving.
11584
11585 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11586
11587         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
11588           (#81704).
11589
11590 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11591
11592         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
11593         SmallIcon views, now that we have a standarized horizontal spacing.
11594
11595         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
11596         4, just like the other views (Match .Net).
11597
11598 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
11599
11600         * Control.cs: Delay calculating anchor distances until we actually layout.
11601         Always query the WM for the actual size and location it put us at instead of
11602         only when we send negative values.
11603         [Fixes bugs #81694, 81695]
11604
11605 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11606
11607         * Application.cs: Avoid a possible stack overflow when trying to exit
11608           the application.
11609
11610 2007-05-19  Marek Safar  <marek.safar@gmail.com>
11611
11612         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
11613         enum value.
11614
11615 2007-05-19  Andreia Gaita  <avidigal@novell.com>
11616
11617         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
11618         * NumericUpDownAcceleration.cs, 
11619           NumericUpDownAccelerationCollection.cs: Added 2.0
11620           implementation.
11621
11622 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
11623
11624         * RichTextBox.cs: Recalculate the document after the ScrollBars
11625         property is changed. Fixes bug #81681.
11626
11627 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
11628
11629         * DataObject.cs: Implement 2.0 methods.
11630
11631 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11632
11633         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
11634         in the center of the checkbox, not in the left-top corner. 
11635         Fixes #80037.
11636
11637 2007-05-18  Jackson Harper  <jackson@ximian.com>
11638
11639         * RichTextBox.cs: Recalculate the document after the scrollbars
11640         property is changed.
11641         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
11642         81486.
11643
11644 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11645
11646         * CreateParams.cs: Make HasWindowManager marginally faster.
11647         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
11648           into Hwnd so that other drivers can use it as well.
11649         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
11650           the default location from Hwnd. Fixes MDI client windows always
11651           showing up at (0,0) in Windows (Win32 won't set the default
11652           location since the window styles aren't correct).
11653
11654 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
11655
11656         * TreeView.cs: Modified DoubleBuffered to just use the base
11657         implementation.
11658
11659 2007-05-18  Jackson Harper  <jackson@ximian.com>
11660
11661         * TreeView.cs: Set the top node to the last child node when
11662         expanding all
11663         - When we get focus, if there is no selected node, use the top
11664         node.
11665
11666 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
11667
11668         * KeysConverter.cs: Add CanConvertTo.
11669         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
11670         * LinkConverter.cs: Added.
11671
11672 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11673
11674         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
11675         it prevents error when file dont have write access. Fixes #81669 and #81667.  
11676
11677 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11678
11679         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
11680         button text. Fixes #79640.  
11681
11682 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11683
11684         * Control.cs: According to MSDN controls created in the designer theres 
11685         keyboard accelerators visible by default. So included check for design
11686         in ShowKeyboardCuesInternal.  
11687
11688 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11689
11690         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
11691         text. Fixes #81621.  
11692
11693 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11694
11695         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
11696         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
11697
11698 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
11699
11700         * Control.cs: Finish implementation of UI State using WmChangeUIState
11701         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
11702         in some controls to check for show_keyboard_cues to draw accell keys "_".  
11703
11704 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11705
11706         * ListBox.cs: When calculating the horizontal scrollbar
11707         in single column mode, don't use values less than 0 for
11708         Maximum. Fixes #81474.
11709
11710 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11711
11712         * ListBox.cs: Throw the some missing exceptions in
11713         ListBox.ObjectCollection methods.
11714
11715 2007-05-17  Jackson Harper  <jackson@ximian.com>
11716
11717         * TextBoxBase.cs: Recalculate the document when the word wrap
11718         value has changed. This fixes 81488.
11719
11720 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
11721
11722         * Clipboard.cs: Implement missing GetText overload.
11723
11724 2007-05-17  Chris Toshok  <toshok@ximian.com>
11725
11726         * Control.cs (CheckDataBindings): remove the binding_context arg
11727         to binding.Check.
11728
11729         * CurrencyManager.cs (OnItemChanged): fix this now that
11730         BindingManagerBase is fixed. also remove the comment telling where
11731         the fix should go.  We set transfering_data to true/false around
11732         the call to PushData to keep UpdateIsBinding from being called.
11733         (ListChangedHandler): remove the extra OnMetaDataChanged call for
11734         PropertyDescriptorAdded in the 1.1 case.  The extra call is
11735         actually generated by System.Data generating 2 metadata changed
11736         events of its own per column add.  The fix should go there.  Add a
11737         comment to that affect in our test's Assert.Ignore.
11738
11739         * BindingManagerBase.cs: Rework PullData and PushData slightly.
11740         we keep a boolean flag (transfering_data) that keeps us from
11741         calling UpdateIsBinding multiple times if we re-enter either of
11742         them.
11743
11744         * ControlBindingsCollection.cs (AddCore): remove the
11745         binding_context arg to binding.Check.
11746
11747         * Binding.cs (IsBinding): don't check if we're binding here, just
11748         return our cached value.  we update it in UpdateIsBinding.
11749         (Check): don't take the binding_context arg, we'll just use our
11750         control's.  Also, for some reason MS doesn't use the data member
11751         field when getting the bindingmanager for this binding.  it just
11752         uses the datasource.  Make this method callable multiple times,
11753         and only do the is_null_desc stuff if manager.Position != -1 (so
11754         we don't get an exception accessing manager.Current).
11755         (UpdateIsBinding): move the code from IsBinding here.
11756         (PositionChangedHandler): call Check here to we can initialize
11757         things that require a non- -1 position.
11758
11759 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
11760
11761         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
11762         control.
11763
11764 2007-05-17  Andreia Gaita  <avidigal@novell.com>
11765
11766         * TabControl.cs: Add 2.0 methods and events, including
11767         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
11768         * TabPage.cs: Add 2.0 methods
11769
11770 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
11771
11772         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
11773         keyboard_cues is properly handled by message method.  
11774
11775 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
11776
11777         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
11778
11779 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
11780
11781         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
11782
11783 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
11784
11785         * Control.cs: 
11786         - WmUpdateUIState added to handle state changes, it make call to
11787         OnChangeUICues event.
11788         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
11789         SystemInformation.
11790
11791 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
11792
11793         * ImageKeyConverter.cs: Added.
11794         * TreeViewImageKeyConverter.cs: Added.
11795
11796 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11797         
11798         * ToolTips.cs: Update Text if SetToolTip is called for a control
11799         already showing the tooltip, as well as restarting its timer; show
11800         tooltip if we are inside the control bounds by the time of calling
11801         SetToolTip. Inside ShowTooltip remove the check to not show the 
11802         tooltip again for the active control (it is allowed by .Net to 
11803         show the tooltip on the same control multiple times).
11804
11805 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11806
11807         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11808
11809 2007-05-16  Andreia Gaita <avidigal@novell.com> 
11810
11811         * ContainerControl.cs: only process tab key if there are no 
11812         modifier keys present, otherwise the control does the 
11813         tab processing, if it needs to. Fixes #81622
11814         * TabControl.cs: Fixes calculation for which tab to select on
11815         shift+ctrl+tab.
11816
11817 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11818
11819         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11820
11821 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
11822
11823         * Control.cs: Make IsInputCharInternal to allow controls to
11824         override it and still match MS API.
11825         * TextBoxBase.cs: Override IsInputCharInternal and always
11826         return true.
11827         [Fixes bug #81616]
11828
11829 2007-05-15  Jackson Harper  <jackson@ximian.com>
11830
11831         * TextBox.cs: Disable some of the menu options when using a
11832         readonly textbox.
11833
11834 2007-05-15  Jackson Harper  <jackson@ximian.com>
11835
11836         * TextBox.cs:
11837         * TextBoxBase.cs:
11838         * RichTextBox.cs: Some new 2.0 methods
11839
11840 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
11841
11842         * FileDialog.cs: On 1.0 profile, do not support multidotted 
11843         extensions.
11844
11845 2007-05-14  Jackson Harper  <jackson@ximian.com>
11846
11847         * TextBoxBase.cs: Implement some of the new 2.0 methods.
11848         * RichTextBox.cs: We need to override these methods on 2.0.
11849         * MaskedTextBox.cs: These are implemented now
11850         * TextControl.cs: This was off by one.
11851
11852 2007-05-14  Jackson Harper  <jackson@ximian.com>
11853
11854         * TextControl.cs: Because the line endings are including in the
11855         text, we don't need to add them in anymore.
11856
11857 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11858
11859         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
11860         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
11861
11862 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11863
11864         * ToolBar.cs: Adjust size to default size when button theres no text and
11865         image, it fixes remaining issues from #81524.
11866
11867 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11868
11869         * ToolBar.cs: 
11870         - When not flat call redraw to recalculate sizes on creare handle to match
11871         win32 behavior.
11872         - Revert 77220 because it causes some regressions in toobar
11873         button.
11874
11875 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11876
11877         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
11878           now actually enters a usable state.
11879
11880 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11881
11882         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
11883         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
11884         3 buttons.
11885
11886 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11887
11888         * ToolBar.cs: Save default_size on create handle to use later for buttons
11889         without text, needed to mimic win32 behavior.
11890
11891 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11892
11893         * ToolBar.cs: Fix button layour to best fit width or height according to
11894         vertical or not. Fixes #81524.
11895
11896 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
11897
11898         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
11899         toolbar size info because different styles theres different sizes.
11900         Fixes #81522.
11901
11902 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11903
11904         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
11905         if we are using checkboxes, checked is true, and we have less
11906         than two images in StateImageList; for the 1.1 in the same scenario
11907         draw the first image if we have at least one image in StateImageList.
11908         Fixes part of #81191.
11909
11910 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
11911
11912         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
11913         the owner's Items collection on merge.
11914
11915 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
11916
11917         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
11918         * ToolStripItemCollection.cs: Lots of fixes to when events get called
11919         and parent/owner gets changed based on gert's unit tests.
11920
11921 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11922
11923         * MaskedTextBox.cs: Started implementing parts of it.
11924
11925 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11926
11927         * ListView.cs: When clicking the checkbox on the items
11928         take into account the double clicks even if we have only
11929         one image in StateImageList (only for 1.0/1.1). Also 
11930         generate an extra change of checked state when we receive
11931         the second click on checkbox (match .Net behaviour). 
11932         Fixes part of #81191.
11933
11934 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
11935
11936         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
11937
11938 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
11939
11940         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
11941         even if OnLoad is overriden and base.OnLoad is not called.
11942         [Fixes bug #81582]
11943
11944 2007-05-10  Andreia Gaita  <avidigal@novell.com>
11945
11946         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
11947         shame. (I blame my ever-persisting and annoying cold)
11948
11949 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11950
11951         * ListView.cs: Don't eat navigation keys.  Let them flow through to
11952         KeyDown/KeyPress routines.  [Fixes bug #81569]
11953
11954 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11955
11956         * ListView.cs: When handling keys for selecting the item based off
11957         keyboard input, do not consider keys pressed with Alt or Control.  Also,
11958         correctly handle keys when the Shift key is down. [Fixes bug #81578]
11959
11960 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11961
11962         * Control.cs: When using UseWaitCursor, we have to store the requested
11963         Cursor to use when UseWaitCursor is turned off.
11964
11965 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11966
11967         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
11968         to false.
11969         * Application.cs: Use PreProcessControlMessage instead of
11970         PreProcessMessage.
11971         * PreProcessControlMessage.cs: Make internal for 1.1.
11972
11973 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11974
11975         * Control.cs: Add InternalContains focus property, which hast the same
11976         functionality of ContainsFocus, but also including implicit controls.
11977         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
11978         since we need to know if the focus is contained in our implicit
11979         ItemControl when calculating Layout. Fixes part of #80888.
11980
11981 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
11982
11983         * ToolTip.cs: Remove center form string alignment as it must be align to
11984         left.
11985
11986 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
11987
11988         * ToolStripItemCollection.cs: Set the new item's parent and owner
11989         in Insert like we do in Add.  [Fixes bug #81568]
11990
11991 2007-05-08  Jackson Harper  <jackson@ximian.com>
11992
11993         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
11994         - Off by one error in SetTop
11995         - Disable DoubeBuffering
11996         
11997 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11998
11999         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
12000           control as much as necessary in order to make it entirely visible,
12001           instead of centering the control in the container (matches MS
12002           behaviour). CalculateCanvasSize: we need to take the current scroll
12003           position into account when calculating the maximum canvas,
12004           otherwise the following scenario will fail: resize so that the
12005           scrollbars appear, use the scrollbars to scroll, resize again
12006           smaller, and now the canvas size is too small. Recalculate: when
12007           showing scrollbars make sure they start off at 0, and try to scroll
12008           the active control into view. Fixes #79540. HandleScrollBar: don't
12009           scroll anywhere if the scrollbar isn't visible.
12010
12011 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12012
12013         * ListView.cs: When focus changed, call Layout/Invalidate
12014         in the focused item to update the selected state (should show
12015         entire label when ListView is focused, and a part of it if is not).
12016         * ListViewItem.cs: When doing layout for LargeIcon, take into account
12017         for displaying the entire label not only the Focused state of the
12018         item, but also the Focused state of the ListView (match .Net
12019         behaviour).
12020
12021 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12022
12023         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
12024         Implement UseWaitCursor. 
12025
12026 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12027         Applying contributed patch from Sergey Volk.
12028
12029         * Clipboard.cs: Implement SetDataObject retry logic and new overload
12030         of SetDataObject.
12031         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
12032
12033 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12034
12035         * Control.cs: Implement DrawToBitmap.
12036
12037 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12038         Applying contributed patch from Stefan Noack.
12039         
12040         * Control.cs: Add [Get|Set]AutoSizeMode.
12041
12042 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12043
12044         * MdiClient.cs: Unmerge menus when the last child is closed.
12045
12046 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12047
12048         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
12049         * ToolStripManager.cs: Call Merge on DropDowns.
12050         [Fixes bug #81477]
12051
12052 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12053
12054         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
12055           uints.
12056         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
12057           visibility. We can't create forms visible, since we have to set the
12058           owner before making the form visible (otherwise Win32 will do
12059           strange things with task bar icons). The problem is that we set the
12060           internal is_visible to true before creating the control, so
12061           is_changing_visible_state is the only way of determining if we're
12062           in the process of creating the form due to setting Visible=true -
12063           this works because SetVisibleCore explicitly makes the form
12064           visibile afterwards anyways. Fixes #80775.
12065
12066 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12067
12068         * ThemeWin32Classic.cs: When drawing ListViewItems,
12069         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
12070         or LargeIcon _and_ item is not focused (match .Net behaviour).
12071
12072 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
12073
12074         * Control.cs, Form.cs: Fix some obsolete method warnings.
12075
12076 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
12077
12078         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
12079         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
12080
12081 2007-05-04  Andreia Gaita  <avidigal@novell.com>
12082
12083         * ContainerControl.cs: Fix active_control attribution when going
12084         up the parent chain so that the first parent container gets the control
12085         and the rest of the parent containers get the child containers (skips
12086         non-containers). Fixes #80729
12087
12088 2007-05-04  Randolph Chung  <tausq@debian.org>
12089
12090         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
12091         [Fixes bug #81499]
12092
12093 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12094
12095         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
12096           takes a size parameter, since the CreateParam's size isn't true for
12097           minimized forms. Fixes #81518,
12098
12099 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12100
12101         * Form.cs: Add OnDeactivateInternal.
12102         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
12103
12104 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12105
12106         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
12107           accessing the parent. Fixes #81508.
12108
12109 2007-05-03  Chris Toshok  <toshok@ximian.com>
12110
12111         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
12112         2.0 block, pass listposition + 1 to ChangeRecordState when a row
12113         was added before the current listposition.  Fixes the
12114         TestInsertRowBeforeCurrent unit test.
12115
12116 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
12117
12118         * Application.cs: Add RaiseIdle.
12119         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12120         XplatUIX11.cs: Implement RaiseIdle.
12121
12122 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
12123         corcompare work: N - Z
12124         * NotifyIcon.cs
12125         * ProgressBar.cs
12126         * RadionButton.cs
12127         * ScrollableControl.cs
12128         * SplitContainer.cs
12129         * SplitterPanel.cs
12130         * StatusBar.cs
12131         * SystemInformation.cs
12132         * TabControl.cs
12133         * TableLayoutControlCollection.cs
12134         * TableLayoutPanel.cs
12135         * TabPage.cs
12136         * ToolBar.cs
12137         * ToolBarButton.cs
12138         * ToolStrip.cs
12139         * ToolStripComboBox.cs
12140         * ToolStripContainer.cs
12141         * ToolStripContentPanel.cs
12142         * ToolStripDropDown.cs
12143         * ToolStripDropDownItem.cs
12144         * ToolStripDropDownMenu.cs
12145         * ToolStripItem.cs
12146         * ToolStripItemCollection.cs
12147         * ToolStripMenuItem.cs
12148         * ToolStripPanel.cs
12149         * ToolStripSplitButton.cs
12150         * ToolTip.cs
12151         * TreeNode.cs
12152         * TreeNodeCollection.cs
12153         * TreeNodeMouseHoverEventArgs.cs
12154         * TreeView.cs
12155
12156 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
12157
12158         * ContextMenu.cs: Add public method Show with alignment property to 2.0
12159         stuff. Thanks aatdark for the patch. 
12160
12161 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12162
12163         * GridItem.cs: Implement 2.0 Tag property.
12164
12165 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
12166
12167         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
12168         count instead of Nodes.Length.  [Fixes bug #81448]
12169
12170 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12171
12172         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
12173         [Fixes bug #81506]
12174
12175 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12176         corcompare work: A - M
12177         * BindingNavigator.cs
12178         * Button.cs
12179         * ButtonBase.cs
12180         * CheckBox.cs
12181         * Control.cs
12182         * FlowLayoutPanel.cs
12183         * Form.cs
12184         * Label.cs
12185         * LinkLabel.cs
12186         * ListView.cs
12187
12188 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12189
12190         * Application.cs: Give toolstrips a chance to process mnemonics.
12191         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
12192         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
12193         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
12194
12195 2007-05-01  Jackson Harper  <jackson@ximian.com>
12196
12197         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
12198         wider area too.
12199         - Don't set the BoundsSpecified
12200
12201 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12202
12203         * Application.cs: When using the toolstrip shortcut mechanism, allow the
12204         message to pass through to a regular control if it hosted by a toolstrip.
12205         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12206         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
12207
12208 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12209
12210         * TextRenderer.cs: Use the flags argument when using the MeasureString
12211         fallback algorithm.
12212
12213 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12214
12215         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
12216         the MDI menu item.  [Fixes bug #81483]
12217
12218 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
12219
12220         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
12221         string. When setting Name to null, use zero-length string instead.
12222
12223 2007-04-29  Andreia Gaita  <avidigal@novell.com>
12224
12225         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
12226         DeselectTab). Implement missing 2.0 TabPageCollection methods
12227         (Add, ContainsKey, RemoveByKey, IndexOfKey)
12228
12229 2007-04-29  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
12230
12231         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
12232
12233 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
12234
12235         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
12236         Fixes bug #81479. Include details of exception when LoadFile fails.
12237
12238 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
12239
12240         * DrawListViewSubItemEventArgs.cs: Added missing setter
12241
12242 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12243
12244         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
12245         Hide methods (not complete). Implement missing 2.0 OnPopup event.
12246
12247 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12248
12249         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
12250         removed in ly last commit (it was breaking the Label edit feature).
12251
12252         * ThemeWin32Classic.cs: When drawing a ListViewItem use
12253         StringAlignment.Near for LineAlignment (match .Net).
12254
12255 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12256
12257         * TabControl.cs: Change SetTab so it adds the tabpage to the list
12258         of controls if it isn't already there - was blowing up when doing
12259         tabcontrol.TabPages[i]=new TabPage(). 
12260         SetTab now does a replace by removing the page at the index. 
12261         Add a new InsertTab method that inserts a page in a given index 
12262         instead of replacing. 
12263         Implements TabPageCollection.Insert(int, TabPage).
12264
12265 2007-04-27  Chris Toshok  <toshok@ximian.com>
12266
12267         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
12268         internal handler that can be invoked from our subclasses.)  Also,
12269         add a comment to PushData about how we need to fix it.
12270
12271         * CurrencyManager.cs: tons of changes here.  trying to get things
12272         matching the behavior of .net wrt event orders (ItemChanged,
12273         CurrentChanged, PositionChanged.)  I've implemented a private .net
12274         symbol (ChangeRecordState) that appears in stack traces because
12275         it's actually easier to do this than to effective inline all its
12276         various behaviors at every call site.
12277
12278         * RelatedPropertyManager.cs: guard against an exception here by
12279         not using parent.Current if the position is set to -1 (if the
12280         parent datasource is cleared, for instance).
12281
12282         * Binding.cs: don't parse data in PushData (this might be wrong,
12283         but it jives with MS's behavior.)  Also, don't call PushData when
12284         we get a CurrentChanged event.
12285
12286 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12287
12288         * WebBrowser.cs,
12289           WebBrowserBase.cs,
12290           WebBrowserSiteBase.cs,
12291           HtmlDocument.cs: Added stubbed out classes, no real implementations 
12292           yet.
12293
12294 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
12295
12296         * MainMenu.cs: In draw method without parameters call draw method with 
12297         PaintEvent, another one (just rect) adjust rectangle and we dont need it
12298         as Rect property is already adjusted. Fixes #80694.
12299
12300 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
12301
12302         * Application.cs: Need to handle keyboard menu deselection here.
12303         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
12304         navigation, allowing keyboard to work on X11.
12305         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
12306
12307 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
12308
12309         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
12310         menu bar. It fixes some drawing issues in menu bar.
12311
12312 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
12313
12314         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
12315         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
12316         when <alt> key is pressed.
12317
12318 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
12319
12320         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
12321         example just set visible to false and make this prevent from other problems.
12322         In SystrayAdd always remove pending expose. Fixes #81072.
12323
12324 2007-04-26  Marek Safar  <marek.safar@gmail.com>
12325
12326         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
12327         value is set.
12328
12329 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12330
12331         * ListView.cs: Added three missing 2.0 events and corresponding
12332         EventHandlers. Added the OwnerDraw property.
12333         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
12334
12335 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12336
12337         * DrawListViewItemEventArgs.cs
12338         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
12339
12340 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12341
12342         * TextControl.cs: Fixed typo in constructor
12343
12344 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
12345
12346         * Application.cs: Create a shortcut path so that currently selected
12347         MenuStrips can intercept keyboard events without having focus.
12348         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
12349         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
12350         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
12351         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
12352         generate WM_SYSCOMMAND message in X11 for other platforms.
12353         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
12354         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
12355         * ToolStripSplitButton.cs: Add DefaultItem property.
12356         
12357 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
12358
12359         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
12360         fixes some menu draw problem on Windows with border diferent from default
12361         it also fixes #81403.
12362
12363 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12364
12365         * Form.cs: Refactor WndProc into separate methods, just like Control is
12366           doing it.
12367
12368 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12369
12370         * Control.cs: set_Text: move the call to the driver into a seperate
12371           virtual method so that Form can override it.
12372         * MaskedTextBox.cs: Corcompare fixes.
12373         * Form.cs: Override UpdateWindowText and only update the styles if the
12374           form has been shown (fixes #81405).
12375
12376 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
12377
12378         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
12379         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
12380         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
12381         the form lost focus or another control was clicked.
12382
12383 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
12384
12385         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
12386         fixed.
12387
12388 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12389
12390         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
12391           DrawListViewItemEventHandler.cs,
12392           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
12393           Added.
12394         * X11Structs.cs: More ToString implementation.
12395
12396 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
12397
12398         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
12399         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
12400
12401 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12402
12403         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
12404           handle.
12405         * FormCollection.cs: Don't add a form if it's already in the
12406           collection.
12407         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
12408           according to behaviour and MSDN. The ownerWin32 is the active
12409           window at the moment when we call ShowDialog, not the context's
12410           main form (the context's main form may open another form that opens
12411           a form with ShowDialog, the win32 owner is the second form). Add
12412           and remove forms to the Application.OpenForms in other places to
12413           better match MS behaviour. Add an IsActive property that raises
12414           On(de)Activated only if the active state has changed (we were
12415           raising OnDeactivated before OnActivated while creating forms).
12416         * Application.cs: Refactor Enabling/Disabling of windows for modal
12417           dialog loops out to separate methods, and restore the thread
12418           context when we quit the method. Fixes #81407.
12419
12420 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12421
12422         * ListView.cs: In ItemControl.HandleClicks, also fire 
12423         2.0 MouseClick or MouseDoubleClick events on the parent,
12424         not only the Click/DoubleClick events.
12425
12426 2007-04-24  Andreia Gaita  <avidigal@novell.com>
12427
12428         * TableLayoutSettings.cs: 
12429         - Added a GetControls method and a support structure to help the 
12430         TypeConverter to enumerate the controls for     serialization. 
12431         - Added a new serialization constructor. 
12432         - Added a isSerialized flag initialized to true on the 
12433         serialization constructor so that the TableLayoutPanel.LayoutSettings 
12434         setter does not throw the designed NotSupportedOperation exception
12435         when the object is built through deserialization.
12436         - Implemented GetObjectData
12437         
12438         * TableLayoutPanel.cs: Added check on LayoutSettings.
12439
12440 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12441
12442         * ListView.cs: Report Click and DoubleClick events to the parent
12443         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
12444         from breaking the click count state when using dialog forms (Control
12445         reports the clicks in a similar fashion). In the previous behaviour
12446         the last WM_LBUTTONUP message in a  double click was sent to the
12447         ListView's form, instead of the ListView, which was breaking the click
12448         count for it. Fixes #80387.
12449
12450 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
12451
12452         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
12453
12454 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
12455
12456         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
12457         us from created dropdowns for menu items that do not have subitems.
12458         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
12459         Check HasDropDownItems before calling DropDown so a dropdown will not be
12460         created if it isn't needed.
12461
12462 2007-04-24  Jackson Harper  <jackson@ximian.com>
12463
12464         * TreeView.cs: Set the first node to the selected node when we get
12465         focus if there is no selected node.
12466
12467 2007-04-24  Andreia Gaita  <avidigal@novell.com>
12468
12469         * MimeIcon.cs: remove using blocks so that image streams are
12470         not disposed of. Fixes #80151
12471
12472 2007-04-24  Jackson Harper  <jackson@ximian.com>
12473
12474         * TextBoxBase.cs: Fixup the height of textboxes when the control
12475         is created.
12476
12477 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
12478
12479         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
12480         for each ToolStripItem when the parent's RightToLeftChanged is called.
12481
12482 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12483
12484         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
12485           Fixes #80163.
12486         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
12487           property, so that the setter can be overriden too.
12488         * TextBox.cs: Change GetContextMenuInternal() to use
12489           ContextMenuInternal.
12490
12491 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12492
12493         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12494           #81406.
12495
12496 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12497
12498         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12499           #81406.
12500
12501 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12502
12503         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
12504           avoid duplicate work. Mostily skeleton code, it's not working at
12505           all yet.
12506
12507 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
12508
12509         * NotifyIcon.cs : stub for MouseClick event
12510         * Application.cs: stub for SetUnhandledExceptionMode
12511
12512 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
12513
12514         * BindingNavigator.cs : Initial (partial) implementation
12515
12516 2007-04-23  Jackson Harper  <jackson@ximian.com>
12517
12518         * TreeView.cs: Do not create the treeview's handle when setting
12519         the scroll position.
12520         - ExpandAll needs to compute the scrollbars so it knows which
12521         position to set the bar too.
12522         * TreeNode.cs: 
12523         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
12524
12525 2007-04-23  Jackson Harper  <jackson@ximian.com>
12526
12527         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
12528         key. Fixes #81408.
12529
12530 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
12531
12532         * ToolStripItem.cs: Make GetImageSize internal.
12533         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
12534         need to draw an item.  Fixes a reported issue where images on menus
12535         that were not 16x16 were drawing incorrectly.
12536
12537 2007-04-21  Miguel de Icaza  <miguel@novell.com>
12538
12539         * Padding.cs: Use the converter, fixes the resgen2 issue with
12540         XMLNotePad. 
12541
12542 2007-04-21  Jackson Harper  <jackson@ximian.com>
12543
12544         * TreeView.cs: Dont try to unhighlight the selected node if there
12545         isn't a selected node.
12546
12547 2007-04-21  Jackson Harper  <jackson@ximian.com>
12548
12549         * UpDownBase.cs:
12550         * TextBoxBase.cs:
12551         * ListView.cs:
12552         * ListBox.cs:
12553         * TreeView.cs: Use the InternalBorderStyle property to set the
12554         initial border style, this forces the client rectangle to be sized
12555         correctly.
12556
12557 2007-04-20  Jackson Harper  <jackson@ximian.com>
12558
12559         * TreeView.cs: Simplify scrolling to the last node after expanding
12560         all.
12561         - Fix some off by ones with setting the bottom.
12562
12563 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
12564
12565         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
12566         that.  We were incorrectly doing it the other way around.  Also,
12567         update ClientSize if we change the BorderStyle before the control
12568         is created.
12569
12570 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
12571
12572         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12573         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12574         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
12575         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12576         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12577         Caption to CaptionHeight.
12578         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
12579         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
12580         and FixedFrameBorderSize to return value from current XplatUI driver.
12581         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
12582         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
12583         and FixedFrameBorderSize using win32 API. Renamed Caption to
12584         CaptionHeight.
12585         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
12586         * SystemInformation.cs: Fixed typo in BorderSize.
12587
12588 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
12589
12590         * XplatUI.cs: Added MenuAccessKeysUnderlined.
12591         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
12592         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
12593         returning false.
12594         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
12595         value from XplatUI driver.
12596         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
12597         SystemParametersInfo.
12598         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
12599         override.
12600         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
12601         returning false.
12602
12603 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12604
12605         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
12606
12607 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12608
12609         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
12610
12611 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
12612
12613         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
12614         MenuStrips that contain ToolStripSeparators.
12615
12616 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12617
12618         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
12619           DefineStdCursorBitmap.
12620         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
12621           has been created off a standard cursor. This is used to get a
12622           bitmap of the standard cursor when Draw or DrawStretched is called
12623           in order to draw the cursor.
12624         * X11Structs.cs: Added XcursorImage and XcursorImages.
12625         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
12626           DefineStdCursorBitmap.
12627         * Cursors.cs: Update all relevant creations of Cursor to use the new
12628           internal constructor.
12629
12630 2007-04-19  Jackson Harper  <jackson@ximian.com>
12631
12632         * TextBox.cs: Move the has_been_focused into the base control, so
12633         some of the text adding methods can manipulate it (probably time
12634         for a better name for this flag too).
12635         - Call a new version of selectall that doesn't scroll
12636         * TextBoxBase.cs: When we append text, if the document is empty,
12637         don't scroll.  If the document has text already, we scroll to the
12638         end of the appended text.
12639         - When the text is changed, we reset the has_been_focused, so the
12640         next time the control gets focused, all the text is selected.
12641
12642 2007-04-19  Jackson Harper  <jackson@ximian.com>
12643
12644         * TextControl.cs: Move the margins to the document, add a method
12645         so the margin sizes can be updated.
12646         * TextBoxBase.cs: When the border style is changed, update the
12647         border sizes.
12648
12649 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
12650
12651         * Control.cs: Respect DefaultPadding.
12652         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
12653         padding into account.
12654         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
12655
12656 2007-04-19  Jackson Harper  <jackson@ximian.com>
12657
12658         * TextControl.cs: Oops, we need to use the ClientRect not the
12659         bounds here.
12660
12661 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12662
12663         * ListView.cs: In ItemControl.ItemsMouseDown, take into
12664         account the double clicks when CheckBoxes are used and
12665         the pointer is inside the checkbox. Fixes part of #81191.
12666
12667 2007-04-18  Jackson Harper  <jackson@ximian.com>
12668
12669         * TextControl.cs: Pressing the end key shouldn't move the caret
12670         past the line ending.
12671         * TextBoxBase.cs: We can still delete if we are in the line
12672         ending and the combine will just kill the existing line ending.
12673
12674 2007-04-18  Jackson Harper  <jackson@ximian.com>
12675
12676         * TextControl.cs: We can't move lines, then invalidate their
12677         bounds, we need to get the old bounds and combine that with the
12678         new bounds.
12679         * TextBoxBase.cs: Before combining two lines for a delete, we need
12680         to invalidate the area of the old line, since that will be moved
12681         in the combine operation.
12682
12683 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
12684
12685         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
12686         with transparent background. Fixes #80482.
12687
12688 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
12689
12690         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
12691         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
12692         [Fixes bug #81391]
12693
12694 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12695
12696         * CreateParams.cs: Add a couple of helper methods and do a less string
12697           concatenation in ToString.
12698         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
12699           overload that takes a Control parameter, since this method may be
12700           called before a control is assigned to the hwnd (from
12701           CreateWindow), and update CreateWindow to use the new overload. In
12702           GetMenuOrigin subtract the title bar from the y position if the
12703           form has a window manager (since we're painting it and not X).
12704         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
12705           CreateParams to calculate the origin (since border sizes may vary).
12706           In ScreenToMenu only subtract the title height if we actually have
12707           a title.
12708         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
12709           mdi children never have menus of themselves.
12710         * InternalWindowManager.cs: Implement menu handling like form does.
12711           Added GetMenuOrigin to calculate the menu origin, can't use the
12712           CreateParams from the form like normally since it's lying.
12713         * Hwnd.cs: Implement GetBorderSize better (in the sense more
12714           windows-like) and add Inflate and comparison operators to the
12715           Borders type. When calculating MenuOrigin and it's a form with a
12716           window manager, use the window manager to calculate it.
12717
12718 2007-04-17  Chris Toshok  <toshok@ximian.com>
12719
12720         * Control.cs (CreateControl): turns out in 2.0 we don't need this
12721         OnBindingContextChanged thing here.  It's only generated from
12722         ContainerControl.OnCreateControl.  Fixes a newly written unit test
12723         - BindingTest.BindingContextChangedTest4.
12724         
12725 2007-04-17  Jackson Harper  <jackson@ximian.com>
12726
12727         * ScrollBar.cs: When setting values, make sure the current
12728         position stays within the new values range.
12729
12730 2007-04-17  Chris Toshok  <toshok@ximian.com>
12731
12732         * Control.cs (CreateControl): talk about a bizarre corner case.
12733         Don't emit OnBindingContextChanged here if we're a parentless
12734         control (i.e. if we're a form.).  Fixes
12735         BindingTest.BindingContextChangedTest2.
12736
12737 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
12738
12739         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
12740         from win32. Fixes #81255.
12741
12742 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
12743
12744         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
12745         already present in CalculateButtonTextAndImageLayout.
12746
12747 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12748
12749         * XplatUIX11.cs: When setting min/max size for a window we need to
12750           translate the coordinates to x coordinates. Create an overload of
12751           SetWindowMinMax that takes a CreateParams handling this, and change
12752           SetWMStyles to call this function (can't use Control.FromHandle in
12753           the SetWindowMinMax to get the control/CreateParams from the handle
12754           because the handle might not have been assigned to the control
12755           yet). Fixes #81371.
12756
12757 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12758
12759         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
12760         if StateImageList is non-null and it has less than two items (match MS
12761         behaviour). Also, in HandleNavKeys handle the Space key, calling
12762         the new ToggleItemsCheckState method, which tries to change the
12763         checked state of the selected items. Fixes part of #81191.
12764
12765 2007-04-16  Jackson Harper  <jackson@ximian.com>
12766
12767         * RichTextBox.cs: namespace cleanup.
12768
12769 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
12770
12771         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
12772
12773 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
12774
12775         [Fixes #79447]
12776         * Control.cs: Call invalidate in set_Region.
12777
12778         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
12779         it dont works here.
12780
12781 2007-04-16  Jackson Harper  <jackson@ximian.com>
12782
12783         * TextBoxBase.cs: When enter is pressed, we need to update all
12784         lines below the current.
12785
12786 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
12787
12788         * MdiClient.cs: Implement implicit menu merging for MDI
12789         children.  When a child form is active, if it has a menustrip
12790         and the parent form has a MainMenuStrip, automatically merge
12791         the menus.
12792
12793 2007-04-15  Andreia Gaita  <avidigal@novell.com>
12794
12795         * TabControl.cs: Refactored sizing methods to not repeat
12796         code all over the place. Tab bounds are now calculated
12797         as if alignment is top and single line, and only when 
12798         setting the bounds are the positions adjusted according
12799         to alignment. Replaced hardcoded positions, spacings and
12800         paddings by getting the values the ThemeEngine. 
12801         Fixes #79619.
12802         
12803         * Theme.cs: Change TabControl properties and methods so
12804         that all start with TabControl*. Added more properties
12805         to help remove hardcoded values on tabcontrol.
12806         Add CPDrawBorder3D declaration so the Theming classes
12807         can access it.
12808         
12809         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
12810
12811         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
12812         on the Theming namespace, and call the appropriate methods here.
12813         Change CPDrawBorder3D to public.
12814
12815 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12816
12817         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
12818         the control after firing the OnMouseUp event, instead of sending
12819         the message before the mentioned event. This is so we can match the
12820         MS behaviour. Fixes part of #80385.
12821
12822 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
12823
12824         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
12825         RightToLeft property.
12826
12827 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
12828
12829         * ToolStrip.cs: Add properties and internal methods to support merging.
12830         * ToolStripItem.cs: Add MergeAction and MergeIndex.
12831         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
12832         not trigger reparenting or layouts.
12833         * ToolStripManager.cs: Add Merge and RevertMerge methods.
12834         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
12835         is hosting the overflow menu.
12836
12837 2007-04-13  Jackson Harper  <jackson@ximian.com>
12838
12839         * TextControl.cs: Set the line ending correctly for the first
12840         inserted line.
12841
12842 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
12843
12844         * Theme.cs: Update GetMethod to get the new definition for 
12845         KnownColors.Update (and fix theme color updates).
12846
12847 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
12848
12849         * MessageBox.cs: Fix some test and button position.
12850
12851 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12852
12853         * Form.cs: Consider the implicit controls in
12854         GetRealChildAtPoint. We need it since this method
12855         is called on Form when handling the some messages in
12856         WndProc, and need to consider those implicit ones too.
12857         Fixes #80385.
12858
12859 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
12860
12861         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
12862         if there are no ShortcutKeys set.
12863         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
12864         set, use it when painting.
12865
12866 2007-04-12  Jackson Harper  <jackson@ximian.com>
12867
12868         * TextControl.cs: Fix some off-by-one issues in line duplication
12869         and insertion in the undo manager. Also, overwrite the first tag
12870         of a line on insert, if it is just a zero lengthed tag. This
12871         prevents us from getting an extra stranded tag at the beginning of
12872         the first line.
12873
12874 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
12875
12876         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
12877         to calculated proper size including when handle was not created yet.
12878
12879 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12880
12881         * MdiWindowManager.cs: When moving a form, allow the form to be moved
12882           when the mouse is outside of it's parent's client rectangle. Fixes
12883           #79982 (take 3, part 2).
12884
12885 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12886
12887         * X11Structs.cs: Add a few ToString() overrides.
12888         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
12889           the window location in a window-manager independent way. Reworked
12890           FrameExtents, it now actually works. Reworked AddConfigureNotify
12891           and ReparentNotify handling to use GetTopLevelWindowLocation
12892           instead of the earlier, more hacky solution. Reworked SetWMStyles,
12893           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
12894           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
12895           for all other windows (fixes #81281 part 1), a toolwindow is hidden
12896           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
12897           and generally refactored to do as few calculations as possible
12898           inside the lock.
12899
12900 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
12901
12902         * Theme.cs: Change "reflective-contract" between MWF and SD to 
12903         minimize # of calls, avoid Color serialization and avoid updating 
12904         every "known colors" each time a single one is updated.
12905
12906 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
12907
12908         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
12909         when not readonly and the text is explicitly set. Code style updates.
12910         * DataGridTableStyle.cs: Removed extra line.
12911         * DataGrid.cs: Code style updates. Removed extra whitespace.
12912         * DataGridColumnStyle.cs: Code style updates. Removed extra 
12913         whitespace.
12914
12915 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12916
12917         * XplatUIX11.cs: Added comment that "fixes" #80021.
12918
12919 2007-04-09  Jackson Harper  <jackson@ximian.com>
12920
12921         * TextControl.cs: We don't need this -1 on the line count anymore.
12922
12923 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
12924
12925         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
12926         entered value to underlying type, and convert it back to a string to
12927         apply formatting. Modified GetFormattedValue to use TypeConverter
12928         if available.
12929
12930 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
12931
12932         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
12933         Use SubItems property when we want to ensure there's at least one
12934         subitem. Modified SubItems property to ensure there's always at least
12935         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
12936         the NRE's reported by MS.
12937
12938 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
12939
12940         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
12941         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
12942         Spaces to tabs. Removed extra tabs.
12943
12944 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
12945
12946         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12947         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
12948
12949 2007-04-06  Jackson Harper  <jackson@ximian.com>
12950
12951         * TextBoxBase.cs: When a delete removes a line, recalculate all
12952         lines below that line (they need to get offsets setup correctly)
12953         and invalidate.
12954
12955 2007-04-05  Jackson Harper  <jackson@ximian.com>
12956
12957         * TextControl.cs: We need to invalidate across the width of the
12958         document when we are invalidating multiple lines.
12959         * TextBoxBase.cs: Don't delete into the line ending.
12960
12961 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12962
12963         * ListView.cs: Restore the check for the MouseHover event
12964         in ListView. It looks like the ListView fires more than one MouseHover
12965         event when HoverSelection is true  _only_ in weird-corner scenarios, but
12966         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
12967         event.
12968
12969 2007-04-05  Mike Kestner  <mkestner@novell.com>
12970
12971         * ListView.cs : raise MouseDown before updating selection.
12972         [Fixes #80373 tab 1&3]
12973
12974 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
12975
12976         * ToolStripRenderer.cs: Add static method to mirror image.
12977         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
12978         and RightToLeftAutoMirrorImage.
12979         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
12980
12981 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
12982
12983         * ToolStripSplitStackLayout.cs: Support Alignment property.
12984         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
12985
12986 2007-04-05  Jackson Harper  <jackson@ximian.com>
12987
12988         * TextControl.cs: Move around the line endings when crossing line
12989         boundaries.
12990         - When combining lines, strip the ending text off the first line.
12991
12992 2007-04-05  Jackson Harper  <jackson@ximian.com>
12993
12994         * TextControl.cs:
12995         * TextBoxBase.cs: Try to never move the cursor into the line
12996         ending.
12997         
12998 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
12999
13000         * ToolStripItem.cs: Make sure we aren't firing mouse events when
13001         the item is disabled.  Also add a few missing methods.
13002
13003 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13004
13005         * ListView.cs: We don't need the MouseEnter/MouseLeave check
13006         to fire just one MouseHover event when HoverSelection is true, since
13007         .Net does fire more than one MouseHover event in that scenario. Also,
13008         fix the selection in HoverSelection, by invoking UpdateMultiSelect
13009         if MultiSelect is true, instead of only setting ListViewItem.Selected.
13010         Finally, we need to reset the Hover logic in MouseMove, even when we
13011         don't have a selected item.
13012
13013 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13014
13015         * ToolStrip.cs: Add several missing methods, properties, and events.
13016
13017 2007-04-04  Chris Toshok  <toshok@ximian.com>
13018
13019         * DataGridTextBoxColumn.cs: set the bounds of the text box to
13020         (0,0,0,0) in Commit, as MS does.
13021
13022         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
13023         make sure we set CurrentRow on a row header click *before* calling
13024         Select.  This moves the current cell (and the textbox) to the new
13025         row.  The call to Select then hides the textbox, giving us the
13026         correct behavior.  Fixes #80362.
13027
13028         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
13029         (ListChangedHandler): reorder the position/current changed events,
13030         and call UpdateIsBinding in the ItemAdded case.
13031
13032         * GridColumnStylesCollection.cs: add some columns events, one of
13033         which raises the CollectionChanged event.
13034
13035 2007-04-04  Jackson Harper  <jackson@ximian.com>
13036
13037         * TextControl.cs: When we delete multiple selection lines
13038         invalidate the selection area, don't need to do that for single
13039         lines because the final update view will handle it.
13040
13041 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13042
13043         * Control.cs: When we CreateControl, we need to also create all of the
13044         control's children.  The child's OnLoad must also fire before the parent's
13045         OnLoad.  Fixes the toolbox size in PDN.
13046
13047 2007-04-04  Jackson Harper  <jackson@ximian.com>
13048
13049         * TextBoxBase.cs: When the user presses enter, insert a line
13050         ending into the text. (Maybe this would be a good spot for
13051         Environment.NewLine).
13052         * TextControl.cs: Remove undo manager hack, line endings get
13053         inserted properly now.
13054         
13055 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
13056
13057         * MenuAPI.cs: 
13058         - Remove unneeded parameters in UpdateCursor.
13059         - Fix UpdateCursor to check if menu is active.
13060         - Call UpdateCursor when menu deactivate my click.
13061         [Fixes remaining issues from #80410]
13062
13063 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
13064
13065         * Control.cs: GetRealChildAtPoint method added, it make an
13066         recursive child control search for the point. 
13067
13068         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
13069         menu.
13070
13071         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
13072
13073 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
13074
13075         * Form.cs: Fix mouse position when send back mouse event after closes
13076         menu.
13077
13078 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
13079
13080         * Form.cs: Simplify the BUTTONDOWN for active tracker.
13081
13082 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
13083
13084         * Control.cs: Fix an issue where if a user resized a control inside
13085         a sizing method like OnResize, we would overwrite their explicit
13086         value.  Also, only call DefaultSize once in the constructor instead
13087         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
13088         nothing actually changed.
13089
13090 2007-04-03  Jackson Harper  <jackson@ximian.com>
13091
13092         * TextControl.cs: Don't attempt to copy text for lines with no
13093         text in them (technically this shouldn't happen, but we aren't
13094         always inserting line endings when we should be).
13095
13096 2007-04-03  Jackson Harper  <jackson@ximian.com>
13097
13098         * TextBoxBase.cs: Calculate the scrollbars before calculating the
13099         document, because this sets some of the document size properties
13100         that are needed.
13101
13102 2007-04-03  Jackson Harper  <jackson@ximian.com>
13103
13104         * TextBoxBase.cs: We need to calculate maximums even if this is
13105         not a multiline control, because the maxs are used for scrolling.
13106         - Display the caret after doing a page up/down, we need to
13107         manually display it because a proper CaretMoved event isn't
13108         triggered (this is because of the way the math is done to
13109         determine how far to scroll).
13110
13111 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
13112
13113         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
13114         (ToolBar was relying on SetBoundsCore to default the values sent 
13115         base off of BoundsSpecified.)
13116
13117 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13118
13119         * DateTimePicker.cs: Change Text so that when a null value or empty
13120           string is assigned to the test we always raise ValueChanged and
13121           TextChanged (earlier implementation would only raise ValueChanged
13122           if the current date value was different from DateTime.Now).
13123
13124 2007-04-03  Andreia Gaita <avidigal@novell.com> 
13125
13126         * ButtonBase: Call update after invalidation, fixes #80194
13127
13128 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13129
13130         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
13131           #79335.
13132
13133 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13134
13135         * XplatUIX11.cs: SetWMStyles: If the control is a form with
13136           FormBorderStyle = None, don't give the window any decorations.
13137           Fixes #81276.
13138
13139 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13140
13141         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13142         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
13143           to check for is a mix of several styles (such as WS_CAPTION for
13144           instance).
13145         * Control.cs: Don't paint an area bigger than the client area when
13146           painting the background colour. Add an internal GetCreateParams.
13147           Update calls to XplatUI.CalculateWindowRect due to API change.
13148         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
13149           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
13150           the size if it hasn't been handled by any windows. When creating
13151           and moving windows, X wants the location of the entire window, but
13152           the size of the client window, so add
13153           TranslateClientRectangleToXClientRectangle,
13154           TranslateWindowSizeToXWindowSIze and
13155           TranslatedXWindowSizeToWindowSize to cope with this, and call them
13156           before every window creation and move. Update CalculateWIndowRect
13157           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
13158           In AddConfigureNotify don't do anything if the hwnd is a zombie
13159           (fixes the BadWindow we were getting while running the tests),
13160           always calculate the offsets when it's a parentless window, not
13161           only when reparented, and translate the window size, since we're
13162           getting the client size of the whole window, excluding entire
13163           window.
13164         * Theme.cs: Added BorderSizableSize.
13165         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13166           anymore. Update calls to XplatUI.CalculateWindowRect due to API
13167           chang
13168         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
13169           change. Fake the window styles here instead of in XplatUIWin32 so
13170           that all back-ends get the same window styles (and it's Form that's
13171           deciding when to use wm, not the Win32 backend anyways)
13172         * Hwnd.cs: Completely reworked GetWindowRectangle and
13173           GetClientRectangle - they are now passed a CreateParams and they
13174           only use Style and ExStyle to determine the rectangles (they should
13175           now work just like Win32AdjustWindowRectEx - though quite a few
13176           special cases are probably missing). They should also be 100%
13177           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
13178           == rect), and all numbers (borders, menu sizes) are taken from the
13179           current theme. Added a GetBorders helper function that will return
13180           the borders for any given CreateParams (including captions and
13181           menus), and GetBorderSize that returns the given border size only.
13182         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13183           Hwnd.GetClientRectangle.
13184
13185 2007-04-02  Chris Toshok  <toshok@ximian.com>
13186
13187         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
13188         logic between the values we present to the user and the values
13189         which are stored in the column's property.  Also, don't call
13190         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
13191
13192 2007-04-02  Jackson Harper  <jackson@ximian.com>
13193
13194         * TextBoxBase.cs: Scroll faster!
13195
13196 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
13197
13198         * StatusStrip.cs: Layout fixes for PDN.
13199         * ToolStrip.cs: Set item's available to true, and placement to main when
13200         added.
13201         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
13202         changing in setter before doing any work, add InternalVisible.
13203         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
13204         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13205         infinite loop.
13206
13207 2007-04-02  Jackson Harper  <jackson@ximian.com>
13208
13209         * TextBox.cs: LBUTTON does not make the textbox select all of it's
13210         text on focus.
13211
13212 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13213
13214         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
13215           Makes ToolStripComboBoxes show up again.
13216
13217 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13218
13219         * ListView.cs: Add a hover_pending field in ListView
13220         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
13221         cycle (we are resetting the MouseHover logic in XplatUI
13222         to handle HoverSelection). Fixes #80429.
13223
13224 2007-04-02  Jackson Harper  <jackson@ximian.com>
13225
13226         * TextControl.cs: Make sure the attributes get set on the last
13227         tag.
13228         - Still have to do the end tag if we have stepped all the ways to
13229         the end.
13230
13231 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
13232
13233         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
13234         on an internal libgdiplus call when the information is already 
13235         available via the public API.
13236
13237 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13238
13239         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
13240           control is removed from a control collecftion.
13241         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
13242           Fixes FormPropertyTest (failed on rare occasions).
13243         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
13244           of Win32SetParent (when changing from no parent to a parent it
13245           might add the new parent's location in screen coordinates to this
13246           window's location).
13247         * Form.cs: Rework ChangingParent once again, now the handle is
13248           recreated whenever a FormWindowManager is added or removed (that is
13249           whenever a normal form is parented or abandoned). Also change
13250           CreateParams so that all non-toplevel windows always get the
13251           specified sice (StartupPosition is never considered for
13252           non-TopLevel forms).
13253         * ContainerControl.cs: Add ChildControlRemoved, the container control
13254           needs to be notified when a control is removed from it's
13255           collection, in the case the removed control is the active control.
13256
13257 2007-04-02  Jackson Harper  <jackson@ximian.com>
13258
13259         * RichTextBox.cs: Use the new methods for setting the font and
13260         color, these methods set the specified attribute without
13261         overriding the other attributes.
13262
13263 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
13264
13265         * ToolStripPanel.cs: Fixes for better layouts in PDN.
13266
13267 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
13268
13269         * TextBox.cs: Added internal ChangeBackColor method to special-case
13270         Color.Empty. Added check for invalid ScrollBars value.
13271         * TextBoxBase.cs: Added internal ChangeBackColor method.
13272         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
13273         internal ChangeBackColor method to special-case Color.Empty. Added
13274         check for invalid ScrollBars value.
13275
13276 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
13277
13278         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
13279
13280 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
13281
13282         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
13283         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
13284         [Based on submitted patch from Olivier Duff.]
13285
13286 2007-03-30  Jackson Harper  <jackson@ximian.com>
13287
13288         * TextBox.cs: Only select all on initial focus if the user has not
13289         specified a selection area.
13290
13291 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
13292
13293         * UserControl.cs: Override CreateParams.
13294
13295 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13296
13297         [ Fixes #80995 ]
13298
13299         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13300         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
13301           check for is a mix of several styles (such as WS_CAPTION for instance).
13302         * Control.cs: Don't paint an area bigger than the client area when painting
13303           the background colour. Add an internal GetCreateParams. Update calls to
13304           XplatUI.CalculateWindowRect due to API change.
13305         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
13306           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
13307           hasn't been handled by any windows. When creating and moving windows, X
13308           wants the location of the entire window, but the size of the client
13309           window, so add TranslateClientRectangleToXClientRectangle,
13310           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
13311           to cope with this, and call them before every window creation and move.
13312           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
13313           removing DeriveStyles). In AddConfigureNotify don't do anything if the
13314           hwnd is a zombie (fixes the BadWindow we were getting while running the
13315           tests), always calculate the offsets when it's a parentless window, not
13316           only when reparented, and translate the window size, since we're getting
13317           the client size of the whole window, excluding entire window.
13318         * Theme.cs: Added BorderSizableSize.
13319         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13320           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
13321         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
13322           Fake the window styles here instead of in XplatUIWin32 so that all
13323           back-ends get the same window styles (and it's Form that's deciding when
13324           to use wm, not the Win32 backend anyways)
13325         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
13326           they are now passed a CreateParams and they only use Style and ExStyle
13327           to determine the rectangles (they should now work just like
13328           Win32AdjustWindowRectEx - though quite a few special cases are probably
13329           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
13330           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
13331           sizes) are taken from the current theme. Added a GetBorders helper
13332           function that will return the borders for any given CreateParams
13333           (including captions and menus), and GetBorderSize that returns the given
13334           border size only.
13335         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13336           Hwnd.GetClientRectangle.
13337
13338 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13339
13340         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
13341           layout of the mdi children is handled by CreateParams. Fixes
13342           #79964,
13343
13344 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13345
13346         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
13347         processed.
13348
13349         * Form.cs: When active tracker mouse down is not processed, send event 
13350         back to control inside mouse position. [Fixes #81227]
13351
13352 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
13353
13354         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
13355         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
13356         stealing focus from the active form on Windows.  (Control will be made
13357         visible in ShowWindow.)
13358
13359 2007-03-29  Mike Kestner  <mkestner@novell.com>
13360
13361         * ImageList.cs : add internal Changed event.
13362         * ListView.cs : hook up to StateImageList.Changed to perform
13363         invalidations when the the state icon list changes. [Fixes #81191]
13364
13365 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
13366
13367         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
13368         to prevent tooltips from stealing focus from the active form on Windows.
13369
13370 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13371
13372         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
13373
13374         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
13375
13376 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13377
13378         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
13379         balloons.
13380
13381 2007-03-29  Jackson Harper  <jackson@ximian.com>
13382
13383         * TextControl.cs: When deleting text from non multiline textboxes,
13384         we need to update the entire document, because line offsets will
13385         be shifting.
13386
13387 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13388
13389         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
13390         added to theme, now we can create themes that uses diferent notify engines
13391         like notification-daemon from galago project or growl for Mac OS.
13392
13393 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13394
13395         * NotifyIcon.cs: Prevent Balloon to show in task bar.
13396
13397 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13398
13399         * XplatUIX11.cs: Prevent system to open more than one balloon.
13400
13401         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
13402         some compiler warning messages.
13403
13404 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13405
13406         [Fixes #79149]
13407
13408         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
13409
13410         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
13411         implemented, this methods is used by NotifyIcon.BalloonWindow class.
13412
13413         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
13414         systems.
13415
13416 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13417
13418         * ListViewItem.cs: Forgot to make Invalidate internal.
13419
13420 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13421
13422         * ListView.cs: Add a InvalidateSelection method to
13423         invalidate methods which are currently selected, and call
13424         it when setting FullRowSelect and HideSelection, instead of
13425         calling Redraw.
13426
13427 2007-03-28  Chris Toshok  <toshok@ximian.com>
13428
13429         * XplatUIX11.cs (UnmapWindow): reindent this block.
13430
13431         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
13432         the selection_start if we're moving the selection (that is, not
13433         extending it). Fixes bug #80461.
13434
13435 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13436
13437         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
13438         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
13439         create private ControlCollection.
13440
13441 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13442
13443         * Control.cs: We need to call OnVisibleChanged for our implicit
13444         children as well as our normal children.  Fixes scrollbars in
13445         comboboxes not showing up.
13446
13447 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13448
13449         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
13450         the check for IsHandleCreated first.  The check in CreateHandle is not
13451         good enough because CreateHandle can be overriden, and the override 
13452         should not be called if the handle is already created.
13453
13454 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13455
13456         * ToolStrip.cs: Remove MonoTODO for tooltips.
13457         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
13458         * ToolStripContainer.cs: Add custom ControlCollection class.
13459         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
13460         * ToolStripDropDown.cs: Add some missing properties/methods.
13461         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
13462         * ToolStripItem.cs: Remove MonoTODO for tooltips.
13463         * ToolStripManager.cs: Add IsShortcutDefined.
13464         * ToolStripOverflow.cs: Override LayoutEngine.
13465         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
13466         * ToolStripSeparator.cs: Add ImageKey.
13467
13468 2007-03-28  Jackson Harper  <jackson@ximian.com>
13469
13470         * TextControl.cs: If a char delete removes a line ending, we need
13471         to update the ending style.
13472         - Make sure the line ending calcs get called.
13473
13474 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13475
13476         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
13477           it was making the new code not work. Fixed a typo in the new code
13478           as well. Fixes #79826.
13479
13480 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13481
13482         * XplatUIWin32.cs:
13483         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
13484         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
13485         - SystrayBalloon method implemented.
13486         [Add support for notifyicon balloon on win32, #79149]
13487
13488 2007-03-27  Mike Kestner  <mkestner@novell.com>
13489
13490         * ThemeWin32Classic.cs : update StateImageList selection to mirror
13491         the ms behavior when only one image is added to the list.
13492         [Fixes #81191]
13493
13494 2007-03-27  Jackson Harper  <jackson@ximian.com>
13495
13496         * TextControl.cs: Improvements to non multiline line ending
13497         drawing/measuing.
13498
13499 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13500
13501         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
13502
13503 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13504
13505         * NotifyIcon.cs: 
13506         - Balloon message handling added.
13507         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
13508
13509         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
13510         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
13511         to SystrayBalloon to me like other Systray method, also a
13512         handle parameter added.
13513
13514 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13515
13516         * ListView.cs: Show scrollbars even when items.Count == 0
13517         but the columns Width is bigger than the ListView.Width.
13518         Also, when columns.Count == 0 set layout_wd and layout_ht
13519         to the ClientRectangle values, so we don't show any scrollbar
13520         in that case.
13521
13522 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13523
13524         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
13525
13526 2007-03-27  Jackson Harper  <jackson@ximian.com>
13527
13528         * RichTextBox.cs: The RTF library decodes the text properly for us
13529         now.
13530
13531 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13532
13533         * ListView.cs: Display HeaderControl even when columns.Count == 0.
13534         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
13535         ListView header (HeaderControl), instead of Control.BackColor.
13536
13537 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
13538
13539         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
13540         Fixes tab control issues where controls would not show up because they
13541         never received their OnVisibleChanged call.
13542
13543 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13544
13545         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
13546         BalloonTipShown).
13547
13548 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
13549
13550         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
13551         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
13552         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
13553         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
13554         the handle.  Fix WindowState by using the internal variable until we are 
13555         sure that we've been shown.
13556         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
13557         max or min.
13558         [Fixes bug #81198]
13559
13560 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13561
13562         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
13563           (at least borders). Fixes #79386 on Linux (with a small difference
13564           in behaviour: when trying to resize a caption-less window metacity
13565           shows the sysmenu. Resizing is still possible though).
13566         * XplatUIWin32.cs: When setting window styles send request an extra
13567           WM_NCCALCSIZE when it's a form without title (due to no text and no
13568           caption), since Win32 seems to calculate it wrong the first time we
13569           get the message, though the second time things work as they should.
13570         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
13571           newly reparented window might show up unparented. Update
13572           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
13573           there's no title text. Fixes #79386.
13574
13575 2007-03-27  Mike Kestner  <mkestner@novell.com>
13576
13577         * ListBox.cs : don't perform invalidations if the handle hasn't been
13578         created.  [Fixes #80753]
13579
13580 2007-03-27  Mike Kestner  <mkestner@novell.com>
13581
13582         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
13583         [Fixes #80428]
13584
13585 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
13586
13587         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
13588         needed to implement Balloon.
13589
13590 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13591
13592         * ListViewItem.cs: In the constructors that take
13593         an array of strings, don't use ListViewSubItemCollection.AddRange
13594         method to add items, since we need to have a different behaviour (in
13595         the constructors we add an item for each null string, opposed to
13596         the behaviour of AddRange, which adds nothing).
13597
13598 2007-03-26  Andreia Gaita  <avidigal@novell.com>
13599
13600         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
13601
13602 2007-03-26  Jackson Harper  <jackson@ximian.com>
13603
13604         * TextControl.cs: Draw and measure line endings when in non
13605         multiline mode.
13606         - When searching the text, count the end of the last line as a
13607         word boundary.
13608
13609 2007-03-26  Jackson Harper  <jackson@ximian.com>
13610
13611         * RichTextBox.cs: The selection_start and selection_end don't
13612         really track the correct tags for the selection. So we'll manually
13613         compute the correct tag here.
13614
13615 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13616
13617         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
13618           and Continuous styles. Fixes #79469.
13619
13620 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
13621
13622         * ToolStrip.cs: Implement Tooltips.
13623         * ToolStripItem.cs: Create internal method for determining tooltip.
13624
13625 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
13626
13627         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
13628
13629 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
13630
13631         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
13632         it prevents a problem thak keeps icon visible after application 
13633         closes on win32.
13634
13635 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
13636
13637         * NotifyIcon.cs: Balloon properties and methods created.
13638
13639         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
13640         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
13641
13642 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
13643
13644         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
13645
13646 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
13647
13648         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
13649         parameter indicates which aspects were explicit/user-set.
13650         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
13651
13652 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
13653
13654         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
13655         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
13656         SmallChange, and Value (2.0).
13657         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
13658
13659 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13660
13661         * ListView.cs: Always set item_control.Width in LayoutDetails
13662         if View is Details. Setting it later in CalculateScrollBars
13663         in a not-so-corner scenario (the sum of columns width is
13664         not bigger than the ListView width when handle is created, and then
13665         that sum gets bigger by increasing the width of the columns)
13666         causes a very weird recursion path (which shouldn't be happening,
13667         since header_control sets it in CalculateScrollBars too). This bug
13668         appeared after Chris' fixes for handle created issues, so probably
13669         it's related to some handle-creation time.
13670
13671 2007-03-23  Chris Toshok  <toshok@ximian.com>
13672
13673         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
13674         case where there's an add row, just so we don't end up in a case
13675         where it's not displayed (this happens when the row is partially
13676         obscured).  Fixes bug #79574.
13677
13678 2007-03-23  Jackson Harper  <jackson@ximian.com>
13679
13680         * TextControl.cs:
13681         * TextBoxBase.cs:
13682         * RichTextBox.cs: Preserve line endings in the lines text buffer,
13683         also added an enum that represents the line ending type. 
13684
13685 2007-03-23  Andreia Gaita  <avidigal@novell.com>
13686
13687         * NumericUpDown.cs: Fix logic so Text and Value properties are not
13688         messed with in every method call, but only from DownButton, 
13689         UpButton, UpdateEditText() and ValidateText. Fixes #80346
13690
13691 2007-03-23  Chris Toshok  <toshok@ximian.com>
13692
13693         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
13694         format objects if the format spec is "".  Fixes bug #80889.
13695
13696 2007-03-22  Miguel de Icaza  <miguel@novell.com>
13697
13698         * ToolStripPanel.cs (Join): added stubs to build PDN3
13699
13700         * Control.cs (AutoScrollOffset): Add.
13701
13702         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
13703         property, its only implemented for Win32, on X11 it defaults to
13704         some hardcoded value.
13705
13706         * ToolStripItem.cs (AllowDrop): Add property
13707
13708 2007-03-22  Mike Kestner  <mkestner@novell.com>
13709
13710         * ListView.cs : in FullRowSelect Details mode, only enable box
13711         selection if the user clicks over the "item" column outside of the
13712         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
13713
13714 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13715
13716         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
13717           handle is not created yet.
13718         * Form.cs: Select: Don't call CreateHandle if the handle is already
13719           created, avoids a stack overflow on Windows when we are recreating
13720           controls.
13721         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
13722           they are made visible, and override AfterTopMostControl to keep
13723           them on top when other controls are brought to front.
13724           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
13725           or force_*scroll_visible is true (old implementation always shows
13726           scrollbars when needed, no matter what auto_scroll was set to).
13727         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
13728           IsHandleCreated check.
13729
13730 2007-03-22  Andreia Gaita  <avidigal@novell.com>
13731
13732         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
13733         row or col separator.
13734         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
13735
13736 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
13737
13738         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
13739
13740 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
13741
13742         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
13743         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
13744         every time. Fixes #80410.
13745
13746 2007-03-22  Chris Toshok  <toshok@ximian.com>
13747
13748         * BindingSource.cs (AddNew): partially implement.
13749
13750         remove a couple of NotImplementedException's
13751         to get bug #81148 closed.
13752
13753 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
13754
13755         [Fixes #80380]
13756         
13757         * Control.cs:
13758         - UpdateCursor method added to update the screen cursor.
13759         - GetAvailableCursor method added to return cursor for enabled tree,
13760         it searches for cursor on control and it's parent's for enabled control.
13761         - Call UpdateCursor method on setter of Cursor property.
13762         - On setter of Enabled call UpdateCursor when it is false, we need to
13763         change cursor to normal (or to this parent cursor) because cursor 
13764         setting theres no effect to disabled controls.
13765         - Some minor source changes to follow the coding style guidelines.
13766
13767         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
13768         controls.
13769
13770 2007-03-22  Chris Toshok  <toshok@ximian.com>
13771
13772         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
13773         generates.
13774
13775 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13776
13777         * XplatUIX11.cs: Implement default locations for forms.
13778         * Form.cs: Completely rework startup location for forms. Fixes #79964.
13779         * Hwnd.cs: Add previous_child_startup_location (to track the current
13780           startup location for any child forms of the current form) and
13781           previous_main_startup_location (to track the startup location for
13782           the current toplevel form).
13783
13784 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
13785
13786         * Control.cs: Don't trigger a layout if an implicit control is added
13787         that isn't visible.  Also, don't notify the owner when an implicit control
13788         is added.  (Owners shouldn't even know about their implicit controls.)
13789
13790 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
13791
13792         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
13793         to save some re-layouts.
13794
13795 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
13796
13797         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
13798         [Fixes #81203]
13799
13800 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
13801
13802         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
13803         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
13804
13805 2007-03-21  Mike Kestner  <mkestner@novell.com>
13806
13807         * ListView.cs : disable selection update for non-left button clicks
13808         with mods and over selected items.  [Fixes #80524]
13809
13810 2007-03-20  Jackson Harper  <jackson@ximian.com>
13811
13812         * TextControl.cs:
13813         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
13814         \r\r\n, \n.
13815
13816 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13817
13818         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
13819           very probably a more complicated calculation there. Update the
13820           textbox' ForeColor and BackColor when the ComboBox' colors are
13821           changed. Change the border change in LayoutComboBox to only affect
13822           the textbox, not all the calculations there. Seems to fix most of
13823           #79436.
13824
13825 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13826
13827         * ComboBox.cs: Handle Home and End keys as well as all combinations of
13828           modifiers + navigation keys as input keys, enables advanced text
13829           selection in the combobox (like Shift+Left Arrow for instance).
13830           ComboTextBox now overrides Focused and returns whatever
13831           ComboBox.Focused returns, since it really should be focused
13832           whenever the ComboBox is. Fixes #80795. Also make the border around
13833           the text box one pixel bigger, as mentioned in #79436.
13834
13835 2007-03-20  Jackson Harper  <jackson@ximian.com>
13836
13837         * TreeView.cs: Don't offset the images, this was causing some
13838         artifacts when expanding/collapsing with images that were the
13839         exact height of the treenode.
13840
13841 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13842
13843         * TrackBar.cs: Query the theme for the correct value when the mouse
13844           moves and the thumb is pressed. 
13845         * Theme.cs: Added TrackBarValueFromMousePosition
13846         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
13847           implementation was updating the trackbar value when drawing, now
13848           the drawing methods only draw. Fixes #80900. Refactored the
13849           calculations out to TrackBarValueFromMousePosition and
13850           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
13851           according to the mouse position whenever it wants to. Changed the
13852           light coloured pen when drawing the thumb from ControlLight to
13853           ControlLightLight, because the ControlLight is the same colour as
13854           the background so the 3D effect is lost. 
13855
13856 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13857
13858         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
13859         defined. Fixes #80784.
13860
13861 2007-03-20  Marek Habersack  <mhabersack@novell.com>
13862
13863         * ContextMenuStrip.cs: align with the change introduced in
13864         revision 74664.
13865
13866 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13867
13868         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
13869         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
13870         in SetTopmost.
13871
13872 2007-03-19  Chris Toshok  <toshok@ximian.com>
13873
13874         * Control.cs (WmPaint): don't make use of the Handle property
13875         after an event is emitted, as the user could have closed the
13876         form/destroyed the control.  Store the Handle in a local variable
13877         and make use of that.  Fixes bug #80768.
13878
13879 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13880
13881         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
13882         behavior in X11 environments.
13883
13884 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13885
13886         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
13887         because on setter of topmost we dont call SetTopmost when handle is not
13888         created.
13889
13890 2007-03-20  Jackson Harper  <jackson@ximian.com>
13891
13892         * TextControl.cs: Need to use SelectionLength () not
13893         selection_length, since that var is reset to -1.
13894         - Draw the caret when we don't have focus.
13895         * TextBox.cs: The selectall actually doesn't occur until the first
13896         focus.
13897         * TextBoxBase.cs: Need to update the caret position after a
13898         selectall.
13899         
13900 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13901
13902         * ListView.cs: Enable scrolling when using Tile view.
13903
13904 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13905
13906         [Fixes #80902]
13907
13908         * XplatUIDriver.cs: Abstract SetOwner method created.
13909
13910         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
13911         must be implemented and was masked as todo.
13912
13913         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
13914         GWL_HWNDPARENT.
13915
13916         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
13917         cheking for null owner to remove transient. The SetTopmost will be change
13918         on a decond step.
13919
13920         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
13921         SetTopmost. Now owned forms will work properly in win32 and X11.
13922
13923 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13924
13925         * MdiWindowManager.cs: Update function name.
13926         * Form.cs: After closing a form MdiParent is always null.
13927         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
13928           better what it should do: necessary book-keeping when the form is
13929           closed, it should not close the form itself.
13930
13931 2007-03-19  Andreia Gaita  <avidigal@novell.com>
13932
13933         * ListViewItem.cs: Fix back and fore color. The subitems only
13934         use their own colors if they are set, otherwise use the listview's
13935         colors. Don't set default colors on constructor for subitem.
13936         Fixes #79315.
13937
13938 2007-03-19  Mike Kestner  <mkestner@novell.com>
13939
13940         * ListView.cs : make box selection for Details views with 
13941         FullRowSelect conform to MS behavior when clicking in the "item" 
13942         column and clicking outside the defined columns.
13943         [Fixes case 5-6 of #80374]
13944
13945 2007-03-19  Chris Toshok  <toshok@ximian.com>
13946
13947         * ScrollableControl.cs: create the controls from within the ctor,
13948         but don't actually add them until our handle is created.  this
13949         fixes a NRE possibility jpobst found (if you override OnLayout in
13950         a subclass, it's called before your ctor).  Also, add a
13951         IsHandleCreated guard to UpdateSizeGripVisibility as well.
13952
13953 2007-03-19  Jackson Harper  <jackson@ximian.com>
13954
13955         * TextBox.cs: Reduce the amount of invalidation we do.
13956         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
13957         some of them are true by default on MS.
13958         - Add some functions to reduce the amount of invalidates we do.
13959         * TextControl.cs: Less invalidation.
13960
13961 2007-03-19  Chris Toshok  <toshok@ximian.com>
13962
13963         [ Fixes #81773, and *seems* to fix #81553 as well ]
13964
13965         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
13966         AccumulateDestroyedHandles.  We need to do it *after* we send
13967         WM_DESTROY, as the user's code can access Control.Handle in
13968         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
13969         move the WM_DESTROY/zombie handling to before the call to
13970         XDestroyWindow.  For some reason without this ordering
13971         FormTest.RecreateHandle hangs.  This ordering is semantically
13972         equivalent, however, as XDestroyWindow is async anyway.
13973
13974 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
13975
13976         * RichTextBox.cs: Reset backcolor_set after setting default.
13977
13978 2007-03-19  Chris Toshok  <toshok@ximian.com>
13979
13980         * ScrollableControl.cs: the scroll position should not effect the
13981         canvas size.  commit patch from georgegiolfan@yahoo.com, which
13982         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
13983         
13984 2007-03-19  Chris Toshok  <toshok@ximian.com>
13985
13986         * ScrollableControl.cs: clean this up a bit.  create the
13987         scrollbars in the ctor and just show/hide them as needed.  Also,
13988         make hscroll_visible/vscroll_visible internal to Recalculate, and
13989         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
13990         everywhere else.  This seems to fix the scrollbars appearing
13991         beneath the content for me (i have *no* idea why that is,
13992         however.)
13993
13994 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
13995
13996         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
13997         some redundacy for stuff in Anchor and Dock that base will take care of.
13998         [Fixes #80762]
13999
14000 2007-03-19  Mike Kestner  <mkestner@novell.com>
14001
14002         * ListView.cs : make box selection for Details views without 
14003         FullRowSelect dependent on the text bounds, not item bounds.
14004         * ListViewItem.cs : add an internal property to obtain the TextBounds
14005         in Details view.  [Fixes case 1-4 of #80374]
14006
14007 2007-03-19  Andreia Gaita  <avidigal@novell.com>
14008
14009         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
14010         we're < 2.0. #78448 && #80316
14011
14012 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
14013
14014         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
14015         have the same style available as the previously selected one.  Also,
14016         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
14017
14018 2007-03-19  Jackson Harper  <jackson@ximian.com>
14019
14020         * TextControl.cs: Add an alignment property that all new lines
14021         will be given.
14022         - Make sure to use the align shift when calculating the line's X
14023         position.
14024         * TextBox.cs: Set the alignment on the document as well as on all
14025         the document lines.
14026
14027 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14028
14029         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
14030           throw if setting the parent of an mdichild that already has an
14031           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
14032           AssemblyProductAttribute in the assembly, use the type's namespace (as
14033           MS seems to do). CreateControl: don't create the handle if the control
14034           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
14035           create handle if the control is not a form. Change FocusInternal to
14036           virtual so that it can be overriden by Form.
14037         * TextBox.cs: Update call to FocusInternal.
14038         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
14039           form is not a toplevel form when it's a mdi child, so update is_toplevel
14040           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
14041           hasn't been created. Show (IWin32Window): Don't allow this overload for
14042           toplevel windows. CenterToParent/CenterToScreen/Select: create the
14043           handle as MS does. SetVisibleCore: if called on a MdiChild and the
14044           parent isn't visible yet, save the visibility and restore it when the
14045           parent is made visible.
14046         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
14047           methods, since the visibility of the scrollbars can be changed from
14048           several places, not only from AutoScroll.
14049           [Fixes #81179]
14050
14051 2007-03-19  Jackson Harper  <jackson@ximian.com>
14052
14053         * RichTextBox.cs: Enable shortcuts by default.
14054         * TextBoxBase.cs: Add conditional shortcuts.  
14055
14056 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
14057
14058         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
14059
14060 2007-03-19  Chris Toshok  <toshok@ximian.com>
14061
14062         [ Fixes bug #80604]
14063         
14064         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
14065         swallow the message we're waiting on, instead of delivering it, as
14066         this is only used for the WM_SHOWWINDOW raised from
14067         MapWindow/UnmapWindow, and the message needs to be generated
14068         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
14069         before doing the Map/Unmap.  Also make sure that the Hwnd is still
14070         alive after the message has been handled.
14071
14072         *before* the window is shown.
14073
14074         * Control.cs (CreateControl): guard a few more things inside the
14075         if (!is_created) block, as we might end up being called again -
14076         yay .net.
14077         (WmShowWindow): call CreateControl if we're showing the control.
14078
14079 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14080
14081         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
14082           controls without a handle if they have any parent with a handle. In
14083           Dispose add a check whether the handle is created or not before
14084           calling BeginInvoke, this removes the need of the extra disposing
14085           parameter (which was bogus anyway since it didn't prevent the
14086           invoke from happening, it only skipped the check for an existing
14087           handle, meaning that the invoke would call on an inexistent
14088           handle).
14089
14090 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
14091
14092         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
14093         appears in taskbar.
14094
14095 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
14096
14097         * MessageBox.cs:
14098         - Fixed a problem that dont show help button for messages with 3 buttons.
14099         - Refactory button size and position calculations, now dont use fixed 
14100         values, also fixed button sizes (#80043) and form's border space.
14101         - AddButton method created, now all other AddButton methods call this one.
14102         - Some other source code cosmetic changes.
14103
14104 2007-03-18  Jackson Harper  <jackson@ximian.com>
14105
14106         * RichTextBox.cs: Don't do this all fonts must match check if
14107         there is only one char selected.
14108
14109 2007-03-18  Jackson Harper  <jackson@ximian.com>
14110
14111         * TreeView.cs: ScrollWindow works properly now, so we don't need
14112         to screw around with the scroll area.  This fixes some artifacts
14113         when expanding and collapsing.
14114
14115 2007-03-18  Jackson Harper  <jackson@ximian.com>
14116
14117         * TextBoxBase.cs: Allow updating the selection position when the
14118         cursor is outside the textarea, but we have a capture.
14119         * TextControl.cs: A special case for when the cursor is outside
14120         the bounds of the TB.
14121         
14122 2007-03-18  Jackson Harper  <jackson@ximian.com>
14123
14124         * TextBoxBase.cs: Remove image pasting code for now.  There is no
14125         way to get an image on the clipboard right now anyways.
14126         * TextControl.cs:
14127         * RichTextBox.cs: Use the new RTF Picture class for pictures.
14128
14129 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
14130
14131         * MessageBox.cs:
14132         - Set window properties in constructor intead of on CreateParams.
14133         - Remove topmost from Window ExStyle.
14134         - Set ShowInTaskbar to false.
14135         - Set form border to FixedDialog.
14136         - Some cosmetic changes and remove unneeded comments.
14137         - It fixes itens 2,3 and 4 of bug #80043.
14138
14139 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
14140
14141         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
14142         none was explicitly set. Fixes part of bug #79949.
14143
14144 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
14145
14146         * ToolStripComboBox.cs: Add AutoComplete*.
14147
14148 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
14149
14150         * ToolStripComboBox.cs: Add FlatStyle.
14151
14152 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
14153
14154         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
14155         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
14156
14157 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14158
14159         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
14160           CheckBox.cs, RadioButton.cs, BindingSource.cs,
14161           DataGridColumnStyle.cs: Remove warnings.
14162
14163 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14164
14165         * Menu.cs: MergeMenu: Check menu argument for null before looping over
14166           it.
14167         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
14168           visibility of mdi child forms. FormSizeChangedHandler: update the
14169           maximized size if size has changed while maximized.
14170         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
14171           creating the handle.
14172         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
14173           avoid creating the handle if not created.
14174         * XplatUI.cs: Update debug output.
14175         * XplatUIStructs.cs: Added ToString's for a couple of structs.
14176
14177 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
14178
14179         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
14180         ProcessCmdKey().
14181         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
14182         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
14183         Implement keyboard shortcuts.
14184
14185 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
14186
14187         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
14188         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
14189         ColorDialog and all derived classes.
14190
14191 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
14192
14193         [ Fixes bug #79828 ]
14194
14195         * ToolBar.cs:
14196         - Rename ToolBarButtonInfor to ToolBarItem.
14197         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
14198         - Maintain an array of ToolBarItem, used instead of ToolBarButton
14199         collection to be able add same button more than one time on a toolbar.
14200         - Refactory all properties and methods to use ToolBarItem. 
14201
14202         * ToolBarButton.cs: 
14203         - Remove all propeties and methods that is now in ToolBarItem.
14204         - Rectangle propery now gets the rectangle from first ToolBarItem to
14205         mimic win32 behavior.
14206         - Size calculation and layout methods also removed.
14207
14208         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
14209         ToolBarItem instead of ToolBarButton to right drawing buttons when
14210         same button/separator was added more than one time to ToolBar.
14211
14212         * ThemeNice.cs: Same as above. 
14213
14214 2007-03-15  Andreia Gaita  <avidigal@novell.com>
14215
14216         * XplatUIX11.cs: Fire extra MouseMove events right after
14217         MouseDown and MouseUp, emulating win32's <censored> behaviour
14218         for apps that rely on it.
14219
14220 2007-03-15  Jackson Harper  <jackson@ximian.com>
14221
14222         * TextControl.cs:
14223         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
14224         it is drawn on the controls client window and there is no NC
14225         area.
14226         - Set the background color to gray on 2.0 when we are readonly.
14227
14228 2007-03-15  Chris Toshok  <toshok@ximian.com>
14229
14230         [ Fixes bug #81144 ]
14231         
14232         * XplatUIX11.cs: implement VirtualScreen independently of
14233         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
14234         property.
14235
14236 2007-03-15  Chris Toshok  <toshok@ximian.com>
14237
14238         * Hwnd.cs: add an internal field for the cached_window_state.
14239
14240         * XplatUIX11.cs: cache the window state, invalidating the cache
14241         (and thus re-querying the X server) only when we see an update to
14242         the _NET_WM_STATE property.
14243
14244 2007-03-15  Chris Toshok  <toshok@ximian.com>
14245
14246         * BindingSource.cs: get a lot of the unit tests working.
14247
14248 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
14249
14250         * Control.cs: Modify UpdateStyles to store distances when bounds >=
14251         0 instead of just bounds > 0.  [Fixes bug #80912]
14252
14253 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
14254
14255         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
14256         and methods.
14257
14258 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
14259         
14260         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
14261         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
14262         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
14263         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
14264
14265 2007-03-15  Chris Toshok  <toshok@ximian.com>
14266
14267         [ Fixes #81101 ]
14268         
14269         * Control.cs: add Ivan's fix for 81101, with a slight modification
14270         - you can set control.Target to null.
14271
14272 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
14273
14274         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
14275         HideDropDown, use Hide instead to prevent an NRE.
14276         [Fixes bug #81147]
14277
14278 2007-03-14  Jackson Harper  <jackson@ximian.com>
14279
14280         * TextBoxBase.cs: Mess with the creation stuff a little. We need
14281         to calculate the document before the handle is created, in some
14282         cases. (Actually just one case).
14283
14284 2007-03-14  Jackson Harper  <jackson@ximian.com>
14285
14286         * TextBoxBase.cs: Need to display the caret after letting the base
14287         wndproc handle the focus methods, because the caret display
14288         methods check the focus state.
14289         - Try to display the caret after updating it's position with SelectWord.
14290         - Don't need to do an immediate update on this recalc, since there
14291         will be an invalidate anyways.
14292
14293 2007-03-14  Jackson Harper  <jackson@ximian.com>
14294
14295         * TreeView.cs: Some workarounds so that we can match event order a
14296         little better.
14297
14298 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
14299
14300         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
14301         #80803. Avoid NullReferenceException when Control does not have
14302         parent. Fixed different blinkstyle issues. Only subscribe to Tick
14303         event a single time. Only draw error icon when control is created and
14304         visible. Fixes failing unit tests.
14305
14306 2007-03-14  Andreia Gaita  <avidigal@novell.com>
14307
14308         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
14309         Selecting events. Fire Leave and Enter events when changing tabs.
14310
14311 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
14312
14313         * TreeView.cs: Add TreeViewNodeSorter.
14314         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
14315
14316 2007-03-14  Chris Toshok  <toshok@ximian.com>
14317
14318         * Form.cs: go ahead and remove the RecreateHandles that jpobst
14319         removed earlier and I had him add back it.  It turns out metacity
14320         *does* in fact handle the MOTIF_WM_HINTS property changing, it
14321         just doesn't redraw the window titlebar until you resize the
14322         window.  This also means we aren't recreating the entire window
14323         hierarchy on X when you change this property.  And it looks better
14324         on windows, too.
14325
14326 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14327
14328         * ListViewItem.cs:
14329         * ListView.cs: Collecting selection information
14330         is now done in SelectedIndexCollection rather than in
14331         SelectedListViewItemCollection. This is done so we can
14332         have the selection information code in one single place
14333         (virtual mode selection information entirely depends on
14334         SelectedIndexCollection).
14335
14336 2007-03-13  Miguel de Icaza  <miguel@novell.com>
14337
14338         * ErrorProvider.cs: Add stubs for ISupportInitialize
14339
14340 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14341
14342         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
14343         in the right order with the right values, from the Checked property, 
14344         just as MS does (instead of triggering them from ListView).
14345
14346         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
14347
14348 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14349
14350         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
14351         the correct handler in OnItemCheck method (ItemCheckEventHandler 
14352         instead of EventHandler). This used to throw an InvalidCastException.
14353
14354 2007-03-13  Jackson Harper  <jackson@ximian.com>
14355
14356         * TextBoxBase.cs: Calculate the document before the handle is
14357         created, so there isn't an extra invalidate called.
14358
14359 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
14360
14361         * Form.cs: Don't set owner in ShowDialog until we are sure
14362         that we aren't going to throw an exception.  [Fixes bug #80773]
14363
14364 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
14365
14366         * TreeView.cs: Make it compile.
14367
14368 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14369
14370         * Control.cs: Another place we don't call SizeFromClientSize.
14371         * Form.cs: Another place we don't call SizeFromClientSize.
14372         [Fixes bug #81125]
14373
14374 2007-03-12  Jackson Harper  <jackson@ximian.com>
14375
14376         * TreeView.cs: Basically emulating some strangness here with
14377         exanding nodes and setting node positions when windows aren't
14378         created.
14379         - Also attempting to walk the node tree less than previously, and
14380         just use visible order calculations for determining offsets.
14381         - oops made scrolling backwards.
14382         * TreeNode.cs: We need to start nodes with a zero visible order,
14383         because the order calcs are based on the first nodes order.
14384
14385 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14386
14387         * Form.cs: Don't exit the program if RecreateHandle is called on
14388         the main form.
14389
14390 2007-03-12  Chris Toshok  <toshok@ximian.com>
14391
14392         * XEventQueue.cs: remove the use of PostQuitState.
14393
14394         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
14395         WM_QUIT message in GetMessage, return false (and if we're in the
14396         nested WaitForHwndMessage, repost the WM_QUIT message).
14397
14398 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14399
14400         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
14401         or the MaximizeBox properties.  [Part of bug #80640]
14402
14403 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
14404
14405         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
14406         no links.
14407
14408 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14409
14410         * ToolStripItem.cs: Fix some tests I broke by checking Visible
14411         instead of visible.
14412
14413 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
14414
14415         * FileDialog.cs: Use text of File name combobox to determine what
14416         files the user selected. Added tokenizer to parse the file names.
14417         Fixes bug #81123.
14418
14419 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14420
14421         * Control.cs: We can't call SizeFromClientSize in the constructor,
14422         but we still need to do the same work, so make an internal version.
14423         [Fixes bug #80621]
14424
14425 2007-03-12  Jackson Harper  <jackson@ximian.com>
14426
14427         * TreeView.cs:
14428         * TreeNode.cs:
14429         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
14430         IsExpanded.
14431
14432 2007-03-12  Jackson Harper  <jackson@ximian.com>
14433
14434         * TextBoxBase.cs: Now that the handles are being created a little
14435         later, we need to make sure that the document is recalculated when
14436         the handle is created.
14437
14438 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
14439
14440         * Theme.cs: GetLinkFont abstract method added.
14441         
14442         * LinkLabel.cs: 
14443         - Remove CalcTrimRectangle, no longer needed.
14444         - Factor also remove, position issues must be fixed in libgdiplus.
14445         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
14446         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
14447         care about font used to draw links.
14448         - Set TabStop to true when control is "Selectable", control is selectable
14449         when have one or more links. Fixes #80501 (test case is also added).
14450         - Set the LinkArea values after links change, LinkArea values must be
14451         based in first link position and size, a test case was created.
14452         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
14453         the attribute must be true LinkArea.Length > 0. The same was applied to
14454         TabStop.
14455         
14456         * ThemeWin32Classic.cs: 
14457         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
14458         in draw method.
14459         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
14460         color change.
14461         - Draw focus rectangle for every parts focused, including parts that 
14462         is on another line, its because regions returns various rectangles
14463         and not only one. Needed to mimic W32 look.
14464         - Uses Graphics.Clip to delimite region painted, it mean that now 
14465         complete text is passed to DrawString, with this we solve layout
14466         issues without create another text renderer.
14467         - Uses Region.Intersect to fix some flickers problems, now only needed
14468         parts will redrawed.
14469         - This changes fixes #79614 and some other unreported issues, on Linux 
14470         some layout problems still remain, the problem is under 
14471         MeasureCharacterRanges but it is an libgdiplus bug.
14472
14473 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
14474
14475         * TextBox.cs: Set for foreground color.
14476         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
14477         this is already done in Control.
14478
14479 2007-03-10  Jackson Harper  <jackson@ximian.com>
14480
14481         * TextBox.cs: Set the background color, but reset the
14482         backcolor_set flag which is just for the user setting the
14483         background color.
14484
14485 2007-03-09  Chris Toshok  <toshok@ximian.com>
14486
14487         * Control.cs: really remove the call to XplatUI.SetVisible from
14488         CreateHandle(), like I said I did when I merged the branch.
14489
14490         * BindingSource.cs: implement some more of this stuff.
14491
14492 2007-03-09  Jackson Harper  <jackson@ximian.com>
14493
14494         * TextBox.cs: Don't explicitly set our background colors.
14495         * TextControl.cs:
14496         * TextBoxBase.cs: Draw readonly text.
14497         - Need to invalidate when backcolor or readonly are changed.
14498         
14499 2007-03-09  Jackson Harper  <jackson@ximian.com>
14500
14501         * TextBoxBase.cs: Don't set the forecolor until the handle is
14502         created.
14503         - Do not raise OnPaint, and removed some old debug code.
14504
14505 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
14506
14507         * ScrollableControl.cs: Fix mouse wheel scrolling.
14508
14509 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
14510
14511         * Control.cs: Wire up MouseDoubleClick event.
14512
14513 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
14514
14515         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
14516         top or bottom.
14517         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
14518         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
14519         item is added.  This logic was moved to ToolStrip.OnItemAdded.
14520         [Fixes bug #81090]
14521
14522 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14523
14524         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
14525
14526 2007-03-08  Jackson Harper  <jackson@ximian.com>
14527
14528         * TreeView.cs: Show the correct image for selected node (this used
14529         to work, not sure how the code got deleted). Also implemented 2.0 feature
14530         SelectedImageKey.
14531
14532 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14533
14534         * ListView.cs:
14535         * ListViewItem.cs: Cache index in items when retrieving them
14536         in VirtualMode.
14537
14538 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
14539
14540         * ToolStripItem.cs: Don't return the explicit_size if we are using 
14541         AutoSize.  Fixes invalidation issue when user has explicitly set a
14542         size and has AutoSize = true.
14543
14544 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
14545
14546         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
14547
14548 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
14549
14550         * DataGridView.cs: Remove event handler from DataView when a
14551         DataTable is used as DataSource.
14552
14553 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
14554
14555         * Control.cs: Create internal setter for client_size to allow it to be
14556         set without triggering resizing code.
14557         * Form.cs: Calculate client_size in constructor, only change client_size
14558         in FormBorderStyle property if Handle has been created.
14559         [Fixes #80574, #80791]
14560
14561 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
14562
14563         * SystemInformation.cs: Add TerminalServerSession.
14564
14565 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
14566
14567         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
14568         TreeView code.
14569
14570 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
14571
14572         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
14573         Handle before we were supposed to.  Now checks ActivateOnShow property
14574         in Control.
14575         * Control.cs: Add internal ActivateOnShow property.
14576         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
14577         for ActivateOnShow.
14578         * Hwnd.cs Remove no longer needed no_activate field.
14579
14580 2007-03-07  Jackson Harper  <jackson@ximian.com>
14581
14582         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
14583         2.0 properties
14584         * DrawTreeNodeEventHandler.cs: Add
14585         * DrawTreeNodeEventArgs.cs: Correct default value.
14586         
14587 2007-03-07  Chris Toshok  <toshok@ximian.com>
14588
14589         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
14590         to be called before NativeWindow.WndProc.  Put the HwndCreating
14591         magic there to hook up our Hwnd's to handles.
14592
14593 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
14594
14595         * DataGridView.cs: Comment out debug code.
14596
14597 2007-03-07  Chris Toshok  <toshok@ximian.com>
14598
14599         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
14600         to make the rest of the world happy]
14601
14602         * Control.cs (CreateHandle): there's no need to call
14603         XplatUI.SetVisible here, it's effectively done by
14604         XplatUI.CreateWindow on X now, and always was on windows.
14605
14606         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
14607         shortcircuit out of the loop if we have a message loop running on
14608         this thread.
14609
14610         [Changelog from merge]
14611
14612         2007-03-05  Chris Toshok  <toshok@ximian.com>
14613
14614                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
14615                 causes handle creation.
14616
14617         2007-02-28  Chris Toshok  <toshok@ximian.com>
14618
14619                 * ApplicationContext.cs: Add a flag to make sure we only raise the
14620                 ThreadExit event once (ExitThreadCore can be indirectly called
14621                 from a few places.)  I don't like the additional flag, but it
14622                 makes the event ordering/count correct.
14623
14624                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
14625                 without locking the collection.  An enumerator doesn't give us any
14626                 protection from modification anyway.  Lock the thread hash and
14627                 replace the complicated enumerator loop with a foreach.
14628                 (Application.CloseForms): make internal so it can be called from
14629                 ApplicationContext.  This should probably be moved to MWFThread.
14630                 (Application.ExitThread): don't call MWFThread.Current.Exit()
14631                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
14632                 when the runloop exits (in response to WM_QUIT.)
14633                 (Application.RunLoop): add a comment (and check) for
14634                 context.MainForm being null after setting context.MainForm.Visible
14635                 = true.  This is because you're perfectly free to dispose of a
14636                 form in VisibilityChanged.  Chalk this up to another case where we
14637                 need to synchronously generate WM_ACTIVATE from Control.Show.
14638                 Also, add handling for WM_QUIT here so we'll exit the loop.
14639                 
14640                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
14641                 fact that we don't wait if we're only unmapping the whole_window
14642                 makes me a bit nervous, but it doesn't seem to cause any problems
14643                 yet.
14644
14645                 also, add a comment about the stupid, broken and wrong resetting
14646                 of PostQuitState to false in GetMessage().
14647
14648                 In PostQuitMessage, we need to add a WM_QUIT message to the
14649                 thread's queue.  We use the FosterParent to get the right
14650                 handle/hwnd/queue.
14651
14652                 Lastly, in SetVisible, we need to unmap both windows, since the
14653                 waiting only happens when we're unmapping the client window.  So
14654                 now, the *only* time we unmap just the whole_window is in the hack
14655                 for resizing a control to 0,0.
14656                 
14657         2007-02-21  Chris Toshok  <toshok@ximian.com>
14658
14659                 * Application.cs (CloseForms): rewrite this so that we don't
14660                 modify the list while we're traversing it.
14661
14662         2007-02-20  Chris Toshok  <toshok@ximian.com>
14663
14664                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
14665                 of OnHandleCreated.
14666                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
14667                 handle is created.  otherwise we'll create it here.
14668                 (VerticalScrollEvent): same here.
14669
14670                 * Application.cs (CloseForms): call Form.Dispose, don't post
14671                 WM_CLOSE_INTERNAL.
14672
14673                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
14674                 here. Application should Dispose() of the Form's.
14675
14676                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
14677                 WM_DESTROY as well.
14678                 (MapWindow,UnmapWindow): only actually do the waiting for
14679                 SHOWWINDOW if the control we're dealing with is a Form.
14680                 (CreateWindow): if the control isn't a form, SendMessage
14681                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
14682
14683                 * Control.cs (SetVisibleCore): always use is_visible here, not
14684                 value.  If we use value, we can end up re-setting something
14685                 visible if, for instance, you do Control.Hide() in a delegate
14686                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
14687
14688         2007-02-20  Chris Toshok  <toshok@ximian.com>
14689
14690                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
14691                 the message we need.  PeekMessage returning false should not be a
14692                 condition under which we exit the loop.
14693
14694         2007-02-15  Chris Toshok  <toshok@ximian.com>
14695
14696                 * Control.cs (Refresh): only refresh if we've got a handle and are
14697                 visible.
14698                 (CreateAccessibilityInstance): CreateControl() here.
14699                 (UpdateChildrenZOrder): complicate the code loop even more by
14700                 taking into account controls that haven't had their handle
14701                 created, and those that aren't visible.  But on the flip side,
14702                 simplify the code by splitting it into two loops.  one which
14703                 builds up the list of child controls we're interested in, and the
14704                 other that sets the z order of those children.
14705
14706         2007-02-14  Chris Toshok  <toshok@ximian.com>
14707
14708                 * Control.cs: Control.AccessibilityObject causes the control to be
14709                 created, not just the handle.
14710
14711         2007-02-14  Chris Toshok  <toshok@ximian.com>
14712
14713                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
14714                 problem on X where a window might have its handle created (and be
14715                 visible) while the window is unmapped.  calling XConfigureWindow
14716                 on an unmapped window is bad, and generates X errors.
14717
14718         2007-02-13  Chris Toshok  <toshok@ximian.com>
14719
14720                 * Control.cs (CreateHandle): don't loop over our children setting
14721                 their parent here.  do it when in WndProc when we're shown.
14722                 (UpdateChildrenZOrder): make this internal so we can call it from
14723                 ScrollableControl.
14724                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
14725                 creating its handle.  Also, remove the calls to PerformLayout from
14726                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
14727                 OnVisibleChanged only seems to be called directly here for the
14728                 toplevel control.  It's propagated down the window hierarchy by
14729                 calls to child.OnParentVisibleChanged.
14730                 (OnVisibleChanged): don't do layout here - it's done (oddly
14731                 enough, according to a glance at stack traces on ms.net..) in
14732                 ScrollableControl.
14733                 
14734                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
14735                 z order of our children before calling PerformLayout.
14736
14737         2007-02-12  Chris Toshok  <toshok@ximian.com>
14738
14739                 [big change, fixes #80020]
14740                 
14741                 * AccessibleObject.cs: we need to make owner internal again to fix
14742                 some of ControlAccessibleObject.
14743
14744                 * Control.cs: lots of changes here.  add support for WM_CREATE,
14745                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
14746                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
14747                 we create child controls.  leave the MonoTODO's for the
14748                 accessibility calls, but fix the exceptions so the tests pass.
14749
14750                 Add the InvalidOperationExceptions to Invoke methods, and remove a
14751                 couple of InvokeInternal methods we aren't using.
14752                 
14753                 Also, add a couple of CreateHandle calls in places where we know
14754                 the handles are being created but our code doesn't reference
14755                 .Handle.
14756
14757                 Make SetVisibleCore call OnVisibleChange if the handle isn't
14758                 created.  If the handle is created, we rely on XplatUI.SetVisible
14759                 generating the event synchronously.
14760                 
14761                 Lastly, make sure we don't use this.Handle inside CreateHandle,
14762                 because we can call back into client (and that code can dispose of
14763                 the control).
14764
14765                 * XplatUIStructs.cs: misc/cleanup.
14766
14767                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
14768                 although we don't populate the wParam properly.
14769                 (CreateWindow): generate WM_CREATE.
14770                 (MapWindow,UnmapWindow): make these calls synchronous, at great
14771                 performance expense (particularly in the unmap case), to match
14772                 win32 behavior.
14773
14774                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
14775                 to call it.
14776                 (set_MdiParent): don't recreate the handle unless it's been
14777                 created already.
14778                 
14779                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
14780                 it's created.
14781
14782                 * NativeWindow.cs: this is probably the weirdest part of the
14783                 patch.  We need a way to link up the window being created to the
14784                 WM_CREATE message.  Since we can only be creating one window at a
14785                 time on a given thread, we keep track of a per-thread reference so
14786                 we can dispatch it properly.  We also need to keep track of the
14787                 Hwnd currently being created so that the win32 backend doesn't
14788                 have problems.
14789                 
14790                 * XplatUIWin32.cs: a similar change to the one we made in
14791                 NativeWindow.cs.
14792
14793 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
14794
14795         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
14796         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
14797         to draw the menu shortcut string.
14798
14799 2007-03-07  Jackson Harper  <jackson@ximian.com>
14800
14801         * TreeNode.cs: Add the 2.0 collapse method.
14802
14803 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
14804
14805         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
14806
14807 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
14808
14809         * DataGridView.cs: Change DataSource will clear column and row
14810         lists. Call Invalidate() to reflect DataSource change.
14811
14812 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
14813
14814         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
14815         and a new row is added to it.
14816
14817 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
14818
14819         * DataGridView.cs: Add columns when DataSource is en empty list but
14820         is a System.Data.DataView (from a System.Data.DataTable).
14821
14822 2007-03-06  Andreia Gaita  <avidigal@novell.com>
14823
14824         * Label.cs: Implement AutoEllipsis (2.0)
14825
14826 2007-03-06  Jackson Harper  <jackson@ximian.com>
14827
14828         * TreeView.cs: Implement 2.0 TopNode setter property.
14829         - Use a local var instead of the skipped_nodes field for computing
14830         how many nodes to skip.  Otherwise we won't scroll because the
14831         valuechanged handler checks if skipped_nodes is equal to the new
14832         value.
14833         - Implement 2.0 Sort method.
14834         - Add useless 2.0 DoubleBuffer property
14835         - Implement 2.0 LineColors property.  Lets you change the color of
14836         the lines in the tree. Terribly useful for creating non cohesive
14837         desktops.
14838         - Implement 2.0 image key feature.
14839
14840 2007-03-06  Jackson Harper  <jackson@ximian.com>
14841
14842         * TreeView.cs: We can't get the bounds of the nodes before raising
14843         the AfterSelect event, because that event could change the node's
14844         bounds (scrolling, font change, etc).
14845
14846 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14847
14848         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
14849         * Form.cs: Don't recreate handle when creating FormWindowManager, just
14850           update window styles. In CreateParams us VisibleInternal instead of
14851           VIsible to get the actual visible flag set for this form.
14852         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
14853           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
14854           handle the case when the form is already maximized, in which case
14855           it should be restored. Fixes #81043.
14856
14857 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14858
14859         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
14860
14861 2007-03-05  Jackson Harper  <jackson@ximian.com>
14862
14863         * TreeViewHitTestInfo.cs: implement.
14864
14865 2007-03-05  Jackson Harper  <jackson@ximian.com>
14866
14867         * InternalWindowManager.cs: class status fix.
14868
14869 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14870
14871         * InternalWindowManager.cs: All windows that have a parent
14872         are confined to their parent when they're being moved.
14873         Fixes #80822.
14874
14875 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
14876
14877         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
14878         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
14879
14880 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14881
14882         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
14883           buttons invisible before deciding which ones should be visible
14884           (fixes minimize/maximize buttons showing up in toolwindows). Remove
14885           an unused variable.
14886         * InternalWindowManager.cs: Remove warning.
14887
14888 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14889
14890         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
14891         to throw an InvalidOperationException is virtual mode is being used.
14892
14893 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
14894
14895         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
14896         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
14897         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
14898         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
14899         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
14900         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
14901
14902 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14903
14904         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
14905           driver.KeyboardDelay from XplatUI.KeyboardDelay 
14906         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
14907           (patch by Sergey Volk)
14908
14909 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14910
14911         * ToolWindowManager.cs: Added, contains logic for
14912           tool windows.
14913         * CreateParams.cs: Add a few helper methods and an
14914           internal variable to know which control the CreateParams belongs
14915           to.
14916         * Control.cs: Call Form.ChangingParent when the
14917           parent is about to be changed.
14918         * XplatUIX11.cs: DeriveStyles (): Set
14919           caption_height for all windows that have captions and are children.
14920           Update to use ToolWindowManager instead of InternalWindowManager
14921           for ToolWindows.
14922         * XplatUIWin32.cs: Set fake window styles for all
14923           windows that have window managers.
14924         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
14925           now duplicated for mdi windows when they are
14926           maximized, first for the buttons the window itself has, then for
14927           the buttons that appear in the menu bar. Makes things a little
14928           easier). Updated UpdateWindowDecorations, SetWindowState and the
14929           mouse eventhandlers accordingly.
14930         * Form.cs: Add ChangingParent (), contains the
14931           logic of what should happen when the parent changes. In MdiParent
14932           don't set things that ChangingParent () is doing. When handling
14933           WM_CLOSE, we can close the form if there are any other modal forms
14934           and the current form is a descendent of the modal form.
14935         * InternalWindowManager.cs: A lot of refactoring,
14936           the title buttons are now extracted to a separate container class
14937           that takes care of all button code (clicks, tooltips, etc). Moved
14938           Iconic|Maximized|Normal Bounds properties to this class from
14939           MdiWindowManager, so that the window state logic can succeed for
14940           other than mdi wm's. Implemented general window state change logic.
14941           Moved CreateButtons to ThemeWin32Classic, since the theme might
14942           override which buttons are available when as well as the exact
14943           location.
14944         * FormWindowManager.cs: Added, contains logic for
14945           normal forms.
14946         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
14947           which buttons go where (and if they are at all visible). 
14948           Removed special handling of maximized windows, since they aren't special. 
14949           In DrawManagedWindowDecorations don't try to draw the text if it is
14950           empty.
14951         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
14952           use whatever the wm gives us.
14953
14954 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
14955
14956         * ButtonBase.cs: Add 2.0 properties.
14957         * Button.cs: Override Draw for 2.0.
14958         * Control.cs: Add Entered and Selected properties.
14959         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
14960         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
14961         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
14962         buttons.
14963         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
14964
14965 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
14966
14967         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
14968
14969 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
14970
14971         * XplatUIWin32.cs: Register a new class with Windows each time we get
14972         a new ClassStyle.  [Fixes bugs #79432, #80817]
14973         * Controls.cs: Set the correct ClassStyle in CreateParams.
14974         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
14975
14976 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
14977
14978         * ListView.cs: Add fireEvent argument to ReorderColumn since the
14979         ColumnReordered event must not be signaled when modifying DisplayIndex
14980         of a ColumnHeader. Added internal ReorderColumns method which takes
14981         care of drawing, and updating the internal DisplayIndex of the
14982         ColumnHeader. Added AddColumn method which is invoked from
14983         ColumnHeaderCollection when adding or inserting columns, and which
14984         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
14985         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
14986         Recalculated dispay indices after removing a ColumnHeader.
14987         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
14988         match MS. Allows last display index to be returned after ListView
14989         is disposed. Update actual location of ColumnHeader when DisplayIndex
14990         is modified.
14991
14992 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
14993
14994         * LinkLabel.cs: Improve CalcTrimRectangle.
14995         
14996         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
14997
14998 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
14999
15000         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
15001         get rectangle as a result value.
15002
15003 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
15004
15005         * LinkLabel.cs: Theres some diferences between rectangle return from 
15006         MeasureCharacterRanges and the area used for DrawString to fix this 
15007         CalcMeasurementFactor method was created, it calcules the diferences
15008         to be use later to adjust rectangle in draw operations. Fixes #80473.
15009         
15010         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
15011         to adjust draw rectangle.
15012
15013 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
15014
15015         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
15016         text and some other changes to reduce and optimize source code.
15017
15018 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
15019
15020         * RadioButton.cs: Implement 2.0 event.
15021         * RelatedImageListAttribute.cs: Implement new class.
15022
15023 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
15024
15025         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
15026
15027 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
15028
15029         * CheckBox.cs: Implement 2.0 functionality.
15030
15031 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15032
15033         * ListView.cs: Refactor Add and AddRange methods of
15034         ListViewItemCollection, to not update the ListView
15035         everytime an item is added in AddRange. Also move the update
15036         code to a new CollectionChanged method, and call it
15037         from other methods that need it as well (this should also fix some
15038         bugs when Sorting is used).
15039
15040 2007-02-27  Jackson Harper  <jackson@ximian.com>
15041
15042         * TextControl.cs: Try to never let the caret stay in a non-text
15043         tag.
15044         * TextBoxBase.cs: Update the caret.
15045
15046 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
15047
15048         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
15049         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
15050         delete POINT structure, duplicate of one in XplatUIStructs.
15051         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
15052
15053 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
15054
15055         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
15056         edit box since otherwise the Label would immediately be set (even if
15057         the user did not modify the label). In OnKeyDown set Handled to true
15058         if Return or Escape was pressed. In ColumnHeaderCollection unlink
15059         columns that are to be removed. In ListViewItemCollection unlink items
15060         that are to be removed.
15061
15062 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
15063
15064         * TextRenderer.cs: If we set a GDI clip region, we need to clear
15065         it when we are done.  [Fixes bug #80949]
15066
15067 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15068
15069         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
15070
15071 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15072
15073         * ListView.cs: I forgot to commit the changes for ListView 
15074         in my previous patch.
15075
15076 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15077
15078         * Clipboard.cs: Partially implement an overload of SetDataObject.
15079         * Form.cs: Implement ShowWithoutActivation.
15080         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
15081
15082 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15083
15084         This is a first set of changes to make the Virtual mode works,
15085         by avoiding the retrieval of ListViewItem instances until
15086         draw time.
15087
15088         * ListView.cs: Store item position in the ListView instead of the
15089         ListViewItem, this way we don't request the Bounds property of
15090         ListViewItem inside the ListView calculations, as well as cache the item
15091         size in item_size field. Store indexes instead of ListViewItem
15092         instances in the matrix used by icon view. Add a ItemMatrixLocation
15093         struct to hold the row and col info of the matrix info.
15094
15095         * ListViewItem.cs: Don't store the location anymore, and only cache
15096         the rectangles for GetBounds. Use the ListView.GetItemLocation
15097         method to retrieve the actual location.
15098
15099 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15100
15101         * TextRenderer.cs: Add clipping support, thanks to George.
15102         [Fixes bug #80949]
15103
15104 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15105
15106         * ListViewItem.cs: Cancel label edit when item is removed from 
15107         ListView.
15108         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
15109         event before the edit textbox is displayed.  Added CancelEdit method
15110         which is used end to editing while ignoring the value set by the
15111         user. In EndEdit, set focus to ListView to avoid losing focus to
15112         other controls. In ListViewItemCollection.Clear, cancel editing of
15113         any of the items.  In Remove, cancel editing of item being removed.
15114         Avoid udplicate code by modifing RemoveAt to invoke Remove.
15115
15116 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15117
15118         * FileDialog.cs: Update FSEntry when move is successful. Fixes
15119         bug #80948.  
15120
15121 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15122
15123         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
15124         compatible with non X11 systems. Fixes #80901.
15125
15126 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15127
15128         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
15129         whether the item should be unselected and reselect. We do no want this
15130         when we're starting to edit the label. Do not fire the 
15131         SelectedIndexChanged event from ListView when its already been fired
15132         by modifying ListViewItem.Selected. Fixes bug #80943.
15133
15134 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15135
15136         * TextRenderer.cs: Previos commit logic was backwards.
15137
15138 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15139
15140         * TextRenderer.cs: Don't add padding on MeasureText if we were
15141         sent the NoPadding flag.
15142
15143 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15144
15145         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
15146         after DrawButton. To prevent image overlaps button borders SetClip and 
15147         ResetClip added before and after draw image. Fixes #79129.
15148
15149 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15150
15151         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
15152         window size, it fix problem when you run under win32 that theres
15153         Size diferent than ClientSize. Also fix controls size and positions
15154         to mimic Win32. Fixes #80837.
15155
15156 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
15157
15158         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
15159         menu area to fix some problems for non X11 systems. Fixes #80613.
15160
15161 2007-02-22  Jackson Harper  <jackson@ximian.com>
15162
15163         * TreeNode.cs: When a node is expanded, set its is_expanded flag
15164         even if it doesn't have any children.
15165
15166 2007-02-22  Jackson Harper  <jackson@ximian.com>
15167
15168         * TreeView.cs: Calculate the top node 'on the fly', this
15169         eliminates issues where you need to click on the tree before
15170         scrolling it to get the top node computed correctly.
15171         * TreeNodeCollection.cs: We don't need to mess with the top node
15172         anymore.
15173
15174 2007-02-22  Jackson Harper  <jackson@ximian.com>
15175
15176         * DataGridViewRow.cs: Fix typo so height can actually be set.
15177         Patch by Peter Grimm.
15178
15179 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15180
15181         * FileDialog.cs: Fixed support for renaming files and directories.
15182         * ListView.cs: Do not lose focus when edit is canceled. Process
15183         Escape as regular key (to prevent closing of dialogs).
15184
15185 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15186
15187         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
15188         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
15189
15190 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15191
15192         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
15193         did not modify label.
15194         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
15195         modified the text. Reset Label when user presses Escape in edit mode.
15196         Move focus to ListView after having cancelled or finished editing the
15197         label.
15198
15199 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
15200
15201         * ComboBox.cs: Removed unnecessary initializations. Marked items field
15202         private. Clear textbox when Text is set to null and SelectedIndex is
15203         already -1.
15204         * FileDialog.cs: Removed unnecessary initializations. Removed 
15205         workarounds for ComboBox bugs that are now fixed. Modified
15206         DefaultExt, InitialDirectory and Title property to change null to
15207         zero-length string in getters. Avoid directly accessing fields.
15208
15209 2007-02-20  Jackson Harper  <jackson@ximian.com>
15210
15211         * TextControl.cs: Remove RecalAlignments call, that was some
15212         debugging leftovers.
15213         - Don't use the line indent when we shouldn't.
15214         * RichTextBox.cs: Add support for paragraph left indents.
15215
15216 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15217
15218         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
15219         Seems like the class status pages doesn't catch params differences.
15220
15221 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
15222
15223         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
15224
15225 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
15226
15227         * ComboBox.cs: Setting Text should have no effect if item text of
15228         selected item exactly matches value. First lookup text using
15229         case-sensitive comparison, and fallback to case-insensitive comparison.
15230         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
15231         allow startIndex to be last index. Changed ArgumentOutOfRangeException
15232         paramname to match MS. Restart from first item if string is not found
15233         after startIndex. Fixed paramname of ArgumentNullException that is
15234         thrown for null value in ObjectCollection.Contains.
15235
15236 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
15237
15238         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
15239
15240 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15241
15242         * ListControl.cs: In SelectedValue use value.Equals to compare for
15243         equality instead of ==, otherwise it will fail for strings.
15244         Fixes #80794.
15245
15246 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15247         
15248         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
15249         since the caret won't show up unless ShowSelection is true. 
15250         Fixes #80795.
15251
15252 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15253
15254         * Application.cs: When disabling all forms but the main form, do not
15255           disable any descendants of the main form (such as mdi children or
15256           other parented forms). Fixes #80822 on Windows.
15257         * Form.cs: If we have a parent, set the WS_CHILD style.
15258         * Control.cs: Update the window styles if the control whose parent has
15259           changed is a form (the WS_CHILD style has to be switched).
15260
15261 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
15262
15263         * XplatUIStructs.cs: MsgUIState structure added.
15264
15265 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
15266
15267         * FileDialog.cs: Removed need for separate fileName field. On 2.0
15268         profile, do not check filename(s) for illegal character if filename(s)
15269         were set non-interactively but always check on 1.0 profile. Fixed NRE
15270          in DefaultExt and only strip off first leading dot. Improve exception
15271         message when invalid Filter is set. Do not ignore InitialDirectory if
15272         it does no exist. Store specified Title, and if empty use default
15273         title (depending on type of dialog). Added an internal DialogTitle 
15274         property for retrieving dialog title. Fixed logic of displayed dir to
15275         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
15276         string as its buggy.
15277         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
15278         FileName is a zero-length string (it can never be null). Override 
15279         DialogTitle property to set default title of dialog box.
15280         * SaveFileDialog.cs: Override DialogTitle property to set default
15281         title of dialog box.
15282
15283 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
15284
15285         * FileDialog.cs: Modify default text of filename and filetype labels
15286         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
15287         after we've updated the SelectedIndex. Fixes part of bug #80887.
15288         * SaveFileDialog.cs: Set text of filetype label.
15289
15290 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15291
15292         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
15293         label field. Needed by latest Jackson's fixes for ListView.
15294
15295 2007-02-16  Andreia Gaita  <avidigal@novell.com>
15296
15297         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
15298         print preview images.
15299
15300 2007-02-16  Jackson Harper  <jackson@ximian.com>
15301
15302         * ListView.cs: Make AfterLabelEdit work correctly.
15303         * FileDialog.cs: After changing the name of the folder, we have to
15304         make sure that it is created, or that we pop up an error because
15305         it already exists.
15306
15307 2007-02-16  Jackson Harper  <jackson@ximian.com>
15308
15309         * X11Dnd.cs: Implement aliases on mime handlers, so things like
15310         System.String are mapped to text.
15311         - Handle dataobjects, getting all the possible formats out of them
15312         - We dont need the drag event args before we give feedback. This
15313         allows feedback cursors to be immediate before selections have
15314         been converted.
15315
15316 2007-02-16  Jackson Harper  <jackson@ximian.com>
15317
15318         * TextBoxBase.cs: Modified the method for inserting images to
15319         taking a line and position instead of tag and position.
15320         * RichTextBox.cs: Handle PngBlip data by inserting the png image
15321         into the RTF file.
15322         * TextControl.cs: Allow images to be inserted as the first tag of
15323         a line.
15324         - Fix some off by one issues when we assume the first tag is a
15325         text tag, not an image tag.
15326
15327 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15328
15329         * ListView.cs: Set focus to ListView when ItemControl gets a
15330         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
15331         Fixes part of #80467.
15332
15333 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15334
15335         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
15336           validate Text input (if null or empty string reset Value to default
15337           value). Fixes #80830.
15338
15339 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15340
15341         * ListView.cs: Set owner as null for columns and items when
15342         Dispose is invoked. Fixes #80607.
15343
15344 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
15345
15346         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
15347         showing DropDowns, don't show a Grip when doing Flow layout.
15348         [This fixes the toolbox in PDN 2.72.]
15349         * ToolStripItem.cs: Add Anchor property and some internal properties to
15350         reduces needed changes to FlowLayout.
15351         * ToolStripOverflow.cs: Remove unused variable.
15352         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
15353         use it in the layout calculations.
15354
15355 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15356
15357         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
15358         reported in #79640.
15359         
15360         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
15361         size calculation.
15362
15363 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15364
15365         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
15366         MeasureString format, it can make button very large in some cases, it is
15367         strange but is what win32 do.
15368
15369 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15370
15371         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
15372         size calculation.
15373
15374         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
15375         rendering, the value is based on MenuAccessKeysUnderlined.
15376
15377 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15378
15379         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
15380         for most themes.
15381         
15382         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
15383         
15384         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
15385         and use MenuAccessKeysUnderlined instead.
15386
15387 2007-02-13  Andreia Gaita  <avidigal@novell.com>
15388
15389         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
15390         A selected control would not get a Focus call if:
15391                 - the default active control of the container is the same as
15392                   the one that was selected
15393                 - we are switching from one container to another
15394         Under these conditions, the container being selected already has
15395         an active_control, which is the same as the one being activated, 
15396         so set_ActiveControl would always return and not send the Focus
15397         call. Fix to check if the currently active control of the container
15398         is actually focused.
15399
15400 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
15401
15402         * StatusStrip.cs: Implement the spring layout.
15403         * ToolStripControlHost.cs: Make sure the hosted control's visibility
15404         always matches the host.
15405         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
15406         and TextAfterImage.
15407
15408 2007-02-13  Andreia Gaita  <avidigal@novell.com>
15409
15410         * Control.cs: Code reorganization only.
15411           - Reorganize the WndProc cases so that each case has it's own handling method, 
15412           to help with the no-line-numbering stack traces.
15413           - Formatting changes (it's vstudio's fault, really :p)
15414
15415 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15416
15417         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
15418           Thread.CurrentUICulture to match DateTimePicker's (and MS)
15419           behaviour.
15420
15421 2007-02-12  Jackson Harper  <jackson@ximian.com>
15422
15423         * RichTextBox.cs:
15424         * TextBox.cs: By default we have a non multiline document
15425         - use the multiline property instead of the internal variable
15426         * TextBoxBase.cs: Treat multiline and non multiline the same in
15427         most places.
15428         - Use the documents multiline flag instead of tracking it ourself
15429         * TextControl.cs: Attempt at getting multiline to match MS
15430         behavior.  Lines now track an offset, which is either their X or Y
15431         offset depending on whether or not we are in multiline mode.
15432         - Update all the methods to understand that lines have an X value.
15433         - Fix crash in Undo::Duplicate when empty lines are deleted.
15434
15435 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
15436
15437         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
15438         code moved to properties PreferredHeight and PreferredWidth. It solve the
15439         all problems when preferred sizes must be recalculated. Fixes #80801.
15440
15441 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
15442
15443         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
15444         font height when compatible_text_rendering is false. Partially fix #80801.
15445
15446 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15447
15448         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
15449
15450 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15451
15452         * Form.cs: Improved exception messages in ShowDialog.
15453
15454 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15455
15456         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
15457         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
15458         if not set. Fixes bug #80764. Avoid accessing current_settings field
15459         directly.
15460
15461 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
15462
15463         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
15464         false.
15465
15466         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
15467         public in 2.0 and for easy maintenance and dont break compatibility it is 
15468         internal in 1.1.
15469         
15470 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
15471
15472         * ToolStripItem.cs: Implement using images from ImageList.
15473
15474 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15475
15476         * DateTimePicker.cs: Change default date-formatting culture from
15477           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
15478           seems to be the way MS does it.
15479
15480 2007-02-08  Andreia Gaita  <avidigal@novell.com>
15481
15482         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
15483         (the 6 was cut off on the right side)
15484
15485 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
15486
15487         * Form.cs: Tell MenuStrips to close when the form is clicked.
15488         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
15489         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
15490         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
15491         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
15492         support for Overflow, where items that do not fit are automatically
15493         reparented to a drop down menu.
15494         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
15495         Also: fixes bug #80747.
15496
15497 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15498
15499         * ComboBox.cs: Remove warning (unused code).
15500         * ScrollableControl.cs: Remove warning for 1.1 profile.
15501
15502 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15503
15504         * Form.cs: Remove a warning.
15505
15506 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15507
15508         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
15509           'g' specifier, not documented anywhere, but seems to always show up
15510           as a single space (might have something to do with the DateTime 'g'
15511           specifier, which is the era format, but since DateTimePicker can't
15512           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
15513           won't crash if the format has an unmatched quote. Now shows
15514           single-character formats correctly. Fixes #80744.
15515
15516 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
15517
15518         * StatusStrip.cs: Stretch property needs to call base.Stretch,
15519         not this.Stretch to fix stack overflow. [Fixes bug #80760]
15520
15521 2007-02-07  Chris Toshok  <toshok@ximian.com>
15522
15523         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
15524         background color.  it overwrites the background image we've
15525         already painted.  Fixes #80599.
15526
15527 2007-02-07  Chris Toshok  <toshok@ximian.com>
15528
15529         * DataGrid.cs: return immediately from Edit() when there are no
15530         columns.  Fixes #80662.
15531
15532 2007-02-07  Chris Toshok  <toshok@ximian.com>
15533
15534         * MessageBox.cs: fix #80625.  don't always show the Help button in
15535         2.0.  use the displayHelpButton parameter to determine if we
15536         should show it. Also, make the internal show_help field private.
15537
15538 2007-02-07  Chris Toshok  <toshok@ximian.com>
15539
15540         * Control.cs (SetVisibleCore): check in the proposed patch for
15541         80604, and set is_visible before calling CreateControl.
15542
15543 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
15544
15545         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
15546         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
15547         on it.
15548
15549 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
15550
15551         * MenuAPI.cs: hotkey_active internal field added, it is required because
15552         we need to know when hotkeys must be draw, before this change a keystate
15553         Navigating was used but we can have menu in navigating state without
15554         hotkeys. Fixes #80694.
15555         
15556         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
15557
15558 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15559
15560         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
15561           corresponding events and methods to be internal for 1.1 profile and
15562           public for 2.0 profile (required by SizeGrip).
15563         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
15564           implicit control list). Don't set the size nor the location of the
15565           SizeGrip anymore as it's not needed.
15566         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
15567           draw directly on the captured control (fixes #80656). Removed
15568           ShowGrip (it wasn't used anywhere), redraw (always true), added
15569           GetDefaultSize and GetDefaultRectangle to calculate defaults.
15570         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
15571           be called from SizeGrip.
15572
15573 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15574
15575         * Timer.cs: Throw ArgumentException if Interval <= 0.
15576
15577 2007-02-05  Jackson Harper  <jackson@ximian.com>
15578
15579         * TreeView.cs: We need to check scrollbar visibility when window
15580         visibility is updated, because non visible trees don't ever add
15581         scrollbars.
15582         * Cursor.cs: We want the override cursor to be reset to NULL when
15583         we set current cursor to the default cursor.
15584
15585 2007-02-05  Jackson Harper  <jackson@ximian.com>
15586
15587         * TextControl.cs: Don't have crlfs when we are non multiline.
15588         - Consolidate the line position.
15589
15590 2007-02-05  Jackson Harper  <jackson@ximian.com>
15591
15592         * X11Keyboard.cs: BACK+CTRL gets a special char code.
15593
15594 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15595
15596         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
15597           handling LeaveNotify->NotifyUngrab in order to send
15598           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
15599           after calling XUngrabPointer, so we call WindowUngrabbed directly
15600           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
15601         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
15602           MouseCaptureChanged correctly. Also create handles if changing
15603           Capture (matches MS behaviour).
15604
15605 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15606
15607         * SizeGrip.cs: Make the last change 2.0 only.
15608
15609 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15610
15611         * SizeGrip.cs: If resizing and the capture is lost, revert any size
15612           changes to initial size (fixes #80597).
15613
15614 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15615
15616         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
15617
15618 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15619
15620         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
15621           background) and only allow dragging if enabled. This way the
15622           sizegrip can be used to fill the open square that otherwise would
15623           have been shown in the bottom right corner of ScrollableControl
15624           when ScrollableControl is not suppose to support sizing.
15625         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
15626           sizegrip is shown and enabled, and hook up with necessary events.
15627
15628 2007-02-01  Chris Toshok  <toshok@ximian.com>
15629
15630         * DataGridTextBoxColumn.cs: clean up the
15631         GetFormattedString/GetColumnValueAtRow combination of functions.
15632         Also fix UpdateUI, and the initial state of
15633         IsInEditOrNavigateMode.
15634
15635         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
15636         aren't supposed to scroll the textbox here, we're supposed to
15637         scroll the datagrid.
15638
15639 2007-02-01  Chris Toshok  <toshok@ximian.com>
15640
15641         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
15642         setting the position.
15643
15644 2007-02-01  Chris Toshok  <toshok@ximian.com>
15645
15646         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
15647         here, since the most recent focus fixes keep us from generating
15648         the Leave event when our textbox gets focus.
15649         (Edit): we should be passing null for the column style's
15650         instantText parameter.
15651         
15652 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
15653
15654         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
15655         raised.  Fixes menu text/icons not showing up in PDN.
15656
15657 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15658
15659         * Control.cs: Remove code in constructor that makes every
15660         control with WS_CHILD set have initial location -1, -1.
15661
15662 2007-01-31  Jackson Harper  <jackson@ximian.com>
15663
15664         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
15665         XplatUIX11.
15666         * XplatUIX11.cs: Give teh keyboard to teh dnd.
15667
15668 2007-01-31  Jackson Harper  <jackson@ximian.com>
15669
15670         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
15671         - Remove some debug code.
15672
15673 2007-01-31  Jackson Harper  <jackson@ximian.com>
15674
15675         * XplatUIX11.cs: If you set the override cursor during a grab, it
15676         should actually override the grab cursor.  This comes into play
15677         when you are setting custom cursors in a DND feedback method.
15678
15679 2007-01-31  Jackson Harper  <jackson@ximian.com>
15680
15681         * X11Dnd.cs: Add support for handling the QueryContinue and
15682         GiveFeedback events.
15683         - Cancel drag and drop actions when the escape key is clicked.
15684         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
15685         can handle the ESCAPE key.
15686         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
15687         done when dnd events are continued after the button is released.
15688         - Add a new helper method so that dnd can translate key events.
15689
15690 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
15691
15692         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
15693         make it more obvious what is happening.
15694
15695 2007-01-30  Jackson Harper  <jackson@ximian.com>
15696
15697         * XplatUIX11.cs: Don't break when handling button release in drag
15698         and drop operations. We need that BUTTONUP message to get through
15699         so capture is released.
15700         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
15701         this is handled automatically when the mouse is down.
15702
15703 2007-01-30  Jackson Harper  <jackson@ximian.com>
15704
15705         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
15706         is closed, so we need to make sure that we aren't changing the
15707         dialog result when the OK (Open or Save) button has been clicked
15708         and we are closing the window ourselves.  Note we don't need to
15709         worry about the cache being written in this case, because it was
15710         already done in the previous FilOk call.
15711
15712 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15713         
15714         * DateTimePicker.cs: Remove a warning.
15715         * ComboBox.cs: Remove a couple of warnings.
15716
15717 2007-01-29  Chris Toshok  <toshok@ximian.com>
15718
15719         * XplatUIX11.cs: don't crash, and remove the icon if the user has
15720         set one, if SetIcon is passed a null icon.
15721
15722 2007-01-29  Andreia Gaita  <avidigal@novell.com>
15723
15724         * TextBox.cs: Redraw when the password characters changes
15725         * TextControl.cs: Check if textbox has a password char and draw 
15726         a line of password chars instead of the text in the line. LineTag gets 
15727         an extra Draw() method which allows document.Draw to override the text 
15728         that will be drawn. Removes 1024 char limitation on length of passworded 
15729         lines.
15730
15731 2007-01-29  Jackson Harper  <jackson@ximian.com>
15732
15733         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
15734         single chars is not.
15735
15736 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
15737
15738         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
15739         one pixel.  Fix a StackOverflowException caused by an overload wrongly
15740         calling itself.
15741
15742 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
15743
15744         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
15745         also remove ProcessArrowKey and put the code inside ProcessKeys.
15746
15747 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
15748
15749         * PaddingConverter.cs: Added.
15750
15751 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15752         
15753         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
15754         ShowPanels is false (fixes #80600). Only draw up to 127 characters
15755         of text (fixes #80601). For panels clip the text to draw to the
15756         panel (fixes #80603).
15757
15758 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15759
15760         * ComboBox.cs: Fixed implementation of ResetText.
15761
15762 2007-01-25  Jackson Harper  <jackson@ximian.com>
15763
15764         * TextControl.cs: For the last char of a line we need to use the
15765         line size, not that chars width, since it won't actually be
15766         computed since the right side of a char is based on the start of
15767         the left side of the next char, and the next char does not exist.
15768
15769 2007-01-25  Chris Toshok  <toshok@ximian.com>
15770
15771         * Splitter.cs: fix the new unit tests, and reindent some switch
15772         statements.
15773
15774 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15775
15776         * ComboBox.cs: Implemented 2.0 methods and events.
15777         * TextBoxBase.cs: Added OnTextUpdate, so that
15778         ComboBox.ComboTextBox can inform ComboBox of it.
15779
15780 2007-01-25  Jackson Harper  <jackson@ximian.com>
15781
15782         * TextControl.cs: Respect ShowSelection when deciding whether or
15783         not to display the caret, this allows comboboxes to have carets
15784         when the combotextbox does not have focus.
15785
15786 2007-01-25  Jackson Harper  <jackson@ximian.com>
15787
15788         * TextControl.cs: Add a Suspend/Resume for updating, basically the
15789         same as the Suspend/Resume for recalc, except this will do actual
15790         Invalidates.
15791         - New Undo manager, works much like the MS version.
15792         - Implemented Redo
15793         * TextBoxBase.cs: The Cut operation is undoable.
15794
15795 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15796         
15797         * TextBoxBase.cs: Don't antialias text. Makes it look way better
15798         on Windows (no difference on Linux).    
15799
15800 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15801
15802         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
15803         we don't want to activate any windows. Fixes #79433.
15804
15805 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
15806
15807         - ButtonBase.cs: Fix capitalization of parameter: disposing.
15808         [Fixes bug #80609]
15809
15810 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
15811
15812         * FileDialog.cs:
15813         - Move to using System.ComponentModel.EventHandlerList
15814         - Replace Refresh with Invalidate
15815         - Clear the mime filecache on closing
15816         - Some other memory reducing work. After beeing closed FD now uses
15817           only about 300 KB for the fdo mime stuff plus the memory of the
15818           cached icons.
15819         * Mime.cs: Changed coding style and removed unnecessary commented
15820         code. Some more memory memory reducing work.
15821
15822 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15823
15824         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
15825         a few other missing 2.0 properties.
15826         * Theme.cs: Added DrawFlatStyleComboBox.
15827         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
15828
15829 2007-01-24  Chris Toshok  <toshok@ximian.com>
15830
15831         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
15832         wake_waiting flag, not just when there's data to be read.  if we
15833         don't, then future wakeup's won't reach us and we'll be doomed to
15834         wait for the entire 1 second timeout forever (unless there are X
15835         events to be had).
15836
15837 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
15838
15839         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
15840         until you pass Items.Count, not Items.Count - 1 like 1.1.
15841
15842 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
15843
15844         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
15845
15846 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
15847
15848         * ToolStripContainer.cs: The recent Dock fix exposed that I was
15849         adding the panels in the wrong order.
15850
15851 2007-01-24  Jackson Harper  <jackson@ximian.com>
15852
15853         * TextBoxBase.cs: When we move the caret we also need to move the
15854         selection, this fixes some random crashing after doing select
15855         text, unselect, delete a char, paste.
15856
15857 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15858
15859         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
15860
15861 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
15862
15863         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
15864         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
15865         * ToolBar.cs: Force redraw in BackgroundImageChanged.
15866
15867 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
15868
15869         * ToolBar.cs:
15870         - Implement support for vertical toolbars. Fixes #80539;
15871         - Call LayoutToolBar when resize, it fix some other problems in layout.
15872         - Rename requested_height to requested_size, as we can have width on it
15873         when toolbar is vertical.
15874         - Create a private property "Vertical" that uses Dock to verify when 
15875         toolbar is vertical or not.
15876         - Set ControlStyles when change Dock property.
15877         - Refactory in LayoutToolBar to have better variables names and to support
15878         vertical toolbars.
15879         - Fixes default value for ButtonSize when button count is equal zero, size
15880         must be (39, 36) test case writed.
15881
15882 2007-01-23  Chris Toshok  <toshok@ximian.com>
15883
15884         * Control.cs: fix the checks so that they work correctly for mdi
15885         parents/children.
15886
15887 2007-01-23  Chris Toshok  <toshok@ximian.com>
15888
15889         * Control.cs: ControlCollection seems to have super-secret
15890         abstraction breaking knowledge of Mdi containers.  allow MdiClient
15891         to add toplevel controls.
15892
15893 2007-01-23  Chris Toshok  <toshok@ximian.com>
15894
15895         * Control.cs: throw an ArgumentException if a toplevel control is
15896         added to our control collection from ControlCollection.Add, as
15897         well as from ControlCollection.IList.Add.  This fixes the
15898         ControlSetTopLevelTest.TestTopLevelAdd unit test.
15899
15900         Also, in ControlCollection.IList.Add, don't through an
15901         ArgumentNullException, throw an ArgumentException, when value ==
15902         null.  This matches MS.
15903
15904 2007-01-23  Chris Toshok  <toshok@ximian.com>
15905
15906         * BindingSource.cs: initial, incomplete, implementation of
15907         BindingSource.
15908
15909 2007-01-23  Jackson Harper  <jackson@ximian.com>
15910
15911         * TextControl.cs:
15912         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
15913         that I can fix a broken unit test (TextBoxTest::ClearUndo)
15914         
15915 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
15916
15917         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
15918
15919 2007-01-23  Andreia Gaita  <avidigal@novell.com>
15920
15921         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
15922         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
15923         IndexOfKey() for 2.0
15924
15925 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15926
15927         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
15928         to prevent it from changing z-order.
15929         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
15930         leave UI updates in MdiWindowManager.
15931         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
15932         1 sized (NC handling goes weird on Linux otherwise).
15933         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
15934         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
15935         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
15936         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
15937         and SetWindowState(s) to allow for changing the size of an activated child
15938         before activating it (reduces a lot of flicker).
15939
15940 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
15941
15942         * Form.cs: Changing FormBorderStyle has different semantics based
15943         on whether the Form is visible or not.  If not visible, don't change
15944         the Size.  But InvalidateNC needs to be called to force the window
15945         to pick up the changes and redraw itself.  [Fixes bug #80574]
15946
15947 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
15948
15949         [Moma work]
15950         * ContainerControl.cs: ProcessCmdKey.
15951         * ErrorProvider.cs: new constructor.
15952         * Form.cs: fix AutoValidateEvent compiler warning.
15953         * Label.cs: fix OnAutoSizeChanged compiler warning.
15954         * MenuStrip.cs: fix CanOverflow compiler warning.
15955         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
15956         * TextBox.cs: Dispose.
15957         * ToolStrip.cs: CanOverflow, re-enable double buffering.
15958         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
15959         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
15960         * ToolStripItem.cs: Overflow, RightToLeft properties.
15961
15962 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15963
15964         * Form.cs: Move the layout of the main form to MdiWindowManager.
15965         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
15966         do a layout of the main window to update MdiClient's client area to
15967         the right area. Fixes #80533. Remove the calculation of nc size, 
15968         it was just wrong and the correct one is the same as for 
15969         InternalWindowManager. 
15970
15971 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
15972
15973         * Control.cs: Setting Anchor or Dock needs to reset the other
15974         to its default.  [Fixes bug #80556]
15975
15976 2007-01-20  Chris Toshok  <toshok@ximian.com>
15977
15978         * CheckedListBox.cs: class status changes.
15979
15980         * ScrollableControl.cs: same.
15981
15982         * RichTextBox.cs: same.
15983
15984         * ContainerControl.cs: same.
15985
15986         * ListView.cs: same.
15987
15988         * NotifyIcon.cs: same.
15989
15990         * MenuStrip.cs: same.
15991
15992         * RadioButton.cs: same.
15993
15994         * CheckBox.cs: same.
15995
15996         * PrintPreviewDialog.cs: same.
15997
15998         * Form.cs: same.
15999
16000 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
16001
16002         * TreeNode.cs: Apply Alan's patch for Name property.
16003
16004 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16005         
16006         * Form.cs: Implemented SizeGripStyle.
16007         * SizeGrip.cs: Check for minimum and maximum size for the
16008         control being resized and only resize if size has actually
16009         changed.
16010
16011 2007-01-19  Chris Toshok  <toshok@ximian.com>
16012
16013         * DataGridColumnStyle.cs: stop setting _readonly in the
16014         PropertyDescriptor setter.  fixes a unit test failure.
16015
16016         also, rename ParentReadOnly to TableStyleReadOnly, and have it
16017         just consult our table style (if we have one).  We don't need to
16018         consult the datagrid readonly attribute because that's passed in
16019         as the _ro arg to Edit.  this simplifies things a little.
16020         
16021         * DataGrid.cs: use CurrentColumn instead of
16022         current_cell.ColumnNumber just to simplify some of the code.
16023
16024         switch the order of some things in the CurrentCell setter to keep
16025         the previous cell from getting a textbox again -
16026         EnsureCellVisibility causes scrolling to happen, which calls Edit.
16027         So we need to set the new cell before calling it.
16028         
16029         call Edit in OnEnter, as does Microsoft.
16030         
16031         also, make sure the current table style isn't the one we create
16032         initially when checking to see if it's different than the one
16033         we're setting it to in BindColumns (this fixes #80421).
16034
16035         * GridTableStylesCollection.cs: table styles can have "" for a
16036         mapping name.  part of the fix for #80421.
16037
16038         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
16039         Edit significantly.
16040
16041 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16042
16043         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
16044         and less GDI object leaky-er.
16045
16046 2007-01-18  Andreia Gaita  <avidigal@novell.com>
16047
16048         * LinkLabel.cs: Add opaque control style
16049
16050 2007-01-18  Jackson Harper  <jackson@ximian.com>
16051
16052         * TextControl.cs: Calculate width properly.
16053         - Don't store the tag's X offset, this can be figured out very
16054         easily.
16055         - When getting the caret tag make sure to get the last empty tag.
16056
16057 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16058
16059         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
16060         [Fixes bug #79959]
16061
16062         * Control.cs: Color.Empty shouldn't count for previous transparent
16063         redraw changes.
16064
16065 2007-01-18  Jackson Harper  <jackson@ximian.com>
16066
16067         * TextBox.cs:
16068         * RichTextBox.cs:
16069         * TextControl.cs: Starting to merge in some pieces of my older
16070         undo work.  Basically just some slight cleanup of the undo API.
16071
16072 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16073
16074         * TrackBar.cs: Fix signature of RightToLeftLayout.
16075         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
16076         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
16077         * Application.cs: Implemented UseWaitCursor.
16078
16079 2007-01-18  Jackson Harper  <jackson@ximian.com>
16080
16081         * TextControl.cs: We can't skip tags if any part of the tag is
16082         visible.
16083
16084 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16085
16086         * ContainerControl.cs: Override OnLayout.
16087
16088 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16089
16090         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
16091
16092         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
16093         everything else.
16094
16095 2007-01-18  Chris Toshok  <toshok@ximian.com>
16096
16097         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
16098         (leftover from the container_selected days, I'd wager).  fixes bug
16099         #80546.
16100
16101 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16102
16103         * Control.cs: Apply patch from George to fix the new testcase on
16104         bug #80451.  We can't just check for Color.Transparent, we need 
16105         to check if the back color's alpha channel is < 255.
16106
16107 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16108
16109         * Form.cs: Move setting show_icon = true to before the constructor
16110         so that the base constructor has that information when it calculates
16111         the form's size.  Was causing forms to be (6, 6) bigger than they
16112         were supposed to be.  Thanks for catching this Rolf!
16113
16114 2007-01-18  Jackson Harper  <jackson@ximian.com>
16115
16116         * TextControl.cs: When replacing a selection we need to invalidate
16117         from the initial selection start, because selection start is moved
16118         to the end of the replacement.
16119
16120 2007-01-18  Andreia Gaita  <avidigal@novell.com>
16121
16122         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
16123
16124 2007-01-18  Chris Toshok  <toshok@ximian.com>
16125
16126         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
16127         I just added.
16128
16129 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
16130
16131         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
16132         layout methods and properties from ToolBarButton must be available
16133         into ToolBarButtonInfo.
16134
16135 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16136
16137         * Control.cs: If the control has a transparent background, we
16138         need to refresh it when it moves and when it's parent's background
16139         image changes.  [Fixes bug #80451]
16140
16141 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16142
16143         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
16144
16145 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16146
16147         * XplatUIWin32.cs: Implement proper double buffering for Windows.
16148         [Fixes bug #80447, and probably speeds up things as well]
16149
16150 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16151
16152         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
16153         * XplatUIWin32.cs: We need to recalculate NC size after changing 
16154         window style to toolwindow (otherwise the client rectangle will be
16155         3 pixels to small for some reason).
16156         * MdiWindowManager.cs: Revert NC size calculations to match how
16157         they are calculated only based on window styles (to match
16158         Win32AdjustWindowRectEx, since otherwise when setting size or 
16159         location, Control will call Win32AdjustWindowRectEx to update client 
16160         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
16161         calculate a different value of client size causing another paint 
16162         (and flickering))
16163         * InternalWindowManager.cs: When moving or resizing a window only
16164         update size or location if they actually changed.
16165         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
16166         (seems to match Windows behaviour better). Cleaned up 
16167         ManagedWindowDecorations to draw what's needed and nothing else
16168         (was drawing borders and lines where they shouldn't be)
16169         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
16170         (style = 0xFFFF) and takes into account caption height when 
16171         calculating window rectangle.   
16172
16173 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
16174
16175         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
16176         can be added to toolbar multiple times, we need to maintain a list of 
16177         button information for each positions.
16178
16179 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
16180
16181         * ToolBar.cs: Some small stetic changes.
16182
16183 2007-01-16  Jackson Harper  <jackson@ximian.com>
16184
16185         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
16186         that allow us to have nested recalc = false blocks.
16187         - Add paste support for images in the RichTextBox
16188         * RichTextBox.cs: flush the text after the color is changed, so
16189         the change takes effect.
16190         - Use SuspendRecalc
16191         - Some extra debugging info
16192         * TextControl.cs: Tags no longer track their length, it is just
16193         computed from the next tags length, this makes things a little
16194         simpler and reduces places that we have to track length changes.
16195         - Refactored the linetag class a little so we could make it
16196         a base class for different kinds of tags
16197         - Created a image tag, a tag that can have a single image inserted
16198         into it
16199         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
16200         that we can call suspend multiple times.
16201         - Add some debugging methods
16202
16203 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16204
16205         * MdiClient.cs: Add ActivatePreviousChild for 
16206         mdi child window navigation.
16207         * Form.cs: Use MdiClient.ActivateNextChild/
16208         ActivatePreviousChild instead of Form.SelectNextControl
16209         to select the next/previous child since 
16210         SelectNextControl doesn't do it in the same order
16211         as mdi children should do it.
16212
16213 2007-01-16  Chris Toshok  <toshok@ximian.com>
16214
16215         * Control.cs: remove container_selected field.
16216
16217 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16218
16219         * MdiClient.cs: Update main form's ActiveChild when
16220         updating keyboard focus for the mdi child.
16221
16222 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
16223
16224         * Control.cs: PreferredSize fix.
16225
16226         * Form.cs: Add several 2.0 events, properties, and methods.
16227
16228 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
16229
16230         * Form.cs: Provide meaningful message when MdiParent is assigned a
16231         Form that is not an MdiContainer.
16232
16233 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16234
16235         * MdiClient.cs: Update main form's ActiveChild when
16236         activating a mdi child.
16237
16238 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16239
16240         * MdiWindowManager.cs: Fix NRE when merging menus and main form
16241         doesn't have a menu.
16242
16243         * Form.cs: Request NCRecalc after creating a mdi child window.
16244         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
16245         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
16246         
16247         * MdiClient.cs: Add new method SendFocusToActiveChild that either
16248         sends keyboard focus to the active child, or to the MdiClient
16249         if there are no child forms.
16250         
16251 2007-01-15  Chris Toshok  <toshok@ximian.com>
16252
16253         * ListView.cs: drop the *Internal overrides, just do our work in
16254         ItemControl's WndProc instead.
16255
16256         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
16257         of the various controls, and forward the events properly (in the
16258         same manner as MS) from the textbox to the UpDown.  Also the
16259         ActiveControl of the UpDownBase gets set properly now.  Finally,
16260         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
16261
16262         * NumericUpDown.cs: set Text in the ctor.
16263
16264         * DomainUpDown.cs: call UpdateEditText in the ctor.
16265         
16266         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
16267         so even a Selectable = false textbox can be focused if you click
16268         in it.  Go figure.
16269
16270         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
16271         just add their handling in their respective WndProc's.  Also add
16272         an explicit FocusInternal method that doesn't consult CanFocus
16273         before calling Select(this).
16274
16275         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
16276         do our work in WndProc instead.
16277
16278         * TabControl.cs: same.
16279
16280         * ComboBox.cs: same.
16281
16282 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
16283
16284         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
16285         Fixes #80006.
16286
16287 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16288
16289         * ListViewItem.cs:
16290         * ThemeWin32Classic.cs: Don't draw the item text outside
16291         item bounds in Details view, as well as use trimming.
16292         Fixes bug #80376.
16293
16294 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
16295
16296         * Form.cs: Implement Form.ShowIcon.
16297         
16298         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
16299         null, which when combined with the DlgModalFrame window style removes
16300         the icon from the title bar.
16301
16302 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
16303
16304         * Control.cs: Call OnMouseClick after OnClick. (2.0)
16305
16306 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
16307
16308         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
16309         menu when mdi child windows theres a menu, uses insert to get icon
16310         at first position. Partially fix #80006.
16311
16312 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
16313
16314         * Clipboard.cs: Implement 2.0 methods.
16315
16316 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
16317
16318         * Menu.cs: Implement Insert method of MenuItemCollection class
16319         to fix MenuMerge.
16320
16321 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16322
16323         * ListView.cs: Implement 2.0 FindItemWithText method.
16324
16325 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
16326
16327         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
16328         to calculate menu bar size. Fixes #80290.
16329
16330 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
16331
16332         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
16333
16334 2007-01-11  Chris Toshok  <toshok@ximian.com>
16335
16336         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
16337         initial form.
16338
16339 2007-01-11  Chris Toshok  <toshok@ximian.com>
16340
16341         * LinkLabel.cs: make sure to call base.Select in our Select method
16342         if it turns out we're going to be selected (i.e. if we have a link
16343         that is going to receive focus).  That way our container's
16344         ActiveControl is updated properly.
16345
16346 2007-01-11  Chris Toshok  <toshok@ximian.com>
16347
16348         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
16349         they have 1 or more links.  this fixes the crash gert reported.
16350
16351 2007-01-11  Andreia Gaita  <avidigal@novell.com>
16352
16353         * ContainerControl.cs: Remove ContainerSelected flag, not needed
16354         anymore.
16355
16356         * Control.cs (Controls.Add): Check if control to be added to the collection
16357         is a top level control, and throw an ArgumentException if it is.
16358         Remove ContainerSelectedFlag, not needed anymore.
16359
16360         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
16361         top most control doesn't activate the form. This fixes a problem in the
16362         MessageBox, where the default button wouldn't get focus because the form
16363         was activated before being Loaded - when the Owner is set, SetTopMost is
16364         called, and it would activate it.
16365
16366 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
16367
16368         * Button.cs: When clicked and setting the parent form's DialogResult,
16369         use FindForm instead of Parent, since parent could be a container
16370         control and not the Form.  Fixes bug #80495.
16371
16372 2007-01-10  Chris Toshok  <toshok@ximian.com>
16373
16374         * Form.cs: move the call to SendControlFocus into the same
16375         is_loaded check.
16376
16377 2007-01-10  Chris Toshok  <toshok@ximian.com>
16378
16379         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
16380         It breaks in the face of the new ActiveControl stuff, and should
16381         be unnecessary.
16382
16383         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
16384         activecontrol's focus if it's not already set, after we set
16385         ActiveControl, but before we call OnActivated.  Re-fixes #79667
16386         after the previous focus/active control fixes regressed it.
16387
16388         * Control.cs: reindent some code.
16389         
16390 2007-01-10  Chris Toshok  <toshok@ximian.com>
16391
16392         * Splitter.cs: clearing some outstanding changes from my tree.
16393         Replace all accesses (not writes) to the internal dock_style field
16394         with the Dock property.
16395
16396 2007-01-10  Chris Toshok  <toshok@ximian.com>
16397
16398         * Control.cs: make FireEnter, FireLeave, FireValidating, and
16399         FireValidated virtual.
16400
16401         * Form.cs: override and don't chain up calls to FireEnter and
16402         FireLeave.
16403
16404 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16405
16406         * ListView.cs: Add more text padding space when using
16407         auto resize for columns (the previous value didn't work fine).
16408
16409         * ThemeWin32Classic.cs: Update text position inside columns,
16410         to match the appeareance of .Net.
16411
16412         * ColumnHeader.cs: When using auto resize, only the Width should
16413         depend on the sub items, not the Height. Also, set width after
16414         auto resizing (the value of Width should never remain as -1 or -2).
16415
16416 2007-01-10  Chris Toshok  <toshok@ximian.com>
16417
16418         * Application.cs: fix compilation errors when debug is enabled.
16419
16420 2007-01-10  Chris Toshok  <toshok@ximian.com>
16421
16422         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
16423         add some nice ascii art pictures and explanation of the process).
16424         (GetMostDeeplyNestedActiveControl): new utility function we need
16425         because our ActiveControl can refer to a child container with its
16426         own ActiveControl.
16427
16428         * Form.cs (OnActivated): remove the call to SelectActiveControl
16429         from here, since you can override this method and not chain up,
16430         and winforms still sets the active control.
16431         (OnCreateControl): also remove the unnecessary SelectActiveControl
16432         call from here.
16433         (WndProc): it's actually called from the WM_ACTIVATE block, just
16434         before calling OnActivated.
16435
16436         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
16437         inside the else.  the ActiveControl setter will end up setting
16438         focus on @control.  This keeps us from setting it again (and
16439         generating an extra LostFocus/GotFocus pair).
16440         (Select (bool, bool)): reindent.
16441
16442 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
16443
16444         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
16445         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
16446         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
16447         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
16448         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
16449         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
16450         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
16451         ToolStripTextBox.cs: Another wave of corcompare work.
16452
16453 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16454
16455         * ColumnHeader.cs: Implement 2.0 AutoResize method using
16456         the Width property.
16457
16458         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
16459         methods by callling Column.AutoResize method on columns.
16460
16461 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
16462
16463         * Control.cs: Provide proper implementations of PreferredSize
16464         and GetPreferredSize (2.0).
16465
16466 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
16467
16468         * Form.cs: Remove one character (!) to make my previous OnClosing
16469         stuff work for modal windows like MessageBox.
16470
16471 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16472
16473         * ListView.cs:
16474         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
16475         ListView.Columns to get the last displayed column. Fixes #80452.
16476
16477 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
16478
16479         * Label.cs, LinkLabel.cs: Source code identation fixes.
16480
16481 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
16482
16483         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
16484         we dont need to invalidate only borders because when we invalidate four
16485         border lines the invalidate's generates a complete redraw of button, 
16486         because it now invalidate a complete rect some other redraws operations
16487         are fixed. Fixes #80196.
16488         
16489         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
16490         Remove ToolBarInvalidateEntireButton as it is not used.
16491
16492 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
16493         
16494         * Form.cs: Make sure that both OnClosing and OnFormClosing are
16495         called for 2.0 profile.
16496         * CloseReason.cs: Make class internal for 1.1.
16497
16498 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
16499
16500         * ToolStripManager.cs: Implement FindToolStrip functionality.
16501         * ToolStrip.cs: Register and unregister with ToolStripManager.
16502
16503 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
16504
16505         * Control.cs: This was messy.  2.0 moves much of ControlCollection
16506         to ArrangedElementCollection.  Implemented this with as few #if's as 
16507         possible (which is still too many).
16508
16509 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
16510
16511         * Control.cs: Implement SizeFromClientSize() [2.0].
16512
16513 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
16514
16515         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
16516         use Theme.BorderSize to calculate area instead of static value 1, 
16517         by the way use new BorderStaticSize instead     Border3DSize when 
16518         border_static is true. Fixes #79537.
16519         
16520         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
16521         
16522         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
16523         it is not needed.
16524
16525 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
16526
16527         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
16528
16529 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
16530
16531         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
16532         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
16533         
16534         * Hwnd.cs: 
16535         - border_static field added, it will used to define when a control 
16536         theres 3D border but it must be static (thin).
16537         - In GetWindowRectangle use Theme.BorderSize to calculate area 
16538         instead of static value 1, by the way use new BorderStaticSize instead
16539         Border3DSize when border_static is true.
16540
16541         * XplatUIX11.cs, XplatUIOSX.cs: 
16542         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
16543         
16544         * Theme.cs: BorderStaticSize field added.
16545
16546 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
16547
16548         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
16549
16550 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
16551
16552         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
16553         mimic same behavior than win32 that set border only in CreateParams,
16554         it fix problems under CreateParams overrides. Fix #79442 and partial
16555         fix #79537.
16556         
16557         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
16558         of thi control you must call recreate handle. 
16559         
16560         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
16561         need to do anything as RecreateHangle will take care about borders.
16562
16563 2007-01-05  Mike Kestner  <mkestner@novell.com>
16564
16565         * ListView.cs: hack to eliminate Lost/Got focus notifications on
16566         cycles between the ItemControl and parent.  Fixes #80388.
16567
16568 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
16569
16570         * Control.cs: Lazy init layout engine. Do not directly use 
16571         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
16572
16573 2007-01-05  Chris Toshok  <toshok@ximian.com>
16574
16575         * DataGrid.cs: don't forceably rebind columns in SetDataSource
16576         unless our list manager has changed (i.e. unless we have reason to
16577         believe our columns have changed).  Fixes #80422.
16578         
16579         also, disable the call do BindColumns in
16580         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
16581         1.1 the event isn't raised in response to a column addition on a
16582         table.)
16583
16584 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
16585
16586         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
16587         that inheritors can not call it if they choose.  Fixes bug #80456.
16588
16589 2007-01-05  Andreia Gaita  <avidigal@novell.com>
16590
16591         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
16592         doesn't blow up with a null exception on marshalling.
16593         
16594 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
16595
16596         * Control.cs: Implement several 2.0 protected properties and methods.
16597         Ensure that all necessary events are being called when properties
16598         are set.
16599
16600 2007-01-05  Mike Kestner  <mkestner@novell.com>
16601
16602         * ListView.cs: implement PgUp/PgDn for Details view.  Also
16603         fixes First/LastVisibleIndex to use the item_control.ClientRect 
16604         instead of the parent control.  Fixes #80378.
16605
16606 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
16607
16608         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
16609           determine whether to use yard-pound or not (bug #78399).
16610
16611 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
16612
16613         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
16614         problems. So it is time to bring back the old popupbutton colors.
16615
16616 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16617
16618         * ColumnHeader.cs:
16619         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
16620         property by using the internal information of the
16621         columns order in ListView.
16622
16623 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
16624
16625         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
16626         Add 2.0 Tag properties.
16627
16628         * LinkArea.cs: Add 2.0 ToString method.
16629
16630 2007-01-03  Chris Toshok  <toshok@ximian.com>
16631
16632         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
16633         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
16634         when we're editing, which fixes #80047.
16635
16636 2007-01-03  Chris Toshok  <toshok@ximian.com>
16637
16638         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
16639         #80404.
16640
16641 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
16642
16643         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
16644         property and implementation.
16645
16646         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
16647         for MdiWindowListItem property.
16648
16649         * ToolStripDropDown.cs: Don't consider hidden menu items while
16650         laying out the menu.
16651
16652 2007-01-03  Andreia Gaita  <avidigal@novell.com>
16653
16654         * SendKeys.cs: window handle is not needed in win32, so just
16655         get the active window for X after parsing keys and don't use
16656         it when building the message; it is passed by parameter to the 
16657         Xplat method and used there to build the message instead. Also,
16658         wait for events to be processed on SendWait, as opposed to Send,
16659         which doesn't wait :) Playing with threads and Send() completely 
16660         hangs on ms.net, only SendWait() works.
16661         
16662         XplatUIX11.cs
16663         X11Display.cs: Check for valid window handle.
16664
16665 2007-01-03  Jackson Harper  <jackson@ximian.com>
16666
16667         * TextControl.cs: Need to prevent wrap calculations when replacing
16668         text (this was there before i removed it accidently).
16669         - Don't update the cursor during the positioning, just set it to
16670         selection_start at the end of the operaion.
16671
16672 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16673
16674         * Control.cs:
16675         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
16676         
16677 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16678
16679         * MonthCalendar.cs: Added Click and DoubleClick events again,
16680         but this time they only hide Control's Click and DoubleClick.
16681         
16682 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
16683
16684         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
16685         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
16686
16687 2007-01-02  Jackson Harper  <jackson@ximian.com>
16688
16689         * TextBoxBase.cs: We move the caret with the split now, so we
16690         don't need to explicitly move the caret after splitting.  This
16691         fixes the caret bumping down an extra line on Enter.
16692
16693 2007-01-02  Miguel de Icaza  <miguel@novell.com>
16694
16695         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
16696         2.72). 
16697
16698         * ScrollableControl.cs: Add Scroll event.
16699
16700 2007-01-02  Mike Kestner  <mkestner@novell.com>
16701
16702         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
16703         to fix all hdr height padding codepaths.  Fixes #80207.
16704
16705 2007-01-02  Chris Toshok  <toshok@ximian.com>
16706
16707         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
16708         setting it to the Control defaults anyway, and it being after the
16709         Dock set was screwing up layout.
16710         (set_Dock): don't short circuit out of setting base.Dock.  Also,
16711         no need to call UpdateStatusBar here, as it'll be re-layed out if
16712         it needs to be.
16713
16714 2007-01-02  Mike Kestner  <mkestner@novell.com>
16715
16716         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
16717         to header height for width == -1. Fixes the rest of #80207.
16718
16719 2007-01-02  Mike Kestner  <mkestner@novell.com>
16720
16721         * ListView.cs: rework the mouse event forwarding everaldo added
16722         to translate the coordinates to the parent control not
16723         raise the parent events until after we've done our work. Hover
16724         needs more work, in the case where HoverSelection is on, because
16725         the item control receives more than one MouseHover per Enter
16726         event, so we need to ensure only the "first" hover gets forwarded.
16727         Opening a minor bug for that.
16728
16729 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
16730
16731         * CheckedListBox.cs: Fixed SelectionMode to match MS.
16732         * ListControl.cs: Implemented AllowSelection property. Removed extra
16733         tabs.
16734         * ListBox.cs: Implemented AllowSelection property.
16735
16736 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16737
16738         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
16739         SelectedItem, it prevent for errors when you must disable item
16740         before perform click. Fixes #80409.
16741
16742 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16743
16744         * MenuAPI.cs: Prevent second level and beyond submenus to close
16745         until first level when move out side of popup.
16746         
16747 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16748
16749         * MenuAPI.cs:
16750         - Down submenu positin in three pixels.
16751         - Closes sub menu when mouse leaves from menu. Fixes #80402.
16752
16753 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16754
16755         * ThemeWin32Classic.cs:
16756         - Fix popup menu size adding one pixel on the top.
16757         - Down menu item border from two to one to mimic Win32.
16758         - Some source identation fixes. 
16759
16760 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
16761
16762         * ThemeWin32Classic.cs: Use float numbers to calculate size and
16763         position of menu arrows, it fix wrong arrow size.
16764
16765 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
16766
16767         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
16768         instead of line, it simplify draw operation and fix it using 3D
16769         borders to mimic Win32.
16770
16771 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
16772
16773         * StatusStrip.cs: Add implementation of the sizing grip.
16774
16775         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
16776         StatusStrip rendering.
16777
16778 2006-12-31  Chris Toshok  <toshok@ximian.com>
16779
16780         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
16781         override the layout style (anchor/dock) of the control.  assign to
16782         Dock instead.  Fixes bug #80416.
16783
16784         * ToolStrip.cs: same.
16785
16786 2006-12-31  Andreia Gaita  <avidigal@novell.com>
16787
16788         * ContainerControl.cs: Use ContainerSelected flag to check if 
16789         a Container is directly selected, or if Select is called on a 
16790         non-container. If a container is directly selected, focus events 
16791         should not be raised.
16792         Apply #80411 patch to throw exception on set_ActiveControl if 
16793         control is the same as the current one.
16794         
16795         * Control.cs: Use ContainerSelected flag (see above).
16796         Add invalidation check to raise event but not invalidate if 
16797         dimensions are 0.       
16798         Apply #80411 patch.
16799         
16800
16801 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
16802
16803         * MenuAPI.cs: After click, dont close popup menu when menu is
16804         ContextMenu. Fixes #80399.
16805
16806 2006-12-30  Chris Toshok  <toshok@ximian.com>
16807
16808         * ContainerControl.cs: make sure we throw the exception if the
16809         container control doesn't contain the control we're setting
16810         ActiveControl to.
16811
16812 2006-12-30  Chris Toshok  <toshok@ximian.com>
16813
16814         * Control.cs (SetTopLevel): fix the exception raised by
16815         SetTopLevel for child controls.
16816         (set_Anchor): call UpdateDistances when setting the anchor type.
16817         This fixes bug #80336.
16818
16819 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
16820
16821         * Theme.cs: For now, revert back to 8pt font.
16822
16823 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
16824
16825         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
16826         Fixes #80395.
16827
16828 2006-12-29  Chris Toshok  <toshok@ximian.com>
16829
16830         * Control.cs: reorder the code in OnResize to give the same event
16831         ordering as MS.
16832
16833 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16834
16835         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
16836         TileHorizontally and TileVertically.
16837         
16838 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
16839
16840         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
16841         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
16842         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
16843         Corrected copyright and email adress.
16844
16845 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
16846
16847         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
16848         of Exception in FullPath property if no TreeView is associated with
16849         the TreeNode.
16850
16851 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
16852
16853         * Theme.cs: Marked default_font as private, and initialize it in ctor
16854         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
16855         on 2.0 profile.
16856         * ThemeGtk.cs: Removed default_font intialization.
16857         * ThemeWin32Classic.cs: Removed default_font initialization.
16858
16859 2006-12-28  Chris Toshok  <toshok@ximian.com>
16860
16861         * Control.cs: fix a couple of place where we were creating handles
16862         more aggressively than we should be.  Fixes ControlRefresh unit
16863         tests.
16864
16865 2006-12-28  Chris Toshok  <toshok@ximian.com>
16866
16867         * Control.cs: contrary to what the comment said, Control.Dock does
16868         not supercede Control.Anchor - the last one you assign to decides
16869         the layout behavior.  so we need to keep track of which was the
16870         last set.  Also, fix some of the affected property arguments in
16871         PerformLayout calls, and remove an redundant parent.PerformLayout
16872         call in OnResized.
16873
16874         Add a VisibleInternal property, which returns is_visible.  We
16875         can/should get rid of all the usage of this field elsewhere.
16876
16877 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16878         
16879         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
16880         control style, not DoubleBuffer. Added UseDoubleBuffering property
16881         that indicates whether doublebuffering is enabled and supported.
16882         (comment from and code based on Gert Driesen's patch in #80324).
16883         Fixes #80324.
16884
16885 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16886         
16887         * Control.cs: Fixed a NRE.
16888
16889 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16890
16891         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
16892         for 2.0.
16893
16894 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16895
16896         * Control.cs: Rewrote double buffering, now a seperate
16897         class handles all the buffering, no Graphics is disposed of
16898         until the painting is finished (earlier implementation 
16899         would crash if the control was resized in the OnPaint, 
16900         since it would cause the double buffer to be recreated
16901         and the old one disposed), a separate Graphics is 
16902         created for every paint (MS behaviour and anyways the state
16903         of the Graphics would have to be saved and restored otherwise)
16904         
16905         * XplatUIDriver.cs: 
16906         * XplatUIX11.cs:
16907         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
16908         so that we can get the graphics for the back buffer without
16909         having to create a new one and remove the offscreen_dc parameter
16910         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
16911         
16912 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16913
16914         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
16915         Also make virtual all the key-related methods.
16916
16917         * ListViewItem.cs: Make virtual the key related methods for
16918         ListViewSubItemCollection.
16919
16920 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16921
16922         * ListView.cs:
16923         * ListViewItem.cs:
16924         * ThemeWin32Classic.cs:
16925         * Theme.cs: Initial support for Tile view in ListView,
16926         as well as the implementation of the required bits for it (Item
16927         and Subitem).
16928
16929 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16930
16931         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
16932         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
16933         Provide useful exception messages.
16934
16935 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16936
16937         * TrackBar.cs: Remove a warning.
16938         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
16939         when used by DateTimePicker, fixes #80287. This also requires that 
16940         MonthCalendar implements it's own drawing for the yearly updown control,
16941         otherwise the Capture tracking would be too complicated. Removed the Click 
16942         and DoubleClick events (according to comments they were hiding the base class
16943         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
16944         raise these events, not that they cannot be raised. It is possible to raise 
16945         them by calling OnClick and OnDoubleClick). Added two internal fields in 
16946         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
16947         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
16948         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
16949         event, no longer needed.
16950         
16951 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16952
16953         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
16954         true if new value differs from current value.
16955
16956 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16957
16958         * Control.cs: ControlCollection.Count must be public. Fixed build of
16959         unit tests.
16960
16961 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16962
16963         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
16964
16965 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16966
16967         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
16968
16969 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
16970
16971         * Control.cs: Invalidates control including when Width and Height is 
16972         equal zero or is not visible, only Paint event must be care about 
16973         this. Fixes #79913.
16974
16975 2006-12-26  Chris Toshok  <toshok@ximian.com>
16976
16977         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
16978         more corcompare work.
16979
16980         * DataGridView.cs: fix compiler warning.
16981
16982         * ColumnHeader.cs: some corcompare work, and also take the
16983         opportunity to make the internal fields private.
16984
16985         * ListView.cs: fix the fallout from the above field change.
16986
16987 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
16988
16989         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
16990         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
16991         ToolStripTextBox.cs: Fixes to events and corcompare.
16992
16993 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
16994
16995         * ListView.cs: Call owner.OnMousexx event to propagate events from
16996         item to ListView. Fixes #80367.
16997
16998 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
16999
17000         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
17001         if value is less than one. ItemHeight should not be set to a value
17002         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
17003         Removed extra tabs.
17004
17005 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
17006
17007         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
17008         * ToolStripStatusLabel.cs: Add Spring for Moma.
17009
17010 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17011
17012         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
17013         Fixed code formatting. Removed debug code.
17014         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
17015
17016 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17017
17018         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
17019         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
17020         ArgumentOutOfRangeException if ColumnCount is negative. In 
17021         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
17022         less than 4 or higher than 32768.
17023         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
17024         Fixed FormatProvider to return CurrentCulture unless explicitly set.
17025         Fixed IsFormatProviderDefault to return true if FormatProvider has
17026         not been explicitly set.
17027
17028 2006-12-25  Chris Toshok  <toshok@ximian.com>
17029
17030         * Application.cs: add a couple of 2.0 events.
17031
17032 2006-12-25  Chris Toshok  <toshok@ximian.com>
17033
17034         * Control.cs: fix compiler warning.
17035
17036         * AxHost.cs: corcompare fixes.
17037
17038         * ApplicationContext.cs: corcompare fixes.
17039
17040 2006-12-25  Chris Toshok  <toshok@ximian.com>
17041
17042         * Control.cs: only update dist_right/dist_bottom if the
17043         width/height is > 0.  this fixes anchored controls being resized
17044         smaller until they disappear and then resized larger again.
17045
17046 2006-12-25  Chris Toshok  <toshok@ximian.com>
17047
17048         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
17049         since they're nothing more than X/Left and Y/Top, respectively.
17050
17051         Also, move back to a per-control Bitmap/Graphics for
17052         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
17053         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
17054         Height.
17055
17056 2006-12-25  Miguel de Icaza  <miguel@novell.com>
17057
17058         * MessageBox.cs: Implemented overload that takes a new "bool
17059         displayHelpButton" by adding a new internal field "show_help".
17060         When clicked this will raise the HelpRequested on the owner or the
17061         main form. 
17062
17063         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
17064         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
17065
17066         * ListView.cs: Add support ColumnWidthChanged and
17067         ColumnWidthChanging. 
17068
17069         Add support for ColumnReordered event.
17070         (ReorderColumn): Add NET_2_0 specific support for cancelling the
17071         reorder.
17072
17073         Very nice codebase!
17074
17075         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
17076
17077         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
17078
17079 2006-12-24  Chris Toshok  <toshok@ximian.com>
17080
17081         * GridTablesFactory.cs: 2.0 corcompare work.
17082
17083         * ToolStripContainer.cs: add "override" to
17084         ContextMenuStripChanged, and remove the local event object.
17085
17086         * ToolStripDropDown.cs: same with a couple properties.
17087
17088         * ToolStripPanel.cs: same with AutoSizeChanged event.
17089
17090         * TextBoxBase.cs: add "override" to AutoSizeChanged.
17091
17092         * Form.cs: add the remaining 2.0 events, and do some corcompare
17093         attribute work.
17094
17095         * DateTimePicker.cs: add "new" to padding.
17096
17097         * ButtonBase.cs: use Control's use_compatible_text_rendering.
17098
17099         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
17100
17101         * DataGridView.cs: PaddingChanged is overridden.
17102
17103 2006-12-24  Chris Toshok  <toshok@ximian.com>
17104
17105         * Control.cs: corecompare work here too.
17106
17107         * DataGridViewElement.cs, DataGridView.cs,
17108         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
17109         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
17110         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
17111         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
17112         work.
17113
17114 2006-12-24  Miguel de Icaza  <miguel@novell.com>
17115
17116         * Control.cs: Switched the error message on the console for a
17117         todo.  A review of the code will have to cope with this anyways
17118         (since its a large feature, it is in our radar) and it was
17119         producing too much output when running PDN.
17120
17121         * ToolStripComboBox.cs: Set the text when the SelectedIndex
17122         changes.  Applications depend on this (PDN 2.72)
17123
17124 2006-12-23  Chris Toshok  <toshok@ximian.com>
17125
17126         * TableLayoutSettings.cs: finish up the corcompare work for this
17127         class.
17128
17129 2006-12-23  Chris Toshok  <toshok@ximian.com>
17130
17131         * Control.cs: make SetImplicitBounds internal, do some futzing
17132         with LayoutEngine so that it's available in 1.1, and remove the
17133         entire duplicated code mess from PerformLayout.  Use
17134         System.Windows.Forms.Layout.DefaultLayout instead.
17135
17136         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
17137
17138 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
17139
17140         * Form.cs: Add MainMenuStrip property.
17141
17142 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
17143
17144         * Control.cs: Add ContextMenuStrip property and implementation.
17145         Fix ContextMenu implementation to show menu centered on control when
17146         activated using the keyboard instead of showing at screen (0,0).
17147
17148         * ToolStripDropDown.cs: Fix needed overload of Show ().
17149
17150 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17151
17152         * Menu.cs: Name property added for 2.0 profile.
17153         
17154 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17155
17156         * Menu.cs: Update information about FindMenuItem, method to be
17157         implemented soon.
17158
17159 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17160
17161         * MenuAPI.cs: When deselect items deselect also selected subitems.
17162         
17163 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17164
17165         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
17166         FindSubItemByCoord to found itens that is not active, also an
17167         cheking added to FindSubItemByCoord to search for items only 
17168         in visible popup windows. Fixes #80274.
17169
17170 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
17171
17172         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
17173         internal property, it be care about change ExStyle. 
17174
17175 2006-12-22  Andreia Gaita  <avidigal@novell.com>
17176
17177         * ContainerControl.cs: set activeControl for parent forms up the 
17178         tree when the new activecontrol is a container.
17179         When validating the active control, if it is a container, also
17180         raise up the validation for it's active control. Fixes #80280
17181         
17182         * Control.cs: Add internal property flag and check to prevent
17183         Focus events from getting raised when Select() is called for
17184         a ContainerControl. There are still too many focus events being
17185         raised at the moment though.
17186         Cleaned up the code a bit.
17187
17188 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17189
17190         * Control.cs: Added all missing 2.0 events.and
17191         fixed a couple of corcompare issues.
17192         * TrackBar.cs: Implemented missing 2.0 bits.
17193         * MonthCalendar.cs, 
17194         * DateTimePicker.cs, 
17195         * MdiClient.cs: Fixed some corcompare issues.
17196
17197 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17198
17199         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
17200         SplitterPanel.cs: corecompare work.
17201
17202 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17203
17204         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
17205         Clean up warnings for BackgroundImageChanged and PaddingChanged
17206         events now that they are implemented in Control.cs.
17207
17208 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17209
17210         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
17211         
17212         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
17213         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
17214         of TableLayoutPanel and supporting cast.
17215
17216 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17217
17218         * XplatUIWin32.cs: 
17219         - GrabWindow now confines the mouse pointer to the confine window.
17220         - Added Win32ClipCursor and Win32GetClipCursor.
17221
17222         * Control.cs: 
17223         - Added CaptureWithConfine to be able to capture and confine 
17224         mouse pointer.
17225         
17226         * InternalWindowManager.cs: 
17227         - Call CaptureWithConfine instead of Capture if we're an
17228         MdiChild (fixes #79982).
17229
17230 2006-12-21  Chris Toshok  <toshok@ximian.com>
17231
17232         * DataGrid.cs: guard against the initial state of selection, where
17233         selection_start == -1.  make sure we only select from index >= 0.
17234         Fixes bug #80291.
17235
17236 2006-12-21  Chris Toshok  <toshok@ximian.com>
17237
17238         * Control.cs: we don't need to be so draconian with
17239         UpdateDistances, and we thusly don't need to call it before
17240         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
17241
17242 2006-12-21  Daniel Nauck  <dna@mono-project.de>
17243
17244         * ComboBox.cs,
17245         TextBox.cs: Implemented AutoComplete properties.
17246
17247 2006-12-20  Chris Toshok  <toshok@ximian.com>
17248
17249         * DataGridView*.cs: some corecompare work.
17250
17251 2006-12-20  Jackson Harper  <jackson@ximian.com>
17252
17253         * XplatUIX11.cs: We need to hide the caret when deleting it,
17254         otherwise you get carets left lying around everywhere.
17255         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
17256         prevents getting some weird half drawn caret tracers when
17257         scrolling.
17258         * TextControl.cs: Attempt to reduce the number of times we need to
17259         recreate the caret.
17260
17261 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
17262
17263         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
17264
17265 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17266
17267         * DateTimePicker.cs:
17268         - Implemented missing 2.0 bits.
17269         - Changed some default values to match MS.
17270         
17271 2006-12-20  Jackson Harper  <jackson@ximian.com>
17272
17273         * TextBoxBase.cs: When changing the font across the document we
17274         can't recalculate after changing each line, since that will cahnge
17275         the line count.
17276         - PreferredHeight is a little different than i thought.
17277         - When backspacing, move the caret before we do the actual char
17278         delete, because when that delete crosses a wrap boundary the
17279         positional information will change.
17280
17281 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17282
17283         * Control.cs: Added some missing 2.0 bits: 
17284         BackgroundImageLayout, BackgroundImageLayoutChanged, 
17285         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
17286         add IBindableComponent and IDropTarget implementation.
17287         
17288         * MonthCalendar.cs: 
17289         - Added all missing 2.0 features:
17290         BackgroundImageLayout, RightToLeftLayout, 
17291         OnHandleDestroyed, RightToLeftLayoutChanged, 
17292         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
17293         PaddingChanged.
17294         - Rewrote all the BoldDate code, it was completely broken.
17295         - Fixed all the tests (the tests can now be re-enabled, the
17296         problems were not with the tests, but with the control, it was
17297         mostly broken).
17298         
17299         * DateTimePicker.cs: Changed the location where the 
17300         MonthCalendar is shown.
17301         
17302 2006-12-19  Chris Toshok  <toshok@ximian.com>
17303
17304         * DataGridView.cs: add IDropTarget implementation.
17305
17306         * ToolStripPanel.cs: add IDropTarget implementation.
17307
17308 2006-12-19  Jackson Harper  <jackson@ximian.com>
17309
17310         * TextControl.cs: soft now means something different than what it
17311         used to mean, we want to move the caret regardless of whether or
17312         not this break was soft (would we really have wanted the caret
17313         to not move with the break in the old context?)
17314         * TreeView.cs: Make sure we factor in the vert scrollbar when
17315         calculating the horizontal scrollbar's maximum.
17316
17317 2006-12-19  Andreia Gaita  <avidigal@novell.org>
17318
17319         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
17320         check for keywords in alternate casing, close bug #80049.
17321
17322 2006-12-19  Chris Toshok  <toshok@ximian.com>
17323
17324         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
17325         methods (which all do nothing).
17326
17327         * IDropTarget.cs: add the 4 missing methods.
17328
17329 2006-12-19  Chris Toshok  <toshok@ximian.com>
17330
17331         * TableLayoutRowStyleCollection.cs: corcompare work.
17332         
17333         * TableLayoutSettings.cs: same.
17334
17335         * TableLayoutStyle.cs: same.
17336
17337         * TableLayoutColumnStyleCollection.cs: same.
17338
17339 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
17340
17341         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
17342         TableLayoutPanel I've had in my local tree for way too long.
17343
17344 2006-12-19  Miguel de Icaza  <miguel@novell.com>
17345
17346         * TableLayoutSettings.cs: Finish the public API (still needs all
17347         the logic to update on changes). 
17348
17349         * TableLayoutPanelCellPosition.cs: new file.
17350         
17351         * TableLayoutRowStyleCollection.cs,
17352         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
17353         TableLayoutSettings.cs: Track the final 2.0 table api.
17354
17355 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17356
17357         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
17358         and Image List 2.0 members for ColummnHeader.
17359         * ListView.cs: Add key-related 2.0 methods for
17360         ColumnHeaderCollection.
17361
17362 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
17363
17364         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
17365         ArgumentNullException if items argument is null. Ignore null item in
17366         arrays. Removed extra tabs.
17367
17368 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
17369
17370         * MonthCalendar.cs: Fixed InvalidCastException.
17371
17372 2006-12-19  Jackson Harper  <jackson@ximian.com>
17373
17374         * TextControl.cs: Don't increment the position here.
17375         - When calculating char positions only add in the line break size
17376         for hard line breaks.
17377
17378 2006-12-19  Andreia Gaita  <avidigal@novell.org>
17379
17380         * SendKeys.cs: Changed some things to match ms.net behaviour
17381         when parsing shifted capital letters.
17382         
17383         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
17384         Add window handle as parameter to SendInput. X11 needs the 
17385         window handle, and the handle being passed      to it in the keys 
17386         queue is the active control handle (which windows needs), not 
17387         the window handle.
17388         
17389         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
17390         to support SendKeys on X.       
17391         
17392         * X11Keyboard: Implement helper method to lookup a linux keycode
17393         given the virtual keycode. Added table of keycode-2-virtualkey
17394         values to support this.
17395
17396 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17397
17398         * ListView.cs: Add support for SelectedIndexCollection
17399         and SelectedItemCollection 2.0 methods. Implement support
17400         for ImageKey too.
17401         * ListViewItem.cs: Add support for ListViewSubItemCollection
17402         2.0 methods. Also, fix an incorrect behavior of AddRange method
17403         (it shouldn't call Clear).
17404         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
17405
17406 2006-12-19  Jackson Harper  <jackson@ximian.com>
17407
17408         * RichTextBox.cs: 
17409         * TextBoxBase.cs: New args for FormatText
17410         * TextControl.cs: Rewrote the main drawing method, this version
17411         feels a little easier to understand and debug to me.  Hopefully it
17412         does to others also
17413         - Fix FormatText to OR in the new formating values.  Added
17414         FormatSpecified param, basically this works in the same way as
17415         BoundsSpecified in Control.
17416         - Set the caret properties when the caret is positioned.
17417         - When wrapping text make sure that we calculate the width of the
17418         last character
17419         - when calculating alignments we might have wrapped down to the
17420         next line, so don't search for an individual tag, search for the
17421         end of the line
17422         - We need to invalidate the selection area when we replace the
17423         selection.
17424         
17425 2006-12-19  Daniel Nauck  <dna@mono-project.de>
17426
17427         * Application.cs: add Restart () 2.0 support
17428
17429 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17430
17431         * MenuItem.cs: Invalidate menu item rectangle after change Enable
17432         property. Fixes #80268.
17433         
17434 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17435
17436         * MenuAPI.cs: Dont trigger select event when closes top menu
17437         item. Fixes #80270.
17438
17439 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17440
17441         * MenuAPI.cs: When you click on menuitem only trigger onselect
17442         event for top menu itens. Fixes #80271.
17443         
17444 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17445
17446         * MdiWindowManager.cs: Make IconicBounds depend on
17447         the bottom of MdiClient, not the top (fixes #80267)
17448         
17449 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17450
17451         * MdiClient.cs: Added missing 2.0 attribute
17452
17453 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17454
17455         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
17456         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
17457
17458 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17459
17460         * MenuAPI.cs: Fix click when menuitem is not popup,
17461         this regression was caused by last commit (#80272).
17462
17463 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
17464
17465         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
17466         fire click event or close menu. Fixes #80272.
17467
17468 2006-12-17  Daniel Nauck  <dna@mono-project.de>
17469
17470         * ListViewHitTestInfo.cs: add
17471
17472 2006-12-17  Daniel Nauck  <dna@mono-project.de>
17473
17474         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
17475         * FlatButtonAppearance.cs: add
17476         * DockingAttribute.cs: add
17477
17478 2006-12-17  Chris Toshok  <toshok@ximian.com>
17479
17480         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
17481         and rebind our columns when it does - this way, if you make
17482         changes to the DataTable (or set the Table attribute on a DataView
17483         after setting it as the DataGrid's DataSource, the changes are
17484         made visible.)  Fixes bug #80107.
17485
17486 2006-12-17  Daniel Nauck  <dna@mono-project.de>
17487
17488         * ListViewGroup.cs: add internal Location property for layouting.
17489         * Theme.cs: add abstract ListViewGroupHeight function.
17490         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
17491
17492 2006-12-16  Andreia Gaita  <avidigal@novell.com>
17493
17494         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
17495         Added reset of selected index to 0 when adding first tab page.
17496         Fixes #80264
17497         
17498         * NumericUpDown.cs: Fix NET_2_0 check
17499
17500 2006-12-16  Daniel Nauck  <dna@mono-project.de>
17501
17502         * ListViewGroup.cs: fixed DefaultValueAttribute value
17503
17504 2006-12-16  Daniel Nauck  <dna@mono-project.de>
17505
17506         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
17507
17508 2006-12-15  Miguel de Icaza  <miguel@novell.com>
17509
17510         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
17511         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
17512         ScrollableControl.cs: Add a handful of methods that are
17513         overwritten in 2.0 
17514
17515 2006-12-15  Chris Toshok  <toshok@ximian.com>
17516
17517         * XplatUIWin32.cs: initial implementation of the Reversible
17518         drawing functions.  there are some problems.  DrawReversibleFrame
17519         doesn't seem to work at all for Dashed FrameStyle, and in the
17520         Thick case there are drawing errors at the corners (we probably
17521         need to bind Rectangle instead of doing moveto/lineto's.)
17522
17523 2006-12-16  Andreia Gaita  <avidigal@novell.com>
17524         
17525         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
17526         to send blocks of key messages. Send accumulates keys to send with Flush, 
17527         while SendWait sends all keys immediately.
17528                 
17529         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
17530         XplatUIX11.cs,  XplatUIX11-new.cs:
17531         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
17532         to Win32 SendInput.
17533         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
17534         
17535         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
17536         testing for ms.net on this class is very tricky, as the tests run too fast 
17537         to allow the hook to release, essentially freezing the keyboard and the 
17538         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
17539         category :p
17540
17541 2006-12-16  Daniel Nauck  <dna@mono-project.de>
17542
17543         * Padding.cs: fixed serialization compability to MS ("_var" field names),
17544                         added missing attributes.
17545  
17546 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17547
17548         * ListViewGroup.cs: Added missing attributes.
17549         * ListViewGroupCollection.cs: Added missing attributes.
17550
17551 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17552
17553         * ListViewItem.cs: fixed ListViewSubItem text property.
17554
17555 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17556         
17557         * Control.cs: Added missing 2.0 attributes
17558         
17559 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17560         
17561         * MdiClient.cs: Added missing 2.0 attribute.
17562         * MonthCalendar.cs: Added some missing 2.0 attributes 
17563         and properties.
17564         
17565 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17566
17567         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
17568
17569 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
17570
17571         * MainMenu.cs: Add the new 2.0 constructor to help out people
17572         using the MainMenu in VS2005.
17573
17574 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17575         
17576         * MdiChildContext.cs: Removed it, no longer used.
17577         * MdiClient.cs: Added missing 2.0 attributes.
17578         
17579 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17580         
17581         * InternalWindowManager.cs: Fix a NullRef with previous 
17582         changes for toolwindows.
17583         
17584 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17585
17586         * Control.cs: 
17587         - Added AfterTopMostControl to allow for certain controls 
17588         to always stay on top when normal controls are brought to 
17589         front.
17590         
17591         * XplatUIWin32.cs: 
17592         - (DrawInversibleRectangle): Get window rectangle from Win32 
17593         in stead of from control, since Win32 doesn't calculate
17594         screen coords correctly from control's Location if it 
17595         have docked siblings.
17596         
17597         * MdiWindowManager.cs:
17598         - Correct the control menu popup location when clicked on
17599         the maximized form icon. (fixes #80223.1)
17600         - Don't show moving rectangle if mouse hasn't moved from
17601         the original clicked point.
17602         - Removed FormGotFocus handler (not used).
17603         - Calculate the control buttons location from the main
17604         window's size and not client size (fixes #79770).
17605         - Form is now closed when the form icon is double-clicked
17606         (fixes #79775). 
17607         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
17608         
17609         * InternalWindowManager.cs:
17610         - Moved some MDI-only methods to MdiWindowManager.
17611         - Removed unused properties and methods.
17612         - Unified method naming for methods handling wm messages.
17613         - Moved all message handling to seperate methods for
17614         each message.
17615         
17616         * ThemeWin32Classic.cs:
17617         - DrawManagedWindowDecorations now draws the title bar 
17618         with a gradient brush.
17619         - Add a CPDrawButtonInternal that allows us to specify
17620         light, normal and dark colors for the buttons (control 
17621         buttons for MDI children were drawn with the same light
17622         color as the background, therefore loosing the 3D effect).
17623         
17624         * SizeGrip.cs:
17625         - Add a CapturedControl property that is used to 
17626         determine the control to resize (defaults to parent). 
17627         Needed for MdiClient, since its SizeGrip's parent is
17628         MdiClient, but the control to resize is the main form.
17629         
17630         * MdiClient.cs:
17631         - Set SizeGrip's CapturedControl to the main form in order
17632         to resize the main form and not the MdiClient.
17633         - Override AfterTopMostControl to leave the scrollbars 
17634         always on top.
17635
17636 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17637
17638         * ListView.cs: fixed ListViewItemCollection AddRange and
17639                         implemented ListViewItemCollection AddRange 2.0 support.
17640
17641 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17642
17643         * ListViewGroup.cs: Add.
17644         * ListViewGroupCollection.cs: Add
17645         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
17646         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
17647                                 stub for ImageKey 2.0 support.
17648
17649 2006-12-14  Mike Kestner  <mkestner@novell.com>
17650
17651         * ListView.cs: add text padding to the autocalculation for columns
17652         of width -2.  Fixes #80207.
17653  
17654 2006-12-14  Mike Kestner  <mkestner@novell.com>
17655
17656         * ListView.cs: add some index guarding for partial row navigation 
17657         logic.  Fixes #80250.
17658
17659 2006-12-14  Mike Kestner  <mkestner@novell.com>
17660
17661         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
17662         are added or inserted to the collection.  Fixes #81099.
17663
17664 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
17665
17666         * MenuAPI.cs: Closes menu when right click out side of popup
17667         it fix problem in ContextMenu and MainMenu. Fixes #80252.
17668
17669 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17670
17671         * ListViewItem.cs: Fix dumb error.
17672
17673         * ListView.cs: Add Find and ContainsKey methods in 
17674         ListViewItemCollection, and also return true for IsReadOnly
17675         and IsFixedSize (changes for 2.0). 
17676
17677 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
17678
17679         * Control.cs: Allow Region to be set to null.
17680
17681 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17682
17683         * MdiWindowManager.cs: Remove unused (commented out) code.
17684         * Form.cs: When the MdiChild is maximized, the form needs 
17685         WM_NCMOUSELEAVE, so request it.
17686         * InternalWindowManager.cs: 
17687         - Added tooltips to control buttons.
17688         - Removed duplicated control button handling code.
17689         - Removed unused (commented out) code.
17690         
17691 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
17692
17693         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
17694         was used because we must set cursor without trigger ChangeCursor event
17695         and without change Cursor control property. Fixes #79963.
17696
17697 2006-12-12  Andreia Gaita  <avidigal@novell.com>
17698         
17699         * Control.cs: Check if Region setter value is null, and ignore
17700
17701 2006-12-12  Jackson Harper  <jackson@ximian.com>
17702
17703         * TextControl.cs: We were almost always drawing one more line then
17704         needed, since the GetLineByPixel will return the last line found
17705         at that pixel. In most cases though, we were invalidating up to
17706         the junction between two lines.
17707         - Improve debug code.
17708
17709 2006-12-12  Chris Toshok  <toshok@ximian.com>
17710
17711         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
17712         and FillReversibleRectangle.
17713
17714         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
17715         and FillReversibleRectangle.
17716
17717         * XplatUIWin32.cs: add stubs which do nothing for
17718         DrawReversibleFrame, DrawReversibleLine, and
17719         FillReversibleRectangle.
17720
17721         * XplatUIOSX.cs: add stubs which raise NIE for
17722         DrawReversibleFrame, DrawReversibleLine, and
17723         FillReversibleRectangle.
17724
17725         * XplatUIX11.cs: add working implementation for
17726         DrawReversibleFrame, DrawReversibleLine, and
17727         FillReversibleRectangle.
17728         
17729         * ControlPaint.cs: implement DrawReversibleFrame,
17730         DrawReversibleLine, and FillReversibleRectangle, by calling into
17731         the appropriate XplatUI method.
17732
17733 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17734
17735         * Form.cs: Make MdiClient have the focus even if it's
17736         not selectable, since it should receive WM_KEY* and WM_MOUSE 
17737         messages. Fixes #79907.
17738         
17739 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17740
17741         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
17742         queried after the window is created.
17743         
17744         * XplatUIX11.cs: Added SendParentNotify to implement 
17745         WM_PARENTNOTIFY logic. Fixes #79965.
17746         
17747         * Control.cs: Added MakeParam.
17748         
17749 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17750
17751         * MdiClient.cs: Resume Layout before setting window
17752         states (fixes #80201).
17753
17754 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17755
17756         * MenuAPI.cs: Deselect a menu item after performing
17757         the click (fixes #80197).
17758
17759 2006-12-11  Jackson Harper  <jackson@ximian.com>
17760
17761         * TextBoxBase.cs: We need to cap this value, since Maximum -
17762         ViewPortHeight can be less than zero.
17763         - Only do selection with the left mouse button.
17764         * TextBox.cs: Don't tell the world that we have a context menu.
17765         * Control.cs: New method so that we can control whether or not the
17766         context menu is visible outside MWF.
17767
17768 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
17769
17770         * ToolBarButton.cs: Fix text positon. 
17771
17772 2006-12-11  Miguel de Icaza  <miguel@novell.com>
17773
17774         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
17775
17776         * Control.cs (DoubleBuffered): Add implementation.
17777
17778         * Application.cs (OpenForms): Add.
17779
17780 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
17781
17782         * Form.cs: Use opacity instead of Opactiy to determine if we need
17783         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
17784
17785 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
17786
17787         * Control.cs: Fix NRE if Control.Site was set to null.
17788
17789 2006-12-11  Chris Toshok  <toshok@ximian.com>
17790
17791         * Control.cs: ControlCollection.Remove should return if the arg is
17792         null, and ControlCollection.SetChildIndex should raise a ANE.
17793
17794 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
17795
17796         * Control.cs: Verify value set for Dock property. Code formatting
17797         updates.
17798
17799 2006-12-11  Jackson Harper  <jackson@ximian.com>
17800
17801         * TextControl.cs: Draw the caret and the selection when a flag is
17802         set on the owner.
17803         * TextBoxBase.cs: We want to draw the caret and the selection for
17804         TextBox but not for TextBoxBase.
17805         - If the window is resized and scrolling is no longer needed (the
17806         whole doc is visible) set the scroll position to zero.
17807         - The default SelectWord (the one TextBox uses) should move the
17808         caret to the end of the word.
17809         - SelectAll moves the caret to the end of the selection.
17810         * TextBox.cs: We don't selectall on focus, we just do it when the
17811         control is created.
17812         
17813 2006-12-11  Mike Kestner  <mkestner@novell.com>
17814
17815         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
17816
17817 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17818
17819         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
17820         2.0 support.
17821         * ListViewItem.cs: Add Name 2.0 property.
17822
17823 2006-12-11  Andreia Gaita  <avidigal@novell.com>
17824
17825         * TabControl.cs: Set visibility on selected or default tab 
17826         when tabcontrol handle is created, so that it's contents
17827         actually show up (duh). Fixes #80193
17828         Don't redraw the control if there is no handle created, as
17829         the selected index might be completely invalid. Added some tests
17830         to check for this.
17831
17832 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
17833
17834         * ToolBar.cs: Uses maximun width and height of all buttons as 
17835         button rectangle when ButtonSize specified, it looks strange but
17836         is what happens in Win32. Fixes #80189.
17837
17838 2006-12-11  Jackson Harper  <jackson@ximian.com>
17839
17840         * TextControl.cs: Need to track undo levels ourself, since
17841         compound actions will mess them up.
17842
17843 2006-12-10  Andreia Gaita  <avidigal@novell.com>
17844
17845         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
17846         SelectedIndex value is changed (even if it's not valid).
17847         Reset SelectedIndex to 0 when the handle is created and if
17848         the current index is invalid.
17849         Fixes SelectdeIndex unit tests and #80128
17850
17851 2006-12-08  Chris Toshok  <toshok@ximian.com>
17852
17853         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
17854         calls EndEdit, it needs to be called before we set current_cell to
17855         its new value.  Otherwise, we end up committing the value in the
17856         textbox to the new cell as well.  Fixes bug #80160.
17857
17858 2006-12-08  Chris Toshok  <toshok@ximian.com>
17859
17860         * Form.cs (set_CancelButton): if the button's DialogResult is
17861         None, set it to Cancel.  Fixes bug 80180.
17862
17863 2006-12-08  Jackson Harper  <jackson@ximian.com>
17864
17865         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
17866         to watch ourselves when setting the canvas size and setting the
17867         scrollbar values.
17868
17869 2006-12-08  Chris Toshok  <toshok@ximian.com>
17870
17871         * DataGrid.cs: comment out the two MakeTransparent calls for the
17872         time being so people using trunk (and not 1.2.2) on windows can
17873         actually use the datagrid.  This deals with bug #80151.
17874
17875 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
17876
17877         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
17878         Graphics.DrawImage (image, int, int, int, int) overload instead
17879         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
17880         the dpi difference and was blurring images it drew.
17881         [Fixes bug #79960]
17882
17883 2006-12-08  Chris Toshok  <toshok@ximian.com>
17884
17885         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
17886         rowcnt is 0 (such as with an empty datasource), and make sure we
17887         initialize not_usedarea.Y to cells.Y, so we don't draw over the
17888         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
17889
17890 2006-12-08  Chris Toshok  <toshok@ximian.com>
17891
17892         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
17893         grid.
17894
17895 2006-12-08  Chris Toshok  <toshok@ximian.com>
17896
17897         [ Fixes bug #80167 ]
17898         
17899         * ThemeWin32Classic.cs: don't draw the image if the button's flat
17900         style is FlatStyle.System.
17901
17902         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
17903         ButtonBase.flat_style private, and switch uses of it to the public
17904         property.
17905         
17906 2006-12-08  Chris Toshok  <toshok@ximian.com>
17907
17908         [ Fixes bug #80121 ]
17909         
17910         * ThemeWin32Classic.cs: center the caption text in the datagrid
17911         when we draw it.
17912
17913         * DataGrid.cs: lessen the amount we add to the caption height from
17914         6 to 2.  6 was making it huge.
17915
17916 2006-12-08  Andreia Gaita  <avidigal@novell.com>
17917
17918         * UpDownBase: Handle MouseWheel call directly instead of capturing
17919         the inner textbox's OnMouseWheel. Fixes #80166
17920
17921 2006-12-08  Jackson Harper  <jackson@ximian.com>
17922
17923         * TextControl.cs: We need to invalidate the textbox when we empty
17924         it (how had this not been discovered before?)
17925
17926 2006-12-08  Jackson Harper  <jackson@ximian.com>
17927
17928         * TextBoxBase.cs: Reworked the mouse down code so I could get it
17929         to behave like MS, we now ignore the eventargs.Click and just
17930         track state ourself, which we were already doing anyways.
17931         - Constrain the double click handler to the double click size.
17932         
17933 2006-12-08  Chris Toshok  <toshok@ximian.com>
17934
17935         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
17936         direction if that scrollbar isn't shown.  fixes bug #80158.
17937
17938 2006-12-08  Andreia Gaita  <avidigal@novell.com>
17939
17940         * NumericUpDown.cs: Update value on getter. Fixes #79950
17941
17942 2006-12-08  Chris Toshok  <toshok@ximian.com>
17943
17944         * MenuItem.cs: add back in the event cloning code.  I didn't know
17945         how to do it in the face of the EventHandlerList work i'd done
17946         last week.  Fixes bug #80183.
17947
17948 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
17949
17950         * Control.cs: Add an invalidate to the BackgroundImage setter.
17951         [Fixes 80184]
17952
17953 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
17954
17955         * ToolStrip*: Add some small properties reported by MoMA, fix event
17956         firing and default properties based off of unit tests, and add some
17957         attributes based off of the class status page.
17958
17959 2006-12-07  Jackson Harper  <jackson@ximian.com>
17960
17961         * TextBoxBase.cs: Take HideSelection into account when determining
17962         whether or not to show the selection.
17963         * RichTextBox.cs: After inserting the RTF into the document move
17964         the cursor to the beginning of the document.
17965
17966 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
17967
17968         * Control.cs: Remove static ArrayList "controls" which maintained
17969         a reference to every control created.
17970         * Application.cs: Create a static FormCollection to maintain a reference
17971         to every form created.  Use it in places that formerly enumerated through
17972         the controls one looking for forms.
17973         * Form.cs: Add and remove self from above FormCollection.
17974
17975 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
17976
17977         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
17978           not libgdk (though it makes me wonder why I didn't have any
17979           problems)
17980
17981 2006-12-07  Chris Toshok  <toshok@ximian.com>
17982
17983         [ you had to know this was coming after that last commit...]
17984         
17985         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
17986         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
17987         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
17988         XCopyArea).
17989
17990 2006-12-07  Chris Toshok  <toshok@ximian.com>
17991
17992         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
17993         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
17994         all the behavior we need for double buffering.
17995
17996         * XplatUIDriver.cs: implement the 3 double buffer methods using a
17997         client side Bitmap, just like the old Control-based double buffer
17998         code did.  The methods are virtual, so each XplatUI driver
17999         subclass can replace the implementation to use a faster, platform
18000         specific approach.
18001
18002         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
18003         double buffer code, and clean things up a bit in the process.
18004
18005 2006-12-06  Chris Toshok  <toshok@ximian.com>
18006
18007         * Control.cs: reindent WndProc.
18008
18009 2006-12-06  Chris Toshok  <toshok@ximian.com>
18010
18011         [ I wanna be like BenM when I grow up ]
18012         
18013         * Hwnd.cs: create a single static Graphics object on the static
18014         Bitmap we create.  use this for our text measurements.
18015
18016         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
18017         This was causing us to allocate a backbuffer for every control,
18018         even when it wasn't flagged as double buffered.  Instead use the
18019         single graphics instance.  This might have implications for
18020         multithreaded applications.  If we run into problems we can switch
18021         to creating 1 Graphics per control, on the static Hwnd bitmap.
18022
18023         this change nets us a 7M savings in private dirty mappings when
18024         running FormsTest.exe.
18025
18026 2006-12-06  Chris Toshok  <toshok@ximian.com>
18027
18028         * ListView.cs: the BackgroundImage override is just to set
18029         attributes.  chain up to base.BackgroundImage.
18030
18031         * RichTextBox.cs: same.
18032
18033         * ToolBar.cs: same, but we need to also redraw the toolbar when it
18034         changes, so instead a handler for BackgroundImageChanged.
18035         
18036         * Control.cs: make background_image private.
18037
18038 2006-12-06  Chris Toshok  <toshok@ximian.com>
18039
18040         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
18041         sure we even need this assignment, but roll with it for now.
18042
18043         * Control.cs: make the cursor field private.
18044
18045 2006-12-06  Chris Toshok  <toshok@ximian.com>
18046
18047         * Form.cs: we don't need to explicitly set ImeMode to
18048         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
18049         behavior in the face of ImeMode.Inherit.
18050
18051         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
18052         change the ctor's assignment to use ImeMode instead of ime_mode.
18053
18054         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
18055         ImeModeInherit.  Only check for the parent's imemode (and return
18056         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
18057         This fixes the button unit test, which sets both ImeMode and
18058         DefaultImeMode to ImeMode.Disable.
18059
18060         also make the ime_mode field private.
18061
18062 2006-12-06  Chris Toshok  <toshok@ximian.com>
18063
18064         * Control.cs: make control_style private.
18065
18066         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
18067         setting the styles to true, then setting them to false instead of
18068         reverting to their previous values.
18069
18070         also, call SetStyle on the scrollbars instead of using
18071         control_style directly.
18072
18073 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
18074
18075         * FormCollection.cs: Implement. [2.0]
18076
18077 2006-12-06  Chris Toshok  <toshok@ximian.com>
18078
18079         * Control.cs: make tab_stop private.
18080
18081         * Label.cs: set TabStop, not tab_stop.  reformat some event
18082         add/remove methods to make them more compact.
18083
18084 2006-12-06  Chris Toshok  <toshok@ximian.com>
18085
18086         * RadioButton.cs: fix TabStop handling.
18087
18088 2006-12-06  Chris Toshok  <toshok@ximian.com>
18089
18090         * TextBox.cs: remove the explicit assignments to has_focus.
18091         Control does that.
18092
18093         * ButtonBase.cs: remove the assignment to has_focus.  Control will
18094         manage that.
18095         
18096 2006-12-06  Chris Toshok  <toshok@ximian.com>
18097
18098         * ButtonBase.cs: remove all uses of is_enabled from this code.
18099         it's always true when any of the code containing the checks is
18100         executed.
18101
18102 2006-12-06  Chris Toshok  <toshok@ximian.com>
18103
18104         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
18105         with different semantics (some are present in both 1.1 and 2.0
18106         profiles) so that we match MS's behavior in our unit tests.
18107
18108 2006-12-06  Jackson Harper  <jackson@ximian.com>
18109
18110         * TextControl.cs: Make this operation undoable.
18111         * TextBoxBase.cs: Factor the border width into the preferred
18112         height.
18113         - implement Modified as per the spec.
18114
18115 2006-12-06  Chris Toshok  <toshok@ximian.com>
18116
18117         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
18118
18119 2006-12-06  Chris Toshok  <toshok@ximian.com>
18120
18121         * Control.cs: make right_to_left and context_menu fields private.
18122
18123 2006-12-06  Chris Toshok  <toshok@ximian.com>
18124
18125         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
18126         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
18127         Control.child_controls private.  switch all uses over to
18128         Control.Controls.
18129
18130 2006-12-06  Chris Toshok  <toshok@ximian.com>
18131
18132         * System.Windows.Forms/GroupBox.cs,
18133         System.Windows.Forms/AccessibleObject.cs,
18134         System.Windows.Forms/ErrorProvider.cs,
18135         System.Windows.Forms/Control.cs,
18136         System.Windows.Forms/UpDownBase.cs,
18137         System.Windows.Forms/ScrollBar.cs,
18138         System.Windows.Forms/DateTimePicker.cs,
18139         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
18140         System.Windows.Forms/ToolTip.cs,
18141         System.Windows.Forms/RadioButton.cs,
18142         System.Windows.Forms/LinkLabel.cs,
18143         System.Windows.Forms/Splitter.cs,
18144         System.Windows.Forms/TextBoxBase.cs,
18145         System.Windows.Forms/ToolStripTextBox.cs,
18146         System.Windows.Forms/ContainerControl.cs,
18147         System.Windows.Forms/ThemeWin32Classic.cs,
18148         System.Windows.Forms/SizeGrip.cs,
18149         System.Windows.Forms/ToolStripDropDown.cs,
18150         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
18151         private.  switch all uses over to Control.Parent.
18152
18153 2006-12-06  Chris Toshok  <toshok@ximian.com>
18154
18155         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
18156         Control does this before calling emitting these events.
18157
18158         * TabControl.cs: same.
18159
18160         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
18161         Control.client_rect.
18162
18163         * ButtonBase.cs: use the ClientSize property instead of the
18164         client_size field.
18165
18166         * ScrollableControl.cs: same.
18167
18168         * Control.cs: another pass at making properties private.  also,
18169         move the initialization of tab_stop to the ctor.
18170
18171 2006-12-05  Andreia Gaita <avidigal@novell.com>
18172
18173         * TabControl.cs: Let the selected index be set freely if the 
18174         control handle is not yet created.
18175
18176 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
18177
18178         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
18179         internal until I can rewrite DefaultLayout.
18180         * ToolStrip.cs: Fix build error and some general cleaning.
18181         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
18182         Fix build errors caused by making some of Control's fields private.
18183
18184 2006-12-05  Jackson Harper  <jackson@ximian.com>
18185
18186         * TextControl.cs: Redo Insert a little so that it use IndexOf
18187         instead of Split, this prevents it from messing up on things like
18188         \n\n\n. Also more effecient since the split array doesn't need to
18189         be created.
18190         * TextBoxBase.cs: AppendText doesnt handle multiline and non
18191         multiline text differently, this is the first of many fixes that
18192         will make multiline/non-multiline the same thing as far as the
18193         TextBoxBase is concerned.
18194         - Don't split the text and insert lines, this can lose some line
18195         endings (like is the last line a soft or hard break). Instead use
18196         the new Insert.
18197         - Fix an off by one when combining all the lines in the Text
18198         getter.
18199         - Remove separate multiline handling from the Text getter/setter.
18200
18201 2006-12-05  Chris Toshok  <toshok@ximian.com>
18202
18203         * ButtonBase.cs: a few changes:
18204
18205         - don't reinitialize internal Control fields in the ctor when they
18206         have the same values as Control sets them.
18207
18208         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
18209         this before calling those methods.
18210
18211         - we don't need to call Refresh for anything.  use Invalidate
18212         instead.
18213
18214         - OnEnabledChanged doesn't need to redraw at all - Control.cs
18215         calls Refresh in its OnEnabledChanged.
18216         
18217         - several of the events we were registered for in the ctor to
18218         redraw ourselves already include calls to Invalidate in the
18219         property setters that raise the events.  remove the extra
18220         invalidation.
18221
18222         - reformat a switch statement that was 83274658 columns wide.
18223         
18224 2006-12-05  Mike Kestner  <mkestner@novell.com>
18225
18226         * ComboBox.cs: fix a unit test regression from a TextBox
18227         SelectionLength return of -1 when there's no selection.  
18228
18229 2006-12-05  Chris Toshok  <toshok@ximian.com>
18230
18231         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
18232         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
18233         cleaning up some of the internal Control fields being used by
18234         subclasses.
18235
18236 2006-12-05  Mike Kestner  <mkestner@novell.com>
18237
18238         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
18239         listbox after AddImplicit calls since it defaults to hidden. Add a 
18240         hack to preserve requested heights across DropDownStyle changes.
18241
18242 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
18243
18244         * PropertyGrid.cs: Hide FindFirstItem method from public API.
18245
18246 2006-12-05  Chris Toshok  <toshok@ximian.com>
18247
18248         * DataGridView.cs: fix compiler warnings.
18249
18250         * PrintControllerWithStatusDialog.cs: same.
18251
18252         * ToolBar.cs: same.
18253
18254         * FolderBrowserDialog.cs: same.
18255
18256         * Splitter.cs: same.
18257
18258         * DataGridViewComboBoxCell.cs: same.
18259
18260         * XplatUIWin32.cs: same.
18261
18262         * PictureBox.cs: same.
18263
18264         * Win32DnD.cs: same.
18265
18266         * PageSetupDialog.cs: same.
18267
18268         * FileDialog.cs: same.
18269
18270         * PrintDialog.cs: same.
18271
18272         * DataGridTextBoxColumn.cs: same.
18273
18274         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
18275
18276 2006-12-05  Chris Toshok  <toshok@ximian.com>
18277
18278         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
18279         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
18280         System.ComponentModel.EventHandlerList work.
18281
18282 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
18283
18284         * DrawTreeNodeEventArgs.cs: Added.
18285
18286 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18287         
18288         * InternalWindowManager.cs: Remove an unused field.
18289         
18290 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18291
18292         * InternalWindowManager.cs:
18293         - Save the point where the title bar is clicked.
18294         
18295         * MdiWindowManager.cs:
18296         - Only allow moving of the window as long as the 
18297         clicked point on the title bar does not get out of
18298         MdiClient's rectangle. Fixes #79982.
18299         
18300         * MdiClient.cs:
18301         - Added Horizontal/VerticalScrollbarVisible.
18302         - Simplified the scrollbar sizing algorithm.
18303         - Cache the difference in scrolled value in
18304         H/VBarValueChanged and move the calculation out
18305         of the for loop.
18306
18307 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18308
18309         * Control.cs: Make the Console.WriteLine in WndProc 
18310         write more info.
18311
18312 2006-12-05  Chris Toshok  <toshok@ximian.com>
18313
18314         * ToolStripManager.cs, ToolStripButton.cs,
18315         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
18316         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
18317         ToolStripSplitButton.cs, ToolStripSeparator.cs,
18318         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
18319         ToolStripProgressBar.cs, ToolStripContainer.cs,
18320         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
18321         to using System.ComponentModel.EventHandlerList.
18322
18323 2006-12-04  Chris Toshok  <toshok@ximian.com>
18324
18325         * LinkLabel.cs: fix up compiler warnings.
18326
18327         * TableLayoutSettings.cs: same.
18328
18329         * TreeView.cs: same.
18330
18331         * ToolBar.cs: same.
18332
18333         * TabControl.cs: same.
18334
18335         * RichTextBox.cs: same.
18336
18337         * ListViewItem.cs: same.
18338
18339         * PropertyGrid.cs: same.
18340
18341         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
18342
18343         * ToolTip.cs same.
18344
18345         * TextRenderer.cs: fix up compiler warnings.
18346
18347         * Label.cs: same.
18348
18349         * Form.cs: corcompare fixes.
18350
18351         * PictureBox.cs: fix up compiler warnings.
18352
18353         * ImageListStreamer.cs: same.
18354
18355         * TrackBar.cs: corcompare fix.
18356
18357         * Control.cs: fix up compiler warnings.
18358
18359         * SplitterPanel.cs: same.
18360
18361         * NumericTextBox.cs: same.
18362
18363         * ImageList.cs: same.
18364
18365         * StatusStrip.cs: same.
18366
18367         * ProgressBar.cs: corcompare fix.
18368
18369         * ToolStripButton.cs: fix up compiler warnings.
18370
18371         * ToolStripStatusLabel.cs: same.
18372
18373         * ToolStripSplitButton.cs: same.
18374
18375         * ToolStripSeparator.cs: same.
18376
18377         * ToolStripProgressBar.cs: same.
18378
18379         * ToolStripDropDownMenu.cs: same
18380
18381         * ToolStripDropDown.cs: same.
18382
18383         * ToolStripDropDownButton.cs: same.
18384
18385         * ToolStrip.cs: same.
18386
18387         * ToolStripControlHost.cs: same.
18388
18389         * ToolStripContentPanel.cs: same.
18390
18391         * ToolStripDropDown.cs: same.
18392
18393         * ToolStripContainer.cs: same.
18394
18395         * ToolStripPanel.cs: same, and add "new" where we need it to work
18396         with the new ArrangedElementCollection.
18397
18398         * ToolStripItemCollection.cs: add "new" where we need it to work
18399         with the new ArrangedElementCollection.
18400
18401 2006-12-04  Andreia Gaita <avidigal@novell.com>
18402
18403         * TabControl.cs: Fix default tab selection to after TabControl
18404         gets focus and not before. Fixes #80128
18405
18406 2006-12-04  Chris Toshok  <toshok@ximian.com>
18407
18408         * DataGridTableStyle.cs: remove the gross calling of
18409         datagrid.Refresh from here.  It's a broken idea and it doesn't
18410         work anyway.
18411
18412         * DataGrid.cs: instead, just register/unregister from the
18413         DataGridTableStyle events in CurrentTableStyle.  we play it
18414         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
18415         even though some would most likely not require it.  Fixes bug
18416         #80115 (and one portion of #80117 as a side effect).
18417
18418 2006-12-04  Chris Toshok  <toshok@ximian.com>
18419
18420         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
18421         so the textbox (if any) goes away.  Fixes bug #80117.
18422
18423 2006-12-04  Chris Toshok  <toshok@ximian.com>
18424
18425         * DataGridColumnStyle.cs: set the column's readonly property
18426         initially based on the property descriptor's IsReadOnly.  Fixes
18427         bug #80044.
18428
18429 2006-12-04  Chris Toshok  <toshok@ximian.com>
18430
18431         * ComboBox.cs: wrap the dropdown style changing work in
18432         SuspendLayout/ResumeLayout.  Fixes bug #79968.
18433
18434 2006-12-04  Jackson Harper  <jackson@ximian.com>
18435
18436         * TextBoxBase.cs: Fix off by one, since these are one-based.
18437         * TextBox.cs: Select all the text when we get focus.  The TextBox
18438         does this but the RTB does not.
18439
18440 2006-12-04  Chris Toshok  <toshok@ximian.com>
18441
18442         * DataGridTextBoxColumn.cs: remove some spew.
18443
18444         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
18445         but some part of me is saying "it shouldn't be here.."  At any
18446         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
18447         setting the value.
18448
18449 2006-12-04  Chris Toshok  <toshok@ximian.com>
18450
18451         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
18452         to reassign the propertydescriptor.
18453
18454 2006-12-04  Jackson Harper  <jackson@ximian.com>
18455
18456         * TextBoxBase.cs:
18457         * TextControl.cs: Remove some unused variables.  Maybe this will
18458         patch things up between mike and I.
18459         - don't split lines less then one char wide, if the viewport is
18460         that small text won't be visible anyways.
18461         
18462 2006-12-04  Jackson Harper  <jackson@ximian.com>
18463
18464         * TextBoxBase.cs: Default selection length is -1, need to do some
18465         more testing on windows to see when this is used for the property.
18466         - Redid the Lines [] property to that we properly remove soft line
18467         breaks
18468         - added support for preserving carriage returns
18469         -  CanUndo is not a variable like 'is undo enabled' it just returns
18470         true if there is undo operations available.
18471         - AppendText doesn't need to grab the last tag itself anymore,
18472         this happens automatically when we move the cursor.
18473         * TextControl.cs: Add CompoundActions to the undo class. This
18474         allows combining the other operations into one big option.  ie a
18475         paste will combine { delete old, insert new, move cursor }
18476         - Add InsertString undo operation
18477         - New method for deleting multiline text
18478         - Add carriage returns to lines. So we can preserve carriage
18479         returns when text is 'roundtripped'
18480
18481 2006-12-04  Chris Toshok  <toshok@ximian.com>
18482
18483         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
18484         minimum 0.  Fixes the scrollbar exception in bug #80136.
18485
18486 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18487
18488         * MdiClient.cs: 
18489         * MdiWindowManager: Removed unused fields and methods.
18490         
18491 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18492         
18493         * StatusBar.cs: Update all panels when a AutoSize=Contents
18494         panel needs updating.
18495         
18496         * StatusBarPanel.cs: Remove twidth and only use initialize.
18497         Fixes #80031.
18498                 
18499 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18500
18501         * Form.cs: When a form's MdiParent is set add it directly
18502         on top of the z-order in stead of relying on MdiClient's
18503         ActivateChild to do it. Fixes #80135.
18504         
18505         * MdiClient.cs: 
18506         - Remove original_order, mdi_child_list is already doing
18507         the same thing.
18508         - Create mdi_child_list on construction in
18509         stead of first use (avoids a few null checks).
18510
18511         * MenuItem.cs: Use an already existing list of mdi children
18512         to get the correct order of children and remove the other
18513         redundant list.
18514
18515 2006-12-04  Chris Toshok  <toshok@ximian.com>
18516
18517         * PropertyGridView.cs: cached_splitter_location is only used in
18518         !DOUBLEBUFFER code.
18519
18520         * PropertyGrid.cs: implement the ComComponentNameChanged event
18521         using Events, hoping that would fix the warning.  Looks like a
18522         compiler bug instead (#80144).
18523
18524         * PropertyManager.cs: remove unused method.
18525
18526 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
18527
18528         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
18529         include parentesis to fix expression evaluation. Fixes #79634.
18530
18531 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
18532         
18533         * MenuAPI.cs:
18534         - Changes to fix behavior in Menu control, some reported in #80097
18535         and other detected during behavior refactory like a select event
18536         problems.
18537         - Remove unneded "if's" conditions.
18538         - Created an internal to flag when popup is active in control, we need 
18539         it because in .NET you can have menu active but without popup active
18540         when you active menu using popup without visible items.
18541         - Mimic win32 behavior for Select and Popup events.  
18542         - Dont open popup menu when you dont have visible subitems.
18543         - Do nothing when click on disabled menu item.
18544         - Some small changes to follow the coding style guidelines.
18545         - Unselect menu only when another control gives focus. Fixes #80097.
18546         - Remove unused code.
18547         
18548         * MenuItem.cs: internal VisibleItems method to check if menu
18549         theres visible subitems, it will be usefull to fix some 
18550         behavior in Menu control.
18551         
18552 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
18553         
18554         * Timer.cs: Tag property for 2.0 profile.
18555         
18556 2006-12-01  Chris Toshok  <toshok@ximian.com>
18557
18558         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
18559         
18560         * Win32DnD.cs: comment out some unused fields.
18561
18562         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
18563         some unused properties/methods.
18564
18565         * XplatUIX11.cs: fix MousePosition so we override the base class's
18566         property instead of conflicting with it.
18567
18568         * PictureBox.cs: comment out some unused fields
18569
18570         * OSXStructs.cs: make some struct fields public.
18571
18572         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
18573         MousePosition so we override the base class's property instead of
18574         conflicting with it.
18575
18576         * X11Dnd.cs: comment out some unused fields
18577
18578         * X11DesktopColors.cs: fix some struct field visibility to quiet
18579         the compiler.
18580
18581         * X11Dnd.cs: remove some debug code.
18582
18583         * ThemeClearlooks.cs: comment out unused field.
18584
18585         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
18586
18587         * ThemeGtk.cs: comment out some unused pinvokes.
18588
18589         * Timer.cs: remove some unused fields.
18590
18591         * ThemeClearlooks.cs: comment out unused field.
18592
18593         * UpDownBase.cs: comment out unused field.
18594
18595         * DataObject.cs: comment out unused field.
18596
18597         * DataGridBoolColumn.cs: reomve unused field.
18598
18599         * DataGrid.cs: remove unused field.
18600
18601         * Cursor.cs: remove old ToBitmap code.
18602
18603         * ControlPaint.cs: remove unused method.
18604
18605         * ScrollBar.cs: remove unused fields.
18606
18607         * ComboBox.cs: remove unused field, and chain up to
18608         AccessibleObject ctor.
18609
18610         * ListBox.cs: remove unused field.
18611
18612         * ButtonBase.cs: wrap a couple fields in NET_2_0.
18613
18614         * GridEntry.cs: remove unused fields.
18615
18616         * Binding.cs: remove unused fields.
18617
18618         * AxHost.cs: remove unused method.
18619
18620         * ContainerControl.cs: remove unused field.
18621
18622         * ScrollableControl.cs: remove unused fields.
18623
18624 2006-12-01  Chris Toshok  <toshok@ximian.com>
18625
18626         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
18627         the Where/WhereString stuff.  it's easy enough to CWL
18628         Environment.StackTrace.
18629
18630         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
18631         unused private fields.
18632
18633 2006-12-01  Jackson Harper  <jackson@ximian.com>
18634
18635         * TextControl.cs: Do not update the view while inserting multiline
18636         text. If we update the view we might wrap lines, before entering
18637         the new lines, which causes the new line insertion calculations to
18638         be totally fubared.
18639         - Remove an old TODO
18640         - Make debug output a little nicer
18641         
18642 2006-12-01  Chris Toshok  <toshok@ximian.com>
18643
18644         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
18645
18646 2006-12-01  Chris Toshok  <toshok@ximian.com>
18647
18648         [ fix the majority of the CS0108 warnings we've been suppressing ]
18649         
18650         * TreeView.cs: mark BackgroundImageChanged as 'new'.
18651
18652         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
18653         to "LayoutToolBar" to quiet mcs.
18654         
18655         * TabControl.cs: mark our ControlCollection class as 'new'.
18656
18657         * TextBoxBase.cs: mark some events as 'new'.
18658
18659         * Splitter.cs: TabStop is 'new'.
18660
18661         * ControlBindingsCollection.cs: mark a few methods as new since
18662         they change the visibility from protected to public.
18663
18664         * RadioButton.cs: DoubleClick -> base class, and remove unused
18665         HaveDoubleClick.
18666
18667         * MonthCalendar.cs: ImeMode property -> base class, and mark many
18668         events as new.
18669
18670         * NumericUpDown.cs: TextChanged -> base class.
18671
18672         * CheckedListBox.cs: mark our ObjectCollection class as new to
18673         quiet mcs.
18674
18675         * FolderBrowserDialog.cs: make HelpRequest event new and have it
18676         muck with the base class.
18677
18678         * StatusBar.cs: fix some mcs warnings about Update being the same
18679         name as a base class method.
18680
18681         * RichTextBox.cs: mark some events as new, and make them do things
18682         to the base class impl.
18683
18684         * UserControl.cs: mark TextChanged as new, and have it manipulate
18685         base.TextChanged.
18686
18687         * UpDownBase.cs: mark some things new.
18688
18689         * CheckBox.cs: mark DoubleClick "new", and add some text about
18690         what we need to look at.
18691
18692         * Panel.cs: make the events "new", and manipulate the base
18693         version.  these are just here for attributes.
18694
18695         * AccessibleObject.cs: make owner private.
18696
18697         * Control.cs: deal with AccessibleObject.owner being private.
18698         cache our own copy if we need it.
18699
18700         * Button.cs: add "new" to the DoubleClickEvent.
18701
18702         * ListBox.cs: no need to track our own has_focus here.  let
18703         Control.has_focus do it for us.  Also some other work to clear up
18704         warnings about not overriding base class methods of the same name.
18705         
18706         * ComboBox.cs: clear up some warnings about not override base
18707         class methods of the same name.
18708
18709 2006-12-01  Chris Toshok  <toshok@ximian.com>
18710
18711         * Form.cs: flag a few things as "new" to quiet some of the mcs
18712         warnings.
18713
18714         * AxHost.cs: same.
18715
18716         * PrintPreviewDialog.cs: same.
18717
18718         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
18719         now DGV isn't so horrible on the class status page.  also, move
18720         all events to using System.ComponentModel.EventHandlerList.  my
18721         wrists hurt.
18722
18723 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18724
18725         * MdiWindowManager.cs:
18726         - Set form to active mdi child if shown,
18727         and update the active mdi child to the next 
18728         remaining child in the z-order if the form is hidden.
18729
18730         * Form.cs: 
18731         - Track if the form has been visible and if its 
18732         visibility is beeing changed, so that the MdiClient
18733         can properly decide the ActiveMdiChild. The MdiClient 
18734         cannot track this since the form can change visibility 
18735         before MdiClient is created.
18736
18737         * MdiClient.cs:
18738         - Don't activate anything of the parent form is changing
18739         its visibility.
18740         - Rework ActiveMdiChild to only return visible mdi 
18741         children and take into account several other corner 
18742         cases.
18743
18744 2006-12-01  Chris Toshok  <toshok@ximian.com>
18745
18746         * IBindableComponent.cs: new 2.0 interface.
18747
18748 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
18749
18750         * DataGrid.cs: Font for caption area is bold by default.
18751
18752 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
18753
18754         * Menu.cs: Tag property for 2.0.
18755         
18756 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
18757
18758         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
18759         
18760 2006-12-01  Chris Toshok  <toshok@ximian.com>
18761
18762         * TreeView.cs: doh, the Begin* events should be
18763         TreeViewCancelEventHandler.
18764
18765 2006-12-01  Chris Toshok  <toshok@ximian.com>
18766
18767         * Form.cs: Form.ControlCollection already stores off the
18768         form_owner field.  don't access the base class's internal "owner"
18769         field.
18770
18771         * Control.cs: make all the fields in Control.ControlCollection
18772         private.  there's no need for any internal fields here.
18773
18774 2006-12-01  Chris Toshok  <toshok@ximian.com>
18775
18776         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
18777         OnHandleCreated.  Fixes bug #80109.
18778
18779 2006-12-01  Chris Toshok  <toshok@ximian.com>
18780
18781         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
18782         SplitContainer.cs, Control.cs, StatusStrip.cs,
18783         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
18784         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
18785         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
18786         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
18787         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
18788         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
18789         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
18790         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
18791         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
18792         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
18793
18794         do most of the work to convert our code over to use
18795         System.ComponentModel.Component.Events for
18796         adding/removing/dispatching events.
18797
18798
18799 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
18800
18801         * DataGridView.cs: Fix an ArgumentNullException reported 
18802         twice today in IRC.
18803
18804 2006-11-30  Mike Kestner  <mkestner@novell.com>
18805
18806         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
18807         grabbed listbox.  Fixes #80036 and #80101.
18808
18809 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
18810
18811         * Message.cs: Changed ToString() to match MS.
18812         
18813 2006-11-30  Jackson Harper  <jackson@ximian.com>
18814
18815         * TextBoxBase.cs: You can still change the selected text on a read
18816         only textbox.
18817         * TextControl.cs: Lower magic number for wrap calculations. This
18818         lets text get closer to the right (far) edge.
18819
18820 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
18821
18822         * Control.cs: Tweak 2.0 layout properties.
18823         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
18824         * TextRenderer.cs: Add a new overload.
18825         * ToolStrip*: Huge amount of changes and new features.
18826
18827 2006-11-30  Mike Kestner  <mkestner@novell.com>
18828
18829         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
18830         scroll range correct.  Fixes #79994.
18831
18832 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
18833
18834         * MdiWindowManager.cs: Update main form's text when
18835         a form is closed. (fixes #80038)
18836         
18837 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
18838
18839         * ToolBar.cs:
18840         - Fix an regression in ButtonSize.
18841         - Get ImeMode default value change to "Disable".
18842         - Get ShowTooltips default value change to true, default value is 
18843         "false" but after make a test in .NET we get "true" result as default.
18844         
18845 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
18846
18847         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
18848
18849 2006-11-29  Chris Toshok  <toshok@ximian.com>
18850
18851         * XplatUIWin32.cs (GetWindowTransparency): check return value of
18852         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
18853         SetWindowTransparency hasn't been called.
18854
18855 2006-11-29  Chris Toshok  <toshok@ximian.com>
18856
18857         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
18858         if it's supported.
18859         (set_AllowTransparency): reorder things a little so that the
18860         WS_EX_LAYERED style is removed properly.
18861
18862 2006-11-29  Chris Toshok  <toshok@ximian.com>
18863
18864         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
18865         
18866         * Form.cs: only call the XplatUI transparency method (get/set) if
18867         SupportsTransparency says it's supported. Otherwise fallback to
18868         doing nothing (in the set case) or returning the instance field we
18869         cache (in the get case).
18870
18871         * XplatUIStructs.cs: add TransparencySupport flag enum.
18872         
18873         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
18874         change to SupportsTransparency.
18875
18876         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
18877         TransparencySupport.None from SupportsTransparency.
18878
18879         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
18880         TransparencySupport.Set from SupportsTransparency.
18881
18882         * XplatUIWin32.cs: implement GetWindowTransparency calling
18883         GetLayeredWindowAttributes, and implement SupportsTransparency by
18884         checking whether or not both
18885         GetWindowTransparency/SetWindowTransparency are available
18886         entrypoints.  We need to do this since SetWindowTransparency is
18887         available as of win2k, but GetWindowTransparency requires winxp.
18888         yay win32 api.
18889
18890         * XplatUI.cs: Add GetWindowTransparency, and change
18891         SupportsTransparency to allow for either/both Get/Set.
18892
18893 2006-11-29  Chris Toshok  <toshok@ximian.com>
18894
18895         * DataGrid.cs: keep from going into an infinite loop redrawing a
18896         datagrid that has no datasource.  Fixes bug #80033.
18897
18898 2006-11-29  Chris Toshok  <toshok@ximian.com>
18899
18900         * MenuItem.cs: fix the NRE when we assign text (and therefore call
18901         Invalidate) before the mainmenu has been assigned to a control.
18902
18903 2006-11-29  Chris Toshok  <toshok@ximian.com>
18904
18905         * DataGrid.cs: detect when we should be double the double click
18906         row/column autosize stuff, although that codepath has yet to be
18907         written.  part of the work for bug #79891.
18908
18909 2006-11-29  Chris Toshok  <toshok@ximian.com>
18910
18911         * Binding.cs (SetControl): fix unit test.
18912
18913 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18914
18915         * PageSetupDialog.cs: Validate the margins and set them in
18916         PageSettings. 
18917         * NumericTextBox.cs: New class to mimic the behavior of the
18918         textboxes used in the printing dialogs.
18919
18920 2006-11-29  Andreia Gaita  <avidigal@novell.com>
18921         
18922         * Form.cs: Revert previous change (remove call UpdateBounds
18923         from form constructor), because it messes with the handle creation
18924         order, and that one needs lots and lots of love.
18925         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
18926         for valid printer and throw InvalidPrinterException if document
18927         is set but printer not valid), adding a MonoTODO. Once 
18928         handle creation is done properly, we can put this back in.
18929
18930 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
18931
18932         * MenuItem.cs: Create a invalidate method for menu item, to be
18933         calling from set text, it make text changes to imadiate update
18934         on screen. Fixes #80013. 
18935         
18936 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
18937
18938         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
18939         fixes bug #80070 and some other problem on toolbar buttons
18940         layout.
18941
18942 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
18943
18944         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
18945         with dotted brush.      Fixes #79564
18946         
18947 2006-11-28  Andreia Gaita  <avidigal@novell.com>
18948
18949         * Form.cs: Removed call to UpdateBounds on Form
18950         constructor, it was causing a call to CreateHandle
18951         before it was supposed to.
18952         * PrintControllerWithStatusDialog: Applied patch
18953         by Chris Toshok to hide controller when there are
18954         no printers available.
18955         PrintDialog.cs: initialize printer settings to 
18956         null - correct DefaultValues test #5
18957         * PrintPreviewControl.cs: Move PrintController
18958         initialization to GeneratePreview
18959         * PrintPreviewDialog.cs: 
18960         - Remove Preview generation     from Document_set(). It is 
18961         called on OnPaint
18962         - Throw InvalidPrinterException on CreateHandle if
18963         a Document is set but there are no printers or 
18964         printer is not valid.
18965         * ThemeWin32Classic: don't paint PrintPreviewControl
18966         if there is nothing to paint    
18967
18968 2006-11-28  Miguel de Icaza  <miguel@novell.com>
18969
18970         * Form.cs: Add another popular method.
18971
18972         * TabPage.cs: ditto.
18973
18974 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18975
18976         * MenuItem.cs: Fixed a warning.
18977         * InternalWindowManager: Fixed a warning.
18978
18979 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18980
18981         * MenuItem.cs:
18982         - When cloning a menu also clone MdiList and clone the 
18983           window menu items properly (as the forms and menuitems
18984           are kept in an internal hashtable, these need updating 
18985           as well)
18986         - Rewrote the window menu code, menu items are added in the
18987           order the forms were added to their parent, and they are
18988           updated every time the window menu is shown (before the
18989           list was only generated once, in the current order of the
18990           forms, and would never be updated). A checkmark is shown
18991           next to the item corresponding to the active mdi child.
18992
18993 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18994
18995         * XplatUIStructs.cs: 
18996         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
18997         
18998         * XplatUIWin32.cs: 
18999         - Added TME_NONCLIENT to TMEFlags.
19000         - Handles WM_NCMOUSEMOVE in GetMessage to 
19001           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
19002
19003         * MdiWindowManager:
19004         - Now merges mdi child menu to parent menu when maximized.
19005         - Recalculate NC areas of both mdi child and mdi parent. 
19006           Fixes #79757 (4).
19007           on window state and size changes.Fixes #79844 (3).
19008         - Handle WM_NCCALCSIZE to properly calculate borders.
19009
19010         * Form.cs:
19011         - Add/remove to the mdi containers list of mdi children 
19012           in the order they are added.
19013         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
19014           to the maximized mdi child.
19015         
19016         * InternalWindowManager.cs:
19017         - Only execute a click on the control buttons on the mouse up,
19018           not on the mouse down. Show the state of the button 
19019           (was only showing Normal state, never Pressed state). The
19020           pressed button now follows the mouse (if you click the Close 
19021           button and move the mouse over the Maximize button, the 
19022           Maximize button will be shown as pressed). Since Win32 does
19023           not generate WM_NCLBUTTONUP if you release the button outside
19024           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
19025           it as a mouse up.
19026         
19027         * ThemeWin32Classic.cs:
19028         - Draw a missing border around mdi child forms. Fixes #79844 (2).
19029
19030         * MdiClient.cs:
19031         - Added a list of forms which contains the order the forms are
19032           added to the mdi parent.
19033         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
19034         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
19035         - If the active form changes set the scrollbars to the top
19036           of the Z order, otherwise the form could hide them.
19037         - Scrollbars are now sized according to ClientSize, not 
19038           to Size, and they take into account the other scrollbar
19039           to determine maximum.
19040         
19041 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
19042         
19043         * XplatUI.cs:
19044         * XplatUIDriver.cs:
19045         * XplatUIX11.cs:
19046         * XplatUIWin32.cs:
19047         * XplatUIOSX.cs:
19048         - Added RequestAdditionalWM_NCMessages for windows to 
19049           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
19050           Currently only implemented in XplatUIWin32.
19051
19052 2006-11-27  Chris Toshok  <toshok@ximian.com>
19053
19054         * Hwnd.cs: only add the hwnd to the windows hash in
19055         set_WholeWindow and set_ClientWindow if whole_window/client_window
19056         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
19057
19058 2006-11-27  Mike Kestner  <mkestner@novell.com>
19059
19060         * ComboBox.cs: remove redundant OnDropDown call.  It is called
19061         from the ComboListBox.ShowWindow code. Fixes #79969.
19062
19063 2006-11-27  Chris Toshok  <toshok@ximian.com>
19064
19065         * Hwnd.cs: remove the setters for ExposePending and
19066         NCExposePending - noone uses them.
19067
19068 2006-11-27  Jackson Harper  <jackson@ximian.com>
19069
19070         * TextControl.cs: new param for ReplaceSelection which determines
19071         whether we select the new selection, or set the cursor to the end
19072         of the new selection.
19073         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
19074         pasting, select the new text.
19075         * RichTextBox.cs: Use new param for ReplaceSelection.
19076
19077 2006-11-27  Jackson Harper  <jackson@ximian.com>
19078
19079         * TextBoxBase.cs: Set the selection to the caret after the caret
19080         is moved, otherwise they get out of sync.
19081
19082 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
19083
19084         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
19085         it fixes #80015
19086
19087 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
19088
19089         * ThemeWin32Classic.cs: 
19090         - Fix toolbar drop down arrow position.
19091         - Fix drop down appearance when ToolBar.Appearance is normal,
19092         it fixes #80018.
19093         
19094 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
19095
19096         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
19097         * Control.cs: Same.
19098         * UpDownBase.cs: Same.
19099         * ButtonBase.cs: Same.
19100         * ScrollBar.cs: Same.
19101         * TrackBar.cs: Same.
19102         * PictureBox.cs: Same.
19103         * UserControl.cs: Same.
19104         * Label.cs: Same.
19105         * ListControl.cs: Same.
19106         * TextBoxBase.cs: Same.
19107         * ListView.cs: Same.
19108         * RichTextBox.cs: Same.
19109         * TreeView.cs: Same.
19110
19111 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
19112
19113         * PrintDialog.cs:
19114         - Text label for where 
19115         - Text label comment was not shown
19116
19117 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
19118
19119         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
19120
19121 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19122
19123         * InternalWindowManager.cs: 
19124         - Handle WM_PARENTNOTIFY to activate the form
19125         if any child control is clicked.
19126         - The form is only sizable if not minimized.
19127
19128         * MdiWindowManager.cs:
19129         - Save the IconicBounds if the form is moved.
19130         - Rework SetWindowState, now the window bounds 
19131         are stored only if the old window state is Normal.
19132         
19133         * MdiClient.cs:
19134         - In SetWindowStates store the old window state if 
19135         the window is maximized and restore window state if
19136         the window looses focus.
19137         - Don't handle any scrollbar value changes if 
19138         initializing the scroll bars. Fixes #79771.
19139         - Reworked ArrangeIconicWindows. Current algorithm
19140         tests bounds agains all other minimized windows, if
19141         any intersections create new bounds (going left to 
19142         right, bottom to top) and then test again. When 
19143         successful the bounds are saved and never computed
19144         again. Fixes #79774.
19145
19146 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19147
19148         * InternalWindowManager.cs: Added HandleTitleBarUp.
19149
19150 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19151
19152         * NumericUpDown.cs: In .NET 1.1, user entered text is still
19153         hexadecimal in ParseUserEdit.
19154
19155         
19156 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19157
19158         * MdiWindowManager.cs: 
19159         - Handle a click on the form's icon to show the 
19160         system menu (when maximized). Fixes #79775.
19161         - Change the existing click handler for the form's
19162         icon when not maximized to show on MouseUp.
19163         Fixes #79776.
19164
19165         * Form.cs: In OnResize only layout the mdi child's
19166         parent if it actually has a parent. Might not if
19167         the window is closing.
19168
19169
19170 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19171
19172         * MdiClient.cs: Ignore active MDI client for text of parent, if
19173         child has no text set.
19174
19175 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19176
19177         * ToolBar.cs: Fixed ToString to match MS.
19178
19179 2006-11-22  Andreia Gaita  <avidigal@novell.com>
19180
19181         * NumericUpDown: 
19182         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
19183         update inner values on set. Fixes #79966.
19184         - Override OnLostFocus to update value on NET 2. Fixes #79950.
19185         - Fix hexadecimal parsing.
19186         
19187         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
19188         parent. Fixes #79957
19189
19190 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19191
19192         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
19193         the actual size has to be queried, since if height /
19194         width is negative Win32 changes it to 0. 
19195         Fixes #79999 on Windows.
19196         
19197         * XplatUIX11.cs: Set height / width to 0 if negative
19198         in SetWindowPos. Fixes #79999 on Linux.
19199         
19200 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
19201
19202         * ThemeWin32Classic.cs: Fix text redenring when button is
19203         pressed.
19204
19205 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
19206
19207         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
19208         and later navigate by mouse. Fixes #79528.
19209
19210 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
19211
19212         * ToolBar.cs: Set default value for TabStop to false in
19213         constructor, it fixes remaining behavior of bug #79863.
19214
19215 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19216
19217         * MdiWindowManager.cs:
19218         * InternalWindowManager.cs:
19219         - Moved a few methods specific to Mdi from 
19220         InternalWindowManager to MdiWindowManager.
19221         Fixes #79996.
19222         
19223 2006-11-21  Chris Toshok  <toshok@ximian.com>
19224
19225         * XplatUIOSX.cs: stub out InvalidateNC.
19226
19227         * XplatUIWin32.cs: implement InvalidateNC using the call I found
19228         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
19229
19230         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
19231
19232         * XplatUIDriver.cs: add InvalidateNC abstract method.
19233
19234         * XplatUI.cs: add InvalidateNC.
19235
19236 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
19237
19238         * ToolBar.cs: Invalidate complete button area when pressed status 
19239         was changed.
19240         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
19241         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
19242         by 1 when button is pressed.
19243
19244 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19245
19246         * ToolButton.cs: Invalidate middle of DropDown button when
19247         ToolBar theres DropDownArrows.
19248         * ThemeWin32Classic.cs: Change position of DropDown arrow and
19249         fix DropDown drawing operations.
19250
19251 2006-11-20  Chris Toshok  <toshok@ximian.com>
19252
19253         * NativeWindow.cs: fix the formatting of functions ('{' on the
19254         following line), and enable the thread exception dialog.
19255
19256         * Application.cs: remove the duplicate exception catching from
19257         here.
19258
19259 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19260
19261         * Toolbar.cs: Triggers button click event when click on icon
19262         of dropdown ToolBarButton. Fixes #79912.
19263         
19264 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19265
19266         * Theme.cs:
19267         * ThemeWin32Classic.cs:
19268         - Added a property WindowBorderFont to enable themeing
19269           of mdi child windows' Text.
19270           
19271 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19272
19273         * InternalWindowManager.cs:
19274         * Form.cs:
19275         * MdiClient.cs:
19276         * MdiWindowManager.cs: 
19277         - If mdi child is maximized, set mdi parent's
19278           text to "Parent - [Child]". Fixes #79770.
19279         - If there is any maximized mdi child windows, only the active 
19280           window (and any new windows) is maximized, the rest are normal.
19281         - On a WindowState change only save mdi child's window bounds 
19282           if the old window state was normal. Fixes #79774.
19283         - The scroll bars are now calculated on hopefully all
19284           necessary events. Fixed #79771 / #79844->6 / #79906.
19285         - MdiClient.SizeScrollBars() now takes into account docked 
19286           controls in the parent when calculating available space.
19287         - InternalWindowManager now always repaints the entire title
19288           area. Fixes #79844->1/4/5.
19289         - Added RequestNCRecalc on mdi child windowstate changes.
19290           Fixes #79772.
19291
19292 2006-11-20  Mike Kestner  <mkestner@novell.com>
19293
19294         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
19295         in the MouseUp handler of the listbox and move the return handling
19296         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
19297
19298 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19299
19300         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
19301
19302 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
19303
19304         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
19305           working in 1.2.x anymore. So, updated.
19306
19307 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
19308
19309         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
19310         NumberGroupSeparator of current culture instead of assuming en-US.
19311         Fixed bug #79967.
19312
19313 2006-11-17  Mike Kestner  <mkestner@novell.com>
19314
19315         * Control.cs: Add the concept of implicit bounds setting so that
19316         dock/undock round trips preserve explicitly set size/locations.
19317         Fixes #79313.
19318
19319 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
19320
19321         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
19322           can't handle those filters. (Fixes bug #79961)
19323
19324 2006-11-17  Chris Toshok  <toshok@ximian.com>
19325
19326         [ fixes the exit/crashes associated with #79835.  it's clearly
19327         suboptimal though, we need to figure out a better way to solve
19328         this. ]
19329         
19330         * PrintPreviewControl.cs: deal with the new invalid printer
19331         exceptions.
19332
19333         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
19334         and return false (so CommonDialog.ShowDialog doesn't actually show
19335         the form.)
19336
19337         * PrintDialog.cs: enable/disable the Ok button depending on
19338         whether or not the printer is valid.
19339
19340         * CommonDialog.cs (ShowDialog): only actually show the form if
19341         RunDialog returns true.
19342
19343 2006-11-17  Jackson Harper  <jackson@ximian.com>
19344
19345         * TextControl.cs: When soft splitting a line, mark it as a soft
19346         split line. Also carry over the current line break to the next
19347         line.
19348
19349 2006-11-17  Chris Toshok  <toshok@ximian.com>
19350
19351         * XplatUIX11.cs: when scrolling a window with an invalid area, we
19352         only want to shift the part of the invalid area that overlaps the
19353         area we're scrolling.  we also don't want to clear the invalid
19354         area unless the invalid area was entirely contained within the
19355         scrolling area.
19356
19357 2006-11-16  Chris Toshok  <toshok@ximian.com>
19358
19359         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
19360         also make sure to free the memory returned by XGetWindowProperty
19361         in GetText().
19362
19363         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
19364
19365 2006-11-16  Chris Toshok  <toshok@ximian.com>
19366
19367         * XplatUI.cs: add a new super secret way to get at the totally
19368         unsupported X11 backend.
19369
19370 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
19371
19372         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
19373
19374 2006-11-16  Jackson Harper  <jackson@ximian.com>
19375
19376         * TreeView.cs: Allow more explicit setting of top node position
19377         for scrollbars. Slower algo, but more accurate.
19378         - CollapseAll should maintain the current top node.
19379         * TextBoxBase.cs: When positioning the caret, use the line, pos
19380         method, since the x, y method does not grab the correct tag, and
19381         the caret height never gets set correctly. (Maybe I should just do
19382         away with the caret having its own height, and always use the
19383         carets current tag for height).
19384
19385 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
19386
19387         [Fixes 79778, 79923]
19388
19389         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
19390         Parent to the FosterParent instead.
19391
19392 2006-11-16  Jackson Harper  <jackson@ximian.com>
19393
19394         * TreeView.cs: Need to recalc the topnode when we expand or
19395         collapse. The scrolling methods can't handle this on their own,
19396         since they use differences between the last scroll position, and
19397         those difference get completely messed up since we are expanding
19398         nodes.  This problem should probably be fixed in the scrolling
19399         methods, so they can figure out exactly where they are, but this
19400         will slow things down a little.
19401         * ThemeWin32Classic.cs: Special case for groupboxes with empty
19402         strings, makes nunit-gui look a lot nicer.
19403
19404 2006-11-16  Chris Toshok  <toshok@ximian.com>
19405
19406         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
19407         the broken multithreaded event handling we have in here.  File
19408         this entry under "Why we should move to the new X11 backend".
19409
19410         Any thread can make it into UpdateMessageQueue, which gets events
19411         from the X socket - some of which could belong to hwnds being
19412         managed by a different thread.  We can also have multiple threads
19413         in UpdateMessageQueue at the same time, with each one reading from
19414         the X socket.  This leads to many problems, with the following
19415         solutions:
19416
19417         We can't use hwnd.Queue.Enqueue anywhere in here and must use
19418         EnqueueLocked.
19419
19420         The MotionNotify compression we do can't work across threads
19421         (without locking the entire queue, perhaps) since we call
19422         hwnd.Queue.Peek, so we just punt and don't compress motion events
19423         unless the owning thread is the one which got the X event.
19424
19425         ConfigureNotify is another fun one, since it modifies the hwnd's
19426         bounds and then enqueues the event.  We add a lock to Hwnd which
19427         is held when setting configure_pending to true (and enqueuing the
19428         event).
19429
19430         There is a race wrt the wake socket.  we need to make sure that
19431         only 1 thread is waiting on that socket, or else a thread could
19432         sleep waiting for data that never comes.  It's difficult (but not
19433         impossible) to make happen, because it seems to require something
19434         like the following:
19435
19436             1. Thread 1 polls on wake_receive
19437         
19438             2. poll returns saying there's data to be read on
19439                wake_receive.
19440         
19441             3. Thread 2 polls on wake_receive and immediately returns
19442                saying there's data to be read.
19443
19444             4. Thread 2 reads the wakeup byte from wake_receive
19445
19446             5. Thread 1 attempts to read the wakeup byte from
19447                wake_receive.
19448
19449             6. Thread 2 exits (due to a form closing, perhaps).
19450
19451             7. Thread 1 blocks forever.
19452         
19453         Fun, eh?
19454
19455         Fixing the Expose handling isn't done yet, and the races inherent
19456         in that piece of code are responsible for the drawing mistakes you
19457         see when generating expose events in a MT app (like NPlot).  This
19458         one is the likely to be the hardest to bandaid, and it doesn't
19459         appear to cause anything but drawing problems.  The other issues
19460         caused apps to exit or hang.
19461
19462         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
19463         called from a different thread than the one that should be calling
19464         these functions.
19465
19466         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
19467
19468 2006-11-15  Chris Toshok  <toshok@ximian.com>
19469
19470         * Application.cs: null out the context's MainForm when we exit
19471         RunLoop.  Fixes a newly checked in unit test as well as the last
19472         ODE from bug #79933.
19473
19474 2006-11-15  Chris Toshok  <toshok@ximian.com>
19475
19476         * Form.cs (set_Owner): allow a null value so we can clear the
19477         form's owner.
19478         (Dispose): set all our owned_form's Owner properties to null, and
19479         clear the owned_forms collection.
19480         (WM_CLOSE): clean up this a little bit.. still not right though.
19481
19482         * ApplicationContext.cs: OnMainFormClosed should only call
19483         ExitThreadCore if the main form isn't recreating.  Fixes unit
19484         test.
19485
19486 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
19487
19488         [Fixes 78346]
19489
19490         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
19491
19492 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
19493
19494         [Fixes 79433]
19495
19496         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
19497         keep popup window types from stealing focus from the main form
19498         on Windows.
19499
19500         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
19501
19502         * MenuAPI.cs: Set above flag to true.
19503
19504 2006-11-15  Chris Toshok  <toshok@ximian.com>
19505
19506         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
19507         the button being released is not in wParam.
19508
19509 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
19510
19511         * Form.cs: Add the released button to MouseEventArgs.Button
19512         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
19513         on Win32.
19514
19515 2006-11-15  Chris Toshok  <toshok@ximian.com>
19516
19517         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
19518         GetText().  untested because it's unused in our implementation.
19519         Control.Text always caches the text, even if
19520         ControlStyles.CacheText is not set.
19521
19522         fixes bug #79939.
19523
19524 2006-11-15  Chris Toshok  <toshok@ximian.com>
19525
19526         [ fixes #79933 ]
19527         
19528         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
19529         message.  no hiding, no disposing.
19530
19531         in the WM_CLOSE handler, hide the form if it's modal.
19532
19533 2006-11-15  Chris Toshok  <toshok@ximian.com>
19534
19535         * XplatUIX11.cs: use AddExpose instead of sending a message.
19536         fixes textbox border drawing.
19537
19538 2006-11-15  Chris Toshok  <toshok@ximian.com>
19539
19540         * PropertyGridView.cs: keep from crashing on mouse move/down when
19541         the property grid is empty.
19542
19543 2006-11-14  Jackson Harper  <jackson@ximian.com>
19544
19545         * TextControl.cs: Make PageUp and PageDown more like the MS
19546         versions.
19547         * TextBoxBase.cs: When we set the text property position the
19548         cursor at the beginning of the document.
19549
19550 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19551
19552         * Form.cs: if a mdi child's WindowState has changed
19553         before it's creation, it would display wrong control
19554         buttons.
19555         
19556 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
19557
19558         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
19559           (Fixes bug #79927)
19560
19561 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
19562
19563         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
19564         the window gets to paint its borders even if the window is
19565         getting smaller.
19566         
19567         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
19568         otherwise the old control buttons would still be painted 
19569         if the window gets bigger.
19570         
19571         * PaintEventArgs.cs: add an internal method so that the clip 
19572         rectangle can be changed.
19573         
19574 2006-11-13  Chris Toshok  <toshok@ximian.com>
19575
19576         [ fixes bug #79745 ]
19577         
19578         * NotifyIcon.cs: lots of cleanup.
19579
19580         * X11Structs.cs: add an enum for XEMBED messages.
19581
19582         * XplatUIX11.cs: reindent one of the giant switch statements, it
19583         was taking up an additional tab stop, and this file is already way
19584         too wide for my laptop's screen.
19585
19586         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
19587         we get it, resize the hwnd to the WMNormalHints max_width/height.
19588
19589 2006-11-13  Jackson Harper  <jackson@ximian.com>
19590
19591         * TextBoxBase.cs: Compute the value changes for the mouse wheel
19592         teh simple way.
19593
19594 2006-11-13  Chris Toshok  <toshok@ximian.com>
19595
19596         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
19597         #79898.  force a reference to the Region to stick around so the
19598         unmanaged object isn't collected (rendering our handle in the MSG
19599         stale).
19600
19601 2006-11-13  Chris Toshok  <toshok@ximian.com>
19602
19603         * XplatUIX11.cs: fix #79917 for window managers which support
19604
19605         using XStoreName on the raw utf8, and we need to convert to
19606         COMPOUND_TEXT if it's non-latin1.
19607
19608 2006-11-13  Chris Toshok  <toshok@ximian.com>
19609
19610         * Form.cs (set_DialogResult): we need to set closing to false if
19611         we're setting our result to None.  fixes bug #79908.
19612
19613 2006-11-13  Jackson Harper  <jackson@ximian.com>
19614
19615         * TextControl.cs: When formatting text, compute the adjusted tag
19616         lengths correctly, using FindTag for the end tag instead of trying
19617         to figure it out outselves.
19618         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
19619         the item, ItemHeight doesn't work, because trees with large
19620         imagelists use those for their height
19621         * TreeView.cs: ActualItemHeight factors in the image height
19622         - compute left edge of checkboxes correctly
19623         - when expanding/collapsing move the bottom down one pixel, so we
19624         aren't moving part of the node
19625
19626 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19627
19628         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
19629         stack in PaintEventStart so that it won't get disposed by the gc
19630         before reaching PaintEventEnd.
19631
19632 2006-11-13  Jackson Harper  <jackson@ximian.com>
19633
19634         * TextBoxBase.cs: Don't select the word if we are on a line with
19635         no text.
19636         - We don't need to position the caret on mouse up, since the mouse
19637         move handler should be doing this
19638         - When double clicking a blank line, the caret is advanced to the
19639         next line.
19640
19641 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
19642
19643         * TreeNodeCollection.cs: Avoid duplicating indexer code.
19644
19645 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
19646
19647         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
19648         Fixes part of bug #79910.
19649
19650 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
19651
19652         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
19653           (bug #79903). Some minor string updates to match ms.
19654
19655 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19656
19657         * FileDialog.cs: Don't add an extension if the filename
19658           already ends with that extension.
19659
19660 2006-11-10  Jackson Harper  <jackson@ximian.com>
19661
19662         * TreeView.cs: Use the currently highlighted node for the
19663         BeforeSelect event.
19664         * TextBoxBase.cs: There is no need to expand selection on
19665         MouseMove.
19666         - CanUndo means 'is there any undo operations', not 'is undo
19667         allowed on this textcontrol. Fixed ClearUndo unit test.
19668
19669 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
19670
19671         * Button.cs: only perform click when button is Selectable (so as 
19672         not to activate default buttons when they're disabled)
19673         
19674         * Control.cs: Rewrite of the SelectNextControl and related 
19675         methods. HandleClick now selects next control if the current one
19676         is being disabled.
19677         
19678         * Form.cs: OnActivated selects next active control only if Load 
19679         has already occurred. If Load hasn't run, there's no point in 
19680         selecting here, Load might change the state of controls.
19681         
19682         * FocusTest.cs: Tests marked as working again for these fixes
19683
19684 2006-11-10  Chris Toshok  <toshok@ximian.com>
19685
19686         * XplatUIX11.cs: a couple of fixes.
19687
19688         - use XInternAtoms with almost all the atoms we need to register,
19689         instead of many, many calls to XInternAtom.  should help a bit on
19690         startup time, at the expense of making the code look a little
19691         worse.
19692
19693         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
19694         isn't reparented (which seems to be a clue that we're running fon
19695         compiz) and they have an Owner form.  This fixes the tool windows
19696         in paint.net when running under compiz.
19697
19698         - when setting the opacity of a window, support both the case
19699         where the window has been reparented and also when it hasn't been.
19700         Since compiz/beryl doesn't seem to reparent windows, and these are
19701         the only window managers which support translucency, I'm not sure
19702         why we need the hwnd.reparented case at all.. but leave it in.
19703         now we get translucent windows in paint.net under compiz/beryl.
19704
19705 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19706
19707         * FileDialog.cs: Always return the value for FilterIndex that
19708           was set. Internally convert it to values that make sense.
19709
19710 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
19711         
19712         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
19713
19714 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
19715
19716         * Toolbar.cs: Change default value of DropDownArrows to true, the 
19717         signature still using false to make it compatible with MS but the 
19718         initial value is true. Fixes #79855.
19719
19720 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19721
19722         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
19723           only available on Linux.
19724
19725 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
19726
19727         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
19728         reduce number of calls to redraw method during toolbar creation.
19729
19730 2006-11-09  Mike Kestner  <mkestner@novell.com>
19731
19732         * ListView.cs : raise SelectedIndexChanged when an item is selected
19733         programmatically via the Item.Selected property.  Gert's nice 
19734         ListViewSelectedIndexChanged test fixture now runs clean.
19735
19736 2006-11-09  Mike Kestner  <mkestner@novell.com>
19737
19738         * ListView.cs : raise SelectedIndexChanged when a selected item is
19739         removed from the item collection using Remove or RemoveAt.
19740
19741 2006-11-09  Mike Kestner  <mkestner@novell.com>
19742
19743         * ListView.cs : raise SelectedIndexChanged once per selected item
19744         for compat with MS.  Fixes #79849+.
19745
19746 2006-11-09  Chris Toshok  <toshok@ximian.com>
19747
19748         * TabControl.cs: initialize row_count to 0, and set it to 1 when
19749         we need to (if we have any tab pages).  Fixes unit test.
19750
19751 2006-11-09  Chris Toshok  <toshok@ximian.com>
19752
19753         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
19754         width is 0, not 3.  Fixes a unit test.
19755
19756 2006-11-09  Mike Kestner  <mkestner@novell.com>
19757
19758         * ListView.cs : use Implicit scrollbars so that focus isn't 
19759         stolen from the listview when they are clicked. Fixes #79850.
19760
19761 2006-11-09  Chris Toshok  <toshok@ximian.com>
19762
19763         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
19764         have a root item.  Fixes #79879.
19765
19766 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
19767
19768         * FileDialog.cs:
19769           - Fix ToString ()
19770           - An ArgumentException is now thrown if a wrong filter
19771             is applied (matches ms). The previous filter doesn't change
19772             anymore if an exception is thrown.
19773           - Changing the FileName property also affects FileNames
19774         * ColorDialog.cs: The length of the CustomColors array is always
19775           16. It doesn't matter if we use a smaller array or null to update
19776           or change the custom colors property.
19777         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
19778           for RootFolder if we get a undefined value.
19779
19780 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19781
19782         * StatusBarPanel.cs: 
19783         - Width is set to MinWidth if Width is smaller than
19784         MinWidth. Fixes #79842.
19785         - MinWidth now always overrides Width (MSDN says MinWidth
19786         is set to Width when AutoSize = None, but they do not 
19787         behave like that).
19788         - Style has now the the correct default value.
19789         
19790 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19791  
19792         * TrackBar.cs: 
19793         - The control is completely invalidated on 
19794         Got/LostFocus to draw the focus rectangle correctly.
19795         - When AutoSize then height is always 45 (width for 
19796         vertical controls).
19797         
19798         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
19799         on the mouse when moved and it doesn't move when grabbed
19800         until the mouse moves as well. Also fixed some wrong 
19801         calculations when clicking on the thumb (control thought
19802         click was outside of thumb and didn't grab it).
19803         Fixes some of the issues in #79718.
19804
19805 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
19806
19807         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
19808
19809 2006-11-08  Chris Toshok  <toshok@ximian.com>
19810
19811         * PropertyGridView.cs: only call ToggleValue if the item is not
19812         readonly.
19813
19814 2006-11-08  Jackson Harper  <jackson@ximian.com>
19815
19816         * TextBoxBase.cs: The RichTextBox and textbox have very different
19817         word selection methods.  Implement the textbox's simple word
19818         selection here, and let the RichTextBox override and provide it's
19819         own.
19820         - Don't do extra selection on mouseup
19821         * RichTextBox.cs: Use the documents word selection algorithm, I
19822         think ideally, this function will be pulled into the
19823         RichTextBox.cs code someday.
19824
19825 2006-11-08  Chris Toshok  <toshok@ximian.com>
19826
19827         * RootGridEntry.cs: new class to represent GridItemType.Root.
19828
19829         * CategoryGridEntry.cs: reformat, and add boilerplate.
19830         
19831         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
19832         returns the UI parent anyway, and we need special handling to
19833         implement the GetTarget method in the face of it.  Also, implement
19834         Select().
19835
19836         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
19837         a root grid item, and use that instead of PropertyGrid.grid_items.
19838         Also, make use of TypeConverters (and add limitted support for
19839         ICustomTypeDescriptors) when initially populating the grid.
19840         Arrays now show up more or less properly.
19841
19842 2006-11-08  Chris Toshok  <toshok@ximian.com>
19843
19844         * Application.cs: set the modal dialog to non modal after we close
19845         it.  Fixes bug #79866.
19846
19847 2006-11-08  Jackson Harper  <jackson@ximian.com>
19848
19849         * TextControl.cs: When combining lines carry over the line end
19850         style from the end line.
19851         - Invalidate the selected area when setting it, if it is visible.
19852         * TextBoxBase.cs: Only rich text box can do full line selects.
19853         - Make sure to set the cursor position when there is a click,
19854         otherwise two clicks in separate areas could cause a large chunk
19855         to be selected.
19856
19857 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19858
19859         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
19860         Fixes #79863.
19861
19862 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19863
19864         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
19865         time. Remove tooltips when ToolButton click events.  Fixes #79856.
19866
19867 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19868
19869         * MenuAPI.cs: Ignore right click for menu actions and fixes
19870         menu border when clicked.  Fixes #79846.
19871
19872 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19873
19874         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
19875         MouseState after create wParam for message, this fixes mouse button 
19876         equal none in mouse up events.
19877         
19878 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
19879
19880         * Control.cs : Focus() now calls Select to set the Container's
19881         Active Control and to give it focus. To avoid infinite recursion
19882         (because ActiveControl also calls Focus at one point), a check 
19883         is made in Focus with the help of a new internal variable
19884         is_focusing.
19885
19886 2006-11-07  Mike Kestner  <mkestner@novell.com>
19887
19888         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
19889         if there's a selection.  Fixes #79849.
19890
19891 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
19892
19893         * PropertyGrid.cs: Avoid fixed height of help description label.
19894         Fixes part of bug #79829.
19895
19896 2006-11-07  Chris Toshok  <toshok@ximian.com>
19897
19898         * XplatUIX11.cs: fix #79790 again, by using the
19899         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
19900
19901 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19902
19903         * ToolBar.cs: Fix left click checking.
19904
19905 2006-11-07  Chris Toshok  <toshok@ximian.com>
19906
19907         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
19908
19909 2006-11-07  Chris Toshok  <toshok@ximian.com>
19910
19911         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
19912         PropertyManager unit tests.
19913
19914         * PropertyManager.cs: make property_name internal.
19915
19916 2006-11-07  Chris Toshok  <toshok@ximian.com>
19917
19918         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
19919         pass a unit test.  Also, don't set image_index to anything in
19920         response to setting the ImageList property.
19921
19922 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19923
19924         * ToolBar.cs: Ignore click events when mouse button is not a
19925         left button, only accepts other button for dropdown menus.  
19926         Fixes #79854.
19927
19928 2006-11-07  Chris Toshok  <toshok@ximian.com>
19929
19930         * DataGrid.cs: make the back and parent row buttons a little less
19931         ugly.
19932
19933 2006-11-07  Jackson Harper  <jackson@ximian.com>
19934
19935         * TextBoxBase.cs: When converting to Text don't put line breaks in
19936         for soft line breaks.
19937         * TextControl.cs: There is an initial "fake" line in the document,
19938         this is now a soft break line, so that an extra line feed doesn't
19939         get added to the end of documents.
19940
19941 2006-11-07  Chris Toshok  <toshok@ximian.com>
19942
19943         [ fix bug #79778 ]
19944         
19945         * CurrencyManager.cs: if the list is readonly, don't bother
19946         checking if IBindingList.AllowNew is true.
19947
19948         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
19949         for non-DataRowView datasources..  or rather, make it not crash.
19950         (DataGridPaintRelationRow): make sure we limit the row painting to
19951         the area not covered by the row header, and make our cell width at
19952         least large enough to cover the relation area.  This allows grids
19953         that have relations but no rows to render correctly.
19954         (DataGridPaintRowContents): same type of changes here.
19955         (SetDataSource): move back to always calling
19956         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
19957         navigating back through relations.
19958         (HitTest): handle the case where we have no cells but have
19959         relations.  Right now we generate a hit in cell 0 of whatever the
19960         row is, not sure if this is strictly correct, but it works for our
19961         purposes.
19962         
19963         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
19964         bother doing anything.
19965
19966 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
19967
19968         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
19969         early version of StatusStrip.  Not responsible for eaten
19970         application or firstborn children.
19971
19972 2006-11-06  Chris Toshok  <toshok@ximian.com>
19973
19974         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
19975         call GetTabRect with a -1 index.  Fixes #79847.
19976
19977 2006-11-06  Jackson Harper  <jackson@ximian.com>
19978
19979         * TreeNodeCollection.cs: Update scrollbars after clearing.
19980
19981 2006-11-06  Chris Toshok  <toshok@ximian.com>
19982
19983         * NumericUpDown.cs: fix the ToString method for some unit test
19984         love.
19985
19986 2006-11-06  Chris Toshok  <toshok@ximian.com>
19987
19988         * PropertyGrid.cs:
19989         - set the initial SelectedGridItem if we can.
19990
19991         - Exclude non-mergable properties only if we're merging > 1
19992         object.  Merging 1 object isn't really merging, obviously.
19993
19994         - Handle PropertySort.NoSort just like Alphabetical, which is
19995         wrong of course, but at least gets things on the screen.
19996         
19997         * PropertyGridView.cs:
19998         - Add method "FindFirstItem" which finds the first property grid
19999         item, so we can select it by default.
20000
20001         - make use of GridEntry.CanResetValue.
20002
20003         - Don't call RedrawBelowItemOnExpansion here anymore, the
20004         individual GridEntry's will do that.
20005
20006         - Remove the ITypeDescriptorContextImpl internal class.
20007         
20008         * GridEntry.cs:
20009         - this class needs to implement ITypeDescriptorContext, as it's
20010         what MS's PropertyDescriptorGridEntry does, which means we can
20011         remove the ITypeDescriptorContextImpl internal class from
20012         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
20013
20014         - keep a reference to our PropertyGridView, and move the call to
20015         RedrawBelowItemOnExpansion here from PGV.  This means
20016         programmaticly setting Expanded actually does something visible.
20017
20018         - add a CanResetValue() function which takes into account our
20019         possibly multiple "selected_objects" in the merged case.  Shifting
20020         PropertyGridView to use this method fixes another unreported
20021         crasher found running the test for #79829.
20022
20023         - when Top or Bounds is updated, make sure the PropertyGridTextBox
20024         is updated to reflect this.
20025
20026         * CategoryGridEntry.cs: the ctor takes the PGV now.
20027         
20028 2006-11-06  Jackson Harper  <jackson@ximian.com>
20029
20030         * TextControl.cs: These are 1 based.
20031         * TextBoxBase.cs: When setting the selected text, don't change the
20032         selected text tags, this is done by ReplaceText, just position the
20033         cursor at the end of the new text.
20034
20035 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
20036
20037         * ListView.cs: Allow label edit only when, when LabelEdit is
20038           set to true.
20039
20040 2006-11-06  Jackson Harper  <jackson@ximian.com>
20041
20042         * TextControl.cs: If a suitable wrapping position isn't found,
20043         just wrap right in the middle of a word.
20044
20045 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
20046
20047         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
20048           bug #79820.
20049
20050 2006-11-06  Jackson Harper  <jackson@ximian.com>
20051
20052         * TreeView.cs: Can't use the VisibleCount property when setting
20053         scrollbar heights, because this doesn't take into account whether
20054         or not the horz scrollbar just came visible.
20055
20056 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
20057
20058         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
20059         activated.  Fixes #79369, #79832.
20060
20061 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
20062
20063         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
20064           had to remove support for links that point to a directory. FileInfo
20065           returns no usefull information (means, the directory they point to)
20066           for such links. Replaced some empty string ("") with String.Empty.
20067
20068 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
20069
20070         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
20071         NullReferenceException when attempting to remove node that is not in
20072         collection. Throw NullReferenceException when null is passed to 
20073         Remove. Allow first element of the collection to be removed. Fixes
20074         bug #79831.  In GetEnumerator ().Current return null if positioned 
20075         before the first element of the collection. In GetEnumerator ().Reset,
20076         position before first element of the collection.
20077
20078 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
20079
20080         * PropertyGrid.cs: To match MS, remove default title and description
20081         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
20082         buttons.
20083
20084 2006-11-04  Chris Toshok  <toshok@ximian.com>
20085
20086         * Theme.cs: add a Clamp method, just for kicks.
20087
20088         * ThemeWin32Classic.cs: clamp all color components to [0..255].
20089
20090 2006-11-04  Chris Toshok  <toshok@ximian.com>
20091
20092         * Form.cs: if the form isn't visible, Close() does nothing.
20093
20094 2006-11-03  Chris Toshok  <toshok@ximian.com>
20095
20096         * Form.cs (Close): if the form is modal, don't Dispose of it, only
20097         Hide it.
20098         (WndProc): don't Dispose after handling the WM_CLOSE message.
20099
20100         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
20101         them as such, instead of using casts from Control to Form.  Also,
20102         don't Dispose of the modal dialog when we fall out of the loop -
20103         Close() it instead.
20104
20105         fixes bug #79813.
20106
20107 2006-11-03  Chris Toshok  <toshok@ximian.com>
20108
20109         * Control.cs (Dispose): only go through the dispose thing if we're
20110         @disposing, and we haven't already been disposed.  Fixes bug
20111         #79814.
20112
20113         * Form.cs: no reason to call "base.Dispose()" here instead of
20114         "Dispose()".
20115
20116 2006-11-03  Mike Kestner  <mkestner@novell.com>
20117
20118         * ComboBox.cs : use ToString instead of casts in AddItem for
20119         sorting functionality.  Fixes #79812.
20120
20121 2006-11-03  Chris Toshok  <toshok@ximian.com>
20122
20123         * Application.cs: pave the way for actually using the thread
20124         exception dialog.  it's ifdefed out at the moment.
20125
20126 2006-11-03  Chris Toshok  <toshok@ximian.com>
20127
20128         * ThreadExceptionDialog.cs: until we get a better layout, actually
20129         hide the details textbox and label when we shouldn't see them.
20130
20131 2006-11-03  Jackson Harper  <jackson@ximian.com>
20132
20133         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
20134         multiline textboxes anymore.  This method also determines the
20135         width/height of a textboxes canvas area.
20136         - Sorta a revert of the last patch.  For multiline just position
20137         the controls, then bail.  This way the scrollbar width won't be
20138         altered.
20139
20140 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
20141
20142         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
20143         it dont need.  Fixes #79537.
20144
20145 2006-11-02  Jackson Harper  <jackson@ximian.com>
20146
20147         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
20148         send the status after firing the DndOver event.
20149
20150 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20151
20152         * TrackBar.cs: Now orientation only switches height / width if
20153         the control's handle is created (Win32 does it like this). Also 
20154         fixed a typo in ToString() for a test to pass, changed the 
20155         exception thrown in set_LargeChange and set_SmallChange to 
20156         match Win32 behaviour, and added TrackBar tests to the unit 
20157         tests.
20158
20159 2006-11-02  Chris Toshok  <toshok@ximian.com>
20160
20161         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
20162         not _NET_WM_STATE_NO_TASKBAR.
20163
20164 2006-11-02  Jackson Harper  <jackson@ximian.com>
20165
20166         * TextControl.cs: Increment count by one, since in the update view
20167         count - 1 is used.
20168
20169 2006-11-02  Jackson Harper  <jackson@ximian.com>
20170
20171         * TextBoxBase.cs: Use client rectangle not bounds for checking if
20172         the mouse is in the client rectangle (duh).
20173
20174 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20175         
20176         * TrackBar.cs: Fixed trackbar jumping around when clicking
20177         on it - the trackbar was not detecting correctly at which
20178         side of the thumb the click was done. (fixes #79718)
20179
20180 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
20181
20182         * ListBox.cs: scroll visible area when change SelectedIndex to
20183         a non visible area.  Fixes #79481.
20184
20185 2006-11-01  Jackson Harper  <jackson@ximian.com>
20186
20187         * TextControl.cs: When replacing the selection move the selection
20188         start/end/anchor to the end of the new text.
20189
20190 2006-11-01  Jackson Harper  <jackson@ximian.com>
20191
20192         * XplatUIWin32.cs: When setting the parent change the controls
20193         visibility to it's visibility flag, not to it's old parents
20194         visibility (.Visible walks the parent chain).
20195
20196 2006-11-01  Chris Toshok  <toshok@ximian.com>
20197
20198         * XplatUIX11.cs: revert the #79790 fix, as the simple.
20199         XSetTransientForHint fix breaks paint .net's tool windows.  more
20200         work needed for that one.
20201
20202 2006-11-01  Chris Toshok  <toshok@ximian.com>
20203
20204         * ScrollBar.cs: throw ArgumentException instead of Exception in
20205         LargeChange/SmallChange setters.  fixes unit tests.
20206
20207 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
20208
20209         * ContainerControl.cs: reverted rev.67183 (which was itself
20210         a reversion of rev.66853... eh).
20211         
20212         * Control.cs: Fixes Reflector hang by changing Focus() call
20213         to what it was before rev.66643 (calling Select() here sets 
20214         ActiveControl, which in some situations calls back Focus and 
20215         eventually does a stack overflow). Temp fix.    
20216         Changes to GetNextControl() to not look for children to select when
20217         parent cannot be selectable (so it looks for siblings instead)  
20218         
20219 2006-10-31  Mike Kestner  <mkestner@novell.com>
20220
20221         * CheckedListBox.cs : off by one error in returned index from
20222         ObjectCollection.Add.  Fixes #79758.
20223
20224 2006-10-31  Chris Toshok  <toshok@ximian.com>
20225
20226         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
20227         calls for the textbox/spinner, to keep from recursing to the point
20228         where we crash.  Fixes #79760.
20229
20230 2006-10-31  Chris Toshok  <toshok@ximian.com>
20231
20232         * ListControl.cs (set_SelectedValue): don't throw exceptions on
20233         null/"" value, just return.  matches ms's behavior and fixes some
20234         failing tests.
20235
20236 2006-10-31  Chris Toshok  <toshok@ximian.com>
20237
20238         * Control.cs (set_Capture): make a logic a little easier to
20239         follow.
20240
20241         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
20242         if it's being destroyed.  A necessary fix surely, but a bandaid
20243         also, to fix the stuck capture problem in bug #78413.
20244
20245 2006-10-31  Chris Toshok  <toshok@ximian.com>
20246
20247         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
20248         convention of clearing hwnd.ClientRect when we set the
20249         width/height (so it'll be recalculated by Hwnd).
20250
20251 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
20252
20253         * ContainerControl.cs: reversed Contains check from
20254         ActiveControl due to hanging problems. This fix
20255         partly regresses #79667 (button does not have
20256         initial focus), so this might be a symptom for 
20257         a larger parenting problem (set_ActiveControl
20258         is being called but the child control does
20259         not have the parent set yet?)   
20260         
20261 2006-10-31  Mike Kestner  <mkestner@novell.com>
20262
20263         * MenuAPI.cs : fix keynav when menu is click activated.
20264
20265 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
20266
20267         * ToolStrip*: Version 0.2.
20268
20269         * MenuStrip.cs: Version 0.1.
20270
20271         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
20272
20273 2006-10-30  Chris Toshok  <toshok@ximian.com>
20274
20275         [ fixes the oversized notify icon issue in bug #79745 ]
20276         
20277         * NotifyIcon.cs: scale the icon down to the size we're given by
20278         the XplatUI layer (this would be faster if we did it once instead
20279         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
20280         since it's never invoked.
20281
20282         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
20283         pixels high by default, so let's hardcode our systray icon to that
20284         size.  The SYSTEM_TRAY protocol should really have a way for
20285         client apps to query for the correct icon size.. but oh well.  A
20286         couple of patches to deal with the screwy client_window ==
20287         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
20288         instance, and also make sure we don't XSelectInput twice).
20289
20290 2006-10-30  Chris Toshok  <toshok@ximian.com>
20291
20292         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
20293         recreating forms.  Control recreation is the bane of my existence.
20294         Fix it in a way that keeps everyone happy.
20295
20296 2006-10-30  Chris Toshok  <toshok@ximian.com>
20297
20298         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
20299         just non-CHILD ones.  otherwise sometimes scrollbars end up with
20300         client_windows not being resized to the proper size (ReportBuilder
20301         shows this extremely well).
20302
20303 2006-10-30  Chris Toshok  <toshok@ximian.com>
20304
20305         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
20306         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
20307         showing up in the gnome taskbar.  Fixes bug #79790.
20308
20309 2006-10-30  Chris Toshok  <toshok@ximian.com>
20310
20311         * ApplicationContext.cs: guard against a NRE.
20312
20313         * Application.cs: null out the old MainForm for the context, so we
20314         don't try to use it again once it's disposed.  Fixes bug #79783.
20315
20316 2006-10-30  Chris Toshok  <toshok@ximian.com>
20317
20318         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
20319         BindingContext, set the data source directly, otherwise do the
20320         lazy approach - the actual ListManager will be created when we get
20321         a BindingContext. Fixes bug #79700.
20322
20323 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
20324
20325         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20326           XplatUIX11.cs: Remove old 2 parameter SetVisible.
20327
20328         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
20329
20330 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
20331
20332         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
20333         of SetVisible that allows a window to be shown, but not activated.
20334         This is needed on Windows for MenuStrip, and can probably be used
20335         with MainMenu and ComboBox to fix the focus stealing issues on
20336         Windows.
20337
20338         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
20339
20340 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
20341
20342         * PictureBox.cs: Fix the output of the ToString method.
20343
20344 2006-10-29  Chris Toshok  <toshok@ximian.com>
20345
20346         * Control.cs (get_TopLevelControl): fix bug #79781.
20347
20348 2006-10-29  Chris Toshok  <toshok@ximian.com>
20349
20350         * ListControl.cs (set_DataSource): throw Exception here, not
20351         ArgumentException, to match MS behavior.
20352
20353 2006-10-29  Chris Toshok  <toshok@ximian.com>
20354
20355         * Form.cs: remove the try-catch's around calls to GetWindowState.
20356         We can just check the return value.
20357
20358         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
20359         Instead return -1.
20360
20361         * XplatUI.cs: Add note about additional return value for
20362         GetWindowState.
20363
20364 2006-10-29  Chris Toshok  <toshok@ximian.com>
20365
20366         * Control.cs (CreateHandle): when we create our handle, we also
20367         create the handles of our child controls.  Fixes one of the
20368         Control unit tests (CH11).
20369
20370 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
20371
20372         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
20373
20374 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
20375
20376         * ThemeClearlooks.cs: A little speedup.
20377
20378 2006-10-27  Chris Toshok  <toshok@ximian.com>
20379
20380         * Control.cs: implement Control.FromChildHandle in a way that
20381         matches the docs (and fixes the failed test.)
20382
20383 2006-10-27  Chris Toshok  <toshok@ximian.com>
20384
20385         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
20386         comments).
20387
20388         * DataGrid.cs: implement ResetForeColor such that the tests
20389         succeed.
20390         
20391 2006-10-27  Chris Toshok  <toshok@ximian.com>
20392
20393         * ToolBarButton.cs: setting text/tooltiptext to null results in it
20394         being set to "".  Fixes bug #79759.
20395
20396 2006-10-27  Jackson Harper  <jackson@ximian.com>
20397
20398         * TextControl.cs: We need to clear the entire selection area when
20399         setting the start, otherwise multiline selections are still
20400         visible.
20401
20402 2006-10-26  Chris Toshok  <toshok@ximian.com>
20403
20404         * PropertyGridView.cs: 
20405
20406         - ifdef all the code specific to the double
20407         buffer case, and provide some alternatives in the non-doublebuffer
20408         code, which makes heavy use of XplatUI.ScrollWindow to move things
20409         around without having to invalidate (and cause flicker).  There
20410         are still some drawing problems in the non-doublebuffered case, so
20411         DOUBLEBUFFER is defined by default.
20412
20413         - Fix the way dropdowns are handled.  now we explicitly watch for
20414         the events which might cause the dropdown to close, and break out
20415         of the nested event loop there.  This gets rid of all Capture
20416         code, at the expense of the Msg special casing.  Seems to work,
20417         though, and fixes bug #79743.
20418
20419 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
20420         * Control.cs: SetIsRecreating now recreates implicitly added
20421         child controls as well. Finally fixes #79629. The flag passed to 
20422         SetIsRecreating has also been removed since it wasn't used.
20423         
20424 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20425
20426         * PageSetupDialog.cs: Clean some code, fix some bits, 
20427         add some checks, and add a printer sub-dialog.
20428
20429 2006-10-26  Chris Toshok  <toshok@ximian.com>
20430
20431         * PropertyGrid.cs: make set_SelectedObject call
20432         set_SelectedObjects, and move the duplicate logic to the
20433         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
20434
20435         * PropertyGridView.cs: hide the textbox when we get a
20436         SelectedObjectsChanged event.
20437
20438         Fixes bug #79748.
20439
20440 2006-10-26  Chris Toshok  <toshok@ximian.com>
20441
20442         * PropertyGridView.cs: deal with the type converter not supporting
20443         GetStandardValues() or GetStandardValues() returning null, which
20444         is does in the default case.  Fixes #79742.
20445
20446 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
20447
20448         * CheckedListBox.cs: nunit no longer crashes when selecting 
20449         Project/Edit menu option
20450         
20451 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
20452
20453         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
20454         is no menu selected. fixes #79739
20455
20456 2006-10-25  Chris Toshok  <toshok@ximian.com>
20457
20458         * PropertyGridView.cs: factor out the splitter invalidation code
20459         into the SplitterPercent setter, and for kicks implement the
20460         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
20461         amount in either direction.
20462
20463 2006-10-25  Chris Toshok  <toshok@ximian.com>
20464
20465         * PropertyGridView.cs: do some cleanup of the brush used to draw
20466         text - read only fields should be grayed out.  not sure how to do
20467         this with the textbox, though.  but the textbox's should also be
20468         readonly now at least.  Also, hide/show the textbox when resizing
20469         the control.
20470         
20471         * CursorConverter.cs: use System.Reflection when getting the
20472         properties of Cursors, as TypeDescriptor.GetProperties isn't
20473         returning static properties.
20474
20475 2006-10-25  Chris Toshok  <toshok@ximian.com>
20476
20477         * PropertyGridView.cs: factor out the up/down handling, and reuse
20478         it for page up/down.  also add End/Home support.
20479
20480 2006-10-25  Chris Toshok  <toshok@ximian.com>
20481
20482         * PropertyGridView.cs:
20483
20484         - ensure the selected grid item is visible in the scrolled area,
20485         fixes bug #79572.
20486
20487         - fix Keys.Down handling when you're on the last item in the
20488         propertygrid.
20489
20490 2006-10-25  Mike Kestner  <mkestner@novell.com>
20491
20492         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
20493         clicks too.  Fixes #79725.
20494
20495 2006-10-24  Chris Toshok  <toshok@ximian.com>
20496
20497         * PropertyGrid.cs: use property.Converter instead of
20498         TypeDescriptor.GetConverter(property.PropertyType), so we catch
20499         TypeConverters declared on the property as well as on the
20500         PropertyType.  Fixes bug #79678.
20501
20502 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
20503
20504         * MimeIcon.cs, Mime.cs:
20505           Fallback to the default platform handler if no shared mime info
20506           stuff exists (fixes #79693).
20507
20508 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20509         * ContainerControl.cs: Incorrect contains check in ActiveControl 
20510         from previous fix (duh).
20511
20512 2006-10-20  Chris Toshok  <toshok@ximian.com>
20513
20514         * PropertyGridView.cs: the dropdown should be MIN(number of items
20515         in list, 15).  Fixes #79551.
20516
20517 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20518         Fixes #79384, #79394, #79652, #79667
20519         * Application.cs: 
20520         
20521         - Modal windows are now destroyed in the proper order for windows
20522         
20523         * ContainerControl.cs:
20524         
20525         - ActiveControl setter has more conditions on when to return:
20526                 - if we're reselecting the active control, but it actually
20527                 didn't have focus (window hidden or some such), it runs
20528                 - if the active control being selected doesn't actually 
20529                 exist in the container, it returns
20530         
20531         * Form.cs
20532         
20533         - The ShowDialog now gets the current form as the owner when
20534         invoking without parameters, and correctly activates the owner 
20535         when returning
20536         
20537         * MessageBox.cs
20538         
20539         - MessageBox now catches the Escape key to exit
20540
20541 2006-10-20  Chris Toshok  <toshok@ximian.com>
20542
20543         * PropertyGridView.cs: fix a number of issues (bug #78565, and
20544         most of bug #79676):
20545
20546         - you can navigate around the property grid with the arrow keys.
20547
20548         - the dropdown is sized properly when the pg has a vertical
20549         scrollbar.
20550
20551         - fix the indentation for subentries, and properly select the
20552         entire label rect.
20553
20554         - fix the gray bar's drawing (only draw it to the last element,
20555         not for the height of the control.  Also make sure we draw that
20556         last horizontal grid line.
20557
20558         - use the same mechanism the datagrid uses wrt the editing textbox
20559         when scrolling/resizing/etc.  Namely, we hide it first, do the
20560         operation, then show it again (if it's still visible).
20561         
20562         - aggressively remove a lot of unnecessary refreshes (and also
20563         calls to Invalidate(). call more limited variants, and only redraw
20564         what we need.)
20565         
20566         * PropertyGrid.cs:
20567
20568         - when we're populating the merged collection, fill in the UI
20569         parent with either the passed in item, or the category item we
20570         create.
20571
20572         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
20573
20574         * GridItem.cs: drop some fully qualified names.
20575         
20576         * GridEntry.cs: add a "UIParent", which is basically the parent
20577         treenode.
20578
20579         * GridItemCollection.cs: add an IndexOf method.
20580
20581 2006-10-20  Mike Kestner  <mkestner@novell.com>
20582
20583         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
20584         a working win32 NC invalidation mechanism, we can't invalidate
20585         menus.  [Fixes #79705]
20586
20587 2006-10-20  Mike Kestner  <mkestner@novell.com>
20588
20589         * ListBox.cs : don't update the VScrollbar if the list is empty,
20590         just hide it.  [Fixes #79692]
20591
20592 2006-10-20  Jackson Harper  <jackson@ximian.com>
20593
20594         * RichTextBox.cs: Handle some special chars better, and don't skip
20595         the entire group when we encounter a special char that we don't
20596         handle correctly.
20597
20598 2006-10-18  Chris Toshok  <toshok@ximian.com>
20599
20600         * PropertyGridView.cs: address a number of issues from bug #79676,
20601         mostly of the cosmetic variety.
20602
20603         - The highlight rectangle for indented items not extends all the
20604         way to the left.
20605
20606         - Indented items aren't indented so much.
20607
20608         - the dropdown is properly sized width-wise if the pg has a
20609         vertical scrollbar.
20610
20611 2006-10-18  Chris Toshok  <toshok@ximian.com>
20612
20613         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
20614         systray stuff is rather convoluted to begin with.
20615
20616         systray icons are a single window for some reason (that I haven't
20617         figured out yet), and for them, client_window == whole_window.
20618         Given the way the tests are structured elsewhere to determine
20619         which paints are pending (client vs. nc), that situation will
20620         always yield PAINT, not NCPAINT.  So, if we have a pending
20621         nc_expose and no pending expose, remove the hwnd from the paint
20622         queue, and also set nc_expose_pending to false, to keep us from
20623         blocking further expose's adding the hwnd to the paint queue.
20624
20625         phew.  like i said, a rather convoluted change.  Fixes the
20626         notifyicon repaint issues in bug #79645.
20627
20628 2006-10-18  Chris Toshok  <toshok@ximian.com>
20629
20630         * Form.cs: when getting the backcolor of the form, don't get
20631         base.BackColor, as this allows parents to influence the background
20632         color.  This breaks mdi forms.  Instead, if the background_color
20633         is empty, return the default.
20634
20635 2006-10-18  Chris Toshok  <toshok@ximian.com>
20636
20637         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
20638         to being private instead of internal static.
20639
20640         * Control.cs: remove all the stupid ParentWaitingOnRecreation
20641         crap, it wasn't working for more deeply nested controls anyway,
20642         and we already have the is_recreating flag - use that instead.
20643         Before calling DestroyHandle in RecreateHandle, recurse through
20644         the control tree setting it to true.  this returns the recreate
20645         code to much of its original simplicity, while now guaranteeing we
20646         actually recreate everything we're supposed to.  This change gets
20647         fyireporting actually showing mdi children.
20648
20649 2006-10-17  Chris Toshok  <toshok@ximian.com>
20650
20651         * Form.cs: remove some debug spew, and collapse some duplicate
20652         code at the end of SetClientSizeCore.
20653
20654         * XplatUIX11.cs: 
20655         - add some more debug spew here too wrt Destroy handling.
20656         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
20657         in Control's handling of WM_DESTROY.
20658         - Remove the handling of zombie window DestroyNotifies from the
20659         event loop - we don't need it.  Now the only DestroyNotifies we
20660         actually handle are ones generated by X.
20661         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
20662         match gtk's (functioning) handling of this. This keep metacity
20663         from leaving droppings in the form of wm borders with no window
20664         contents all over the place.
20665
20666         * Control.cs:
20667         - add a bunch of debug spew wrt control recreation.
20668         - fix a bug where we weren't tracking Visible properly on
20669         recreated hwnds.
20670         - fixed the WM_PAINT double buffer handling to support re-entrant
20671         calls (yes, i know it's gross, but it's happening to us).
20672
20673 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20674         * ThemeWin32Classic.cs: changed drawing of selected days
20675         to make them look better.
20676
20677 2006-10-16  Chris Toshok  <toshok@ximian.com>
20678
20679         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
20680         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
20681
20682         * XplatUIX11.cs: move away from using hwnd.client_dc and
20683         hwnd.non_client_dc and on to a stack of dc's (and in window's
20684         case, PAINTSTRUCT's), so we can deal with nested Paint calls
20685         without puking or not disposing of Graphics objects.
20686
20687         * XplatUIOSX.cs: same.
20688
20689         * XplatUIWin32.cs: same.
20690
20691 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
20692
20693         * FileDialog.cs: Don't call on_directory_changed inside
20694           OnSelectedIndexChanged (it changes the SelectedIndex too).
20695           Instead move it to OnSelectionChangeCommitted.
20696
20697 2006-10-13  Chris Toshok  <toshok@ximian.com>
20698
20699         * XplatUIX11.cs: more Destroy work.  the current code does the
20700         following things, in order:
20701
20702         1. Enumerates all handles of all controls at or below the one
20703         being destroyed, in pre-order.  As it is doing this, it marks the
20704         handles as zombie and clears all references to them.
20705         
20706         2. calls XDestroyWindow on the window passed in.
20707
20708         3. SendMessage's WM_DESTROY to all he handles in the accumulated
20709         list.
20710
20711 2006-10-13  Chris Toshok  <toshok@ximian.com>
20712
20713         * XplatUIX11.cs: set hwnd.zombie to true before calling
20714         SendMessage (WM_DESTROY).  this keeps us from marking the new
20715         window a zombie, and also keeps us from calling sendmessage at
20716         all.
20717
20718 2006-10-13  Jackson Harper  <jackson@ximian.com>
20719
20720         * TextControl.cs: Do not show the caret and selection at the same
20721         time.  Reduces ugliness by 35%.
20722
20723 2006-10-13  Chris Toshok  <toshok@ximian.com>
20724
20725         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
20726         zombie after we do the recursive call, so we actually do call
20727         SendMessage on the children controls.
20728         (GetMessage): if we find a pending paint event for a zombie hwnd,
20729         remove the hwnd from the paint queue, or else it will always be
20730         there (and we'll effectively loop infinitely)
20731
20732 2006-10-13  Mike Kestner  <mkestner@novell.com>
20733
20734         * MenuItem.cs : add Selected format under keynav too.
20735         Fixes #79528.
20736
20737 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
20738
20739         * PropertyGrid.cs: Fixed some NRE's and small difference between our
20740         implementation and that of MS.
20741
20742 2006-10-13  Chris Toshok  <toshok@ximian.com>
20743
20744         * Control.cs (OnInvalidated) only futz with the invalid_region if
20745         the control is double buffered.  this fixes the apparent hang in
20746         the ListView unit tests.  Someone needs to make the
20747         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
20748
20749 2006-10-13  Chris Toshok  <toshok@ximian.com>
20750
20751         * PropertyGridView.cs:
20752
20753         - do a little refactoring so that only one place calls
20754         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
20755         else call that.  Also make it Refresh, since there are redraw bugs
20756         otherwise (we should take a look at that...)
20757
20758         - do a little more refactoring work to share the body of code
20759         involved with the drop down.  it was duplicated in the code
20760         dealing with the listbox handling and in the code dealing with the
20761         UITypeEditors.
20762
20763         - add a Capture to the dropdown form's control once it's
20764         displayed, and add a MouseDown handler that checks to make sure
20765         the position is inside the control.  If it's not, close the
20766         dropdown.  This fixes #78190.
20767
20768         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
20769         if the value is different than the initial value.
20770         
20771 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
20772
20773         * Control.cs: see #78650
20774         - Fixed GetNextControl for several cases:
20775                 - Changed FindFlatForward to return 
20776                 correct sibling control when more than one
20777                 control has same TabIndex as the currently 
20778                 focused one.
20779                 - Changed FindFlatBackward to loop children
20780                 from last to first and apply same logic as in
20781                 FindFlatForward
20782                 - Changed FindControlForward to search for
20783                 children when control is not a container
20784                 but has children, or search for siblings if
20785                 control is a container...
20786                 - Changed FindControlBackward   to continue
20787                 searching for child controls when hitting 
20788                 Panel-like parents
20789                 
20790         - Fixed Focus method to update ActiveControl
20791         (FocusTest.FocusSetsActive failure)
20792         
20793         * TabControl.cs:
20794         - Focus rectangle now refreshes when gaining
20795         or losing focus
20796         - Removed grab for Tab key on IsInputKey that 
20797         was keeping tab navigation from working (#78650)
20798
20799 2006-10-13  Chris Toshok  <toshok@ximian.com>
20800
20801         * PropertyGridView.cs:
20802         - Rewrite SetPropertyValue to loop over SelectedGridItem's
20803         SelectedObjects.
20804
20805         - Deal with GridItem.Value == null a few places.
20806
20807         * PropertyGrid.cs: 
20808         - replace the PopulateGridItemCollection with a pair of methods
20809         which compute the intersection of all the properties in the
20810         SelectedObjects array.  Fixes #79615.
20811
20812         - Throw ArgumentException from set_SelectedObjects if there's a
20813         null in the array.
20814
20815         - Add GetTarget method which can be used to traverse up the
20816         GridItem.Parent chain.  It depends on the assumption that
20817         selected_objects for different GridEntries are always in the same
20818         order (a safe assumption).  Use this method and loop over all the
20819         selected objects in the entry when calling RemoveValueChanged and
20820         AddValueChanged.
20821         
20822         * GridEntry.cs: Make this handle multiple selected objects.
20823         .Value returns null if not all the selected objects share the same
20824         value.
20825
20826 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
20827         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
20828           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
20829           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
20830           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
20831           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
20832         add additional functionality.
20833
20834 2006-10-12  Mike Kestner  <mkestner@novell.com>
20835
20836         * ErrorProvider.cs : new ToolTipWindow ctor sig.
20837         * HelpProvider.cs : new ToolTipWindow ctor sig.
20838         * ToolTip.cs : remove ToolTip param from Window sig since it is
20839         not used.
20840         * ToolBar.cs : add tooltip support.  Fixes #79565.
20841
20842 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20843
20844         * ComboBox.cs: move the events in set_SelectedIndex to 
20845         after the call to HighlightIndex in order to avoid 
20846         possible recursion and subsequent problems with the call
20847         to HighlightIndex and include a range check in 
20848         set_HighlightIndex. Fixes #79588
20849         
20850 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20851
20852         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
20853         to ui thread's settings instead of sunday. 
20854         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
20855
20856 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20857
20858         * DateTimePicker.cs
20859         * MonthCalendar.cs
20860         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
20861         and implement missing functionality (selecting different parts 
20862         of the date and edit them individually with the keyboard).
20863         
20864 2006-10-11  Chris Toshok  <toshok@ximian.com>
20865
20866         * Control.cs (OnInvalidated): fix NRE relating to last change.
20867
20868 2006-10-11  Chris Toshok  <toshok@ximian.com>
20869
20870         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
20871         atoms in _NET_WM_STATE here if the window is maximized.  We need
20872         to do this because we're *replacing* the existing _NET_WM_STATE
20873         property, so those atoms will be lost otherwise, and any further
20874         call to GetWindowState will return Normal for a window which is
20875         actually maximized.  Fixes #79338.
20876
20877 2006-10-11  Jackson Harper  <jackson@ximian.com>
20878
20879         * TextControl.cs: Special case for setting selection end to
20880         selection start, we basically kill the anchor.
20881         - some todo comments.
20882
20883 2006-10-11  Chris Toshok  <toshok@ximian.com>
20884
20885         * Control.cs: switch to using an "invalid_region" to track which
20886         parts of the image buffer need updating.  This is more code than
20887         the simple fix from r66532.  That version just attempted to always
20888         fill the entire buffer on redraw, which turns out to be
20889         inefficient when invalidating small rectangles.  This version
20890         simply adds the invalid rectangle to the invalid region.  When we
20891         get any WM_PAINT message we see if it can be filled using the
20892         image buffer, and if it can't (if the paint event's clip rectangle
20893         is visible in the invalid region) we first fill the image buffer.
20894         So, the image buffer is still a cache, we just fill it lazily.
20895
20896         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
20897         need it any longer.
20898
20899 2006-10-11  Chris Toshok  <toshok@ximian.com>
20900
20901         * XplatUIX11.cs (SetWindowPos): we need to update both position as
20902         well as size after calling XMoveResizeWindow.  This keeps us from
20903         ignoring future SetWindowPos calls.  Fixes the disappearing
20904         DateTimePicker in the ToolBarDockExample from bug #72499.
20905
20906 2006-10-11  Chris Toshok  <toshok@ximian.com>
20907
20908         * TextBoxBase.cs: reorder things a bit when it comes to
20909         resizing-causing-recalculation.  we were recalculating the
20910         document when our position was changed, which shouldn't happen.
20911         We only care about size changes.  Clear up some more redundant
20912         recalculation calls while I'm at it.  This makes the toolbar dock
20913         example snappy when you're just dragging toolbars around (since it
20914         causes a relayout whenever you move one.)
20915
20916 2006-10-11  Chris Toshok  <toshok@ximian.com>
20917
20918         * ToolBarButton.cs (get_Rectangle): this only returns
20919         Rectangle.Empty if Visible == false, or Parent == null.
20920         Parent.Visible doesn't matter.
20921
20922 2006-10-10  Chris Toshok  <toshok@ximian.com>
20923
20924         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
20925         by .net 1.1, so switch to an internal method instead.
20926
20927 2006-10-10  Chris Toshok  <toshok@ximian.com>
20928
20929         * Control.cs (WM_PAINT): when a control is double buffered we draw
20930         initially to the ImageBuffer and then copy from there.  But when a
20931         parent control which has child controls is double buffered, the
20932         initial drawing doesn't encompass the entire ClientRectangle of
20933         the parent control, so we end up with uninitialized bits (this is
20934         easily seen by dragging the top toolbar in
20935         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
20936         manually set the ClipRectangle of the paint_event (only the one we
20937         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
20938         of the nastiness in bug #72499.
20939
20940         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
20941         which we use in Control.cs's WM_PAINT handling.
20942
20943 2006-10-10  Jackson Harper  <jackson@ximian.com>
20944
20945         * TextBoxBase.cs: Finish off the autoscrolling stuff.
20946
20947 2006-10-10  Chris Toshok  <toshok@ximian.com>
20948
20949         * Cursor.cs: Apply a slightly different patch to the one suggested
20950         in #79609.
20951
20952 2006-10-10  Jackson Harper  <jackson@ximian.com>
20953
20954         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
20955         not the parent form.
20956         * TextControl.cs: use difference in old line count vs new count to
20957         calculate how many lines were added, this takes into account soft
20958         line breaks properly.
20959
20960 2006-10-10  Chris Toshok  <toshok@ximian.com>
20961
20962         * LinkLabel.cs: don't call MeasureCharacterRanges against a
20963         rectangle located at 0,0 and the size of the text.  Use
20964         ClientRectangle instead.  This fixes rendering of non-left aligned
20965         link labels.
20966
20967 2006-10-10  Jackson Harper  <jackson@ximian.com>
20968
20969         * TextBoxBase.cs: When we set the selection start position the
20970         caret.
20971         * TextControl.cs: Need to update the caret when we decrement it to
20972         zero.
20973         - Make sure that the selection_visible flag gets reset to false if
20974         the selection isn't visible.  Before this you could get it set to
20975         visible by changing the selection start, then changing the end to
20976         equal the start.
20977
20978 2006-10-09  Jackson Harper  <jackson@ximian.com>
20979
20980         * TreeView.cs: Don't update scrollbars when we aren't visible.
20981         * TreeNodeCollection.cs: Only need to update scrollbars if being
20982         added to an expanded visible node or the root node.
20983
20984 2006-10-09  Chris Toshok  <toshok@ximian.com>
20985
20986         * XplatUIX11.cs (SendMessage): fix NRE.
20987
20988 2006-10-09  Jackson Harper  <jackson@ximian.com>
20989
20990         * TextBoxBase.cs: Implement horizontal autoscrolling.
20991         * TextControl.cs: Add a movement types that allows moving forward
20992         and backwards without wrapping.
20993
20994 2006-10-09  Mike Kestner  <mkestner@novell.com>
20995
20996         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
20997         with focus "expansion" of labels.  Fixes #79532 and then some.
20998         * ThemeWin32Classic.cs : add LineLimit to ListView label format
20999         when wrapping.
21000
21001 2006-10-09  Jackson Harper  <jackson@ximian.com>
21002
21003         * TextBoxBase.cs: Set the default max values to MaxValue since
21004         we use the scrollbar for autoscrolling and the default value is
21005         100.  If we don't do this the caret won't keep up with typing
21006         after about 18 characters.
21007         * TextControl.cs: Make sure the selection is offset by the
21008         viewport x.  This fixes selection when using auto scrolling.
21009
21010 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
21011         
21012         * Form.cs: The active control should be selected after the 
21013         OnLoad so that any child control initialization that affects
21014         the selection is done. Fixes #79406
21015
21016 2006-10-06  Chris Toshok  <toshok@ximian.com>
21017
21018         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
21019         to have no evil effects.
21020
21021         - Stop selecting StructureNotifyMask on non-toplevel windows.
21022
21023           The only way children should be resized is by using the SWF api,
21024           and we already send WM_WINDOWPOSCHANGED messages in those cases.
21025           Toplevel windows can be interacted with via the window manager,
21026           and so we keep the input mask there.
21027
21028           The other event StructureNotifyMask gives us (that we care
21029           about) is DestroyNotify.  The code is already structured such
21030           that it assumes we won't be getting a DestroyNotify event for
21031           the window we pass to XDestroyWindow (which is what
21032           StructureNotifyMask is supposed to guarantee.)  So, that code
21033           shouldn't be affected by this either.
21034
21035         - Stop selecting VisibilityChangeMask altogether.
21036
21037           We weren't doing anything with the resulting events anyway.
21038         
21039         This vastly reduces the number of X requests and events we see
21040         when resizing/laying out a large ui.
21041
21042 2006-10-06  Chris Toshok  <toshok@ximian.com>
21043
21044         * ScrollableControl.cs (DisplayRectangle): we need to take into
21045         account the DockPadding regardless of whether or not auto_scroll
21046         == true.  rework this slightly to this effect, and fix bug #79606,
21047         and part of #72499 (you can now see the drag handles and drag
21048         toolbars around).
21049
21050 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
21051
21052         * ListViewItem.cs: Collections of selected and checked items are now
21053         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
21054         we mark the collection "dirty".
21055         * ListView.cs: Marked collections readonly. Modified UpdateSelection
21056         to only clear SelectedItems when a new item is selected and MultiSelect
21057         is enabled. CheckedItems and SelectedItems now subscribe to Changed
21058         event of ListViewItemCollection, and mark its list dirty whenever
21059         that event is fire. This allows us to return selected/checked items 
21060         in the same order as they are in the Items collection. This matches
21061         the MS behavior.
21062
21063 2006-10-06  Chris Toshok  <toshok@ximian.com>
21064
21065         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
21066         right mouse clicks.  Fixes bug #79593.
21067
21068 2006-10-06  Chris Toshok  <toshok@ximian.com>
21069
21070         * Splitter.cs: doh, fix splitters that don't want to cancel the
21071         movement when you drag them.  Also, impose the limits on the
21072         values we send to the SplitterMovingEvent.  Fixes #79598.
21073
21074 2006-10-06  Jackson Harper  <jackson@ximian.com>
21075
21076         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
21077         since we use this for auto scrolling also.
21078
21079 2006-10-05  Chris Toshok  <toshok@ximian.com>
21080
21081         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
21082         beginning to think that most datagrid column types don't need this
21083         method.  Fixes bug #79392.
21084
21085 2006-10-05  Chris Toshok  <toshok@ximian.com>
21086
21087         * DataGrid.cs: move back to a more lazy scheme for creating the
21088         CurrencyManager, so we aren't updating it every time you set
21089         either DataSource or DataMember.  Also, don't call
21090         RecreateDataGridRows if the currency manager hasn't changed.
21091
21092 2006-10-05  Chris Toshok  <toshok@ximian.com>
21093
21094         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
21095         emitted, SelectedIndex should already be updated.  Fixes bug
21096         #78929.
21097
21098 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
21099
21100         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
21101           ToolStripTextBox.cs: Initial commit.
21102         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
21103
21104 2006-10-05  Jackson Harper  <jackson@ximian.com>
21105
21106         * TabControl.cs: We need to invalidate the tab control area when
21107         new ones are added (duh).
21108
21109 2006-10-03  Chris Toshok  <toshok@ximian.com>
21110
21111         * Form.cs (ProcessDialogKey): if the focused control is in this
21112         form and is a button, call its PerformClick method here.  Fixes
21113         #79534.
21114
21115 2006-10-04  Jackson Harper  <jackson@ximian.com>
21116
21117         * TabPage.cs: Ignore setting of Visible, and add an internal
21118         method for setting the controls visibility.  TabPage's Visible
21119         property is a little strange on MS, this seems to make us
21120         compatible, and fixes cases where people set all the tab pages to
21121         visible.
21122         * TabControl.cs: Use the new internal setting on tab pages
21123         visibility.
21124
21125 2006-10-03  Mike Kestner  <mkestner@novell.com>
21126
21127         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
21128
21129 2006-10-03  Mike Kestner  <mkestner@novell.com>
21130
21131         * ListView.cs : use is_visible instead of Visible to check if 
21132         scrollbars should be placed/sized.  Also some max_wrap_width
21133         love for LargeIcon view.  [Fixes #79533]
21134
21135 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
21136
21137         * TextControl.cs :
21138           Make set_TextAlign() do actually update the align. Fixed #78403.
21139
21140 2006-10-03  Chris Toshok  <toshok@ximian.com>
21141
21142         * DataGrid.cs: fix a crash when switching datasources if the
21143         vertical scrollbar is at someplace other than Value = 0.  Also,
21144         reduce the number of recalculation passes we do in SetDataSource
21145         from 2 to 1.
21146
21147 2006-10-03  Jackson Harper  <jackson@ximian.com>
21148
21149         * TextBoxBase.cs: Move the if value the same bail check up, we
21150         don't want to empty the document if it is already empty, this
21151         seems to severly mess up the caret.  TODO: I should probably fix
21152         the empty statement to update teh caret somehow.
21153
21154 2006-10-03  Chris Toshok  <toshok@ximian.com>
21155
21156         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
21157         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
21158         reflection, an internal row type, properties on said type, etc.)
21159         will work with our datagrid.  Fixes #79531.
21160
21161 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
21162
21163         * FileDialog.cs: Don't crash if a path is not accessible
21164           (System.UnauthorizedAccessException). Fixes #79569.
21165         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
21166           a ':' too. Return unknown icon for those paths/files.
21167
21168 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
21169
21170         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
21171         GetContainerControl returns null.
21172
21173 2006-10-02  Chris Toshok  <toshok@ximian.com>
21174
21175         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
21176         call to XGetWindowAttributes instead of "handle".  fixes an X
21177         error using notifyicon after the NotifyIconWindow to Form base
21178         class switch.
21179
21180 2006-10-02  Chris Toshok  <toshok@ximian.com>
21181
21182         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
21183         server grab and looping we need to do to get down to the most
21184         deeply nested child window.
21185         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
21186         QueryPointer again after the WarpPointer so we can generate a
21187         proper (fake) MotionNotify event to be enqueued in the destination
21188         window's queue.
21189         (GetCursorPos): call QueryPointer.
21190
21191         Fixes #79556.
21192
21193 2006-10-02  Jackson Harper  <jackson@ximian.com>
21194
21195         * NotifyIcon.cs: Derive the notify icon from a form, so things
21196         like FindForm work on it.
21197         - Swallow the WM_CONTEXTMENU message, since that is generated on
21198         mouse down, and context menu is a mouse up kinda guy.  I believe
21199         the correct fix here is probably to make the notify icon entirely
21200         NC area, but this seems to work fine for anyone not manipulating
21201         WndProc.
21202
21203 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
21204
21205         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
21206           ToolStripItemCollection.cs, ToolStripLabel.cs,
21207           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
21208           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
21209           Initial implementation.
21210         * TextRenderer.cs: Provide padding to MeasureText.
21211
21212 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
21213
21214         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
21215         of ButtonBaseAccessibleObject. Fix bug #79552.
21216
21217 2006-10-02  Jackson Harper  <jackson@ximian.com>
21218
21219         * MdiWindowManager.cs: When maximizing use the containers client
21220         rect, not it's bounds, so nc area is accounted correctly.
21221         - Use the parent form's size for the menu position, since the
21222         client isn't always the full form size.
21223
21224 2006-10-01  Chris Toshok  <toshok@ximian.com>
21225
21226         * ScrollableControl.cs: make sure neither right_edge or
21227         bottom_edge are < 0, since they're used as LargeChange for the
21228         horiz/vert scrollbars respectively.  Fixes #79539.
21229
21230 2006-10-01  Chris Toshok  <toshok@ximian.com>
21231
21232         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
21233         the xplatuix11 code can cause us to destroy/recreate our handle.
21234
21235         * XplatUIX11.cs
21236         (SystrayAdd):
21237         - this code can be invoked many times for the same Hwnd.  Make
21238           sure we only destroy the client window once (the first time this
21239           method is called).  This fixes bug #79544.
21240         - Remove the call to the improperly bound XSync.  why we had two
21241           bindings to this, I will never know, but this call resulted in
21242           events being discarded from the queue(!).
21243         - correct a misunderstanding of _XEMBED_INFO - the second atom is
21244           not our current state but the state we wish to be in.  So, 0 if
21245           we don't want to be mapped.  Change it to 1.
21246         (SystrayRemove): The XEMBED spec makes mention of the fact that
21247         gtk doesn't support the reparent of client windows away from the
21248         embedder.  Looking at gtksocket-x11.c seems to agree with this.
21249         The only avenue we have for removing systray icons is to destroy
21250         them.  We don't want the handle to go away for good, though, so
21251         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
21252         #79545.
21253         
21254 2006-10-01  Chris Toshok  <toshok@ximian.com>
21255
21256         * Form.cs (WndProc): inline the native_enabled variable usage into
21257         the cases in which it's used.  Fixes #79536.
21258
21259 2006-09-29  Mike Kestner  <mkestner@novell.com>
21260
21261         * ListView.cs : toggle the selection state for ctrl clicks in 
21262         multiselect mode. [Fixes #79417]
21263
21264 2006-09-29  Mike Kestner  <mkestner@novell.com>
21265
21266         * ListView.cs : kill CanMultiSelect and refactor the selection
21267         code to support multiselection in the absence of mod keys. Steal
21268         arrow/home/end keys by overriding InternalPreProcessMessage to
21269         restore regressed keynav behavior.
21270         [Fixes #79416]
21271
21272 2006-09-29  Jackson Harper  <jackson@ximian.com>
21273
21274         * MdiClient.cs: Repaint the titlebars when the active window is
21275         changed.
21276
21277 2006-09-29  Chris Toshok  <toshok@ximian.com>
21278
21279         * Application.cs: when entering a runloop with a modal, make sure
21280         the hwnd is enabled.  Fixes #79480.
21281
21282 2006-09-29  Chris Toshok  <toshok@ximian.com>
21283
21284         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
21285         when ListManager.CanAddRows == false, bump us back one.
21286
21287         * DataGridColumnStyle.cs (ParentReadOnly): remove the
21288         listmanager.CanAddRows check.  This makes ArrayLists uneditable
21289         using a datagrid, which is not right.
21290         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
21291         is an IEditable, but call property_descriptor.SetValue regardless.
21292         fixes #79435.
21293
21294 2006-09-29  Chris Toshok  <toshok@ximian.com>
21295
21296         * DataGridBoolColumn.cs: we need to test equality in the face of
21297         possible null values (as is the case with the default NullValue).
21298         This patch keeps us from crashing in that case.
21299
21300 2006-09-29  Jackson Harper  <jackson@ximian.com>
21301
21302         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
21303         here, since it will get called for every node collection in the
21304         tree. This is now done in the treeview once the sorting is
21305         finished.
21306         * TreeView.cs: Recalculate the visible order, and update the
21307         scrollbars after sorting, set the top nope to the root so that the
21308         recalc actually works.
21309
21310 2006-09-29  Chris Toshok  <toshok@ximian.com>
21311
21312         * LinkLabel.cs: more handling of the default link collection in
21313         the face of LinkArea manipulation.  The default link collection
21314         contains 1 element (start=0,length=-1).  If the user sets LinkArea
21315         to anything and the links collection is the default, clear it.
21316         Then only add the link if its nonempty.  Fixes #79518.
21317
21318 2006-09-29  Chris Toshok  <toshok@ximian.com>
21319
21320         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
21321         piece correctly when we hit a '\n'.  Fixes #79517.
21322
21323 2006-09-29  Chris Toshok  <toshok@ximian.com>
21324
21325         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
21326         change the binding of gdk_init_check to take two IntPtr's, and
21327         pass IntPtr.Zero for both of them.  Fixes #79520.
21328
21329 2006-09-29  Mike Kestner  <mkestner@novell.com>
21330
21331         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
21332         [Fixes #78779]
21333
21334 2006-09-28  Jackson Harper  <jackson@ximian.com>
21335
21336         * XplatUIX11.cs: When translating NC messages make sure we go from
21337         whole window to screen, not client window to screen.
21338         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
21339         method doesn't exist
21340         - Skip over controls that aren't forms when arranging.
21341
21342 2006-09-28  Jackson Harper  <jackson@ximian.com>
21343
21344         * XplatUIWin32.cs: Clip the rect to the parent window.
21345         * XplatUIStructs.cs: Add clipping modes struct.
21346         * InternalWindowManager.cs: New private method that factors title
21347         bar heights in when calculating the pos of an NC mouse message.
21348         - Use SendMessage to force a paint when the form's size is changed
21349         instead of painting the decorations immediately.
21350         - Don't let the NC button click messages get to DefWndProc,
21351         because they will attempt to handle windowing themself, and this
21352         messes up z-order (it will put them in front of the scrollbars).
21353         * XplatUIX11.cs: Make sure that we don't reset window managers if
21354         we already have one (ie the window is an MDI window).
21355
21356 2006-09-28  Chris Toshok  <toshok@ximian.com>
21357
21358         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
21359         menu code really needs going over.
21360
21361 2006-09-27  Chris Toshok  <toshok@ximian.com>
21362
21363         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
21364         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
21365         window is maximizable.  So, we need to make sure that even if we
21366         clear the border/wm frame of those functions, they're still
21367         available (basically, we remove the decoration without removing
21368         the function).  Half the fix for #79338.
21369
21370 2006-09-27  Chris Toshok  <toshok@ximian.com>
21371
21372         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
21373         Fixes bug #79515.
21374
21375 2006-09-27  Chris Toshok  <toshok@ximian.com>
21376
21377         * Splitter.cs: reorder things a bit so that we don't actually
21378         draw/move the splitter until after calling OnSplitterMoving.  This
21379         lets users cancel/disallow the movement by explicitly setting
21380         event.SplitX/SplitY.  Fixes #79372.
21381
21382 2006-09-27  Jackson Harper  <jackson@ximian.com>
21383
21384         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
21385         because it is most likely on a window being destroyed, and that
21386         will give us an X11 error.
21387
21388 2006-09-27  Chris Toshok  <toshok@ximian.com>
21389
21390         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
21391         the dropdown button now toggles between showing and hiding the
21392         dropdown.  Also, get rid of dropdown_form_showing and just use
21393         dropdown_form.Visible.  We still don't do a grab, but I'll leave
21394         that part to someone who has handled Capture-fu before.
21395
21396 2006-09-27  Chris Toshok  <toshok@ximian.com>
21397
21398         * DataGrid.cs: return false if alt isn't pressed when '0' is
21399         pressed.  this keeps the '0' key from being swallowed, and fixes
21400         bug #79350.
21401
21402 2006-09-27  Chris Toshok  <toshok@ximian.com>
21403
21404         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
21405         Calling Refresh (in response to a scrollbar event) screws up the
21406         scrollbar painting.  Fixes bug #78923.
21407
21408 2006-09-27  Chris Toshok  <toshok@ximian.com>
21409
21410         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
21411         then insert into hashtable" blocks threadsafe.
21412
21413 2006-09-27  Chris Toshok  <toshok@ximian.com>
21414
21415         * MessageBox.cs (CreateParams): the styles should be |'ed with our
21416         baseclass's, since otherwise the
21417         ControlBox/MinimizeBox/MaximizeBox assignments above have no
21418         effect.  This gets the close button back in messageboxes.
21419
21420 2006-09-27  Chris Toshok  <toshok@ximian.com>
21421
21422         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
21423         flag, not just != 0.  this makes flags that are actually multiple
21424         bits (like WS_CAPTION) work.  fixes bug #79508.
21425
21426 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
21427
21428         * PageSetupDialog.cs: add support for getting and settings the 
21429         paper size, source and orientation.
21430
21431 2006-09-26  Chris Toshok  <toshok@ximian.com>
21432
21433         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
21434         and caption == "", we need to remove the resize handles as well as
21435         the title bar.
21436
21437         * Control.cs (set_Text): turns out that setting Text on a form
21438         should change the WM styles on the window, since if ControlBox ==
21439         false, the only way to get a window border is to have a non-""
21440         Text property.  check winforms/forms/text.cs for an example.  so,
21441         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
21442         update both window styles and title.  This fixes a lot of dialogs
21443         (including the preferences dialog in MonoCalendar.)
21444
21445 2006-09-26  Chris Toshok  <toshok@ximian.com>
21446
21447         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
21448         control isn't a Form), call Win32ShowWindow to hide the window,
21449         but don't update the control Visible property.  When we reparent
21450         back to a parent control, call SetVisible in order for the
21451         window's visibility to be reinstated.
21452
21453         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
21454         the FosterParent.
21455
21456         * Control.cs (ControlCollection.Remove): remove that value.Hide()
21457         call for good, since it breaks MonoCalendar (and other things I'm
21458         sure.) Also, set all_controls to null *after* the owner calls,
21459         which end up regenerating it.
21460         (ChangeParent): allow new_parent to be == null, passing
21461         IntPtr.Zero down to XplatUI.
21462
21463         this fixes #79294 the right way.
21464
21465 2006-09-26  Mike Kestner  <mkestner@novell.com>
21466
21467         * GridEntry.cs : internal SetParent method.
21468         * PropertyGrid.cs : attach to property changed on the proper
21469         target if we have a hierarchical grid with subobjects. Setup
21470         GridItem.Parent for hierarchical items.
21471         * PropertyGridView.cs : Set value on the correct target for
21472         hierarchical grids. [Fixes #78903]
21473
21474 2006-09-26  Chris Toshok  <toshok@ximian.com>
21475
21476         * Control.cs (ChildNeedsRecreating): this should return true if
21477         either we're being recreated and the child is in our list, or our
21478         parent is waiting for our recreation.
21479
21480 2006-09-26  Chris Toshok  <toshok@ximian.com>
21481
21482         * Control.cs (ControlCollection.Remove): reinstate the
21483         value.Hide() call as suggested in bug #79294.
21484
21485 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
21486
21487         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
21488         coordinates (versus a relative move).
21489
21490 2006-09-26  Chris Toshok  <toshok@ximian.com>
21491
21492         * Control.cs: rework child recreation a little bit.  It turns out
21493         that we race between the DestroyNotify the WM_DESTROY message.  If
21494         the parent gets its DestroyNotify before the child gets the
21495         WM_DESTROY message, the child ends up not recreating (since the
21496         parent finishes its recreation on DestroyNotify, and the child
21497         checks ParentIsRecreating.)
21498
21499         So, instead we store off a list of all the child controls which
21500         need to be recreated when the parent control starts to recreate
21501         itself.  Then, when child controls get their WM_DESTROY message we
21502         check to see if they're in the parent's pending recreation list,
21503         and if so, we recreate.  This removes all dependency on ordering
21504         from the code and fixes the initial MonoCalendar upgrade dialog.
21505         
21506 2006-09-26  Jackson Harper  <jackson@ximian.com>
21507
21508         * TextControl.cs: Use the Line to get the length of the line,
21509         since soft line breaks can change the end line.
21510
21511 2006-09-26  Chris Toshok  <toshok@ximian.com>
21512
21513         * Control.cs (ControlCollection.AddImplicit): don't add the
21514         control again if it's already in one of our lists.  This keeps us
21515         from adding controls over and over again for comboboxes when their
21516         handle gets recreated (as the combobox adds implicit controls in
21517         OnHandleCreated).  Fixes the X11 errors in bug #79480.
21518
21519 2006-09-26  Jackson Harper  <jackson@ximian.com>
21520
21521         * TextControl.cs: When deleting characters make sure that any
21522         orphaned zero lengthed tags get deleted.
21523         - Fix ToString for zero lengthed tags.
21524
21525 2006-09-25  Jackson Harper  <jackson@ximian.com>
21526
21527         * TextControl.cs: When getting a tag at the location there can be
21528         multiple tags at the same spot, these are 0-lengthed tags that
21529         appear when extra formatting has been stuck in a location.  We
21530         need to pull out the last of these 0 lengthed tags.
21531
21532 2006-09-25  Jackson Harper  <jackson@ximian.com>
21533
21534         * TextControl.cs: Fix print out in debug method.
21535         * TextBoxBase.cs: When text is set bail if we are setting to the
21536         previous value.
21537         
21538 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
21539
21540         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
21541           It is now possible to change the selected index in a FontXXXListBox
21542           with the up and down arrow keys from the FontXXXTextBoxes.
21543           Also, send the FontXXXTextBox mouse wheel event to the corresponding
21544           FontXXXListBoxes to match ms.
21545
21546 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
21547
21548         * SystemInformation.cs: Return a clone of the theme's MenuFont because
21549         anyone can dispose it, anytime. All other properties returns enums, 
21550         structs or basic types so they don't need such tricks.
21551
21552 2006-09-22  Jackson Harper  <jackson@ximian.com>
21553
21554         * XplatUI.cs:
21555         * XplatUIWin32.cs:
21556         * Clipboard.cs:
21557         * DataFormats.cs:
21558         * XplatUIOSX.cs:
21559         * XplatUIDriver.cs: Update interface to add a primary selection
21560         flag, so the driver can use the primary selection buffer if
21561         needed.
21562         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
21563
21564         * RichTextBox.cs: We need to supply the data object to paste now
21565         (so we can choose to supply CLIPBOARD or PRIMARY).
21566         * TextBoxBase.cs: Supply data object to paste (see above).
21567         - Middle click uses the primary selection data object.
21568         
21569 2006-09-21  Chris Toshok  <toshok@ximian.com>
21570
21571         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
21572         of SetWMStyles.  It's still a rat's nest and is largely
21573         order-dependent which I dislike immensely.  This also fixes the X
21574         button disappearing from toplevel forms.
21575
21576 2006-09-21  Mike Kestner <mkestner@novell.com>
21577
21578         * ListBox.cs: move Jordi's click/dblclick raising code to the
21579         mouse up handler.
21580
21581 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
21582
21583         * ListBox.cs: Fixes 79450
21584
21585 2006-09-21  Mike Kestner <mkestner@novell.com>
21586
21587         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
21588         to deal with people updating the TreeNodeCollection after the tree
21589         is disposed.  "Fixes" 79330.
21590
21591 2006-09-20  Jackson Harper <jackson@ximian.com>
21592
21593         * TextControl.cs: Push the cursor record onto the undo stack
21594         before the delete action. This fixes 78651.
21595
21596 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
21597
21598         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
21599         CreateParams. Fixes 79329.
21600
21601 2006-09-19  Chris Toshok  <toshok@ximian.com>
21602
21603         * XplatUIX11.cs: a couple of blanket code massage passes to clean
21604         things up a bit.  First, get rid of the NetAtoms array (and the NA
21605         enum), and just embed the atoms as static fields.  Also, add a
21606         couple of functions (StyleSet and ExStyleSet) to clean up all the
21607         bitmask testing of styles.
21608
21609         * X11Structs.cs: remove the NA enum, not needed anymore.
21610         
21611 2006-09-19  Chris Toshok  <toshok@ximian.com>
21612
21613         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
21614         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
21615         added cleanup to get MessageBox titles appearing again, which were
21616         broken by my earlier fix for caption-less/ControlBox-less windows.
21617
21618 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
21619
21620         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
21621           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
21622           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
21623           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
21624           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
21625           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
21626           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
21627           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
21628           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
21629           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
21630           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
21631             Inital import.
21632         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
21633           ToolStripButton.cs: Stubs needed for above.
21634         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
21635
21636 2006-09-15  Chris Toshok  <toshok@ximian.com>
21637
21638         * XplatUIX11.cs:
21639         - make the MessageQueues hashtable Synchronized.
21640         
21641         - SendMessage: if the Hwnd is owned by a different thread, use the
21642         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
21643         thread.  Fixes bug #79201.
21644
21645 2006-09-15  Chris Toshok  <toshok@ximian.com>
21646
21647         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
21648         ControlBox == false, we disallow maximize/minimize/close.  If the
21649         form Caption is "" we also disallow move (and get rid of the Title
21650         decoration).  Unfortunately, regardless of how things are set,
21651         we're stuck with the Title and WM menu.
21652
21653 2006-09-15  Chris Toshok  <toshok@ximian.com>
21654
21655         * Application.cs: add locking around the static message_filters
21656         ArrayList, part of #79196.
21657
21658 2006-09-15  Chris Toshok  <toshok@ximian.com>
21659
21660         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
21661         Form.ControlBox == false, the window has no titlebar nor resize
21662         handles.  fixes bug #79368.
21663
21664 2006-09-15  Chris Toshok  <toshok@ximian.com>
21665
21666         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
21667         >= 0.  Fixes bug #79370.
21668
21669 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
21670         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
21671         * Control.cs:
21672             Add properties: LayoutEngine, Margin, DefaultMargin.
21673             Add method: GetPreferredSize.
21674             Move layout logic from PerformLayout to layout engines. 
21675
21676 2006-09-13  Chris Toshok  <toshok@ximian.com>
21677
21678         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
21679         fix for #79326 broke #78718, so this change addresses that.
21680
21681         - in SendWMDestroyMessages remove the call to
21682         CleanupCachedWindows, since we might be recreating the control and
21683         need to maintain the references to right Hwnd handles.  Also, set
21684         the zombie flag to true for each of the children in the hierarchy
21685         instead of calling hwnd.Dispose.  This will cause GetMessage to
21686         ignore all events for the window except for DestroyNotify.
21687
21688         - In GetMessage, ignore messages except for DestroyNotify for
21689         zombie hwnds.
21690         
21691         * Control.cs: revert the is_recreating fix from the last
21692         ChangeLog.  It's definitely "right", but it breaks switching from
21693         an MDI form to a non-MDI form.  Will need to revisit that.
21694
21695         * Hwnd.cs: add a zombie flag, which means "the
21696         client_window/whole_window handles are invalid, but we're waiting
21697         for the DestroyNotify event to come in for them".  Set the flag to
21698         false explicitly if setting WholeWindow/ClientWindow, and also
21699         when Disposing.
21700         
21701 2006-09-13  Chris Toshok  <toshok@ximian.com>
21702
21703         * XplatUIX11.cs: rework window destruction slightly.
21704
21705         - when destroying the windows associated with a control, we don't
21706         need 2 separate XDestroyWindow calls.  Just the one for the
21707         whole_window (or for client_window if whole_window is somehow
21708         IntPtr.Zero -- can this happen?) is enough.
21709
21710         - reworked SendWMDestroyMessages slightly, so we always dispose
21711         the child control hwnd's after sending the messages.
21712         
21713         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
21714         the two places it was used (one was even using hwnd.Handle and the
21715         other hwnd.client_window.  ugh), adding another call in
21716         SendWMDestroyMessages.  We need this new call because now the
21717         DestroyNotify events in the queue will be ignored for the child
21718         controls (as their hwnd's were disposed, and the window id's
21719         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
21720
21721         - this fixes bug #79326.
21722
21723 2006-09-13  Chris Toshok  <toshok@ximian.com>
21724
21725         * Control.cs: don't always set is_recreating to false at the end
21726         of RecreateHandle, since sometimes we're not done (and won't be
21727         until WndProc handles the WM_DESTROY message).  Also, set
21728         is_recreating to false in the WM_DESTROY handling code.  Part of
21729         the fix for bug #79326.
21730
21731 2006-09-13  Miguel de Icaza  <miguel@novell.com>
21732
21733         * X11DesktopColors.cs: Start the droppage of debugging messages.
21734
21735         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
21736
21737 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
21738
21739         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
21740
21741 2006-09-12  Chris Toshok  <toshok@ximian.com>
21742
21743         * DataGrid.cs (get_ListManager): if the list_manager is null, try
21744         to create it using SetDataSource.  Fixes bug #79151.
21745
21746 2006-09-11  Chris Toshok  <toshok@ximian.com>
21747
21748         * XEventQueue.cs: add a DispatchIdle property.
21749
21750         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
21751         either the queue is null, or the queue has DispatchIdle set to
21752         true.
21753         (DoEvents): set queue.DispatchIdle to false around the
21754         peek/translate/dispatch message loop in this method.  This keeps
21755         Application.Doevents from emitting idle events.  Part of the fix
21756         for #78823.
21757
21758 2006-09-11  Chris Toshok  <toshok@ximian.com>
21759
21760         * DataGrid.cs (set_DataSource): make this work for both the
21761         winforms/datagrid test and ReportBuilder.  It seems as though when
21762         we've created a ListManager (or maybe it's if we have a
21763         BindingContext?), when we set the DataSource it clears the
21764         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
21765         #79333.
21766
21767 2006-09-11  Chris Toshok  <toshok@ximian.com>
21768
21769         * XplatUIX11.cs: deal with queue being null, which happens in all
21770         the Clipboard functions.  Fixes one of the two problems mentioned
21771         in #78612.
21772
21773 2006-09-11  Chris Toshok  <toshok@ximian.com>
21774
21775         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
21776         button on various spots (including outside the menu) works closer
21777         to MS, and doesn't crash.  Fixes #79343.
21778
21779 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
21780
21781         * ListView.cs: Do not initialize item_sorter in init. To match MS,
21782         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
21783         and the internal comparer is set. When a new ListViewItemSorter is set,
21784         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
21785         was specified. No further processing is necessary if SortOrder is set
21786         to it's current value. If Sorting is modified to None, and View is
21787         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
21788         (either custom or our internal ItemComparer) to null, on 1.0 profile
21789         only set item_sorter to null if its our internal IComparer. If Sorting
21790         is modified to Ascending or Descending, then use our internal IComparer
21791         if none is set, and if the current IComparer is our internal one then:
21792         on 2.0 profile always replace it with one for new Sorting, and on 1.0
21793         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
21794         Enum.IsDefined to verify whether a valid View value is specified in
21795         its setter. Automatically sort listview items when listview is
21796         created. In Sort, do nothing if ListView is not yet created, or if
21797         no item_sorter is set (no Sorting was set, Sorting was explicitly set
21798         to None or ListViewItemSorter was set to null). Added Sort overload
21799         taking a bool to indicate whether the ListView should be redrawn when
21800         items are sorted (we use this in ListViewItemCollection to avoid double
21801         redraws). Modified our internal IComparer to take the sort order into
21802         account. In Add and AddRange methods of ListViewItemCollection, also
21803         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
21804         view), but use overload with noredraw option to avoid double redraw.
21805         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
21806         true when View is Tile, and do the same when attempting to set View to
21807         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
21808         for selected/checked indices, as it involves overhead when sorting is
21809         done while these collections are not used all that often. Instead
21810         we'll build the indices on demand. Modified IList implementation of
21811         CheckedIndexCollection to use public methods if object is int.
21812         Modified CheckedListViewItemCollection to hide checked items if
21813         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
21814         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
21815         IList implementation in SelectedIndexCollection to use public methods
21816         if object is int. Modified SelectedListViewItemCollection to hide
21817         selected items if listview is not yet created.
21818         * ListViewItem.cs: CheckedIndices list no longer needs to be
21819         maintained separately (see ListView changes). Also clone font, fixes
21820         test failure.
21821
21822 2006-09-11  Mike Kestner  <mkestner@novell.com>
21823
21824         * ComboBox.cs: if we are updating the contents of the currently
21825         selected index, refresh the control or the textbox selection.
21826         [Fixes #79066]
21827
21828 2006-09-11  Mike Kestner  <mkestner@novell.com>
21829
21830         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
21831         the 'specified' logic has been moved there.  This seems like a bug 
21832         in Control.cs, since our current SetBoundsCore completely ignores 
21833         the specified parameter.  Peter's commit seems to indicate that is 
21834         the way the MS control implementation works.  [Fixes #79325]
21835
21836 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
21837
21838         * XplatUI.cs: Set default_class_name to be composed
21839         of current domain id. This allows MWF to be loaded in multiple
21840         domains on Win32.
21841
21842 2006-09-09  Miguel de Icaza  <miguel@novell.com>
21843
21844         * X11Keyboard.cs: If we are unable to obtain the input method, do
21845         not call CreateXic to create the input context.   Should fix
21846         #78944/79276.
21847
21848 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
21849
21850         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
21851           Simplified gnome support by adding more pinvokes to get the
21852           icon for a file or mime type.
21853
21854 2006-09-08  Jackson Harper  <jackson@ximian.com>
21855
21856         * MenuAPI.cs: Deslect popup context menu items before closing the
21857         window, so that you don't see the previously selected item
21858         selected when you reopen the menu.
21859         * TextControl.cs: Update the cursor position even if we don't have
21860         focus.  This fixes typing in things like the ComboBox.  I'm not
21861         totally sure we should always set the visibility if we don't have
21862         focus, but couldn't find any corner cases where the cursor showed
21863         up when it shouldn't.
21864
21865 2006-09-08  Chris Toshok  <toshok@ximian.com>
21866
21867         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
21868         our arrays are length 256.  & 0xff before indexing.  Fixes the
21869         crash in bug #78077.
21870         
21871 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21872
21873         * ThemeWin32Classic.cs: 
21874         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
21875         is true. Handle that check box too.
21876
21877 2006-09-07  Chris Toshok  <toshok@ximian.com>
21878
21879         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
21880         79244.
21881
21882 2006-09-07  Chris Toshok  <toshok@ximian.com>
21883
21884         * Control.cs: in set_BackColor only do the work if
21885         background_color != value.
21886
21887         * XplatUIX11.cs: move the clearing of invalid areas (both client
21888         and nc) to the same block of code where we set (nc_)expose_pending
21889         to false.  That is, move it from PaintEventEnd to PaintEventStart,
21890         so things that cause invalidates from within OnPaint will trigger
21891         another call to OnPaint.  Fixes bug #79262.
21892
21893 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
21894
21895         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
21896         * FileDialog.cs: Fix typo
21897
21898 2006-09-07  Jackson Harper  <jackson@ximian.com>
21899
21900         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
21901         for tab pages if they have any.
21902
21903 2006-09-06  Mike Kestner  <mkestner@novell.com>
21904
21905         * Splitter.cs: use the "current" rect when finishing drag handle
21906         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
21907
21908 2006-09-06  Mike Kestner  <mkestner@novell.com>
21909
21910         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
21911         support offset splitters. [Fixes #79298]
21912
21913 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
21914
21915         * Mime.cs: Fixed a bug that could override the global mime type
21916           result.
21917
21918 2006-09-05  Jackson Harper  <jackson@ximian.com>
21919
21920         * TabControl.cs: Better calculation method for setting the slider
21921         pos. Prevents crashes on really wide tabs.
21922         - Draw Image on tab pages if an image list is used.
21923
21924 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21925
21926         * MonthCalendar.cs: When Font changes, the Size should be
21927         updated to fit the new font's space requirements.
21928
21929 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
21930
21931         * ListBox.cs: If the items are cleared with Items.Clear set
21932           top_index to 0.
21933
21934 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21935
21936         * MonthCalendar.cs: Handle arrow keys as input keys. Also
21937         fire DateChanged event instead of DateSelected event when
21938         the date was changed by keyboard interaction.
21939
21940 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21941
21942         * DateTimePicker.cs: Handle DateChanged for the associated
21943         month_calendar control, and set month_calendar.Font from 
21944         OnFontChanged method, as well as resize the height of the
21945         control when needed. Make PreferredHeight proportional.
21946
21947 2006-09-01  Chris Toshok  <toshok@ximian.com>
21948
21949         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
21950         properties.
21951
21952         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
21953
21954 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
21955
21956         * FileDialog.cs: Set ClientSize instead of window size, to allow space
21957           for decorations (Fixes #79219)
21958
21959 2006-09-01  Mike Kestner  <mkestner@novell.com>
21960
21961         * ComboBox.cs: first stab at sorting plus some selection handling
21962         fixes to bring us more in line with MS behavior.  Also switches back
21963         to index based selection.  Alternative patches for index-based 
21964         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
21965         and latency@gmx.de on bug 78848.  I assume they were similar to this
21966         code I've had simmering in my tree forever.
21967         [Fixes #78848]
21968
21969 2006-09-01  Chris Toshok  <toshok@ximian.com>
21970
21971         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
21972         when setting list position guard against ending up with a -1 index
21973         (the other part of the fix for #78812).  Should probably make sure
21974         we don't need the analogous fix in the ItemDeleted case.
21975
21976         * DataGrid.cs:
21977         - in SetDataSource, work around the fact that the way
21978         OnBindingContextChanged is invoked will cause us to re-enter this
21979         method.  I'll remove the hack once I investigate
21980         OnBindingContextChanged.
21981
21982         - fix the logic in set_DataSource and set_DataMember (basically
21983         what to do if the other of the two is null.)
21984         
21985         - in OnListManagerItemChanged, we need to take into account the
21986         edit row when deciding whether or not to call RecreateDataGridRows
21987         (part of the fix for #78812).
21988
21989 2006-09-01  Jackson Harper  <jackson@ximian.com>
21990
21991         * Splitter.cs: Don't do anything if there is no control to affect
21992         (prevents us from crashing in weird tet cases).
21993         * TreeView.cs: Bounding box for the mouse movement reverting
21994         focus/selection back to previously selected node.  This matches
21995         MS, and makes the tree a lot more useable.
21996         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
21997         use clipping so they are not drawn.  This fixes when the control
21998         is set to have a transparent background, or if it was over an
21999         image.
22000
22001 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
22002
22003         * MimeIcon.cs: Improved handling for reading default icons when
22004           using gnome (2.16 made it necessary). Check and read svg icons
22005           first, then 48x48 and then 32x32 icons.
22006
22007 2006-08-31  Chris Toshok  <toshok@ximian.com>
22008
22009         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
22010         visible.
22011
22012         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
22013         ProcessKeyPreview.  Fixes part of #77806.
22014
22015         * DataGrid.cs: big patch.
22016
22017         - revert the queueing up of DataSource/DataMember if inside
22018         BeginInit/EndInit calls.  That's not the way the datagrid achieves
22019         its delayed databinding.  Instead, call SetDataSource in
22020         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
22021         #78811.
22022
22023         - Also, it wasn't mentioned in #78811, but the test case exhibits
22024         behavior that was lacking in our datagrid implementation - Columns
22025         that have mapping names that don't exist in the datasource's
22026         properties aren't shown.  Yuck.  To fix this I added the bound
22027         field to the column style, and basically any calculation to figure
22028         out anything about columns uses a loop to find the bound columns.
22029         still need to investigate if I can cache an array of the bound
22030         columns or if the indices must be the same.
22031
22032         - When setting CurrentCell, we no longer abort if the cell being
22033         edited was in the add row.  This fixes the other part of #77806.
22034
22035         - The new code also fixes #78807.
22036         
22037         * ThemeWin32Classic.cs: perpetrate the same disgusting
22038         column.bound field hack, and only render bound fields.
22039
22040 2006-08-31  Chris Toshok  <toshok@ximian.com>
22041
22042         * DataGridColumnStyle.cs: add bound field.  this field is true if
22043         the datasource has a property corresponding to the mapping name.
22044
22045         * DataGridTableStyle.cs: set the bound field on the column styles
22046         depending on whether or not we have a column for that property.
22047
22048 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
22049
22050         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
22051           splitter control (fixes #79228)
22052
22053 2006-08-31  Chris Toshok  <toshok@ximian.com>
22054
22055         * DataGridColumnStyle.cs: we need to delay the assignment of
22056         property descriptor until the last possible moment due to the lazy
22057         databinding stuff in the datagrid.  Also, fix the exceptions
22058         thrown by CheckValidDataSource to match MS.
22059
22060 2006-08-31  Jackson Harper  <jackson@ximian.com>
22061
22062         * Form.cs: When activated select the active control, if there is
22063         no active control, we select the first control.
22064         * XplatUIX11.cs: If there is no focus control when we get a
22065         FocusIn event, find the toplevel form and activate it.  This
22066         occurs when you popup a window, it becomes the focus window, then
22067         you close that window, giving focus back to the main window.
22068
22069 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22070
22071         * MonthCalendar.cs: 
22072         * ThemeWin32Classic.cs: Cache Font in bold style, as well
22073         as StringFormat with Center alignments in MonthCalendar,
22074         instead of creating new ones when drawing the control. 
22075         Also, draw the month name in bold style.
22076
22077 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
22078
22079         * Control.cs:
22080           - PerformLayout(): It would seem MS performs the fill even if the 
22081             control is not visible (part of #79218 fix)
22082           - ResetBackColor(): Use the setter to reset the color, to allow
22083             overriders to catch the change.
22084         * Form.cs:
22085           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
22086           - CreateHandle(): dito (part of $79218 fix)
22087           - Don't set an icon if we have a dialog
22088         * ScrollableControl.cs:
22089           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
22090           - ScrollIntoView(): No need to scroll if control is already visible
22091             (resolves fixme and fixes #79218)
22092
22093 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22094
22095         * MonthCalendar.cs: Change proportions in SingleMonthSize
22096         to match the aspect of the original control.
22097
22098 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
22099
22100         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
22101           get updated when they get maximized.
22102
22103 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
22104
22105         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
22106
22107 2006-08-29  Chris Toshok  <toshok@ximian.com>
22108
22109         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
22110
22111 2006-08-29  Jackson Harper  <jackson@ximian.com>
22112
22113         * TreeView.cs: Need to track selected node and highlighted node,
22114         they aren't always the same thing, when the mouse is down on a
22115         node it is hilighted, but not selected yet.
22116         - Do the HideSelection stuff right
22117         - Need to focus on rbutton mouse down. And redraw selection when
22118         right click is mouse upped.
22119
22120 2006-08-29  Mike Kestner  <mkestner@novell.com>
22121
22122         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
22123         when SubItems.Count < Columns.Count.  [Fixes #79167]
22124
22125 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
22126
22127         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
22128
22129 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
22130
22131         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
22132           from X. Only send based on ConfigureNotify if we don't have the
22133           correct location in hwnd (if the window manager moved us)
22134
22135 2006-08-28  Mike Kestner  <mkestner@novell.com>
22136
22137         * ListView.cs: remove a TODO. 
22138         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
22139         [Fixes ListView part of #79166]
22140
22141 2006-08-28  Mike Kestner  <mkestner@novell.com>
22142
22143         * ListView.cs: move wheel handler to parent since it is focused
22144         instead of the item_control now.  [Fixes #79177]
22145
22146 2006-08-28  Mike Kestner  <mkestner@novell.com>
22147
22148         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
22149         when the control is focused. [Fixes #79171]
22150
22151 2006-08-28  Mike Kestner  <mkestner@novell.com>
22152
22153         * ListView.cs: size the item and header controls for empty and
22154         unscrollable views.
22155         * ThemeWin32Classic.cs: draw disabled backgrounds.
22156         [Fixes #79187]
22157
22158 2006-08-28  Chris Toshok  <toshok@ximian.com>
22159
22160         * Form.cs: remove unused "active_form" static field.
22161
22162         * Hwnd.cs: lock around accesses to static windows collection.
22163
22164         * Application.cs: lock threads in Exit ().
22165
22166 2006-08-28  Chris Toshok  <toshok@ximian.com>
22167
22168         * NativeWindow.cs: lock around accesses to window_collection.
22169         
22170 2006-08-28  Chris Toshok  <toshok@ximian.com>
22171
22172         * Control.cs: err, fix this the right way, by locking on controls
22173         when using it.  not by making it synchronized.
22174
22175 2006-08-28  Chris Toshok  <toshok@ximian.com>
22176
22177         * Control.cs: make the static "controls" field synchronized, as it
22178         gets updated from multiple threads.
22179
22180 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
22181
22182         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
22183           Prevent other threads from exiting when calling thread sets quit state.
22184         * XEventQueue.cs: Added PostQuitState property
22185
22186 2006-08-27  Chris Toshok  <toshok@ximian.com>
22187
22188         * AsyncMethodData.cs: add a slot for the window handle.
22189
22190         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
22191         window (the destination control's window, not the foster window).
22192
22193         * Control.cs (BeginInvokeInternal): store the window's handle in
22194         the AsyncMethodData.
22195         
22196
22197 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
22198
22199         * XplatUIX11.cs:
22200           - PostQuitMessage: Removed resetting S.D display handle, we might have
22201             another loop started after calling PostQuitMessage (Fixes #79119)
22202           - Created destructor to reset S.D handle
22203
22204 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
22205
22206         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
22207
22208 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22209
22210         * TextControl.cs (Insert): Update the caret position even if we don't
22211           have a handle yet, just don't call the driver in that case.
22212         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
22213           to the end of the new selection text (Fixes #79184)
22214
22215 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22216
22217         * Form.cs (Activate): Only activate if the handle is created)
22218         * Control.c:
22219           - Mark window as invisible when it's disposed
22220           - Check if window handle is created when setting window visible, 
22221             instead of relying just on the is_created variable
22222           - Check if object is disposed when creating the control (Fixes #79155)
22223
22224 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22225
22226         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
22227           when allowing layout again. Otherwise we re-generate the anchoring 
22228           distance to the border again and actually alter what the user wanted
22229           This is ugly, it'd be better if we used DisplayRectangle instead of
22230           ClientRectangle for Control.UpdateDistances, but that causes us to
22231           have other problems (initial anchoring positons would be wrong)
22232           (Fixes #78835)
22233
22234 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22235
22236         * Control.cs:
22237           - The size and location setters shouldn't go directly to 
22238             SetBoundsCore, but to SetBounds, which triggers layout on the
22239             parent, then calls SetBoundsCore. (Related to fix for #78835)
22240           - SetBounds: Moved actual location update code into this function
22241             from SetBoundsCore, to match MS. Added call to PerformLayout if
22242             we have a parent (to trigger resizing of anchored parents if the 
22243             child size has changed (see testcase for #78835) 
22244         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
22245           new control code
22246         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
22247
22248 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22249
22250         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
22251           System.Drawing when a toplevel window gets closed; there might
22252           be other toplevel windows belonging to the same app (Fixes #78052)
22253
22254 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
22255
22256         * FileDialog.cs: After reading FileDialog settings from mwf_config
22257           use Desktop prefix only if a real folder doesn't exist anymore.
22258         * FontDialog.cs: Added char sets.
22259           It is now possible to select the font, size or style with the
22260           textboxes.
22261
22262 2006-08-25  KornĂ©l PĂ¡l  <kornelpal@gmail.com>
22263
22264         * PrintPreviewDialog.cs: Use assembly name constants.
22265
22266 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22267
22268         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
22269           scrollbar from whacking it's buttons)
22270
22271 2006-08-24  Chris Toshok  <toshok@ximian.com>
22272
22273         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
22274         in this patch (aggregating setting Left/Top/Width/Height to
22275         setting Bounds on the scrollbars), but the crux of the fix is in
22276         Recalculate, where we scroll by the remaining scroll_position if
22277         we're hiding a scrollbar.  The 2*$5 reward in the comment is
22278         serious.
22279
22280 2006-08-24  Jackson Harper  <jackson@ximian.com>
22281
22282         * MdiClient.cs:
22283         * MdiWindowManager.cs: If the form is made a non-mdi window we
22284         need to remove the form closed event so that closing forms works
22285         correctly.
22286
22287 2006-08-24  Jackson Harper  <jackson@ximian.com>
22288
22289         * Control.cs: Make IsRecreating internal so that the driver can
22290         check it
22291         - Temporarily remove the Hide when controls are removed, its
22292         making a whole bunch of things not work because visibility isn't
22293         getting reset elsewhere correctly
22294         * Form.cs: Need to do a full handle recreation when the mdi parent
22295         is set.
22296         * XplatUIX11.cs: If we are recreating handles don't dispose the
22297         HWNDs.  What was happening is the handles were being recreated in
22298         SendWMDestroyMessages, but then flow continued on in that method
22299         and destroyed the new handles.
22300
22301 2006-08-23  Jackson Harper  <jackson@ximian.com>
22302
22303         * Form.cs: MdiClient is always at the back of the bus
22304         * Control.cs: When the order of items in the collection is changed
22305         we need to reset the all_controls array
22306         - do the same sorta setup thats done when adding a control when a
22307         control is set on the collection.
22308
22309 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22310
22311         * TextBoxBase.cs (get_Text): Return an empty array if our document
22312           is empty (fixes #79052)
22313
22314 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22315
22316         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
22317           on WM_SYSCHAR messages (fixes #79053)
22318
22319 2006-08-23  Chris Toshok  <toshok@ximian.com>
22320
22321         * DataGrid.cs: fix flickering when scrolling vertically.
22322
22323 2006-08-23  Chris Toshok  <toshok@ximian.com>
22324
22325         * DataGrid.cs (EndEdit): only invalidate the row header when we
22326         need to.
22327
22328 2006-08-23  Chris Toshok  <toshok@ximian.com>
22329
22330         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
22331         methods.  fixes the flicker when scrolling around.
22332
22333 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22334
22335         * FileDialog.cs: Making sure the control is created before we get a 
22336           chance to use it with BeginInvoke (Fixes #79096)
22337
22338 2006-08-23  Chris Toshok  <toshok@ximian.com>
22339
22340         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
22341         width to use when painting the rows.
22342
22343 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22344
22345         * TextBoxBase.cs:
22346           - Throw ArgumentException if a negative value is passed to SelectionLength
22347           - Update the selection end if start is moved. end needs to be always
22348             after start. (Fixes #79095)
22349           - Track selection length; MS keeps the selection length even if start
22350             is changed; reset on all other operations affection selection
22351
22352 2006-08-22  Jackson Harper  <jackson@ximian.com>
22353
22354         * TreeView.cs: Make sure both scrollbars get displayed and sized
22355         correctly when the other bar is visible.
22356         - Use the original clip rectangle for checking if the area between
22357         the two scrollbars is visible, not the viewport adjusted clipping
22358         rectangle.
22359
22360 2006-08-22  Jackson Harper  <jackson@ximian.com>
22361
22362         * Binding.cs: We don't use IsBinding because it requires the
22363         control to be created, which really shouldn't be necessary just to
22364         set a property on the control.
22365
22366 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22367
22368         * ComboBox.cs: Some CB.ObjectCollection methods must throw
22369         ArgumentNullReferenceException when the argument is null.
22370
22371 2006-08-21  Jackson Harper  <jackson@ximian.com>
22372
22373         * Timer.cs: Track the thread that the timer is started in (NOT
22374         CREATED), this way messages for it will only be triggered on its
22375         queue.
22376         * XEventQueue.cs: Track the timers here, this makes timers per
22377         thread, like MS.
22378         * XplatUIX11.cs: The timers are moved to the XEventQueue.
22379
22380 2006-08-19  Chris Toshok  <toshok@ximian.com>
22381
22382         * XplatUIX11.cs: after further communication with pdb, we get the
22383         best of both worlds.  SetZOrder working for un-Mapped windows, and
22384         no X errors for un-mapped windows.
22385
22386 2006-08-19  Chris Toshok  <toshok@ximian.com>
22387
22388         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
22389         as it was causing pdn toolbars to not have the correct stacking.
22390
22391 2006-08-18  Mike Kestner  <mkestner@novell.com> 
22392
22393         * ListView.cs : guard against negative ClientArea.Width in scrollbar
22394         calculation.  Not sure why control should ever be setting a negative
22395         width though.  Fixes #78931.
22396
22397 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22398
22399         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
22400         null items in ObjectCollection class.
22401         * ListBox.cs.: Likewise.
22402
22403 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
22404
22405         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
22406           as the base method in ThemeWin32Classic should work fine.
22407           Fixed bug #78607.
22408
22409 2006-08-18  Jackson Harper  <jackson@ximian.com>
22410
22411         * Binding.cs: When validating if the value entered doesn't convert
22412         properly reset to the old value.
22413         * RadioButton.cs: Don't fire click when we get focus.
22414
22415 2006-08-18  Jackson Harper  <jackson@ximian.com>
22416
22417         * FileDialog.cs: Paint the selection on the directory combobox the
22418         same way as on MS. 
22419
22420 2006-08-17  Jackson Harper  <jackson@ximian.com>
22421
22422         * ErrorProvider.cs: Don't allow the error control to be selected.
22423         * Control.cs: Don't send the SetFocus messages, the control
22424         activation will do this, and if we do it blindly here validation
22425         does not work.
22426
22427 2006-08-17  Jackson Harper  <jackson@ximian.com>
22428
22429         * Control.cs:
22430         * ContainerControl.cs: Make validation events fire in the correct
22431         order.  TODO: For some reason the first validation event is not
22432         getting fired.
22433
22434 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22435
22436         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
22437
22438 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22439
22440         * ComboBox.cs : implement scroll wheel support for popped-down
22441         state. Fixes #78945. 
22442
22443 2006-08-17  Jackson Harper  <jackson@ximian.com>
22444
22445         * TreeView.cs: Specify treeview actions (old patch that didn't get
22446         committed for some reason).
22447         - Don't let the mouse wheel scroll us too far.  Just want to make
22448         the bottom node visible, not scroll it all the ways to the top.
22449
22450 2006-08-17  Jackson Harper  <jackson@ximian.com>
22451
22452         * XplatUIX11.cs: Mouse wheel events go to the focused window.
22453
22454 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22455
22456         * ComboBox.cs : don't do mouseover selection in simple mode.
22457
22458 2006-08-16  Jackson Harper  <jackson@ximian.com>
22459
22460         * Form.cs: Fire the closing events for all the mdi child windows
22461         when a window is closed.  If the cancel args are set to true, the
22462         main window still gets the event fired, but it doesn't not close.
22463         * MdiWindowManager.cs: Do this closing cleanup in a Closed
22464         handler, instead of when the button is clicked, so cancelling the
22465         close works correctly.
22466         * ComboBox.cs: Send the mouse down to the scrollbar.
22467
22468 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22469
22470         * ListBox.cs: When passing 'null' to SelectedItem,
22471         set SelectedIndex to -1, to unselect items. This is the
22472         observed behaviour in .Net.
22473
22474 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
22475
22476         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
22477           MS flags saying there won't be any. (fixes #78800)
22478         * Control.cs (HandleClick): Made virtual
22479
22480 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
22481
22482         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
22483           cultures. Fixed bug #78399.
22484
22485 2006-08-16  Jackson Harper  <jackson@ximian.com>
22486
22487         * Form.cs: Use the MdiClients MdiChildren property to access
22488         MdiChildren instead of creating the array from the child controls.
22489         * MdiClient.cs: Maintain a separate array of the mdi children, so
22490         that insertion order is maintained when the Z-order is changed.
22491
22492 2006-08-16  Mike Kestner  <mkestner@novell.com> 
22493
22494         * ListView.cs : add an ItemComparer and default to it for sorting.
22495         Fixes #79076, but sorting needs a complete overhaul to be compat with
22496         MS.
22497
22498 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
22499
22500         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
22501
22502 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22503
22504         * Hwnd.cs (Mapped): Properly traverse the tree
22505
22506 2006-08-15  Chris Toshok  <toshok@ximian.com>
22507
22508         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
22509         pass manager.Current.GetType() to ParseData.  It has to be the
22510         property type.  So, hold off doing the ParseData until we're in
22511         SetPropertyValue where we know the type.  This fixes the crash in
22512         #78821 but the textbox is still empty.
22513
22514 2006-08-15  Chris Toshok  <toshok@ximian.com>
22515
22516         * DataGrid.cs:
22517         - when we're scrolling, only call Edit() again if the
22518         current cell is still unobscured. Fixes bug #78927.
22519         - when handling mousedown on a cell, ensure the cell is visible
22520         before calling Edit.
22521         - remove the properties from DataGridRow, and remove the
22522         DataGridParentRow class altogether.
22523         
22524
22525 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22526
22527         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
22528           fire OnTextChanged by ourselves. There's no point calling base,
22529           we don't set the base value anywhere else. Fixes #78773.
22530
22531 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22532
22533         * ListBox.cs: Call CollectionChanged when modifying
22534         an item from Items indexer, to update the actual items
22535         in the list box.
22536
22537 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22538
22539         * PrintDialog.cs: Small fixes for focus and a pair of checks,
22540         to match .Net behaviour.
22541
22542 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22543
22544         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
22545
22546 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
22547
22548         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
22549
22550 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22551
22552         * MessageBox.cs: Prevent potential NRE exception.
22553         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
22554
22555 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
22556
22557         * MessageBox.cs: Calculate the owner of a messagebox, also make
22558           it topmost. Fixes #78753
22559
22560 2006-08-14  Chris Toshok  <toshok@ximian.com>
22561
22562         * XplatUIX11.cs: A couple of fixes so that metacity will let us
22563         programmatically move windows.  first, set the PPosition hint as
22564         well as the USPosition hint.  Second include some code from pdb
22565         that sets the window type to NORMAL when we set the transient for
22566         hint.  This is because, in the absence of a window type, metacity
22567         thinks any window with TransientFor set is a dialog, and refuses
22568         to let us move it programmatically.  fascists.
22569
22570 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
22571
22572         * XplatUIX11.cs: When setting normal hints, take into consideration
22573           an different hints previously set so we don't delete them (fixes #78866)
22574
22575 2006-08-12  Chris Toshok  <toshok@ximian.com>
22576
22577         * ToolBarButton.cs: make Layout return a boolean, if something to
22578         do with the button's layout changed.
22579
22580         * ToolBar.cs:
22581         - add another parameter to Redraw, @force, which all existing
22582           calls set to true.
22583         - make the Layout function return a boolean which is true if the
22584           layout has actually changed.  Redraw now uses this (and @force)
22585           to determine when to invalidate.  At present the only place
22586           where @force can be false is the call from OnResize, when
22587           background_image == null.  So, resizing a toolbar when the
22588           layout doesn't change results in no drawing.
22589
22590 2006-08-12  Chris Toshok  <toshok@ximian.com>
22591
22592         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
22593         the VScrollBar and HScrollbar reversed.  oops.
22594
22595         * DataGrid.cs: fix the logic that assigns sizes to the implicit
22596         scrollbars.  we were assigning them twice (once in
22597         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
22598         therefore causing two scrollbar resizes (and redraws?) to happen
22599         per grid resize.
22600
22601 2006-08-12  Chris Toshok  <toshok@ximian.com>
22602
22603         * ToolBarButton.cs: redraw the entire button if the theme tells us
22604         to.
22605
22606         * Theme.cs: add ToolBarInvalidateEntireButton.
22607
22608         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
22609         buttons, just the border.
22610
22611         * ThemeNice.cs: redraw the entire toolbar button since we need to
22612         draw the highlight image.
22613
22614         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
22615         we need to redraw the entire button (not just the border).
22616
22617 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
22618
22619         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
22620           for vertical bars. Fixes the mismatches shown by #78513
22621
22622 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
22623
22624         * FileDialog.cs: If a saved/remembered path doesn't exist
22625           anymore, fall back to "Desktop".
22626
22627 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
22628
22629         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
22630           parent. It's apparently legal to not have one
22631         * XplatUIX11.cs:
22632           - SetZOrder: Don't try to set Z-Order on an unmapped window
22633           - CreateWindow: 0,0 are legal coordinates for a window. don't move
22634             it unless the coordinates are negative
22635
22636 2006-08-10  Mike Kestner  <mkestner@novell.com>
22637
22638         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
22639         when setting to null per msdn docs.  Fixes #78854.
22640
22641 2006-08-10  Chris Toshok  <toshok@ximian.com>
22642
22643         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
22644         flickering by setting a clip rectangle on the Graphics when we
22645         need to redraw just a particular menuitem.  Also, rename "OnClick"
22646         to "OnMouseDown" to reflect what it actually is.
22647         
22648         * Form.cs: track the OnMouseDown change.
22649
22650 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
22651
22652         * CommonDialog.cs: Properly inherit the CreateParams from the form
22653           and only change what we need. Fixes #78865
22654
22655 2006-08-10  Chris Toshok  <toshok@ximian.com>
22656
22657         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
22658         flickering in flat mode (and most of the flickering in general) by
22659         only invalidating the button border (and not the entire rectangle)
22660         when the state changes.  A couple of cases still flicker:
22661         ToggleButtons, and the dropdown arrow case when the user mouse
22662         ups.
22663
22664 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
22665
22666         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
22667           for german keyboards. Numlock state shouldn't affect the behaviour
22668           of the Del key. Fixes bug #78291.
22669
22670 2006-08-10  Chris Toshok  <toshok@ximian.com>
22671
22672         * ListControl.cs: remove the items.Clear line from BindDataItems,
22673         as this is the first thing done by both subclasses in their
22674         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
22675         passed -1, refresh the list.  This gets databinding working when
22676         the datasource is set on the list before the datasource is
22677         populated (as in wf-apps/ReportBuilder.)
22678
22679         * ComboBox.cs: remove the argument to BindDataItems.  This call
22680         should really go away, and be initiated by the ListControl code.
22681
22682         * ListBox.cs: same.
22683
22684 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
22685
22686         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
22687           if no data is in the document when the control is displayed
22688
22689 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
22690
22691         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
22692           yes (fixes #78806)
22693         * TextControl.cs: 
22694           - PositionCaret: Allow positioning of caret but don't call methods 
22695             requiring a handle if the window isn't created yet
22696           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
22697           - owner_HandleCreated: Don't position the caret, just update it's 
22698             location. User might have already set a different position
22699
22700 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
22701
22702         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
22703           windows. Screws up the returned coordinates for child windows. 
22704           Fixes #78825. I'm hoping this doesn't break something, since the
22705           code was explicitly put in 8 months ago, but no bug was attached.
22706           Menus still seem to work properly.
22707
22708 2006-08-08  Chris Toshok  <toshok@ximian.com>
22709
22710         * DataGrid.cs: make BeginInit/EndInit actually do what they're
22711         supposed to do - delay data binding until the EndInit call.  Also,
22712         make the table style collection's CollectionChangeAction.Refresh
22713         work properly.
22714
22715         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
22716         (with action = Refresh) when a consituent table's MappingName is
22717         changed.
22718
22719 2006-08-08  Chris Toshok  <toshok@ximian.com>
22720
22721         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
22722         Invalidate, since changing the text can change the size of the all
22723         toolbar buttons.
22724
22725 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
22726
22727         * Form.cs (AddOwnedForm): Still need to add the form to our listif
22728           we don't have it yet
22729
22730 2006-08-08  Chris Toshok  <toshok@ximian.com>
22731
22732         * PrintControllerWithStatusDialog.cs: don't .Close() the status
22733         dialog, as this causes X errors later on, since we actually
22734         destroy the window.  Instead, .Hide() it.
22735
22736 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
22737
22738         * ComboBox.cs: Added focus reflection for popup window
22739         * XplatUIX11.cs: 
22740           - Removed transient setting for non-app windows for now, not sure it
22741             was needed
22742           - Fixed logic checking if we have captions when deciding 
22743             override_redirect, WS_CAPTION is two bits and a 0 check was not
22744             sufficient
22745           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
22746             complicated
22747         * Form.cs: 
22748           - AddOwnedForm: Don't just add the form to the list, call the property
22749             to ensure the driver is informed about the ownership as well
22750           - CreateHandle: Set the TopMost status in the driver if we have an owner
22751         * XplatUI.cs: Fixed debug statement
22752
22753 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
22754         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22755           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
22756           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
22757           TrackBarRenderer.cs: Make constructor private.
22758         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
22759         * ProfessionalColorTable.cs: Make properties virtual.
22760
22761 2006-08-06  Duncan Mak  <duncan@novell.com>
22762
22763         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
22764         is not changing.
22765
22766 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
22767         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22768           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
22769           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
22770           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
22771           Initial import of new 2.0 classes.
22772
22773 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
22774         * Application.cs: Add 2.0 VisualStyles properties.
22775
22776 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
22777         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22778           XplatUIX11.cs: Create property to allow access to existing private
22779           variable "themes_enabled"
22780
22781 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22782
22783         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
22784         file size, as otherwise our class libraries fail using windows. Fixes
22785         bug #78759.
22786
22787 2006-08-04  Jackson Harper  <jackson@ximian.com>
22788
22789         * Form.cs:
22790         * XplatUIX11.cs: Move the toolwindow window manager creation into
22791         the X11 driver, this way on win32 we can let windows create/handle
22792         the toolwindows.
22793
22794 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22795
22796         * PrintDialog.cs: Remove some redundant checks, add some others,
22797         clean some code, and move the focus to the text boxes when the
22798         values are incorrect.
22799
22800 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
22801
22802         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
22803
22804 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
22805
22806         * NumericUpDown.cs: Setting the Minimum and Maximum is now
22807           handled correctly. Fixes bug #79001.
22808
22809 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22810
22811         * PrintDialog.cs: The "Copies" numeric up down must have
22812         set the Minimum property to 1; only if the value is bigger
22813         than 1, activate "Collate" check box. This is the behaviour of .Net.
22814         Also modify the Document elements only if it is not null.
22815
22816 2006-08-03  Jackson Harper  <jackson@ximian.com>
22817
22818         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
22819         length. (We have a larger array then actual node count).
22820                 
22821 2006-08-03  Jackson Harper  <jackson@ximian.com>
22822
22823         * ComboBox.cs: Don't show selection by default.
22824         - The SelectAll isn't needed here, since the focus code should do
22825         that
22826         - DDL style lists to manual selection drawing, so when they
22827         get/lose focus they have to invalidate.
22828
22829 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
22830
22831         * TextBoxBase.cs: Don't always show all selections by default.
22832
22833 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
22834         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
22835           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
22836           Fixed various typos.
22837
22838 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
22839
22840         * Control.cs: Removing the controls in a ControlCollection with
22841           Clear now hides the controls as expected. Fixes bug #78804. 
22842
22843 2006-08-03  Jackson Harper  <jackson@ximian.com>
22844
22845         * Control.cs: Revert previous focus patch, it breaks reflector.
22846
22847 2006-08-03  Jackson Harper  <jackson@ximian.com>
22848
22849         * ComboBox.cs: Cleanup selection and focus with the combobox.
22850         This also eliminates some duplicated keyboard code, since now
22851         everything is handled by the main class.
22852         - Make list selection work on mouse up instead of down, to match
22853         MS.
22854
22855 2006-08-02  Jackson Harper  <jackson@ximian.com>
22856
22857         * Control.cs: Setting focus needs to go through the whole
22858         selection mechanism.
22859
22860 2006-08-02  Chris Toshok  <toshok@ximian.com>
22861
22862         * PrintPreviewDialog.cs: change MinimumSize to use
22863         base.MinimumSize so it works.
22864
22865 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
22866
22867         * TextControl.cs:
22868           - UpdateCaret: Added sanity check in case caret isn't defined yet
22869           - Line.Delete: Now updating selection and caret markers if we're
22870             transfering a node (Properly fixes #78323)
22871           - SetSelectionEnd: Added sanity check
22872         * TextBoxBase.cs: Removed broken attempt to fix #78323
22873
22874 2006-08-01  Chris Toshok  <toshok@ximian.com>
22875
22876         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
22877         Close() call is handled in Form, not here.
22878
22879 2006-08-01  Chris Toshok  <toshok@ximian.com>
22880
22881         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
22882         layout/rendering.
22883
22884         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
22885         for sizes < 100% zoom.  The code now aggressively attempts to keep
22886         from calling document.Print (), and tries not to use the scaling
22887         g.DrawImage whenever possible (it still does if you scale to >
22888         100%, since usually that involves huge images).
22889
22890         * PrintPreviewControl.cs: hook up the close button.
22891
22892 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
22893         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
22894           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
22895           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
22896           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
22897           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
22898           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
22899           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
22900           Removed [Serializable] for 2.0 Event Handlers.
22901
22902 2006-07-31  Jackson Harper  <jackson@ximian.com>
22903
22904         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
22905         * TextControl.cs: Uncomment out the body of this method.
22906
22907 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
22908
22909         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
22910           standard cursors.
22911
22912 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
22913
22914         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
22915           that embed TextBox and need selections visible even if textbox is not
22916           focused to enforce that behaviour.
22917         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
22918           selection drawing
22919
22920 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
22921
22922         * TextControl.cs:
22923           - Added new SetSelectionStart/SetSelectionEnd overloads
22924           - Fixed viewport width assignment to be accurate
22925           - Adjusted alignment line shift calculations to allow cursor on right
22926             aligned lines to be always visible at the right border (like MS)
22927         * TextBoxBase.cs:
22928           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
22929           - TextBoxBase_SizeChanged: recalculating canvas on size changes
22930           - CalculateScrollBars: Use ViewPort size instead of window size, to
22931             properly consider space occupied by the border and scrollbars 
22932             (Fixes #78661)
22933           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
22934             calculations; no longer leaves artifacts
22935           - CaretMoved: Adjusted window scrolling to match MS and fixed several
22936             calculation bugs (Still missing right/center align calculations)
22937
22938 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
22939
22940         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
22941           use of both scroll rect and clip rect, as they do the same.
22942
22943 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
22944
22945         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
22946           in the event handler (fixes #78912)
22947
22948 2006-07-31  Chris Toshok  <toshok@ximian.com>
22949
22950         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
22951         grid.ListManager.Count, since grid.ListManager might be null.
22952         This of course begs the question "why are we drawing rows for a
22953         grid with no list manager (and therefor no rows)?"  Fixes the
22954         crash in bug #78929.
22955
22956 2006-07-31  Chris Toshok  <toshok@ximian.com>
22957
22958         * RelatedPropertyManager.cs: Don't always chain up to the parent
22959         ctor.  instead, call SetDataSource if the parent's position is !=
22960         -1.  Fixes the crash in #78822.
22961
22962 2006-07-31  Chris Toshok  <toshok@ximian.com>
22963
22964         * DataGrid.cs (get_ListManager): use field instead of property
22965         accessors for datasource and datamember.
22966         (RowsCount): make internal again.
22967         (OnMouseDown): end edits before resizing columns/rows.
22968         (OnMouseUp): restart edits after resizing columns/rows.
22969
22970 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
22971
22972         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
22973           This fixes the situation where the last set cursor is displayed
22974           whenever the mouse is over scrollbars.
22975
22976 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22977
22978         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
22979         Document properties, as well as initial values.
22980
22981 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
22982
22983         * XplatUIWin32.cs (SetBorderStyle): Setting both border
22984           and ClientEdge results in a 3-pixel border, which is
22985           wrong.
22986
22987 2006-07-28  Jackson Harper  <jackson@ximian.com>
22988
22989         * TreeNodeCollection.cs: Fix the clear method.
22990         - Fix the Shrink also
22991
22992 2006-07-27  Jackson Harper  <jackson@ximian.com>
22993
22994         * TreeView.cs: Make sure the visible order is computed when we
22995         attempt to size the scrollbars (for trees that mess with the
22996         scrolling when they shouldn't.
22997         - Make sure to give the scrollbars valid values.
22998
22999 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
23000
23001         * XplatUIX11.cs: Move motion compression code to where it
23002           has less performance impact
23003
23004 2006-07-26  Jackson Harper  <jackson@ximian.com>
23005
23006         * UpDownBase.cs: When the control is selected make the child
23007         controls non selectable, so that a click on them won't do a
23008         focus/unfocus cycle.
23009         - Don't give focus to the text box when the spinner is selected.
23010         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
23011
23012 2006-07-26  Chris Toshok  <toshok@ximian.com>
23013
23014         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
23015         satisfied with this solution.  If the bitmaps are small, we should
23016         just cache them in the PrintPreviewDialog and draw them here.
23017         Also, the layout is broken for the 2-up and 3-up cases.
23018
23019         * Theme.cs: add PrintPReviewControlPaint.
23020
23021         * PrintPreviewDialog.cs: first pass implementation.
23022
23023         * PrintPreviewControl.cs: first pass implementation.  No
23024         scrollbars yet.
23025
23026         * PrintDialog.cs: only validate fields if that particular portion
23027         of the UI is enabled.  Also, set the document's controller to a
23028         PrintControllerWithStatusDialog wrapping the document's print
23029         controller.
23030
23031         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
23032         bring up a SaveFileDialog (i hope we don't want to match the
23033         behavior of the crappy windows file entry) and set the
23034         PrinterSettings.PrintFileName accordingly.
23035
23036 2006-07-26  Jackson Harper  <jackson@ximian.com>
23037
23038         * ContainerControl.cs: Add a field that disables auto selecting
23039         the next control in a container when the container is activated.
23040         * UpDownBase.cs: Don't select the text box when the up down is
23041         selected.
23042
23043 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
23044
23045         * XEventQueue.cs: Added methods for peeking (used for compression
23046           of successive events)
23047         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
23048           mouse move events (fixes #78732)
23049
23050 2006-07-25  Jackson Harper  <jackson@ximian.com>
23051
23052         * UpDownBase.cs: Use an internal class for the textbox so that we
23053         can control focus.  the updown control should always have focus,
23054         if either the text area or the buttons are clicked.
23055         - Send the key messages to the textbox, since it never actually
23056         has focus
23057         - Activate and decativate the textbox caret.
23058
23059 2006-07-24  Jackson Harper  <jackson@ximian.com>
23060
23061         * Control.cs: Use the directed select when selecting a control,
23062         this way the container controls override will get called and the
23063         whole ActiveControl chain will get triggered.  TODO: probably need
23064         to make sure this gets done everywhere instead of the old
23065         Select(Control).
23066         * ContainerControl.cs: Implement the directed Select method to
23067         find and activate the correct child control.    
23068         
23069 2006-07-22  Mike Kestner  <mkestner@novell.com>
23070
23071         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
23072         menu handling code so that clicks without a grab work too.
23073         [Fixes #78914]
23074
23075 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
23076
23077         * FileDialog.cs: Enable the BackButton when dirstack has one element.
23078           Added some small optimizations.
23079
23080 2006-07-21  Matt Hargett  <matt@use.net>
23081
23082         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
23083
23084 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
23085
23086         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
23087           tests pass and match MS in some strange border cases.
23088
23089 2006-07-21  Chris Toshok  <toshok@ximian.com>
23090
23091         * ThemeWin32Classic.cs: handle drawing of the relation links and
23092         parent row buttons.
23093
23094         * Theme.cs: change args to DataGridPaintParentRow.
23095
23096         * DataGrid.cs: Don't use controls for the relation links and
23097         parent buttons, so we have to handle all their interactions in
23098         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
23099         when we're navigating through child tables, so we can reinstate
23100         selection, expanded state, current cell, etc.
23101
23102 2006-07-20  Chris Toshok  <toshok@ximian.com>
23103
23104         * ToolBar.cs: When we redraw a button, for whatever reason,
23105         there's no reason to redraw the entire toolbar.  Also, don't call
23106         Control.Refresh from within Redraw, as it's much heavier than
23107         Invalidate (which is really what we want).
23108
23109 2006-07-20  Chris Toshok  <toshok@ximian.com>
23110
23111         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
23112         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
23113         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
23114         traces from within a debug IBindingList datasource
23115         (in mono/winforms/datagrid) for *days*, I've finally gotten things
23116         to work in a similar fashion.
23117
23118 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23119
23120         * ListBox.cs: Don't call Sort () when setting 
23121         the Sorted property to false (avoid an unnecessary sort).
23122
23123 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23124
23125         * ListControl.cs: DataSource should throw an ArgumentException
23126         instead of a normal exception when the argument is not of the 
23127         correct type.
23128
23129 2006-07-20  Mike Kestner  <mkestner@novell.com>
23130
23131         * Control.cs: add InternalPreProcessMessage to allow us to steal
23132         key events before MWF gets its paws on them.  Adapted from a
23133         suggestion by eno.
23134         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
23135         up/down/left/right navigation. Override the new internal control
23136         method to steal the events since they never make it to WndProc.
23137         * ToolBarButton.cs: don't worry about pushed when setting hilight
23138         since the drawing code prefers pushed to hilight. Invalidate on 
23139         Hilight changes. Fixes #78547 and #78525.
23140
23141 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
23142
23143         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
23144           the canvas size. Fixes #78868
23145
23146 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
23147
23148         * Splitter.cs: Track requested split position until first layout
23149           is performed. Fixes #78871
23150
23151 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
23152
23153         * Application.cs: Removed code that forces 1.x for the version
23154           number if the version started with 0. Not sure why that code was
23155           there and I couldn't find any bugs that indicated we needed it.
23156           Fixes #78869
23157
23158 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
23159
23160         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
23161           ResetDefaults(), just write some output to the console until it's
23162           implemented. Fixes bug #78907 for now. Eliminated two warnings.
23163
23164 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
23165
23166         * PropertyGridView.cs: set StartPosition of drop down forms
23167         so they appear in correct initial spot.  Fixes #78190.
23168
23169 2006-07-19  Mike Kestner  <mkestner@novell.com>
23170
23171         * ThemeWin32Classic.cs: use parent background color when drawing
23172         flat toolbars.  Restructure the conditionals to make sure non-flat
23173         non-Divider toolbars are filled too.  Fixes #78837.
23174
23175 2006-07-19  Mike Kestner  <mkestner@novell.com>
23176
23177         * ListBox.cs: Sort on collection changes even if the handle
23178         isn't created yet.  Fixes #78813.
23179
23180 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23181
23182         * ListControl.cs: DisplayMember should never be null,
23183         and now we assign String.Empty when null is passed to it (this
23184         is the .Net way).
23185
23186 2006-07-17  Mike Kestner  <mkestner@novell.com>
23187
23188         * ListViewItem.cs: restructure Font and subitem Font handling 
23189         to hold a specific font and refer back to owner on null.
23190         Fixes #78761.
23191
23192 2006-07-17  Mike Kestner  <mkestner@novell.com>
23193
23194         * ToolBar.cs: bandaid for side-effect of previous patch which was
23195         discarding explicit heights for non-AutoSize toolbars.  Need to
23196         extend my format tester to deal with AutoSize=false. Fixes #78864.
23197
23198 2006-07-15  Jackson Harper  <jackson@ximian.com>
23199
23200         * LabelEditTextBox.cs:
23201         * TreeView.cs: Use a new LabelEdit class for node editing, this
23202         class automatically 'closes' itself when it gets the enter key or
23203         loses focus.
23204         - Use the client rectangle when setting the trees scrollbars, so
23205         border style is taken into account.
23206         
23207 2006-07-14  Jackson Harper  <jackson@ximian.com>
23208
23209         * TreeNode.cs:
23210         * TreeView.cs: Make the editing work similar to MSs, firing the
23211         events correctly and ending edits correctly.
23212
23213 2006-07-14  Mike Kestner  <mkestner@novell.com>
23214
23215         * ToolBarButton.cs:
23216         * ToolBar.cs: layout restructuring and redraw enhancements to support
23217         formatting changes gracefully, like setting TextAlign, ImageList, 
23218         ButtonSize, and Appearance.  Handles explicit button sizing quirks
23219         of the MS controls.  Things like flat toolbars ignoring button size
23220         but becoming constant sized at the largest button's size.  Normal
23221         toolbars with an image set cannot be shrunk smaller than the image,
23222         but text can be clipped/ignored.
23223         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
23224         is zero.  Seems like DrawString should be smart enough to not put
23225         anything on screen though. Also trim labels and ellipsize at the char
23226         boundary, not word.
23227         Fixes #78711 and #78483.
23228
23229 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23230
23231         * FolderBrowserDialog.cs: Disable "New Folder" button and
23232           "New Folder" contextmenu menuitem if a folder like "My Computer"
23233           is selected.
23234
23235 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23236
23237         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
23238         * FolderBrowserDialog.cs:
23239           - Use MWFConfig to store and read size and position settings
23240           - Added code to create a new folder (button or context menu).
23241             Use TreeView labeledit to change the name of the new folder.
23242
23243 2006-07-14  Jackson Harper  <jackson@ximian.com>
23244
23245         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
23246         when the tree is scrolled we end editing.
23247
23248 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23249
23250         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
23251           Down arrows
23252
23253 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
23254
23255         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
23256         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
23257         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
23258         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
23259         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
23260         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
23261         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
23262         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
23263         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
23264         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
23265         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
23266         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
23267         ListViewItemSelectionChangedEventHandler.cs,
23268         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
23269         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
23270         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
23271         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
23272         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
23273         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
23274         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
23275         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
23276         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
23277         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
23278         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
23279         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
23280         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
23281         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
23282         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
23283         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
23284         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
23285         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
23286         WebBrowserNavigatingEventHandler.cs, 
23287         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
23288
23289 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
23290
23291         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
23292         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
23293         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
23294         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
23295         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
23296         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
23297         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
23298         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
23299         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
23300         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
23301         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
23302         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
23303         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
23304         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
23305         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
23306         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
23307         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
23308         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
23309         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
23310         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
23311         ListViewItemStates.cs, MaskFormat.cs: Added
23312
23313 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
23314
23315         * PropertyGridView.cs: Fix keyboard navigation of drop down.
23316         Patch from eno for bug 78558.
23317         
23318 2006-07-13  Jackson Harper  <jackson@ximian.com>
23319
23320         * TreeView.cs: When an edit is finished make sure that the
23321         selected node is visible.
23322         - When setting the top/bottom use the scrollbars is_visible, so
23323         everything will be set correctly even if the tree isn't visible
23324         yet.
23325
23326 2006-07-13  Jackson Harper  <jackson@ximian.com>
23327
23328         * ComboBox.cs: Revert the item->index part of my previous patch.
23329         * TreeView.cs: Use LostFocus instead of Leave for detecting when
23330         the edit box has lost focus (duh).
23331         - Just make the edit box not visible when we get return, that will
23332         take the focus, which will call EndEdit
23333         * TreeNode.cs When we start editing, notify the treeview.
23334
23335 2006-07-12  Jackson Harper  <jackson@ximian.com>
23336
23337         * ComboBox.cs: Clear out old items before setting the item list.
23338         This prevents databound controls from having their items added
23339         twice.
23340         - Switch the combobox to use indices whereever possible instead of
23341         using Item's.  This allows usto navigate through lists that have
23342         more then one item with the same string value (ie a, b, b, a).
23343         - Scroll the listboxes scrollbar when a non visible item is
23344         highlighted
23345         - Allow keypress to cycle through all the possible values. For
23346         example if you have b1, b2, b3 and hold down the B key all the
23347         values will be cycled through.
23348         
23349 2006-07-12  Jackson Harper  <jackson@ximian.com>
23350
23351         * TextBoxBase.cs:
23352         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
23353         this using the internal methods.
23354         * Control.cs: Add OnGotFocusInternal.  A new method that allows
23355         controls to "override" OnGotFocus and change focus behavior if
23356         needed.
23357         - Same thing for LostFocus
23358         * ComboBox.cs: Pass off focus to the text control properly.
23359
23360 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
23361
23362         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
23363         * FolderBrowserDialog.cs: Almost a complete rewrite.
23364           - Better support for Environment.Specialfolders
23365           - Added support for MWFVFS
23366           - Made setting SelectedPath work
23367
23368 2006-07-12  Jackson Harper  <jackson@ximian.com>
23369
23370         * Control.cs: Optimze getting all the controls.
23371
23372 2006-07-11  Jackson Harper  <jackson@ximian.com>
23373
23374         * ContainerControl.cs: Override SETFOCUS in the container control,
23375         so that it is not selected on mouse click.
23376
23377 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
23378
23379         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
23380           Hopefully we will have a better way once all of focus is complete.
23381
23382 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
23383
23384         * ThemeWin32Classic.cs: Commented out some debug code and fixed
23385           a compile error with csc.
23386
23387 2006-07-11  Jackson Harper  <jackson@ximian.com>
23388
23389         * Control.cs: When hiding a control only select the next control
23390         if the current control was focused.
23391         - Don't handle enter/leave when setting/killing focus, this is
23392         done by the container control.
23393         - Remove is_selected, it's not needed anymore.
23394         - Add utility methods for selecting a child control, and for
23395         firing the Enter/Leave events.
23396         * ContainerControl.cs: When a control is activated fire the
23397         enter/leave events.
23398         - Don't wrap when processing the tab key, so that focus can be
23399         moved outside of the container.
23400         - Use the correct active control
23401
23402 2006-07-11  Jackson Harper  <jackson@ximian.com>
23403
23404         * ComboBox.cs: Remove some debug code that was blinding me.
23405         * UpDownBase.cs: These controls actually aren't implicit, they are
23406         visible to the user.
23407
23408 2006-07-10  Chris Toshok  <toshok@ximian.com>
23409
23410         * DataGrid.cs: move back to the is_adding boolean field.  god i
23411         hate this is_editing/is_adding/is_changing stuff.
23412
23413 2006-07-10  Chris Toshok  <toshok@ximian.com>
23414
23415         * DataGridTableStyle.cs: just check if the property type is bool.
23416         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
23417         Don't use CanRenderType.
23418
23419         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
23420         if our text == NullText.  Remove CanRenderType.
23421
23422         * DataGridBoolColumn.cs: nuke CanRenderType.
23423
23424         * DataGrid.cs: reenable some code to end the current edit inside
23425         of set_CurrentCell.  This fixes the other 1.1.16 regression.
23426         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
23427         Also, remove the visible_row_count arg from CalcRowHeaders, since
23428         we don't need to worry about the actual height of the area.
23429
23430 2006-07-10  Chris Toshok  <toshok@ximian.com>
23431
23432         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
23433         mode, just return.
23434
23435         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
23436         the real sense of the IsInEditOrNavigateMode property (true =
23437         navigate, false = edit).  Also, update OnKeyPress to reflect this.
23438
23439         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
23440         column style exists, we still need to set its property descriptor
23441         to match up with our list manager.
23442
23443 2006-07-10  Chris Toshok  <toshok@ximian.com>
23444
23445         * ThemeWin32Classic.cs: implement the new row/header painting
23446         approach.  The parent row painting will likely go away and
23447         replaced with label controls, but the rest seems to work ok (and
23448         efficiently).
23449
23450         * Theme.cs: change the way we draw datagrid rows.  we don't draw
23451         the row headers as a block now.  Instead we draw them in the
23452         normal draw-row loop.  Add some calls for drawing parent rows and
23453         relation rows.
23454
23455         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
23456         a default table style.  Set the defaults from ThemeEngine.Current,
23457         not SystemColors.  Fix lots of misc issues with property setters.
23458
23459         * DataGrid.cs: move loads of style information out of this class
23460         as it's being duplicated with DataGridTableStyle.  keep track of a
23461         special DataGridTableStyle for the properties we used to mirror
23462         here.  Switch all the style properties to access this table style
23463         instead of instance fields of this class.  Also add a internal
23464         class to represent parent rows (more needs to be stored here, like
23465         the selection state from the parent table, as well as the
23466         expansion state.)  Also, for datasources with relations, do the
23467         right thing for collapse/expand, and add support for the
23468         navigation/parent row buttons.
23469
23470         Lastly, fix the crash in the 1.1.16 build.
23471
23472         * GridTableStylesCollection.cs: make the explicit interface
23473         implementations call the class's methods as opposed to duplicating
23474         them.
23475
23476         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
23477         0 so the text doesn't jump around when we move the cursor.
23478
23479 2006-07-10  Jackson Harper  <jackson@ximian.com>
23480
23481         * TextBoxBase.cs:
23482         * ListBox.cs: Match MS's ToString (this makes debugging focus
23483         stuff infinitely easier).
23484
23485 2006-07-10  Jackson Harper  <jackson@ximian.com>
23486
23487         * Control.cs (SelectNextControl): When checking the control's
23488         parent use this instead of ctrl.parent so that null can be passed
23489         to SelectNextControl. (I have unit tests for this).
23490         - Remove unused var.
23491
23492 2006-07-10  Chris Toshok  <toshok@ximian.com>
23493
23494         * CurrencyManager.cs: correct one regression, the removal of the
23495         finalType field.  Also, add a MonoTODO on CanAddRows, implement
23496         Refresh() correctly, and fix some event emission in
23497         ListChangedHandler.
23498
23499 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
23500
23501         * FileDialog.cs: Don't use brackets for new folders if they exist
23502           under *nix. Instead use -(number of existing folders +1).
23503
23504 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
23505
23506         * FileDialog.cs:
23507           - Fixed really nasty bug #78771
23508           - Don't block the whole GUI when reading directories with a lot of
23509             entries. Use an other thread instead and call BeginInvoke to
23510             update the ListView in MWFFileView
23511
23512 2006-07-07  Chris Toshok  <toshok@ximian.com>
23513
23514         * Control.cs (Dispose): release any Capture when disposing.
23515
23516 2006-07-07  Chris Toshok  <toshok@ximian.com>
23517
23518         * LinkLabel.cs (Select): if we chain up to the parent, set
23519         focused_index to -1 so we'll search for the first available link
23520         the next time the user tabs into us.  Also, if the direction is
23521         backward and focused_index == -1, start the search from the last
23522         element.
23523
23524 2006-07-07  Chris Toshok  <toshok@ximian.com>
23525
23526         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
23527         is beyond the end of the text, don't do anything.
23528         (CreateLinkPieces): set our ControlStyles.Selectable based on
23529         whether or not we have any links.
23530         (Link.Invalidate): use a loop instead of foreach.
23531         (Link.set_Start): null out owner.sorted_links so it'll be
23532         recreated by CreateLinkPieces.
23533
23534 2006-07-06  Chris Toshok  <toshok@ximian.com>
23535
23536         * LinkLabel.cs: revert the SetStyle change.
23537
23538 2006-07-06  Chris Toshok  <toshok@ximian.com>
23539
23540         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
23541         (OnEnableChanged): s/Refresh/Invalidate
23542         (OnGotFocus): if we have a focused index already, refocus it (so
23543         if we mouse out/in to the window it'll focus the right link).
23544         (OnKeyDown): move the tab handling out of here.
23545         (OnLostFocus): don't set focused_index to -1, so we can refocus it
23546         when we lose focus.
23547         (OnMouseDown): don't Capture here - Control handles it.  Also,
23548         focus the active link.
23549         (OnMouseUp): don't deal with Capture.
23550         (OnPaintBackgroundInternal): remove.
23551         (OnTextAlignChanged): CreateLinkPieces before calling the
23552         superclass's method.
23553         (OnTextChanged): call CreateLinkPieces before calling superclass's
23554         method.
23555         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
23556         move around.
23557         (Select): implement this, moving the selection between different
23558         links, and call parent.SelectNextControl if we don't have another
23559         link to focus in the given direction.
23560         (CreateLinkPieces): call Invalidate instead of Refresh.
23561         
23562 2006-07-06  Chris Toshok  <toshok@ximian.com>
23563
23564         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
23565         new LinkLabel internals.
23566
23567         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
23568         over pieces looking for active/focused/etc links.  also, deal with
23569         runs of text (and links) with embedded \n's in them, and use
23570         MeasureCharacterRanges instead of MeasureString to figure out the
23571         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
23572         two-step.
23573
23574 2006-07-04  Jackson Harper  <jackson@ximian.com>
23575
23576         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
23577         XKB or key auto repeat, do it manually.  Without key auto repeat,
23578         when a key is held down we get key press, key release, key press,
23579         key release, ... with auto repeat we get key press, key press, key
23580         press ..., and then a release when the key is actually released.
23581
23582 2006-07-03  Jackson Harper  <jackson@ximian.com>
23583
23584         * TabControl.cs:
23585         * ThemeWin32Classic.cs: Tabs do not obey normal background color
23586         rules, they are always control color regardless of the background
23587         color.
23588
23589 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
23590
23591         * FileDialog.cs: Added internal class MWFConfig.
23592           Removed Registry support and replaced it with support for the new
23593           MWFConfig class. See MWFConfig comments for more information.
23594
23595 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
23596
23597         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
23598           rectangle. Added some patches from eno from bug #78490 and fixed
23599           the arrow position for small up and down CPDrawScrollButtons.
23600
23601 2006-06-30  Jackson Harper  <jackson@ximian.com>
23602
23603         * InternalWindowManager.cs: Remove some debug code.
23604         * Form.cs: When an MdiParent is set to null, the window is
23605         "detatched" and becomes a normal window.
23606         * MdiClient.cs: Don't bring the new child form to the front until
23607         it is activated (setting it as active does this), this makes the
23608         previously active forms titlebar get redrawn as inactive.
23609
23610 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
23611
23612         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
23613           with later controls
23614
23615 2006-06-29  Mike Kestner  <mkestner@novell.com>
23616
23617         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
23618         arrow in keynav state.  Fixes #78682.
23619
23620 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
23621
23622         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
23623           order (fixes #78393)
23624
23625 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
23626
23627         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
23628           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
23629           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
23630           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
23631           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
23632           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
23633           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
23634           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
23635           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
23636           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
23637           enumerations (FlagsAttribute, SerializableAttribute, added/removed
23638           values)
23639
23640 2006-06-28  Mike Kestner  <mkestner@novell.com>
23641
23642         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
23643
23644 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
23645
23646         * PropertyGrid.cs,
23647           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
23648           item lines from other area (It also makes BackColor consistent and
23649           compatible with .NET). Fixed bug #78564.
23650
23651 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
23652
23653         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
23654         Patch from Eno for #78555.
23655
23656 2006-06-27  Chris Toshok  <toshok@ximian.com>
23657
23658         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
23659
23660         * DataGridColumnStyle.cs: same.
23661
23662         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
23663         
23664         * DataGridDrawingLogic.cs: nuke.
23665
23666 2006-06-27  Chris Toshok  <toshok@ximian.com>
23667
23668         * DataGridTableStyle.cs: clean up the constructors, and build the
23669         list of child relations for this table.  I have no idea if this is
23670         where we should be doing it (it probably isn't), but since we're
23671         already iterating over the properties..
23672
23673         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
23674         struct and array for keeping track of row information, similar to
23675         what's shown in a hack on
23676         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
23677
23678         * Theme.cs: be consistent about the naming of DataGrid methods,
23679         prefering ColumnWidths and RowHeights over columnsWidths and
23680         RowsHeights.
23681
23682         * ThemeWin32Classic.cs: same, and also add support for variable
23683         sized rows (and the +/- expansion icons for related rows).
23684
23685 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
23686
23687         * TextBoxBase.cs: Applied Eno's patch from #78660
23688
23689 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
23690
23691         * Form.cs (ScaleCore): We don't want to scale our form if it's
23692           state is minimized or maximized, but we still need to scale our
23693           child windows. Also, added try/finally block to ensure layout
23694           gets reset (Fixes #78697)
23695
23696 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
23697
23698         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
23699
23700 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
23701
23702         * Form.cs: Fixed c+p error and added check to resize form if minimum
23703           size is bigger than current size (Fixes #78709)
23704
23705 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
23706
23707         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
23708
23709 2006-06-26  Mike Kestner  <mkestner@novell.com>
23710
23711         * ComboBox.cs: only do Keypress handling in the combo when there  
23712         are items in the collection. Fixes #78710.
23713
23714 2006-06-26  Chris Toshok  <toshok@ximian.com>
23715
23716         * Binding.cs: make this work bi-directionally.  also, clear up
23717         other mixups between Push/Pull Data (e.g. we're supposed to pull
23718         data when validating).
23719
23720         * BindingManagerBase.cs: trim some fully qualified collection
23721         types.
23722
23723         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
23724
23725 2006-06-23  Chris Toshok  <toshok@ximian.com>
23726
23727         * PropertyManager.cs: It appears (according to the unit tests)
23728         that PropertyManager doesn't use
23729         PropertyDescriptor.AddValueChanged to track propery value changes
23730         in its datasource, but uses the same scheme as Binding, where it
23731         looks for a <Property>Changed event and binds to it.
23732
23733         Also, according to the docs, IsSuspended always returns false for
23734         a property manager with a non-null datasource.
23735
23736 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
23737
23738         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
23739           need to update the actual DialogResult. (Fixes #78613)
23740
23741 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
23742
23743         * Form.cs (ShowDialog): Release any captures before running the
23744           new message pump (fixes #78680)
23745
23746 2006-06-22  Mike Kestner  <mkestner@novell.com>
23747
23748         * ListView.cs: Layout column widths properly in details mode even 
23749         if HeaderStyle.None is set.  Fixes #78691.
23750
23751 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
23752
23753         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
23754
23755 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
23756
23757         * Control.cs (ContainsFocus): Using new driver method to get focused
23758           window, instead of trying to use internal tracking var, which can
23759           recursion issues (Fixes #78685)
23760         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
23761           XplatUIWin32.cs: Added GetFocus method to return focused window
23762
23763 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23764
23765         * ColorDialog.cs: when the mouse button is pressed inside the color
23766         matrix, don't let the cursor move out of it until the button is
23767         released, which is the behavior on windows. Changed 'colours' by
23768         'colors' to use the same word consistently.
23769
23770 2006-06-21  Chris Toshok  <toshok@ximian.com>
23771
23772         * DataGrid.cs: add in some basic navigation stuff (navigating to a
23773         child relation and back, using a stack).  Also, remove
23774         GetDataSource and the code that calls it - it's not needed.  Also,
23775         track CurrencyManager.ListName's removal.
23776
23777 2006-06-21  Chris Toshok  <toshok@ximian.com>
23778
23779         * CurrencyManager.cs: push some of the original type checking from
23780         BindingContext.CreateBindingManager to here, and remove some of
23781         the finalType stuff.  Need more tests to make sure I've got the
23782         ListName part right, and we might need more in SetDataSource.
23783
23784         * PropertyManager.cs: add a ctor that takes just the datasource,
23785         and no property name.  Make SetDataSource work with a null
23786         property_name, and make Current return the data_source if the
23787         property descriptor is null.  this makes 'string foo = "hi";
23788         BindingContext[foo].Current' return "hi" as it should.
23789
23790         * RelatedCurrencyManager.cs: make this code more generic - there's
23791         no reason the parent manager has to be CurrencyManager, and
23792         there's no reason to pass the DataRelation.  It suffices to use a
23793         BindingManagerBase and PropetyDescriptor.
23794
23795         * RelatedPropertyManager.cs: make a similar change here.
23796         
23797         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
23798         flower I knew it could be.
23799
23800 2006-06-20  Chris Toshok  <toshok@ximian.com>
23801
23802         * PropertyManager.cs: the PropertyChangedHandler is invoked when
23803         data in the source has changed and we need to update the control,
23804         so s/PullData/PushData.
23805
23806         * CurrencyManager.cs: Refresh is meant to update the control from
23807         data in the datasource.  So, s/PullData/PushData.
23808
23809         * BindingContext.cs: add more ugliness (we weren't handling the
23810         case where data_source = DataTable and data_member = column_name).
23811
23812         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
23813         from the perspective of the datasource.  PullData pulls from the
23814         control, PushData pushes to the control.
23815
23816 2006-06-20  Chris Toshok  <toshok@ximian.com>
23817
23818         * BindingContext.cs: rewrite the CreateBindingManager code to
23819         handle navigation paths more or less properly.  This could
23820         definitely stand some more work, in particular to push the
23821         recursion up to the toplevel.  But that relies on fixes in other
23822         places (System.Data comes to mind).
23823
23824         Also, move to a flat hashtable (and encode the twolevel nature of
23825         the dictionary into the hash key).  This lets us implement the
23826         IEnumerable.GetEnumerator method.
23827
23828         * RelatedCurrencyManager.cs: new class.  Update our view based on
23829         our relation and our parent CurrencyManager's position.
23830
23831         * CurrencyManager.cs: split out some logic from the ctor into
23832         SetView, so it can be called from the new RelatedCurrencyManager
23833         subclass.
23834
23835         * RelatedPropertyManager.cs: new class.  Update our datasource
23836         based on the position of our parent CurrencyManager.
23837
23838         * PropertyManager.cs: split out some logic from the ctor into
23839         SetDataSource, so it can be called from the new RelatedDataSource
23840         subclass.  Also, make the Current getter return the value
23841         of the PropertyDescriptor, not the data_source.
23842
23843         * Binding.cs: no need to duplicate the string splitting code here.
23844
23845 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
23846
23847         * Control.cs:
23848           - set_Enabled: OnEnabledChanged is not called if the inherited state 
23849             of the control is not altered, even though  we might be changing the
23850             internal state of the control (#78458)
23851           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
23852             OnEnabledChanged, to allow easy altering of any child window state
23853           - OnEnabledChanged: Added code to enable/disable driver window state
23854           - OnParentEnabledChanged: Instead of firing the event, call 
23855             OnEnabledChanged, which will fire the event and also a) set driver
23856             window state and pass the enabled state to any grandchildren (#78458)
23857
23858 2006-06-19  Jackson Harper  <jackson@ximian.com>
23859
23860         * InternalWindowManager.cs: We don't set the cursor explicitly
23861         thats done via the response to NCHITTESTs.
23862         - Don't need to adjust for titlebar heights anymore, the
23863         coordinates are coming in the correct coordinates now (see peters
23864         last patch).
23865
23866
23867 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
23868
23869         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
23870           being translated relative to whole window, instead of client window.
23871           That caused broken offsets on mouseclick (and caused gas for our
23872           InternalWindowManager)
23873
23874 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
23875
23876         * TextControl.cs:
23877           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
23878           - Undo(): Added replay of cursor move on DeleteChars action; added
23879             calling Undo() again if a recorded cursor move is invalid (to
23880             ensure that some action is performed on Undo)
23881         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
23882
23883 2006-06-16  Jackson Harper  <jackson@ximian.com>
23884
23885         * MdiClient.cs: Instead of just sizing maximized windows when
23886         there is a resize we also have to adjust the Y of minimized
23887         windows, so they stay pinned to the bottom of the mdi container.
23888         - Eliminate separate tracking of the active control, we can just
23889         get this from the controls collection.
23890         - Paint the decorations for the newly activated titlebar so we get
23891         a pretty blue bar.
23892         * InternalWindowManager.cs:
23893         * ThemeWin32Classic.cs: Minimized windows get all three buttons
23894         even if they are a tool window.
23895         
23896 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
23897
23898         * TextControl.cs (Undo): Handle non-existent cursor locations in the
23899           undo buffer, these can happen when text was deleted and the cursor
23900           was recorded first. Since we will also have a recorded cursor
23901           after the delete this is not an issue. (Fixes #78651)
23902
23903 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
23904
23905         * AccessibleObject.cs: Remove dependence on Control.is_selected;
23906           instead properly track control states internally (allows us to
23907           remove is_selected from Control)
23908
23909 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23910
23911         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
23912         whose width is not a multiple of 8.
23913
23914 2006-06-13  Jackson Harper  <jackson@ximian.com>
23915
23916         * MdiClient.cs:  Only maximize the next child if the current one
23917         is maximized.
23918
23919 2006-06-13  Chris Toshok  <toshok@ximian.com>
23920
23921         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
23922         modified.  Also, guard against grid or grid_drawing being null in
23923         Invalidate.
23924
23925         * DataGrid.cs: Reformat tons of getters/setters.  In the
23926         DataMember setter, just call SetNewDataSource instead of
23927         duplicating some of its functionality.  In SetNewDataSource, don't
23928         check ListManager for null, since the property getter creates the
23929         object if needed.
23930
23931         * DataGridTableStyle.cs: don't set TableStyle or call
23932         SetDataGridInternal on the column here, it's done in
23933         GridColumnStylesCollection.Add.
23934
23935         * GridColumnStylesCollection.cs: fix all the explicit interface
23936         implementations to just call our methods.  Nuke AddInternal() and
23937         move the body of it to Add().  Also, add a call to
23938         column.SetDataGridInternal to Add().
23939
23940         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
23941         base()+duplicate code.  Also, use the Format property instead of
23942         format to generate an Invalidate ala MS.  Lastly, create the
23943         textbox here, unconditionally.
23944         (set_Format): call Invalidate.
23945         (get_TextBox): no need to call EnsureTextBox.
23946         (Commit): remove the message box.
23947         (Edit) remove the call to EnsureTextBox.
23948         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
23949         (EnterNullValue): no need to check textbox for null.
23950         (HideEditBox): no need to check textbox for null.
23951         (SetDataGridInColumn): add the textbox to the grid's controls.
23952         (EnsureTextBox): nuke.
23953         
23954 2006-06-13  Jackson Harper  <jackson@ximian.com>
23955
23956         * MdiWindowManager.cs: Hook up to the maximized menus paint event
23957         and redraw the buttons when needed. Unhook when the window is
23958         unmaximized.
23959         * MainMenu.cs: Add an internal Paint event, the mdi window manager
23960         needs this so that it can redraw its buttons when the menu is
23961         repainted.
23962         * InternalWindowManager.cs:
23963         * Form.cs: The method order has changed for DrawMaximizedButtons,
23964         so that it can be a PaintEventHandler.
23965         
23966 2006-06-13  Jackson Harper  <jackson@ximian.com>
23967
23968         * MdiClient.cs: When we close a maximized mdi window, the next mdi
23969         window is activated and maximized, even if it wasn't before.
23970         - When  a new window is activated repaint the decorations of the
23971         old one, so that it no longer has the Active "look" (the blue
23972         titlebar).
23973         * InternalWindowManager.cs: Open up CreateButtons to base classes
23974         so they can recreate the buttons on state changes.
23975         - If a window is maximized give it all three buttons
23976         * MdiWindowManager.cs: Create the titlebar buttons when the state
23977         is changed, this is needed because a toolwindow will not have all
23978         three buttons until it is maximized.
23979
23980 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
23981
23982         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
23983           Fixed bug #78609.
23984
23985 2006-06-12  Jackson Harper  <jackson@ximian.com>
23986
23987         * KeysConverter.cs: Make sure we handle the Ctrl special case
23988         if its the only key.
23989         
23990 2006-06-12  Jackson Harper  <jackson@ximian.com>
23991
23992         * Theme.cs: Add a method to get the size of a managed window
23993         toolbar button.
23994         * InternalWindowManager.cs: Remove the ButtonSize property, this
23995         should be retrieved from the theme.
23996         * MdiWindowManager.cs: Get the button size from the theme
23997         * ThemeWin32Classic.cs: Make the method to get the managed window
23998         titlebar button size public.
23999         - Handle the different button sizes of maximized toolwindows
24000         (should match any maximized window).
24001         - Get the titlebar height from the theme, not the WM (which gets
24002         it from the theme).
24003
24004 2006-06-12  Jackson Harper  <jackson@ximian.com>
24005
24006         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
24007         event down to the mdi window manager.
24008         - Expose some extra stuff to base classes
24009         - Make sure to end the Capture on an NC Mouse up, so that we can
24010         get double clicks properly, and the sizing doens't stick.
24011         - When doing PointToClient contain it in the workable desktop
24012         area, this prevents windows from changing size when the cursor is
24013         pulled outside of the working area while sizing.
24014         * MdiWindowManager.cs: When we get a double click maximize the
24015         window.
24016         - Reset the cursor after handling mode changes.
24017
24018 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
24019
24020         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
24021           current desktop, instead of just assuming a 0, 0 origin. This
24022           is needed for our internal window manager, to know the top
24023           margin of the desktop
24024
24025 2006-06-12  Chris Toshok  <toshok@ximian.com>
24026
24027         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
24028         we need this to get rid of the selected background in the bool
24029         column.
24030         (CancelEditing): move the ConcedeFocus call to above the Abort
24031         call.  Also, set is_changing to false and invalidate the row
24032         header if we were changing before.
24033         (ProcessKeyPreviewInternal): remove, since noone outside this
24034         class calls it anymore.  Roll the code into ProcessKeyPreview.
24035         (EndEdit): remove the internal version.
24036         (InvalidateCurrentRowHeader): make private.
24037
24038         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
24039         Keys.Escape handling (and with it the last call to
24040         DataGrid.EndEdit from outside the class.)
24041
24042
24043 2006-06-12  Chris Toshok  <toshok@ximian.com>
24044
24045         * DataGridTextBox.cs (.ctor): isedit defaults to false.
24046         (OnKeyPress): set isedit to true.
24047         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
24048         already handled by the grid.
24049
24050         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
24051         right.  ugh.
24052         (set_DataSource): SetDataSource always returns true, so stop
24053         putting it in an if statement.
24054         (EndEdit): get rid of some {}'s
24055         (ProcessGridKey): return true in case Keys.Escape.
24056         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
24057         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
24058         PositionChanged, stopped connecting to CurrentChanged.
24059         (GetDataSource): simplify this a bunch.
24060         (SetDataSource): change return type from bool to void.
24061         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
24062         to this, and make sure we don't set ListManager.Position inside
24063         set_CurrentCell.
24064         (OnListManagerItemChanged): if we're passed an actual index,
24065         redraw that row.
24066
24067         * CurrencyManager.cs (set_Position): don't call PullData here.
24068
24069 2006-06-09  Jackson Harper  <jackson@ximian.com>
24070
24071         * TreeNode.cs:  Recalculate the visible order before doing the
24072         Expand/Collapse Below calls, because those calls generate an
24073         expose.
24074         - Reduce calls to the TreeView property, which is mildly expensive
24075         by using a local var.
24076         * Form.cs: Layout the MDI child windows when creating the parent
24077         form.
24078         - Don't use the internal constructor anymore
24079         * MdiClient.cs: use the parent form width/height (if available)
24080         when laying out the child windows, we do this because the
24081         mdiclient isn't docked yet when the initial layout is done.
24082         - Don't need an internal constructor anymore.
24083
24084 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24085
24086         * FileDialog.cs: handle access errors when trying to create a folder
24087         or changing to a directory. No need to initialize out parameters.
24088
24089 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24090
24091         * FileDialog.cs: Append a number when creating a new folder if the
24092           folder already exists (use parenthesis instead of square brackets)
24093
24094 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24095
24096         * FileDialog.cs:
24097           - Disabled registry support for windows and added better registry
24098             error checking for other systems (need to investigate why it
24099             works perfectly on my system)
24100           - If a folder already exist show an error MessageBox instead of
24101             trying to create an indexed name.
24102           - Fixed a non intentional typo.
24103
24104 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24105
24106         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
24107
24108 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24109
24110         * FileDialog.cs: When creating a new folder don't crash if the
24111           folder already exists.
24112
24113 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24114
24115         * FileDialog.cs: Allmost a complete rewrite.
24116           - added a "virtual" file system that handles the differences
24117             between unix and windows file systems (especially the directory
24118             structure). Moved most of the directory and file handling code
24119             into the vfs.
24120             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
24121             UnixFileSystem and FSEntry.
24122           - Recently used folder/directory, size, location and used file names
24123             (file name ComboBox) are now stored in the registry and get read
24124             before the dialog shows up (fixes part 6 of bug #78446).
24125           - Creation of new folders/directories is now possible (context menu
24126             or ToolBar). Added TextEntryDialog for this that fills in the gap
24127             until ListView.LabelEdit works.
24128           - Fixed cursor handling (bug #78527) and focus handling for
24129             PopupButtonPanel
24130           - Various "Search in" ComboBox enhancements. The content of the
24131             dropdown listbox now almost matches ms.
24132           - Changed the behaviour when the user switches to SpecialFolder
24133             Recent to show the ListView in View.Details.
24134           - Beside using the ToolBar to change the View property of the
24135             file ListView it is now possible to use the context menu too.
24136
24137 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24138
24139         * ComboBox.cs: Don't create a new ObjectCollection when an item
24140           gets inserted. Just insert the item in the existing object_items
24141           ArrayList.
24142
24143 2006-06-08  Jackson Harper  <jackson@ximian.com>
24144
24145         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
24146         that the treeview and root node checks are done also, this fixes a
24147         regression i caused in the unit tests.
24148
24149 2006-06-07  Wade Berrier <wberrier@novell.com> 
24150
24151         * RichTextBox.cs: More ISO8859-1 -> unicode
24152
24153 2006-06-07  Mike Kestner  <mkestner@novell.com>
24154
24155         * ComboBox.cs : use items to hold highlight/selection so that
24156         collection insertions don't require synchronization.
24157
24158 2006-06-07  Jackson Harper  <jackson@ximian.com>
24159
24160         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
24161         routine.  We now always keep the sized edge at the cursor instead
24162         of computing movement and adjusting rects.  There is one buglet
24163         with this method though when the cursor is moved over area that
24164         the window can not expand too (such as the toolbars on the desktop).
24165
24166 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24167
24168         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
24169         here. Fixes crash on startup in AlbumSurfer.
24170
24171 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
24172
24173         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
24174           values
24175
24176 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24177
24178         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
24179         statement to avoid calling XNextEvent which will block if another thread
24180         took the event that we were expecting. Fixes bug #78605.
24181
24182 2006-06-07  Mike Kestner  <mkestner@novell.com>
24183
24184         * ListView.cs : isolated checkbox clicking from the selection logic.
24185         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
24186
24187 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24188
24189         * Form.cs: Check that the value passed to Form.DialogResult
24190         is a valid enum value.
24191
24192 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24193
24194         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
24195         Computer'. Clicking it in the network view goes to 'My Computer'.
24196         Added CIFS filesystem type. Display the mount point of filesystems.
24197         Avoid duplicate mount points (happens for me with CIFS);
24198
24199 2006-06-06  Jackson Harper  <jackson@ximian.com>
24200
24201         * InternalWindowManager.cs: Draw the maximized windows buttons
24202         when resizing.
24203
24204 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24205
24206         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
24207         all other dialogs. Fixes bug #78585.
24208
24209 2006-06-06  Mike Kestner  <mkestner@novell.com>
24210
24211         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
24212         Only invalidate checkbox on checkstate changes to avoid flicker.
24213         * ListBox.cs : avoid unselect/select when clicking selected item.
24214         avoid reselection flicker for already multiselected items.
24215         Fixes #78382.
24216
24217 2006-06-06  Jackson Harper  <jackson@ximian.com>
24218
24219         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
24220         the parent form so that the menu is removed if needed.
24221
24222 2006-06-06  Mike Kestner  <mkestner@novell.com>
24223
24224         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
24225         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
24226
24227 2006-06-06  Mike Kestner  <mkestner@novell.com>
24228
24229         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
24230
24231
24232 2006-06-06  Jackson Harper  <jackson@ximian.com>
24233
24234         * Control.cs: Use the property (instead of the field) to get the
24235         default cursor so it is instantiated correctly.
24236         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
24237         resizes so we need to manually repaint the window decorations here.
24238         - Set the titlebar button locations as soon as they are created,
24239         otherwise they are not set correctly on win32.
24240         
24241 2006-06-06  Chris Toshok  <toshok@ximian.com>
24242
24243         * CurrencyManager.cs (set_Position): call PullData before
24244         OnCurrentChanged.
24245         (AddNew): after calling IBindingList.AddNew, update our
24246         listposition, and call OnCurrentChanged/OnPositionChanged (without
24247         calling PullData).
24248         (OnCurrentChanged): remove the call to PullData from here.
24249         (OnItemChanged): remove the call to PushData from here.
24250         (OnPositionChanged): change the test from == null to != null to
24251         match the other methods.
24252         (ListChangedHandler): the grossest part of the patch.  Implement
24253         this such that it passes the unit tests in CurrencyManagerTest and
24254         the output more or less matches that of MS's implementation.
24255  
24256 2006-06-06  Mike Kestner  <mkestner@novell.com>
24257
24258         * ListView.cs : only update check state on single click.
24259         * ThemeWin32Classic.cs : fix focus drawing for details view without
24260         fullrowselect.  Fixes #78454.
24261         * XplatUIX11.cs : fix for double click emission.
24262
24263 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
24264
24265         * PropertyGridView.cs : Applied Atsushi's patch to fix
24266         font dialog bug  (#78197).
24267
24268 2006-06-05  Jackson Harper  <jackson@ximian.com>
24269
24270         * TreeNode.cs: Compute the next node for expanding/collapsing
24271         correctly. We now factor in nodes without a NextNode
24272         correctly. (Fixes somes cases in nunit-gui).
24273         * InternalWindowManager.cs: Set the bounds when updating the
24274         virtual position of a tool window.
24275         
24276 2006-06-05  Chris Toshok  <toshok@ximian.com>
24277
24278         * DataGrid.cs: rename cached_currencymgr to list_manager.
24279         (set_CurrentCell): move SetCurrentCell code here, and clean it up
24280         some.
24281         (CurrentRow, CurrentColumn): single accessors so we can make the
24282         cursor movement code a lot easier to understand.
24283         (CurrentRowIndex): implement this in terms of CurrentRow.
24284         (BeginEdit): clean this up a bit.
24285         (CancelEditing): sort out the is_editing/is_changing/is_adding
24286         stuff a little.
24287         (EndEdit): minor changes.
24288         (OnKeyDown): add a comment about a (most likely) unnecessary
24289         check.
24290         (OnMouseDown): cancel editing when we click on a row header.  And
24291         use the CurrentRow setter, not CurrentCell.
24292         (ProcessDialogKey): directly call ProcessGridKey.
24293         (UpdateSelectionAfterCursorMove): factor out this common block of
24294         code (it's used everywhere that we move the cursor by updating row
24295         or column).
24296         (ProcessGridKey): pretty substantial overhaul.  Use the
24297         CurrentRow/CurrentColumn properties to make the code a lot more
24298         readable.  Only use the CurrentCell property when we have to
24299         modify both row and column at once.  Tab behavior is still broken,
24300         and Delete is untested.
24301         (Select): if we have no selected rows, set selection_start to
24302         @row.
24303         (EditCurrentCell): rename EditCell this.  It was only ever invoked
24304         with CurrentCell as the arg, so drop the arg and rename it.
24305
24306         * DataGridColumnStyle.cs: clean up the constructors a little, and
24307         drop CommonConstructor().
24308
24309         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
24310         actually get notified when the user hits it.
24311         (ProcessKeyMessage): *substantially* simplify this method.
24312         There's no reason (that I can see) for the textbox to be making
24313         calls into the datagrid at all.  Remove all of them but the ones
24314         for Enter handling.  those will take some more work.
24315
24316         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
24317         calling HideEditBox.
24318         (HideEditBox): if we have an active textbox, render it invisible
24319         without causing a re-layout of the datagrid.
24320
24321 2006-06-05  Mike Kestner  <mkestner@novell.com>
24322
24323         * ListView.cs : fix NRE crasher when focuseditem is cleared by
24324         collection changes by resetting it to Items[0].  Fixes #78587.
24325
24326 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24327
24328         * MessageBox.cs: if the height of the text is larger than the icon_size,
24329         use that. Fixes bug #78575.
24330
24331 2006-06-05  Jackson Harper  <jackson@ximian.com>
24332
24333         * TreeView.cs: Fix line drawing when scrolling.  To do this each
24334         node is basically responsible for drawing its entire horizontal
24335         area.  When drawing a node it draws its parent node lines if
24336         needed.
24337         - Adjust the clip area to the viewport rectangle
24338         - Fix Left/Right key handling to match MS. (It expand/collapses
24339         and moves to parents/first child but does not move selection to
24340         sibling nodes).
24341         - Fix SetTop to work with new bound calculation code
24342         - When scrollbars are no longer needed we need to reset scrolling
24343         vars and recalculate the visible order so the redraw is correct
24344         * TreeNode.cs: We can't expand/collapse nodes with no children.
24345
24346 2006-06-03  John Luke  <john.luke@gmail.com> 
24347
24348         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
24349         so the colors work without dev packages
24350         
24351 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
24352
24353         * Control.cs 
24354           - Select: Implemented to just use activate. Seems to match MS 
24355             behaviour closest. Documented to only do actual control walking 
24356             based on it's parameters if in a container control so I moved 
24357             the code there.
24358           - Removed selection check logic from our internal Select() method
24359         * ContainerControl.cs:
24360           - Select: Moved selection logic from Control here, since MS documents
24361             that containers obey the bool arguments. No longer calling base
24362
24363 2006-06-02  Jackson Harper  <jackson@ximian.com>
24364
24365         * TreeView.cs: If the selected node isn't changed when we get
24366         focus update the previously selected node so that we see the
24367         selection box.
24368
24369 2006-06-02  Mike Kestner  <mkestner@novell.com>
24370
24371         * ComboBox.cs: restructure grab and general mouse event handling.
24372         Make the composite control raise mouse events like it was a single
24373         control for leaves/enters/motion/up/down events.  fix dropdown list
24374         coordinate mangling and refactor it into the scrollbar subclass to
24375         reduce code duplication.  Fixes #78282 #78361 and #78457.
24376
24377 2006-06-02  Mike Kestner  <mkestner@novell.com>
24378
24379         * ScrollBar.cs: remove Capture setting/clearing, as it happens
24380         automatically in the Control.WndProc.
24381
24382 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24383
24384         * FileDialog.cs: fix crash when running SharpChess, which sets the
24385         FilterIndex to 2 with only one Filter.
24386
24387 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24388
24389         * ToolBar.cs: add SizeSpecified property.
24390         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
24391         try to figure out our real size, otherwise fallback to what the
24392         container says.
24393
24394 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
24395
24396         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
24397         * Control.cs (WndProc): MS always calls the DefWndProc to pass
24398           up the event
24399
24400 2006-06-01  Mike Kestner  <mkestner@novell.com>
24401
24402         * ListView.cs: revamp the focus management in ListView.  It still
24403         causes churn of LostFocus/GotFocus emissions on clicks, but it's
24404         better than not handling focus at all.  Will revisit when pdb feels
24405         the general focus handling is solid.  Fixes #78526.
24406
24407 2006-06-01  Jackson Harper  <jackson@ximian.com>
24408
24409         * TreeView.cs: Set the default border style in the constructor.
24410         - Move painting to use OnPaintInternal instead of capturing
24411         WM_PAINT, this is the correct way of doing things
24412         - UpdateBelow shouldn't invalidate the scrollbar area
24413         - Cap the top on update below in case the node was above the top
24414         of the viewport rectangle.
24415         - ExpandBelow and Collapse below need to obey Begin/End Update.
24416         * TreeNode.cs: Make is_expanded internal so the treenode
24417         collection can change it without firing the whole event chain.
24418         * TreeNodeCollection.cs: When clearing all the child nodes make
24419         sure to recalc the visible order.
24420         - Improve algo for remove the top node
24421
24422 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
24423
24424         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
24425           SendMessage directly calling window procedures, which in turn might
24426           call SetFocus()
24427
24428 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
24429
24430         * Control.cs: Don't handle WM_SETFOCUS if the same window already
24431           has focus (works around X11 sending a FocusIn after our SetFocus)
24432         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
24433
24434 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
24435
24436         * Mime.cs: Fix for the NET_2_0 build.
24437           NameValueCollection needs StringComparer now.
24438
24439 2006-05-31  Chris Toshok  <toshok@ximian.com>
24440
24441         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
24442         return (via an out parameter) the starting X of the column.
24443         (UpdateVisibleColumn): track change to FromPixelToColumn.
24444         (HitTest): add a ColumnResize case here.
24445         (DrawResizeLine): new function, probably poorly named.
24446
24447         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
24448         only need to keep one reference.
24449         (set_ListManager): same.
24450         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
24451         Also, add support for HitTestType.ColumnResize.
24452         (OnMouseMove): add column resize behavior here, and change the
24453         cursor to the correct one as we move around the datagrid.
24454         (OnMouseUp): terminate the column resize if we're resizing.
24455         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
24456         for the current cell.
24457         (ConnectListManagerEvents): use cached_currencymgr.
24458         (DisconnectListManagerEvents): fill this in, using
24459         cached_currencymgr.
24460         (SetCurrentCell): remove cached_currencymgr_events handling.
24461         (SetDataMember): only call DisconnectListManagerEvents if
24462         cached_currencymgr is != null.
24463         (SetDataSource): same.
24464         (OnListManagerCurrentChanged): cached_currencymgr_events ->
24465         cached_currencymgr.
24466
24467 2006-05-31  Jackson Harper  <jackson@ximian.com>
24468
24469         * BindingManagerBase.cs: Remove somedebug code that creeped into
24470         SVN.
24471         * TreeNode.cs: We get the indent level dynamically right now, so
24472         don't track it as a member.
24473         * TreeNodeCollection.cs: Make sure all nodes added to the list
24474         have parents, treeviews/topnodes setup properly.
24475         - Don't attempt to track indent level.
24476
24477 2006-05-30  Jackson Harper  <jackson@ximian.com>
24478
24479         * BindingContext.cs: Create the currency manager tables here.
24480         This allows us to more easily create null tables (when bad data
24481         members are used), and more easily create related currency
24482         managers.
24483         * CurrencyManager.cs: All the table creation stuff is done by the
24484         binding context now.
24485         - Current should throw an exception if listposition is -1.
24486         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
24487         been bound yet.
24488
24489 2006-05-30  Mike Kestner  <mkestner@novell.com>
24490
24491         * ListView.cs: allow reexpansion of zero-width column headers.
24492         Fixes #78528.
24493
24494 2006-05-28  Chris Toshok  <toshok@ximian.com>
24495
24496         * CurrencyManager.cs (get_Current): after the late binding
24497         listposition = -1 fix, we need to guard against it here and return
24498         null, otherwise we raise an exception (which is swallowed
24499         elsewhere, and breaks datagrid databinding.)
24500
24501 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
24502
24503         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
24504           than WM_SYSKEY, don't throw if get something unexpected (#78507)
24505
24506 2006-05-26  Jackson Harper  <jackson@ximian.com>
24507
24508         * ControlPaint.cs:
24509         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
24510         values, it's faster and it's all we care about (we don't care if
24511         the names aren't equal).
24512         * KeyboardLayouts.cs: Eliminate some dead code.
24513         - Lazy init things
24514         * X11Keyboard.cs: Lazy init keyboard detection.
24515         - Cleanup access modifiers a little.
24516
24517 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
24518
24519         * XplatUIX11.cs: Once again, attempting to get layout just right.
24520
24521 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
24522
24523         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
24524           the sizes of each link section, that will result in sizes that
24525           match DrawString's layout (Fixes #78391)
24526
24527 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
24528
24529         * FileDialog.cs: If AddExtension property is true autocomplete the
24530           extensions in SaveFileDialog correctly. Fixes bug #78453.
24531           Set MyNetwork and MyComputer to "C:\" for windows. This should
24532           fix part 8 of bug #78446 for now.
24533
24534 2006-05-26  Chris Toshok  <toshok@ximian.com>
24535
24536         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
24537         invalidate the current row header if we need to, but presumably
24538         we'll invalidate the row corrsponding to the bounds or
24539         editingControl.
24540         (GridHScrolled): switch back to this method, as it's part of the
24541         public api.  *sigh*.
24542         (GridVScrolled): same.
24543         (OnMouseWheel): hack up something that more or less works.  Call
24544         GridHScrolled/GridVScrolled directly, instead of duplicating much
24545         of their code here.
24546         (EnsureCellVisibility): reinstate a bunch of this code, since we
24547         can't just set the scrollbar Value and expect to do all the work
24548         in the ValueChanged handler.  Also, Call Update() after scrolling
24549         in one direction so the other XplatX11.ScrollWindow call has the
24550         proper stuff in the proper places.
24551         (EditCell): set is_editing to true before calling .Edit.
24552
24553         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
24554         don't bother comparing first.
24555         (OnKeyPress): call grid.ColumnStartedEditing before calling
24556         base.OnKeyPress.  this will set is_changing and invalidate the row
24557         header if necessary.
24558         (ProcessKeyMessage): for WM_CHAR messages, call
24559         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
24560         and WM_KEYDOWN.
24561         
24562         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
24563         it's done in the DataGrid.
24564         (NextState): call grid.ColumnStartedEditing, which takes care of
24565         invalidating the row header (and setting is_changing).
24566
24567         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
24568         here.  it's done in the DataGrid.
24569
24570 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24571
24572         * Control.cs: allow changing the cursor when the mouse position is
24573         out of bounds but Capture is set.
24574         * LinkLabel.cs: handle the case when the mouse button is pressed on the
24575         linklabel but released somewhere else.
24576
24577 2006-05-25  Jackson Harper  <jackson@ximian.com>
24578
24579         * TreeView.cs: When we get focus if there is no selected node make
24580         it the top node
24581         - Remove some uneeded setup code from Draw.
24582         * TreeNodeCollection.cs: If the tree doesn't have a top node when
24583         a new node is inserted make the new node the top.
24584         * XplatUIX11.cs:
24585         * Timer.cs: Use Utc time so that no local time zone stuff needs to
24586         be used (should be faster).
24587         
24588 2006-05-25  Chris Toshok  <toshok@ximian.com>
24589
24590         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
24591         problem with the last commit.
24592
24593 2006-05-25  Chris Toshok  <toshok@ximian.com>
24594
24595         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
24596         need the invalidate call here, while scrolling right-to-left via
24597         the left arrow key (i.e. moving the editing cell while scrolling).
24598
24599         * DataGrid.cs (.ctor): remove the initialization of
24600         ctrl_pressed/shift_pressed.  We no longer track them using key
24601         up/down handlers, but by using Control.ModifierKeys.  Also, switch
24602         to using ValueChanged handlers on the scrollbars instead of
24603         Scrolled event handlers.  This simplifies a bunch of the scrolling
24604         code.
24605         (GridHValueChanged): rename from GridHScrolled, and change it to
24606         work with the new event args.
24607         (GridVValueChanged): same.
24608         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
24609         (OnMouseWheel): actually scroll the datagrid.  Don't change the
24610         selected cell.
24611         (ProcessGridKey): correct all the keyboard navigation stuff I
24612         could find.  Ctrl up/down/left/right/home/end work now.
24613         (EnsureCellVisibility): correct method name spelling.  Also,
24614         simplify this a touch by not explicitly calling the
24615         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
24616         scrollbar value.
24617         (OnKeyUpDG): no need for this method now.
24618         
24619 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24620
24621         * LinkLabel.cs: display the OverrideCursor when hovering the label.
24622         Fixes bug #78392.
24623
24624 2006-05-25  Chris Toshok  <toshok@ximian.com>
24625
24626         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
24627         r61019.
24628
24629 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
24630
24631         * Application.cs: Moved setting of is_modal and closing to before
24632           we create the control, to allow the event handlers called as a
24633           result of creation affect closing. Also removed Gonzalo's previous
24634           change to setting DialogResult, the behaviour has been moved to 
24635           Form.ShowDialog()
24636         * Form.cs: 
24637           - ShowDialog(): Removed explicit creation of the form, let RunLoop
24638             handle it instead
24639           - ShowDialog(): If no dialog result is set, we need to return Cancel
24640           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
24641             the close is cancelled
24642
24643 2006-05-25  Jackson Harper  <jackson@ximian.com>
24644
24645         * StatusBar.cs: We only need to update the sizes of the other
24646         panels when we have auto size contents.  Also we are only updating
24647         the contents of the panel, not the borders, so compensate for the
24648         border width (TODO: get this width from the theme somehow).
24649         * TreeView.cs: Scrollable is true by default
24650         - Use invalidate instead of refresh where needed
24651         - Factor the scrollable value into scrollbar updating
24652         - Update the scrollbars if the Scrollable property is altered
24653         - Update the selected node if its ImageIndex is changed
24654         - Handle null nodes in UpdateNode (mainly so we don't have to
24655         check if selected is null when updating it
24656         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
24657         are factored into the visible count
24658         - Use VisibleCount for clarity in the code
24659         - When the font is changed we need to recurse through all the
24660         nodes and invalidate their sizes
24661         
24662 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24663
24664         * Application.cs: set the DialogResult to fixed when the main form is
24665         hidden or destroyed while being modal.
24666
24667 2006-05-25  Miguel de Icaza  <miguel@novell.com>
24668
24669         * Theme.cs: Use Tangoified messagebox icons. 
24670
24671         (GetSizedResourceImage): Also cope with width = 0 and do not
24672         trigger a warning in that case (0 means "give me your icon from
24673         the resouce, no special size needed).
24674
24675 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
24676
24677         * Application.cs: Leave runloop if the the main modal form is 
24678           hidden (fixes #78484)
24679
24680 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
24681
24682         * BindingContext.cs : reject null datasource in Contains() and
24683           Item[].
24684         * CurrencyManager.cs : check data_member validity when data_source
24685           is dataset. When it is late binding, the initial position is -1.
24686
24687 2006-05-24  Jackson Harper  <jackson@ximian.com>
24688
24689         * TreeNodeCollection.cs: Dont't recalculate the visible order on
24690         inserted nodes that aren't visible.  This changes the
24691         max_visible_order which confuses scrollbar settings.
24692         - Use the enumerator to get the prev node instead of duplicating
24693         code.
24694         * TreeView.cs: Use new method for setting scrollbar values
24695         - Don't set the bounds every time the scrollbar is updated
24696         - When updating below the root node use an invalidate instead of a
24697         refresh to prevent the child controls (scrollbars) from being
24698         refreshed. (UpdateBelow still needs to be reworked anyways).
24699         - Reenable SetBottom now that visible orders are set correctly,
24700         added some debug code incase we ever get bad values there again.
24701         - Set the scrollbar max to 2 less then the max value, this
24702         compensates for the max value being one above the node count, and
24703         for scrollbars adding one extra "notch".
24704         - When drawing image nodes if there is an imagelist we draw the
24705         first image in the list if the supplied image index is out of the
24706         image list's bounds.
24707         
24708 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
24709
24710         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
24711           we receive a size change from the WM (Fixes #78503)
24712
24713 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
24714
24715         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
24716           rectangle (Fixes #78501)
24717
24718 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
24719
24720         * ButtonBase.cs: 
24721           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
24722             as a bitfield.
24723           - Fixed MouseMove to no longer switch pressed state unless the left
24724             mouse button is pressed. Atsushi provided the original patch (#78485)
24725           
24726 2006-05-24  Jackson Harper  <jackson@ximian.com>
24727
24728         * ScrollBar.cs: New internal methods that allow us to change a
24729         couple values on the scrollbar (the most common case is maximum
24730         and large change) without getting multiple invalidates.
24731
24732 2006-05-24  Chris Toshok  <toshok@ximian.com>
24733
24734         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
24735         (Edit): save off the original state in oldState, and set
24736         grid.is_editing to true.
24737         (OnKeyDown): abort editing if escape is pressed.  also, call
24738         NextState if space is pressed.
24739         (OnMouseDown): call NextState.
24740         (NextState): factor out shared code from OnKeyDown and OnMouseDown
24741         here.  Also, only invalidate the row header once (on the initial
24742         is_changing switch) to save on redraws.
24743
24744 2006-05-24  Chris Toshok  <toshok@ximian.com>
24745
24746         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
24747         if the value in the cell is different than it was before.  This
24748         keeps us from triggering a layout when we move around a datarid
24749         with a highlighted cell.
24750         (Edit): suspend layout when creating/positining the text box, and
24751         resume passing false so we don't ever actually re-layout.
24752         (ReleaseHostedControl): same.
24753         (EnsureTextBox): reformat slightly, and set WordWrap to false.
24754
24755         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
24756         control-key sequences should go to the datagrid - remove that
24757         lock.  Also, modify the conditions under which we move between
24758         cells when moving the cursor within a cell, and remove the "this"
24759         and "base" from field accesses.  We weren't even consistent, given
24760         they all were in the base class.
24761
24762 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
24763
24764         * Binding.cs : (.ctor)
24765           An obvious NRE fix for BindingTest.CtorNullTest().
24766
24767 2006-05-23  Chris Toshok  <toshok@ximian.com>
24768
24769         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
24770         them between lines.  This fixes some quirks editing cells in the
24771         datagrid.
24772
24773 2006-05-23  Jackson Harper  <jackson@ximian.com>
24774
24775         * TreeView.cs: Use begin/end update when doing expand/collapse all
24776         so that we don't get flicker on the scrollbar.
24777
24778 2006-05-23  Jackson Harper  <jackson@ximian.com>
24779
24780         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
24781         treenode calculations to be independant of the painting code. To
24782         do this nodes track a visible order which is calculated by the
24783         treeview.
24784         - Call new methods for expanding/collapsing nodes.  These methods
24785         use scrollwindow so we don't have to update everything below the
24786         node.
24787         * TreeView.cs: Refactored drawing and scrolling code.  We don't
24788         need to update nodes when drawing anymore or calculate scrollbar
24789         stuff.
24790         - Added new methods for expanding/collapsing nodes. These methods
24791         use ScrollWindow so as to not have to redraw all the nodes below.
24792         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
24793         we add/remove nodes or sort.
24794         - Handle removing the selected and the top node properly.
24795
24796 2006-05-23  Chris Toshok  <toshok@ximian.com>
24797
24798         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
24799         maybe this should actually happen in the datagrid code?
24800         (EndEdit): no need to invalidate anything, given that
24801         ReleaseHostedControl causes the datagrid to relayout, which
24802         invalidates everything anyway.
24803
24804         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
24805         in SetCurrentCell).
24806         (set_SelectionBackColor): call InvalidateSelection instead of
24807         Refresh.
24808         (set_SelectionForeColor): same.
24809         (BeginEdit): Flesh this out a bit.
24810         (CancelEditing): only do any of this if we're editing/adding.
24811         (EndEdit): same.
24812         (OnMouseDown): there's no need to cancel editing here, it's done
24813         in SetCurrentCell.
24814         (SetCurrentCell): only invalidate the current row header if it's a
24815         different row than the new one.
24816         (ShiftSelection): fix this to work like MS does.
24817         (ResetSelection): factor out the invalidation of selected_rows to
24818         InvalidateSelection.
24819         (SetDataSource): cancel any editing that's going on.
24820
24821         * DataGridColumnStyle.cs
24822         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
24823         call the non-interface version.
24824
24825         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
24826         header rectangle with the clip rectangle so we don't redraw the
24827         entire header for just a small area.  Gets rid of the last flicker
24828         when horizontally scrolling.
24829         (DataGridPaintRow): same.
24830
24831 2006-05-23  Mike Kestner  <mkestner@novell.com>
24832
24833         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
24834         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
24835         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
24836         Critical bug report.
24837
24838 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
24839
24840         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
24841           and this fixes #78493
24842
24843 2006-05-23  Miguel de Icaza  <miguel@novell.com>
24844
24845         * Theme.cs (GetSizedResourceImage): Scale images if the proper
24846         size is not found.  
24847         
24848         * FileDialog.cs: Do not change the background for the side bar as
24849         it wont work nicely with the theme, and also reduces the artifacts
24850         in rendering the icons (which I want to fix too).
24851
24852         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
24853         resources, not resgen resources. 
24854
24855         (PlatformDefaultHandler): Pull images using the new API.
24856
24857 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
24858
24859         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
24860           a reference to the hwnd and will not remove it unless there are
24861           no pending exposures (fixes #78341)
24862         * XplatUI.cs: Improved debug
24863
24864 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
24865
24866         * MenuAPI.cs : don't handle OnClick event when it was not the left
24867           button. Fixed bug #78487.
24868
24869 2006-05-23  Mike Kestner  <mkestner@novell.com>
24870
24871         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
24872         prefer submenus to the top menu for item lookup, to avoid popping down
24873         top-row items.
24874
24875 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
24876
24877         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
24878           Graphics.FillRectangle as the visual results are really bad (even
24879           on win). We now draw perfect arrows (and perfect shadows when the
24880           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
24881           Pen.DashPattern to draw the dots of each line.
24882
24883 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
24884
24885         * FileDialog.cs: Update the filename combobox when navigating through
24886           the ListView with the cursor keys. Fixes part 7 of bug #78446.
24887
24888 2006-05-22  Mike Kestner  <mkestner@novell.com>
24889
24890         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
24891         Fixes #78463.
24892
24893 2006-05-22  Mike Kestner  <mkestner@novell.com>
24894
24895         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
24896         requests. Fix a misspelled parameter and a copy paste exception error
24897         in Select.
24898
24899 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
24900
24901         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
24902           to get the same width/height (5/13) on X11 as the default font has on
24903           win32. This means that our DefaultFont emSize is smaller than the 
24904           the MS SWF equivalent (even thought the width/height stays the same)
24905
24906 2006-05-20  Jackson Harper  <jackson@ximian.com>
24907
24908         * MdiClient.cs:
24909         * MdiWindowManager.cs:
24910         * InternalWindowManager.cs: Make sure to use the border width from
24911         the theme.
24912
24913 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
24914
24915         * PrintDialog.cs: Implements printer details
24916
24917 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
24918
24919         * FileDialog.cs: Added focus handling for PopupButtonPanel.
24920           Fixes part 1 and 2 of bug #78446
24921
24922 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
24923
24924         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
24925           instead of sticking to the first ever calculated value
24926
24927 2006-05-19  Mike Kestner  <mkestner@novell.com>
24928
24929         * ComboBox.cs: fix mouse motion selection to use MousePosition and
24930         PointToClient, since Capture is set. Fixes #78344.
24931
24932 2006-05-19  Mike Kestner  <mkestner@novell.com>
24933
24934         * ListView.cs: match MS behavior in Details view where items are not
24935         drawn if Columns.Count == 0. 
24936         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
24937         Use a separate pen to draw the check, since changing the width affects
24938         the box as well.  Fixes #78454.
24939
24940 2006-05-18  Miguel de Icaza  <miguel@novell.com>
24941
24942         * ListView.cs: ArgumentOutOfRangeException, single versions of the
24943         exception should throw the name of the invalid argument.
24944
24945         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
24946         there are no files listed. 
24947
24948 2006-05-18  Jackson Harper  <jackson@ximian.com>
24949
24950         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
24951         up.
24952
24953 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
24954
24955         * Control.cs: Brought back our old UpdateZOrder method as a private
24956           function and switched our calls from UpdateZOrder to the new one.
24957           This fixes the Paint.Net canvas disappearing bug.
24958
24959 2006-05-18  Jackson Harper  <jackson@ximian.com>
24960
24961         * Theme.cs:
24962         * ThemeWin32Classic.cs:
24963         * InternalWindowManager.cs: Move the drawing into the theme,
24964         expose everything the theme should need from the window manager.
24965
24966 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
24967
24968         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
24969           from the call to NativeWindow to avoid walking up the parent chain
24970           further than needed (speeds up setting cursors and avoids setting
24971           the wrong cursor if a parent has another cursor defined)
24972         * Cursor.cs: When loading an icon as cursor, MS uses the center of
24973           the icon as hotspot, not what's contained as hotspot in the icon
24974           file. This fixes the perceived drawing offset seen with Paint.Net
24975         
24976 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
24977
24978         * XplatUIX11.cs: 
24979           - Store the calculated rectangle in Hwnd object and use it when 
24980             setting the client size
24981           - Force Toolwindows to always be type Dock, to ensure they're on top
24982
24983 2006-05-18  Mike Kestner  <mkestner@novell.com>
24984
24985         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
24986         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
24987         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
24988         Substantial refactoring to remove confusing nested classes. Coding
24989         standard and Get+Set->property refactorings.  Shift to index based
24990         highlighting in ComboListBox instead of constantly using IndexOf and
24991         Items[]. Add invalidations on resize for DropDownList to fix ugliness
24992         in FileDialog growth.  Draw borders manually since Simple mode needs
24993         to look like two independent controls.  Make listbox border
24994         conditional to DropDownStyle.  Improved OwnerDraw support.
24995
24996 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
24997
24998         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
24999         Don't set the disposed graphics to null, so we can throw the "right"
25000         exception if the graphics is reused later (added a flag to avoid 
25001         double disposing). Some behaviours are different under 2.0 and are
25002         filled under bug #78448.
25003
25004 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
25005
25006         * Control.cs: When double-buffering is enabled, we need to reset
25007           our graphics context between paint calls. Otherwise, any 
25008           transformations and other alterations on the context will 
25009           become cumulative (#77734)
25010
25011 2006-05-18  Mike Kestner  <mkestner@novell.com>
25012
25013         * ListView.cs: do focused item selection like MS on clicks. 
25014         Rework focus handling for ItemControl so LostFocus invalidates as
25015         well.
25016         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
25017         the ListView ItemControl has focus.
25018
25019 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
25020
25021         * XplatUIX11.cs: If client_window ends up being width or height zero
25022           due to border settings, move it off window inside whole_window (#78433)
25023
25024 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
25025
25026         * Mime.cs: Shrink the mime file cache correctly.
25027
25028 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
25029
25030         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
25031
25032 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25033
25034         * XplatUIX11.cs (AddExpose): More sanity checks
25035
25036 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25037
25038         * XplatUIX11.cs:
25039           - AddExpose: Don't add expose ranges outside the size of our
25040             window
25041           - Cast opacity values to Int32 to avoid crashes with certain
25042             values
25043           - Added disabled code paths that protect against illegal cross-
25044             thread painting (Developers.exe)
25045
25046 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25047
25048         * ProgressBar.cs: Invalidate the control when it's resized
25049           since block size is based on control size. (#78388)
25050
25051 2006-05-16  Miguel de Icaza  <miguel@novell.com>
25052
25053         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
25054         of setting the incoming argument to the "reset" value, we set the
25055         this.datamember to string.empty (before we were invalidating the
25056         incoming data).   
25057
25058         Fixes 78420
25059
25060 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25061
25062         * Form.cs: Only apply transparency settings after the form
25063           is created. (Fixes #77800)
25064
25065 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25066
25067         * ApplicationContext.cs: Grab the HandleDestroyed event so
25068           we know when to fire OnMainFormClosed 
25069
25070 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25071
25072         * Application.cs: Introduced sub-class to allow tracking of
25073           threads and centralized triggering of the event mess for
25074           ThreadExit, AppExit, etc..  (#76156)
25075
25076 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
25077
25078         * MimeIcon.cs:
25079           - Do not return a null icon index value for a mime subclass.
25080             Instead try the main mime type class too.
25081           - Seems that some newer distributions don't have a link to some
25082             gnome default icons anymore. So check the default gnome dir too.
25083           
25084
25085 2006-05-16  Jackson Harper  <jackson@ximian.com>
25086
25087         * MdiClient.cs: Don't paint the parent background image if we have
25088         our own background image.
25089
25090 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25091
25092         * Control.cs:
25093           - PerformLayout: Do not shrink space filled by DockStyle.Fill
25094             controls, all filled controls are supposed to overlap (#78080)
25095           - UpdateZOrder is supposed to update the control's z-order in the
25096             parent's z-order chain. Fixed to behave like that
25097           - BringToFront: Removed obsolete code
25098           - SendToBack: Simplyfied
25099           - SetChildIndex: Trigger layout calculations when Z-order changes
25100             since layout is done by z-order
25101
25102 2006-05-16  Chris Toshok  <toshok@ximian.com>
25103
25104         [ fixes bug #78410 ]
25105         * DataGrid.cs (set_AlternatingBackColor): use
25106         grid_drawing.InvalidateCells instead of Refresh().
25107         (set_BackColor): call grid_drawing.InvalidateCells.
25108         (set_BackgroundColor): use Invalidate instead of Refresh.
25109
25110         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
25111         invalidate the cell area.
25112
25113 2006-05-15  Chris Toshok  <toshok@ximian.com>
25114
25115         [ fixes bug #78011 ]
25116         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
25117         on to DataGridPaintRow.
25118         (DataGridPaintRow): take a clip argument, and only draw the cells
25119         which intersect it.  same with the not_usedarea.
25120
25121         * Theme.cs (DataGridPaintRow) add @clip parameter.
25122
25123         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
25124         XplatUI.ScrollWindow.
25125         (ScrollToRow): same.
25126
25127         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
25128         with last column which was causing a gray swath to appear with the
25129         XplatUI.ScrollWindow code.
25130
25131 2006-05-15  Chris Toshok  <toshok@ximian.com>
25132
25133         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
25134         use XplatUI.ScrollWindow.
25135         (VerticalScrollEvent): use XplatUI.ScrollWindow.
25136
25137 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
25138
25139         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
25140
25141 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
25142
25143         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
25144           file since there are no equivalent X11 cursors
25145
25146 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
25147
25148         * MonthCalendar.cs : DateTimePicker should reflect selected date
25149           on mouse*up*, not mouse*down*. Fixed originally reported part of
25150           bug #76474.
25151
25152 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
25153
25154         * TabControl.cs : When argument index is equal or more than tab
25155           count, just ignore. Fixed bug #78395.
25156
25157 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
25158
25159         * Control.cs: Dispose all child controls when control is diposed (#78394)
25160
25161 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25162
25163         * ColorDialog.cs: Finally it is possible to select the color with
25164           the text boxes
25165
25166 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25167
25168         * PrintDialog.cs: Fix typo
25169
25170 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25171
25172         * PrintDialog.cs: PrintDialog is not resizable
25173         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
25174           color. Made some ToolBar drawing methods protected virtual.
25175
25176 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
25177
25178         * PrintDialog.cs: Implementation of the PrintDialog
25179
25180 2006-05-12  Chris Toshok  <toshok@ximian.com>
25181
25182         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
25183         thumb, instead use MoveThumb.  This has the side effect of making
25184         most of the other thumb moving machinery use MoveThumb as well.
25185         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
25186         need to actually invalidate the rectangle where the new thumb will
25187         go.
25188         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
25189         We force an Update() after, so it's not as fast as it could be,
25190         but at least there's zero flicker and no droppings.
25191         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
25192         (UpdateThumbPos): add another argument (dirty), which says whether
25193         or not to calculate/add dirty regions which we later invalidate.
25194         For cases where we know we're going to use MoveThumb, we pass
25195         false for this.  Otherwise, pass true.
25196
25197 2006-05-12  Jackson Harper  <jackson@ximian.com>
25198
25199         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
25200         the status bar.
25201         
25202 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
25203
25204         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
25205           and GetClipRegion methods and UserClipWontExposeParent property.
25206         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
25207           overriding UserClipWontExposeParent property, setting to false, since
25208           Win32 handles the required expose messages to draw our clipped parent
25209           areas internally
25210         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
25211           PaintEventStart to set the user clip region if set.
25212         * Control.cs: 
25213           - Now internally tracking the Region for the control since we need to
25214             store it if the handle is not yet created and only set it when it
25215             becomes created. Before setting the region forced handle creation
25216           - Added code to draw the parents underneath a user-clipped region
25217         * Hwnd.cs: Added UserClip property
25218
25219 2006-05-12  Chris Toshok  <toshok@ximian.com>
25220
25221         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
25222         (set_Maximum): same.
25223         (set_Minimum): same.
25224         (set_SmallChange): same.
25225         (OnMouseUpSB): remove the call to refresh when releasing the
25226         thumb.  We shouldn't need it.
25227         
25228 2006-05-12  Miguel de Icaza  <miguel@novell.com>
25229
25230         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
25231         AutoSize set to None, we do not need to relayout everything, we
25232         just need to invalidate the current region.
25233
25234         (Draw): Do not draw the entire ClientArea, just redraw the
25235         clip area being passed.
25236
25237         * MdiClient.cs: Make MdiClient constructor with the Form argument
25238         internal. 
25239
25240 2006-05-12  Jackson Harper  <jackson@ximian.com>
25241
25242         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
25243         parents background image,  but strangely not their own.
25244         - (DrawStatusBarPanel): Take into account horizontal alignment
25245         when drawing the strings and icons.
25246
25247 2006-05-12  Mike Kestner  <mkestner@novell.com>
25248
25249         * ListBox.cs: avoid invalidations for focus when the collection is
25250         empty. 
25251
25252 2006-05-12  Chris Toshok  <toshok@ximian.com>
25253
25254         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
25255         invalidate the entire thumb area.  Call InvalidateDirty which
25256         limits the redraw to the thumb itself and surrounding pixels.
25257
25258         * XplatUIX11.cs (ScrollWindow): optimize copying.
25259         
25260 2006-05-12  Chris Toshok  <toshok@ximian.com>
25261
25262         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
25263         Figure out the positioning/layout in a single pass instead of
25264         multiple recursive invocations.  Speeds up the initial display of
25265         the data grid.  Also, make many things private that were
25266         originally public but unused outside this class.
25267
25268 2006-05-11  Jackson Harper  <jackson@ximian.com>
25269
25270         * MdiClient.cs: Improved layout code.
25271
25272 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
25273
25274         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
25275           not SelectedObject.
25276
25277 2006-05-11  Chris Toshok  <toshok@ximian.com>
25278
25279         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
25280         union of that will always be {0,0,width,height}.
25281
25282 2006-05-11  Jackson Harper  <jackson@ximian.com>
25283
25284         * Form.cs: Match MS's DefaultSize for forms (they must have
25285         changed the size in sp2).
25286
25287 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
25288
25289         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
25290
25291 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
25292
25293         * TextControl.cs : Fixed bug #78109. This incorrect position
25294           comparison caused crash on automatic line split.
25295         * TextBoxBase.cs : reduce duplicate code.
25296
25297 2006-05-10  Jackson Harper  <jackson@ximian.com>
25298
25299         * MdiClient.cs: Active form is only sent to the back when using
25300         the Next form functionality, when a form is clicked the current
25301         active shouldn't be sent to the back.
25302         - Layout the mdi windows when the container is first made visible.
25303         * Form.cs: Give the MdiClient a ref to the containing form when we
25304         create it.
25305         
25306 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
25307
25308         * LinkLabel.cs : link_font could be uninitialized, so populate one
25309           before actual use. Fixed bug #78340.
25310
25311 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
25312
25313         * XplatUIX11.cs : clipboard format native value is IntPtr.
25314           Fixed bug #78283.
25315
25316 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
25317
25318         * Control.cs: 
25319           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
25320             which is passed up the parent chain by DefWndProc
25321           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
25322             to DefWndProc (#77956)
25323         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
25324
25325 2006-05-10  Jackson Harper  <jackson@ximian.com>
25326
25327         * MdiClient.cs: We need to remove the controls from the mdi
25328         collection, when we close the window.
25329         * MdiWindowManager.cs: Special handling of closing mdi windows.
25330         * InternalWindowManager.cs: Make the close method virtual so the
25331         mdi window manager can handle it specially.
25332
25333 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
25334
25335         * DataGrid.cs:
25336           - Recalculate grid when the data source has changed
25337           - Matches styles provided by user from all data sources types
25338         * DataGridTableStyle.cs: For columns that provided by the user set the
25339         with the preferred value is there was unassigned.
25340         * CurrencyManager.cs: throw OnItemChanged event
25341
25342 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
25343
25344         * PictureBox.cs: Don't animate until handle is created. Start animation
25345           when handle is created.
25346
25347 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
25348
25349         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
25350           current codebase.
25351         * XEventQueue.cs: We don't need to provide the extra info
25352
25353 2006-05-10  Jackson Harper  <jackson@ximian.com>
25354
25355         * MdiClient.cs: If the mdi clients parent form has a background
25356         image set, we draw that background image for the mdi area's
25357         background.
25358
25359 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
25360
25361         * TextBoxBase.cs: Set IBeam cursor (#78347)
25362
25363 2006-05-10  Mike Kestner  <mkestner@novell.com>
25364
25365         * ToolBar.cs: fix some text padding issues with ButtonSize
25366         calculation. Update the default size to match MS documentation.
25367         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
25368         button size. Fixes #78296.
25369
25370 2006-05-10  Mike Kestner  <mkestner@novell.com>
25371
25372         * ListBox.cs: use is_visible for scrollbar positioning in case the
25373         control isn't on screen yet.  Fix off by one with Right vs Width
25374         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
25375         
25376 2006-05-10  Jackson Harper  <jackson@ximian.com>
25377
25378         * X11Dnd.cs: Drop to a control with another control on top of it.
25379         * ToolBar.cs: Work on a copy of the buttons list, so that it can
25380         be modified in click handlers. TODO: Look for similar problems in
25381         other controls.
25382
25383 2006-05-09  Jackson Harper  <jackson@ximian.com>
25384
25385         * Form.cs: Window managers need the old window state when setting
25386         window state now.
25387         * InternalWindowManager.cs: Allow the base mdi window manager to
25388         handle more of the MDI only stuff (like maximize buttons).
25389         * MdiWindowManager.cs: Fix some snafus in changing the window
25390         state.  Add all the menu functionality, for both popup and
25391         maximized menus.
25392         * MdiClient.cs: When a new form is selected the currently
25393         activated form is sent to the back, this matches MS.
25394         - Implement a new method to activate the next mdi child window.
25395
25396 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
25397
25398         * Control.cs: 
25399           - Added new InternalCapture method to allow controls to prevent
25400             the capture behaviour on the click handlers
25401           - Switched to use InternalCapture
25402         * ComboBox.cs:
25403           - Using InternalCapture to prevent mouse captures from being released
25404             on mouse button release (Fixes #78100)
25405         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
25406           returns Form borders if a caption is present. (Fixes #78310)
25407
25408 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
25409
25410         * TreeNode.cs: Changed serialization .ctor to not require every field
25411           to be present. (#78265)
25412         * OwnerDrawPropertyBag.cs: Added serialization .ctor
25413
25414 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
25415
25416         * MimeIcon.cs: for is faster than foreach for strings.
25417
25418 2006-05-05  Mike Kestner  <mkestner@novell.com>
25419
25420         * CheckedListBox.cs: update check handling code to not use selected.
25421         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
25422         behavior for visual feedback, motion response, shift/ctrl handling,
25423         and properly deal with all 4 selection modes. Updates to bounds
25424         handling logic.  Add scroll wheel support. [Fixes #77842]
25425
25426 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
25427
25428         * ListView.cs:
25429           - Moved adding of Implicit controls into .ctor. That way, subsequent
25430             creation of the controls will not cause them to think they are 
25431             toplevel windows (fixes #78200 header problem)
25432           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
25433           - Switched visibility setting of header control to use internal field
25434             to avoid triggering handle creation
25435           - Now checking if handle is created before causing a refresh when items
25436             are added (This makes us now match handle creation time with MS)
25437         * Splitter.cs: Removed loading of private splitter cursor, switched to
25438           Cursors version now that that is loading the right ones
25439         * Cursors.cs: Load proper splitter cursors from resources
25440         * Cursor.cs: Added second method of loading resource cursors for the 
25441           VS.Net users amongst us
25442
25443 2006-05-05  Mike Kestner  <mkestner@novell.com>
25444
25445         * ListView.cs: give header_control a minimum size based on the
25446         ListView size.
25447
25448 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
25449
25450         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
25451           window seems to do that with metacity, so set that type. (#78120)
25452
25453 2006-05-05  Mike Kestner  <mkestner@novell.com>
25454
25455         * ListViewItem.cs: fix Details mode checkbox layout bug.
25456         * ThemeWin32Classic.cs: draw a ListView column header for unused space
25457         at the end of the header, if it exists. [Fixes for #78200]
25458
25459 2006-05-04  Jackson Harper  <jackson@ximian.com>
25460
25461         * MdiClient.cs: Add a helper property to get the container form.
25462         * MdiWindowManager.cs: We have to make sure to use the menu origin
25463         when drawing the icons and buttons, this fixes maximized window
25464         icons/buttons on win32.
25465         * InternalWindowManager.cs: Reset the restore captions when a
25466         window goes from Maximized to Minimized and vice versa. Move the
25467         DrawMaximizedButtons into the MdiWindowManager source, tool
25468         windows can't be maximized. NOTE: This could use a little
25469         refactoring if time ever permits.
25470         
25471 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
25472
25473         * TextBox.cs: Add MWFCategoryAttributes
25474         * TextBoxBase.cs: Add MWFCategoryAttributes
25475         * Form.cs: Add MWFCategoryAttributes
25476
25477 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
25478
25479         * Control.cs: Add MWFCategoryAttributes
25480         * ScrollableControl.cs: Add MWFCategoryAttributes
25481
25482 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
25483
25484         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
25485           Divider is true. Fix a little glitch in PropertyToolBar
25486           drawing code
25487
25488 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
25489
25490         * Control.cs:
25491           - Dispose: Call base.Dispose, this causes the disposed event
25492             to be fired (and probably other, more important stuff)
25493           - SetVisibleCore: Set is_visible to true after creating the
25494             window so that the window still gets created invisible (if
25495             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
25496             to generate a WM_ACTIVE message
25497         * Form.cs: Call Dispose when we want to destroy the window, instead of
25498           just destroying the handle (Dispose will do that for us)
25499         * XplatUIX11.cs:
25500           - RootWindow also needs a queue, so we can properly process the
25501             property change events from RootWindow (like Activate)
25502           - Generatic synthetic WM_ACTIVE message when the active window is
25503             being destroyed
25504
25505 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
25506
25507         * LinkLabel.cs: Trigger a recalc of our label dimensions when
25508           bounds are changed
25509
25510 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
25511
25512         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
25513           for determining width and height (image might not be assigned if
25514           we're drawing an imagelist)
25515
25516 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
25517
25518         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
25519         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
25520           height from system
25521         * Theme.cs: No longer returns hardcoded menu height, instead calls
25522           new driver method
25523         * Form.cs (OnLoad): Scaling happens before triggering Load events 
25524           on MS (# 78257)
25525
25526 2006-05-01  Mike Kestner  <mkestner@novell.com>
25527
25528         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
25529
25530 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
25531
25532         * TextBoxBase.cs: Removed Fixme
25533         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
25534
25535 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
25536
25537         * XplatUIX11.cs:
25538           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
25539             the rectangle relative to the parent, considering borders. We
25540             don't really want that.
25541           - ScrollWindow: Fixed warning to be more understandable
25542         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
25543           scrollbars and scroll only the visible area
25544         * RichTextBox.cs: Removed debug output
25545
25546 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
25547
25548         * NumericUpDown.cs (Text): Just use base
25549         * UpDownBase.cs: Ensure txtView is created before using it
25550
25551 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
25552
25553         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
25554           casting to IntPtr to avoid 64bit overflow errors
25555
25556 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
25557
25558         * Control.cs:
25559           - AllowDrop: Don't force handle creation.
25560           - CreateHandle: Added call to tell driver if we're allowed to drop
25561
25562 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
25563
25564         * FileDialog.cs: Remember the last directory not only for the
25565           current instance but also for new FileDialog instances.
25566
25567 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
25568         
25569         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
25570           broke sending async messages
25571
25572 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
25573
25574         * XplatUIX11.cs:
25575           - ScrollWindow: Fixed method. We finally generate expose events again
25576             for scrolled areas. This was causing 'garbage' when scrolling
25577             textbox and other controls that used ScrollWindow
25578           - Switched from using the regular queue for paint events to the MS 
25579             model of 'generating' paint events when the queue is empty.
25580             We use the new XQueueEvent.Paint subclass to store which windows
25581             need painting.
25582           - AddExpose now takes the x/y/width/height of the exposed area
25583             and inserts the window into the paint queue if not already there
25584           - InvalidateWholeWindow: Switched to use new AddExpose method
25585           - UpdateMessageQueue: Added which queue to monitor for paint events
25586           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
25587             the unlikely case nothing above handles it. We reset the expose
25588             pending states to get them off the queue.
25589           - GetMessage: Now pulls a paint event if no other events are in the
25590             queue
25591           - Invalidate: Switched to new AddExpose method
25592           - PeekMessage: Updated to understand pending paint events
25593           - UpdateWindow: Fixed logic bug. We were only updating if the window
25594             didn't need updating. Also switched to sending WM_PAINT directly,
25595             like MS does.
25596         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
25597           and random access Remove(). The random access is needed to handle
25598           UpdateWindow() where a WM_PAINT is sent directly without accessing
25599           the queue.
25600         * ScrollBar.cs: Added Update() calls to cause immediate updates to
25601           allow for better feedback when scrolling. Scrollbars are small and
25602           the immediate update should make it 'feel' more responsive without
25603           slowing things down. ScrollBar still needs it's invaliate logic
25604           updated to not always invalidate the whole bar on certain changes.
25605
25606 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25607
25608         * Control.cs:
25609         (BackColor): if the control does not support a transparent background,
25610         return the default backcolor when the parent backcolor is transparent.
25611
25612 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
25613
25614         * Application.cs: Updated to new StartLoop/GetMessage API
25615         * RichTextBox.cs: Provide some output on RTF parsing errors
25616         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
25617           new queue_id argument to GetMessage and PeekMessage to allow faster
25618           handling of per-thread queues in drivers.
25619         * Hwnd.cs: Added Queue tracking and property
25620         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
25621         * XEventQueue.cs: Added thread trackingA
25622         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
25623         * XplatUIX11.cs:
25624           - Implemented new per-thread queue
25625           - GetMessage: Fixed return/break behaviour on several cases. We were
25626             returning stale messages in some cases, instead of just processing
25627             the next message
25628
25629 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
25630
25631         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
25632
25633 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
25634
25635         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
25636           fixed off-by-one comparisons between Width/Height and Right/Bottom.
25637
25638 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
25639
25640         * PropertyGridView.cs: Fix drop down width.
25641
25642 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
25643
25644         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
25645           a mess in DrawToolBar, so I removed one of them.
25646
25647 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
25648
25649         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
25650           needed (clip). Otherwise we get artifacts.
25651
25652 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
25653
25654         * FixedSizeTextBox.cs: Added constructor to allow specifying which
25655           dimension is fixed
25656         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
25657           and switched FixedSizeTextBox to only be fixed vertical (#78116)
25658         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
25659           if it matches the scale base font (avoids unneeded scaling)
25660
25661 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
25662
25663         * X11DesktopColors.cs: One gtk_init_check should be enough
25664
25665 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
25666
25667         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
25668           match MS behaviour
25669
25670 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
25671
25672         * TextBoxBase.cs: 
25673           - Generate OnTextChanged for Backspace even if we're only deleting
25674             the current selection
25675           - When setting the Text property, only select all text if the
25676             control does not have focus when it is being set. Otherwise
25677             just place the cursor at the beginning of the control
25678
25679 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
25680
25681         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
25682           Added a little helper to draw PropertyGrid ToolBar with a different
25683           border and a different BackColor.
25684         * PropertyGrid.cs: Some background parts didn't get painted with the
25685           correct background color. Added a class that helps us to draw the
25686           correct border for PropertyGridView and a class that helps us to
25687           draw ToolBars with a different backcolor
25688         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
25689
25690 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
25691
25692         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
25693         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
25694
25695 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
25696
25697         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
25698           into the palette entries. Also, since we're working on a copy
25699           we needed to copy the palette back onto the bitmap.
25700         * Cursor.cs: Same fix as XplatUIWin32.cs.
25701
25702 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
25703
25704         * ImageListStreamer.cs: Need to read the var (or we're off)
25705
25706 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
25707
25708         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
25709           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
25710           TextBoxBase.cs: Unused var fixes
25711         * AxHost.cs: Small 2.0 fix
25712         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
25713           as it seems that is what at least Metacity expects. This will make
25714           icons show up on 64bit platforms. We still have some 64bit size
25715           issues, though, since the startup app window size still won't match.
25716
25717 2006-04-25  Mike Kestner  <mkestner@novell.com>
25718
25719         * *.cs: cleanup newly reported exception var unused warnings.
25720
25721 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
25722
25723         * ThemeWin32Classic.cs: Button image alignment now matches exactly
25724           ms
25725
25726 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
25727
25728         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
25729           image. The image position is always the same, no matter if the
25730           button is pressed or not.
25731
25732 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
25733
25734         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
25735           selection and set the correct filename for SaveFileDialog.
25736           Patch by Emery Conrad.
25737
25738 2006-04-24  Mike Kestner  <mkestner@novell.com>
25739
25740         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
25741         check for item.X outside the ClientRect instead of item.Y. Fixes
25742         #78151.
25743
25744 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25745
25746         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
25747         trust that value blindly and do some sanity check. Fixes bug #77814.
25748
25749 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25750
25751         * ImageListStreamer.cs: save the mask as a 1bpp image.
25752
25753 2006-04-21  Mike Kestner  <mkestner@novell.com>
25754
25755         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
25756         pass Checked and Indeterminate to the Theme Engine. Improve
25757         encapsulation with ListBox.
25758         * ListBox.cs: Keep a StringFormat instead of calculating it every item
25759         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
25760         nested types.  Move all CheckState functionality to CheckedListBox.
25761         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
25762         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
25763         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
25764         single base list. Fix scrollbar sizing and placement to mirror MS.
25765         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
25766         used.
25767         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
25768         for CheckedListBox by using new DrawItemState info.  Center the
25769         checkboxes on the items. Use new StringFormat property.
25770
25771 2006-04-18  Jackson Harper  <jackson@ximian.com>
25772
25773         * Form.cs: MdiChildren don't do default locations the same way as
25774         regular forms.  This prevents a crash when trying to position the
25775         mdi windows.
25776
25777 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
25778
25779         * PropertyGridTextBox.cs: Formatting, copyright
25780         * PropertiesTab.cs: Formatting
25781         * PropertyGrid.cs: Formatting
25782         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
25783           click toggling of values
25784           
25785 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
25786
25787         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
25788         * Control.cs (.ctor): verify_thread_handle is static, don't reset
25789           every time a control is created
25790         * Application.cs: Removed obsolete EnableRTLMirroring method
25791
25792 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
25793
25794         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
25795         SelectedIndex to -1. Fixes bug #78121.
25796
25797 2006-04-17  Jackson Harper  <jackson@ximian.com>
25798
25799         * Binding.cs: Handle null values for Current and BindingContext.
25800         This occurs when binding is a little delayed.
25801         * CurrencyManager.cs: return null for Current when there are no
25802         items in the list.
25803         - Hookup to the listchanged event on the DataView and update
25804         bindings when the list is changed.  This fixes late binding of
25805         controls.
25806
25807 2006-04-17  Jackson Harper  <jackson@ximian.com>
25808
25809         * X11Dnd.cs:
25810         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
25811         Ringenbach.
25812
25813 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
25814
25815         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
25816           place
25817         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
25818           with the correct ButtonState
25819
25820 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
25821
25822         * XplatUIX11.cs: Improved distinguishing between window types to
25823           tell the WM a type closer to what the app wants (Fixes #78107)
25824
25825 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
25826
25827         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
25828           GrabHandle
25829
25830 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
25831
25832         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
25833           drawing code to reflect the size grip changes
25834
25835 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25836
25837         * ImageListStreamer.cs: fix handling of the mask that follows the main
25838         bitmap when deserializing and serialize it properly. The generated mask
25839         should better be a 1bpp image, but I'll do that later.
25840
25841 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
25842
25843         * FileDialog.cs: Show something in the DirComboBox on *nix if the
25844           path doesn't fit into some of our Current.Places
25845
25846 2006-04-13  Jackson Harper  <jackson@ximian.com>
25847
25848         * ComboBox.cs: Use borders instead of drawing our own decorations,
25849         try to obey correct rules for heights.
25850         * Theme.cs:
25851         * ThemeNice.cs:
25852         * ThemeClearLooks.cs:
25853         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
25854         this is now handled by borders.
25855         - Remove unused DrawListBoxDecorationSize method.
25856         
25857 2006-04-13  Mike Kestner  <mkestner@novell.com>
25858
25859         * MenuAPI.cs: null guarding for the disbled click check fixes crash
25860         reported by Alex.
25861
25862 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
25863
25864         * ThemeWin32Classic.cs: 
25865           - Fixed CPDrawStringDisabled
25866           - Corrected drawing of disabled menu items
25867           - Fixed drawing of disabled radio buttons (bug #78095)
25868           - Draw check in a disabled CheckBox with color ControlDark 
25869
25870 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25871
25872         * Form.cs: Use the provided width when calculating the menu size;
25873           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
25874           and ClientSize.Width won't be updated yet
25875         * Application.cs: Use Visible instead of Show() to make form visible,
25876           this way we create the handle later and menusize is considered
25877
25878 2006-04-12  Mike Kestner  <mkestner@novell.com>
25879
25880         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
25881         reporting.
25882
25883 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25884
25885         * TextBox.cs: Implemented context menu
25886
25887 2006-04-12  Mike Kestner  <mkestner@novell.com>
25888
25889         * ListView.cs: implement box selection. fixes #77838.
25890         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
25891
25892 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
25893
25894         * XplatUIX11.cs: Added setting of window type when transient window
25895           is created (metacity would move it otherwise)
25896         * X11Structs.cs: Added WINDOW_TYPE atoms
25897         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
25898           background (the control is Opaque but still wants transparent
25899           backgrounds)
25900
25901 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25902
25903         * Control.cs: Added OnPaintBackgroundInternal to allow controls
25904           that set Opaque but don't mean it (like all ButtonBase-derived
25905           controls) to still draw their background
25906         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
25907           the background
25908
25909 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
25910
25911         * Control.cs (PaintControlBackground): Set the graphics object
25912           on our PaintEvent to null to prevent it from being disposed
25913           when the PaintEvent gets disposed
25914
25915 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
25916
25917         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
25918         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
25919
25920 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25921
25922         * Control.cs: 
25923           - Added transparency check to BackColor property. Transparent
25924             backgrounds are only allowed if the control styles permit it
25925           - Added recursive painting of parent control background and
25926             foreground if a control with a transparent backcolor is drawn
25927             (Thanks to Tim Ringenback for providing his 'hack' as a base
25928              for this patch) Fixes #77985 and #78026.
25929           - Added Opaque style check before calling OnPaintBackground, no
25930             need to draw the background if the control is opaque
25931           - Removed ControlAccessibleObject owner variable (inherited from
25932             base, no need to define again)
25933           - Added some documentation links explaining the drawing events
25934             and styles
25935
25936 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
25937
25938         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
25939           that the affected control is the located at the left border of our
25940           parent (Fixes #77936)
25941
25942 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
25943
25944         * TextBoxBase.cs: When rendering disabled or readonly controls,
25945           draw the background with 'Control' instead of 'Window' color as
25946           long as the user hasn't specifically set a color
25947
25948 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
25949
25950         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
25951           since that won't be updated if the user types text (only if it's
25952           programatically set)
25953
25954 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
25955
25956         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
25957           layout changes do to app-triggered resizes will have the proper
25958           display rectangle for layout
25959
25960 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
25961
25962         * ThemeWin32Classic.cs:
25963           - Make use of the SystemBrushes and SystemPens wherever possible
25964           - Corrected some highlight colors
25965           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
25966             drawing
25967         * Theme.cs: Added Empty field to CPColor struct
25968
25969 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
25970
25971         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
25972           is displayed when calculating the display rectangle. Thanks to Mike
25973           for teaching me the err of my ways.
25974
25975 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
25976
25977         * ScrollableControl.cs:
25978           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
25979             (instead of 0,0) and we now return the real width/height instead of
25980             just the clientrectangle, adjusted for padding. The rectangle is
25981             now cached and created by the new CalculateDisplayRectangle method.
25982           - Created new CalculateDisplayRectange method, which basically does
25983             what get_DisplayRectangle() did originally, but now using the 
25984             right edge instead of DisplayRectangle to determine the size of
25985             our scrollbars
25986           - get_Canvas(): Fixed it to properly calculate canvas for 
25987             right/bottom controls which seem to be placed to the right/bottom
25988             of any controls that have a fixed location
25989           - Removed TODO that's taken care of
25990           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
25991             and SetDisplayRectLocation according to new MSDN2 docs
25992           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
25993             event when that is called, this is added for compatibility
25994           - ScrollControlIntoView(): Implemented.
25995           - Switched scrollbars to be implicit, they shouldn't be selectable
25996         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
25997           call it when the active control is set/changed
25998         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
25999         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
26000           implicit_control variable (used for native Win32 message generation)
26001         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
26002           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
26003         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
26004         * XplatUIStructs.cs: Added ScrollBarCommands enum
26005
26006 2006-04-10  Jackson Harper  <jackson@ximian.com>
26007
26008         * ButtonBase.cs:
26009         * CheckedListBox.cs:
26010         * ComboBox.cs:
26011         * DataGrid.cs:
26012         * DataGridView.cs:
26013         * Form.cs:
26014         * GroupBox.cs:
26015         * ListBox.cs:
26016         * PrintPreviewControl.cs:
26017         * ProgressBar.cs:
26018         * PropertyGrid.cs:
26019         * Splitter.cs:
26020         * StatusBar.cs:
26021         * TrackBar.cs:
26022         * UpDownBase.cs: Fixup base event overrides.
26023         
26024 2006-04-06  Mike Kestner  <mkestner@novell.com>
26025
26026         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
26027         all user-initiated value changes to min <= value <= max-thumbsz+1.
26028         (set_Value): check for vert/horiz when calculating new thumb position.
26029         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
26030         like MS does.
26031         (OnMouseMoveSB): refactor the thumb dragging code and refine
26032         invalidation logic to reduce flicker.
26033         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
26034         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
26035         (UpdateThumbPosition): small code readability cleanup
26036
26037 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
26038
26039         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
26040           different
26041
26042 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
26043
26044         * ThemeNice.cs: Use a better graphics effect when a button is pressed
26045
26046 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
26047
26048         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
26049         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
26050           This dramatically reduces the number of Pen.Dispose calls. 
26051           Where possible call ResPool methods only once instead of calling it
26052           over and over again (for example for the same color).
26053
26054 2006-04-06  Mike Kestner  <mkestner@novell.com>
26055
26056         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
26057         Also remove an unused private field on the collection. Fixes #77972.
26058
26059 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
26060
26061         * ThemeNice.cs: Added ToolBar drawing code
26062
26063 2006-04-06  Mike Kestner  <mkestner@novell.com>
26064
26065         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
26066         I'm assuming that means we need to look up the toplevel for the
26067         provided control. Fixes the crash trace in #77911 but exposes another
26068         crash in some strange reflection usage in NDocGui.
26069
26070 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
26071
26072         * ThemeNice.cs: Gave it a little silver touch and added Images
26073           method
26074         * FontDialog.cs: FontDialog is not resizable
26075         * FileDialg.cs: Added SizeGripStyle.Show
26076
26077 2006-04-05  Jackson Harper  <jackson@ximian.com>
26078
26079         * KeyboardLayouts.cs: Remove warning.
26080
26081 2006-04-05  Jackson Harper  <jackson@ximian.com>
26082
26083         * Control.cs: Enable OnPaintInternal so we can use it for drawing
26084         all of our controls instead of Paint +=.
26085         * ListBox.cs:
26086         * ListView.cs:
26087         * MenuAPI.cs:
26088         * MessageBox.cs:
26089         * NotifyIcon.cs:
26090         * ProgressBar.cs:
26091         * ScrollBar.cs:
26092         * Splitter.cs:
26093         * StatusBar.cs:
26094         * TabControl.cs:
26095         * TextBoxBase.cs:
26096         * ToolBar.cs:
26097         * TrackBar.cs:
26098         * UpDownBase.cs:
26099         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
26100         use OnPaintInternal. Remove Width/Height and Visible checks in
26101         paint handler, this is done at a higher level now.
26102         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
26103         * PaintEventArgs.cs: Add a handled flag so controls that don't
26104         want anymore painting after OnPaintInternal can make sure OnPaint
26105         isn't called.
26106
26107 2006-04-05  Mike Kestner  <mkestner@novell.com>
26108
26109         * Form.cs: fix the menu WndProc hacks to respect the native enabled
26110         state of the form, so that we don't process events when Modal dialogs
26111         are up. Fixes #77922.
26112
26113 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
26114
26115         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
26116           checking is done.
26117
26118 2006-04-05  Mike Kestner  <mkestner@novell.com>
26119
26120         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
26121
26122 2006-04-05  Mike Kestner  <mkestner@novell.com>
26123
26124         * ListView.cs (HeaderMouseMove): null guarding for the over column
26125         when setting up the drag_to_index.  Fixes #78015.
26126
26127 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
26128
26129         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
26130           in the taskbar. Transient windows seem to accomplish that.
26131
26132 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
26133
26134         * Form.cs:
26135           - Re-enabled CreateParams.X/Y code for FormStartPosition
26136           - Added code for manual placement when creating the Control
26137           - Incomplete patch to treat MDI forms differently when
26138             setting the ClientSizeCore. (Still need to figure out handling
26139             x/y coords there)
26140         * XplatUIX11.cs:
26141           - When we're explicitly setting the X/Y position of a non-Child
26142             window, let the WM know. Metacity really wants this.
26143
26144 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26145
26146         * ThemeNice.cs: Added CPDrawButton
26147
26148 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26149
26150         * ThemeNice.cs: Changed the color for focused buttons and activated
26151           the arrows for small scroll buttons.
26152
26153 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26154
26155         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
26156           anymore. Changed some method modifiers to protected (virtual)
26157         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
26158           changes
26159         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
26160           Updated drawing of menus, buttons and progressbars; added
26161           CPDrawBorder3D 
26162
26163 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26164
26165         * ImageListStreamer.cs: implemented serialization/deserialization
26166         of the images.
26167
26168 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
26169
26170         * ThemeWin32Classic.cs:
26171           - Removed all the DrawFrameControl stuff; CPDrawButton,
26172             CPDrawCheckBox and CPDrawRadioButton are now handled directly
26173             inside the methods
26174           - Updated and corrected the drawing code of CPDrawButton,
26175             CPDrawCheckBox and CPDrawRadioButton to better match ms
26176           - Updated theme checkbox and radiobutton code to use the CP*
26177             methods
26178
26179 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
26180
26181         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
26182           bug is fixed
26183
26184 2006-03-31  Jackson Harper  <jackson@ximian.com>
26185
26186         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
26187         sometimes.
26188         * UpDownBase.cs: Don't CreateGraphics manually, use a
26189         Refresh. Ideally we would invalidate the correct areas here.
26190
26191 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
26192
26193         * XplatUIX11.cs: 
26194           - We now track the mapping state of windows. If a window (or 
26195             one of it's parents) is not mapped we no longer permit
26196             WM_PAINT messages to be generated since we'd otherwise get 
26197             lots of BadMatch X errors. Jackson did all the work figuring
26198             out the problem.
26199           - Destroying the caret if the window it's contained in is 
26200             destroyed. Can't use regular DestroyCaret method since it
26201             might fall into a drawing function (trying to remove the
26202             caret) and with that generate new BadMatch errors. Again,
26203             Jackson tracked this down.
26204           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
26205             make sure we send the messages to all windows. (The old code
26206             would send the WM_DESTROY to the window, and then all child
26207             windows would be 'gone' because the WM_DESTROY handle lookup
26208             would no longer find the destroyed window)
26209         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
26210         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
26211
26212 2006-03-31  Jackson Harper  <jackson@ximian.com>
26213
26214         * ScrollableControl.cs: Dont recalc if we are not visible.
26215
26216 2006-03-31  Mike Kestner  <mkestner@novell.com>
26217
26218         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
26219         the visibility branch.
26220
26221 2006-03-31  Jackson Harper  <jackson@ximian.com>
26222
26223         * ScrollBar.cs: Cap values when incrementing/decrementing.
26224
26225 2006-03-31  Mike Kestner  <mkestner@novell.com>
26226
26227         * MenuAPI.cs: setup menu.tracker for popup/context menus.
26228         * ToolTip.cs: guard against timer expirations with no active control.
26229         Not sure why it happened.
26230
26231 2006-03-31  Mike Kestner  <mkestner@novell.com>
26232
26233         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
26234         text.
26235         * ToolTip.cs: Position the tooltip based on where the cursor is at
26236         popup time, not at MouseEnter time.  Add a Down state so that we don't
26237         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
26238         positioning offset. Lookup DisplaySize at positioning time, since it
26239         can theoretically change during invocation.
26240         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
26241         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
26242
26243 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26244
26245         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
26246           Fixes behaviour when the Text property of the box is String.Empty
26247
26248 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
26249
26250         * XplatUIX11.cs: Only send mouseleave for our client windows, not
26251           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
26252           a window)
26253
26254 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26255
26256         * FileDialog.cs: Visual enhancement for the popup buttons in 
26257           PopupButtonPanel
26258
26259 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26260
26261         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
26262           code
26263
26264 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
26265
26266         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
26267           highlighted menu items to match ms
26268
26269 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
26270
26271         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
26272
26273 2006-03-30  Mike Kestner  <mkestner@novell.com>
26274
26275         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
26276         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
26277         go active to account for HotLight to Selected transition.
26278         * MenuItem.cs: add internal Selected prop. Fill out the Status
26279         property by calculating it from item info. Add HotLight,
26280         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
26281
26282 2006-03-30  Mike Kestner  <mkestner@novell.com>
26283
26284         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
26285
26286 2006-03-29  Jackson Harper  <jackson@ximian.com>
26287
26288         * Form.cs: Implement TODO.
26289
26290 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
26291
26292         * PrintPreviewDialog.cs: Implemented missing methods and events; still
26293           missing proper dialog setup in the constructor
26294
26295 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
26296
26297         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
26298         * Control.cs:
26299           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
26300           - Fixed ResetBindings and removed TODO
26301           - Added check for cross-thread calls to get_Handle()
26302           - Added Marshaller attribute for set_Font to satisfy class status
26303         * FontDialog.cs: Removed TODOs that seemed implemented
26304         * UpDownBase.cs: Removed unneeded TODO and Fixme
26305         * MessageBox.cs: Implemented support for Default button and removed TODO
26306         * FileDialog.cs: Removed obsolete TODO
26307         * DomainUpDown.cs: Removed obsolete TODO
26308         * ButtonBase.cs: Removed obsolete TODO
26309         * XplatUIWin32.cs: Removed obsolete TODO
26310         * Form.cs:
26311           - Removed obsolete TODO
26312           - Calling CheckAcceptButton when the acceptbutton is changed to allow
26313             internal status updates
26314           - Making sure the active control is selected when the control is created
26315         * CurrencyManager.cs: Removed obsolete TODO
26316
26317 2006-03-29  Mike Kestner  <mkestner@novell.com>
26318
26319         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
26320         of PrintPreviewDialog and RichTextBox.
26321
26322 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
26323
26324         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
26325           DarkDark, Light and LightLight colors for a specific color
26326         * ThemeWin32Classic.cs:
26327           - Use Button drawing code to draw RadioButtons and CheckBoxes with
26328             Appearance = Button 
26329           - Make use of the new ResPool helper CPColor
26330           - Draw ProgressBar and StatusBar with correct 3D borders
26331
26332 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
26333
26334         * ColorDialog.cs: Return selected color. Fixes bug #77940.
26335
26336 2006-03-28  Mike Kestner  <mkestner@novell.com>
26337
26338         * ListView.cs: fix Icon layout to plan for scrollbar widths when
26339         calculating col/row counts.
26340
26341 2006-03-28  Mike Kestner  <mkestner@novell.com>
26342
26343         * ColumnHeader.cs:
26344         * ListView.cs:
26345         * ListViewItem.cs:
26346         * Menu.cs: 
26347         switch to explicit interface method implementation for some methods
26348         corcompare identifies as inconsistent with MS.
26349
26350 2006-03-28  Mike Kestner  <mkestner@novell.com>
26351
26352         * MainMenu.cs: 
26353         * Menu.cs:
26354         add a few missing methods from the class status output.
26355
26356 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
26357
26358         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
26359           correct.
26360
26361 2006-03-28  Mike Kestner  <mkestner@novell.com>
26362
26363         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
26364
26365 2006-03-27  Mike Kestner  <mkestner@novell.com>
26366
26367         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
26368         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
26369
26370 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
26371
26372         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
26373
26374 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26375
26376         * ThemeWin32Classic.cs:
26377           - GroupBox: Inserted a little gap between the text and the lines
26378             on the right side
26379           - Made the code in CPDrawBorder3D more readable
26380           - Corrected the drawing location of the up and down arrows in 
26381             CPDrawScrollButton
26382
26383 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26384
26385         * ControlPaint.cs: Corrected line widths in DrawBorder for
26386           ButtonBorderStyle Inset and Outset
26387
26388 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26389
26390         * ThemeWin32Classic.cs:
26391           - Rewrote the totally broken CPDrawBorder3D method. That was
26392             one of the main problems for the terrific ThemeWin32Classic
26393             look
26394           - Updated and corrected Button drawing
26395           - Correct the dimensions of the SizeGrip to match ms ones
26396           - Removed a small drawing glitch in DrawComboBoxEditDecorations
26397         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
26398           Border3DStyle.Sunken to match ms.
26399
26400 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26401
26402         * ThemeWin32Classic.cs: First small part of the "de-uglify
26403           ThemeWin32Classic" effort, SizeGrip
26404
26405 2006-03-24  Jackson Harper  <jackson@ximian.com>
26406
26407         * XplatUIX11.cs: Give a max idle time of one second, this matches
26408         MS and forces an Idle event every second when there are no other
26409         events in the queue.
26410
26411 2006-03-24  Mike Kestner  <mkestner@novell.com>
26412
26413         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
26414         * ListView.Item.cs: fix layout issues with null image lists and images
26415         smaller than checkbox size.
26416         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
26417         mode like MS does.  It's weird, but consistent.  ;-)
26418         Fixes #77890.
26419
26420 2006-03-24  Mike Kestner  <mkestner@novell.com>
26421
26422         * ListView.cs: Scroll wheel support for the item control.  Fixes
26423         #77839.
26424
26425 2006-03-23  Jackson Harper  <jackson@ximian.com>
26426
26427         * ScrollableControl.cs: Special case negative sized areas, not
26428         zero.
26429         * MonthCalendar.cs: Save the rect of the clicked date so we can
26430         use it for invalidation.
26431         - Try to cut down on the number of invalidates
26432         - Invalidate the rect the mouse is over and was over when moving
26433         the mouse, so we get the focus box following the cursor.
26434
26435 2006-03-23  Mike Kestner  <mkestner@novell.com>
26436
26437         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
26438         focus rectangle drawing. Fixes #77835.
26439
26440 2006-03-23  Mike Kestner  <mkestner@novell.com>
26441
26442         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
26443         the if and else if and reverting back to the original == check on the
26444         None conditional.
26445
26446 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
26447
26448         * FontDialog.cs: Update the example panel if the selected index of
26449           the fontListBox changes.
26450
26451 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
26452
26453         * FileDialog.cs: Make FileDialog remember which directory it was in
26454           last in the same execution.
26455
26456 2006-03-22  Mike Kestner  <mkestner@novell.com>
26457
26458         * FileDialog.cs: make the DropDownMenu on the toolbar display
26459         RadioChecks since they are mutually exclusive and that's what MS does.
26460
26461 2006-03-22  Mike Kestner  <mkestner@novell.com>
26462
26463         * Theme.cs: add Color param to CPDrawMenuGlyph.
26464         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
26465         checks and radio marks and arrows are visible on highlighted items.
26466         * ControlPaint.cs: update to use new Theme signature.
26467
26468 2006-03-22  Mike Kestner  <mkestner@novell.com>
26469
26470         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
26471         is active. Fixes #77870.
26472
26473 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
26474
26475         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
26476           to be focused/selected after startup
26477
26478 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
26479
26480         * ColorDialog.cs: 
26481           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
26482             CustomColors and ShowHelp properties
26483           - Some internal rewrites to get better results when using the
26484             ColorMatrix
26485
26486 2006-03-22  Mike Kestner  <mkestner@novell.com>
26487
26488         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
26489         HoverSelection.  Fixes #77836.
26490
26491 2006-03-22  Mike Kestner  <mkestner@novell.com>
26492
26493         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
26494         ToggleButtons.  (De)Sensitize the Back button around a stack count of
26495         1, not 0.  Update ButtonSize based on a pixel count of the win32
26496         control.  Adjust the toolbar size/location for new button size.
26497
26498 2006-03-22  Jackson Harper  <jackson@ximian.com>
26499
26500         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
26501         true.
26502         * ScrollBar.cs: When doing increments and decrements we need to
26503         set the Value property so that ValueChanged gets raised. A
26504         possible optimization here would be to make an internal SetValue
26505         that doesn't invalidate immediately.
26506         * ToolTip.cs: Tooltips get added to their container (when
26507         supplied) so they get disposed when the container is disposed.
26508         - Don't create tooltips for String.Empty. This prevents all these
26509         little 2-3 pixel windows from showing up when running nunit-gui
26510         and driving me mad.
26511         * Form.cs: Don't set topmost when setting the owner if the handles
26512         haven't been created yet.  The topmost set will happen when the
26513         handles are created.
26514
26515 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
26516
26517         * XplatUIX11.cs:
26518           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
26519           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
26520             visible (to allow them to recalculate their sizes)
26521
26522 2006-03-21  Mike Kestner  <mkestner@novell.com>
26523
26524         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
26525         methods. Removed a ton of redundant code.  Still not really happy with
26526         the border rendering, but I think that's mainly because of the
26527         ControlDarkDark being black instead of a dark grey. Depending on how 
26528         close we want to be, we might want to revisit those color choices.
26529         Among the new features added during the refactor were DropDownArrow
26530         pressed rendering, Disabled image rendering.  Proper flat appearance
26531         boundary rendering.  Removed the Divider and Wrapping dividers since I
26532         can't figure out any combination of themes and conditions to make the
26533         MS control draw a horizontal line on a toolbar despite what the
26534         Divider property docs indicate.
26535         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
26536         conditions and incorrect layout.  Updated to coding standard.
26537         * ToolBarButton.cs: refactored layout and positioning code from
26538         ToolBar to here.  Invalidate wherever possible instead of forcing
26539         redraws of the whole toolbar. 
26540         (Known remaining issues: explicit ButtonSize smaller than provided
26541         images.)
26542
26543 2006-03-21  Mike Kestner  <mkestner@novell.com>
26544
26545         * ContextMenu.cs (Show): use the position parameter instead of just
26546         showing at the MousePosition.
26547
26548 2006-03-21  Jackson Harper  <jackson@ximian.com>
26549
26550         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
26551         control handle this.
26552         * TreeNodeCollection.cs: If we are clearing the root node we need
26553         to reset top_node so calcs can still happen.
26554         * ThemeWin32Classic.cs: This is a Flags so we need to check
26555         properly.
26556         
26557 2006-03-21  Jackson Harper  <jackson@ximian.com>
26558
26559         * DataGrid.cs: Create columns when the binding context has been
26560         changed.
26561         * X11Structs.cs: Keysyms are uints.
26562         - Add size to fix build.
26563
26564 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
26565
26566         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
26567           XplatUIOSX.cs: 
26568           - Added ResetMouseHover method to allow controls to retrigger
26569             hovering if they need it more than once
26570           - Implemented MouseHoverTime and MouseHoverSize properties
26571         * Timer.cs: Start() must reset the interval
26572         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
26573           properties
26574
26575 2006-03-21  Jackson Harper  <jackson@ximian.com>
26576
26577         * X11Keyboard.cs: improved layout detection. Move the nonchar
26578         tables into this file.
26579         * KeyboardLayouts.cs: Move the tables into resource files.
26580
26581 2006-03-21  Mike Kestner  <mkestner@novell.com>
26582
26583         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
26584
26585 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
26586
26587         * Mime.cs: Various speed optimizations. Looking up mime types
26588           is now 2 times faster than before
26589
26590 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
26591
26592         * CreateParams.cs: Added internal menu field
26593         * Control.cs: 
26594           - Switched call order for UpdateBounds; now we always call
26595             the one that also takes ClientSize, and we're calculating the 
26596             client size via driver method in the others. The previous
26597             method of tracking client size by difference wasn't working
26598             for forms where even the starting client size wouldn't match
26599             the overall form size (due to borders) (Part of fix for #77729)
26600           - CreateParams(): Do not use parent.Handle unless the handle is
26601             already created. Causes havoc with Nexxia and throws off our
26602             creation of controls
26603         * XplatUIX11.cs:
26604           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
26605           - Switched handling of ConfigureNotify over to new PerformNCCalc 
26606             method (consolidates code)
26607           - Changed RequestNCRecalc to use new PerformNCCalc method
26608           - Added calls to RequestNCRecalc when menus and borders are changed
26609             to allow app to set NC size. (Part of fix for #77729) This matches
26610             when MS send a WM_NCRECALC on Win32 windows.
26611           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
26612             (Part of fix for #77729). This matches what MS does, they also
26613             send that message when the form is made visible.
26614           - XException.GetMessage: Improved usability of X errors by including
26615             a translation of the window into Hwnd and Control class
26616           - Improved debug info for window creation, reparenting and destruction
26617           - Created helper method WindowIsMapped() [Currently not used]
26618         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
26619         * Form.cs:
26620           - CreateParams: Now setting our menu on the new internal menu field
26621           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
26622             avoid calculating the same property twice
26623         * Hwnd.cs:
26624           - Improved usability of ToString() for debugging purposes
26625           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
26626             determine the height of the menu, instead of just the font. This
26627             required to also create a graphics context and to keep a bmp 
26628             around (for performance reasons)
26629
26630 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
26631
26632         * MenuAPI.cs: Added OnMouseUp method
26633         * Form.cs:
26634           - Now remembering the requested client size, avoids size errors
26635           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
26636             instead of base if the menu is active. This is required due to
26637             control now capturing and releasing on down/up and it would
26638             prematurely release our menu capture
26639
26640 2006-03-17  Jackson Harper  <jackson@ximian.com>
26641
26642         * KeyboardLayouts.cs: Add the czech layouts.
26643
26644 2006-03-16  Jackson Harper  <jackson@ximian.com>
26645
26646         * Control.cs: Use the viewport space when sizing not the controls
26647         client size, so things like ScrollableControl that effect the
26648         viewport size (when scrollbars are added) are computed correctly.
26649         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
26650         of ManagerEntrys.
26651         - Handle creating BindingManagers for null data sources.
26652         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
26653         source, otherwise when rows are added they are added to the 'fake'
26654         datasource and we will crash when trying to set the position in
26655         those rows.
26656         - Use Implicit scrollbars on the datagrid so they arent
26657         selectable.
26658         
26659 2006-03-16  Jackson Harper  <jackson@ximian.com>
26660
26661         * Binding.cs:
26662         * InternalWindowManager.cs:
26663         * MdiWindowManager.cs:
26664         * X11Keyboard.cs: I really want Mike to love me again (fix
26665         compiler warnings).
26666
26667 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
26668
26669         * DataGrid.cs:
26670           - OnMouseDown: Switch to editing mode when clicking on the cell
26671                          even if we're clicking on the cell that's currently 
26672                          selected
26673           - ProcessGridKey: Left/Right now wrap like MS.Net does
26674           - ProcessGridKey: Tab now knows to add a new row when tab is
26675                             pressed in the cell of the last column of the 
26676                             last row
26677           - ProcessGridKey: Enter now adds another row  if pressed in the last
26678                             row and selectes the new row, same column cell
26679           - ProcessGridKey: Home/End navigate columns, not rows, like 
26680                             originally implemented
26681           - Broke ProcessKeyPreview code out into an extra Internal method
26682             so it can be called from the edit code
26683         * DataGridTextBox.cs (ProcessKeyMessage):
26684           - Switched to accept Tab keypresses
26685           - Added F2 handling to allow jumping to the end of the edited cell
26686           - Added logic to allow moving caret left/right inside edited cell
26687             and making the edited cell jump when the caret hits cell borders
26688           - Tab and Enter are now passed to the datagrid after being handled
26689         * TextBoxBase.cs:
26690           - Removed capture code now that Control handles it
26691           - set_SelectionStart now ensures caret is visible
26692
26693 2006-03-16  Jackson Harper  <jackson@ximian.com>
26694
26695         * TrackBar.cs: Debackwards the increment/decrement for handling
26696         mouse clicks on the bar with vertical trackbars.
26697         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
26698         bottom to match MS.
26699
26700 2006-03-16  Mike Kestner  <mkestner@novell.com>
26701
26702         * ListView.cs: make shift/ctrl keyboard and mouse selection 
26703         consistent with the MS control. Fix a bug in
26704         SelectedListViewItemCollection.Clear that was pissing me off for the
26705         better part of a day because the collection was being altered
26706         underneath us as we walked the list.
26707
26708 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
26709
26710         * Control.cs: Not sure how we could miss this so long, but it seems
26711           that MS.Net has Capture set all the way from before calling 
26712           OnMouseDown through sending the mouse events until after
26713           OnMouseUp. This will fix DataGrid's selection being set to end
26714           at the location of the MouseUp.
26715
26716 2006-03-15  Jackson Harper  <jackson@ximian.com>
26717
26718         * BindingContext.cs: Check the binding after its added so that it
26719           can initialize the binding managers and hookup to events.
26720         * Binding.cs: Data members seem to sometimes include rows/cols in
26721           the format Row.Column we now take this into account.
26722           - Hookup to the position changed event so we can update the
26723           control when the position has changed in the data set.
26724         * CurrencyManager.cs: Take into account the row/col naming
26725           convention when creating dataset tables.
26726         * BindingContext.cs: Using a newer better way of storing
26727           datasource/datamember pairs.  Hopefully this better matches MS for
26728           looking up binding managers.
26729
26730
26731 2006-03-15  Jackson Harper  <jackson@ximian.com>
26732
26733         * BindingContext.cs: The currency manager needs the data member
26734         name, if the member is a data set we use the name to find the
26735         correct table.
26736         * CurrencyManager.cs: When creating the list prefer an IList over
26737         an IListSource.
26738         - Attempt to create a DataTable from a DataSet (TODO: might need
26739         some better error checking here, although MS doesn't seem to have much)
26740         - If we have a DataTable create a view and use it as our list.
26741
26742 2006-03-15  Mike Kestner  <mkestner@novell.com>
26743
26744         * ListView.cs: keep a matrix of the icon mode layout to facilitate
26745         keyboard navigation. Support Up/Down/Left/Right selection correctly
26746         for all 4 View modes.
26747         * ListViewItem.cs: add internal row/col fields for icon layouts.
26748
26749 2006-03-15  Jackson Harper  <jackson@ximian.com>
26750
26751         * TabControl.cs: Redraw the tabs when we resize so their newly
26752         calculated sizes are drawn on screen.
26753         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
26754         composite characters.
26755         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
26756         - filter events so that composite characters can be created
26757         patches by peter
26758         * X11Structs.cs: Add XIMProperties enum.
26759
26760 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
26761
26762         * Control.cs (BringToFront, SendToBack): Don't use window or handle
26763           unless it's created
26764
26765 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
26766
26767         * Control.cs (PerformLayout): We don't need to consider visiblity
26768           for anchoring, only for docking. This fixes 'whacky' alignment
26769           in listbox and other controls that use implicit scrollbars after
26770           the previous PerformLayout patch
26771         * ListBox.cs: Switched to use implicit scrollbars
26772           
26773 2006-03-14  Mike Kestner  <mkestner@novell.com>
26774
26775         * ToolBar.cs: 
26776         * VScrollBar.cs:
26777         - chain up the "new event" overrides to base and use
26778         OnEvent to raise them.  Part of fix for bug #76509.
26779
26780 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
26781
26782         * FileDialog.cs: Do not select an item in the parent directory
26783           on backspace
26784
26785 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
26786
26787         * Control.cs (PerformLayout): It would seem that we considered
26788           invisible windows for our layout. Not quite the right thing
26789           to do. Now we don't any longer, thereby fixing bug #76889.
26790
26791 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
26792
26793         * Control.cs (CanFocus): I goofed. A control can have focus 
26794           even though it's not selectable. Made it match MS docs.
26795
26796 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
26797
26798         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
26799           center by default (fixes #76895)
26800         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
26801           all uses of Border3DSides.All with the explicit ORd together
26802           Left|Right|Top|Bottom because I assume that nobody was aware 
26803           that All also implies a center fill. Most places I checked had
26804           a fill right above.
26805         * ProgressBarStyle.cs: Added
26806
26807 2006-03-13  Mike Kestner  <mkestner@novell.com>
26808
26809         * ListView.cs: fix breakage in drag shadow header positioning 
26810         from Peter's csc compilation fix.
26811
26812 2006-03-13  Mike Kestner  <mkestner@novell.com>
26813
26814         * ListView.cs: fix NRE produced by backspacing twice in a focused
26815         FileDialog.
26816
26817 2006-03-13  Mike Kestner  <mkestner@novell.com>
26818
26819         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
26820
26821 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
26822
26823         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
26824           be changed
26825         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
26826           the allowed size before making programmatic size changes
26827
26828 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
26829
26830         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
26831           set, metacity is broken and will still use the emty sizes in 
26832           the struct. (Fix for #77089)
26833
26834 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
26835
26836         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
26837           WindowExStyles and marked both enums as Flags
26838         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
26839           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
26840           to match WindowStyles split
26841         * XplatUIX11.cs:
26842           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
26843           - Updated to match WindowStyles split
26844         * XplatUIWin32.cs:
26845           - Fixed FosterParent creation, was using ExStyle on the Style field
26846             (This should help with Popup focus issues)
26847           - Updated to match WindowStyles split
26848
26849 2006-03-13  Jackson Harper  <jackson@ximian.com>
26850
26851         * MdiWindowManager.cs: Use the system menu height. Fixes some
26852         strange sizing issues.
26853
26854 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
26855
26856         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
26857         * TextBoxBase.cs:
26858           - Scroll to caret after inserting text (#77672)
26859           - Make scroll range one pixel higher, fixes off-by-one error (and
26860             makes underlines visible on the last line)
26861
26862 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
26863
26864         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
26865           the keyboard state from being stuck with keys in 'pressed' state when
26866           focus is switched away via keyboard
26867         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
26868           reset the keyboard if no X11 KeyUp events are expected to come
26869         * X11Structs.cs: Switched type of Visible to bool to match driver
26870
26871 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
26872
26873         * TextControl.cs:
26874           - Switched caret to be just 1 pixel wide, matches MS and looks less
26875             clunky
26876           - Moved caret display 1 pixel down from the top of the control
26877             to improve view
26878           - InsertCharAtCharet: Update the selection start if moving the caret
26879             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
26880           - No longer always creating the caret when the caret methods are
26881             called. Only the actual ShowCaret/HideCaret will do that now
26882           - Only setting caret visible if the owner control has focus
26883           - UpdateView: Added invalidation-shortcut logic for center and right 
26884             aligned text. Previously we'd update all according to the left
26885             logic which caused drawing errors. Also fixed height of invalidated
26886             areas, now properly invalidating the whole area (was off-by-one)
26887           - owner_HandleCreated: Always generate the document when the
26888             handle is created; this ensures that 
26889         * TextBoxBase.cs:
26890           - Fixed situation where caret would disappear under the right
26891             window border, also improved scrolling behaviour on left-
26892             aligned textboxes
26893           - Fixed right-aligned textboxes to have a border to the
26894             right instead of the caret being under the right border
26895         * XplatUIX11.cs:
26896           - Switched from 'nested' to simple visible/not visible tracking 
26897             for caret (part of fix for #77671)
26898           - No longer passing through translated FocusIn/FocusOut messages
26899             since we were notifying too often and the wrong windows. Instead
26900             we just notify our focussed window of receiving or loosing focus
26901         * XplatUIWin32.cs: Switched from 'nested' show/hide 
26902           counting for caret to simple visible yes/no behaviour (part of 
26903           fix for #77671)
26904
26905 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
26906
26907         * Mime.cs: Remove debug code...
26908
26909 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
26910
26911         * MimeGenerated.cs: Removed
26912         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
26913           and subclasses) from /usr/(local/)share/mime and
26914           $HOME/.local/share/mime.
26915
26916 2006-03-10  Jackson Harper  <jackson@ximian.com>
26917
26918         * MdiWindowManager.cs: Recalc the NC area when a window is
26919         maximized/restored so that the menu area is drawn on forms that
26920         don't have a menu.
26921
26922 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26923
26924         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
26925           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
26926           us to force a WM_NCCALCRESIZE message being sent. This is needed
26927           for MDI maximizing.
26928
26929 2006-03-10  Jackson Harper  <jackson@ximian.com>
26930
26931         * Form.cs: We need to use the ActiveMenu when calculating menu
26932         height.
26933         - Fix nullref when the window manager hasn't been created yet.
26934         * Control.cs: Fix nullref when we try to bring a control to the
26935         front that has no parent.
26936         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
26937         height.
26938         - Add a dummy item to the maximized menu so it always has the
26939         correct height. Otherwise when there are no menus we don't get our
26940         icon and buttons.
26941         
26942
26943 2006-03-10  Jackson Harper  <jackson@ximian.com>
26944
26945         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
26946         stuff.
26947         * Form.cs: Make the window_state internal so the window managers
26948         can track it.
26949         - When an MDI child is maximized let its window manager create the
26950         main menu (so it can add its icon).
26951         - Notify the window managers of state changes
26952         - Let the window manager paint its buttons and handle button
26953         clicks on the menu when it is maximized.
26954         * InternalWindowManager.cs: Move the prev_bounds into the mdi
26955         window manager, since tool windows don't use it, only mdi windows.
26956         - Tell the main form that we don't want it to handle NCPAINT
26957         itself to avoid extra painting.
26958         - Handle clicks on a maximized windows menu.
26959         - Handle window state changes
26960         - Handle minimize/maximize clicks correctly by setting the window state.
26961         * MdiWindowManager.cs: Add an icon menu that (the menu you get
26962         when clicking on the forms icon).
26963         - New method to create a forms maximized menu. This is its normal
26964         menu + an icon.
26965         - Handle window state changes.
26966         - Handle sizing of maximized windows.  Maximized windows are just
26967         drawn bigger then the parent visible area. All controls are still
26968         there, they are just outside the visible area (this matches windows).
26969         * MdiClient.cs: No scrollbars when a child window is maximized.
26970         - Let the children windows figure out how big they should be when
26971         sizing maximized windows.
26972         - Implement a version of ArrangeIconicWindows somewhat similar to
26973         Windows version.  There are some little differences, but I don't
26974         think any app will rely on the layout of minimized mdi windows.
26975
26976 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26977
26978         * Padding.cs: Several fixes to allow compiling with csc 2.0
26979
26980 2006-03-09  Jackson Harper  <jackson@ximian.com>
26981
26982         * Menu.cs:
26983         * MenuItem.cs: Cheap hack so we can add items to the list without
26984         the events being raised.  This allows adding mdi items during
26985         drawing. TODO: Should probably find a better time to add the items.
26986
26987 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26988
26989         * ThemeWin32Classic.cs:
26990           - CheckBox_DrawText: Added logic to not wrap if not enough space
26991             is available (Fix for bug #77727)
26992           - RadioButton_DrawText: Added logic not to wrap if not enough
26993             space is available (Fix for bug #77727). Also removed some
26994             duplicate code, DrawString always drawing the regular text
26995             before hitting the if statement.
26996
26997 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
26998
26999         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
27000
27001 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27002
27003         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
27004         * ContainerControl.cs: Partial implementation of some 2.0 scaling
27005           methods. Moved the new 2.0 properties into alphabetical order with
27006           other properties and added MonoTODO tags
27007
27008 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27009
27010         * AutoScaleMode.cs: Added. Fix build.
27011
27012 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27013
27014         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
27015           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
27016           and was requiring premature handle creation for calls from above
27017         * Form.cs, Control.cs: Removed handle arguments from calls to
27018           CalculateClientRect()
27019
27020 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27021
27022         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
27023           drag_column.column_rect is MarshalByRef and can't be used that way
27024
27025 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27026
27027         * AxHost.cs: Added deserialization constructor for 
27028           AxHost+State (fixes 77743)
27029
27030 2006-03-09  Mike Kestner  <mkestner@novell.com>
27031
27032         * ListView.cs: 
27033         - Added column drag reordering for details view.
27034         - fixed behavior when mouse is dragged off column and
27035         AllowColumnReorder is false.
27036         * ColumnHeader.cs: clone the format too in Clone.
27037         * Theme.cs: add DrawListViewHeaderDragDetails method.
27038         * ThemeWin32Classic.cs:
27039         - impl new method for drawing drag column shadows and targets.
27040         - support column offset for details mode in DrawListViewItem.
27041
27042 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27043
27044         * TextControl.cs: Reset the char_count when the document is cleared
27045           (Fixes bug reported on mono-winforms mailing list)
27046
27047 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27048
27049         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
27050           of calling base we simply process the key ourselves, since both
27051           DefWindowProc and the handled method would set m.Result. 
27052           (Fixes #77732)
27053
27054 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27055
27056         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
27057           method also moves the window; instead implemented a copy of
27058           Control.ScaleCore (Part of fix for #77456)
27059         * TextBoxBase.cs: 
27060           - Created new CreateGraphicsInternal method to allow providing
27061             a graphics context when no handle is created without triggering
27062             handle creation. (Part of fix for #77456)
27063           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27064         * TextControl.cs: 
27065           - Switched Constructor to require TextBoxBase instead of Control (to
27066             allow uncast access to CreateGraphicsInternal)
27067           - Safeguarded use of owner.Handle property. No longer accessing it
27068             unless the handle is already created.
27069           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27070           - Now triggering a recalc when owning control becomes visible
27071         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
27072           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
27073           premature handle creation (Part of fix for #77456)
27074         * Control.cs:
27075           - We now only destroy our double-buffering buffers when the
27076             control is resized or disposed, but not when visibility
27077             changes. (The code even re-created them twice every time)
27078           - Now requiring a redraw of the buffer on visibility changes
27079             (fixes bug 77654 part 2)
27080           - Not passing OnParentVisibleChanged up unless the control
27081             is visible
27082           - CanFocus: Fixed to match MS documentation
27083           - Focus: Fixed to return actual focus state and to check if
27084             setting focus is legal before setting it
27085
27086 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
27087
27088         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
27089           when to draw focus rectangle by looking at parent focus and
27090           selected state instead. This fixes TabPages on Linux sometimes
27091           having none or multiple focus rectangles.
27092         * XplatUIX11.cs (SetFocus): 
27093           - Don't set the focus if the same window already has focus
27094           - Use SendMessage instead of PostMessage (like it's Win32
27095             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
27096             to match MS behaviour
27097         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
27098           are not selectable.
27099
27100 2006-03-07  Jackson Harper  <jackson@ximian.com>
27101
27102         * PictureBox.cs: Revert line I accidently committed last week.
27103
27104 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
27105
27106         * Control.cs: 
27107           - Added new IsRecreating and ParentIsRecreating properties to
27108             allow testing if RecreateHandle has been called on ourselves
27109             or one of our parents
27110           - WndProc(WM_DESTROY): If our control handle is being recreated
27111             we immediately need to create the handle when receiving the
27112             destroy, that way our child windows find a valid parent handle
27113             when they themselves are being recreated upon WM_DESTROY receipt
27114             (fix for bug #77654 part 1)
27115         * XplatUIX11.cs:
27116           - DestroyWindow: WM_DESTROY must be sent to our own window before
27117             notifying any child windows. MS documents that child windows
27118             are still valid when WM_DESTROY is received. (Control now relies on
27119             this behaviour)
27120           - Added some fine-grain debug options
27121
27122 2006-03-06  Jackson Harper  <jackson@ximian.com>
27123
27124         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
27125         box and base calculations off this.
27126         * MdiChildContext.cs:
27127         * MdiWindowManager.cs: Don't need to ensure scrollbars here
27128         anymore.
27129         
27130 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
27131
27132         * Splitter.cs: In situations where the affected control is added
27133           to the parent's control list after the splitter, we would not
27134           populate affected. Now we try populating it on mousedown, if
27135           it's not already set, and force it to be re-set whenever our
27136           parent changes.
27137
27138 2006-03-03  Matt Hargett  <matt@use.net>
27139
27140         * Control.cs: implement Control.Padding
27141         * Padding.cs: -Padding.All returns -1 when constructing with the
27142         implicit default ctor
27143         -Padding.ToString() matches MS.NET
27144         * ContainerControl.cs: implement
27145         ContainerControl.AutoScaleDimensions
27146         * ListControl.cs: implement ListControl.FormattingEnabled
27147         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
27148         * ButtonBase.cs:
27149         * TabPage.cs: Implement UseVisualStyleBackColor.
27150         * PictureBox.cs: Implement PictureBox.InitialImage.
27151
27152 2006-03-03  Mike Kestner  <mkestner@novell.com>
27153
27154         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
27155         event declarations to proxy to base event.
27156         * ListViewItem.cs: update to use ItemControl.
27157         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
27158         * ThemeWin32Classic.cs: update to new ListView theme API and fix
27159         column header label rendering for 0 width columns.
27160
27161 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
27162
27163         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
27164           that causes the control to be created. Fixes #77476.
27165
27166 2006-03-02  Jackson Harper  <jackson@ximian.com>
27167
27168         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
27169         expose_pending.
27170
27171 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
27172
27173         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
27174           passed in for the EventArgs (fixes #77690)
27175
27176 2006-03-01  Jackson Harper  <jackson@ximian.com>
27177
27178         * ScrollBar.cs: Refresh afterbeing resized.
27179
27180 2006-02-28  Mike Kestner  <mkestner@novell.com>
27181
27182         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
27183         Clean up a tracker compile warning.
27184         * MenuItem.cs: add internal PerformPopup method.
27185         [Fixes #77457]
27186
27187 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
27188
27189         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
27190           implicit expose) when the text is set to null
27191
27192 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
27193
27194         * RichTextBox.cs (FlushText): When newline is true, we always
27195           need to split the line, even if no text is on it and we may
27196           never eat newlines. (Fixes #77669)
27197
27198 2006-02-28  Mike Kestner  <mkestner@novell.com>
27199
27200         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
27201         and set Selected instead.
27202         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
27203         collections.
27204
27205 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
27206
27207         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
27208
27209 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
27210
27211         * FontDialog.cs:
27212           - Got rid of the panel. All controls are now directly added to
27213             the dialog form
27214           - It is now possible to set a font with the Font property
27215           - MinSize and MaxSize property do now what they should
27216           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
27217           - Searching and selecting a font with the font textbox works now,
27218             the same applies to the style and size textbox
27219           - Draw the correct 3D border in the example panel
27220           - Fixed a little mem leak (unused fonts didn't get disposed)
27221           - Many other internal updates/rewrites...
27222           - Fix typo
27223
27224 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
27225
27226         * TextControl.cs: 
27227           - InsertRTFFromStream: Added 'number of characters inserted' argument
27228           - set_SelectedRTF: Now using the number of characters to calculate
27229             the new location for the selection and cursor (x/y cannot be used
27230             due to potentially already wrapped text)
27231
27232 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
27233
27234         * TextControl.cs: Added property and implemented means to allow 
27235           disabling recalculation of a document (can be used to speed up
27236           multiple inserts and is needed to make RTF inserts predictable, see
27237           bug #77659)
27238         * RichTextBox.cs: Using the new NoRecalc property of Document to
27239           keep x/y insert locations predictable. Also makes it faster inserting
27240           large chunks of RTF
27241
27242 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
27243
27244         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
27245           it's easier for a child control to handle the other messages without
27246           having to duplicate the special functionality
27247         * TextBoxBase.cs
27248           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
27249             code to handle processing the key ourselves, in order to get 
27250             access to the result of KeyEventArgs.Handled. We now only call 
27251             ProcessKey if they key hasn't been handled already. Fixes #77526.
27252           - set_Text: If null or empty string is given, just clear the 
27253             document. Fixes part of #77526
27254
27255 2006-02-27  Jackson Harper  <jackson@ximian.com>
27256
27257         * SizeGrip.cs: Paint the background color before painting the grip
27258         so things look right.
27259         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
27260
27261 2006-02-27  Mike Kestner  <mkestner@novell.com>
27262
27263         * ListView.cs:
27264           - Restructure layout and invalidation model to remove a ton of
27265           flicker from the control and speed up performance in general.
27266           - Add manual column resize, flickers like crazy, but I already have
27267           some ideas on how I'll fix that. (#76822)
27268           - Merge the three Icon-based views into a single layout method.
27269           - Move item selection interaction logic from the item since 
27270           interaction with the collections is more appropriate to the view.
27271           - Deselection on non-item clicks.
27272         * ListViewItem.cs:
27273           - Encapsulate most of the layout. Add some internal props to trigger
27274           layout.  Move to a model where Items invalidate themselves instead
27275           of just invalidating the whole control every time something changes.
27276           - Invalidate on Text/Caption changes.
27277           - switch to an offset based layout model to avoid having to absolute
27278           position every element on item moves.
27279           - correct checkbox layout to conform to MS layout.
27280         * ThemeWin32Classic.cs:
27281           - refactor some column header drawing code.
27282           - fix string justification for column headers (#76821)
27283           - make SmallIcon labels top justified for compat with MS impl.
27284         * ThemeClearlooks.cs:
27285           - adjust to new ListViewItem internal checkbox bounds api.
27286
27287 2006-02-27  Jackson Harper  <jackson@ximian.com>
27288
27289         * Control.cs:  Change where implicit controls fall in the zorder.
27290         They are now on top of all children.
27291         - Synced AddImplicit code with Add
27292         - Removed unused enumerator.
27293         * SizeGrip.cs: Remove the TODO as its been TODONE.
27294
27295 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
27296
27297         * TextControl.cs(Insert): Combine the last lines unless the insertion
27298           string ends with \n\n, otherwise we leave one line too many (Fixes
27299           something I noticed with the testapp for #77526; the bug itself was
27300           already fixed in the previous checkin)
27301
27302 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
27303
27304         * RichTextBox.cs:
27305           - SelectionColor and SelectionFont methods no longer set absolute
27306             styles. Instead, the keep font or color respectively (This 
27307             resolves a long-standing FIXME in the code)
27308           - When flushing RTF text, the insert code now considers text trailing
27309             behind the insertion point (Fixes the bug where when replacing
27310             the selected text via SelectedRTF the remainder of the line behind 
27311             the selection would stay on the first insertion line)
27312         * TextBoxBase.cs:
27313           - AppendText now updates the selection points after inserting text
27314           - AppendText now ensures that the last tag (sometimes 0-length) of
27315             the document is used for the style information (Fixes part of 
27316             bug #77220)
27317         * TextControl.cs:
27318           - Created new FontDefiniton class to allow describing partial style
27319             changes
27320           - StreamLine() now takes a lines argument, to allow it to decide
27321             whether an encountered zero-length tag is the last in the document
27322             (which must be kept to not loose the font/color contained in it,
27323             for later appends)
27324           - Created Combine() and Split() methods for Marker structs, to 
27325             support marker updates due to reformatted documents (soft line
27326             wraps)
27327           - Implemented Document.CaretTag setter
27328           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
27329             of the last line (Not the cause, but also exposed by bug #77220)
27330           - Added LineTag argument to InsertString method, to allow callers
27331             to force a certain tag to be used (required to force use of the
27332             trailing zero-length tag of a document)
27333           - Now updating markers in Combine(), to avoid stale tag markers
27334           - Added some method descriptions to aid maintenance
27335           - Implemented new FormatText concept, allowing additive/subtractive
27336             formatting by only specifying the components that are to be 
27337             changed. This was needed for resolving the RTB.SelectedColor/
27338             RTB.SelectedFont fixmes
27339           - Added Break() support method to allow breaking up linetags (used
27340             for partial formatting)
27341           - Added GenerateTextFormat() method. It is used for partial 
27342             formatting and allows to generate a full font/color from given
27343             attributes and an existing tag.
27344
27345 2006-02-26  Jackson Harper  <jackson@ximian.com>
27346
27347         * XplatUIX11.cs:  Use the correct caption height.
27348         - Translate hittest coordinates to screen coords to match MS.
27349         * XplatUIWin32.cs: When we create MDI windows we need to reset
27350         some of the style flags, so we get a nice blank window, and can
27351         draw all the decorations ourselves.
27352         - Set a clipping rectangle on the non client paint event, the
27353         window manager drawing code needs one.
27354         * Form.cs: The window manager needs to know when the window state
27355         has been updated.
27356         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
27357         don't need to factor in border and title sizes in these
27358         methods. TODO: Remove the args and fix the call points.
27359         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
27360         properly.
27361         - Let the driver set the cursors.
27362         - Improve active window handling
27363         - Correct sizes for title bars and buttons.
27364         - Match MS drawing better
27365         * MdiWindowManager.cs: We don't need to handle border style
27366         updates specially anymore.
27367         - Check for scrollbars when windows are done moving
27368         - Handle Active properly.
27369         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
27370         correctly. I am spewing the exception though, so we don't hide the
27371         bugs.
27372         
27373 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
27374
27375         * DataGridViewRowPostPaintEventArgs.cs,
27376           DataGridViewCellPaintingEventArgs.cs,
27377           DataGridViewRowCollection.cs,
27378           DataGridViewRowPrePaintEventArgs.cs,
27379           DataGridViewCell.cs: Clear a few warnings and implement a few
27380           exceptions that should be thrown.
27381
27382 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
27383
27384         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
27385           'inheriting' our parent's (non-default) cursor. (Part of
27386            the fix for #77479)
27387
27388 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
27389
27390         * XplatUIX11.cs: Fixed cast to make csc happy
27391
27392 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
27393
27394         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
27395           it's for the client area (part of fix for #77479 and needed
27396           for MDI window cursor handling)
27397         * XplatUIX11.cs
27398           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
27399             the appropriate default cursors and also passing the message
27400             up the parent chain 
27401           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
27402             for non-client areas
27403
27404 2006-02-15  Jackson Harper  <jackson@ximian.com>
27405
27406         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
27407         is a real MDI window
27408
27409 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
27410
27411         * X11DesktopColors.cs: Instead of checking the desktop session
27412           string for "KDE" check if it starts with "KDE"
27413
27414 2006-02-10  Jackson Harper  <jackson@ximian.com>
27415
27416         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
27417         systems).
27418
27419 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
27420
27421         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
27422           errors
27423         * ColorDialog.cs:
27424           - Got rid of the panel. All controls are now directly added to
27425             the dialog form
27426           - Changed to mono coding style
27427
27428 2006-02-10  Jackson Harper  <jackson@ximian.com>
27429
27430         * InternalWindowManager.cs: We don't need the set visibility to
27431         false hack anymore now that peter has written beautiful shutdown
27432         code.
27433
27434 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
27435
27436         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
27437           where already explicitly destroyed
27438
27439 2006-02-10  Jackson Harper  <jackson@ximian.com>
27440
27441         * MdiClient.cs: Handle the case where windows are too high or to
27442         the left and we need scrollbars.
27443
27444 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
27445
27446         * MimeIcon.cs: Added some icons
27447         * FileDialog.cs:
27448           - Fixed bug #77477
27449           - Got rid of the panel. All controls are now directly added to
27450             the dialog form
27451           - Changed to mono coding style
27452           - On Linux "My Computer" and "My Network" will now show some
27453             more usefull information. A new class, MasterMount, gathers
27454             this information from /proc/mount. Updated MWFFileView to make
27455             use of this information
27456           - Fixed a bug that caused FileDialog to crash when
27457             ".recently_used" file had a zero size
27458           - FilterIndex does now what it should
27459           - Some Refactoring
27460         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
27461             FileDialog changes
27462
27463 2006-02-09  Jackson Harper  <jackson@ximian.com>
27464
27465         * ComboBox.cs: Don't touch if null.
27466
27467 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
27468
27469         * Cursor.cs: 64bit safeness fix
27470         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
27471
27472 2006-02-09  Jackson Harper  <jackson@ximian.com>
27473
27474         * Form.cs: If a form is made into an MDI form update the styles so
27475         all the props can get set correctly.
27476         - Kill the mdi_container when we dont need it anymore.
27477         * InternalWindowManager.cs: Add missing NOT
27478
27479 2006-02-08  Jackson Harper  <jackson@ximian.com>
27480
27481         * InternalWindowManager.cs: Respek clipping when drawing MDi
27482         decorations.
27483
27484 2006-02-08  Jackson Harper  <jackson@ximian.com>
27485
27486         * Hwnd.cs: Add bits to track non client expose events.
27487         * XplatUIX11.cs: Track non client expose events on the hwnd. This
27488         gives us a proper invalid rect and will allow for some nice
27489         optimizations with NC client drawing
27490         - MDI windows are children windows, so move their style handling
27491         into the child window block.
27492         * InternalWindowManager.cs: Remove a state reset that was
27493         getting invoked at the wrong time. Fixes managed windows getting
27494         into a 'stuck' captured state.
27495
27496 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
27497
27498         * TextControl.cs (Document.ctor): Now initializing 
27499           selection_anchor. Fixes #77493
27500
27501 2006-02-07  Jackson Harper  <jackson@ximian.com>
27502
27503         * TrackBar.cs: The increment/decrements were backwards.
27504
27505 2006-02-07  Mike Kestner  <mkestner@novell.com>
27506
27507         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
27508         to the instance itself.
27509
27510 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
27511
27512         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
27513           on ulongs and pointers, the size differs between 32bit and 64bit
27514           systems. 
27515
27516 2006-02-07  Mike Kestner  <mkestner@novell.com>
27517
27518         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
27519         for 64 bit platforms to work around a metacity bug. 
27520
27521 2006-02-07  Jackson Harper  <jackson@ximian.com>
27522
27523         * TrackBar.cs: Process the input keys we need, and hookup to
27524         KeyDown instead of using WndProc, so we get key messages.
27525
27526 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
27527
27528         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
27529           machine we're on. 
27530         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
27531           we need to translate the XdndVersion atoms array before sending it
27532
27533 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
27534
27535         * XplatUIX11.cs: 
27536           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
27537             number of bits for the property, not the number of bytes. The
27538             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
27539             but would not crash since it specified 8 bits instead of 4 bits)
27540           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
27541             defined as XID -> long in the C headers)
27542           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
27543             references since those are now IntPtr to begin with
27544           - Switched all Atom.XXX 'int' casts to IntPtr casts
27545           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
27546           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
27547           - Added XChangeActivePointerGrab DllImport (for X11DnD)
27548         * X11Structs.cs:
27549           - Changed 'int' type for Atoms in XEvent structures to IntPtr
27550           - Changed atom in HoverStruct to be IntPtr
27551         * X11DnD.cs:
27552           - Removed local DllImports, switched code to use those from XplatUIX11
27553           - Removed/fixed casts related to the switch of Atom to be a IntPtr
27554
27555 2006-02-06  Mike Kestner  <mkestner@novell.com>
27556
27557         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
27558         method signatures in the import region.  There may still be some
27559         lingering struct marshaling issues, as I didn't drill down into those.
27560         Yet.
27561
27562 2006-02-06  Jackson Harper  <jackson@ximian.com>
27563
27564         * ComboBox.cs: Dont manually set the top_item, this is computed
27565         when the scrollbar position is set.
27566
27567 2006-02-06  Mike Kestner  <mkestner@novell.com>
27568
27569         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
27570         startup crashes on amd64.  There's other fixes needed.  All pinvoke
27571         usage of Atom needs to be mapped to IntPtr for example.  And there are
27572         likely other int/long issues to be addressed.
27573
27574 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
27575
27576         * FileDialog.cs: One more...
27577
27578 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
27579
27580         * FileDialog.cs: Next try
27581
27582 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
27583
27584         * FileDialog.cs: First part of fix for #77464
27585
27586 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
27587
27588         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
27589           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
27590           AcceptButton border drawing.
27591
27592 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
27593
27594         * Form.cs: Moved positioning of form after auto scaling is applied,
27595           otherwise it would possibly use wrong form size.
27596
27597 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
27598
27599         * Control.cs (RecreateHandle): No need to re-create any child
27600           controls, the child windows will get destroyed automatically by
27601           the windowing system or driver, and re-created when the handle
27602           is being accessed the first time. Fixes #77456
27603         * Form.cs: No longer setting the form to closing if the handle is 
27604           being recreated. This seems like the right thing to do, don't
27605           have a bug or testcase for this, though.
27606
27607 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
27608
27609         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
27610           controls to avoid unwanted side effects
27611
27612 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
27613
27614         * Control.cs: 
27615           - ScaleCore needs to scale the bounds, not the ClientSize of the 
27616             control. Fixes #77416.
27617           - DefaultSize is 0,0 for control
27618         * TextBoxBase.cs: 
27619           - DefaultSize is 100, 20
27620           - SetBoundsCore: Now enforcing the height, no matter if the provided
27621             height is more or less than the preferred one, as long as AutoSize
27622             is on
27623         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
27624
27625 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
27626
27627         * Control.cs:
27628           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
27629             call unless both performLayout is true *and* we have a pending
27630             layout change
27631           - ResumeLayout: MS does not completely nest Suspend and Resume,
27632             they bottom out at 0, fixed our code to match that.
27633           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
27634             SetBoundsCore, we were updating even when we shouldn't. This fixes
27635             swf-anchors mis-anchoring when resizing the app fast and lots.
27636           - UpdateDistances: Now only setting the left and top distance if 
27637             we have a parent and are not suspended, this is based on
27638             a suggestion by Don Edvaldson in bug #77355.
27639           - OnVisibleChanged: Fixed logic when to create the control. We may
27640             not create the control if we have no parent or if it's not visible;
27641             switched to using Visible property instead of is_visible field 
27642             since the property also considers parent states. This fixes a bug
27643             when starting Paint.Net
27644
27645 2006-02-02  Jackson Harper  <jackson@ximian.com>
27646
27647         * Form.cs: If the forms handle hasn't been created yet don't call
27648         into xplatui to make it top most, just set the topmost flag on the
27649         form in CreateParams
27650         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
27651
27652 2006-02-01  Jackson Harper  <jackson@ximian.com>
27653
27654         * ScrollableControl.cs: Refactored the Recalculate method a
27655         little, this wasn't handling all the variants of bottom and right
27656         bars needed to be added and added/removed based on their
27657         counterparts being added/removed (which changes the drawable
27658         size). Also we special case client widths and heights of 0 and
27659         don't add the scrollbar for those.
27660
27661 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
27662
27663         * XplatUIX11.cs: 
27664           - Added method to get AbsoluteGeometry(); currently unused, but might
27665             be used in the future, if we try again to figure out toplevel
27666             coordinates with some more crappy window managers
27667           - Added FrameExtents() method to retrieve the WM set decoration size
27668           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
27669             to deal with at least KDE, FVWM and metacity (Fixes #77092)
27670         * Hwnd.cs: 
27671           - Added whacky_wm tracking var for metacity
27672           - Added logic to have default menu height if the actual menu height
27673             has not yet been calculated (part of fix for #77426)
27674         * Form.cs: Keep track whether client size has been set and re-set 
27675           it if a menu is added/removed afterwards (Fixes #77426)
27676
27677 2006-01-31  Jackson Harper  <jackson@ximian.com>
27678
27679         * Control.cs: When a new Site is set on the component attempt to
27680         pull the AmbientProperties from it.
27681
27682 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
27683
27684         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
27685           in the background of the owning form. Fixes #77332
27686
27687 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
27688
27689         * MimeIcon.cs: Fix for #77409
27690
27691 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
27692
27693         * XplatUIX11GTK.cs: Initial import
27694
27695 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
27696
27697         * FixedSizeTextBox: fixes class signature
27698
27699 2006-01-30  Jackson Harper  <jackson@ximian.com>
27700
27701         * FixedSizeTextBox.cs: New internal class that represents a
27702         textBox that will not be scaled.
27703         * TreeView.cs:
27704         * ComboBox.cs:
27705         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
27706         standard TextBox.
27707                 
27708 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
27709
27710         * XplatUIX11.cs: Retrieve default screen number instead of
27711           assuming 0. Attempted fix for #77318
27712
27713 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
27714
27715         * XplatUIWin32.cs: 
27716           - GetWindowPos: When a window is parented by FosterParent, use 
27717             the desktop instead of FosterParent as the base to get coordinates
27718           - CreateWindow: Don't make FosterParent the parent window for Popups
27719             if we don't want a taskbar entry, Popups automatically don't get one
27720         * Hwnd.cs: Need to call remove to actually remove the key from the
27721           hash table
27722
27723 2006-01-30  Mike Kestner  <mkestner@novell.com>
27724
27725         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
27726
27727 2006-01-30  Jackson Harper  <jackson@ximian.com>
27728
27729         * TreeView.cs:
27730         * TreeNode.cs: Raise events no matter how the treenode is
27731         checked. Patch by Don Edvalson.
27732
27733 2006-01-30  Jackson Harper  <jackson@ximian.com>
27734
27735         * TreeNode.cs: Signature fix.
27736
27737 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
27738
27739         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
27740
27741 2006-01-20  Mike Kestner  <mkestner@novell.com>
27742
27743         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
27744         event forwarding when menus are active.
27745         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
27746         Most of the patch is pdb's with a little rework.
27747
27748 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
27749
27750         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
27751           Removed GetMenuDC and ReleaseMenuDC methods; replaced
27752           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
27753         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
27754         * InternalWindowManager.cs: Added use of PaintEventStart/End to
27755           handling of WM_NCPAINT message, now passing the PaintEventArgs to
27756           the PaintWindowDecorations method
27757         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
27758         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
27759         * MenuAPI.cs: Made tracker window invisible
27760         * XplatUIWin32.cs:
27761           - Removed GetMenuDC and ReleaseMenuDC methods
27762           - Implemented the client=false path for PaintEventStart and
27763             PaintEventEnd
27764
27765 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
27766
27767         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
27768         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
27769           styles
27770         * Form.cs: 
27771           - MaximizeBox, MinimizeBox: Recreate the handle when setting
27772             the style
27773           - CreateParams: Reworked the styles to match MS look'n'feel,
27774             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
27775             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
27776
27777 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
27778
27779         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
27780           window is not mapped, since otherwise every form that's being 
27781           created is considered minimized, which is wrong.
27782         * Form.cs: Catching the exception and returning our internal value
27783           instead
27784
27785 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
27786
27787         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
27788           SetWindowMinMax() to have means to tell the driver about the minimum,
27789           maximum and maximized state window sizes. (Part of the fix for #76485)
27790         * Form.cs:
27791           - Implemented tracking of minimum and maximum window size, now calling
27792             new SetWindowMinMax() driver method to tell the driver (Part of the
27793             fix for #76485)
27794           - Finished handling of WM_GETMINMAXINFO method, now setting all values
27795             (Completes fix for #76485)
27796           - Calling new SetWindowMinMax driver method when the handle for a 
27797             form is created, to make sure the driver knows about it even if
27798             the values have been set before the window was created
27799           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
27800             to avoid messing up our anchoring calculations (partial fix
27801             for #77355)
27802         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
27803         * XplatUIX11.cs:
27804           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
27805           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
27806             (and presumably other freedesktop.org compliant WMs). Left the
27807             assumption unmapped=minimized, needed for SetVisible to work.
27808           - Now setting the window state when creating windows
27809           - Fixed SetVisible to consider/set the window state when mapping
27810             a Form. We cannot set the state before it's mapped, and we cannot
27811             use Form.WindowState once it's mapped (since it would ask the
27812             driver and get 'normal'. Therefore, we grab the state before
27813             mapping, map, and then set state.
27814           - Implmemented SetWindowMinMax method; Metacity does not seem to
27815             honor the ZoomHints, though.
27816         * XplatUIWin32.cs:
27817           - Removed MINMAXINFO (moved to XplatUIStructs)
27818           - Added SetWindowMinMax stub (on Win32 the only way to set that
27819             information is in response to the WM_GETMINMAXINFO message, which
27820             is handled in Form.cs)
27821           - Added logic to SetVisible to set the proper window state when a 
27822             form is made visible (fixes #75720)
27823
27824 2006-01-26  Jackson Harper  <jackson@ximian.com>
27825
27826         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
27827         same way we handle them with Invoke.
27828
27829 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
27830
27831         * Form.cs:
27832           - Added tracking of window state so CreateParams can return
27833             the appropriate style
27834           - Moved setting of WS_CAPTION style in CreateParams to allow
27835             styles without caption
27836         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
27837           control if the TextBox property is accessed. Fixes #77345
27838         * Control.cs:
27839           - get_Created: now uses is_disposed and is_created to determine
27840             return value (suggested by Jackson)
27841           - CreateHandle: No longer exits if the handle is being recreated
27842           - RecreateHandle: If the handle is not yet created call the 
27843             appropriate method to create either control or handle. If the
27844             control is already created CreateHandle will simply exit instead
27845             of just creating the handle
27846         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
27847           now SendMessage WM_DESTROY directly to the control when DestroyWindow
27848           is called.
27849         * XplatUIX11.cs: 
27850           - When DestroyWindow is called, instead of waiting for the 
27851             DestroyNotification from X11, we directly post it to the WndProc
27852             and immediately dispose the hwnd object.
27853             Same applies to DestroyChildWindows, and this obsoletes the
27854             expose_pending tracking. Contrary to Win32 behaviour we destroy our
27855             child windows before our own, to avoid X11 errors.
27856           - Removed the direct sending of WM_PAINT on UpdateWindow
27857         * XplatUIWin32.cs:
27858           - Reworked DoEvents and GetMessage to allow access to internal queue
27859             even when trying non-blocking access to the queue.  Fixes #77335. 
27860             Based on a patch suggestion by Don Edvalson. The new private
27861             GetMessage can now also be used as a backend for a PeekMessage
27862             frontend version.
27863         * XplatUI.cs: Improved debug output for CreateWindow
27864
27865 2006-01-25  Jackson Harper  <jackson@ximian.com>
27866
27867         * Help.cs: Allow param to be null. Patch by Don Edvalson.
27868
27869 2006-01-24  Jackson Harper  <jackson@ximian.com>
27870
27871         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
27872         when we have a MaxDropItems lower then the selected index.
27873
27874 2006-01-24  Jackson Harper  <jackson@ximian.com>
27875
27876         * Control.cs: Don't allow selection of non visible controls, allow
27877         selection of controls without parents.
27878
27879 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
27880
27881         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
27882         * DataGridDrawingLogic.cs: Add editing row only when is necessary
27883
27884 2006-01-23  Jackson Harper  <jackson@ximian.com>
27885
27886         * UpDownBase.cs: Make the textbox handle all the selection and
27887         tabbing. This fixes tabing to updown controls.
27888
27889 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
27890
27891         * TextBoxBase.cs: fixes exception thown the object was null
27892
27893 2006-01-23  Jackson Harper  <jackson@ximian.com>
27894
27895         * ButtonBase.cs: Just use the base CreateParams. They set
27896         visibility and enabled correctly.
27897         * ComboBox.cs:
27898         * TrackBar.cs:
27899         * MonthCalendar.cs: Lets let the base set as much of the
27900         createparams as possible so we don't have duplicate code all over
27901         the place.
27902
27903 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
27904
27905         * ThemeGtk.cs: Added TrackBar and some experimental code to
27906           get double buffering back
27907
27908 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
27909
27910         * DataGrid.cs: Allows row number set internally higher than the last
27911         when creating a new row. Restores the editing functionality.
27912
27913 2006-01-20  Mike Kestner  <mkestner@novell.com>
27914
27915         * MimeIcon.cs: delay Image creation until the icons are accessed
27916         instead of creating 190 scaled images on GnomeHandler startup.
27917
27918 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
27919
27920         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
27921           first call base before processing the event. Fixes #77279
27922
27923 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
27924
27925         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
27926           that the stride for the GDI bitmap would match the stride of
27927           a DIB or a Cursor.
27928
27929 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
27930
27931         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
27932
27933 2006-01-19  Jackson Harper  <jackson@ximian.com>
27934
27935         * ComboBox.cs: Hookup the text controls keydown event so we get
27936         those when the text control has the focus.
27937
27938 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
27939
27940         * Label.cs: Now using the base events instead of defining new ones;
27941           this allows us to just call the base properties without having to
27942           duplicate all base property logic 
27943
27944 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
27945
27946         * Label.cs: A label by default is not a tabstop (Fixes one of our
27947           failing nunit tests)
27948
27949 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
27950
27951         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
27952         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
27953
27954 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
27955
27956         * Cursor.cs: Reimplemented creating cursor bitmaps without using
27957           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
27958           This fixes #77218
27959         * XplatUIWin32.cs: 
27960           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
27961             constructor creates images that can't be saved. Part of the fix
27962             for #76103
27963           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
27964           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
27965             bug fix for handling window state in forms properly)
27966
27967 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27968
27969         * ThemeGtk.cs: Simplify ScrollBar drawing
27970
27971 2006-01-18  Jackson Harper  <jackson@ximian.com>
27972
27973         * Splitter.cs: Set the default dock style for the splitter control
27974         in the constructor.
27975
27976 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27977
27978         * ThemeGtk.cs: Corrected StateType and ShadowType for
27979           gtk_paint_box
27980
27981 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27982
27983         * Control.cs: Make use of Theme.DoubleBufferingSupported
27984         * ThemeGtk.cs:
27985           - Added drawing for flat style buttons
27986           - Added ScrollBar drawing
27987
27988 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27989
27990         * ThemeClearlooks.cs: Removed some unneeded code.
27991         * ThemeGtk.cs: First part of ThemeGtk enhancements.
27992
27993 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
27994
27995         * LinkLabel.cs: We need to update the hover drawing when
27996           leaving the control as well.
27997
27998 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
27999
28000         * DataGrid.cs: Clicking on non empty areas in the columns
28001            area was giving an exception
28002
28003 2006-01-17  Jackson Harper  <jackson@ximian.com>
28004
28005         * ThemeWin32Classic.cs:
28006         * ListView.cs: Do not draw/clip the headers when the header style
28007         is None.
28008
28009 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
28010
28011         * DataGrid.cs: Fixes 77260
28012         
28013 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
28014
28015         * DataGrid.cs: Clicking on a column on a empty grid was giving
28016           an exception
28017
28018 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
28019
28020         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
28021           or any keypress will crash the grid.
28022
28023 2006-01-17  Mike Kestner  <mkestner@novell.com>
28024
28025         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
28026         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
28027         invisible/previously-visible items.
28028         [Fixes #76909]
28029
28030 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
28031
28032         * ThemeClearlooks.cs:
28033         - Added CL_Draw_Button method; now other theme controls that are 
28034           not derived from button or do not have a button can draw buttons
28035           too
28036         - Updated ComboBox drawing
28037         - Beautified RadioButton drawing
28038         - Corrected drawing of bottom and left tabs
28039         - Beautified DateTimePicker and MonthCalendar
28040         - Added CPDrawButton and CPDrawRadioButton
28041
28042 2006-01-16  Jackson Harper  <jackson@ximian.com>
28043
28044         * ComboBox.cs: Set the initial value of the scrollbar to the
28045         current index. Reduce the numbers of refreshs and IndexOfs called.
28046
28047 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
28048
28049         * FileDialog.cs: When the file listview is focused hitting the
28050           backspace key moves the fileview to the parent directory
28051
28052 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
28053
28054         * Form.cs: 
28055           - Added RecreateHandle call when changing taskbar visibility to 
28056             trigger reparenting in Win32 driver (Fixes #75719)
28057           - If a window has minimize or maximize buttons, it cannot have
28058             a help button
28059         * XplatUIWin32.cs:
28060           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
28061             the toplevel form with FosterParent (A toolwindow not on the
28062             taskbar) (Fixes #75719)
28063           - Made FosterParent a toolwindow
28064
28065 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28066
28067         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
28068
28069 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28070
28071         * ToolTip.cs: If SetToolTip is called from a control and the mouse
28072           is currently over that control, make sure that tooltip_window.Text
28073           gets updated
28074
28075 2006-01-13  Mike Kestner  <mkestner@novell.com>
28076
28077         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
28078
28079 2006-01-13  Jackson Harper  <jackson@ximian.com>
28080
28081         * TreeView.cs: On MS GetNodeAt never actually factors in the X
28082         value passed.  Also redraw the selected node when we recieve
28083         focus, so tabbing between trees works correctly.
28084
28085 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28086
28087         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
28088           ~/.gconf/%gconf-tree.xml, so use
28089           .gconf/desktop/gnome/interface/%gconf.xml
28090
28091 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
28092
28093         * TextControl.cs: Draw text in gray if control is disabled
28094
28095 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
28096
28097         * TreeView.cs: Draw the focus rectangle outside the highlight, to
28098           make sure it's always visible. Fixes #76680.
28099
28100 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
28101
28102         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
28103
28104 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
28105
28106         * PageSetupDialog.cs: Added.
28107         * PrintDialog.cs: Attributes.
28108         * PrintPreviewControl.cs: Updates.
28109         * PrintPreviewDialog.cs: Updates.
28110         
28111 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28112
28113         * Control.cs: Undid my selection check fix, since it's not needed
28114         * TextBoxBase.cs:
28115           - Now considering the presence of hscroll/vscroll when sizing
28116             vscroll/hscroll respectively. Fixed bug #77077
28117           - Added Left/Up/Down/Right to IsInputKey list to prevent
28118             ContainerControl from stealing them. This fixes what I broke
28119             with my last checkin.
28120
28121 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
28122
28123         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
28124           I finally understand how the property can be set without a setter :-)
28125
28126 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28127
28128         * Application.cs:
28129           - Switched RunLoop to use static Message.Create to create a 
28130             Message object
28131           - Added PreProcessMessage call in runloop for keyboard events; this
28132             is part of the fix for #77219, I overlooked this originally in the
28133             MSDN doc for PreProcessMessage
28134         * Control.cs:
28135           - Removed call to PreProcessMessage from handling of keyboard 
28136             messages; it's supposed to be done in the message pump
28137           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
28138             per MSDN documentation.
28139           - IsInputChar: All chars are input chars by default; removed the 
28140             parent calling chain, MS does not document that
28141           - PreProcessMessage: If IsInputChar is true, we want to return false
28142             to allow dispatching of the message
28143           - When selecting the next control, now also check that we're not
28144             selecting ourselves again and therefore return a false positive.
28145         * TextBoxBase.cs:
28146           - Tried to match return values for IsInputKey and ProcessDialogKey
28147             to what MS returns; moved processing of our special keys outside
28148             ProcessDialogKey since MS does not seem to return true on those.
28149           - Moved code that previously was in ProcessDialogKey into new private
28150             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
28151           - Reworked handling of WM_CHAR to not have to duplicate code from
28152             Control.cs anymore, instead we simply call down to base.
28153            
28154 2006-01-12  Jackson Harper  <jackson@ximian.com>
28155
28156         * ComboBox.cs: We always need to refresh the text area when
28157         EndUpdate is called. Fixes the combobox in the file dialog.
28158         * Control.cs: Don't create the creator_thread until the controls
28159         handle is created.  Also in InvokeRequired we check if the
28160         creator_thread is null. This gives the effect of InvokeRequired
28161         returning true if the controls handle is not created yet, and
28162         matches MS.
28163
28164 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28165
28166         * XplatUI.cs:
28167           - Added StartLoop() driver method. This is used to allow drivers to
28168             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
28169             loop for a particular thread
28170           - Added EndLoop() driver method. This is called once the message
28171             pump for the thread is shut down
28172           - Added SupportsTransparency method to allow the driver to indicate
28173             opacity support for windows
28174         * Form.cs:
28175           - Removed TODO attribute, completed AllowTransparency property
28176           - Added documented logic to Opacity
28177         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
28178           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
28179           versions of CompatibleTextRendering
28180         * X11Structs.cs: Added opacity atom to our atom enumeration
28181         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
28182           of a form might be set before it's reparented by the WM, and we need
28183           the opacity value without calling up to Form)
28184         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
28185           SupportsTransparency() driver methods
28186         * Application.cs: Now calling StartLoop and EndLoop driver methods
28187         * XplatUIX11.cs:
28188           - Added opacity atom registration
28189           - Added StartLoop()/EndLoop() methods. They're empty right now but
28190             will need to get implemented when we switch to a per-thread queue
28191           - Implemented SupportsTransparency() method
28192           - Implemented SetWindowTransparency() method
28193           - Added support for setting the opacity value when a window is
28194             reparented (since the opacity needs to be set on the WM frame)
28195         * XplatUIOSX.cs, XplatUIWin32.cs:
28196           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
28197
28198 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
28199
28200         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
28201
28202 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
28203
28204         * FileDialog.cs: Added ToolTip for MWFFileView
28205         * MimeIcon.cs: Rewrote GnomeHandler.
28206           - Get currently used gnome icon theme from
28207             ($HOME)/.gconf/%gconf-tree.xml
28208           - Make use of inherited icon themes
28209           - Support SVG icon themes like Tango via librsvg
28210
28211 2006-01-12  Miguel de Icaza  <miguel@novell.com>
28212
28213         Revert's Jackson's revert which broke 2.0 builds.   Fix both
28214         builds. 
28215         
28216         * Application.cs: Move the use_compatible_text_rendering outside
28217         the NET_2_0 define.  If we ever need to use the
28218         use_compatible_text_rendering on the individual controls they will
28219         access the variable from the common shared code paths.
28220
28221 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28222
28223         * XplatUI.cs:
28224           - Added more granular debug options
28225           - Added method to print both window text and id
28226           - Switched debug output to use new Window() debug method
28227           - Added IsEnabled() driver method
28228           - Added EnableWindow() driver method
28229         * Form.cs:
28230           - Removed end_modal; no longer needed, new loop handles termination
28231             via 'closing' variable
28232           - If form is modal, setting DialogResult will now initiate loop
28233             termination via 'closing' variable
28234           - Added support for is_enabled/WS_DISABLED to CreateParams
28235           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
28236             does all the work
28237           - Removed code that's now in RunLoop from ShowDialog()
28238           - Added various documented sanity checks to ShowDialog()
28239           - Added handling of WM_DESTROY message; we set 'closing' on getting
28240             the message to indicate the message pump to terminate
28241           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
28242             send by the Application.ExitThread method. (We send the message
28243             to destroy the window after all other events have been
28244             processed through the queue, instead of destroying the handle 
28245             directly)
28246           - Moved code from Close() method to WM_CLOSE handler; added logic
28247             to only send close-related events if the form is not displayed
28248             modal
28249         * Splitter.cs (..ctor): Fixed typo in resource name
28250         * Control.cs:
28251           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
28252             brush now
28253           - set_Cursor: Now only setting calling into XplatUI if the handle for
28254             the control is already created; this avoids implict handle creation
28255             or crashes if it's not created
28256           - set_Enabled: Now setting the enabled state via the new driver method
28257             instead of just tracking it
28258           - CreateParams: Added logic to set WS_DISABLED based on enabled state
28259           - CreateControl: Reordered event firing and method calls to more
28260             closely fire events in the order MS does. Now setting the
28261             enabled state in the driver when creating the control.
28262           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
28263             match MS order
28264         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
28265           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
28266         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
28267         * Hwnd.cs:
28268           - Added tracking of window enabled state (get_Enabled/set_Enabled)
28269           - Added EnabledHwnd property to easily allow a driver to find the
28270             handle of the first enabled window in the parent chain (this is
28271             used by drivers to pass up input events of disabled windows)
28272         * XplatUIDriver.cs: Added IsEnabled() method
28273         * Application.cs:
28274           - Removed crude and obsolete exiting tracking variable
28275           - Removed internal ModalRun(); replaced by RunLoop()
28276           - Implemented private CloseForms() method to allow closing all 
28277             windows owned by a particular (or all) threads
28278           - Exit() now properly closes all windows without forcing the message
28279             pump to quit
28280           - Removed obsolete InternalExit() method
28281           - Changed Run() methods to use new RunLoop() message pump
28282           - Implemented new RunLoop() method for both modal and non-modal forms
28283         * CommonDialog.cs:
28284           - get_CreateParams: Added setting of WS_DISABLED
28285           - Simplified ShowDialog(); now all the work is done in RunLoop(),
28286             invoked via Form.ShowDialog()
28287         * NativeWindow.cs: We don't remove the window from the collection when
28288           the handle is destroyed; there might still be messages for it in the
28289           queue (mainly the resulting WM_DESTROY); instead it will be removed
28290           when Control calls InvalidateHandle in the WM_DESTROY handler
28291         * XplatUIX11.cs:
28292           - CreateWindow: Added logic to handle the WS_DISABLED window style
28293           - EnableWindow: Implemented based on Hwnd.Enabled
28294           - GetMessage: Reset PostQuitState so the method can be called again
28295           - Implemented support for disabled windows (passing messages to the
28296             first enabled parent) in handling all input messages
28297           - Added optimizations for handling Expose events
28298           - Implemeted new driver method IsEnabled()
28299           - Now always resetting paint pending tracking vars when we start paint
28300           - Re-implemented UpdateWindow via just sending a WM_PAINT message
28301         * XplatUIOSX.cs: Added IsEnabled method stub
28302         * XplatUIWin32.cs: Implemented new IsEnabled() method
28303
28304 2006-01-11  Jackson Harper  <jackson@ximian.com>
28305
28306         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28307         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
28308         variables a little.
28309         * ColorDialog.cs: Clear out the old form before adding the new
28310         panel.  
28311
28312 2006-01-11  Jackson Harper  <jackson@ximian.com>
28313
28314         * X11Dnd.cs: Make sure to add all the text formats when adding
28315         strings to the data object.
28316         * TreeNodeCollection.cs: When adding to a sorted tree we need to
28317         do some redrawing too.  Also change the UpdateNode to an
28318         UpdateBelow so the newly added node gets painted.
28319         
28320 2006-01-11  Miguel de Icaza  <miguel@novell.com>
28321
28322         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28323         LinkLabel.cs, PropertyGrid.cs: Implement the
28324         UseCompatibleTextRendering property for 2.x
28325
28326         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
28327
28328 2006-01-11  Jackson Harper  <jackson@ximian.com>
28329
28330         * TreeView.cs: Use the property for setting the selected node so
28331         the correct events get raised.
28332         * TreeNode.cs: Update the tree when the fore/back colours of a
28333         node are set.
28334
28335 2006-01-10  Jackson Harper  <jackson@ximian.com>
28336
28337         * TreeView.cs: Allow setting SelectedNode to null.
28338
28339 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28340
28341         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
28342
28343 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28344
28345         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
28346
28347 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28348
28349         * PrintDialog.cs: Added attributes and set default property values.
28350
28351 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28352
28353         * PrintControllerWithStatusDialog.cs: 
28354         Added PrintControllerWithStatusDialog.
28355
28356 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28357
28358         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
28359         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
28360
28361 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28362
28363         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
28364
28365 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
28366
28367         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
28368         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
28369
28370 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
28371
28372         * MimeIcon.cs: Added internal class SVGUtil.
28373
28374 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
28375
28376         * FileDialog.cs: Don't crash if there are two files with the
28377           same name but different locations.
28378
28379 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
28380
28381         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
28382         dates across multiple month grids. Used to not highlight entire 
28383         month, but does now.
28384         
28385 2006-01-06  Jackson Harper  <jackson@ximian.com>
28386
28387         * MonthCalendar.cs: Removed DoEvents call to prevent a running
28388         message loop. Change timer intervals to numbers that seem more
28389         natural.
28390
28391 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
28392
28393         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
28394           object for location info since screen object is now implemented.
28395
28396 2006-01-05  Jackson Harper  <jackson@ximian.com>
28397
28398         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
28399         * AsyncMethodResult.cs: We no longer use a WeakReference for the
28400         AsyncMethodResult, this is because we ALWAYS want the
28401         ManualResetEvent to get set.
28402         * Control.cs: When disposing use an async invoke to call shutdown
28403         code, so that thigns don't block on the finalizer thread.  Also
28404         check if we even have a message loop before trying to send
28405         messages, if we don't then don't bother sending messages.
28406         - No more weak references for async methods
28407         * XplatUIDriver.cs: No more weak references for async methods.
28408
28409 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28410
28411         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
28412           returns two FontFamily with the same name
28413
28414 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
28415
28416         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
28417           drawing disabled text. Instead using the ColorGrayText color
28418
28419 2006-01-04  Jackson Harper  <jackson@ximian.com>
28420
28421         * TreeNode.cs: redraw the node when its image index is changed.
28422
28423 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
28424
28425         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
28426           time I checked there are no others like it.
28427
28428 2006-01-04  Jackson Harper  <jackson@ximian.com>
28429
28430         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
28431         this gives the behavoir I was looking for.
28432         * Control.cs: Special case Invoking EventHandlers, this matches MS
28433         and fixes part of bug #76326.
28434
28435 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28436
28437         * ThemeClearlooks.cs, FileDialog.cs:
28438           - Reflect the latest Theme class changes
28439           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
28440             with DateTime
28441             
28442 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28443
28444         * Theme.cs: Cache UI resource images and resize them if needed
28445
28446 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
28447
28448         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
28449           is called. This fixes the crash in Nexxia when setting the font
28450           attributes in the chat. [However, RTF needs a look-over to make sure
28451           that all SelectionXXX methods handle the special case that selection
28452           is empty and therefore the change must be applied to all text starting
28453           at the cursor/selection start]
28454
28455 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
28456
28457         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28458           XplatUIOSX.cs: Added SendMessage and PostMessage methods
28459         * X11Keyboard.cs: Switched to new way of calling PostMessage
28460
28461 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
28462
28463         * Theme.cs: Added theme interface for images to allow the theme to
28464           control what images are used for things like FileDialog, MessageBox
28465           icons, etc.
28466         * MessageBox.cs: Now uses the new Theme icon/image interfaces
28467
28468 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
28469
28470         * FileDialog.cs:
28471           - Removed some dead code
28472           - Opening a recently used file does work now
28473           - Small UI enhancements
28474           - Refactoring
28475
28476 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
28477
28478         * FileDialog.cs: Forgot too add __MonoCS__
28479
28480 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
28481
28482         * FileDialog.cs: We are able to read recently used files now let's
28483           go on and write them.
28484
28485 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
28486
28487         * FileDialog.cs: Breathe some life into "last open"/"recently used"
28488           button
28489         * MimeIcon.cs: Do a check for the top level media type also
28490
28491 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
28492
28493         * ThemeClearlooks.cs:
28494           - Added CPDrawStringDisabled
28495           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
28496             some chars if the text doesn't fit into text_rect
28497           - DrawListViewItem: If View = View.LargeIcon center the image;
28498             rewrote the drawing of ListViewItem.Text if View = 
28499             View.LargeIcon
28500
28501 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
28502
28503         * MimeIcon.cs: Use default KDE icon theme if there is no
28504           "48x48" directory for the current icon theme, fixes #77114
28505         * Mime.cs: Disable not working and actually not used code. 
28506         * ThemeWin32Classic.cs:
28507           - Replace "new SolidBrush" in GetControlBackBrush and
28508             GetControlForeBrush with ResPool.GetSolidBrush
28509           - Changed DrawListViewItem from private to protected virtual
28510         * FileDialog.cs:
28511           - Added form.MaximizeBox = true
28512           - Don't throw an exception if there is a broken symbolic link
28513
28514 2005-12-23  Jackson Harper  <jackson@ximian.com>
28515
28516         * TabControl.cs: Give the panels focus, keyboard navigation is
28517         fixed so this works correctly now.
28518         - We need these key events also.
28519         * ToolBar.cs: Remove some of the poor mans double buffering.
28520         
28521 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
28522
28523         * ComboBox.cs: The internal TextBox now returns the focus.
28524
28525 2005-12-23  Jackson Harper  <jackson@ximian.com>
28526
28527         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
28528
28529 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
28530
28531         * Control.cs: Removed debug code
28532         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
28533           implicit children
28534
28535 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
28536
28537         * Control.cs: When creating the control, update the Z-order after
28538           all it's children are created, too. (Fixes nexxia not showing
28539           picturebox bug)
28540
28541 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
28542
28543         * Control.cs: Do not update the anchoring distances if layout is
28544           suspended, instead do it once layout is resumed
28545
28546 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
28547
28548         * Control.cs: 
28549           - After many hours of debugging, for both Jackson and
28550             myself, it turns out that it helps to set the parent of a control
28551             if you want to actually see it onscreen. In the spirit of that
28552             discovery, we're now setting the parent of the control and
28553             it's children when the control's handle is created. This fix
28554             will make Lutz Roeder's Reflector run happily. 
28555           - now just creating the handle instead of the whole control when
28556             getting a graphics context for the control.
28557
28558 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
28559
28560         * ScrollableControl.cs: When calculating the canvas, don't consider
28561           the scrollbar widths. Instead, predict if horizontal scrollbar
28562           will affect canvas when deciding on vertical display and vice versa.
28563
28564 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
28565
28566         * RichTextBox.cs: Set default RTF font for documents that don't
28567           have a font table (Fixes #77076)
28568
28569 2005-12-22  Jackson Harper  <jackson@ximian.com>
28570
28571         * TextBoxBase.cs: It's difficult to do, but you can have an empty
28572         clipboard. This prevents a NullRef in that case.
28573         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
28574         clipboard. PRIMARY is for the currently selected text only. (We
28575         should implement PRIMARY at some point.
28576
28577 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
28578
28579         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
28580           a Unicode function with a structure that was defined in Ansi way.
28581           This fixes #76942.
28582
28583 2005-12-21  Jackson Harper  <jackson@ximian.com>
28584
28585         * StatusBar.cs: Statusbar handles its fore/back colours on it's
28586         on. Because thats how it rolls. (and this avoids it using ambient
28587         colours).
28588         * ThemeWin32Classic.cs: Use the proper back color for filling.
28589         * Menu.cs: Use the system menu bar color for drawing menu
28590         bars. Using the window back color will bring ambient colours into
28591         the picture.
28592
28593 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
28594
28595         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
28596           Bitmaps were created and not disposed.
28597
28598 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
28599
28600         * Control.cs (CreateControl): Don't do anything if the control is
28601           already created, otherwise we'd fire the OnCreated event more than
28602           once
28603
28604 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
28605
28606         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
28607           will always match. Instead return -1. Fixes #76464.
28608
28609 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
28610
28611         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
28612           neither the beginning nor the end of the line (Fixes bug #76479)
28613
28614 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
28615
28616         * Control.cs:
28617           - ControlNativeWindow.ControlFromHandle(): Now handling situation
28618             where handle is invalid
28619           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
28620             instead of slower linear search
28621         * NativeWindow.cs: Don't remove the window from the hashtable until
28622           after the driver has destroyed it (since the driver might use
28623           Control.FromHandle to lookup the control object
28624         * Hwnd.cs: Added DestroyPending property to track if a window is 
28625           already destroyed as far as the driver is concerned and only hasn't
28626           yet notified the control
28627         * XplatUIX11.cs:
28628           - Activate(): Check if the window is still valid before using the 
28629             handle
28630           - Implemented DestroyChildWindow() method to mark child windows as
28631             destroyed when a window is destroyed. This prevents situations 
28632             where we might call an X method based on queued events for a
28633             window that already has been destroyed but we haven't yet pulled
28634             the destroy method from the queue.
28635           - Added a call to the new DestroyChildWindow() method to the drivers
28636             DestroyWindow code. Also now marking the destroyed window itself
28637             as pending
28638
28639 2005-12-20  Jackson Harper  <jackson@ximian.com>
28640
28641         * StatusBar.cs:
28642         * StatusBarPanel.cs: Don't calculate panel sizes on draw
28643         anymore. Just do them when needed, also track the rects of panels
28644         so that we can optimize refreshing more in the future.
28645
28646 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
28647
28648         * ColorDialog.cs: Fixed focus drawing in small color controls
28649
28650 2005-12-19  Jackson Harper  <jackson@ximian.com>
28651
28652         * InternalWindowManager.cs:
28653         * MdiWindowManager.cs: Cleanup some coordinate system changes so
28654         moving windows works properly.
28655
28656 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
28657
28658         * Control.cs: 
28659           - Removed call to InitLayout() from SetBoundsCore(); doc says
28660             it's only called when a control is added to a container
28661           - Split InitLayout logic, moved to separate UpdateDistances() method
28662             since we need to perform those calculations more often than just
28663             when adding the control to a container. (Needed to fix #77022)
28664           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
28665           - Reduced the OnBindingContextChanged events count, don't send them
28666             unless the control is created, we still aren't totally matching
28667             MS, but I can't quite figure out some of their rules
28668
28669 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28670
28671         * ThemeClearlooks.cs: Corrected distance between ProgressBar
28672           stripes
28673
28674 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28675
28676         * ThemeClearlooks.cs:
28677           - Updated ProgressBar drawing
28678           - Corrected drawing of ScrollBars and scroll buttons
28679           - Some temporary fixes for minor pixel artefacts
28680
28681 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
28682
28683         * Control.cs:
28684           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
28685             cause events to be sent in the same order as MS does.
28686           - Added ChangeParent() method to trigger various OnXXXChanged events
28687             that need to be fired when a parent changes (This is a reworking
28688             of the patch from r54254, with the X11 errors fixed)
28689           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
28690             since on MS we get OnLayoutChanged events when calling Clear()
28691           - Changed Enabled property to consider parent state as well, if a
28692             parent is not enabled, the control will not be either
28693           - Changed Parent property to simply call Controls.Add() since that
28694             now does all the work required, this way we avoid code duplication
28695           - Threw in a few OnBindingsContextChanged calls to try and match
28696             when MS sends them. We seem to send a few too many, though.
28697           - Added call to CreateControl when adding the control to a parent.
28698             We were never calling CreateControl. Still needs some work, in
28699             some places we treat HandleCreated and ControlCreated as equal, 
28700             which is wrong
28701           - Removed obsolete commented out code from UpdateZOrder()
28702
28703 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28704
28705         * ThemeClearlooks.cs: Updated TrackBar drawing.
28706
28707 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
28708
28709         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
28710
28711 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
28712
28713         * FileDialog.cs: Add the Help button and the open readonly
28714           checkbox only if needed
28715
28716 2005-12-16  Jackson Harper  <jackson@ximian.com>
28717
28718         * Control.cs: Make sure we have an active menu before trying to
28719         process commands on it. Prevents menu-less forms from crashing
28720         when Alt is pressed.
28721         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
28722         Dieter Bremes.
28723         * RichTextBox.cs: Expand statement to help out gmcs and fix the
28724         2.0 build.
28725
28726 2005-12-16  Jackson Harper  <jackson@ximian.com>
28727
28728         * InternalWindowManager.cs: Don't translate tool windows screen
28729         coordinates. This fixes windows 'bouncing' around when being moved.
28730
28731 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
28732
28733         * TextBoxBase.cs:
28734           - MaxLength now treats 2^31-1 equal to unlimited length (this is
28735             not quite MS compatible, MS uses that number only for single line
28736             and 2^32-1 for multi-line, but I figure it won't hurt keeping
28737             the limit at 2GB)
28738           - Now enforcing the MaxLength limit when entering characters
28739           - Added argument to internal Paste() method to track if it's called
28740             from programatically or via keyboard, since keyboard driven pastes
28741             need to enforce max-length
28742           - Added logic to Paste to only paste as many chars as MaxLength 
28743             allows
28744         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
28745         * TextControl.cs:
28746           - Added Length property to return number of characters in document
28747           - Added private CharCount property which only tracks actual chars
28748             in the document (no linefeeds) and fires event when CharCount
28749             changes
28750           - Added tracking of character count to all methods that alter it
28751           - Added LengthChanged event to allow applications to subscribe
28752             to any changes to the document
28753
28754 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
28755
28756         * TextBox.cs: 
28757           - Removed local password_char field (moved to TextBoxBase)
28758           - Now setting the document's password var when password is
28759             set
28760         * TextBoxBase.cs:
28761           - Added password_char field (needed here so MultiLine can
28762             access it)
28763           - Added logic to MultiLine property setter to set the document's
28764             variable when password display is allowed
28765           - Removed debug code and made some debug code conditional
28766         * TextControl.cs:
28767           - Added RecalculatePasswordLine() method to handle special password
28768             char only lines
28769           - Added PasswordChar property, also added related tracking vars
28770           - Draw() method now uses local text var for grabbing text to draw,
28771             this var is set to line.text unless we're doing password display,
28772             then it is set to the pre-generated all-password-chars line
28773           - Added calling RecalculatePasswordLine() method for password lines
28774
28775 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
28776
28777         * Hwnd.cs: 
28778           - Added Reparented property to allow tracking of Window Manager
28779             reparenting actions (which affect X/Y calculations of toplevel 
28780             windows)
28781           - Made ToString() print window handles in hex
28782         * XplatUIX11.cs:
28783           - AddConfigureNotify(): Now uses reparented state off Hwnd to
28784             determine if X/Y needs offsetting
28785           - AddConfigureNotify(): Fixed offset calculations
28786           - Now adds ReparentNotify messages into the queue
28787           - Now processes ReparentNotify messages and causes a 
28788             WM_WINDOWPOSCHANGED message to be sent upstream if a window
28789             is reparented (as most likely it's X/Y coordinates are changed
28790             due to that)
28791
28792 2005-12-14  Jackson Harper  <jackson@ximian.com>
28793
28794         * XplatUIX11.cs: Tool windows still need to respek focus.
28795
28796 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
28797
28798         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
28799           have a working release
28800
28801 2005-12-13  Jackson Harper  <jackson@ximian.com>
28802
28803         * Form.cs: Update styles after setting the border style regardless
28804         of whether or not the window is using a window manager.
28805
28806 2005-12-13  Jackson Harper  <jackson@ximian.com>
28807
28808         * Form.cs: We now hook into an internal window manager instead of just an
28809         MDI subsystem, this is so we can have properly behaving tool windows.
28810         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
28811         * InternalWindowManager.cs: New internal class that acts as a
28812         window manager for tool windows and as a base for mdi windows.
28813         * MdiWindowManager.cs: New class that acts as a window manager for
28814         mdi windows.
28815
28816 2005-12-12  Jackson Harper  <jackson@ximian.com>
28817
28818         * Control.cs: Updates so we match behavoir for for implicit
28819         controls. Fixes explosions in MDI.
28820
28821 2005-12-12  Jackson Harper  <jackson@ximian.com>
28822
28823         * Control.cs: Implement Invalidate (Region).
28824
28825 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
28826
28827         * Control.cs: 
28828           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
28829             the same events as MS does. MS fires events for each property 
28830             except, for unknown reasons, Cursor, when the control is reparented. 
28831             I can't seem to totally match add/remove since MS also fires some 
28832             VisibleChanged events, which makes no sense. Consolidated the
28833             parenting code into a separate method so it can be called from
28834             both Add and Remove. set_Parent no longer needs any special logic
28835             as it calls the parent's add method which implicitly fires
28836             all events
28837           - Removed some obsolete code and debug output
28838           - Enabled state is inherited from parents, if this is enabled
28839
28840 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
28841
28842         * Form.cs: Removed commented out code
28843
28844 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
28845
28846         * Control.cs:
28847           - Added internal version of Invoke, with additional argument 
28848             indicating if we're calling it from a Dispose() handler. That
28849             way we can avoid BeginInvoke throwing an exception if we're
28850             calling for an already destroyed window.
28851           - Added a dispose argument to BeginInvokeInternal, and made the
28852             check if a valid window handle chain exists conditional on
28853             it not being a dispose call
28854           - Removed code in DestroyHandle to destroy our children. Since we
28855             now handle the WM_DESTROY message we will catch all our children
28856             being destroyed.
28857           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
28858         * Form.cs:
28859           - Added a field to track the application context of the form.
28860           - No need to set closing variable as response to WM_CLOSE, instead
28861             we destroy the window. We also call PostQuitMessage if the form
28862             has an application context (which makes it the main app form,
28863             which, when closed terminates the app)
28864         * XplatUI.cs:
28865           - Dropped Exit() method, it's naming was confusing
28866           - Added PostQuitMessage() which causes GetMessage to return false
28867             once the message queue is empty
28868         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
28869           PostQuitMessage()
28870         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
28871           no longer a valid XplatUI method, but left it in since it's used
28872           internally. Added empty PostQuitMessage() method.
28873         * MenuAPI.cs: Replaced call to Exit() with call to
28874           PostQuitMessage, even though this is probably no longer needed.
28875         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
28876         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
28877         * Application.cs:
28878           - Replaced call to XplatUI.Exit() with PostQuitMessage()
28879           - Removed old debug code that would call XplatUI for exception
28880             display, enabled standard exception handling (Still not enabled
28881             though, until NativeWindow's ExternalExceptionHandler define
28882             is removed
28883         * NativeWindow.cs:
28884           - Added internal method to allow control to update NativeWindow
28885             after a window has been destroyed
28886           - Added handling of already destroyed windows when calling i
28887             DestroyWindow
28888           - Added removal of handle from list on ReleaseHandle
28889         * XplatUIX11.cs:
28890           - Dropped GetMessageResult var and related code
28891           - Added PostQuitState to field to track if PostQuitMessage has been
28892             called
28893           - Dropped Exit() method
28894           - Added PostQuitMessage() method
28895           - GetMessage now will return false if PostQuitState is set and no
28896             more messages are in the queue.
28897           - Expose handler will no longer generate WM_PAINT messages if we are
28898             in PostQuitState since it's very likely any windows have already
28899             been destroyed, and since Hwnd won't get updated until we have
28900             processed the DestroyNotify we'd be causing X errors.
28901         
28902 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28903
28904         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
28905           Thanks to Mike for pointing out the err of my ways.
28906
28907 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28908
28909         * Control.cs(PreProcessMessage): Moved menu handling back, but
28910           after all other key handling, to match MS (who handles Menu in
28911           DefWndProc)
28912         * Menu.cs (WndProc): Removed my brainfart
28913
28914 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28915
28916         * Control.cs(PreProcessMessage): Removed special menu handling 
28917         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
28918
28919 2005-12-07  Mike Kestner  <mkestner@novell.com>
28920
28921         * Control.cs : special case SYSKEYUP so that we can adjust keynav
28922         state according in tracker.
28923         * Menu.cs : promote tracker field to base class and provide a tracker
28924         lookup capability.  Add/Remove shortcuts dynamically if the top menu
28925         has a tracker. Unparent items that are removed from the collection.
28926         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
28927         * Theme*.cs: add always_show_hotkeys field to support configurability
28928         of mnemonic display.  win32 doesn't show mnemonics until Alt is
28929         pressed.
28930
28931 2005-12-07  Jackson Harper  <jackson@ximian.com>
28932
28933         * MdiChildContext.cs: Use Control.ResetCursor.
28934         * Control.cs: ResetCursor needs to set the property so that the
28935         correct XplatUI call gets made.
28936
28937 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28938
28939         * Control.cs: More fixes to make our key events match MS. We
28940           were not setting the modifier state on KeyData, and we were
28941           not generating any events when Alt was pressed with a key
28942           since handling of WM_SYSxxx was missing for the OnKey methods.
28943
28944 2005-12-07  Jackson Harper  <jackson@ximian.com>
28945
28946         * MdiChildContext.cs: reenable the sizing code.
28947         - When the mouse leaves a window reset its cursor.
28948
28949 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
28950
28951         * ThemeClearlooks.cs: Reflect latest Hwnd changes
28952
28953 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28954
28955         * Hwnd.cs: Now using the theme 3d bordersize to calculate
28956           widths of Fixed3D borders
28957
28958 2005-12-07  Jackson Harper  <jackson@ximian.com>
28959
28960         * MdiClient.cs: Fix warnings. Earn Mike's love.
28961
28962 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
28963
28964         * ThemeClearlooks.cs:
28965           - Adjusted mouse over button color
28966           - Added first parts of CheckBox drawing
28967           - Added correct color for selected text background
28968           - Fixed ComboBox drawing
28969           - Added CPDrawBorder3D and CPDrawBorder
28970
28971 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
28972
28973         * XplatUIX11.cs: Added call to XBell for AudibleAlert
28974
28975 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
28976
28977         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28978           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
28979           alert users via sound. We could add an enum arg with different
28980           types of alerts in the future
28981
28982 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
28983
28984         * Control.cs: Fix behaviour problems pointed out by Mike
28985
28986 2005-12-05  Mike Kestner  <mkestner@novell.com>
28987
28988         * StatusBarPanel.cs: add Invalidate method and hook it into all the
28989         prop setters.  Calls parent.Refresh for now, but could be maybe be
28990         optimized with an internal method on StatusBar at some point.
28991         [Fixes #76513]
28992
28993 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
28994
28995         * RichTextBox.cs: Implemented get_SelectionColor
28996
28997 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
28998
28999         * ThemeClearlooks.cs:
29000           - Removed dead code
29001           - Draw black button border only if button is Form.AcceptButton
29002           - Draw correct button color for pressed RadioButton if the mouse 
29003             has entered the button
29004           - Updated ProgressBar drawing!
29005           - Updated CPDrawSizeGrip drawing
29006           - Updated StatusBarPanel drawing
29007
29008 2005-12-05  Mike Kestner  <mkestner@novell.com>
29009
29010         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
29011         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
29012
29013 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
29014
29015         * ThemeClearlooks.cs: Initial check-in, activate with
29016           export MONO_THEME=clearlooks
29017         * ThemeEngine.cs: Added ThemeClearlooks
29018
29019 2005-12-03  Mike Kestner  <mkestner@novell.com>
29020
29021         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
29022         [Fixes #76897]
29023
29024 2005-12-02  Jackson Harper  <jackson@ximian.com>
29025
29026         * Form.cs: If the child form has no menu the default main menu is
29027         used as the active menu.
29028
29029 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
29030
29031         * ListBox.cs: Check if any items exist before trying to resolve 
29032           coordinates into items
29033
29034 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
29035
29036         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
29037           as the second color for the background hatch
29038
29039 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
29040
29041         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
29042         * RichTextBox.cs: FormatText position arguments are 1-based, now making
29043           sure that what we pass to FormatText is always 1-based. Fixes #76885
29044
29045 2005-11-29  Miguel de Icaza  <miguel@novell.com>
29046
29047         * NumericUpDown.cs (EndInit): When we are done initializing,
29048         reflect any updates on the UI.
29049
29050 2005-12-02  Jackson Harper  <jackson@ximian.com>
29051
29052         * ImplicitHScrollBar.cs:
29053         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
29054         their container controls.
29055         * TreeView.cs: Use the new implicit scrollbars.
29056
29057 2005-12-02  Jackson Harper  <jackson@ximian.com>
29058
29059         * TreeView.cs: Make top_node internal so the TreeNodeCollections
29060         can play with it.
29061         * TreeNodeCollection.cs: If we remove the topnode we need to
29062         update topnode to the next node in line.
29063         - When clearing nodes go through the same process as removing
29064         them, so they get depareneted and checked if they are top node.
29065
29066 2005-12-01  Jackson Harper  <jackson@ximian.com>
29067
29068         * TreeView.cs: When imagelists are used the image area is
29069         selectable as well as the text.
29070         - If there are no selected nodes select the first one.
29071         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
29072         so don't do it more then we need to.
29073
29074 2005-12-01  Jackson Harper  <jackson@ximian.com>
29075
29076         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
29077         that arrows can be scaled.
29078
29079 2005-12-01  Jackson Harper  <jackson@ximian.com>
29080
29081         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
29082         fail. Patch by Dieter Bremes
29083
29084 2005-11-30  Jackson Harper  <jackson@ximian.com>
29085
29086         * Form.cs: Property is 2.0 only
29087         * PrintDialog.cs: Signature fix.
29088
29089 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
29090
29091         * TextControl.cs: 
29092           - No longer artificially moves text 2 pixels down (now that we have
29093             borders this is no longer needed)
29094           - Added calcs for left, hanging and right indent
29095
29096 2005-11-23  Mike Kestner  <mkestner@novell.com>
29097
29098         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
29099
29100 2005-11-30  Jackson Harper  <jackson@ximian.com>
29101
29102         * MdiChildContext.cs: Set the cloned menus forms, as these don't
29103         get cloned as part of CloneMenu ().
29104         * Menu.cs: Make sure the parent of the items get set correctly
29105         when they are added.  And the owners are notified of the changes.
29106         * Form.cs: Create an ActiveMenu property, so that when MDI is used
29107         we can change the menu being displayed/handled by the form without
29108         changing the menu assosciated with the form.
29109         - Don't let Mdi children draw/handle menus.
29110         
29111 2005-11-30  Jackson Harper  <jackson@ximian.com>
29112
29113         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
29114         a MenuChanged event. Just to make the API a little more
29115         consistent.
29116         * MainMenu.cs:
29117         * MenuItem.cs: Use the new OnMenuChanged
29118         * MdiChildContext.cs: Handle menu merging.
29119         * Form.cs: Implement MergedMenu.
29120         
29121 2005-11-30  Jackson Harper  <jackson@ximian.com>
29122
29123         * Menu.cs: We were misusing Add. Add goes behind the specified
29124         index according to the docs, and does not replace the specified
29125         index. So I added an Insert method.
29126
29127 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
29128
29129         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
29130           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
29131           is for Jackson
29132         * RichTextBox.cs: Added calls to base for DnD events
29133
29134 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
29135
29136         * TextControl.cs:
29137           - Fixed drag-selection related crash; style fixes
29138           - Implemented undo class
29139             o Implemented method to capture document state for specified
29140               range in document tree
29141             o Implemented method to restore captured document state
29142             o Implemented cursor tracking
29143             o Implemented basic undo stack
29144           - Added undo cursor tracking to methods altering cursor location
29145           - Added undo tracking to selection deletion (still missing
29146             other text-altering hookups)
29147         * RichTextBox.cs:
29148           - Added SelectionLength property
29149           - Implemented CanPaste()
29150           - Implemented Paste()
29151           - Added missing protected methods
29152           - Fixed RTF->Document conversion; now uses font index 0 and color 
29153             index 0 as the default font for the parsed text
29154           - Fixed RTF<->Document font size translation
29155           - Fixed RTF generation, now properly handles cross-tag boundaries
29156             for single line selection
29157           - No longer always appends blank line to generated RTF
29158           - Removed TODOs
29159           - Added missing attributes
29160           - Hooked up undo-related methods
29161         * TextBoxBase.cs:
29162           - Implemented Copy()
29163           - Implemented Paste()
29164           - Implemented Cut()
29165           - Fixed caret mis-behaviour on backspace across line-boundaries
29166
29167 2005-11-29  Jackson Harper  <jackson@ximian.com>
29168
29169         * MdiClient.cs: Add a method for activating mdi children. Very
29170         basic right now. I imagine someday it might need more girth.
29171         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
29172         children windows names are added to the menu item.
29173         * ThemeWin32Classic.cs: Draw the arrow if the item is an
29174         mdilist. This happens regardless of whether or not there are any
29175         mdi windows to see in the list, and according to my tests happens
29176         before the items are even added. Also happens if there isn't even
29177         an mdi client to get windows from.
29178
29179 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
29180
29181         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
29182         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
29183
29184 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
29185
29186         * DataGridTableStyle.cs:
29187           - Create always the styles for the missing columns even if they are
29188             provided by the user (not default table style)
29189         * DataGrid.cs:
29190           - Fixes bug 76770
29191           - Fixes SetDataBinding (always re-attach source)
29192           - Fixes SetNewDataSource (only clear styles if they are not for 
29193             this source)
29194          -  Expands OnTableStylesCollectionChanged to handle style refresh 
29195             and remove properly
29196
29197 2005-11-29  Jackson Harper  <jackson@ximian.com>
29198
29199         * FileDialog.cs: Implement missing bits, remove some dead
29200         code.
29201         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
29202         creation of the panel so that the options set on the dialog are
29203         seen when the panel is created.
29204         * TreeView.cs: raise a click when items are clicked.
29205         
29206 2005-11-29  Jackson Harper  <jackson@ximian.com>
29207
29208         * MdiClient.cs: Pass some signature methods through to base.
29209
29210 2005-11-28  Jackson Harper  <jackson@ximian.com>
29211
29212         * ListView.cs: Raise the click event when items are clicked.
29213
29214 2005-11-28  Jackson Harper  <jackson@ximian.com>
29215
29216         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
29217         a nullref.
29218
29219 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
29220
29221         * ThemeNice.cs: - Removed 1 pixel bitmaps
29222           - Use SmoothingMode.AntiAlias where it makes sense
29223             (ScrollButton arrow for example)
29224           - Enhanced Button focus drawing
29225           - Fixed ComboBox drawing (no artefacts anymore, focus
29226             rectangle is back again, reduced size of ComboButton, etc.)
29227           - Fixed RadioButton focus drawing for Appearence.Button
29228           - Slight ScrollButton redesign
29229           - Some LinearGradientBrush size fixes
29230           - GroupBoxes have now rounded edges
29231           - Fixed StatusBar drawing
29232
29233 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
29234
29235         * ThemeNice.cs: - Remove dead code
29236           - use correct background colors for menus, etc.
29237           - Fake pixel drawing with 1 pixel bitmaps
29238
29239 2005-11-24  Jackson Harper  <jackson@ximian.com>
29240
29241         * MdiClient.cs: Size the scrollbars when resizing the window.
29242         - Resize the maximized windows when the client is resized
29243         * Form.cs: Make the child context available
29244         
29245 2005-11-23  Jackson Harper  <jackson@ximian.com>
29246
29247         * MdiChildContext.cs: Don't size windows if they are maximized.
29248
29249 2005-11-23  Mike Kestner  <mkestner@novell.com>
29250
29251         * ContextMenu.cs: use MenuTracker.
29252         * Control.cs: remove menu handle usage.
29253         * Form.cs: remove menu handle usage.
29254         * Hwnd.cs: remove menu handle usage.
29255         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
29256         motion and clicks to the new Tracker handlers.
29257         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
29258         and handle usage.
29259         * MenuAPI.cs: refactored to combine popup and menubar event handling.
29260         Killed the MENU and MENUITEM data types and associated collections
29261         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
29262         MenuTracker class that exposes the leftovers from the old MenuAPI
29263         static methods. Restructured Capture handling so that only one grab is
29264         done for the entire menu hierarchy instead of handing off grabs to
29265         submenus. Tracker now has an invisible control to Capture when active.
29266         * MenuItem.cs: add sizing accessors, kill Create
29267         and handle usage.
29268         * Theme.cs: remove menu handle and MENU(ITEM) usage.
29269         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
29270         MENU(ITEM). remove menu handle usage, use Menu directly.
29271         * XplatUIDriver.cs: remove menu handle usage.
29272         * XplatUIOSX.cs: remove menu handle usage.
29273         * XplatUIWin32.cs: remove menu handle usage.
29274         * XplatUIX11.cs: remove menu handle usage.
29275
29276 2005-11-22  Jackson Harper  <jackson@ximian.com>
29277
29278         * Hwnd.cs: Don't compute the menu size for
29279         DefaultClientRectangle.
29280         - Reenable menu sizes being computed for GetClienRectangle.
29281         * Form.cs: Remove comment of trechery
29282         
29283 2005-11-22  Jackson Harper  <jackson@ximian.com>
29284
29285         * Hwnd.cs: The adjustments for the menu bar are made when it is
29286         attached to the form.
29287
29288 2005-11-19  Jackson Harper  <jackson@ximian.com>
29289
29290         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
29291         (just like on windows).
29292
29293 2005-11-19  Jackson Harper  <jackson@ximian.com>
29294
29295         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
29296         use real buttons anymore because they are in non client area. The
29297         one TODO here is that I need to somehow invalidate a section of
29298         the non client area.
29299
29300 2005-11-18  Jackson Harper  <jackson@ximian.com>
29301
29302         * Control.cs: Put the enum check back in now that MDI doesnt have
29303         to use this to set border styles.
29304         * Form.cs: Only set mdi child windows borders if the handle has
29305         been created.
29306         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
29307         this directly on to the driver.
29308         - Get the move start position before adjusting for the titlebar
29309         height, this fixes the windows "skipping" when they are first
29310         moved.
29311
29312 2005-11-18  Jackson Harper  <jackson@ximian.com>
29313
29314         * XplatUIX11.cs: Just compute the mdi borders separately as they
29315         don't totally match up with normal form borders.
29316
29317 2005-11-18  Jackson Harper  <jackson@ximian.com>
29318
29319         * Control.cs: Set WS_ styles for borders, so that the driver does
29320         not have to retrieve the control instance to figure out what kind
29321         of borders it should have.
29322         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
29323         driver can know its an mdi child easily.
29324         * XplatUIX11.cs: Get the border styles and whether the window is
29325         MDI from the Styles and ExStyles params instead of having to get a
29326         control. This prevents a chicken and egg problem.       
29327
29328 2005-11-18  Jackson Harper  <jackson@ximian.com>
29329
29330         * MdiClient.cs: Fix typo so scrollbars show up correctly.
29331
29332 2005-11-18  Jackson Harper  <jackson@ximian.com>
29333
29334         * MdiClient.cs: Calculate when to add and remove scrollbars
29335         correctly.
29336         * MdiChildContext.cs: Adjust the y position to take the titlebar
29337         into account.
29338         - No height for FormBorderStyle.None
29339
29340 2005-11-18  Jackson Harper  <jackson@ximian.com>
29341
29342         * Control.cs: Allow non enum values to be used for
29343         InternalBorderStyle.  MDI does this to set a special border style.
29344         - New utility methods for converting points to/from client coords
29345         - Add the newly created control to the Controls collection before
29346         updating its style. This way UpdateStyle can walk the control
29347         heirarchy to find the control if needed.
29348         so I don't need to create a new Point object all the time.
29349         * Form.cs: Let MDI windows handle their border styles.
29350         - Set styles on MDI windows so the correct title style is derived.
29351         * MdiChildContext.cs: Move all the painting and window handling
29352         into the non client area.
29353         - Use correct sizing and put correct buttons on frames based on
29354         the FormBorderStyle.
29355         - Notify the mdi client about scrolling
29356         - Need to handle the buttons ourselves now, because they are all
29357         in non client areas and we can't add controls there.
29358         * MdiClient.cs: Halfway to scrolling, this implementation is
29359         somewhat broken though, we need to check to make sure other
29360         windows aren't causing scrolling before removing the bars. Also
29361         the bars need to be drawn on top, maybe I can switch implicit
29362         controls to be on top.
29363         * Hwnd.cs: caption_height and tool_caption_height are now
29364         properties of an hwnd, this way they can be set by the driver
29365         based on the type of window they are.  In X11 the window manager
29366         handles the decorations so caption_height is zero unless its an
29367         MDI window.
29368         - Add 3 pixel borders for MDI windows (0xFFFF).
29369         - Get rid of some code duplication, have DefaultClientRectanle
29370         just call GetClientRectangle.
29371         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
29372         Hwnd now.
29373         - Set border styles differently for mdi windows.
29374         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
29375         Hwnd now.
29376         
29377 2005-11-15  Mike Kestner  <mkestner@novell.com>
29378
29379         * Menu.cs: when adding an item to the collection, if item is already 
29380         parented, remove it from the parent.
29381
29382 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
29383
29384         * X11DesktopColors.cs: Added KDE support
29385
29386 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
29387
29388         * XplatUIWin32.cs: 
29389           - Clipboard methods now can translate Rtf format
29390           - No longer removes clipboard contents whenever a new format is added
29391             to allow placing multiple formats on the clipboard
29392         * Clipboard.cs: Clipboard now supports getting a IDataObject and
29393           will place all formats contained in it onto the clipboard. Also
29394           now cleans the clipboard before placing a new object onto it
29395         * RichTextBox.cs:
29396           - Implemented set_Rtf
29397           - Implemented set_SelectedRtf
29398           - Created InsertRTFFromStream() method to allow single code base
29399             for all properties and methods that insert RTF into document
29400           - Removed debug output
29401         * TextControl.cs:
29402           - Fixed Delete(int) to fix up line numbers
29403           - Fixed ReplaceSelection to combine start and end line
29404           - Fixed serious DeleteChars bug that would leave the document tree
29405             broken
29406           - Improved DumpTree with several logic checks to detect broken
29407             document trees
29408           - Removed debug lines
29409           - Fixed Caret.WordForward/WordBack moving code, now always also 
29410             updates caret.tag (fixes crash when word-selecting across tag
29411             boundaries via keyboard)
29412           - Added Insert() method for inserting multiline text into documents
29413           - Fixed DeleteChars() calculation errors that would cause a broken
29414             tag chain with multiple tag lines
29415           - DeleteChars() no longer crashes on multi-tag lines if not all tags
29416           - Split() no longer moves caret if split is at caret location
29417           - ReplaceSelection() now updates the cursor and re-displays it
29418           - ReplaceSelection() now uses new Insert() method to avoid code
29419             duplication
29420           - FormatText() can now handle formatting partial lines
29421         * TextBoxBase.cs:
29422           - Append now uses new TextControl.Insert() method (this avoids 
29423             duplicate code)
29424           - Implemented Ctrl-X (Cut) (
29425           - Implemented Ctrl-C (Copy)
29426           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
29427             regeneration when pasting text; roundtripping Copy&Paste within
29428             edit control still fails due to some calculation bugs in GenerateRTF)
29429           - The Delete key will now remove the current selection if it is visible
29430         * TextBox.cs: Removed debug lines
29431         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
29432           driver to be initialized and can't therefore be done via a static ctor)
29433
29434 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
29435
29436         * TextControl.cs: Added backend code for finding char arrays and strings
29437         * TextBoxBase.cs:
29438           - Added mouse wheel scroll support
29439           - Added support for VScroll and HScroll events
29440         * RichTextBox.cs:
29441           - Implemented all seven Find() variants
29442           - Implemented GetCharFromPosition()
29443           - Implemented GetCharIndexFromPosition()
29444           - Implemented GetLineFromIndex()
29445           - Implemented GetPositionFromCharIndex();
29446           - Implemented SaveFile for PlainText and UnicodeText
29447           - Fixed set_Font, now setting a new font applies that font to
29448             the whole document
29449           - Implemented generic Document to RTF converter
29450           - Implemented SaveFile for RichText format (still missing unicode
29451             conversion for non-ansi chars)
29452           - Implemented get_Rtf
29453           - Implemented get_SelectedRtf
29454
29455 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
29456
29457         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
29458           to allow any captures to be released before triggering OnClick. This
29459           way a click handler may capture the mouse without interference.
29460         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
29461           This way we send them even though X may not allow a grab (if the window
29462           isn't visible, for example)
29463
29464 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
29465
29466         * DataGridViewRowEventArgs.cs: DataGridView implementation
29467         * DataGridViewElement.cs: DataGridView implementation
29468         * DataGridViewComboBoxCell.cs: DataGridView implementation
29469         * DataGridViewDataErrorContexts.cs: DataGridView implementation
29470         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
29471         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
29472         * ImageLayout.cs: DataGridView implementation
29473         * DataGridViewComboBoxColumn.cs: DataGridView implementation
29474         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
29475         * DataGridViewSelectionMode.cs: DataGridView implementation
29476         * IDataGridViewEditingControl.cs: DataGridView implementation
29477         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
29478         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
29479         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
29480         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
29481         * DataGridViewColumnSortMode.cs: DataGridView implementation
29482         * DataGridView.cs: DataGridView implementation
29483         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
29484         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
29485         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
29486         * Padding.cs: DataGridView implementation
29487         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
29488         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
29489         * DataGridViewRowEventHandler.cs: DataGridView implementation
29490         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
29491         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
29492         * DataGridViewButtonCell.cs: DataGridView implementation
29493         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
29494         * DataGridViewEditMode.cs: DataGridView implementation
29495         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
29496         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
29497         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
29498         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
29499         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
29500         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
29501         * DataGridViewCellEventHandler.cs: DataGridView implementation
29502         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
29503         * DataGridViewCellStyleConverter.cs: DataGridView implementation
29504         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
29505         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
29506         * DataGridViewColumnEventArgs.cs: DataGridView implementation
29507         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
29508         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
29509         * QuestionEventArgs.cs: DataGridView implementation
29510         * IDataGridViewEditingCell.cs: DataGridView implementation
29511         * DataGridViewTriState.cs: DataGridView implementation
29512         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
29513         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
29514         * DataGridViewColumnCollection.cs: DataGridView implementation
29515         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
29516         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
29517         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
29518         * DataGridViewColumn.cs: DataGridView implementation
29519         * DataGridViewCellBorderStyle.cs: DataGridView implementation
29520         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
29521         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
29522         * DataGridViewRow.cs: DataGridView implementation
29523         * DataGridViewImageCellLayout.cs: DataGridView implementation
29524         * DataGridViewImageCell.cs: DataGridView implementation
29525         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
29526         * DataGridViewCheckBoxCell.cs: DataGridView implementation
29527         * DataGridViewHeaderCell.cs: DataGridView implementation
29528         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
29529         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
29530         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
29531         * DataGridViewTextBoxColumn.cs: DataGridView implementation
29532         * QuestionEventHandler.cs: DataGridView implementation
29533         * DataGridViewCellStyleScopes.cs: DataGridView implementation
29534         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
29535         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
29536         * DataGridViewCell.cs: DataGridView implementation
29537         * DataGridViewCellEventArgs.cs: DataGridView implementation
29538         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
29539         * DataGridViewCellStyle.cs: DataGridView implementation
29540         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
29541         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
29542         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
29543         * TextFormatFlags.cs: DataGridView implementation
29544         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
29545         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
29546         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
29547         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
29548         * DataGridViewButtonColumn.cs: DataGridView implementation
29549         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
29550         * HandledMouseEventArgs.cs: DataGridView implementation
29551         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
29552         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
29553         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
29554         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
29555         * DataGridViewRowCollection.cs: DataGridView implementation
29556         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
29557         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
29558         * DataGridViewHitTestType.cs: DataGridView implementation
29559         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
29560         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
29561         * DataGridViewColumnEventHandler.cs: DataGridView implementation
29562         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
29563         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
29564         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
29565         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
29566         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
29567         * DataGridViewContentAlignment.cs: DataGridView implementation
29568         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
29569         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
29570         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
29571         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
29572         * DataGridViewPaintParts.cs: DataGridView implementation
29573         * DataGridViewCellCollection.cs: DataGridView implementation
29574         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
29575         * DataGridViewImageColumn.cs: DataGridView implementation
29576         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
29577         * DataGridViewElementStates.cs: DataGridView implementation
29578         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
29579         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
29580         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
29581         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
29582         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
29583         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
29584         * DataGridViewRowHeaderCell.cs: DataGridView implementation
29585         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
29586         * DataGridViewTextBoxCell.cs: DataGridView implementation
29587         * DataGridViewBand.cs: DataGridView implementation
29588         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
29589         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
29590         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
29591         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
29592         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
29593         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
29594         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
29595         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
29596         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
29597         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
29598         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
29599
29600 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
29601
29602         * ThemeWin32Classic.cs: 
29603           - Draw the outside focus rectangle around buttons
29604           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
29605             doesn't use end caps for every dash of a line anymore. This
29606             workaround ignores the forecolor.
29607
29608 2005-11-08  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
29609
29610         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
29611           endian safe.
29612
29613 2005-11-07  Jackson Harper  <jackson@ximian.com>
29614
29615         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
29616
29617 2005-11-07  Jackson Harper  <jackson@ximian.com>
29618
29619         * ScrollableControl.cs: Calculate the maximum and change vars
29620         (more) correctly so that scrollbars appear as a sensible size.
29621
29622 2005-11-04  Jackson Harper  <jackson@ximian.com>
29623
29624         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
29625         collection.
29626         * TreeView.cs: When the tree is sorted null out the top_node so
29627         that it is recalculated.
29628         - Use dotted lines instead of dashed lines to match MS better.
29629
29630 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
29631
29632         * ListView.cs: 
29633           - Implements key search for items. Useful when browsing files with FileDialog
29634           - When changing view mode or when clear the items reset scrollbar positions
29635
29636 2005-11-04  Jackson Harper  <jackson@ximian.com>
29637
29638         * CurrencyManager.cs: Implement the MetaDataChanged event, the
29639         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
29640         as to what the method may do as there is no real way of creating a
29641         derived CurrencyManager and calling the method. 
29642
29643 2005-11-03  Jackson Harper  <jackson@ximian.com>
29644
29645         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
29646         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
29647         method which seems to just be used internally to refresh the tabs.
29648
29649 2005-11-03  Jackson Harper  <jackson@ximian.com>
29650
29651         * TabControl.cs: Implement the remove method. Fix some broken
29652         comments.
29653
29654 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29655
29656         * DateTimePicker.cs:
29657           - Added missing DateTimePickerAccessibleObject class
29658           - Added missing events
29659           - Added OnFontChanged method
29660         * Form.cs: Added missing attributes
29661         * TreeView.cs: Added missing attributes
29662
29663 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
29664
29665         * GridItemCollection.cs: Fix signatures
29666
29667 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29668
29669         * XplatUI.cs: Updated build rev/date
29670         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
29671           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
29672         * Application.cs: Trigger context-specific ExitThread events
29673
29674 2005-11-03  Jackson Harper  <jackson@ximian.com>
29675
29676         * Menu.cs:
29677         * MainMenu.cs:
29678         * GridTableStylesCollection.cs:
29679         * Timer.cs:
29680         * TabPage.cs:
29681         * HelpProvider.cs:
29682         * StatusBar.cs:
29683         * MonthCalendar.cs: Signature fixes
29684
29685 2005-11-03  Jackson Harper  <jackson@ximian.com>
29686
29687         * TreeNodeCollection.cs: Remove should not be virtual.
29688         * TreeView.cs: Implement the last of the missing methods.
29689
29690 2005-11-03  Jackson Harper  <jackson@ximian.com>
29691
29692         * TreeNodeConverter.cs: Implement to get off my class-status back.
29693
29694 2005-11-03  Jackson Harper  <jackson@ximian.com>
29695
29696         * TreeView.cs: Hookup the bits for drag and drop.
29697         * TreeNode.cs: Don't cache the tree_view or index anymore, now
29698         that nodes can be moved from tree to tree easily this just causes
29699         all sorts of problems.
29700         * TreeNodeCollection: Don't need to give treenodes an index and
29701         treeview anymore when they are added, these are computed on the
29702         fly. Also make sure to remove a node before its added.
29703
29704 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29705
29706         * TextControl.cs:
29707           - Added CaretSelection enum
29708           - Added comparison methods to Marker struct, makes selection code
29709             more readable
29710           - Added SelectionStart and SelectionEnd as 'moveable' location for
29711             the CaretDirection enum and handler
29712           - Added selection_prev variable to track optimized invalidation for
29713             word and line selection
29714           - Added SelectionVisible property (returns true if there is a valid 
29715             selection)
29716           - Switched CaretHasFocus to only display the caret if there is no
29717             visible selection
29718           - Avoiding StringBuilder.ToString to retrieve a single char, instead
29719             using the direct character index; should be much faster
29720           - Added various conditional debug statements
29721           - Fixed invalidation calculation for selection ranges
29722           - Added ExpandSelection() method to support word and line selection
29723           - Switched SetSelectionToCaret to use new Marker compare overloads
29724           - Added central IsWordSeparator() method to determine word 
29725             separators/whitespace and FindWordSeparator() to streamline common
29726             usage of IsWordSeparator()
29727         * TextBoxBase.cs:
29728           - Removed unneeded grabbed variable, it was just mirroring
29729             Control.Capture
29730           - No longer firing OnTextChanged event when Text setter is called,
29731             since the base will fire the event for us
29732           - Added handling of Ctrl-Up/Down selection
29733           - Added handling of Shift-Cursorkey selection
29734           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
29735             words
29736           - Added handling of Shift and Ctrl-Shift-Home/End selection
29737           - Removed some debug output
29738           - Added handling for single/double/tripple-click to place caret/
29739             select word/select line respectively (Fixes bug #76031)
29740           - Added support for drag expansion of word/line selection
29741         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
29742           current selection
29743
29744 2005-11-02  Jackson Harper  <jackson@ximian.com>
29745
29746         * X11Dnd.cs: If the drag is going to and from a MWF window just
29747         copy the data instead of sending it out through the X Selection
29748         mechanism.
29749
29750 2005-11-02  Jackson Harper  <jackson@ximian.com>
29751
29752         * X11Dnd.cs:
29753         * XplatUIX11.cs: When in a drag we don't want motion notify
29754         messages to get passed on to the other controls. This prevents
29755         mouse move messages from showing up in the drag source.
29756
29757 2005-11-02  Jackson Harper  <jackson@ximian.com>
29758
29759         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
29760         the correct button is release to end a drag.
29761         * XplatUIX11.cs: Make the button state internal so the drag system
29762         can access it.  Dragging needs to know about all button releases,
29763         not just left button.
29764
29765 2005-11-02  Miguel de Icaza  <miguel@novell.com>
29766
29767         * Form.cs (Icon): If the icon is null, reset the icon to the
29768         default value. 
29769
29770         * Cursor.cs: When writing the AND-mask bitmap do not include the
29771         number of colors, but hardcode those to two (black and white),
29772         fixes the loading of color cursors (Paint Dot Net).
29773
29774         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
29775         turn off autoscaling.
29776
29777         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
29778
29779 2005-11-02  Jackson Harper  <jackson@ximian.com>
29780
29781         * X11Dnd.cs: Make sure to send a status message if the pointer
29782         enters a control that can not accept a drop, otherwise the cursor
29783         isn't updated correctly. Also tried to compress the lines of code
29784         a bit.
29785
29786 2005-11-02  Jackson Harper  <jackson@ximian.com>
29787
29788         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
29789         set actions correctly.  This isn't perfect as XDND and win32 have
29790         some differences on how you allow actions. I'll clear this up by
29791         adding a path for drag from MWF to MWF windows.
29792         * XplatUIX11.cs: Hook into the dnd system.
29793
29794 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
29795
29796         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
29797         previously shown but they are no longer need it. Very obvious when 
29798         browsing files with FileDialog.
29799
29800 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
29801
29802         * Control.cs: We always need to call OnPaintBackground. We pretty much
29803           ignore AllPaintingInWmPaint and always do the painting there, whether 
29804           it's set or not, since we always ignore the WM_ERASEBKGND message 
29805           (which we don't generate on X11). This fixes #76616.
29806         * Panel.cs: Removed unneeded background painting. This happens properly
29807           in Control.cs already
29808
29809 2005-10-31  Mike Kestner  <mkestner@novell.com>
29810
29811         * Menu.cs: Add items to collection before setting their index.
29812         * MenuItem.cs : add range checking with ArgumentException like MS.
29813         [Fixes #76510]
29814
29815 2005-10-31  Jackson Harper  <jackson@ximian.com>
29816
29817         * ListBox.cs: Invalidate if the area is visible at all not just
29818         contained in the visible rect. Fixes unselection of semi visible
29819         items.
29820
29821 2005-10-31  Jackson Harper  <jackson@ximian.com>
29822
29823         * Control.cs: Consistently name the dnd methods. Make them
29824         internal so we can override them to match some MS behavoir
29825         internally.
29826         * Win32DnD.cs: Use the new consistent names.
29827
29828 2005-10-31  Jackson Harper  <jackson@ximian.com>
29829
29830         * TreeView.cs: Don't draw the selected node when we lose focus.
29831
29832 2005-10-31  Jackson Harper  <jackson@ximian.com>
29833
29834         * X11Dnd.cs: We still need to reset the state even though a full
29835         reset isn't being done, otherwise status's still get sent all over
29836         the place.
29837
29838 2005-10-31  Jackson Harper  <jackson@ximian.com>
29839
29840         * Control.cs: Make the dnd_aware flag internal so the dnd
29841         subsystem can check it. Catch exceptions thrown in dnd handlers to
29842         match MS behavoir.
29843         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
29844         * X11Dnd.cs: Handle null data in the converters. Set the XDND
29845         version when sending a XdndEnter. Use the control/hwnd dnd_aware
29846         flags to reduce the number of dnd enters/status's sent.
29847
29848 2005-10-31  Jackson Harper  <jackson@ximian.com>
29849
29850         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
29851
29852 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
29853
29854         * PictureBox.cs: Fixes 76512
29855
29856 2005-10-28  Jackson Harper  <jackson@ximian.com>
29857
29858         * X11Dnd.cs: Early implementation to support winforms being a drag
29859         source for data on X11. Also restructured the converters so they
29860         can go both ways now.
29861         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
29862         
29863 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
29864
29865         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
29866           clipboard requests
29867
29868 2005-10-27  Jackson Harper  <jackson@ximian.com>
29869
29870         * TreeNode.cs: Implement serialization so my DnD examples will work.
29871
29872 2005-10-24  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
29873
29874         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
29875           TreeView.cs: Don't dispose objects that are not owned.
29876           
29877 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
29878
29879         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
29880           should retrieve the current cursor and report that, but XplatUI
29881           doesn't (yet) have an interface for that (and I'm not sure I even
29882           can, on X11)
29883         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
29884           until any message loop processing is done (and the WM_SETCURSOR
29885           replaces the cursor to the proper one)
29886         * XplatUIX11.cs: 
29887           - Fixed override behaviour, we can't set the cursor globally on X11, 
29888             just for our windows.
29889           - Invalidating the System.Drawing X11 display handle when we are
29890             shutting down
29891         * Control.cs: Fix to make csc happy
29892
29893 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
29894
29895         * TextBoxBase.cs: 
29896           - get_Text: Add last line (without trailing newline) to returned
29897             value (Fixes 76212)
29898           - get_TextLength: Count last line in returned length
29899           - ToString: Call Text property instead of duplicating code
29900
29901 2005-10-23  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
29902
29903         * ImageList.cs: Dispose ImageAttributes objects.
29904
29905 2005-10-22  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
29906
29907         * ImageList.cs: Use attribute constructors with less arguments where
29908           possible.
29909
29910 2005-10-22  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
29911
29912         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
29913           Use typeof instead of strings when assembly is referenced. Added
29914           some more comments.
29915
29916 2005-10-21  Jackson Harper  <jackson@ximian.com>
29917
29918         * ListView.cs: Raise a double click event. Also tried to somewhat
29919         fix when the selectedindexchanged event is raised. Its still
29920         broken though.
29921
29922 2005-10-21  Jackson Harper  <jackson@ximian.com>
29923
29924         * TreeView.cs: New method to invalidate the plus minus area of a
29925         node without invalidating the whole node (maybe this can be used
29926         in some more places).
29927         * TreeNodeCollection.cs: When adding to an empty node we need to
29928         invalidate its plus minus area so the little block shows up.
29929         
29930 2005-10-21  Jackson Harper  <jackson@ximian.com>
29931
29932         * TreeView.cs: Make sure that when we invalidate a node the bounds
29933         are big enough to cover the selected box and the focus
29934         rectangle. Use a different colour for the lines connecting nodes
29935         so they show up with all themes.
29936
29937 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
29938
29939         * NativeWindow.cs: Don't call anything that could call into the driver,
29940           we might be on a different thread.
29941
29942 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
29943
29944         * Control.cs(Dispose): Since Dispose might run on a different thread,
29945           make sure that we call methods that could call into the driver via
29946           invoke, to avoid thread issues
29947
29948 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
29949
29950         * XplatUI.cs: Removed finalizer
29951         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
29952           not allowing to be called on the finalizer thread.
29953
29954 2005-10-21  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
29955
29956         * ImageList.cs:
29957           - Reverted r51889 and r51891.
29958           - Added ImageListItem class that stores unmodified image items and image
29959             properties required to create list images until handle is created.
29960           - Added AddItem and moved image creation logic to AddItemInternal.
29961           - Added CreateHandle method that creates images based on unmodified items.
29962           - Added DestroyHandle that changes state to store unmodified items.
29963           - Add and AddStrip methods no more create handle.
29964           - ReduceColorDepth has no return value.
29965           - Dispose destroys handle.
29966           - Modified other methods to reflect the above changes.
29967           - Implemented key support.
29968           - Added profile 2.0 members and attributes.
29969           - Added private Reset and ShouldSerialize methods that provide the same
29970             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
29971             them as they are private.
29972           - Added some more comments about implementation details.
29973
29974 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
29975
29976         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
29977
29978 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
29979
29980         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
29981
29982 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
29983
29984         * DataGridDrawingLogic.cs: Fixes column hit calcultation
29985         * DataGridColumnStyle.cs: Remove debug message
29986
29987 2005-10-20  Jackson Harper  <jackson@ximian.com>
29988
29989         * TreeView.cs: We can always get input keys regardless of whether
29990         or not editing is enabled. They are used for navigation.
29991
29992 2005-10-20  Jackson Harper  <jackson@ximian.com>
29993
29994         * TreeNode.cs: Use the viewport rect for determining if a node
29995         needs to be moved for visibility. Don't use Begin/End edit. This
29996         calls a full refresh when its done.
29997         * TreeView.cs: New SetBottom works correctly.  Make the viewport
29998         rect property internal so the treenodes can see it. When clicking
29999         on a node we need to ensure that its visible because it might just
30000         be partly visible when clicked.
30001
30002 2005-10-20  Jackson Harper  <jackson@ximian.com>
30003
30004         * TreeNodeCollection.cs: Remove debug code.
30005
30006 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
30007
30008         * Datagrid.cs: Implements column sorting in Datagrid
30009         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
30010
30011 2005-10-20  Jackson Harper  <jackson@ximian.com>
30012
30013         * TreeNodeCollection.cs: Remove items properly. Update the correct
30014         area after removing them.
30015
30016 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
30017
30018         * Datagrid.cs: Should not call base.OnPaintBackground
30019
30020 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
30021
30022         * XplatUIX11.cs (GetMessage):
30023           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
30024             window instead of client window
30025           - Now properly calculates NC_xBUTTONUP message coordinates
30026           - ScreenToMenu now properly calculates it's coordinates of whole 
30027             window, since menus are in the whole window, not in the client
30028             window
30029           - Added WholeToScreen coordinate translation method
30030
30031 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
30032
30033         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
30034           want to return a message, loop back to the beginning of the function
30035           and grab the next real message to process instead.
30036
30037 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
30038
30039         * Splitter.cs: Properly set limits if no filler control is used
30040
30041 2005-10-19  Jackson Harper  <jackson@ximian.com>
30042
30043         * ColorDialog.cs: Don't show the help button if it is not enabled
30044         instead of disabling it (this is what MS does). Don't create the
30045         panel until the dialog is run, otherwise the vars (such as
30046         ShowHelp) are not set yet.
30047
30048 2005-10-19  Jackson Harper  <jackson@ximian.com>
30049
30050         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
30051         are reduced when adding nodes.
30052         * TreeNode.cs:
30053         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
30054         tree.
30055         
30056 2005-10-19  Jackson Harper  <jackson@ximian.com>
30057
30058         * FolderBrowserDialog.cs: End editing our treeview so the window
30059         actually gets refreshed.
30060
30061 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
30062
30063         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
30064           Obsoleted handling of WM_ERASEBKGND, now always draws our background
30065           inside of WM_PAINT
30066
30067 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30068
30069         * MenuAPI.cs: Returns after Hidding window
30070         * XplatUIX11.cs: Added TODO found while debugging menu issues
30071
30072 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
30073
30074         * XplatUIX11.cs: Do not re-map the whole window when it's size
30075           becomes non-zero unless it's supposed to be actually visible
30076
30077 2005-10-18  Jackson Harper  <jackson@ximian.com>
30078
30079         * TreeView.cs: We don't need to keep a count anymore.
30080         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
30081         use the Grow method.
30082
30083 2005-10-18  Jackson Harper  <jackson@ximian.com>
30084
30085         * TreeNodeCollection.cs: Insert is not supported on arrays, so
30086         implement it manually here.
30087
30088 2005-10-18  Jackson Harper  <jackson@ximian.com>
30089
30090         * ImageList.cs: Dont kill the list when the colour depth is
30091         changed, just change the colour depth of all the images.
30092         - Same goes for setting the image size. Just resize them all
30093         instead of killing the list softly.
30094
30095 2005-10-18  Jackson Harper  <jackson@ximian.com>
30096
30097         * Control.cs: Don't invalidate empty rectangles.
30098
30099 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30100
30101         * ListViewItem.cs:
30102           - Adds checked item to the Checked/Item lists (where empty before)
30103           - Do not add items to the Selected lists if they are already present
30104         * ListView.cs:
30105           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
30106           - When deleting items make sure that we delete them for the Selected
30107           and Checked list also.
30108
30109 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30110
30111         * Label.cs: Dispose objects no longer used
30112         * ThemeWin32Classic.cs: Dispose objects no longer used
30113
30114 2005-10-18  Jackson Harper  <jackson@ximian.com>
30115
30116         * TabControl.cs: Don't refresh the whole control when the tabs are
30117         scrolled, we just need to refresh the tab area.
30118
30119 2005-10-17  Jackson Harper  <jackson@ximian.com>
30120
30121         * XplatUIX11.cs: Compress code a little bit. Only calculate the
30122         after handle when we need it.
30123
30124 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
30125
30126         * Control.cs: When the parent size changes, recalculate anchor 
30127           positions. Partial fix for #76462
30128
30129 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
30130
30131         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
30132           drawn. Fixes #76462
30133
30134 2005-10-17  Jackson Harper  <jackson@ximian.com>
30135
30136         * MonthCalendar.cs: Don't create the numeric up down until our
30137         handle is created. Otherwise our handle is created in the
30138         constructor and we don't know if we are a WS_CHILD or WS_POPUP
30139         yet.
30140
30141 2005-10-17  Jackson Harper  <jackson@ximian.com>
30142
30143         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
30144         correctly.
30145
30146 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
30147         * TreeNode.cs : small logical fix (was using local var instead of field)
30148         
30149 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
30150
30151         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
30152
30153 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
30154
30155         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
30156
30157 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
30158
30159         * Control.cs: 
30160           - Re-implemented anchoring code. My first version was really broken.
30161             This fixes bug #76033. Unlike the previous implementation we will
30162             no longer have round errors since all numbers are calculated from
30163             scratch every time. Removed various anchor-related obsolete vars.
30164           - InitLayout no longer causes layout event firing and layout to be 
30165             performed
30166
30167 2005-10-16  Jackson Harper  <jackson@ximian.com>
30168
30169         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
30170         which was broken).
30171
30172 2005-10-16  Jackson Harper  <jackson@ximian.com>
30173
30174         * TabControl.cs: Remove debug code.
30175
30176 2005-10-16  Jackson Harper  <jackson@ximian.com>
30177
30178         * XEventQueue.cs: Increase the default queue size (very simple
30179         apps needed to grow the queue).
30180         * Hwnd.cs: No finalizer so we don't need to suppress
30181         finalization. Compute the invalid area manually so a new rectangle
30182         does not newto be created.
30183         * ScrollableControl.cs: Don't set any params (otherwise visibility
30184         isn't set correctly).
30185         * MdiChildContext.cs: New constructor takes the mdi parent so it
30186         doesn't have to be computed and avoids a crash on windows. Draw
30187         the window icon properly, and allow the text to be seen.
30188         * Form.cs: Use new MdiChildContext constructor. Make sure the
30189         child context isn't null in wndproc.
30190         * TabControl.cs: Don't set focus, this is muddling keyboard
30191         behavoir. Expand the tab rows when a window size increase will
30192         allow extra tabs to be seen. Don't allow tabs smaller than the
30193         width of a window to be scrolled out of view.
30194         * TreeNode.cs:
30195         * TreeView.cs: Use measure string to calculate a nodes width, the
30196         width is cached and only updated when the text or the font is
30197         changed. Don't check for expand/collapse clicks on the first level
30198         nodes if root lines are disabled.
30199         
30200 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
30201
30202         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
30203
30204 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
30205
30206         * DataGridBoolColumn.cs: fixes warning
30207
30208 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
30209
30210         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
30211         to match more to match more precisely the MS Net behavior
30212
30213 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
30214
30215         * Hwnd.cs: Added field to track if window is mapped
30216         * XplatUIX11.cs: 
30217           - Unmap windows if they become 0-size, re-map when 
30218             they are >0 again; fixes #76035
30219           - Re-set our error handler after initializing X11Desktop
30220             to override any error handlers Gtk or whatever was called
30221             may have set.
30222
30223 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
30224
30225         * CheckedListBox.cs: Removed unused vars
30226         * ListView.cs: Fixed signatures
30227         * RichTextBox.cs: Removed unused vars
30228         * TextBoxBase.cs: Removed unused vars
30229         * XplatUIWin32.cs: Removed unused vars
30230         * XplatUIX11.cs: Removed unused vars
30231         * XplatUI.cs: Updated version and date to latest published
30232
30233 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
30234
30235         * Cursor.cs: Added private .ctor to work around a bug in
30236           resourceset (Thanks to Geoff Norton for the help on this)
30237         * SplitterEventArgs.cs: Made fields accessible so we don't
30238           waste boatloads of objects and can reuse the same one
30239           in Splitter
30240         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
30241           any captions and borders when generating screen coordinates
30242         * Splitter.cs: Reimplemented control, now fully complete, uses
30243           rubberband drawing, supports and obeys all properties, has
30244           proper cursors
30245
30246 2005-10-13  Miguel de Icaza  <miguel@novell.com>
30247
30248         * Form.cs (Form): Setup default values for autoscale and
30249         autoscale_base_size;  Make these instance variables, not static
30250         variables. 
30251
30252         (OnLoad): on the first load, adjust the size of the form.
30253
30254 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
30255
30256         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
30257           width argument to DrawReversibleRectangle()
30258         * XplatUIWin32.cs, XplatUIX11.cs: 
30259           - Implemented width for DrawReversibleRectangle()
30260           - Added logic to DrawReversibleRectangle that recognizes a zero
30261             width or height and only draws a line in that situation
30262         
30263 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
30264
30265         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
30266         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
30267         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
30268           method (it uses our FosterParent window to get a graphics context)
30269
30270 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
30271
30272         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
30273           and SetWindowBackground methods
30274         * Control.cs:
30275           - Setting proper ControlStyles
30276           - We no longer call XplatUI.SetWindowBackground and XplatUI.
30277             EraseWindowBackground, instead we draw the window background
30278             ourselves in PaintControlBackground. This behaviour is
30279             required to match MS, where, when OnPaintBackground is not
30280             called, the background is not drawn.
30281           - Removed unneeded Refresh() in set_Text
30282         * Hwnd.cs: Dropped the ErasePending support. No longer needed
30283         * XplatUIX11.cs:
30284           - Created DeriveStyles method to translate from CreateParams to
30285             FormBorderStyle and TitleStyle, also handles BorderStyle (which
30286             matches FormBorderStyle enum values)
30287           - Consolidated SetHwndStyles and CalculateWindowRect border/title
30288             style calculations into single DeriveStyles method
30289           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
30290             from redrawing the whole window on any resize or expose.
30291           - Fixed CreateWindow usage of SetWindowValuemask. Before not
30292             all styles were applied to our whole/client window appropriately
30293           - Removed EraseWindowBackground() and SetWindowBackground() methods
30294           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
30295             no longer clear/redraw the background through X
30296           - Removed handling of erase_pending bit, we have no use for it (or
30297             so it seems)
30298         * XplatUIOSX.cs:
30299           - Removed generation and handling of WM_ERASEBKGND message
30300           - Removed EraseWindowBackground() and SetWindowBackground() methods
30301           - Removed handling of hwnd.ErasePending flag
30302         * XplatUIWin32.cs:
30303           - Removed EraseWindowBackground() and SetWindowBackground() methods
30304           - We no longer call EraseWindowBackground on PaintEventStart, we 
30305             ignore the fErase flag, erasing is handled in Control in the
30306             background handler
30307         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
30308           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
30309           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
30310           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
30311           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
30312           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
30313           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
30314
30315 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
30316
30317         * PropertyGrids.cs: Get sub properties
30318         * PropertyGridView.cs: Fix drawing code
30319
30320 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30321
30322         * ListBox.cs: Fixes 76383
30323
30324 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30325
30326         * DataGridTextBoxColumn.cs: Sets location and size before attachment
30327         * ThemeWin32Classic.cs: Fixes border drawing and calculations
30328         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
30329
30330
30331 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30332
30333         * ComboBox.cs: Fixes border drawing
30334
30335 2005-10-10  Miguel de Icaza  <miguel@novell.com>
30336
30337         * MimeIcon.cs: Ignore errors if the file can not be read.
30338
30339 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30340
30341         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
30342          - Fixed border calculations
30343          - Fixed horizontal scrolling in single column listboxes
30344          - Fixed drawing issues
30345
30346 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
30347
30348         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
30349           FormBorderStyle enum
30350         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
30351           code to determine FormBorderStyles from CreateParams
30352         * Form.cs:
30353           - Fixed bug where we'd set the wrong window styles if we were
30354             not creating an MDI window
30355           - Added call to XplatUI.SetBorderStyle when form borders are set
30356         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
30357         * Hwnd.cs:
30358           - Removed obsolete edge style
30359           - Switched from BorderStyle to FormBorderStyle
30360         
30361 2005-10-10  Jackson Harper  <jackson@ximian.com>
30362
30363         * Form.cs: Use the property to get the window handle instead of
30364         accessing it directly. Prevents a null reference exception.
30365
30366 2005-10-10  Jackson Harper  <jackson@ximian.com>
30367
30368         * TreeView.cs: Don't adjust the rect given to DrawString now that
30369         our libgdiplus draws correctly.
30370
30371 2005-10-08  Jackson Harper  <jackson@ximian.com>
30372
30373         * TreeView.cs: Don't try to find the clicked on node if there are
30374         no nodes in the tree.
30375
30376 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
30377
30378         * RichTextBox.cs:
30379
30380           restore
30381
30382 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
30383
30384         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
30385           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
30386           ErrorProvider.cs:
30387           Use ResPool for brushes and dispose System.Drawing objects that
30388           are not used anymore.
30389
30390 2005-10-07  Jackson Harper  <jackson@ximian.com>
30391
30392         * MdiChildContext.cs: Use the new borders instead of drawing them
30393         ourselves.
30394
30395 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
30396
30397         * Calling UpdateBounds after changing the window's BorderStyle 
30398         since the style can change the ClientSize
30399
30400 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30401
30402         * Control.cs: Made PaintControlBackground virtual
30403         * Panel.cs: Overriding PaintControlBackground instead of using paint
30404           event; paint event method was interfering with 'real' users of the
30405           event.
30406
30407 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
30408
30409         * ThemeWin32Classic.cs: remove border drawing since it is handled
30410         by the base control class now and was causing double border drawing.
30411
30412 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30413
30414         * Panel.cs: Redraw our background on paint. Not a pretty solution,
30415           but it does seem to match MS behaviour. This fixes bug #75324
30416
30417 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30418
30419         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
30420           somewhat hackish looking
30421
30422 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30423
30424         * TextBoxBase.cs:
30425           - We now accept Enter even if AcceptEnter is false, if the containing
30426             form does not have an AcceptButton configured (fixes bug #76355)
30427           - Calculations are now fixed to no longer use Width/Height, but
30428             ClientSize.Width/Height, since we now support borders (this was
30429             a result of fixing borders and therefore bug #76166)
30430           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
30431             true (fixes bug #76354)
30432         
30433 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30434
30435         * Control.cs: 
30436           - Defaulting BorderStyle and setting it in XplatUI when our window 
30437             is created
30438           - Added enum check to InternalBorderStyle setter
30439         * XplatUIX11.cs: 
30440           - Added drawing of window borders
30441           - Now properly calculates WM decorations offset for toplevel 
30442             windows (fixes bug #74763)
30443         * XplatUIWin32.cs: 
30444           - Implemented BorderStyles for windows (we're letting win32 draw 
30445             the border for us)
30446           - Fixed the signature for SetWindowLong
30447         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
30448           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
30449           setting borders
30450         * UpDownBase.cs: Remove drawing of borders, this is handled by
30451           the driver, outside the client area
30452         * ListView.cs: Removed bogus border calculations. The control should
30453           be oblivious to borders, since those are not part of the client
30454           area. 
30455         * X11DesktopColors.cs: Commented out (currently) unneeded variables
30456         * ThemeWin32Classic.cs: Removed border calculations from ListView 
30457           drawing code
30458
30459 2005-10-06  Jackson Harper  <jackson@ximian.com>
30460
30461         * MdiChildContext.cs: Clear out the old virtual position remove
30462         all the unneeded calls to CreateGraphics.
30463
30464 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30465
30466         * TextControl.cs: Use proper color for highlighted text; fixes #76350
30467
30468 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30469
30470         * Form.cs: 
30471           - Added loading and setting of our new default icon
30472           - Only set icon if window is already created
30473
30474 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30475
30476         * Label.cs:
30477           - Do not explicitly set the foreground and background colors, to
30478             allow inheriting from parents (fixes #76302)
30479           - Use Control's InternalBorderStyle property to deal with borders
30480
30481 2005-10-06  Jackson Harper  <jackson@ximian.com>
30482
30483         * MdiChildContext.cs: Use the new xplatui function to draw a
30484         reversible rect.
30485
30486 2005-10-06  Jackson Harper  <jackson@ximian.com>
30487
30488         * Form.cs: Add the parent before creating the child context cause
30489         we need the parent when setting up the child.
30490
30491 2005-10-06  Jackson Harper  <jackson@ximian.com>
30492
30493         * FolderBrowserDialog.cs: redo the tree population code so a
30494         second thread isn't used. Should be a lot faster and more stable
30495         now.
30496
30497 2005-10-05  Jackson Harper  <jackson@ximian.com>
30498
30499         * TreeView.cs: There are no expand/collapse boxes if the node has
30500         no children.
30501
30502 2005-10-05  Jackson Harper  <jackson@ximian.com>
30503
30504         * X11DesktopColors.cs: Get menu colours for the gtk theme.
30505
30506 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
30507
30508         * FileDialog.cs: Fix InitialDirectory
30509
30510 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
30511
30512         * ComboBox.cs:
30513                 - Fixes changing between styles
30514                 - Fixes simple mode
30515                 - Fixes last item crashing when navigating with keyboard
30516
30517 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
30518
30519         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
30520
30521 2005-10-05  Jackson Harper  <jackson@ximian.com>
30522
30523         * TreeView.cs: If updating the root node do a full refresh.
30524         * TreeNode.cs: The root node should be expanded by default. Also
30525         added a utility prop to tell if we are the root node.
30526         * TreeNodeCollection.cs: Only refresh if the node we are being
30527         added to is expanded. Also added a comment on a potential
30528         optimization.
30529         
30530 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
30531
30532         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
30533           in dispose method. Fixes #76330
30534
30535 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
30536
30537         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
30538
30539                 - Implements vertical and horizontal scrolling using XplatUI
30540                 - Fixes keyboard navagation
30541                 - Fixes EnsureVisible
30542                 - Drawing fixes
30543                 - Handles and draws focus properly
30544
30545
30546 2005-10-04  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30547
30548         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
30549           Create handle. NET_2_0: Destroy handle when value is null.
30550
30551 2005-10-03  Jackson Harper  <jackson@ximian.com>
30552
30553         * ScrollBar.cs: My last scrollbar patch was broken. This is a
30554         revert and a new patch to prevent the thumb from refreshing so
30555         much.
30556
30557 2005-10-02  Jackson Harper  <jackson@ximian.com>
30558
30559         * ScrollBar.cs: Don't update position if it hasn't actually
30560         changed. This occurs when you hold down the increment/decrement
30561         buttons and the thumb gets to the max/min.
30562
30563 2005-10-01  Jackson Harper  <jackson@ximian.com>
30564
30565         * Form.cs:
30566         * MdiChildContext.cs:
30567         * MdiClient.cs: Implement ActiveMdiChild in Form.
30568
30569 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
30570
30571         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
30572
30573 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
30574
30575         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
30576           be found
30577
30578 2005-09-30  Jackson Harper  <jackson@ximian.com>
30579
30580         * ListBox.cs: Don't do a full refresh unless some data has
30581         actually changed.
30582
30583 2005-09-30  Jackson Harper  <jackson@ximian.com>
30584
30585         * TreeView.cs: Make sure that the checkboxes size is factored in
30586         even when not visible.
30587
30588 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
30589
30590         * FileDialog.cs: Fix Jordi's build break
30591
30592 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
30593
30594         * FileDialog.cs: 
30595                 - Use standard the Windows colours for the combobox as espected
30596                 - Dispose objects that use resouces when no longer need them
30597
30598 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
30599
30600         * X11DesktopColors.cs: Initial incomplete implementation
30601         * XplatUIX11.cs: Added call to initialize X11DesktopColors
30602
30603 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
30604
30605         * Theme.cs: 
30606           - Switched Theme color names to match the names defined in 
30607             System.Drawing.KnownColors. Life's hard enough, no need to make 
30608             it harder.
30609           - Added setters to all theme color properties so themes can set
30610             their color schemes. The setters also propagate the color changes
30611             to System.Drawing.KnownColors via reflection
30612         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
30613           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
30614           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
30615           use the new, more logical theme color names
30616         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
30617           post-NT colors
30618         * ThemeWin32Classic.cs:
30619           - Removed code to set the old classic Windows colors. Instead it
30620             now relies on the colors returned by System.Drawing.KnownColors
30621             which will be either modern static colors (Unix) or colors
30622             read from the user's configuration (Win32)
30623           - Updated to use the new, more logical theme color names
30624           - Switched DataGrid drawing code to use only Theme colors instead of
30625             a mix of System.Drawing.KnownColors and Theme colors
30626           - DrawFrameControl(): Removed code that fills the button area, the
30627             fill would overwrite any previous fill done by a control. This
30628             fixes bug #75338 
30629           - Added DrawReversibleRectangle() stub
30630         * ScrollableControl.cs: Set visible state to false when scrollbars
30631           are removed (pdn fix)
30632         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
30633           DrawReversibleRectangle() method to allow drawing primitive 
30634           'rubber bands'
30635         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
30636
30637 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30638
30639         * ImageList.cs: Add(Icon): Create handle.
30640
30641 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
30642
30643         * ListView.cs:
30644         * ThemeWin32Classic.cs:
30645                 - Fixes detail mode
30646                 - Sets clippings
30647                 - Issues with drawing
30648
30649 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30650
30651         * ImageList.cs: Moved RecreateHandle back to ImageList as event
30652           source has to be the ImageList.
30653
30654 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30655
30656         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
30657
30658 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30659
30660         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
30661
30662 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30663
30664         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
30665
30666 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
30667         * GridItem.cs: Fixed TODOs
30668         * GridItemCollection.cs: Added ICollection interface
30669
30670 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30671
30672         * ImageList.cs: Resize icons when needed.
30673
30674 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
30675
30676         * ListViewItem.cs
30677                 - Fixes GetBounds and returns on screen rects
30678         * ListView.cs:
30679                 - Fixes vertical and horzintal scrolling of items
30680         * ThemeWin32Classic.cs:
30681                 - Fixes drawing
30682                 
30683 2005-09-29  Raja R Harinath  <harinath@gmail.com>
30684
30685         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
30686
30687 2005-09-29  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30688
30689         * ImageList.cs: Added comments about handle creation. Moved Handle,
30690           HandleCreated and OnRecreateHandle implementations to ImageCollection.
30691           Handle is created in Add methods.
30692
30693 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
30694          
30695         * DataGridDrawingLogic.cs: 
30696                 - Takes rows into account on Colum calculations
30697                 - Returns the column when clickig
30698         * DataGrid.cs:
30699                 - Fixes default HitTestInfo values
30700                 - Fixes HitTestInfo.ToString
30701                 - Fixes ResetBackColor          
30702         
30703 2005-09-28  Jackson Harper  <jackson@ximian.com>
30704
30705         * MdiChildContext.cs: Obey rules for fixed sized windows (no
30706         sizing or cursor changes). Also added some temp code to draw the
30707         titlebars text (Makes dev a little easier).
30708
30709 2005-09-28  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30710
30711         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
30712
30713 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
30714          
30715         * ListBox.cs: Fixes bug 76253
30716
30717 2005-09-28  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30718
30719         * ImageList.cs: Added comments about the current implementation. Added
30720           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
30721           Format32bppArgb to preserve transparency and can use Graphics.FromImage
30722           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
30723           with Bitmap.LockBits for better performance. Revised the whole file to
30724           match MS.NET behaviour and provide better performance. Non-public
30725           interface members are calling public members even when they throw
30726           NotSupportedException for better maintainability. Moved ColorDepth,
30727           ImageSize, ImageStream and TransparentColor implementations to
30728           ImageCollection for better performance as these properties are not used
30729           by ImageList.
30730         * ImageListStreamer.cs: Added a new internal constructor that takes an
30731           ImageList.ImageCollection and serializes Images based on
30732           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
30733           match ImageList property name.
30734
30735 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
30736
30737         * ListBox.cs: Fixes IndexFromPoint for last item
30738
30739 2005-09-27  Jackson Harper  <jackson@ximian.com>
30740
30741         * Form.cs: Set the position of new mdi children correctly.
30742
30743 2005-09-27  Jackson Harper  <jackson@ximian.com>
30744
30745         * MdiClient.cs: New mdi children need to be added to the back of
30746         the controls collection so the zorder is set correctly. Also add a
30747         count of all the child windows that have been created.
30748
30749 2005-09-27  Jackson Harper  <jackson@ximian.com>
30750
30751         * Form.cs (CreateParams): Setup MDI forms correctly.
30752
30753 2005-09-27  Jackson Harper  <jackson@ximian.com>
30754
30755         * MdiChildContext.cs:
30756         * MonthCalendar.cs:
30757         * UpDownBase.cs:
30758         * ListBox.cs:
30759         * ListView.cs:
30760         * TextBoxBase.cs:
30761         * TreeView.cs:
30762         * ScrollableControl.cs:
30763         * ComboBox.cs: Add implicit controls using the new implict control
30764         functionality in ControlCollection. Also try to block multiple
30765         control add in a suspend/resume layout to save some cycles.
30766         
30767 2005-09-27  Jackson Harper  <jackson@ximian.com>
30768
30769         * Control.cs: Add functionality to the controls collection to add
30770         'implicit controls' these are controls that are created by the
30771         containing control but should not be exposed to the user. Such as
30772         scrollbars in the treeview.
30773         * Form.cs: The list var of the ControlsCollection is no longer
30774         available because of the potential of implicit controls getting
30775         ignored by someone accessing the list directly.
30776
30777 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
30778
30779         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
30780           loose it's parent. (Fixed bug introduced in r49103 when we added
30781           setting the child parent to null on Remove)
30782
30783 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
30784
30785         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
30786         * Splitter.cs: Added missing attributes for BorderStyle property.
30787         * TextBoxBase.cs: Marked Calculate* methods internal.
30788         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
30789         MS.NET.
30790
30791 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
30792          
30793         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
30794
30795 2005-09-25  Jackson Harper  <jackson@ximian.com>
30796
30797         * TreeView.cs: Update the node bounds correctly regardless of
30798         whether the node is visible.
30799
30800 2005-09-25  Jackson Harper  <jackson@ximian.com>
30801
30802         * ImageList.cs: Don't dispose the image after it is added to the
30803         image list. Only reformat images that need to be resized.
30804
30805 2005-09-25  Jackson Harper  <jackson@ximian.com>
30806
30807         * ImageList.cs: Don't set the format when changing the image.
30808
30809 2005-09-25  Jackson Harper  <jackson@ximian.com>
30810
30811         * TreeView.cs: We can't just assume the node has a font. Use the
30812         treeviews font if no node font is available.
30813
30814 2005-09-25  Jackson Harper  <jackson@ximian.com>
30815
30816         * TreeView.cs: Allow the scrollbars to be reset with negative
30817         values.
30818         - Don't add scrollbars to negative sized windows.
30819
30820 2005-09-23  Jackson Harper  <jackson@ximian.com>
30821
30822         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
30823         old Mono.Posix. Also remove some stray code that shouldn't have
30824         been committed.
30825
30826 2005-09-23  Jackson Harper  <jackson@ximian.com>
30827
30828         * TreeView.cs: Attempt at proper sizing of the horizontal
30829         scrollbar. Also don't resize the scrollbars unless they are
30830         visible.
30831
30832 2005-09-23  Jackson Harper  <jackson@ximian.com>
30833
30834         * TreeView.cs: We don't need to expand the invalid area when the
30835         selection changes, as this is all drawn in the node's bounding
30836         box. The area needs to be expanded (previous typo was contracting
30837         it) when the focus rect moves.
30838
30839 2005-09-23  Jackson Harper  <jackson@ximian.com>
30840
30841         * TreeView.cs: Display the selection box under the correct
30842         circumstances. We were rendering white text with no selection box
30843         before.
30844
30845 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
30846
30847         * TextControl.cs(Split): Now updates selection start/end if it points 
30848           into a line that's being split. Fixes a FIXME and bug #75258
30849
30850 2005-09-23  Jackson Harper  <jackson@ximian.com>
30851
30852         * Binding.cs:
30853         * ListControl.cs: Don't use the path when retrieving binding
30854         managers from the binding context. My bat sense tells me that the
30855         path is only used on insertion.
30856
30857 2005-09-22  Jackson Harper  <jackson@ximian.com>
30858
30859         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
30860
30861 2005-09-22  Jackson Harper  <jackson@ximian.com>
30862
30863         * Splitter.cs: There are special cursors used for splitting.
30864         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
30865
30866 2005-09-22  Jackson Harper  <jackson@ximian.com>
30867
30868         * Splitter.cs: Change the cursor appropriately when the splitter
30869         is moused over, so the user actually knows there is a splitter
30870         there.
30871
30872 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30873
30874        * Label.cs : Fix ToString method to give same output as MS.NET
30875
30876 2005-09-22  Jackson Harper  <jackson@ximian.com>
30877
30878         * TreeView.cs: Create the scrollbars when the handle is created
30879         and add them right away, just make them invisble. Also account for
30880         the window being shrunk vertically to the point that the vert
30881         scrollbar needs to be added.
30882         - Remove some 0.5 adjustments to get around anti aliasing issues.
30883         
30884 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
30885          
30886         * MainMenu.cs: Fixes default value
30887         * MenuItem.cs: Fixes default value
30888
30889 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
30890
30891         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
30892
30893 2005-09-21  Jackson Harper  <jackson@ximian.com>
30894
30895         * Control.cs: Don't try to set the border style on the window if
30896         it hasn't been created. When the window is created the border
30897         style will be used.
30898
30899 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
30900
30901         * Control.cs (Update): Don't call XplatUI if we don't have a
30902           window handle yet
30903
30904 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
30905
30906         * ContainerControl.cs: Instead of throwing an exception, print
30907           a one-time warning about Validate not being implemented
30908         * XplatUIWin32.cs: Removed debug output
30909
30910 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
30911
30912         * Control.cs: Only set XplatUI background if we expect the windowing
30913           system to handle the background. This stops controls that draw their
30914           own background from flickering
30915
30916         * XplatUIX11.cs: Support custom visuals and colormaps for window 
30917           creation. This allows, amongst other things, using MWF X11 windows 
30918           with OpenGL.
30919
30920 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
30921
30922         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
30923           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
30924           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
30925           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
30926           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
30927           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
30928           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
30929           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
30930           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
30931           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
30932           GridColumnStylesCollection.cs, 
30933           IDataGridColumnStyleEditingNotificationService.cs,
30934           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
30935           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
30936           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
30937           TreeNodeCollection.cs, AmbientProperties.cs, 
30938           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30939           DataObject.cs, ErrorProvider.cs, Splitter.cs,
30940           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
30941           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
30942           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
30943           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
30944           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
30945           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
30946           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
30947           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
30948           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
30949           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
30950           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
30951           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
30952           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
30953           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
30954           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
30955           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
30956           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
30957           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
30958           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
30959           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
30960           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
30961           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
30962           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
30963           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
30964           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
30965           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
30966           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
30967           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
30968           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
30969           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
30970           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
30971           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
30972           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
30973           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
30974           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
30975
30976 2005-09-21  Jackson Harper  <jackson@ximian.com>
30977
30978         * TreeNode.cs: Call Before/After Expand not Collapse when
30979         expanding.
30980
30981 2005-09-20  Jackson Harper  <jackson@ximian.com>
30982         
30983         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
30984
30985 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
30986          
30987         * ListViewItem.cs:
30988                 - Fixes bug 76120
30989                 - Fixes proper storing of subitems
30990                 - Fixes not updated items
30991
30992 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
30993
30994         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
30995           things if our window handle isn't created yet. Also disabled 
30996           debug for TextBoxBase
30997
30998 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
30999
31000         * MenuAPI.cs: Remove filtering of events to allow menu usage
31001
31002 2005-09-20  Miguel de Icaza  <miguel@novell.com>
31003
31004         * Cursor.cs: Allow null to be passed to Cursor.Current.
31005
31006 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
31007
31008         * ThemeWin32Classic.cs:
31009           - Change some private methods/fields to protected virtual so that 
31010             they can be accessed and overriden in derived classes
31011           - First refactoring of some methods. Derived themes now don't 
31012             need to duplicate the complete code from ThemeWin32Classic
31013         * ThemeNice.cs:
31014           - Added nice StatusBar
31015           - Derive from ThemeWin32Classic and not Theme
31016           - Removed duplicate ThemeWin32Classic code
31017
31018 2005-09-20  Miguel de Icaza  <miguel@novell.com>
31019
31020         * Control.cs (ControlCollection.Add): If the value null is passed
31021         the control is ignored. 
31022
31023         Optimize this loop.
31024
31025 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
31026
31027         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
31028           PostQuitMessage state.
31029         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
31030
31031 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
31032
31033         * Application.cs: Our constructor will never get called, move 
31034           initialization to fields; fixes bug #75933
31035
31036 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31037
31038         * FileDialog.cs :
31039                 - Allow files to be selected properly using file name
31040                 combo box.
31041                 - Add ability to change diretory (absolute / relative)
31042                 using file name combo box.
31043
31044 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
31045          
31046         * ListBox.cs: 
31047                 - Fixes Multicolumn listboxes item wrong calculations
31048                 - Allows to click when only one item is in the listbox
31049                 - Fixes crash when no items using keyboard navigation
31050
31051 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
31052
31053         * ComboBox.cs: Reverted almost everything from the latest patch which
31054           broke ComboBox
31055
31056 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
31057         
31058         * ToolTip.cs:
31059                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
31060         * ComboBox.cs:
31061                 - When DropDownStyle is Simple, it does not show scrollbar 
31062                 to the last item of the list.
31063                 - When DropDownStyle is Simple, it crashed when the list was 
31064                 scrolled down with the down cursor key.
31065                 - Fixed a bug that when DropDownStyle is DropDownList, the 
31066                 selected item was not shown.
31067                 - The position of the selected item was not preserved when 
31068                 the next dropdown happened.
31069         * ThemeWin32Classic.cs:
31070                 - Items were wrapped at the right end.
31071         * CheckedListBox.cs:
31072                 - Fixed Add method
31073         * ListBox.cs:
31074                 - Items should be fully shown.
31075                 - When resizing and vertical scrollbar disappeared, the item 
31076                 of index 0 should be on the top of the list.
31077                 - GetItemRectangle should consider the size of ver. scrollbar
31078         * StatusBar.cs:
31079                 - SizingGrip area should not be allocated when it is not 
31080                 displayed.
31081                 - Now it reflects MinWidth of the containing panel and 
31082                 fixed a crash that happens when its width becomes so small.
31083
31084 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
31085
31086         * CheckedListBox.cs: Fixes bug 76028
31087         * ListBox.cs: Fixes bug 76028
31088
31089 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
31090
31091         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
31092         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
31093
31094 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
31095
31096         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
31097
31098 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
31099
31100         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
31101
31102 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
31103
31104         * IRootGridEntry.cs: Added
31105         * PropertyGridCommands.cs: Added
31106         * PropertiesTab.cs: Added missing methods and property
31107         * PropertyGridView.cs: Made class internal
31108         * PropertyGridTextBox.cs: Made class internal
31109
31110 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31111
31112         * MimeIcon.cs: Try to check some other environment variables
31113           if "DESKTOP_SESSION" returns "default"
31114
31115 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31116
31117         * ThemeNice.cs: Corrected background colors (e.g. menus)
31118         * ColorDialog.cs: Use correct background colors for controls
31119
31120 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31121
31122         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
31123
31124 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
31125
31126         * RichTextBox.cs: Added initial implementation
31127         * lang.cs: Removed. Was accidentally checked in long time ago
31128         * TODO: Removed. Contents were obsolete
31129
31130 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
31131                                                                                 
31132         * PropertiesTab.cs : Added
31133
31134 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
31135                                                                                 
31136         * PropertyGrid.cs : Update
31137         * PropertyGridView.cs : Update
31138         * System.Windows.Forms.resx : Added images and strings
31139
31140 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
31141
31142         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
31143  
31144 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
31145
31146         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
31147           a busy loop right after the Ungrab the X11 display is otherwise 
31148           blocked
31149
31150 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
31151
31152         * ThemeWin32Classic.cs: Optimise the use of clipping
31153
31154 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
31155
31156         * DataGrid.cs: fixes recursion bug
31157
31158 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
31159
31160         * ThemeNice.cs: 
31161           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
31162           - Cleanup
31163
31164 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
31165
31166         * ThemeNice.cs: Draw nice ProgressBars
31167
31168 2005-09-01  Miguel de Icaza  <miguel@novell.com>
31169
31170         * VScrollBar.cs: Another buglet found by Aaron's tool. 
31171
31172         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
31173         bug finder.
31174
31175 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
31176
31177         * ThemeNice.cs:
31178           - Added nicer menu drawing
31179           - Updated DrawTab
31180           - some refactoring
31181
31182 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
31183
31184         * CreateParams.cs (ToString): Made output match MS
31185         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
31186             handle is already created (to avoid forcing window creation)
31187         * XplatUIX11.cs: Set window text to caption after creating window,
31188           in case Text was set before window was created
31189         * Form.cs: Use this.Text instead of a static string as caption
31190
31191 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
31192
31193         * NotifyIcon.cs: Don't set the window to visible; this screws
31194           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
31195           OnPaint without a bitmap)
31196         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
31197           happen very often anyway; we could add the check to the WM_PAINT 
31198           event generation code
31199
31200 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
31201
31202         * NotifyIcon.cs: Fill the icon area with a background color, to 
31203           avoid 'residue' when transparent icons are drawn
31204         * XplatUIX11.cs:
31205           - Handle whole_window == client_window when destroying windows
31206           - SystrayAdd(): Set client_window to whole_window value to
31207             get mouse and other events passed to NotifyIcon
31208
31209 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
31210
31211         * Form.cs: Set proper default for Opacity property
31212         * NotifyIcon.cs:
31213           - ShowSystray(): Don't bother creating telling the OS
31214             about the systray item if no icon is provided
31215           - Now handles WM_NCPAINT message to deal with whole/client window
31216             split
31217           - Create window as visible to not get caught by Expose optimization
31218         * Hwnd.cs: Removed debug message
31219         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
31220           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
31221             PaintEventStart/End to use new client argument
31222         * TextBoxBase.cs:
31223           - Commented out debug messages
31224           - Switched PaintEventStart/End to use new client argument
31225         * XplatUI.cs: Added client window bool to PaintEventStart()/
31226           PaintEventEnd() calls, to support drawing in non-client areas
31227         * XplatUIDriver.cs: 
31228           - Added client window bool to PaintEventStart()/PaintEventEnd() 
31229             calls, to support drawing in non-client areas
31230           - Added conditional compile to allow using MWF BeginInvoke 
31231             on MS runtime
31232         * XplatUIX11.cs:
31233           - Added some conditional debug output
31234           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
31235             whole/client window split
31236           - Implemented handling of client argument to PaintEventStart()/End()
31237         * Control.cs:
31238           - Throw exception if BeginInvoke() is called and the window handle
31239             or one of the window's parent handles is not created
31240           - Added conditional compile to allow using MWF BeginInvoke on
31241             MS runtime
31242           - get_Parent(): Only sets parent if handle is created. This avoids
31243             forcing window handle creation when parent is set.
31244           - Now fires Layout and Parent changed events in proper order
31245           - Switched to use Handle instead of window.Handle for Z-Order setting,
31246             the get_Parent() patch above causes us to possibly get null for 'window'
31247           - Implemented handling of client argument to PaintEventStart()/End()
31248           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
31249             default handling)
31250           - Now sends a Refresh() to all child windows when Refresh() is called
31251
31252 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
31253
31254         * Form.cs: Added (non-functional) Opacity property
31255         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
31256
31257 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
31258         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
31259           use export MONO_THEME=nice to activate it.
31260           Currently supported controls:
31261           - Button
31262           - ComboBox
31263           - ScrollBar
31264           - TabControl (TabAlignment.Top only, other will follow)
31265         * ThemeEngine.cs: Add theme nice
31266         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
31267           if enabled
31268
31269 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
31270
31271         * Splitter.cs: Resize docked control and its neighbor.
31272
31273 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31274         -- Making Windows with Menus layout correctly --
31275         * Form.cs : The first leg of the fix
31276                 Menu setter - adjust Client Size as needed to make space for the menu
31277                 SetClientSizeCore - doesn't call base version to be able to pass the 
31278                         menu handle to XplatUI.CalculateWindowRect
31279         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
31280         * XplatUIX11.cs: The critical second leg of the fix
31281                 GetWindowPos needs to use a recalculated client_rect
31282                 so that resizing the window doesn't break layout of child controls. 
31283                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
31284                 Lots of \t\n killed
31285
31286 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
31287
31288         * Label.cs: Now properly recalculates width and height on Font and Text
31289           changes if AutoSize is set
31290
31291 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31292         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
31293
31294 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
31295
31296         * ImageList.cs: Makes ToString method compatible with MS
31297
31298 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
31299
31300         * MenuAPI.cs: fixes bug 75716
31301
31302 2005-08-11 Umadevi S <sumadevi@novell.com>
31303         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
31304
31305 2005-08-11 Umadevi S <sumadevi@novell.com>
31306         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
31307
31308 2005-08-10  Umadevi S <sumadevi@novell.com>
31309         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
31310
31311 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
31312
31313         * Menu.cs: fixes bug 75700
31314         * MenuAPI.cs: fixes navigation issues
31315
31316 2005-08-09  Umadevi S <sumadevi@novell.com>
31317         * CheckedListBox.cs - simple fix for GetItemChecked.
31318
31319 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
31320
31321         * ComboBox.cs: Serveral fixes
31322         * ListBox.cs: Serveral fixes
31323
31324 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
31325
31326         * ComboBox.cs: Fixes FindString methods and GetItemHeight
31327         * ListBox.cs: Fixes FindString methods
31328
31329 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
31330
31331         * DataGrid.cs: fixes bugs exposed by new tests
31332
31333 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
31334
31335         * Mime.cs: Compile Mono assembly references only if compiling
31336           with Mono (Allows to build with VS.Net again)
31337
31338 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
31339
31340         * Control.cs (PaintControlBackground): Draw background image
31341         corrrectly.
31342         (CheckForIllegalCrossThreadCalls): Stubbed.
31343         
31344         * Form.cs (OnCreateControl): Center when should be centered.
31345         
31346         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
31347
31348 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
31349
31350         * Binding.cs: Binding to properties should be case unsensitive
31351
31352 2005-07-18 vlindos@nucleusys.com
31353
31354         * DataGrid.cs: fixes setmember order
31355
31356 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
31357
31358         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
31359         * FileDialog.cs: FileDialog is now resizable and uses the new
31360           MimeIconEngine
31361
31362 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
31363
31364         * DataGridTextBoxColumn.cs: default value
31365         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
31366         * GridTableStylesCollection.cs: fixes checking MappingName
31367         * DataGridDrawingLogic.cs: fixes drawing logic issues
31368         * DataSourceHelper.cs: rewritten to make compatible with more data sources
31369         * DataGrid.cs: fixes    
31370
31371 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
31372
31373         * MimeGenerated.cs: Use case sensitive comparer for
31374           NameValueCollections
31375
31376 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
31377
31378         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
31379         * ThemeWin32Classic.cs: bug fixes, code refactoring
31380         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
31381         * DataGrid.cs: bug fixes, code refactoring
31382         * DataGridTextBox.cs: bug fixes, code refactoring
31383         * DataGridColumnStyle.cs:  bug fixes, code refactoring
31384         * Theme.cs:  bug fixes, code refactoring
31385
31386 2005-07-01  Peter Bartok  <pbartok@novell.com> 
31387
31388         * TextControl.cs: Quick fix for the reported crash on ColorDialog
31389           and other text box usage
31390
31391 2005-07-01  Jackson Harper  <jackson@ximian.com>
31392
31393         * TabControl.cs: Make sure the bottom of the tab covers the pages
31394         border.
31395
31396 2005-06-30  Peter Bartok  <pbartok@novell.com> 
31397
31398         * Form.cs (ShowDialog): Assign owner of the dialog
31399         * TextBoxBase.cs: Always refresh caret size when deleting, caret
31400           might have been moved to a tag with different height
31401
31402 2005-06-30  Jackson Harper  <jackson@ximian.com>
31403
31404         * Form.cs: Don't create an infinite loop when setting focus
31405         * MenuItem.cs: Don't dirty the parents if we don't have any
31406
31407 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
31408
31409         * LibSupport.cs: Rename
31410
31411 2005-06-29  Peter Bartok  <pbartok@novell.com>
31412
31413         * TextBoxBase.cs: Re-align caret after deleting a character
31414         * TextControl.cs:
31415           - DeleteChars(): Ensure that tag covers the provided position
31416           - StreamLine(): Drop reference for dropped tag
31417
31418 2005-06-29  Peter Bartok  <pbartok@novell.com> 
31419
31420         * TextControl.cs: 
31421           - Selections now work properly, anchoring at the initial location
31422             and properly extending in either direction (SetSelectionToCaret(),
31423             SetSelectionStart() and SetSelectionEnd())
31424           - No longer redraws the whole control on selection change, now
31425             calculates delta between previous and new selection and only
31426             invalidates/redraws that area
31427           - Fixed FindPos() math off-by-one errors
31428           - Changed DeleteChars() to verify the provided tag covers the
31429             provided position, selections may have a tag that doesn't cover
31430             the position if the selection is at a tag border
31431           - Fixed off-by-one errors in DeleteChars()
31432           - Added missing streamlining check in DeleteChars() to remove
31433             zero-length tags
31434           - Implemented Invalidate() method, now properly calculates exposures
31435             between two given lines/positions
31436           - Implemented SetSelection()
31437           - Obsoleted and removed FixupSelection()
31438           - Improved RecalculateDocument() logic, removing code duplication
31439
31440 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31441
31442         * LibSupport.cs: changes to match different input/output arguments.
31443
31444 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31445
31446         * LibSupport.cs: added libsupport.so init routine.
31447
31448 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
31449         
31450         * ControlBindingsCollection.cs
31451                 - Throws an exception on null datasource when adding
31452                 - Checks for duplicated bindings when adding
31453
31454 2005-06-28  Jackson Harper  <jackson@ximian.com>
31455
31456         * TreeView.cs (OnKeyDown): Support left and right properly
31457         (navigates as well as expanding and collapsing.
31458         - Add support for Multiply, this expands all the selected nodes
31459         children.
31460         - Fix some tabbing.
31461
31462 2005-06-28  Jackson Harper  <jackson@ximian.com>
31463
31464         * TreeView.cs: Implement keyboard navigation, currently supports,
31465         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
31466         support for toggling checkboxes with the space bar.
31467
31468 2005-06-28  Jackson Harper  <jackson@ximian.com>
31469
31470         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
31471         tree.
31472
31473 2005-06-28  Jackson Harper  <jackson@ximian.com>
31474
31475         * TreeView.cs: Add missing event.
31476
31477 2005-06-27  Peter Bartok  <pbartok@novell.com> 
31478
31479         * TextControl.cs:
31480           - Made line ending size configurable (now allows for counting 
31481             lineendings as \n or \r\n)
31482           - Added margin to viewport to keep caret visible on right side
31483           - Fixed translation routines for line/pos to documentpos to consider
31484             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
31485           - Fixed some line-endings to be unix style
31486           - Fixed Document.FormatText to perform it's calculations 1-based
31487           - Added descriptions for a few methods that might otherwise get 
31488             used wrong
31489           - Added NOTE section with some basic conventions to remember at 
31490             the top of the file
31491           - Major fixup for RichTextBox selection drawing:
31492             * Fixed crashes when multiple tags on a single line were selected
31493             * fixed selection box drawing not overlaying text
31494             * fixed bogus offset calculation for tags not starting at index 1
31495             * Switched behaviour from using multiple Substrings of a 
31496               StringBuilder.ToString() to using multiple 
31497               StringBuilder.ToString(start, length) statements, hoping this is
31498               faster (kept original version commented out in the code, in case
31499               original version was faster)
31500         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
31501           alignment != Left
31502         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
31503           call it as well
31504
31505 2005-06-27  Jackson Harper  <jackson@ximian.com>
31506
31507         * TabControl.cs: Move to the left and right with the arrow
31508         keys. These keys don't cycle beyond first and last like
31509         tab. Refresh all the tabs when scrolling them to the left or
31510         right.
31511
31512 2005-06-27  Jackson Harper  <jackson@ximian.com>
31513
31514         * TabControl.cs:
31515           - ToString: Added method
31516           - CreateParams: Remove TODO and comment
31517           - OnKeyDown: Cycle through bounds properly.
31518           - SelectedIndex: Scroll to the right or left if we need to
31519           display the newly selected tab.
31520
31521 2005-06-23  Jackson Harper  <jackson@ximian.com>
31522
31523         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
31524         set.
31525
31526 2005-06-23  Jackson Harper  <jackson@ximian.com>
31527
31528         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
31529         CTRL-SHIFT-TAB, and HOME, END are there any others?
31530
31531 2005-06-23  Jackson Harper  <jackson@ximian.com>
31532
31533         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
31534
31535 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
31536         
31537         * DataGridTextBoxColumn.cs: fixes and enhancements
31538         * ThemeWin32Classic.cs: fixes and enhancements
31539         * DataGridBoolColumn.cs:  fixes and enhancements
31540         * DataGridDrawingLogic.cs:  fixes and enhancements
31541         * CurrencyManager.cs: fixes and enhancements
31542         * DataGrid.cs: fixes and enhancements
31543         * DataGridColumnStyle.cs:  fixes and enhancements
31544
31545 2005-06-22  Jackson Harper  <jackson@ximian.com>
31546
31547         * TabControl.cs: Add some missing methods that just call into the
31548         base. Make the TabPageCollection's IList interface behave in the
31549         same manner as the MS implementation.
31550
31551 2005-06-22  Peter Bartok  <pbartok@novell.com> 
31552
31553         * TextControl.cs: Added sanity check
31554         * TextBoxBase.cs: 
31555           - Fixed wrapping behaviour, don't set wrap on single line controls
31556             (this fixes the breakage of colordialog introduced in an earlier
31557              checkin)
31558           - Added rudimentary support for autoscrolling right-aligned controls
31559             (still needs fixing, also, center alignment scroll is missing)
31560
31561 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
31562         
31563         * ScrollBar.cs: Fixes thumbpos on Maximum values
31564
31565 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
31566         
31567         * PropertyGridView.cs: Pass context information to UITypeEditors 
31568
31569 2005-06-21  Peter Bartok  <pbartok@novell.com> 
31570
31571         * TextBoxBase.cs:
31572           - Now calling PositionCaret with absolute space coordinates
31573           - Enabled vertical scrolling
31574           - Better tracking of scrollbar changes, tied into WidthChange
31575             event
31576           - Improved cursor tracking
31577           - Removed debug output
31578         * TextControl.cs:
31579           - PositionCaret coordinates are now works in absolute space, not 
31580             the canvas
31581           - Improved tracking of document size
31582           - Added events for width and height changes
31583
31584 2005-06-21  Peter Bartok  <pbartok@novell.com>
31585
31586         * Form.cs: Set focus to active control when form is activated
31587         * TextControl.cs: 
31588           - Added word-wrap functionality to RecalculateLine() 
31589           - Added some short function descriptions for VS.Net to aid in
31590             writing dependent controls
31591           - Added Caret property, returning the current coords of the caret
31592           - Added ViewPortWidth and ViewPortHeight properties
31593           - Added Wrap property
31594           - Added CaretMoved event
31595           - Removed some old debug code
31596           - Split() can now create soft splits
31597           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
31598           - Added method to format existing text
31599           - Fixed size/alignment calculations to use viewport
31600           - RecalculateDocument now can handle changing line-numbers while
31601             calculating lines
31602
31603         * TextBox.cs:
31604           - Added some wrap logic, we don't wrap if alignment is not left
31605           - Added casts for scrollbar var, base class switched types to
31606             also support RichTextBoxA
31607           - Implemented handling of scrollbar visibility flags
31608
31609         * TextBoxBase.cs:
31610           - Switched scrollbars type to RichTextBoxScrollBars to support
31611             RichTextBox
31612           - Added tracking of canvas width/height
31613           - Switched scrollbars to be not selectable (to keep focus on text)
31614           - Added central CalculateDocument() method to handle all redraw
31615             requirements
31616           - Added ReadOnly support
31617           - Added WordWrap support
31618           - Fixed handling of Enter key (we now treat it as a DialogKey)
31619           - Fixed caret positioning when h or v scroll is not zero
31620           - Fixed placing/generation of vertical scrollbar
31621           - Added CalculateScrollBars() method to allow updating scrollbar
31622             limits and visibility
31623           - Fixed handling of horizontal scroll
31624           - Added handling of vertical scroll
31625           - Implemented auto-'jump' when caret moves to close to a left or
31626             right border and there is text to be scrolled into view (currently
31627             there's the potential for a stack overflow, until a bug in
31628             scrollbar is fixed)
31629
31630 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
31631         
31632         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
31633
31634 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
31635
31636         * Mime.cs:
31637         - added inodes.
31638         - return application/x-zerosize for files with size zero
31639           (if no extension pattern matches).
31640         - check matches collection for strings too.
31641         - return only the first mime type if the name value
31642           collection has more than one mime type.
31643
31644 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
31645         
31646         * PropertyGrid.cs: Cleaned up some TODOs
31647         * PropertyGridView.cs: Added support for UITypeEditors
31648
31649 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
31650         
31651         * DataGrid.cs: clears cached value
31652
31653 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
31654
31655         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
31656         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
31657         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
31658         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
31659         
31660 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
31661
31662         * ThemeWin32Classic.cs: fixes colour
31663
31664 2005-06-15  Peter Bartok  <pbartok@novell.com>
31665
31666         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
31667         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
31668         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
31669         * Control.cs: Added some MWFCategory and MWFDescription attributes
31670         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
31671
31672 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
31673
31674         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
31675         usage
31676
31677 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
31678
31679         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
31680         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
31681         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
31682         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
31683         * DataGrid.cs: default datagrid settings for Default Styles, fixes
31684         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
31685
31686 2005-06-13  Jackson Harper  <jackson@ximian.com>
31687
31688         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
31689         isn't printed when the user enables dropping. (X11 does accept
31690         drops).
31691         
31692 2005-06-13  Jackson Harper  <jackson@ximian.com>
31693
31694         * TreeView.cs: Remove some TODOS.
31695
31696 2005-06-13  Jackson Harper  <jackson@ximian.com>
31697
31698         * Form.cs: Hook into the mdi framework.
31699         * MdiClient.cs: Use the base control collections add method so
31700         parents get setup correctly. Set the default back colour and dock
31701         style.
31702         * MdiChildContext.cs: New class, this bad actor handles an
31703         instance of an MDI window. Right now there is only basic
31704         support. You can drag, close, and resize windows. Minimize and
31705         Maximize are partially implemented.
31706
31707 2005-06-13  Jackson Harper  <jackson@ximian.com>
31708
31709         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
31710         freaky when both vals are negative. NOTE: There are probably other
31711         places in XplatUIX11 that this needs to be done.
31712
31713 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
31714
31715         * DataGrid.cs: implement missing methods, move KeyboardNavigation
31716         * DataGridColumnStyle.cs: fixes signature
31717
31718 2005-06-12  Jackson Harper  <jackson@ximian.com>
31719
31720         * XplatUIX11.cs: Use sizing cursors similar to the ones on
31721         windows.
31722
31723 2005-06-11  Jackson Harper  <jackson@ximian.com>
31724
31725         * StatusBarPanel.cs: Signature cleanups. Implement
31726         BeginInit/EndInit.
31727
31728 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
31729
31730         * DataGridTextBoxColumn.cs: Honors aligment
31731         * GridColumnStylesCollection.cs: Contains is case unsensitive
31732         * GridTableStylesCollection.cs: several fixes
31733         * DataGridTableStyle.cs: default column creation
31734         * DataGridDrawingLogic.cs: fixes
31735         * CurrencyManager.cs: ListName property
31736         * DataGrid.cs: multiple styles support
31737         * DataGridColumnStyle.cs: fixes
31738         
31739
31740 2005-06-10  Peter Bartok  <pbartok@novell.com>
31741
31742         * Control.cs(Select): Moved SetFocus call to avoid potential
31743           loops if controls change the active control when getting focus
31744         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
31745           the up/down buttons
31746
31747 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
31748
31749         * ImageListConverter.cs: Implemented
31750
31751 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
31752
31753         * MonthCalendar.cs: Wired in NumericUpDown control for year
31754
31755 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
31756
31757         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
31758           DoubleClick events, since they are not meant to be fired.
31759
31760 2005-06-09  Peter Bartok  <pbartok@novell.com>
31761
31762         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
31763           Jonathan's standalone controls into MWF, implemented missing
31764           events, attributes and methods; added xxxAccessible classes
31765         * AccessibleObject.cs: Made fields internal so other classes
31766           can change them if needed
31767
31768 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
31769
31770         * UpDownBase.cs: Complete implementation
31771         * NumericUpDown.cs: Complete implementation
31772         * DomainUpDown.cs: Complete implementation
31773
31774 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
31775
31776         * DataGridTextBoxColumn.cs: drawing fixes
31777         * DataGridCell.cs: fixes ToString method to match MSNet
31778         * DataGridTableStyle.cs: fixes
31779         * DataGridBoolColumn.cs: fixes, drawing
31780         * DataGridDrawingLogic.cs: fixes, new methods
31781         * DataGridTextBox.cs: Keyboard and fixes
31782         * DataGrid.cs:
31783                 - Keyboard navigation
31784                 - Scrolling fixes
31785                 - Row selection (single, multiple, deletion, etc)
31786                 - Lots of fixes
31787         
31788 2005-06-07  Jackson Harper  <jackson@ximian.com>
31789
31790         * ThemeWin32Classic.cs: Clear the background area when drawing
31791         buttons.
31792
31793 2005-06-06  Peter Bartok  <pbartok@novell.com>
31794
31795         * ImageListStreamer.cs: Fixed signature for GetData
31796         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
31797         * ComboBox.cs:
31798           - Added missing ChildAccessibleObject class
31799           - Added missing OnXXXFocus overrides, switched to using those
31800             instead of the event handler
31801         * Control.cs:
31802           - Added Parent property for ControlAccessibleObject
31803           - Fixed signatures
31804           - Fixed attributes
31805           - Added ResetBindings()
31806         * ListBindingConverter.cs: Implemented some methods
31807         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
31808         * ImageList.cs: Implemented basic handle scheme, removed TODOs
31809         * ContainerControl.cs: Fixed signature, now subscribing to the
31810           ControlRemoved event instead of overriding the handler, LAMESPEC
31811         * CurrencyManager.cs: Added missing attribute
31812         * MonthCalendar.cs: Added missing properties
31813
31814 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
31815
31816         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
31817         
31818 2005-06-06  Gaurav Vaish and Ankit Jain
31819
31820         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
31821         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
31822         
31823 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
31824
31825         * Control.cs: fixes CreateParams Width / Height.
31826
31827 2005-06-05  Peter Bartok  <pbartok@novell.com>
31828
31829         * Win32DnD.cs: Removed compilation warnings
31830
31831 2005-06-05  Peter Bartok  <pbartok@novell.com>
31832
31833         * Control.cs (CreateParams): Since we don't know if one of the
31834           properties we use is overridden, lets make sure if we fail accessing
31835           we continue with a backup plan
31836
31837 2005-06-05  Peter Bartok  <pbartok@novell.com>
31838
31839         * Win32DnD.cs:
31840           - Removed debug output
31841           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
31842             struct
31843           - Plugged resource leak
31844         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
31845           MS size
31846
31847 2005-06-05  Peter Bartok  <pbartok@novell.com>
31848
31849         * XplatUIWin32.cs: Removed DnD code
31850         * Win32DnD.cs: Implemented drop source and drop target functionality
31851
31852 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31853
31854         * UpDownBase.cs: remove duplicate addition of event, enable some code
31855         that was commented out.
31856         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
31857         Validate input when a key is pressed. It works fine now for every
31858         combination of Hexadecimal. Only missing some drawing love when sharing
31859         space with other controls.
31860
31861 2005-06-04  Peter Bartok  <pbartok@novell.com>
31862
31863         * Control.cs:
31864           - We need to pass a window for DragDrop, so enable callback events
31865           - Added DnD callback events when being a DragSource
31866         * XplatUI.cs (StartDrag): Added window handle argument
31867         * XplatUIDriver.cs (StartDrag): Added window handle argument
31868         * QueryContinueDragEventArgs: Made fields internally accessible so
31869           drivers can set them
31870         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
31871           can set them
31872
31873 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
31874
31875         * DataGridTextBoxColumn.cs: column text editing
31876         * DataGridTableStyle.cs: Respect columns styles created by the user
31877         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
31878         * DataGridBoolColumn.cs: bool column editing
31879         * DataGrid.cs: fixes to scrolling, properties, etc
31880         * DataGridTextBox.cs: handle keyboard
31881         * DataGridColumnStyle.cs: fixes
31882
31883 2005-06-02  Jackson Harper  <jackson@ximian.com>
31884
31885         * ImageListStreamer.cs: Somewhat broken implementation of
31886         GetObjectData. The RLE needs some work to match MS properly.
31887
31888 2005-06-02  Jackson Harper  <jackson@ximian.com>
31889
31890         * X11Dnd.cs: Attempting to keep at least one file in MWF
31891         monostyled.
31892
31893 2005-06-02  Peter Bartok  <pbartok@novell.com>
31894
31895         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
31896           that way
31897
31898 2005-06-02  Peter Bartok  <pbartok@novell.com>
31899
31900         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
31901         * XplatUI.cs: Added DoDragDrop() method
31902         * XplatUIDriver.cs: Added DoDragDrop() method
31903
31904 2005-06-02  Jackson Harper  <jackson@ximian.com>
31905
31906         * Splitter.cs: Implement BorderStyle.
31907
31908 2005-06-02  Jackson Harper  <jackson@ximian.com>
31909
31910         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
31911         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
31912         X11 using XDND.
31913
31914 2005-06-02  Peter Bartok  <pbartok@novell.com>
31915
31916         * DataObject.cs:
31917           - Added Data setter
31918           - Fixed broken insertion code for SetData, now also
31919             overwrites any existing entry of the same format name
31920         * Hwnd.cs: Added list of pointers that automatically gets
31921           freed when the window is disposed
31922         * XplatUI.cs: Call driver initialization method when loading
31923           a driver
31924         * Control.cs:
31925           - OnDragLeave takes EventArgs, not DragEventArgs
31926           - Added setting of WS_EX_ACCEPTFILES style when dropping is
31927             supported
31928           - Forces style update when drop state changes
31929         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
31930           not perfect since we cannot (yet) call the IDataObject.GetData()
31931           method, we keep getting 0x80004005 error, dunno why)
31932
31933 2005-06-02  Peter Bartok  <pbartok@novell.com>
31934
31935         * DragEventArgs.cs: Make fields internal so we can cache the
31936           object and re-set the fields from XplatUI
31937
31938 2005-06-02  Jackson Harper  <jackson@ximian.com>
31939
31940         * Control.cs: Add some internal methods so the DnD subsystem can
31941         raise DnD events. Also call into the driver when AllowDrop is set.
31942         * XplatUI.cs:
31943         * XplatUIDriver.cs: New method for setting whether or not a window
31944         is allowed to accept drag and drop messages.
31945                 
31946 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
31947         
31948         * ScrollBar.cs: Make sure that values sent in Scroll events
31949         are always between Maximum and Minimum.
31950
31951 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
31952
31953         * Menu.cs: Call MenuChanged when menuitem visibility has been
31954         changed.
31955         * MenuItem.cs: Rebuild menu when item is (not) visible.
31956         * MainMenu.cs: MainMenu has special MenuChanged.
31957         * Theme.cs: Caption and FrameBorderSize are not fixed.
31958         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
31959         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
31960         * XplatUIX11.cs,
31961         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
31962         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
31963
31964 2005-05-30  Jackson Harper  <jackson@ximian.com>
31965
31966         * DataFormat.cs: We can't statically initialize this stuff because
31967         it calls into the xplatui and could create a loop. So we lazy init
31968         it.
31969
31970 2005-05-28  Jackson Harper  <jackson@ximian.com>
31971
31972         * Control.cs: Proper implementation of Product(Name/Version).
31973
31974 2005-05-27  Jackson Harper  <jackson@ximian.com>
31975
31976         * DataObject.cs: Dont crash if no data is found.
31977
31978 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
31979         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
31980                 as per status page, guessing it should be set to true
31981
31982 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
31983
31984         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
31985         * DataGridTableStyle.cs: set proper formatting text, def header text
31986         * ThemeWin32Classic.cs: new themable paramaters
31987         * DataGridBoolColumn.cs: paint check box, get data, fixes
31988         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
31989         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
31990         * DataGridColumnStyle.cs: fixes
31991         * Theme.cs: new themable paramaters
31992                 
31993 2005-05-26  Peter Bartok  <pbartok@novell.com>
31994
31995         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
31996
31997 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31998         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
31999
32000 2005-05-24  Peter Bartok  <pbartok@novell.com>
32001
32002         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
32003           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
32004           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
32005           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
32006           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
32007           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
32008           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
32009           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
32010           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
32011           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
32012           missing attributes, etc
32013         * DataGridPreferredColumnWidthTypeConverter.cs: Added
32014
32015 2005-05-24  Peter Bartok  <pbartok@novell.com>
32016
32017         * Help.cs: Added, implemented trivial functions, throws up MessageBox
32018           when user tries to get help
32019         * DataObject.cs, DataFormats.cs, LinkArea.cs,
32020           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
32021           to suppress warnings
32022         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
32023           avoid unreachable code warning
32024
32025 2005-05-20  Peter Bartok  <pbartok@novell.com>
32026
32027         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
32028
32029 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32030
32031         * DataGridTextBoxColumn.cs: Basic painting methods
32032         * DataGridTableStyle.cs: Set table style in the column
32033         * ThemeWin32Classic.cs: Use Theme for colors
32034         * DataGridDrawingLogic.cs: Implement more drawing
32035         * DataGrid.cs: drawing, theming, enhacements, fixes
32036         * DataGridColumnStyle.cs: fixes, drawing
32037         * Theme.cs: theming for Datagrid
32038
32039 2005-05-20  Peter Bartok  <pbartok@novell.com>
32040
32041         * Cursor.cs: Implemented GetObjectData() method
32042
32043 2005-05-20  Peter Bartok  <pbartok@novell.com>
32044
32045         * Cursors.cs: Added setting of cursor name
32046         * Cursor.cs:
32047           - Implemented constructors
32048           - Implemented Draw and DrawStretched
32049           - Implemented Current property
32050           - Implemented == and != operators
32051           - Implemented Dispose()
32052           - Implemented ToString
32053           - Added missing attributes
32054         * XplatUIX11.cs:
32055           - Added missing reset for OverrideCursor when DoEvents is called
32056           - Fixed creation of cursor, logic was wrong
32057         * XplatUIWin32.cs:
32058           - Added missing reset for OverrideCursor when DoEvents is called
32059           - Fixed creation of cursor, bit arrays were swapped
32060         * Clipboard.cs: Removed obsolete MonoTODO attribute
32061
32062 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32063
32064         * ComboBox.cs: fixes OnSelectedItemChanged
32065         * ControlBindingsCollection.cs: fixes item range check
32066
32067 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32068
32069         * UpDownBase.cs:
32070                 - Calc preferred height properly
32071                 - Implement missing properties
32072                 
32073         * NumericUpDown.cs: Implement missing events
32074
32075 2005-05-19  Jackson Harper  <jackson@ximian.com>
32076
32077         * TabControl.cs: New method that resizes the tab pages before
32078         redrawing them. This as needed as the control is double buffered
32079         and sizing will not be recalculated unless ResizeTabPages is
32080         called.
32081         * TabPage.cs: Set base.Text instead of Text in the constructor so
32082         that UpdateOwner does not get called. Use the new Redraw method of
32083         TabControl instead of Refresh so the sizing is recalculated.
32084         * ThemeWin32Classic.cs: Draw the text for button tabs.
32085
32086 2005-05-19  Jackson Harper  <jackson@ximian.com>
32087
32088         * Control.cs: Paint control background images. Fix typo where
32089         PaintControlBackground was not getting called correctly.
32090
32091 2005-05-19  Peter Bartok  <pbartok@novell.com>
32092
32093         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
32094           I can investigate, apparently I broke FileDialog
32095
32096 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
32097
32098         * AxHost.cs: Some simple properties.
32099         * Control.cs: window must be accessible after ctor.
32100         * Form.cs: Added TransparencyKey property.
32101         * TextBoxBase.cs: Implemented Clear. Text property can be null.
32102         * XplatUIWin32.cs: SetBorderStyle implemented.
32103
32104 2005-05-18  Peter Bartok  <pbartok@novell.com>
32105
32106         * DataObject.cs: Entries are not global but particular to the
32107           DataObject, now it behaves that way
32108         * XplatUIWin32.cs: Implemented Clipboard methods
32109         * Clipboard.cs: Implemented
32110         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
32111         * XplatUIOSX.cs: Updated to final clipboard prototypes
32112         * XplatUIX11.cs: Implemented Clipboard methods
32113         * XplatUIDriver.cs: Updated to final clipboard prototypes
32114         * XplatUIStructs.cs:
32115           - Added BITMAPINFOHEADER struct
32116           - Added ClipboardFormats enum
32117         * X11Structs.cs:
32118           - Added ClipboardStruct
32119           - Added Atom enum items for clipboard types
32120           - Fixed atom types for Selection event structures
32121         * DataFormats.cs:
32122           - Added internal properties and methods for drivers to enumerate
32123             all known formats
32124           - Switched initialization method to allow drivers to assign their
32125             own IDs even for the MS predefined clipboard IDs
32126         * XplatUI.cs: Updated to final clipboard interface
32127
32128 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32129         * PropertyGridView.cs: Fixed compiler warnings.
32130
32131 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32132         * PropertyGrid.cs: Added some event calls
32133         * PropertyGridView.cs: Change drawing code to use double buffering
32134         * PropertyGridTextBox.cs: Changed Text property name
32135         * GridItem.cs: Added Bounds property.
32136         * GridEntry.cs: Added Bounds property.
32137
32138 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
32139
32140         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
32141         since GetType() may not return the correct type if the object is
32142         a remoting proxy.
32143
32144 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
32145
32146         * TreeNodeCollection.cs: fixes get/set item ranges
32147         
32148 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
32149
32150         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
32151                 
32152 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
32153
32154         * ComboBox.cs: Fix item range comparation
32155         * ListView.cs: Fix item range comparation
32156
32157 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
32158
32159         * FontDialog.cs:
32160           - Clear example panel when OnPaint is called
32161           - Better solution for displaying the example panel text
32162           - Select default indexes in the ListBoxes
32163
32164 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
32165
32166         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
32167
32168 2005-05-11  Peter Bartok  <pbartok@novell.com>
32169
32170         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
32171         * SelectionRangeConverter.cs: Implemented
32172         * PropertyGrid.cs: Fixed attribute value
32173         * Control.cs:
32174           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
32175           - Added Sebastien Pouliot's CAS Stack Propagation fixes
32176         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
32177           that's common to all drivers. First methods to go there are
32178           Sebastien Pouliot's CAS Stack Propagation helper methods
32179         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
32180           Sebastien Pouliot for CAS Stack Propagation
32181
32182 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
32183
32184         * OSXStructs.cs:
32185           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
32186
32187 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
32188
32189         * DataGridTextBoxColumn.cs: fixed some members
32190         * GridColumnStylesCollection.cs: indexed column is case insensitive
32191         * DataGridTableStyle.cs: fixes
32192         * ThemeWin32Classic.cs: add new theme parameter
32193         * Theme.cs: add new theme parameter
32194         * DataGridDrawingLogic.cs: Datagrid's drawing logic
32195         * DataGrid.cs: fixes, new internal properties, etc.
32196         * DataGridColumnStyle.cs: allows to set grid value
32197         *
32198
32199 2005-05-10  Peter Bartok  <pbartok@novell.com>
32200
32201         * AccessibleObject.cs:
32202           - Removed MonoTODO attribute on help, method is correct
32203           - Fixed Bounds property
32204         * AxHost.cs: Moved MonoTODO
32205         * ButtonBase.cs: Now setting AccessibleObject properties
32206         * RadioButton.cs: Setting proper AccessibleObject role
32207         * CheckBox.cs: Setting proper AccessibleObject role
32208         * ControlBindingsCollection.cs: Added properties, methods and attributes
32209         * DataFormats.cs: Fixed awkward internal API, and changed to enable
32210           userdefined DataFormats.Format items as well
32211         * ListControl.cs: Removed data_member from the public eye
32212         * OpenFileDialog.cs:
32213           - Made class sealed
32214           - Added missing attributes
32215         * SaveFileDialog.cs: Added missing attributes
32216         * ImageListStreamer.cs: Fixed code that caused warnings
32217         * LinkLabel.cs: Removed unreachable code
32218         * TreeView.cs: Fixed code that caused warnings
32219         * PropertyGridView.cs: Fixed code that caused warnings
32220         * GridColumnStylesCollection.cs: Added missing attributes
32221         * GridTableStylesCollection: Added missing attribute
32222         * PropertyManager: Added .ctor
32223         * SecurityIDType: Added
32224         * DataObject.cs: Implemented class
32225         * LinkArea.cs: Added missing attribute
32226
32227 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
32228
32229         * RadioButton.cs: call base method to allow to fire OnClick event
32230         * UpDownBase.cs: OnMouseUp call base method
32231         * CheckedListBox.cs: call base method before returning
32232         * TrackBar.cs: call base method before returning
32233         
32234
32235 2005-05-10  Peter Bartok  <pbartok@novell.com>
32236
32237         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
32238           for messages
32239
32240 2005-05-10  Peter Bartok  <pbartok@novell.com>
32241
32242         * DataFormats.cs: Implemented
32243         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
32244           XplatUIX11.cs: Added Clipboard APIs
32245         * XplatUIWin32.cs: Implemented Clipboard APIs
32246         * FolderBrowserDialog.cs: Added missing event, attributes
32247
32248 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
32249
32250         * CheckBox.cs: call base method to allow to fire OnClick event
32251
32252 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
32253
32254         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
32255
32256 2005-05-06  Peter Bartok  <pbartok@novell.com>
32257
32258         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
32259         * Screen.cs: Implemented
32260         * HelpNavigator.cs: Added
32261         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
32262           property
32263         * HelpProvider.cs: Implemented all we can do until we have a CHM
32264           help library (which means that "What's This" does work now)
32265
32266 2005-05-06  Jackson Harper  <jackson@ximian.com>
32267
32268         * XplatUIX11.cs: Fix waking up the main loop.
32269                 
32270 2005-05-05  Peter Bartok  <pbartok@novell.com>
32271
32272         * XplatUI.cs: Updated revision
32273         * Form.cs: Removed enless loop
32274         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
32275         * Label.cs (OnPaint): Added call to base.OnPaint()
32276         * ToolTip.cs: Made ToolTipWindow reusable for other controls
32277         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
32278         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
32279         * AxHost.cs: Added
32280         * ButtonBase.cs: Moved base.OnPaint() call to end of method
32281         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
32282           to ToolTip.ToolTipWindow for drawing and size methods; this allows
32283           reuse of ToolTipWindow by other controls
32284         * SizeGrip.cs: Moved base.OnPaint() call to end of method
32285         * XplatUIX11.cs: Now clipping drawing area (experimental)
32286         * PictureBox.cs: Moved base.OnPaint() call to end of method
32287         * Theme.cs: Fixed ToolTip abstracts to match new format
32288         * ErrorProvider.cs: Implemented
32289
32290 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
32291
32292         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
32293         * LinkLabel.cs:
32294                 - Adds cursors
32295                 - Handles focus
32296                 - Implements LinkBehavior
32297                 - Fixes many issues
32298
32299 2005-05-03  Jackson Harper  <jackson@ximian.com>
32300
32301         * ListView.cs: Calculate the scrollbar positioning on resize and
32302         paint, so they get put in the correct place.
32303
32304 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
32305
32306         * ColorDialogs.cs: The small color panels are now handled by
32307           SmallColorControl. This fixes drawing of the focus rectangle
32308           and adds a 3D border.
32309
32310 2005-05-03  Peter Bartok  <pbartok@novell.com>
32311
32312         * Control.cs: Modified version of Jonathan Chamber's fix for
32313           double-buffering
32314
32315 2005-05-03  Jackson Harper  <jackson@ximian.com>
32316
32317         * ListView.cs: Remove redraw variable. Control now handles whether
32318         or not a redraw needs to be done, and will only raise the paint
32319         event if redrawing is needed.
32320
32321 2005-05-03  Jackson Harper  <jackson@ximian.com>
32322
32323         * Splitter.cs: No decorations for the splitter form. Cache the
32324         hatch brush.
32325
32326 2005-05-03  Jackson Harper  <jackson@ximian.com>
32327
32328         * TreeView.cs: Use dashed lines to connect nodes. Use the
32329         ControlPaint method for drawing the focus rect instead of doing
32330         that in treeview.
32331
32332 2005-05-02  Peter Bartok  <pbartok@novell.com>
32333
32334         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
32335
32336 2005-04-29  Jackson Harper  <jackson@ximian.com>
32337
32338         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
32339         entire image buffer. Just clear the clipping rectangle.
32340
32341 2005-04-29  Jackson Harper  <jackson@ximian.com>
32342
32343         * ThemeWin32Classic.cs: Don't draw list view items that are
32344         outside the clipping rectangle.
32345
32346 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
32347
32348         * ListBox.cs: added horizontal item scroll
32349
32350 2005-04-29  Jackson Harper  <jackson@ximian.com>
32351
32352         * ThemeWin32Classic.cs: Remove some old debug code that was
32353         causing flicker with the new double buffering code.
32354
32355 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
32356
32357         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
32358         behave like combobox and comboboxlist (still not sure if this is
32359         correct though).
32360
32361 2005-04-28  Jackson Harper  <jackson@ximian.com>
32362
32363         * ThemeWin32Classic.cs: Don't fill the middle of progress
32364         bars. This fills areas outside of the clip bounds that don't need
32365         to be filled.
32366
32367 2005-04-28  Jackson Harper  <jackson@ximian.com>
32368
32369         * Control.cs: Don't expose functionality to touch the image buffers.
32370         * ProgressBar.cs:
32371         * ListView.cs: We do not need to (and no longer can) manipulate
32372         the image buffers directly. All of this is handled by Control.
32373
32374 2005-04-28  Peter Bartok  <pbartok@novell.com>
32375
32376         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32377           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
32378           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
32379
32380 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
32381
32382         * Combobox:
32383                 - Adjust control's height for non-simple comboboxes (bug fix)
32384                 - Remove dead code
32385         * MenuAPI.cs: remove unused var
32386         * ScrollBar.cs: remove unsed var
32387                  
32388         * ListBox.cs: unselect items when clearing
32389
32390 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
32391
32392         * ListControl.cs: honors OnPositionChanged and default Selected Item
32393         * ListBox.cs: unselect items when clearing
32394
32395 2005-04-27  Jackson Harper  <jackson@ximian.com>
32396
32397         * X11Keyboard.cs: Initialize a default keyboard and give a warning
32398         if a "correct" keyboard is not found. This will make us not crash,
32399         but might give some users bad keyboard layouts...seems to be the
32400         same thing rewind does.
32401
32402 2005-04-27  Jackson Harper  <jackson@ximian.com>
32403
32404         * BindingManagerBase.cs: Attach the current/position changed
32405         handlers to their respective events.
32406
32407 2005-04-27  Jackson Harper  <jackson@ximian.com>
32408
32409         * Control.cs: Make sure that the first WM_PAINT does a full draw,
32410         not just a blit.
32411         * ThemeWin32Classic.cs: Don't fill the background for picture
32412         boxes. This could overright user drawing.
32413         * ComboBox.cs: Just fill the clipping rect not the entire client
32414         rect when drawing the background. This prevents pieces of the
32415         image buffer from getting overwritten and is theoretically faster.
32416
32417 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
32418
32419         * ComboBox.cs: Databinding support fixes, fire missing events
32420         * ListControl.cs: implement missing methods and properties, fixes
32421         * ThemeWin32Classic.cs: Databiding support on Drawing
32422         * CheckedListBox.cs: Databinding support fixes, fire missing events
32423         * ListBox.cs: Databinding support fixes, fire missing events
32424         
32425 2005-04-25  Peter Bartok  <pbartok@novell.com>
32426
32427         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
32428
32429 2005-04-25  Jackson Harper  <jackson@ximian.com>
32430
32431         * TreeView.cs: Use the horizontal scrollbars height not width when
32432         determining how much of the client area is available.
32433
32434 2005-04-25  Jackson Harper  <jackson@ximian.com>
32435
32436         * Control.cs: Double buffering is handled differently now. As per
32437         the spec, the extra buffer is created in the WM_PAINT message and
32438         passed down to the control's drawing code.
32439         * GroupBox.cs:
32440         * Label.cs:
32441         * CheckBox.cs:
32442         * ProgressBar.cs:
32443         * RadioButton.cs:
32444         * ColorDialog.cs:
32445         * ComboBox.cs:
32446         * PropertyGridView.cs:
32447         * UpDownBase.cs:
32448         * MessageBox.cs:
32449         * MenuAPI.cs:
32450         * ListView.cs:
32451         * ButtonBase.cs:
32452         * SizeGrip.cs:
32453         * ScrollBar.cs:
32454         * ListBox.cs:
32455         * TrackBar.cs:
32456         * ToolBar.cs:
32457         * PictureBox.cs:
32458         * DateTimePicker.cs:
32459         * StatusBar.cs:
32460         * TreeView.cs: Update to new double buffering system.
32461         * MonthCalendar.cs: Uncomment block, as Capture is now
32462         working. Update to new double buffering
32463         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
32464         * PaintEventArgs.cs: New internal method allows us to set the
32465         graphics object. This is used for double buffering.
32466         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
32467         rectangle. The internal paint_area var has been removed from
32468         StatusBar. The clipping rect should be used instead.
32469         * Theme.cs: Give the PictureBox drawing method a clipping rect.
32470         * TabPage.cs: The RefreshTabs method was removed, so just call the
32471         tab controls Refresh method now.
32472         * TabControl.cs: Update to new double buffering. Make sure the
32473         handle is created before sizing the tab pages, otherwise we will
32474         get stuck in a loop.
32475
32476 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
32477
32478         * LinkLabel.cs: Fix typo, bug #74719; patch
32479           from Borja Sanchez Zamorano
32480
32481 2005-04-22  Jackson Harper  <jackson@ximian.com>
32482
32483         * TreeNode.cs: Implement Handle stuff.
32484         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
32485
32486 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
32487
32488         * DataGridTextBoxColumn.cs: call base constructors, fixes
32489         * GridColumnStylesCollection.cs: missing events, methods, and functionality
32490         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
32491         * DataGridTableStyle.cs: implements create default column styles
32492         * DataGridBoolColumn.cs: which types can handle
32493         * DataGrid.cs: missing methods, fixes, new functionality
32494         * DataGridColumnStyle.cs: fixes
32495
32496 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
32497         * FolderBrowserDialog.cs:
32498         - Use a thread to fill the TreeView
32499         - Adjusted some sizes
32500
32501 2005-04-19  Peter Bartok  <pbartok@novell.com>
32502
32503         * LinkLabel.cs: (Re-)create the pieces when setting the Text
32504           property. Fixes #74360.
32505
32506 2005-04-19  Jackson Harper  <jackson@ximian.com>
32507
32508         * XEventQueue.cs: Lock when getting the lockqueue size.
32509         * PictureBox.cs: Call base OnPaint
32510         
32511 2005-04-19  Peter Bartok  <pbartok@novell.com>
32512
32513         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
32514           messages were no longer being processed (this broke BeginInvoke)
32515
32516           
32517 2005-04-18  Jackson Harper  <jackson@ximian.com>
32518
32519         * TreeView.cs: buglet that caused node images to get drawn
32520         regardless of whether or not they were in the clipping rectangle.
32521
32522 2005-04-18  Jackson Harper  <jackson@ximian.com>
32523
32524         * CurrencyManager.cs: There are four rules for GetItemProperties:
32525         - If the type is an array use the element type of the array
32526         - If the type is a typed list, use the type
32527         - If the list contains an Item property that is not an object, use
32528         that property
32529         - use the first element of the list if there are any elements in
32530         the list.
32531         
32532 2005-04-17  Jackson Harper  <jackson@ximian.oom>
32533
32534         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
32535         click. This handles offsets for scrolling properly and reduces
32536         memory. Also fixed GetNode to not offset now that TopNode works
32537         properly.
32538         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
32539         
32540 2005-04-17  Jackson Harper  <jackson@ximian.com>
32541
32542         * CursorConverter.cs: Initial implementation.
32543
32544 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
32545
32546         * ListControl.cs: work towards complex data binding support on ListControl
32547         * CurrencyManager.cs: work towards complex data binding support on ListControl
32548         * ListBox.cs: work towards complex data binding support on ListControl
32549
32550
32551 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
32552
32553         * GridTableStylesCollection.cs: fixes name and constructor
32554         * DataGridTableStyle.cs: fixes
32555         * DataGridBoolColumn.cs: fixes names and constructors
32556         * DataGrid.cs: define methods and properties. Some init implementations
32557         * DataGridCell.cs: define methods and properties. Some init implementations
32558         * GridTablesFactory.cs: Define methods and properties
32559
32560 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
32561
32562         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
32563         graphics port changes.  We still want the coordinates in global screen
32564         coordinates.
32565
32566 2005-04-14  Jackson Harper  <jackson@ximian.com>
32567
32568         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
32569         check plus minus or checkbox clicks unless those features are enabled.
32570
32571 2005-04-14  Jackson Harper  <jackson@ximian.com>
32572
32573         * TreeView.cs: Add methods for setting the top and bottom visible
32574         nodes. TreeNode::EnsureVisible uses these methods.
32575         * TreeNode.cs: Implement EnsureVisible
32576
32577 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
32578
32579         * Form.cs: Pospone menu assignation if the window has not been created yet
32580         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
32581         size and position
32582
32583 2005-04-12  Jackson Harper  <jackson@ximian.com>
32584
32585         * TreeView.cs: Set the TopNode properly when scrolling
32586         occurs. This has the added benifit of reducing the amount of
32587         walking that needs to be done when drawing. Also removed an old
32588         misleading TODO.
32589         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
32590         
32591 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
32592
32593         * Timer.cs: fixes interval setting when the timer is already enabled
32594         
32595 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
32596
32597         * FolderBrowserDialog.cs: First approach
32598
32599 2005-04-09  Peter Bartok  <pbartok@novell.com>
32600
32601         * FolderBrowserDialog: Added
32602
32603 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
32604
32605         * LinkLabel.cs: move drawing code into the theme
32606         * ThemeWin32Classic.cs: drawing code and painting background bugfix
32607         * Theme.cs: define DrawLinkLabel method
32608
32609 2005-04-05  Jackson Harper  <jackson@ximian.com>
32610
32611         * BindingContext.cs: Use weak references so these bad actors don't
32612         stay alive longer then they need to.
32613
32614 2005-04-05  Jackson Harper  <jackson@ximian.com>
32615
32616         * ListControl.cs: Basic implementation of complex databinding.
32617         * ComboBox.cs:
32618         * ListBox.cs: Add calls to ListControl databinding methods.
32619
32620 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
32621
32622         * FileDialog.cs:
32623           - Don't change PopupButtonState to Normal when the
32624             PopupButton gets pressed several times.
32625           - Renamed ButtonPanel to PopupButtonPanel
32626
32627 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
32628
32629         * ColorDialog.cs: Use cached objects instead of creating them
32630         * LinkLabel.cs: Use cached objects instead of creating them
32631         * Splitter.cs: Use cached objects instead of creating them
32632         * FontDialog.cs: Use cached objects instead of creating them
32633         * PropertyGridView.cs: Use cached objects instead of creating them
32634         * MessageBox.cs: Use cached objects instead of creating them
32635         * FileDialog.cs: Use cached objects instead of creating them
32636         * ThemeWin32Classic.cs: Use cached objects instead of creating them
32637         * TreeView.cs: Use cached objects instead of creating them
32638         
32639 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
32640
32641         * Control.cs: use Equals to compare the font since no == op
32642         * ScrollBar.cs: use Equals to compare the font since no == op
32643
32644 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
32645
32646         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
32647
32648 2005-04-01  Jackson Harper  <jackson@ximian.com>
32649
32650         * Binding.cs: Implement IsBinding.
32651         * BindingManagerBase.cs:
32652         * PropertyManager.cs:
32653         * CurrencyManager.cs: Add IsSuspended property.
32654
32655 2005-04-01  Jackson Harper  <jackson@ximian.com>
32656
32657         * Binding.cs: Had some IsAssignableFrom calls backwards.
32658
32659 2005-04-01  Jackson Harper  <jackson@ximian.com>
32660
32661         * Binding.cs: Handle null data members when pulling data.
32662         * PropertyManager.cs: Handle the data member being a property that
32663         does not exist.
32664
32665 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
32666
32667         * DataGridTextBoxColumn.cs: fixes signature
32668         * DataGrid.cs: calls right constructor
32669
32670 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
32671
32672         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
32673         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
32674         * GridTableStylesCollection.cs: implements GridTableStylesCollection
32675         * DataGridTableStyle.cs: implements DataGridTableStyle
32676         * DataGridBoolColumn.cs: implements DataGridBoolColumn
32677         * DataGridTextBox.cs: implements DataGridTextBox
32678         * DataGridColumnStyle.cs: implements DataGridColumnStyle
32679
32680 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
32681
32682         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
32683
32684 2005-03-29  Peter Bartok  <pbartok@novell.com>
32685
32686         * Application.cs:
32687           - Properly implemented CompanyName property
32688           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
32689             returns a path that includes CompanyName, ProductName and
32690             Version (fixes bug #70330)
32691
32692 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
32693
32694         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
32695           fixes bug #72588.
32696
32697 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
32698
32699         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
32700         
32701           - Added ReadOnly CheckBox
32702           - Further refactoring: moved some code from Open-/SaveFileDialog
32703             to FileDialog
32704
32705 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
32706
32707         * OpenFileDialog.cs: Fixed CheckFileExists
32708         * FileDialog.cs:
32709           Moved FileView and DirComboBox outside FileDialog class.
32710           They can now be used outside FileDialog
32711
32712 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
32713
32714         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
32715         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
32716
32717 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
32718
32719         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32720           - Added missing CreatePrompt property in SaveDialog
32721           - Overall SaveDialog handling should be better now
32722           - Added non standard ShowHiddenFiles property
32723           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
32724           - Added InitialDirectory and RestoreDirectory support
32725
32726 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
32727
32728         * FileDialog.cs: Made dirComboBox usable
32729
32730 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
32731
32732         * FileDialog.cs: Added Filter support (case sensitiv)
32733
32734 2005-03-24  Jackson Harper  <jackson@ximian.com>
32735
32736         * TabControl.cs: Need a couple more pixels for the lines.
32737
32738 2005-03-23  Jackson Harper  <jackson@ximian.com>
32739
32740         * TabControl.cs: Give the tab page focus when it is selected.
32741
32742 2005-03-23  Jackson Harper  <jackson@ximian.com>
32743
32744         * TabControl.cs: Account for the drawing of tabs borders when
32745         invalidating. If the slider was clicked dont do click detection on
32746         the tabs.
32747
32748 2005-03-23  Jackson Harper  <jackson@ximian.com>
32749
32750         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
32751
32752 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
32753
32754         * CategoryGridEntry.cs: Added
32755         * GridItem.cs: Added helper properties
32756         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
32757         * GridEntry.cs: Updated code for collection
32758         * PropertyGrid.cs: Cleaned up some formatting
32759         * PropertyGridView.cs: Added drop down functionality for enums.
32760         * GridItemCollection.cs: Added enumerator logic
32761         * PropertyGridEntry.cs: Added
32762
32763 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
32764
32765         * FileDialog.cs:
32766           - Removed unnecessary commented code
32767           - Fixed handling for entering the filename manually in the combobox
32768
32769 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
32770
32771         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
32772
32773 2005-03-18  Peter Bartok  <pbartok@novell.com>
32774
32775         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
32776           them being touching the border
32777
32778 2005-03-18  Peter Bartok  <pbartok@novell.com>
32779
32780         * TextControl.cs: Quick hack to center text better
32781
32782 2005-03-18  Peter Bartok  <pbartok@novell.com>
32783
32784         * ControlPaint.cs:
32785           - Don't throw NotImplemented exceptions, just print a notice once
32786             instead (requested by Miguel). This makes running existing SWF
32787             apps a bit easier
32788         * Control.cs:
32789           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
32790           - Added context menu trigger on right click
32791         * Panel.cs: Trigger invalidate on resize
32792         * StatusBar.cs:
32793           - Removed old double-buffer drawing
32794           - Added ResizeRedraw style to force proper update of statusbar
32795         * ListView.cs:
32796           - Removed debug output
32797         * ThemeWin32Classic.cs:
32798           - Fixed drawing of status bar, now draws Text property if there
32799             are no defined panels
32800
32801 2005-03-18  Jackson Harper  <jackson@ximian.com>
32802
32803         * ImageList.cs: When the image stream is set pull all the images
32804         from it.
32805         * ImageListStreamer.cs: Implement reading image list streams.
32806
32807 2005-03-18  Peter Bartok  <pbartok@novell.com>
32808
32809         * ThemeWin32Classic.cs (DrawPictureBox):
32810           - Fixed calculations for centered drawing
32811           - Fixed drawing for normal mode, not scaling the image on normal
32812
32813 2005-03-18  Peter Bartok  <pbartok@novell.com>
32814
32815         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
32816           textbox
32817         * FileDialog.cs:
32818           - Made Open/Save button the accept button for FileDialog
32819           - Tied the cancel button to the IButtonControl cancel button
32820           - Save/Open now properly builds the pathname
32821           - Now handles user-entered text
32822           - Preventing crash on right-click if no item is selected
32823           - Fixed Text property, now uses contents of textbox
32824           - Fixed SelectedText property, now just returns the text part that
32825             is selected in the text box
32826
32827 2005-03-18  Jackson Harper  <jackson@ximian.com>
32828
32829         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
32830         rect, make sure to de-adjust the interior rect after drawing the
32831         tab text.
32832
32833 2005-03-18  Peter Bartok  <pbartok@novell.com>
32834
32835         * MenuAPI.cs: Remove menu *before* executing selected action to
32836           prevent the menu from 'hanging around'
32837           
32838 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
32839
32840         * XplatUIOSX.cs: Implemented WorkingArea property
32841
32842 2005-03-17  Peter Bartok  <pbartok@novell.com>
32843
32844         * XplatUIX11.cs: Fixed menu coord calculations
32845         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
32846           for calculating offsets
32847
32848 2005-03-17  Peter Bartok  <pbartok@novell.com>
32849
32850         * Hwnd.cs: Do not consider menu presence for default client
32851           rectangle location/size
32852         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
32853           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
32854           translation functions
32855         * FileDialog.cs: Fixed (what I presume is a) typo
32856
32857 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
32858
32859         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
32860           X access (avoids X-Async errors)
32861
32862 2005-03-16  Jackson Harper  <jackson@ximian.com>
32863
32864         * TabControl.cs: Raise the SelectedIndexChanged event.
32865
32866 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
32867
32868         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32869           - Removed vertical ToolBar and replaced it with a custom panel
32870             (desktop and home button already work)
32871           - Added Help button (some controls get resized or relocated then)
32872           - Draw correct text depending on Open or Save.
32873           - Fixed some typos...
32874
32875 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
32876
32877         * ScrollBar.cs:
32878           - Only change Maximum and Minimum when need it (bug fix)
32879
32880 2005-03-15  Peter Bartok  <pbartok@novell.com>
32881
32882         * Form.cs: Use Handle for icon, to trigger creation if
32883           the window does not yet exist
32884         * Control.cs:
32885           - CanSelect: Slight performance improvement
32886           - Focus(): Preventing possible recursion
32887           - Invalidate(): Removed ControlStyle based clear flag setting
32888           - WM_PAINT: fixed logic for calling OnPaintBackground
32889           - WM_ERASEBKGND: Fixed logic, added call to new driver method
32890             EraseWindowBackground if the control doesn't paint background
32891         * XplatUIWin32.cs:
32892           - Moved EraseWindowBackground() method to internal methods
32893           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
32894             is sent via SendMessage on BeginPaint call on Win32
32895         * XplatUIX11.cs:
32896           - Added EraseWindowBackground() method
32897           - No longer sends WM_ERASEBKGND on .Expose, but on call to
32898             PaintEventStart, which more closely matches Win32 behaviour
32899           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
32900           - Fixed SetFocus() to properly deal with client and whole windows
32901         * Hwnd.cs: Added ErasePending property
32902         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
32903         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
32904
32905 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
32906
32907         * XplatUIOSX.cs:
32908           - Fix hard loop when timers exist.
32909           - Fix bugs with middle and right click for 3 button mice.
32910
32911 2005-03-11  Peter Bartok  <pbartok@novell.com>
32912
32913         * XplatUIX11.cs:
32914           - get_WorkingArea: Need to call X directly, GetWindowPos only
32915             returns cached data now
32916           - Added sanity check to GetWindowPos hwnd usage
32917
32918 2005-03-11  Jackson Harper  <jackson@ximian.com>
32919
32920         * BindingManagerBase.cs: This method isn't used anymore as
32921         PullData now updates the data in the control.
32922
32923 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
32924
32925         * Form.cs: fixes menu drawing on X11
32926         * MenuAPI.cs:  fixes menu drawing on X11
32927
32928 2005-03-11  Peter Bartok  <pbartok@novell.com>
32929
32930         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
32931           from Jonathan Gilbert; should fix bug #73606
32932         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
32933           in Screen coordinates. Thanks, Jordi.
32934         * Form.cs: Added missing attribute
32935
32936 2005-03-11  Peter Bartok  <pbartok@novell.com>
32937
32938         * Form.cs:
32939           - Rudimentary Mdi support
32940           - Removed outdated FormParent code
32941           - Implemented lots of missing properties and methods, still missing
32942             transparency support
32943           - Added missing attributes
32944           - Implemented support for MaximumBounds
32945           - Added firing of various events
32946         * XplatUI.cs: Added SetIcon() method
32947         * XplatUIDriver.cs: Added SetIcon() abstract
32948         * XplatUIOSX.cs: Stubbed out SetIcon() method
32949         * XplatUIX11.cs:
32950           - Implemented SetIcon() support
32951           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
32952           - Switched to unix line endings
32953         * XplatUIWin32.cs:
32954           - Made POINT internal so for can access it as part of MINMAX
32955           - Implemented SetIcon() support
32956           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
32957             native Mdi support again, might have to go managed)
32958         * Control.cs: Now fires the StyleChanged event
32959         * MdiClient.cs: Added; still mostly empty
32960
32961 2005-03-10  Peter Bartok  <pbartok@novell.com>
32962
32963         * SaveFileDialog.cs: Added emtpy file
32964
32965 2005-03-08  Peter Bartok  <pbartok@novell.com>
32966
32967         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
32968           in turn triggers OnCreateContro) when creating a handle for the
32969           first time.
32970         * TextControl.cs: Fixed endless loop in certain cases when
32971           replacing the current selection
32972
32973 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
32974
32975         * ScrollBar.cs:
32976           - Honors NewValue changes in Scroll events allowing apps to change it
32977           - Adds First and Last Scroll events
32978           - Fixes Thumb events
32979
32980 2005-03-07  Peter Bartok  <pbartok@novell.com>
32981
32982         * Hwnd.cs: Added DefaultClientRectangle property
32983         * XplatUI.cs: Now using the X11 driver Where() method, which provides
32984           more detailed debug information
32985         * XplatUIX11.cs:
32986           - Fixed size-change feedback loop, where we would pull an old size
32987             off the queue and mistakenly change our window's size to an
32988             earlier value
32989           - Now compressing ConfigureNotify events, to reduce looping and
32990             redraw issues
32991         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
32992           is called
32993
32994 2005-03-07  Jackson Harper  <jackson@ximian.com>
32995
32996         * Binding.cs: Push data pushes from data -> property. Check if the
32997         property is readonly when attempting to set it.
32998
32999 2005-03-07  Jackson Harper  <jackson@ximian.com>
33000
33001         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
33002         instead of IsSubclassOf. Pulling data now sets the value on the
33003         control.
33004         * PropertyManager.cs:
33005         * CurrencyManager.cs: Just need to pull data when updating now,
33006         because PullData will set the value on the control.
33007
33008 2005-03-04  Jackson Harper  <jackson@ximian.com>
33009
33010         * Binding.cs: Implement data type parsing and converting on pulled
33011         data. TODO: Are there more ways the data can be converted?
33012
33013 2005-03-04  Jackson Harper  <jackson@ximian.com>
33014
33015         * Binding.cs: Support <Property>IsNull checks. Also bind to the
33016         controls Validating method so we can repull the data when the
33017         control loses focus.
33018
33019 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
33020
33021         * ColumnHeader.cs:
33022           - Fixes null string format
33023           
33024         * ListView.cs:
33025           - Adds enum type checks
33026           - Fixes redrawing and recalc need after changing some properties
33027           - Fixes on focus_item set after the event
33028           - Fixes adding columns after the control has been created
33029           
33030         * ThemeWin32Classic.cs:
33031           - Fixes CheckBox focus rectangle
33032           - Fixes ColumnHeader drawing
33033
33034
33035 2005-03-03  Jackson Harper  <jackson@ximian.com>
33036
33037         * Binding.cs: Bind to <Property>Changed events so we can detect
33038         when properties are changed and update the data.
33039
33040 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
33041
33042         * ImageList.cs:
33043           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
33044           - Fixes ImageList constructor with ImageList container
33045           - Fixes image scaling (wrong parameters at DrawImage)
33046
33047 2005-02-02  Jackson Harper  <jackson@ximian.com>
33048
33049         * Binding.cs: Make property searches case-insensitive. Eliminate
33050         some duplicated code.
33051
33052 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
33053
33054         * ComboBox.cs:
33055                 - Handle focus event
33056                 - Fix scrollbar events
33057                 - Discard highlighted item if remove it
33058                 - Fixes SelectedItem with strings
33059
33060 2005-03-01  Peter Bartok  <pbartok@novell.com>
33061
33062         * Control.cs:
33063           - Fixed Visible property, now follows (once again) parent chain
33064             to return false if any control in the chain is visible=false
33065           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
33066           - Fixed several places where is_visible instead of Visible was used
33067           - Implemented FIXME related to focus selection when setting focused
33068             control to be invisible
33069
33070         * XplatUIWin32.cs: Now using proper method to find out if window is
33071           visible. Thanks to Jordi for pointing it out
33072
33073 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
33074
33075         * ComboBox.cs: show/hide scrollbar instead of creating it
33076
33077 2005-02-27  Jackson Harper  <jackson@ximian.com>
33078
33079         * CurrencyManager.cs: Add PositionChanged stuff.
33080
33081 2005-02-27  Peter Bartok  <pbartok@novell.com>
33082
33083         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
33084         * XplatUIOSX.cs: Added GetMenuOrigin() stub
33085         * XplatUIWin32.cs: Implemented GetMenuOrigin()
33086         * XplatUIX11.cs:
33087           - Implemented GetMenuDC()
33088           - Implemented GetMenuOrigin()
33089           - Implemented ReleaseMenuDC()
33090           - Implemented generation of WM_NCPAINT message
33091           - Implemented generation and handling of WM_NCCALCSIZE message
33092         * Form.cs: Added debug helper message for Jordi's menu work
33093         * Hwnd.cs:
33094           - Modified ClientRect property; added setter, fixed getter to handle
33095             setting of ClientRect
33096           - Added MenuOrigin property
33097
33098 2005-02-26  Peter Bartok  <pbartok@novell.com>
33099
33100         * XplatUIX11.cs:
33101           - Destroys the caret if a window that's being destroyed contains it
33102           - Ignores expose events coming from the X11 queue for windows that
33103             already are destroyed
33104           - Now uses the proper variable for handling DestroyNotify, before we
33105             marked the wrong window as destroyed
33106           - Improved/added some debug output
33107
33108 2005-02-26  Peter Bartok  <pbartok@novell.com>
33109
33110         * X11Keyboard.cs: Fixes to work on 64bit systems
33111
33112 2005-02-26  Peter Bartok  <pbartok@novell.com>
33113
33114         * Control.cs:
33115           - Now calling OnHandleDestroyed from DestroyHandle()
33116             instead of Dispose()
33117           - Removed bogus call to controls.Remove() from DestroyHandle()
33118
33119 2005-02-26  Peter Bartok  <pbartok@novell.com>
33120
33121         * Control.cs: Properly destroy child windows when our handle is
33122           destroyed
33123
33124 2005-02-25  Peter Bartok  <pbartok@novell.com>
33125
33126         * XplatUI.cs:
33127           - Added 'DriverDebug' define to allow tracing XplatUI API calls
33128           - Alphabetized Static Methods and Subclasses
33129
33130         * XplatUIX11.cs:
33131           - Added XException class to allow custom handling of X11 exceptions
33132           - Created custom X11 error handler, tied into XException class
33133           - Added support for MONO_XEXCEPTIONS env var to allow the user
33134             to either throw an exception on X errors or continue running
33135             after displaying the error
33136           - Added handling of DestroyNotify message
33137           - Added handler for CreateNotify message (still disabled)
33138           - Improved (tried to at least) Where method to provide file and lineno
33139         * X11Structs.cs:
33140           - Added XErrorHandler delegate
33141           - Added XRequest enumeration (to suppor translation of errors)
33142
33143 2005-02-25  Jackson Harper  <jackson@ximian.com>
33144
33145         * PropertyManager.cs: Implement editing features
33146         * CurrencyManager.cs:
33147         * Binding.cs: First attempt at UpdateIsBinding
33148         * BindingManagerBase.cs: Call UpdateIsBinding before
33149         pushing/pulling data.
33150
33151 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
33152
33153         * MenuAPI.cs: Respect disabled items
33154         * ThemeWin32Classic.cs
33155                 - Caches ImageAttributes creation for DrawImageDisabled
33156                 - Fixes vertical menu line drawing
33157                 - Draws disabled arrows in disable menu items
33158
33159 2005-02-24  Peter Bartok  <pbartok@novell.com>
33160
33161         * Hwnd.cs:
33162           - Added UserData property to allow associating arbitrary objects
33163             with the handle
33164           - Fixed leak; now removing Hwnd references from static windows array
33165         * XplatUIWin32.cs:
33166           - Fixed Graphics leak in PaintEventEnd
33167           - Removed usage of HandleData, switched over to Hwnd class
33168         * HandleData.cs: Removed, obsoleted by Hwnd.cs
33169
33170 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
33171
33172         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
33173         * ScrollBar.cs: Fixes bug
33174         * TrackBar.cs: removes death code, clipping, mimize refreshes,
33175          keyboard navigation enhancements
33176
33177 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
33178
33179         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
33180         * GroupBox.cs: Add control styles
33181         * Label.cs: Add control styles
33182         * UpDownBase.cs: Add control styles
33183         * ListBox.cs: Add control styles
33184         * XplatUIWin32.cs: Fixes wrong parameter order
33185
33186
33187 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
33188
33189         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
33190
33191 2005-02-23  Jackson Harper  <jackson@ximian.com>
33192
33193         * PropertyManager.cs: Implement property binding. This doesn't
33194         seem to work yet though as (I think) there are some bugs in
33195         System.ComponentModel.PropertyDescriptor.
33196         * BindingContext.cs: Use new PropertyManager constructor.
33197
33198 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
33199
33200         * ProgressBar.cs: use clip region in ProgressBar
33201         * ThemeWin32Classic.cs: use clip region in ProgressBar
33202
33203 2004-02-22  Jackson Harper  <jackson@ximian.com>
33204
33205         * BindingsCollection.cs: Remove some debug code.
33206
33207 2005-02-22  Jackson Harper  <jackson@ximian.com>
33208
33209         * BindingContext.cs:
33210         * ControlBindingsCollection.cs:
33211         * CurrencyManager.cs:
33212         * Binding.cs:
33213         * BindingManagerBase.cs: Initial implementation
33214         * BindingsCollection.cs: Add an internal contains method that the
33215         BindingManagerBase uses to ensure bindings aren't added twice to
33216         the collection.
33217         * PropertyManager.cs: Stubbed out.
33218         * Control.cs:
33219         * ContainerControl.cs: Hook up databinding
33220         
33221 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
33222
33223         * XplatUIOSX.cs:
33224           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
33225           Fixed Invalidate/Update chain.
33226           Fixed tons of other minor bugs (this is almost a complete rewrite).
33227
33228 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
33229
33230         * ComboBox.cs: do subcontrol creation when the control is created
33231
33232 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33233
33234         * Label.cs: fixes image drawing (image and imagelist)
33235         * ThemeWin32Classic.cs: cache brushes
33236         
33237 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33238
33239         * Form.cs: Move menu drawing code to Theme class
33240         * ComboBox.cs: Move ComboBox drawing code to Theme class
33241         * MenuItem.cs: Move menu drawing code to Theme class
33242         * MenuAPI.cs: Move menu drawing code to Theme class
33243         * ThemeWin32Classic.cs: New methods
33244         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
33245         * ListBox.cs: Move Listbox drawing code to Theme class
33246         * Theme.cs: New methods
33247
33248 2005-02-20  Peter Bartok  <pbartok@novell.com>
33249
33250         * Control.cs:
33251           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
33252             only process mnemonics on those)
33253           - Fixed event sequence for key handling; first calling
33254             ProcessKeyEventArgs now
33255         * TextBoxBase.cs:
33256           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
33257             for processing non-character keys
33258           - Fixed WM_CHAR to generate proper event sequence before processing
33259         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
33260           generation
33261
33262 2005-02-19  Peter Bartok  <pbartok@novell.com>
33263
33264         * UserControl.cs: Added TextChanged event; added attributes
33265         * SizeGrip.cs: Implemented resizing and optional display of grip
33266         * Form.cs: Fixed attribute
33267         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33268           Changed meaning of ScrollWindow bool argument; instead of the
33269           clear attribute (which will be true usually anyway), it gives the
33270           option of moving child controls as well.
33271         * XplatUIX11.cs:
33272           - Changed to match new ScrollWindow argument
33273           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
33274             now handles the implicit parent window a WM puts around us
33275         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
33276           to work)
33277         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
33278         * TreeView.cs: Adjusted to new ScrollWindow arguments
33279
33280 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33281
33282         * Form.cs: Menu integration with non-client area
33283         * MenuItem.cs: Menu integration with non-client area
33284         * MenuAPI.cs: Menu integration with non-client area
33285
33286 2005-02-18  Peter Bartok  <pbartok@novell.com>
33287
33288         * MethodInvoker.cs: Added
33289         * MdiLayout.cs: Added
33290         * SendKeys.cs: Started implementation
33291         * ErrorIconAlignment.cs: Added
33292
33293 2005-02-18  Peter Bartok  <pbartok@novell.com>
33294
33295         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
33296         * Form.cs: Added handling for Menu-related Non-client messages
33297
33298 2005-02-17  Peter Bartok  <pbartok@novell.com>
33299
33300         * UpDownBase.cs: Fixed typo, compilation errors
33301         * DomainUpDown.cs: Fixed attribute value
33302
33303 2005-02-16  Miguel de Icaza  <miguel@novell.com>
33304
33305         * UpDownBase.cs: Attach entry events.
33306         Propagate events.
33307         Add ForeColor property, Focused, InterceptArrowKeys (interception
33308         does not work yet).
33309
33310 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
33311
33312         * Form.cs:
33313                 - Redraw non client are on Setmenu
33314                 - Calc proper menu starting point
33315
33316 2005-02-17  Peter Bartok  <pbartok@novell.com>
33317
33318         * Application.cs: Fixed message_filter check
33319
33320 2005-02-17  Peter Bartok  <pbartok@novell.com>
33321
33322         * Application.cs: Now calls registered message filters
33323         * DockStyle.cs: Fixed attribute
33324         * Form.cs: Fixed attribute
33325         * Menu.cs: Fixed attribute
33326         * ToolTip.cs: Fixed attribute
33327         * TreeNode.cs: Added missing attributes and arranged in regions
33328         * PropertyGrid.cs: Fixed signatures
33329         * TreeNodeCollection.cs: Added attributes
33330         * Splitter.cs: Added missing attributes; arranged into regions
33331         * TabPage.cs: Added missing attributes; arranged into regions
33332         * TextBoxBase.cs: Added missing attributes
33333         * TextBox.cs: Added missing attributes
33334         * ArrangeDirection.cs: Added missing attributes
33335         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
33336         * ToolBarButton.cs: Fixed attributes
33337         * AnchorStyles.cs: Fixed attribute
33338         * TrackBar.cs: Fixed attributes
33339         * TabControl.cs: Added missing attributes and arranged into regions
33340         * ToolBar.cs: Fixed attribute
33341         * StatusBar.cs: Fixed signature, organized into regions and added
33342           attributes
33343         * StatusBarPanel.cs: Fixed attributes
33344         * ContentsResizedEventArgs.cs: Implemented
33345         * ContentsResizedEventHandler.cs: Implemented
33346         * DateBoldEventArgs.cs: Implemented
33347         * DateBoldEventHandler.cs: Implemented
33348         * UpDownEventArgs.cs: Implemented
33349         * UpDownEventHandler.cs: Implemented
33350         
33351 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
33352
33353         * Form.cs: first Menu NC refactoring
33354         * MenuAPI.cs: first Menu NC refactoring
33355         
33356 2005-02-16  Peter Bartok  <pbartok@novell.com>
33357
33358         * ImeMode.cs: Added missing attributes
33359         * Menu.cs: Fixed attribute
33360         * GroupBox.cs: Fixed attribute
33361         * Label.cs: Fixed attribute
33362         * ColorDialog.cs (RunDialog): Removed TODO attribute
33363         * ComboBox.cs: Fixed attributes
33364         * ListControl.cs: Added missing attributes
33365         * PropertyGrid.cs: Fixed attributes
33366         * Control.cs: Fixed attributes
33367         * ListViewItem.cs: Added TypeConverter attribute
33368         * NotifyIcon.cs: Fixed attributes
33369         * ListView.cs: Fixed attributes
33370         * ButtonBase.cs: Fixed attribute
33371         * ImageList.cs: Added missing attributes
33372         * ContainerControl.cs: Fixed signature
33373         * CheckedListBox.cs: Fixed attribute; added missing attributes
33374         * Panel.cs: Fixed attributes
33375         * PropertyTabChangedEventArgs.cs: Added missing attribute
33376         * PropertyValueChangedEventArgs.cs: Added missing attribute
33377         * Binding.cs: Fixed attribute
33378         * ListViewItemConverter: Implemented ListViewSubItemConverter class
33379         * ListBox.cs: Fixed attribute; added missing attributes;
33380         * ScrollableControl.cs: Added missing attributes
33381         * PictureBox.cs: Added missing attributes; implemented missing property
33382         * DateTimePicker.cs: Added missing attributes
33383         * Theme.cs (ToolWindowCaptionHeight): Fixed type
33384         * MonthCalendar.cs: Fixed attributes
33385         * StatusBarPanel.cs: Added missing attributes
33386         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
33387
33388 2005-02-16  Peter Bartok  <pbartok@novell.com>
33389
33390         * TextBoxBase.cs: The previous method to enforce height yet remember
33391           the requested high was less than ideal, this is an attempt to do
33392           it better.
33393         * Control.cs: Added comment about possible problem
33394         * Copyright: Updated format
33395         * GridItemType.cs: Fixed swapped values
33396
33397 2005-02-15  Jackson Harper  <jackson@ximian.com>
33398
33399         * BaseCollection.cs: Use property so we never access an
33400         uninitialized list. Also initialize the list in the property.
33401
33402 2005-02-15  Peter Bartok  <pbartok@novell.com>
33403
33404         * GroupBox.cs (ProcessMnemonic): Implemented
33405         * Label.cs (ProcessMnemonic): Implemented
33406         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
33407           hotkeys
33408
33409 2005-02-15  Peter Bartok  <pbartok@novell.com>
33410
33411         * RadioButton.cs (ProcessMnemonic): Implemented
33412         * CheckBox.cs (ProcessMnemonic): Implemented
33413         * Control.cs:
33414           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
33415             handling
33416           - Added internal method to allow calling ProcessMnemonic from other
33417             controls
33418         * ContainerControl.cs:
33419           - Started support for handling validation chain handling
33420           - Implemented ProcessMnemonic support
33421           - Added Select() call to Active, to make sure the active control
33422             receives focus
33423         * Form.cs: Setting toplevel flag for Forms (this was lost in the
33424           FormParent rewrite)
33425         * ThemeWin32Classic.cs:
33426           - DrawCheckBox(): Fixed stringformat to show hotkeys
33427           - DrawRadioButton(): Fixed stringformat to show hotkeys
33428         * CommonDialog.cs: Removed WndProc override, not needed
33429
33430 2005-02-14  Peter Bartok  <pbartok@novell.com>
33431
33432         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
33433           missed those in the rewrite
33434
33435 2005-02-14  Miguel de Icaza  <miguel@novell.com>
33436
33437         * NumericUpDown.cs (Increment, ToString): Add.
33438         (DecimalPlaces): implement.
33439         
33440         Add attributes.
33441         
33442         * UpDownBase.cs: Add the designer attributes.
33443
33444 2005-02-13  Peter Bartok  <pbartok@novell.com>
33445
33446         * Panel.cs: Removed border_style, now in Control
33447         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
33448           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
33449
33450 2005-02-13  Peter Bartok  <pbartok@novell.com>
33451
33452         * MouseButtons.cs: Added missing attributes
33453         * XplatUIStructs.cs: Added enumeration for title styles
33454         * LeftRightAlignment.cs: Added missing attributes
33455         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
33456           it compatible with Graphics.FromHwnd()
33457         * SelectedGridItemChangedEventArgs.cs: Fixed property type
33458         * Keys.cs: Added missing attributes
33459         * SelectionRange.cs: Added missing attributes
33460         * SelectionRangeConverter.cs: Added
33461         * XplatUI.cs:
33462           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
33463             ReleaseMenuDC methods
33464           - Renamed ReleaseWindow to UngrabWindow
33465           - Added proper startup notice to allow version identification
33466         * Form.cs:
33467           - Added missing attributes
33468           - Removed FormParent concept
33469         * Label.cs: Removed border_style field, now in Control
33470         * RadioButton.cs: Now properly selects RadioButton when focus is
33471           received
33472         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
33473         * Control.cs:
33474           - Added missing attributes
33475           - Added borderstyle handling
33476           - Removed FormParent concept support
33477           - Fixed calls to XplatUI to match changed APIs
33478           - Fixed bug that would case us to use disposed Graphics objects
33479           - Removed unneeded internal methods
33480           - PerformLayout(): Fixed to handle DockStyle.Fill properly
33481           - SelectNextControl(): Fixed to properly check common parents
33482         * TextBoxBase.cs: Removed border_style field (now in Control)
33483         * MessageBox.cs:
33484           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
33485             fixed calculations for form size
33486           - Added support for localized strings and icons
33487           - Improved form size calculations, added border
33488         * ListView.cs: Removed border_style field (now in Control)
33489         * X11Structs.cs: Moved several structs from X11 driver here
33490         * X11Keyboard.cs: Changed debug message
33491         * Application.cs: Removed FormParent concept support
33492         * CommonDialog.cs:
33493           - Resetting end_modal flag
33494           - Removed FormParent concept support
33495         * NativeWindow.cs: Removed FormParent concept support
33496         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
33497           Client area and Non-Client whole window to allow support for WM_NC
33498           messages
33499         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
33500           prevent using it until it supports Hwnd as per Geoff Norton's request
33501         * ToolBar.cs: Fixed drawing, was not doing proper drawing
33502         * PictureBox.cs: Removed border_style field, now in Control
33503         * XplatUIWin32.cs: Added new driver methods
33504
33505 2005-02-12  Peter Bartok  <pbartok@novell.com>
33506
33507         * OpacityConverter.cs: Implemented
33508         * Hwnd.cs: Internal class to support drivers that need to emulate
33509           client area/non-client area window behaviour
33510
33511 2005-02-11  Peter Bartok  <pbartok@novell.com>
33512
33513         * KeysConverter.cs: Implemented
33514
33515 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
33516
33517         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
33518         * LinkLabel: Added missing attributes
33519         * MainMenu.cs: fixes ToString
33520         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
33521         * ListBox.cs: fixes event position
33522         * TrackBar.cs: adds missing attributes and events
33523         
33524 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
33525
33526         * MenuItem.cs: Use SystemInformation and bug fixes
33527         * MenuAPI.cs: Use SystemInformation and bug fixes
33528
33529 2005-02-09  Jackson Harper  <jackson@ximian.com>
33530
33531         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
33532         their keystate otherwise things like VK_MENU get stuck "on".
33533
33534 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
33535
33536         * ListBox.cs: Fixes AddRange bug
33537         
33538 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
33539
33540         * ProgressBar.cs
33541                 - Add missing attributes
33542                 - Add missing method
33543                 
33544         * CheckedListBox.cs: Added missing attributes
33545                 - Add missing attributes
33546                 - Remove extra method
33547         
33548         * ComboBox.cs: Added missing attributes
33549         * VScrollBar.cs: Added missing attributes
33550         * ScrollBar.cs:  Added missing attributes
33551         * ListBox.cs: Fixes signature, add missing consts
33552         * LinkArea.cs:   Added missing attributes
33553         
33554
33555 2005-02-08  Peter Bartok  <pbartok@novell.com>
33556
33557         * Menu.cs: Added missing attributes
33558         * MainMenu.cs: Added missing attributes
33559         * GroupBox.cs: Added missing attributes
33560         * Label.cs: Added missing attributes
33561         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
33562         * ColorDialog.cs:
33563           - Added Instance and Options properties
33564           - Added missing attributes
33565         * Cursor.cs: Made Serializable
33566         * NotifyIcon: Added missing attributes
33567         * MenuItem.cs: Added missing attributes
33568         * TextBoxBase.cs: Implemented AppendText() and Select() methods
33569         * Panel.cs: Added Missing attributes
33570         * MonthCalendar.cs: Fixed CreateParams
33571
33572 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
33573         
33574         * LinkLabel.cs:
33575                 - Fixes signature
33576                 - Fixes issues with links
33577                 - Adds the class attributes
33578
33579 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
33580         
33581         * ComboBox.cs:
33582                 - Fixes button when no items available in dropdown
33583                 - Fixes repainting problems
33584                 - Adds the class attributes
33585                 
33586 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
33587
33588         * XplatUIOSX.cs: Detect the menu bar and title bar height from
33589         the current theme.  Cache these on startup.
33590
33591 2005-02-07  Jackson Harper  <jackson@ximian.com>
33592
33593         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
33594         the scrollbar buttons when they are depressed.
33595
33596 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
33597
33598         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
33599         Get the display size from the main displayid.  We currently dont
33600         support multiple display configurations.
33601
33602 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
33603
33604         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
33605
33606 2005-02-07  Miguel de Icaza  <miguel@novell.com>
33607
33608         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
33609
33610 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
33611
33612         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
33613
33614 2005-02-04  Jackson Harper  <jackson@ximian.com>
33615
33616         * ThemeWin32Classic.cs: Respect the clipping rect when
33617         drawing. Only fill the intersection of clips and rects so there
33618         isn't a lot of large fills.
33619         * ScrollBar.cs: Pass the correct clipping rect to the theme
33620         engine. Remove some debug code.
33621
33622 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
33623         
33624         * DateTimePicker.cs:
33625                 - Fixed crash on DateTime.Parse, use Constructor instead
33626
33627 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
33628         
33629         * MenuItem.cs:
33630         * MenuAPI.cs:
33631                 - Owner draw support (MeasureItem and DrawItem)
33632
33633 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
33634         
33635         *  Menu.cs:
33636                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
33637                 - Fixes MenuItems.Add range
33638         * MenuItem.cs:
33639                 - MergeMenu and Clone and CloneMenu functions
33640
33641 2005-02-03  Jackson Harper  <jackson@ximian.com>
33642
33643         * ScrollBar.cs: Make abstract
33644         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
33645         is abstract.
33646
33647 2005-02-03  Jackson Harper  <jackson@ximian.com>
33648
33649         * ScrollBar.cs: First part of my scrollbar fixups. This removes
33650         all the unneeded refreshes and uses invalidates with properly
33651         computed rects.
33652
33653 2005-02-03  Peter Bartok  <pbartok@novell.com>
33654
33655         * ComponentModel.cs: Added
33656         * IDataGridEditingService.cs: Added
33657         * Timer.cs: Added missing attributes
33658         * ToolTip.cs: Added missing attributes
33659
33660 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
33661
33662         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
33663
33664 2005-02-03  Peter Bartok  <pbartok@novell.com>
33665
33666         * ListBox.cs: Added missing attributes
33667
33668 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
33669         
33670         * ListBox.cs:
33671                 - Fixes font height after font change
33672                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
33673                 
33674 2005-02-02  Peter Bartok  <pbartok@novell.com>
33675
33676         * HandleData.cs: Introduced static methods to allow class
33677           to be more self-contained and track it's own HandleData objects
33678         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
33679           HandleData to use new static methods
33680
33681 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
33682
33683         * Combobox.cs:
33684                 - Fixes default size and PreferredHeight
33685                 - Missing events
33686                 - ObjectCollection.Insert implementation
33687                 
33688         * ListControl.cs
33689                 - Fixes signature
33690         * ListBox.cs:
33691                 - Several fixes
33692                 - ObjectCollection.Insert implementation
33693                 - No selection after clean
33694                 - Small fixes
33695
33696 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
33697
33698         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
33699
33700 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
33701
33702         * Combobox.cs:
33703                 - Caches ItemHeight calculation for OwnerDrawVariable
33704                 - Handles dropdown properly
33705                 - Fixes several minor bugs
33706
33707 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
33708
33709         * ListBox.cs:
33710                 - Fixes 71946 and 71950
33711                 - Fixes changing Multicolumn on the fly
33712                 - Fixes keyboard navigation on Multicolumn listboxes
33713
33714 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33715         
33716         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
33717         crash reporter log.
33718
33719 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33720
33721         * XplatUIOSX.cs: Allow applications to actually exit.
33722
33723 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33724
33725         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
33726         their parent at creation time rather than lazily later.  Fixes a major
33727         regression we were experiencing.
33728
33729 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
33730
33731         * ThemeWin32Classic.cs: more date time picker painting fixes
33732         * DateTimePicker.cs: more monthcalendar drop down fixes
33733         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
33734
33735 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
33736
33737         * ScrollBar.cs:
33738                 - When moving the thumb going outside the control should stop the moving
33739                 - Adds the firing of missing events
33740                 - Fixes no button show if Size is not specified
33741                 - End / Home keys for keyboard navigation
33742
33743 2005-01-30  Peter Bartok  <pbartok@novell.com>
33744
33745         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
33746           sanity check to prevent theoretical loop
33747         * XplatUIWin32.cs (SetVisible): Removed debug output
33748         * XplatUIX11.cs (SystrayChange): Added sanity check
33749         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
33750         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
33751           behaviour, valid until the X11 client window rewrite is done
33752         * TextBox.cs (ctor): Setting proper default foreground and background
33753           colors
33754
33755 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
33756
33757         * Theme: Added DrawDateTimePicker to interface
33758         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
33759         * DateTimePicker.cs: Created (still needs keys and painting code)
33760         * DateTimePickerFormat.cs: added
33761         * MonthCalendar.cs: fixed CreateParams for popup window mode
33762           
33763 2005-01-29  Peter Bartok  <pbartok@novell.com>
33764
33765         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
33766           this should also the calculations for ligher/darker
33767         * Theme.cs: Fixed defaults for ScrollBar widths/heights
33768
33769 2005-01-29  Peter Bartok  <pbartok@novell.com>
33770
33771         * ArrangeDirection.cs: Added
33772         * ArrangeStartingPositon.cs: Added
33773         * SystemInformation.cs: Implemented
33774         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33775           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
33776           used by SystemInformation class
33777         * X11Strucs.cs: Added XSizeHints structure
33778         * MenuAPI.cs:
33779           - Fixed CreateParams to make sure the menu window is always visible
33780           - TrackPopupMenu: Added check to make sure we don't draw the
33781             menu offscreen
33782
33783 2005-01-29  Peter Bartok  <pbartok@novell.com>
33784
33785         * HandleData.cs: Added method for altering invalid area
33786         * TextBoxBase.cs: Implemented TextLength
33787
33788 2005-01-28  Peter Bartok  <pbartok@novell.com>
33789
33790         * XplatUIX11.cs: Improvement over last patch, not sending
33791           the WM_PAINT directly anymore, instead we scroll any pending
33792           exposed areas and let the system pick out the WM_PAINT later
33793
33794 2005-01-28  Peter Bartok  <pbartok@novell.com>
33795
33796         * SWF.csproj: Deleted, no longer used. Instead,
33797           Managed.Windows.Forms/SWF.csproj should be used
33798         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
33799           directly, to avoid a potential race condition with the next
33800           scroll
33801
33802 2005-01-28  Peter Bartok  <pbartok@novell.com>
33803
33804         * XplatUI.cs: Made class internal
33805
33806 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
33807
33808         * CheckedListBox.cs:
33809                 - Draw focus
33810                 - Fixed Drawing
33811                 - Missing methods and events
33812
33813 2005-01-27  Peter Bartok  <pbartok@novell.com>
33814
33815         * Application.cs (Run): Don't use form if we don't have one
33816
33817 2005-01-27  Peter Bartok  <pbartok@novell.com>
33818
33819         * TextBoxBase.cs (get_Lines): Fixed index off by one error
33820
33821 2005-01-27  Peter Bartok  <pbartok@novell.com>
33822
33823         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
33824         * GridItem.cs: Added; Patch by Jonathan S. Chambers
33825         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
33826         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
33827         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
33828         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
33829         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33830         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33831         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33832         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33833         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33834         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33835
33836 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
33837
33838         * Combobox.cs:
33839                 - Draw focus on Simple Combobox
33840                 - Fixes drawing issues
33841                 - fixes 71834
33842
33843 2005-01-27  Peter Bartok  <pbartok@novell.com>
33844
33845         * Form.cs:
33846           - Place window in default location, instead of hardcoded 0/0
33847           - Send initial LocationChanged event
33848         * Control.cs:
33849           - UpdateBounds after creation to find out where the WM placed us
33850           - Make sure that if the ParentForm changes location the Form
33851             is notified
33852         * XplatUIX11.cs: XGetGeometry will not return the coords relative
33853             to the root, but to whatever the WM placed around us.
33854             Translate to root coordinates before returning toplevel
33855             coordinates
33856         * XplatUIWin32.cs: Removed debug output
33857         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
33858           flag to GetWindowPos, to allow translation of coordinates on X11
33859
33860 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
33861
33862         * ListBox.cs: connect LostFocus Event
33863
33864 2005-01-27  Peter Bartok  <pbartok@novell.com>
33865
33866         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33867           XplatUIX11.cs: Extended the Systray API
33868         * Form.cs: Removed debug output
33869         * Application.cs: Fixed focus assignment, always need to call
33870           XplatUI.Activate() since Form.Activate() has rules that may
33871           prevent activation
33872         * NotifyIcon.cs: Should be complete now
33873         * ToolTip.cs: Worked around possible timer bug
33874
33875 2005-01-27  Jackson Harper  <jackson@ximian.com>
33876
33877         * TabControl.cs:
33878         - Only invalidate the effected tabs when the
33879         selected index changes. This reduces drawing and gets rid of some
33880         flicker.
33881         - Only refresh if the tabs need to be shifted, otherwise only
33882         invalidate the slider button.
33883         - On windows the tabs are not filled to right if the slider is
33884         visible.
33885         
33886 2005-01-27  Jackson Harper  <jackson@ximian.com>
33887
33888         * TabControl.cs: Only refresh on mouseup if we are showing the
33889         slider. Also only invalidate the button whose state has changed.
33890
33891 2005-01-26  Peter Bartok  <pbartok@novell.com>
33892
33893         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
33894         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
33895           and SystrayRemove() methods
33896         * XplatUIOSX.cs: Stubbed Systray methods
33897         * XplatUIX11.cs:
33898           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
33899             methods
33900           - Fixed broken XChangeProperty calls (marshalling messed up things)
33901         * X11Structs.cs: Added enums and structs required for Size hinting
33902         * NotifyIcon.cs: Added & implemented
33903
33904 2005-01-26  Jackson Harper  <jackson@ximian.com>
33905
33906         * TabControl.cs: Space vertically layed out tabs properly.
33907
33908 2005-01-26  Peter Bartok  <pbartok@novell.com>
33909
33910         * Form.cs (CreateClientParams): Always set the location to 0,0
33911           since we're a child window.
33912
33913         * Control.cs (SetVisibleCore): Always explicitly setting the location
33914           of a toplevel window, apparently X11 doesn't like to move windows
33915           while they're not mapped.
33916
33917 2005-01-26  Jackson Harper  <jackson@ximian.com>
33918
33919         * TabControl.cs: Implement FillToRight size mode with vertically
33920         rendered tabs.
33921
33922 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
33923
33924         * ControlPaint.cs, ThemeWin32Classic.cs
33925                 - Fixes DrawFocusRectangle
33926
33927 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
33928
33929         * MenuAPI.cs:
33930                 - MenuBar tracking only starts when item is first clicked
33931                 - Fixes menu hidding for multiple subitems
33932                 - Unselect item in MenuBar when item Executed
33933                 - Fixes bug 71495
33934
33935 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
33936
33937         * ListControl.cs:
33938                 - IsInputKey for ListBox
33939         * ListBox.cs:
33940                 - Focus item
33941                 - Shift and Control item selection
33942                 - Implement SelectionMode.MultiExtended
33943                 - Fixes RightToLeft
33944         * ComboBox.cs:
33945                 - IsInputKey implemented
33946                 - Do not generate OnTextChangedEdit on internal txt changes
33947                 
33948 2005-01-23  Peter Bartok  <pbartok@novell.com>
33949
33950         * AccessibleObject.cs: Partially implemented Select()
33951         * MonthCalendar.cs: Added missing attributes and events
33952         * Form.cs: Fixed CreateParams behaviour, now controls derived from
33953           form can properly override CreateParams.
33954         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33955           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
33956           Control performs Invalidate & Update
33957         * NativeWindow (CreateHandle): Added special handling for Form
33958           and Form.FormParent classes to allow overriding of From.CreateParams
33959         * Control.cs:
33960           - ControlNativeWindow: Renamed 'control' variable to more intuitive
33961             name 'owner'
33962           - ControlNativeWindow: Added Owner property
33963           - Removed usage of Refresh() on property changes, changed into
33964             Invalidate(), we need to wait until the queue is processed for
33965             updates, direct calls might cause problems if not all vars for
33966             Paint are initialized
33967           - Added call to UpdateStyles() when creating the window, to set any
33968             styles that CreateWindow might have ignored.
33969           - Added support for Form CreateParent overrides to UpdateStyles()
33970         * MessageBox.cs: Removed no longer needed FormParent override stuff,
33971           CreateParams are now properly overridable
33972         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
33973           CreateParams are now properly overridable
33974
33975 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
33976
33977         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
33978         OnTextBoxChanged.
33979
33980         Capture LostFocus and OnTextBoxChanged.  The later introduces a
33981         recursive invocation that I have not figured out yet.
33982
33983         Reset the timer when not using (it was accumulating).
33984
33985
33986         (OnTextBoxChanged): Set UserEdit to true here to track whether the
33987         user has made changes that require validation.
33988
33989         Reset changing to avoid loops.
33990
33991 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
33992
33993         * NumericUpDown.cs: Display value at startup.
33994
33995         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
33996         ValidateEditText.
33997
33998         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
33999         filled in.  Added some basic parsing of text.
34000
34001         Still missing the OnXXX method overrides, and figuring out the
34002         events that must be emitted.
34003
34004         * UpDownBase.cs: Handle UserEdit on the Text property.
34005         
34006 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
34007
34008         * ComboBox.cs:
34009           - Fixes IntegralHeight
34010           - ToString method
34011
34012 2005-01-21  Jackson Harper  <jackson@ximian.com>
34013
34014         * TabControl.cs: Set the SelectedIndex property when SelectedTab
34015         is set so that the page visibility is updated and the tabs are
34016         sized correctly.
34017
34018 2005-01-21  Jackson Harper  <jackson@ximian.com>
34019
34020         * TabControl.cs: Use cliping rectangle for blitting. Give the
34021         theme the clipping rect so we can do clipping while
34022         drawing. Remove some debug code.
34023
34024 2005-01-21  Jackson Harper  <jackson@ximian.com>
34025
34026         * TabPage.cs: Add a new method so tab pages can force the tab
34027         control to recalculate the tab page sizes.
34028         * TabControl.cs: UpdateOwner needs to make the tab control recalc
34029         sizes.
34030
34031 2005-01-20  Jackson Harper  <jackson@ximian.com>
34032
34033         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
34034
34035 2005-01-20  Jackson Harper  <jackson@ximian.com>
34036
34037         * TreeView.cs: Set the bounds for nodes properly. They were
34038         getting screwed up when checkboxes were not enabled, but images
34039         were.
34040
34041 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
34042
34043         * ListBox.cs:
34044                 - Owner draw support
34045                 - Fixes
34046                 
34047 2005-01-20  Jackson Harper  <jackson@ximian.com>
34048
34049         * XplatUIStructs.cs: More misc keys
34050         * X11Keyboard.cs: Ignore some control keys.
34051
34052 2005-01-20  Jackson Harper  <jackson@ximian.com>
34053
34054         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
34055         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
34056
34057 2005-01-19  Peter Bartok  <pbartok@novell.com>
34058
34059         * Control.cs: Un-selecting the control when it is loosing focus
34060
34061 2005-01-19  Jackson Harper  <jackson@ximian.com>
34062
34063         * TreeView.cs: Hook up to the text controls leave event so we can
34064         end editing when the users clicks outside the text box.
34065         
34066 2005-01-19  Jackson Harper  <jackson@ximian.com>
34067
34068         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
34069         get set in the conversion array.
34070
34071 2005-01-19  Peter Bartok  <pbartok@novell.com>
34072
34073         * Application.cs (ModalRun): Added a call to CreateControl to ensure
34074           focus is properly set
34075         * Button.cs:
34076           - Added missing attributes
34077           - removed styles, those are already set in the base class
34078         * ButtonBase.cs:
34079           - Added missing attributes
34080           - Added clip window styles
34081         * CheckBox.cs: Added missing attributes
34082         * CommonDialog.cs:
34083           - FormParentWindow.CreateParams: Added required clip styles
34084         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
34085           also filters modifier keys
34086         * MessageBox.cs:
34087           - Added assignment of Accept and Cancel button to enable Enter
34088             and Esc keys in MessageBox dialogs
34089           - FormParentWindow.CreateParams: Added required clip styles
34090         * RadioButton.cs: Added missing attributes
34091         * TextControl.cs: No longer draws selection if control does not
34092           have focus
34093         * TextBoxBase.cs:
34094           - Now draws simple rectangle around test area to make it obvious
34095             there's a control. This is a hack until we properly support borders
34096           - A few simple fixes to support selections better, now erases selected
34097             text when typing, and resets selection when using movement keys
34098
34099 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
34100
34101         * UpDownBase.cs: Added some new properties.
34102
34103         * DomainUpDown.cs: Implement a lot to get my test working.
34104
34105 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34106
34107         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
34108
34109 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34110
34111         * OSXStructs (WindowAttributes): Fixed csc complaints
34112
34113 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34114
34115         * XplayUIOSX.cs:
34116           OSXStructs.cs: Initial refactor to move enums and consts into
34117           OSXStructs and use them in the driver for greater readability.
34118
34119 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34120
34121         * XplatUIOSX.cs: Initial support for Standard Cursors.
34122         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
34123
34124 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
34125
34126         * ComboBox.cs: ability to change style when the ctrl is already
34127         created, missing methods and events, bug fixes, signature fixes
34128
34129 2005-01-19  Peter Bartok  <pbartok@novell.com>
34130
34131         * Cursors.cs (ctor): Added ctor to fix signature
34132
34133 2005-01-18  Peter Bartok  <pbartok@novell.com>
34134
34135         * Button.cs: Implemented DoubleClick event
34136         * ButtonBase.cs:
34137           - Fixed keyboard handling to behave like MS, where the press of
34138             Spacebar is equivalent to a mousedown, and the key release is
34139             equivalent to mouseup. Now a spacebar push will give the same
34140             visual feedback like a mouse click.
34141           - Added missing attributes
34142           - Added ImeModeChanged event
34143           - Added support for generating DoubleClick event for derived classes
34144         * CheckBox.cs:
34145           - Implemented DoubleClick event
34146           - Added missing attributes
34147         * CommonDialog.cs: Added missing attribute
34148         * ContextMenu.cs: Added missing attributes
34149         * RadioButton.cs:
34150           - AutoChecked buttons do not allow to be unselected when clicked
34151             (otherwise we might end up with no selected buttons in a group)
34152           - Added missing attributes
34153           - Implemented DoubleClickEvent
34154         * ThreadExceptionDialog.cs: Enabled TextBox code
34155
34156 2005-01-18  Peter Bartok  <pbartok@novell.com>
34157
34158         * Form.cs: Removed debug output
34159         * Button.cs: Added support for DoubleClick method
34160
34161 2005-01-18  Peter Bartok  <pbartok@novell.com>
34162
34163         * Form.cs:
34164           - Added method to parent window that allows triggering size
34165             calculations when a menu is added/removed
34166           - set_Menu: Cleaned up mess from early days of Form and Control,
34167             now properly triggers a recalc when a menu is added/removed
34168           - Added case to select form itself as focused form if no child
34169             controls exist
34170           - Added PerformLayout call when showing dialog, to ensure properly
34171             placed controls
34172         * Control.cs:
34173           - Select(): Made internal so Form can access it
34174           - Focus(): Only call Xplat layer if required (avoids loop), and sets
34175             status
34176         * Application.cs (Run): Removed hack and calls PerformLayout instead
34177           to trigger calculation when Form becomes visible
34178
34179 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
34180
34181         * ComboBox.cs: fixes for ownerdraw
34182
34183 2005-01-18  Peter Bartok  <pbartok@novell.com>
34184
34185         * TextControl.cs:
34186           - Sentinel is no longer static, each Document gets it's own, this
34187             avoids locking or alternatively overwrite problems when more
34188             than one text control is used simultaneously.
34189           - Switched to use Hilight and HilightText brushes for text selection
34190
34191         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
34192
34193 2005-01-18  Peter Bartok  <pbartok@novell.com>
34194
34195         * Control.cs:
34196           - Hooked up the following events:
34197                 o ControlAdded
34198                 o ControlRemoved
34199                 o HandleDestroyed
34200                 o ImeModeChanged
34201                 o ParentChanged
34202                 o TabStopChanged
34203                 o Invalidated
34204                 o SystemColorsChanged
34205                 o ParentFontChanged
34206                 o Move
34207           - Removed debug output
34208           - Added a call to the current theme's ResetDefaults when a color change
34209             is detected
34210         * Form.cs: Now setting the proper ImeMode
34211         * Theme.cs: Defined a method to force recreation of cached resources
34212           and rereading of system defaults (ResetDefaults())
34213         * ThemeWin32Classic.cs: Added ResetDefaults() stub
34214
34215 2005-01-17  Peter Bartok  <pbartok@novell.com>
34216
34217         * Control.cs: Added missing attributes
34218
34219 2005-01-17  Jackson Harper  <jackson@ximian.com>
34220
34221         * TreeNode.cs: Implement editing. Add missing properties selected
34222         and visible.
34223         * TreeView.cs: Implement node editing. Also some fixes to use
34224         Invalidate (invalid area) instead of Refresh when selecting.
34225
34226 2005-01-17  Peter Bartok  <pbartok@novell.com>
34227
34228         * Control.cs:
34229           - Implemented InvokeGotFocus() method
34230           - Implemented InvokeLostFocus() method
34231           - Implemented InvokePaint() method
34232           - Implemented InvokePaintBackground() method
34233           - Implemented InvokeClick() method
34234           - Implemented FindForm() method
34235           - Implemented RectangleToClient() method
34236           - Implemented ClientToRectangle() method
34237           - Implemented ResetBackColor() method
34238           - Implemented ResetCursor() method
34239           - Implemented ResetFont() method
34240           - Implemented ResteForeColor() method
34241           - Implemented ResetImeMode() method
34242           - Implemented ResetLeftToRight() method
34243           - Implemented ResetText() method
34244           - Implemented Scale() methods
34245           - Implemented ScaleCore() method
34246           - Implemented Update() method
34247           - Removed unused variables
34248           - Stubbed AccessibilityNotifyClients and
34249             ControlAccessibleObject.NotifyClients() methods (dunno what to do
34250             with those yet)
34251           - Now setting proper default for RightToLeft property
34252           - Fixed bug in SetClientSizeCore that would cause windows to get
34253             really big
34254           - Now sending Click/DoubleClick events
34255           - Now selecting controls when left mouse button is clicked on
34256             selectable control
34257         * AccessibleEvents.cs: Added
34258         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
34259         * XplatUIOSX.cs: Stubbed UpdateWindow() method
34260         * XplatUIWin32.cs: Implemented UpdateWindow() method
34261         * XplatUIX11.cs: Implemented UpdateWindow() method
34262         * Form.cs: Removed stray semicolon causing CS0162 warning
34263         * ThemeWin32Classic.cs: Fixed unused variable warnings
34264         * ScrollableControl.cs: Now calls base method for ScaleCore
34265         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
34266           style to avoid interference with internal click handler (which is
34267           different than standard Control click handling)
34268         * RadioButton.cs:
34269           - Now unchecks all sibling radio buttons when control is
34270             selected (Fixes #68756)
34271           - Removed internal tabstop variable, using the one inherited from
34272             Control
34273
34274 2005-01-17  Jackson Harper  <jackson@ximian.com>
34275
34276         * NavigateEventArgs.cs: Fix base type.
34277         * LinkLabel.cs: Sig fix
34278         
34279 2005-01-17  Jackson Harper  <jackson@ximian.com>
34280
34281         * TreeView.cs: Only invalidate the effected nodes bounds when
34282         selecting nodes.
34283
34284 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34285
34286         * XplatUIWin32.cs: fixes Win32 marshaling
34287         * XplatUIX11.cs: fixes method signature
34288
34289 2005-01-17  Peter Bartok  <pbartok@novell.com>
34290
34291         * XplatUIX11.cs: Clean up resources when we no longer need them
34292
34293 2005-01-17  Peter Bartok  <pbartok@novell.com>
34294
34295         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
34296           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
34297           and DestroyCursor() methods.
34298         * Cursor.cs: Partially implemented, now supports standard cursors;
34299           still contains some debug code
34300         * Cursors.cs: Implemented class
34301         * Control.cs:
34302           - WndProc(): Added handling of WM_SETCURSOR message, setting the
34303             appropriate cursor
34304           - Implemented Cursor property
34305           - Replaced break; with return; more straightforwar and possibly
34306             faster
34307           - Now properly setting the result for WM_HELP
34308         * X11Structs.cs: Added CursorFontShape enum
34309         * XplatUIStructs.cs:
34310           - Added StdCursor enum (to support DefineStdCursor() method)
34311           - Added HitTest enum (to support sending WM_SETCURSOR message)
34312         * XplatUIX11.cs:
34313           - Now sends the WM_SETCURSOR message
34314           - Implemented new cursor methods
34315         * XplatUIOSX.cs: Stubbed new cursor methods
34316         * XplatUIWin32.cs:
34317           - Implemented new cursor methods
34318           - Added GetSystemMetrics function and associated enumeration
34319
34320 2005-01-15  Peter Bartok  <pbartok@novell.com>
34321
34322         * Control.cs:
34323           - WndProc(): Now handles EnableNotifyMessage
34324           - SelectNextControl(): Fixed bug where if no child or sibling
34325             controls exist we looped endlessly
34326
34327 2005-01-14  Jackson Harper  <jackson@ximian.com>
34328
34329         * TreeView.cs: Recalculate the tab pages when a new one is added
34330         so that the proper bounding rects are created.
34331
34332 2005-01-14  Jackson Harper  <jackson@ximian.com>
34333
34334         * TreeView.cs: Draw a gray box instead of a grip in the lower
34335         right hand corner when there are both horizontal and vertical
34336         scroll bars.
34337
34338 2005-01-14  Jackson Harper  <jackson@ximian.com>
34339
34340         * Control.cs: When erasing backgrounds use FromHwnd instead of
34341         FromHdc when there is a NULL wparam. This occurs on the X driver.
34342         * XplatUIX11.cs: Set the wparam to NULL.
34343
34344 2005-01-13  Jackson Harper  <jackson@ximian.com>
34345
34346         * PictureBox.cs: Implement missing methods (except ToString, need
34347         to test that on windows) and events. When visibility is changed we
34348         need to redraw the image because the buffers are killed. When size
34349         is changed refresh if the sizemode needs it.
34350
34351 2005-01-13  Peter Bartok  <pbartok@novell.com>
34352
34353         * Control.cs (SelectNextControl): Was using wrong method to select
34354           a control
34355
34356 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34357
34358         * ComboBox.cs: fixes dropstyle
34359
34360 2005-01-13  Peter Bartok  <pbartok@novell.com>
34361
34362         * Form.cs:
34363           - Implemented Select() override
34364           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
34365           - Now sets keyboard focus on startup
34366         * Control.cs (SelectNextControl): Now properly handles directed=true
34367         * TextBoxBase.cs:
34368           - WndProc: Now passes tab key on to base if AcceptTabChar=false
34369           - Added (really bad) focus rectangle (mostly for testing)
34370         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
34371           to enforce redraw on focus changes
34372         * ContainerControl.cs:
34373           - Fixed detection of Shift-Tab key presses
34374           - Fixed traversal with arrow keys
34375         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
34376           gonna keep this or if it's complete yet
34377         
34378 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34379
34380         * ComboBox.cs: missing properties, fixes
34381
34382 2005-01-13  Peter Bartok  <pbartok@novell.com>
34383
34384         * Panel.cs (ctor): Setting Selectable window style to off
34385         * Splitter.cs (ctor): Setting Selectable window style to off
34386         * GroupBox.cs (ctor): Setting Selectable window style to off
34387         * Label.cs (ctor): Setting Selectable window style to off
34388
34389 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
34390
34391         * UpDownBase.cs (InitTimer): If the timer has been already
34392         created, enable it.
34393
34394         Use a TextBox instead of a Label.
34395
34396 2005-01-12  Jackson Harper  <jackson@ximian.com>
34397
34398         * TreeView.cs: Refresh the tree after sorting the nodes. Always
34399         draw the connecting node lines (when ShowLines is true).
34400         * TreeNode.cs: The nodes index can now be updated. This is used
34401         when a node collection is sorted.
34402         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
34403         insert or an existing unsorted node collection can be sorted.
34404         
34405 2005-01-12  Peter Bartok  <pbartok@novell.com>
34406
34407         * ContainerControl.cs: Implemented ProcessDialogKeys()
34408
34409 2005-01-12  Peter Bartok  <pbartok@novell.com>
34410
34411         * Control.cs:
34412           - Implemented SelectNextControl() method
34413           - Several focus related bug fixes
34414           - Fixed Docking calculations to match MS documentation and
34415             behaviour
34416
34417 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
34418
34419         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
34420         bug fixes
34421
34422 2005-01-12  Peter Bartok  <pbartok@novell.com>
34423
34424         * Control.cs:
34425           - Fixed broken Contains() method
34426           - Implemented GetNextControl() method. Finally. This is the pre-
34427             requisite for focus handling.
34428
34429 2005-01-12  Peter Bartok  <pbartok@novell.com>
34430
34431         * OSXStrucs.cs: Added
34432
34433 2005-01-12  Peter Bartok  <pbartok@novell.com>
34434
34435         * XplatUIWin32.cs:
34436           - Removed PeekMessageFlags
34437           - Implemented SetWindowStyle() method
34438         * XplatUIStructs.cs: Added PeekMessageFlags
34439         * X11Structs: Added missing border_width field to XWindowChanges struct
34440         * XplatUIX11.cs:
34441           - PeekMessage: Now throws exception if flags which are not yet
34442             supported are passed
34443           - Implemented SetWindowStyle() method
34444           - Fixed SetZOrder to handle AfterHwnd properly
34445         * XplatUI.cs: Added SetWindowStyle() method
34446         * XplatUIDriver.cs: Added SetWindowStyle() abstract
34447         * Control.cs:
34448           - Implemented UpdateStyles() method
34449           - Implemented UpdateZOrder() method
34450         * XplatUIOSX.cs: Added SetWindowStyle() stub
34451
34452 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
34453
34454         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
34455         button mouse).
34456
34457
34458 2005-01-11  Jackson Harper  <jackson@ximian.com>
34459
34460         * TreeView.cs: Still need to draw lines to siblings even if out of
34461         the current node is out of the clip.
34462
34463 2005-01-11  Jackson Harper  <jackson@ximian.com>
34464
34465         * TreeView.cs: When setting the hbar/vbar/grip position use
34466         SetBounds so that perform layout is only called once. Also suspend
34467         and resume layout so layout is only done once for all controls.
34468         - Removed some debug fluff
34469         * SizeGrip.cs: Call base implmentation in overriding methods.
34470         - When visibility is changed the drawing buffers are killed so we
34471         need to redraw.
34472
34473 2005-01-11  Jackson Harper  <jackson@ximian.com>
34474
34475         * TreeView.cs: Calculate the open node count while drawing. This
34476         saves us an entire tree traversal for every paint operation. Use
34477         a member var for the open node count so less vars are passed around.
34478
34479 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
34480
34481         * MonthCalendar.cs:
34482         - fixed selection to use mousemove, not mouse polling on timer
34483         * ThemeWin32Classic.cs
34484         - removed redundant unused variable "no_more_content"
34485         
34486 2005-01-11  Peter Bartok  <pbartok@novell.com>
34487
34488         * XplatUIX11.cs (DoEvents): Needs to return when no more events
34489           are pending, so it now calls PeekMessage instead of GetMessage;
34490           implemented a incomplete version of PeekMessage
34491         
34492 2005-01-11  Peter Bartok  <pbartok@novell.com>
34493
34494         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
34495           I18n issues
34496         * TextBoxBase.cs: Added sending of TextChanged event
34497
34498 2005-01-10  Jackson Harper  <jackson@ximian.com>
34499
34500         * TreeView.cs: Try not to draw outside the clipping rectangle on
34501         each node element.
34502
34503 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
34504
34505         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
34506
34507 2005-01-10  Jackson Harper  <jackson@ximian.com>
34508
34509         * TreeView.cs:
34510         - Implement fast scrolling. Now only the newly
34511         exposed nodes are drawn and the old image is moved using the
34512         XplatUI::ScrollWindow method.
34513         - Factor in height of nodes when calculating whether or not the
34514         node is in the clipping rect.
34515
34516 2005-01-10  Jackson Harper  <jackson@ximian.com>
34517
34518         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
34519
34520 2005-01-10  Peter Bartok  <pbartok@novell.com>
34521
34522         * Application.cs: Added temporary hack to resolve all our resize
34523           required issues on startup. This will get fixed properly at
34524           some point in the future
34525
34526 2005-01-10  Jackson Harper  <jackson@ximian.com>
34527
34528         * SizeGrip.cs: New internal class that is used as a sizing
34529         grip control...hence the name.
34530
34531 2005-01-10  Peter Bartok  <pbartok@novell.com>
34532
34533         * Control.cs: Implemented proper TabIndex handling, now assigning
34534           a tabindex when a control is added to a container
34535         * GroupBox.cs (ctor): Now sets the Container style bit, required
34536           for Control.GetNextControl()
34537
34538 2005-01-09  Jackson Harper  <jackson@ximian.com>
34539
34540         * TextBoxBase.cs: Clear window when scrolling (fixes build).
34541
34542 2005-01-09  Peter Bartok <pbartok@novell.com>
34543
34544         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34545           XplatUIX11.cs: Added ability to control ScrollWindow expose and
34546           an overload for ScrollWindow to allow only scrolling a rectangle
34547
34548 2005-01-09  Peter Bartok <pbartok@novell.com>
34549
34550         * Form.cs:
34551           - Implemented SetDesktopBounds method
34552           - Implemented SetDesktopLocation method
34553
34554 2005-01-08  Jackson Harper  <jackson@ximian.com>
34555
34556         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
34557         the node count has changed, this removes to VScroll::Refresh calls
34558         when drawing.
34559
34560 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
34561
34562         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
34563
34564 2005-01-07  Jackson Harper  <jackson@ximian.com>
34565
34566         * TreeNode.cs: Just update the single node when it is
34567         checked. Don't refresh after toggling, the Expand/Collapse already
34568         handles this.
34569         * TreeView.cs: Respect clipping a little more when drawing. Try
34570         not to redraw things that don't need to be redrawn. Just hide the
34571         scrollbars when they are no longer needed instead of removing
34572         them, so they don't have to be created again and again.
34573         
34574 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
34575
34576         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
34577         coordinates to window space to place the caret properly, FIXED.
34578         Implement GetWindowState & SetWindowState
34579
34580 2005-01-06  Peter Bartok <pbartok@novell.com>
34581
34582         * Form.cs:
34583           - Implemented ClientSize property
34584           - Implemented DesktopBounds property
34585           - Implemented DesktopLocation property
34586           - Implemented IsRestrictedWindow property
34587           - Implemented Size property
34588           - Implemented TopLevel property
34589           - Implemented FormWindowState property
34590         * Control.cs:
34591           - Implemented GetTopLevel() method
34592           - Implemented SetTopLevel() method
34593         * X11Structs.cs (Atom):
34594           - Added AnyPropertyType definition
34595           - Added MapState definiton and updated XWindowAttribute struct
34596         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
34597         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
34598         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
34599         * XplatUIWin32.cs:
34600           - Implemented GetWindowState() and SetWindowState() methods
34601           - Fixed Win32GetWindowLong return type
34602         * XplatUIX11.cs:
34603           - Introduced central function for sending NET_WM messages
34604           - Implemented GetWindowState() and SetWindowState() methods
34605         * TextBoxBase.cs (set_Lines):
34606           - Now uses Foreground color for text added via Text property (Duh!)
34607           - Added code to remember programmatically requested size (fixes
34608             behaviour when Multiline is set after Size)
34609           - Added AutoSize logic
34610
34611 2005-01-06  Jackson Harper  <jackson@ximian.com>
34612
34613         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
34614
34615 2005-01-06  Jackson Harper  <jackson@ximian.com>
34616
34617         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
34618         set to less then 0.
34619
34620 2005-01-06  Jackson Harper  <jackson@ximian.com>
34621
34622         * ScrollableControl.cs: Lazy init the scrollbars.
34623         
34624 2005-01-06  Jackson Harper  <jackson@ximian.com>
34625
34626         * Theme.cs: Speed up getting pens and solid brushes, by using
34627         their ARGB as a hash instead of tostring and not calling Contains.
34628
34629 2005-01-06  Peter Bartok <pbartok@novell.com>
34630
34631         * Form.cs:
34632           - Implemented OnActivated and OnDeactivate event trigger
34633           - Implemented Activate() method
34634           - Fixed ShowDialog() to activate the form that was active before
34635             the dialog was shown
34636         * XplatUIX11.cs:
34637           - Added global active_window var that tracks the currently active
34638             X11 window
34639           - Now always grabs Property changes from the root window to always
34640             catch changes on the active window property
34641           - Added code to PropertyNotify handler to send Active/Inactive
34642             messages when state changes. This puts X11 and Win32 en par on
34643             WM_ACTIVATE notifications (except for double notifications when
34644             the user clicks away from our modal window to another one of our
34645             windows)
34646
34647 2005-01-05  Jackson Harper  <jackson@ximian.com>
34648
34649         * ImageList.cs: Implment ctor
34650
34651 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34652
34653         * XplatUIOSX.cs: Implement Activate/SetTopmost
34654
34655 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34656
34657         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
34658
34659 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34660
34661         * XplatUIOSX.cs: Implement GetActive/SetFocus.
34662
34663 2005-01-05  Peter Bartok <pbartok@novell.com>
34664
34665         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
34666           XplatUIOSX.cs: Added GetActive method to return the currently
34667           active window for the application (or null, if none is active)
34668         * Form.cs:
34669           - Implemented ActiveForm
34670           - Commented out owner assignment for modal dialogs (causes problems
34671             on Win32, since the owner will be disabled)
34672           - Reworked some Active/Focus handling (still incomplete)
34673         * CommonDialog.cs: Commented out owner assignment for modal dialogs
34674           (causes problems on Win32, since the owner will be disabled)
34675         * IWin32Window: Added ComVisible attribute
34676
34677 2005-01-05  Peter Bartok <pbartok@novell.com>
34678
34679         * ToolTip.cs (WndProc): Enable setting focus now that we have the
34680           required XplatUI functions.
34681
34682 2005-01-05  Peter Bartok <pbartok@novell.com>
34683
34684         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
34685           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
34686           to implement focus and activation handling; still incomplete and
34687           with debug output
34688
34689 2005-01-04  Peter Bartok <pbartok@novell.com>
34690
34691         * TextBoxBase.cs: Changed access level for Document property to
34692           match switch to internal for TextControl
34693
34694 2005-01-04  Peter Bartok <pbartok@novell.com>
34695
34696         * AccessibleObject: Added ComVisible attribute
34697
34698 2005-01-04  Jackson Harper  <jackson@ximian.com>
34699
34700         * X11Keyboard.cs: Remove unneeded var.
34701
34702 2005-01-04  Jackson Harper  <jackson@ximian.com>
34703
34704         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
34705         but PAINT.
34706         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
34707         ClientMessage. This makes apps exit cleanly (more often).
34708         
34709 2005-01-04  Jackson Harper  <jackson@ximian.com>
34710
34711         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
34712         handling focus, return correct colors and fonts,
34713         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
34714         handle selection, horizontal scrolling, and mouse interaction.
34715
34716 2005-01-04  Peter Bartok <pbartok@novell.com>
34717
34718         * ICommandExecutor.cs: Added
34719         * IDataGridColumnStyleEditingNotificationService.cs: Added
34720         * IFeatureSupport.cs: Added
34721         * IFileReaderService.cs: Added
34722         * IDataObject.cs: Added ComVisible attribute
34723         * AmbientProperties.cs: Added
34724         * BaseCollection.cs: Added missing attributes
34725         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
34726         * BaseCollection.cs: Added missing attributes
34727         * Binding.cs: Added TypeConverter attribute
34728         * BindingContext.cs: Added DefaultEvent attribute
34729         * BindingsCollection.cs: Added DefaultEvent attribute
34730         * Button.cs: Added DefaultValue attribute
34731         * DragEventArgs.cs: Added ComVisible attribute
34732         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
34733         * KeyEventArgs.cs: Added ComVisible attribute
34734         * KeyPressEventArgs.cs: Added ComVisible attribute
34735         * MouseEventArgs.cs: Added ComVisible attribute
34736         * NavigateEventArgs.cs: Added
34737         * NavigateEventHandler.cs: Added
34738         * FeatureSupport.cs: Added
34739         * OSFeature.cs: Added
34740         * Theme.cs: Added abstract Version property to support OSFeature
34741         * ThemeWin32Classic.cs: Added Version property to
34742           support OSFeature.Themes
34743         * ProgressBar.cs: Removed OnPaintBackground override, not required since
34744           the proper styles to avoid background drawing are set, also doesn't
34745           match MS signature
34746         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
34747         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
34748         * ScrollEventArgs.cs: Added ComVisible attribute
34749         * SplitterEventArgs.cs: Added ComVisible attribute
34750         * AccessibleSelection.cs: Added Flags attribute
34751         * Appearance.cs: Added ComVisible attribute
34752         * Border3DSide.cs: Added ComVisible attribute
34753         * Border3DStyle.cs: Added ComVisible attribute
34754         * BorderStyle.cs: Added ComVisible attribute
34755         * DragAction.cs: Added ComVisible attribute
34756         * ErrorBlinkStyle.cs: Added
34757         * ScrollEventType.cs: Added ComVisible attribute
34758         * AnchorStyles.cs: Added Editor attribute
34759         * DockStyle.cs: Added Editor attribute
34760         * HorizontalAlignment.cs: Added ComVisible attribute
34761         * HelpEventArgs.cs: Added ComVisible attribute
34762         * PaintEventArgs.cs: Added IDisposable
34763
34764 2005-01-04  Peter Bartok <pbartok@novell.com>
34765
34766         * TextControl.cs: Switched Line, LineTag and Document classes to
34767           internal
34768
34769 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
34770
34771         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
34772         Simple mode, fixes, IntegralHeight, etc.
34773
34774 2005-01-04  Peter Bartok <pbartok@novell.com>
34775
34776         * TextBoxBase.cs: Using proper font variable now
34777
34778 2005-01-04  Peter Bartok <pbartok@novell.com>
34779
34780         * Form.cs (ShowDialog): Set parent to owner, if provided
34781         * GroupBox.cs: Removed unused vars
34782         * TextControl.cs:
34783           - Added GetHashCode() for Document and LineTag classes
34784           - Removed unused variables
34785           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
34786             to allow translation between continuous char position and line/pos
34787         * CheckBox.cs: Removed vars that are provided by base class
34788         * RadioButton.cs: Removed vars that are provided by base class, added
34789           new keyword where required
34790         * LinkLabel.cs: Added new keyword where required
34791         * Control.cs (WndProc): Removed unused variable
34792         * TextBoxBase.cs:
34793           - Finished SelectionLength property
34794           - Implemented SelectionStart property
34795           - Implemented Text property
34796           - Removed unused vars
34797         * MessageBox.cs: Added new keyword where required
34798         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
34799           WndProc signature
34800         * MenuAPI.cs: Added new keyword where required
34801         * ButtonBase.cs: Removed vars that are provided by base class, added
34802           new keyword where required
34803         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
34804           argument to double, to allow compiling with csc 2.0 (Atsushi ran
34805           into this)
34806         * Application.cs (Run): Now triggers the ThreadExit event
34807         * CommonDialog.cs: Added new keyword where required; now properly sets
34808           parent (owner) for dialog
34809         * XplatUIX11.cs: Commented out unused vars
34810         * StatusBar.cs: Fixed signature for Text property
34811         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
34812
34813 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
34814
34815         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
34816         TrackBar.cs, MonthCalendar.cs: remove unused vars
34817
34818 2005-01-03  Jackson Harper  <jackson@ximian.com>
34819
34820         * ThemeWin32Classic.cs:
34821         * X11Keyboard.cs: Remove unused vars.
34822
34823 2005-01-03  Peter Bartok  <pbartok@novell.com>
34824
34825         * TextBox.cs:
34826           - set_Text: Tied into TextControl
34827           - set_TextAlignment: Tied into TextControl
34828         * TextControl.cs:
34829           - Added alignment properties and implemented alignment handling
34830             and drawing (still has a bug, not generating proper expose events)
34831           - Added new Line() constructor to allow passing the line alignment
34832           - Fixed selection setting, properly handling end<start now
34833           - Added aligment considerations to RecalculateDocument()
34834         * TextBoxBase.cs:
34835           - Now properly enforces control height for single line controls
34836           - Added support for CharacterCasing
34837           - Added IsInputKey override
34838           - Fixed Keys.Enter logic
34839           - Added SetBoundsCore override
34840           - Fixed mouse selection handling
34841
34842 2005-01-03  Jackson Harper  <jackson@ximian.com>
34843
34844         * TreeView.cs:
34845           - Collapse and uncheck all nodes when CheckBoxes is disabled.
34846           - Checkboxes are always aligned to the bottom of the node,
34847           regardless of item height.
34848           - Use the node bounds to draw the text so we can center it when
34849           the item height is greater then the font height.
34850           - Node::Bounds are only the text part of the node.
34851         * TreeNode.cs: New method to combine collapsing and unchecking all
34852           nodes recursively.
34853
34854 2005-01-02  Jackson Harper  <jackson@ximian.com>
34855
34856         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
34857         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
34858         tree when a check is changed. TODO: Only refresh the checked node.
34859
34860 2004-12-30  Jackson Harper  <jackson@ximian.com>
34861
34862         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
34863         * TreeNode.cs: When collapsing make sure to never collapse the
34864         root node.
34865
34866 2004-12-29  Jackson Harper  <jackson@ximian.com>
34867
34868         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
34869         
34870 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
34871
34872         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
34873
34874 2004-12-28  Peter Bartok  <pbartok@novell.com>
34875
34876         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
34877           not yet assigned
34878
34879 2004-12-28  Peter Bartok  <pbartok@novell.com>
34880
34881         * Control.cs (WndProc): Added WM_HELP handler, now generates
34882           HelpRequested event
34883         * Form.cs: Added HelpButton property and required support code
34884         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
34885
34886 2004-12-28  Peter Bartok  <pbartok@novell.com>
34887
34888         * CommonDialog.cs:
34889           - Made DialogForm.owner variable internal
34890           - Added check to ensure owner form is set before setting
34891             owner properties in CreateParams
34892
34893 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
34894
34895         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
34896           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
34897           GetCursorPos.  Fix major visibility issues.  Rework the windowing
34898           system to support borderless/titleless windows (implements menus).
34899           Fix GetWindowPos.  Implement initial background color support for
34900           views.
34901
34902 2004-12-28  Peter Bartok  <pbartok@novell.com>
34903
34904         * Form.cs (get_CreateParams): Make sure we have an owner before using
34905           the owner variable. Implement proper default if no owner exists
34906
34907 2004-12-28  Peter Bartok  <pbartok@novell.com>
34908
34909         * In preparation for making Managed.Windows.Forms the default build target
34910           for System.Windows.Forms, the following stubbed files were added.
34911           Dialogs are currently being implemented by contributors and are only
34912           short-term place holders.
34913         * ColorDialog.cs: Initial check-in (minmal stub)
34914         * DataGrid.cs: Initial check-in (minimal stub)
34915         * DataGridLineStyle.cs: Initial check-in (minimal stub)
34916         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
34917         * DataGridTableStyle.cs: Initial check-in (minimal stub)
34918         * FontDialog.cs: Initial check-in (minimal stub)
34919         * FileDialog.cs: Initial check-in (minimal stub)
34920         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
34921         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
34922         * OpenFileDialog: Initial check-in (minimal stub)
34923         * IComponentEditorPageSite.cs: Initial check-in
34924         * Splitter.cs: Initial check-in (for Jackson)
34925         * SplitterEventArgs.cs: Initial check-in (for Jackson)
34926         * SplitterEventHandler.cs: Initial check-in (for Jackson)
34927         * TextBox.cs: Initial check-in; still needs some wiring to
34928           TextControl backend
34929         * Form.cs: Implemented ControlBox property
34930         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
34931         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
34932         * TextControl.cs: Added selection functionality; added todo header
34933         * TextBoxBase.cs:
34934           - Implemented Lines property
34935           - Implemented TextHeight property
34936           - Implemented SelectedText property
34937           - Implemented SelectionLength property
34938           - Implemented SelectAll method
34939           - Implemented ToString method
34940           - Removed and cleaned up some debug code
34941           - Implemented (still buggy) mouse text selection
34942
34943 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
34944
34945         * ComboBox.cs: Complete DropDownList implementation, fixes.
34946
34947 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
34948
34949         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
34950         * ComboBoxStyle.cs: ComboBoxStyle enum
34951         * ComboBox.cs: Initial work on ComboBox control
34952
34953 2004-12-21  Peter Bartok  <pbartok@novell.com>
34954
34955         * Control.cs (ctor, CreateParams): Moved setting of is_visible
34956           forward so that anything that creates a window gets the default,
34957           also no longer uses Visible property in CreateParams to avoid
34958           walking up the parent chain and possibly get the wrong visible
34959           status. Fixed IsVisible to no longer walk up to the parent.
34960
34961 2004-12-21  Peter Bartok  <pbartok@novell.com>
34962
34963         * Form.cs (ShowDialog): Unset modality for the proper window
34964  
34965 2004-12-20  Peter Bartok  <pbartok@novell.com>
34966
34967         * CommonDialog.cs: Initial check-in
34968
34969 2004-12-20  Peter Bartok  <pbartok@novell.com>
34970
34971         * Control.cs (Visible): Now uses the parent window instead of the
34972           client area window for the property
34973
34974         * Form.cs
34975           - ShowDialog(): Now uses the proper window for modality
34976           - The default visibility state for the form parent is now false. This
34977             will prevent the user from seeing all the changes to the form and
34978             its controls before the application hits Application.Run()
34979           - Removed some stale commented out code
34980
34981         * NativeWindow.cs:
34982           - Added FindWindow() method to have a method to check for existence
34983             of a window handle
34984           - Added ability to override default exception handling (for example
34985             when debugging with VS.Net; to do this the ExternalExceptionHandler
34986             define must be set
34987           - Removed some useless debug output
34988
34989         * XplatUIX11.cs:
34990           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
34991             not working as expected
34992           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
34993             property to allow switching back to the modal window if focus is
34994             given to another one of our windows (Application Modal)
34995           - Now only sets override_redirect if we create a window
34996             without WS_CAPTION
34997           - Moved EventMask selection before mapping of newly created window
34998             so we can catch the map event as well
34999           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
35000           - Added various Atom related DllImports
35001           - Implemented Exit() method
35002           - .ctor() : No longer shows window if WS_VISIBLE is not defined
35003             in the CreateParams
35004
35005         * MessageBox.cs: Now properly deals with the FormParent window by
35006           providing an override the FormParent CreateParams property to
35007           set as POPUP instead of OVERLAPPED window.
35008
35009 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
35010
35011         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
35012         Minor code cleanup.
35013
35014 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
35015         
35016         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
35017
35018 2004-12-18  Peter Bartok  <pbartok@novell.com>
35019
35020         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
35021           implementing SetModal() method
35022
35023 2004-12-18  Peter Bartok  <pbartok@novell.com>
35024
35025         * X11Structs.cs (XGCValues): Fixed type of function element
35026         * XplatUI.cs: Added ScrollWindow() method
35027         * XplatUIDriver.cs: Added ScrollWindow() abstract
35028         * XplatUIWin32.cs: Implemented ScrollWindow() method
35029         * XplatUIX11.cs: Implemented ScrollWindow() method
35030         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
35031
35032 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35033
35034         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
35035         Some more keyboard support (INCOMPLETE)
35036
35037 2004-12-17  Peter Bartok  <pbartok@novell.com>
35038
35039         * TextControl.cs:
35040         - Added color attribute to line tags.
35041         - Added color argument to all functions dealing with tags
35042         - Added color argument support to various functions
35043         - Fixed miss-calculation of baseline/shift in certain circumstances
35044
35045         * TextBoxBase.cs: Added new color option to test code
35046
35047 2004-12-17  Jackson Harper  <jackson@ximian.com>
35048
35049         * TreeNode.cs:
35050         * MonthCalendar.cs: Signature fixes
35051
35052 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35053
35054         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
35055         keyboard event moved it.  Create a new graphics context for each paint resolves this
35056
35057 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35058
35059         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
35060         Make caret exist and go blink blink.  Initial keyboard support.
35061         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
35062         works.
35063
35064 2004-12-17  Jackson Harper  <jackson@ximian.com>
35065
35066         * XplatUIStructs.cs: Updated set of virtual keycodes.
35067         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
35068
35069 2004-12-17  Jackson Harper  <jackson@ximian.com>
35070
35071         * XplatUIX11.cs: Prune old keyboard code.
35072
35073 2004-12-17  Jackson Harper  <jackson@ximian.com>
35074
35075         * XplatUIX11.cs: When generating mouse wparams get the modifier
35076         keys from the ModifierKeys property.
35077
35078 2004-12-17  Jackson Harper  <jackson@ximian.com>
35079
35080         * X11Keyboard.cs: Send up/down input when generating
35081         messages. Remove some unused vars.
35082
35083 2004-12-17  Jackson Harper  <jackson@ximian.com>
35084
35085         * TabControl.cs:
35086         * TreeView.cs: get rid of warnings.
35087
35088 2004-12-17  Jackson Harper  <jackson@ximian.com>
35089
35090         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
35091
35092 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
35093
35094         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
35095           CheckedListBox.cs: Implementation
35096
35097 2004-12-17  Peter Bartok  <pbartok@novell.com>
35098
35099         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
35100
35101 2004-12-16  Peter Bartok  <pbartok@novell.com>
35102
35103         * TextControl.cs:
35104           - InsertCharAtCaret(): Fixed start pos fixup
35105           - CaretLine_get: No longer derives the line from the tag, the tag
35106             could be stale if lines in the document have been added or deleted
35107           - RebalanceAfterDelete(): Fixed bug in balancing code
35108           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
35109           - Line.Streamline(): Now can also elminate leading empty tags
35110           - DumpTree(): Added a few more tests and prevented exception on
35111             uninitialized data
35112           - Added Debug section for Combining lines
35113           - Delete(): Now copies all remaining properties of a line
35114           
35115         * TextBoxBase.cs:
35116           - Left mousebutton now sets the caret (and middle button still acts
35117             as formatting tester, which must go away soon)
35118           - Added Debug section for Deleting/Combining lines
35119           - Fixed calculations for UpdateView after Combining lines
35120
35121 2004-12-16  Peter Bartok  <pbartok@novell.com>
35122
35123         * TextControl.cs: Now properly aligns text on a baseline, using the
35124           new XplatUI.GetFontMetrics() method. Simplified several calculations
35125         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
35126           defined
35127
35128 2004-12-16  Peter Bartok  <pbartok@novell.com>
35129
35130         * XplatUI.cs: Added GetFontMetrics() method
35131         * XplatUIDriver.cs: Added GetFontMetrics() abstract
35132         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
35133           into libgdiplus, our private GetFontMetrics function
35134         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
35135         * XplatUIWin32.cs: Implemented GetFontMetrics() method
35136
35137 2004-12-16  Jackson Harper  <jackson@ximain.com>
35138
35139         * XplatUIStruct.cs: Add enum for dead keys
35140         * X11Keyboard.cs: Map and unmap dead keys.
35141
35142 2004-12-16  Jackson Harper  <jackson@ximian.com>
35143
35144         * X11Keyboard.cs: Detect and use the num lock mask.
35145
35146 2004-12-16  Peter Bartok  <pbartok@novell.com>
35147
35148         * Control.cs (CreateGraphics): Added check to make sure the
35149           handle of the window exists before calling Graphics.FromHwnd()
35150
35151 2004-12-16  Peter Bartok  <pbartok@novell.com>
35152
35153         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
35154           contains a lot of code that's not supposed to be there for the
35155           real thing, but required for developing/testing the textbox
35156           backend.
35157
35158 2004-12-16  Peter Bartok  <pbartok@novell.com>
35159
35160         * TextControl.cs:
35161         - Fixed Streamline method
35162         - Added FindTag method to Line
35163         - Added DumpTree method for debugging
35164         - Added DecrementLines() method for deleting lines
35165         - Fixed UpdateView to update the cursor to end-of-line on single-line
35166           updates
35167         - Added PositionCaret() method
35168         - Fixed MoveCaret(LineDown) to move into the last line, too
35169         - Added InsertChar overload
35170         - Fixed InsertChar tag offset calculations
35171         - Added DeleteChar() method
35172         - Added Combine() method for folding lines
35173         - Fixed Delete() method, no longer allocates wasted Line object and
35174           now copies all properties when swapping nodes
35175         - Delete() method now updates document line counter
35176
35177 2004-12-15  Jackson Harper  <jackson@ximian.com>
35178
35179         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
35180         * X11Keyboard.cs: Expose the currently selected modifier keys
35181         through a property.
35182
35183 2004-12-15  Peter Bartok  <pbartok@novell.com>
35184
35185         * TextControl.cs: Initial check-in. Still incomplete
35186
35187 2004-12-15  Jackson Harper  <jackson@ximian.com>
35188
35189         * TreeNode.cs:
35190         * TreeView.cs: Fix build on csc (second time today ;-))
35191
35192 2004-12-15  Jackson Harper  <jackson@ximian.com>
35193
35194         * TreeView.cs: Store the treenodes plus/minus box bounds when it
35195         is calculated and use this for click testing.
35196         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
35197
35198 2004-12-15  Jackson Harper  <jackson@ximian.com>
35199
35200         * TreeView.cs: Pass the nodes image index to the image list when
35201         drawing that image.
35202
35203 2004-12-15  Jackson Harper  <jackson@ximian.com>
35204
35205         * X11Keyboard.cs: Set messages hwnd.
35206         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
35207         post_message calls.
35208
35209 2004-12-15  Jackson Harper  <jackson@ximian.com>
35210
35211         * X11Keyboard.cs: Fix to compile with csc.
35212         
35213 2004-12-15  Jackson Harper  <jackson@ximian.com>
35214
35215         * X11Structs.cs: Add key mask values
35216         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
35217         * X11Keyboard.cs: New file - Extrapolates and interpolates key
35218         down/up foo into WM_CHAR foo
35219         * KeyboardLayouts.cs: Common keyboard layouts
35220         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
35221         post messages into the main queue.
35222
35223 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
35224
35225         * Button.cs: implement ProcessMnemonic
35226         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
35227           brushes everytime
35228         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
35229         * ButtonBase.cs: Show HotkeyPrefix (not the &)
35230
35231 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
35232         
35233         * MonthCalendar.cs: Implemented click-hold for next/previous month
35234           and date selection
35235           
35236 2004-12-11  Peter Bartok  <pbartok@novell.com>
35237
35238         * X11Structs.cs:
35239           - Added XKeyboardState (moved from XplatUIX11.cs)
35240           - Added XCreateGC related enums and structures
35241           - Added GXFunction for XSetFunction
35242
35243         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
35244
35245         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
35246           CaretVisible() calls
35247
35248         * ToolTip.cs: Added code to prevent stealing focus from app windows
35249
35250         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
35251           DestroyCaret, SetCaretPos and CaretVisible)
35252
35253         * XplatUIX11.cs:
35254           - Added implementation for caret functions
35255           - Moved hover variables into a struct, to make it a bit easier
35256             on the eyes and to debug
35257           - Removed XKeyboardState (moved to XplatUIX11.cs)
35258           - Moved Keyboard properties into the properties region
35259
35260         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
35261           call to get a graphics context for our control
35262
35263         * XplatUIOSX.cs: Added empty overrides for the new caret functions
35264
35265         * TreeView.cs: Fixed bug. No matter what color was set it would always
35266           return SystemColors.Window
35267
35268         * XplatUIWin32.cs: Implemented caret overrides
35269
35270 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
35271
35272         * ListBox.cs: fire events, implement missing methods and properties,
35273         sorting.
35274
35275 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
35276
35277         * MonthCalendar.cs: invalidation bug fixing
35278         * ThemeWin32Classic.cs: paint fixing
35279
35280 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
35281
35282         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
35283         prepare the CGContextRef there now.
35284
35285 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
35286
35287         * MonthCalendar.cs:
35288           - optimisationL only invalidate areas that have changed
35289         * ThemeWin32Classic.cs:
35290           - only paint parts that intersect with clip_area
35291
35292 2004-12-09  Peter Bartok  <pbartok@novell.com>
35293
35294         * Application.cs: Undid changes from r37004 which cause problems
35295         on X11
35296
35297 2004-12-09  Ravindra  <rkumar@novell.com>
35298
35299         * ToolBar.cs: Added support for displaying ContextMenu
35300         attached to a button on ToolBar.
35301         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
35302         property.
35303
35304 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
35305
35306         * Label.cs: autosize works in text change and removes unnecessary
35307         invalidate
35308
35309 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
35310
35311         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35312         remove warnings
35313
35314 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
35315
35316         * XplatUIOSX.cs: Added mouse move/click/grab support
35317         Remove some debugging WriteLines not needed anymore.
35318         Add window resizing/positioning.
35319         Fix visibility on reparenting.
35320
35321 2004-12-08  Peter Bartok  <pbartok@novell.com>
35322
35323         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
35324
35325 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
35326
35327         * XplatUIOSX.cs: Initial checkin
35328         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
35329
35330 2004-12-03  Ravindra <rkumar@novell.com>
35331
35332         * ListView.cs: Added some keybindings and fixed scrolling.
35333         ScrollBars listen to ValueChanged event instead of Scroll
35334         Event. This would let us take care of all changes being
35335         done in the scrollbars' values programmatically or manually.
35336         * ListView.cs (CanMultiselect): Added a check for shift key.
35337         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
35338         * ListViewItem.cs (Clone): Fixed. We need to make a copy
35339         of ListViewSubItemCollection as well.
35340
35341 2004-12-06  Peter Bartok <pbartok@novell.com>
35342
35343         * Control.cs (Parent): Added check and exception to prevent
35344         circular parenting
35345
35346 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
35347
35348         * ListBox.cs: implemented clipping, selection single and multiple,
35349         bug fixing
35350
35351 2004-12-03  Ravindra <rkumar@novell.com>
35352
35353         * ListView.cs (ListView_KeyDown):
35354         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
35355         when CTRL key is pressed.
35356         * ListViewItem.cs (Selected): Fixed setting the property.
35357
35358 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
35359
35360         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
35361
35362         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
35363         MinimizeBox, ShowInTaskbar, TopMost properties.
35364
35365         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
35366         will be implemented).
35367
35368 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
35369
35370         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
35371
35372         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
35373         tests.
35374         
35375         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
35376         
35377         * TreeView.cs: BackColor is Colors.Window.
35378
35379 2004-12-01  Jackson Harper  <jackson@ximian.com>
35380
35381         * TreeView.cs: When resizing the tree if the user is making it
35382         smaller we don't get expose events, so we need to handle adding
35383         the horizontal scrollbar in the size changed handler as well as
35384         the expose handler.
35385
35386 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
35387
35388         * DrawItemState.cs: fixes wrong enum values
35389
35390 2004-12-01  Jackson Harper  <jackson@ximian.com>
35391
35392         * TreeView.cs: Resize the hbar as well as the vbar on resize.
35393
35394 2004-12-01  Jackson Harper  <jackson@ximian.com>
35395
35396         * NodeLabelEditEventArgs.cs:
35397         * NodeLabelEditEventHandler.cs:
35398         * OpenTreeNodeEnumerator.cs:
35399         * TreeNode.cs:
35400         * TreeNodeCollection.cs:
35401         * TreeView.cs:
35402         * TreeViewAction.cs:
35403         * TreeViewCancelEventArgs.cs:
35404         * TreeViewCancelEventHandler.cs:
35405         * TreeViewEventArgs.cs:
35406         * TreeViewEventHandler.cs: Initial implementation.
35407
35408 2004-12-01  Ravindra <rkumar@novell.com>
35409
35410         * ListView.cs (CalculateListView): Fixed scrolling related
35411         calculations. Also, removed some debug statements from other
35412         places.
35413         * ListViewItem.cs: Changed access to 'selected' instance variable
35414         from private to internal.
35415         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
35416
35417 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
35418
35419         * ThemeWin32Classic.cs: remove cache of brush and pens for
35420         specific controls and use the global system, fixes scrollbutton
35421         bugs (for small sizes, disabled, etc)
35422         
35423         * ScrollBar.cs: does not show the thumb for very small controls
35424         (as MS) and allow smaller buttons that the regular size
35425
35426 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
35427
35428         * UpDownBase.cs: Add abstract methods for the interface.
35429         Add new virtual methods (need to be hooked up to TextEntry when it
35430         exists).
35431         Add override methods for most features.
35432         Computes the size, forces the height of the text entry.
35433
35434         * NumericUpDown.cs: Put here the current testing code.
35435
35436         * Set eol-style property on all files that do not have mixed line
35437         endings, to minimize the future problems.  There are still a few
35438         files with mixed endings, and someone should choose whether they
35439         want to move it or not.
35440
35441 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
35442
35443         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
35444         System.Colors
35445         
35446 2004-11-30  Ravindra <rkumar@novell.com>
35447
35448         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
35449         drawing and replaced use of SystemColors by theme colors.
35450         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
35451         * ListView.cs (ListViewItemCollection.Add): Throw exception when
35452         same ListViewItem is being added more than once.
35453
35454 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
35455
35456         * MonthCalendar.cs:
35457           - ControlStyles love to make the control not flicker
35458           
35459 2004-11-30  Peter Bartok  <pbartok@novell.com>
35460
35461         * CharacterCasing.cs: Added
35462
35463 2004-11-29  Peter Bartok  <pbartok@novell.com>
35464
35465         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35466           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
35467           I am removing these files as they conflict with already completed
35468           work. While it is fantastic to get contributions to MWF, I
35469           respectfully ask that everyone please coordinate their contributions
35470           through mono-winforms-list or #mono-winforms at this time. We're
35471           explicitly avoiding stubbing and don't want controls that don't have
35472           their basic functionality implemented in svn. Please also see
35473           http://www.mono-project.com/contributing/winforms.html
35474
35475
35476 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
35477
35478         * Application.cs (ModalRun): Don't hang after exit.
35479
35480         * Theme.cs: New TreeViewDefaultSize property.
35481
35482         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
35483         with less hardcoded SystemColors constant.
35484         Implemented TreeViewDefaultSize.
35485
35486         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35487         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
35488
35489
35490 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
35491
35492         * MonthCalendar.cs:
35493           - Fix NextMonthDate and PrevMonthDate click moving calendar
35494
35495 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
35496
35497         * MonthCalendar.cs:
35498           - Fix usage of ScrollChange Property when scrolling months
35499
35500 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
35501
35502         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
35503          - Fixes menu destroying
35504          - Support adding and removing items on already created menus
35505
35506 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
35507
35508         * MonthCalendar.cs:
35509           - Re-worked all bolded dates handling to match win32
35510         * ThemeWin32Classic.cs:
35511           - Fixed rendering with bolded dates
35512
35513 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
35514
35515         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
35516         - Horizontal scroolbar
35517         - Multicolumn
35518         - Fixes
35519
35520
35521 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
35522
35523         * MonthCalendar.cs:
35524           - Fix Usage of MaxSelectionCount from SelectionRange
35525           - Fixed Shift + Cursor Selection
35526           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
35527           - Fixed normal cursor selection to be compat with win32
35528           - Fixed Shift + Mouse Click selection
35529
35530 2004-11-24  Peter Bartok <pbartok@novell.com>
35531
35532         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
35533         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
35534         * XplatUIX11.cs:
35535           - CreatedKeyBoardMsg now updates keystate with Alt key
35536           - Added workaround for timer crash to CheckTimers, Jackson will
35537             develop a proper fix and check in later
35538           - Implemented DispatchMessage
35539           - Removed calling the native window proc from GetMessage (call
35540             now moved to DispatchMessage)
35541
35542         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
35543           the keydata (Fixes bug #69831)
35544
35545         * XplatUIWin32.cs:
35546           - (DispatchMessage): Switched to return IntPtr
35547           - Added DllImport for SetFocus
35548
35549 2004-11-24  Ravindra <rkumar@novell.com>
35550
35551         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
35552         background drawing.
35553         * ListViewItem.cs: Fixed various properties, calculations
35554         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
35555         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
35556         and some internal properties. Fixed MouseDown handler and Paint
35557         method.
35558
35559 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
35560
35561         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
35562
35563 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
35564
35565         * ContainerControl.cs: correct accidental check in of local changes
35566
35567 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
35568
35569         * ThemeWin32Classic.cs:
35570                 - Fixed Drawing Last month in grid (sometimes not showing)
35571         * MonthCalendar.cs:
35572                 - Fixed title width calculation bug (makeing title small)
35573
35574 2004-11-23  Peter Bartok <pbartok@novell.com>
35575
35576         * XplatUIX11.cs:
35577           - Added generation of WM_MOUSEHOVER event
35578           - Added missing assignment of async_method atom
35579           - Fixed WM_ERASEBKGND; now only redraws the exposed area
35580
35581 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
35582
35583         * ThemeWin32Classic.cs:
35584                 - Fixed Drawing of today circle when showtodaycircle not set
35585                 - fixed drawing of first and last month in the grid (gay dates)
35586         * MonthCalendar.cs:
35587                 - Fixed Drawing of today circle
35588                 - Fixed drawing of grady dates
35589                 - Fixed HitTest for today link when ShowToday set to false
35590                 - Fixed DefaultSize to obey ShowToday
35591
35592 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
35593
35594         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
35595         * System.Windows.Forms/Theme.cs
35596         * MonthCalendar.cs: added for MonthCalendar
35597         * SelectionRange.cs: added for MonthCalendar
35598         * Day.cs: added for MonthCalendar: added for MonthCalendar
35599         * DateRangeEventArgs.cs: added for MonthCalendar
35600         * DateRangeEventHandler.cs: added for MonthCalendar
35601
35602 2004-11-22  Ravindra <rkumar@novell.com>
35603
35604         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
35605         property.
35606
35607 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
35608
35609         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
35610         event handler.
35611         
35612         * NumericUpDown.cs: Added new implementation.
35613         * UpDownBase.cs: Added new implementation.
35614
35615         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
35616         implementations.
35617         
35618         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
35619         implementations.
35620
35621         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
35622         methods.
35623
35624 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
35625
35626         * Timer.cs  (Dispose): Should call the base dispose when
35627         overriding.
35628
35629 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
35630
35631         * ScrollBar.cs: updates thumb position when max, min or increment
35632         is changed
35633
35634 2004-11-21  Ravindra <rkumar@novell.com>
35635
35636         * ListView.cs: Implemented item selection, activation and
35637         column header style. Fixed properties to do a redraw, if
35638         required. Added support for MouseHover, DoubleClick, KeyDown
35639         and KeyUp event handling and some minor fixes.
35640         * ListViewItem.cs: Fixed constructor.
35641         * ThemeWin32Classic.cs: Improved drawing for ListView.
35642
35643 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
35644
35645         * ThemeWin32Classic.cs: initial listbox drawing code
35646         * DrawMode.cs: new enumerator
35647         * ListControl.cs: stubbed class
35648         * ListBox.cs: initial implementation
35649         * Theme.cs: new methods definitions
35650         * SelectionMode.cs: new enumerator
35651
35652 2004-11-17  Peter Bartok  <pbartok@novell.com>
35653
35654         * XplatUIWin32.cs: Added double-click events to the class style
35655         * Control.cs (WndProc):
35656           - Added handling of click-count to MouseDown/ MouseUp events.
35657           - Added handling of middle and right mouse buttons
35658           - Removed old debug code
35659
35660 2004-11-17  Jackson Harper  <jackson@ximian.com>
35661
35662         * XplatUIX11.cs: Use the new Mono.Unix namespace.
35663
35664 2004-11-17  Ravindra <rkumar@novell.com>
35665
35666         * ListView.cs: Added event handling for MouseMove/Up/Down.
35667         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
35668         * ThemeWin32Classic.cs: We need to clear the graphics context and
35669         draw column header in a proper state.
35670
35671
35672 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
35673
35674         *  Menu.cs: fixes signature
35675
35676 2004-11-16  Peter Bartok  <pbartok@novell.com>
35677
35678         * XplatUIX11.cs (GetMessage): Implemented generation of
35679           double click mouse messages
35680
35681 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
35682
35683         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
35684         not by menu
35685
35686 2004-11-11  Peter Bartok  <pbartok@novell.com>
35687
35688         * HandleData.cs: Added Visible property
35689         * XplatUIX11.cs (IsVisible): Now uses Visible property from
35690           HandleData
35691         * XplatUIX11.cs: Removed old debug leftovers
35692         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
35693         * Control.cs (WndProc): Removed old debug leftovers,
35694           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
35695           needed WM_SIZE handling
35696
35697 2004-11-11  Jackson Harper  <jackson@ximian.com>
35698
35699         * OwnerDrawPropertyBag.cs:
35700         * TreeViewImageIndexConverter.cs: Initial implementation
35701
35702 2004-11-10  Jackson Harper  <jackson@ximian.com>
35703
35704         * ThemeWin32Classic.cs:
35705         * TabControl.cs: instead of moving tabs by the slider pos just
35706         start drawing at the tab that is offset by the slider. This way
35707         scrolling always moves by exactly one tab.
35708
35709 2004-11-10  Jackson Harper  <jackson@ximian.com>
35710
35711         * TabControl.cs: You can only scroll left when the slider has
35712         already ben moved right.
35713         
35714 2004-11-10  Jackson Harper  <jackson@ximian.com>
35715
35716         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
35717         the clip area.
35718         
35719 2004-11-10  Jackson Harper  <jackson@ximian.com>
35720
35721         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
35722         clip area.
35723         
35724 2004-11-09  Jackson Harper  <jackson@ximian.com>
35725
35726         * TabControl.cs (CalcXPos): New helper method so we can determine
35727         the proper place to start drawing vertical tabs.
35728         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
35729         
35730 2004-11-09  Jackson Harper  <jackson@ximian.com>
35731
35732         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
35733         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
35734         and Bottom, left and right are illegal values for this and
35735         multiline is enabled when the alignment is set to left or right.
35736         (DrawTab): Each alignment block should draw the text itself now
35737         because Left requires special love. Also add rendering for Left
35738         aligned tabs.
35739         
35740 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
35741
35742         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
35743         does not destroy the windows, removes debugging messages
35744
35745 2004-11-09  jba  <jba-mono@optusnet.com.au>
35746
35747         * ThemeWin32Classic.cs
35748         (DrawButtonBase): Fix verticle text rect clipping in windows
35749         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35750         rendering and incorrect text rect clipping
35751         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35752         rendering and incorrect text rect clipping
35753         
35754 2004-11-08  Jackson Harper  <jackson@ximian.com>
35755
35756         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
35757         bottom when they are bottom aligned so the bottoms of the tabs get
35758         displayed.
35759         * TabControl.cs (DropRow): Move rows up instead of down when the
35760         tab control is bottom aligned.
35761
35762 2004-11-08 13:59  pbartok
35763
35764         * XplatUIX11.cs:
35765           - Added handling for various window styles
35766           - Added handling for popup windows
35767           - Added SetTopmost handling
35768
35769 2004-11-08 13:55  pbartok
35770
35771         * XplatUIWin32.cs:
35772           - Added argument to SetTopmost method
35773           - Fixed broken ClientToScreen function
35774
35775 2004-11-08 13:53  pbartok
35776
35777         * XplatUIStructs.cs:
35778           - Added missing WS_EX styles
35779
35780 2004-11-08 13:53  pbartok
35781
35782         * XplatUI.cs, XplatUIDriver.cs:
35783           - Added argument to SetTopmost
35784
35785 2004-11-08 13:52  pbartok
35786
35787         * X11Structs.cs:
35788           - Added XSetWindowAttributes structure
35789           - Improved XWindowAttributes structure
35790           - Added SetWindowValuemask enum
35791           - Added window creation arguments enum
35792           - Added gravity enum
35793           - Added Motif hints structure
35794           - Added various Motif flags and enums
35795           - Added PropertyMode enum for property functions
35796
35797 2004-11-08 13:50  pbartok
35798
35799         * Form.cs:
35800           - Fixed arguments for updated SetTopmost method
35801
35802 2004-11-08 13:49  pbartok
35803
35804         * ToolTip.cs:
35805           - Fixed arguments for updated SetTopmost function
35806           - Fixed usage of PointToClient
35807
35808 2004-11-08 13:44  pbartok
35809
35810         * MenuAPI.cs:
35811           - Added Clipping of children and siblings
35812
35813 2004-11-08 13:41  pbartok
35814
35815         * MainMenu.cs:
35816           - Removed SetMenuBarWindow call. We do this in Form.cs
35817
35818 2004-11-08 13:40  jackson
35819
35820         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
35821           scrolling jimmi in the correct location with bottom aligned tabs
35822
35823 2004-11-08 13:36  pbartok
35824
35825         * ContainerControl.cs:
35826           - Implemented BindingContext
35827           - Implemented ParentForm
35828
35829 2004-11-08 12:46  jackson
35830
35831         * TabControl.cs: Put bottom rendered tabs in the right location
35832
35833 2004-11-08 07:15  jordi
35834
35835         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
35836           removes dead code
35837
35838 2004-11-05 17:30  jackson
35839
35840         * TabControl.cs: When selected tabs are expanded make sure they
35841           don't go beyond the edges of the tab control
35842
35843 2004-11-05 14:57  jackson
35844
35845         * TabControl.cs: Reset show_slider so if the control is resized to
35846           a size where it is no longer needed it's not displayed anymore
35847
35848 2004-11-05 13:16  jackson
35849
35850         * TabControl.cs: Make tab pages non visible when added to the
35851           control
35852
35853 2004-11-05 12:42  jackson
35854
35855         * TabControl.cs: Implement SizeMode.FillToRight
35856
35857 2004-11-05 12:16  jackson
35858
35859         * Control.cs: Do not call CreateHandle if the handle is already
35860           created
35861
35862 2004-11-05 11:46  jackson
35863
35864         * TabControl.cs: Remove superflous call to CalcTabRows
35865
35866 2004-11-05 09:07  jackson
35867
35868         * XplatUIX11.cs: Update for Mono.Posix changes
35869
35870 2004-11-05 07:00  ravindra
35871
35872         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
35873           scrolling.
35874
35875 2004-11-04 22:47  jba
35876
35877         * ThemeWin32Classic.cs:
35878           - Fix Button rendering for FlatStyle = Flat or Popup
35879           - Fix RadioButton and CheckBox rendering when Appearance = Button
35880             (normal and flatstyle).
35881           - Correct outer rectangle color when drawing focus rectangle
35882           - Adjust button bounds to be 1 px smaller when focused
35883           - Make button not draw sunken 3d border when pushed (windows compat)
35884           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
35885           - Offset the text in RadioButton and Checkbox when being rendered as
35886           a button.
35887           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
35888           radiobuttons
35889           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
35890           - Fixed disabled text rendering for normally rendered radiobuttons
35891
35892 2004-11-04 10:26  jackson
35893
35894         * TabControl.cs: Recalculate tab rows when resizing
35895
35896 2004-11-04 07:47  jordi
35897
35898         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
35899           collection completion, drawing issues, missing features
35900
35901 2004-11-04 05:03  ravindra
35902
35903         * ScrollBar.cs:
35904                 - We need to recalculate the Thumb area when
35905                 LargeChange/maximum/minimum values are changed.
35906           - We set the 'pos' in UpdatePos() method to minimum, if it's less
35907                 than minimum. This is required to handle the case if large_change is
35908                 more than max, and use LargeChange property instead of large_change
35909                 variable.
35910           - We return max+1 when large_change is more than max, like MS does.
35911
35912 2004-11-04 04:29  ravindra
35913
35914         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
35915                 - Changed default value signatures (prefixed all with ListView).
35916                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
35917                 ListView.
35918           - Fixed calculations for ListViewItem and implemented Clone()
35919           method.
35920
35921 2004-11-04 04:26  ravindra
35922
35923         * Theme.cs, ThemeWin32Classic.cs:
35924                 - Changed default ListView values signatures (prefixed all with
35925                 ListView).
35926           - Fixed default size values for VScrollBar and HScrollBar.
35927                 - Fixed DrawListViewItem method.
35928
35929 2004-11-04 04:05  ravindra
35930
35931         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
35932
35933 2004-11-04 04:04  ravindra
35934
35935         * ImageList.cs: Implemented the missing overload for Draw method.
35936
35937 2004-11-03 19:29  jackson
35938
35939         * TabControl.cs: Handle dropping rows on selection properly
35940
35941 2004-11-03 11:59  jackson
35942
35943         * TabControl.cs: remove debug code
35944
35945 2004-11-03 11:52  jackson
35946
35947         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
35948           the scrolly widgerywoo
35949
35950 2004-11-02 13:52  jackson
35951
35952         * TabControl.cs: Resize the tab pages and tabs when the tab control
35953           is resized
35954
35955 2004-11-02 13:40  jackson
35956
35957         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
35958           selected tab to the bottom
35959
35960 2004-11-02 13:39  jackson
35961
35962         * TabPage.cs: Store the tab pages row
35963
35964 2004-11-02 12:33  jordi
35965
35966         * MenuItem.cs: fixes handle creation
35967
35968 2004-11-02 11:42  jackson
35969
35970         * TabControl.cs: signature fix
35971
35972 2004-11-02 08:56  jackson
35973
35974         * TabControl.cs: Calculate whether the tab is on an edge properly.
35975           Remove top secret debugging code
35976
35977 2004-11-01 19:57  jackson
35978
35979         * TabControl.cs: Add click handling, and proper sizing
35980
35981 2004-11-01 19:47  jackson
35982
35983         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
35984           tab controls
35985
35986 2004-11-01 19:39  jackson
35987
35988         * TabPage.cs: add internal property to store the bounds of a tab
35989           page
35990
35991 2004-10-30 04:23  ravindra
35992
35993         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
35994           values.
35995
35996 2004-10-30 04:21  ravindra
35997
35998         * ListView.cs, ListViewItem.cs: Added support for scrolling and
35999           fixed calculations.
36000
36001 2004-10-30 03:06  pbartok
36002
36003         * XplatUIX11.cs:
36004           - Removed extension of DllImported libs
36005
36006 2004-10-29 09:55  jordi
36007
36008         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
36009           navigation, itemcollection completion, menu fixes
36010
36011 2004-10-27 22:58  pbartok
36012
36013         * XplatUIX11.cs:
36014           - Now throws a nice error message when no X display could be opened
36015
36016 2004-10-26 13:51  jordi
36017
36018         * ListView.cs: removes warning
36019
36020 2004-10-26 03:55  ravindra
36021
36022         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
36023           ThemeWin32Classic.cs: Some formatting for my last checkins.
36024
36025 2004-10-26 03:36  ravindra
36026
36027         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
36028           control and default values.
36029
36030 2004-10-26 03:35  ravindra
36031
36032         * Theme.cs: Added some default values for ListView control.
36033
36034 2004-10-26 03:33  ravindra
36035
36036         * ToolBar.cs: ToolBar should use the user specified button size, if
36037           there is any. Added a size_specified flag for the same.
36038
36039 2004-10-26 03:33  ravindra
36040
36041         * ColumnHeader.cs: Added some internal members and calculations for
36042           ColumnHeader.
36043
36044 2004-10-26 03:32  ravindra
36045
36046         * ListViewItem.cs: Calculations for ListViewItem.
36047
36048 2004-10-26 03:31  ravindra
36049
36050         * ListView.cs: Added some internal members and calculations for
36051           ListView.
36052
36053 2004-10-22 13:31  jordi
36054
36055         * MenuAPI.cs: speedup menus drawing
36056
36057 2004-10-22 13:16  jackson
36058
36059         * XplatUIX11.cs: Make sure to update exposed regions when adding an
36060           expose event
36061
36062 2004-10-22 11:49  jackson
36063
36064         * Control.cs: oops
36065
36066 2004-10-22 11:41  jackson
36067
36068         * Control.cs: Check to see if the window should have its background
36069           repainted by X when drawing.
36070
36071 2004-10-22 11:31  jackson
36072
36073         * XplatUIX11.cs: When invalidating areas only use XClearArea if
36074           clear is true, this way we do not get flicker from X repainting the
36075           background
36076
36077 2004-10-22 11:28  jackson
36078
36079         * XEventQueue.cs: Queue properly
36080
36081 2004-10-21 09:38  jackson
36082
36083         * XEventQueue.cs: Fix access modifier
36084
36085 2004-10-21 09:36  jackson
36086
36087         * XEventQueue.cs: Don't loose messages
36088
36089 2004-10-21 09:22  jackson
36090
36091         * XEventQueue.cs: Don't loose messages
36092
36093 2004-10-20 04:15  jordi
36094
36095         * BootMode.cs: enum need it by SystemInfo
36096
36097 2004-10-19 21:58  pbartok
36098
36099         * XplatUIWin32.cs:
36100           - Small sanity check
36101
36102 2004-10-19 21:56  pbartok
36103
36104         * Form.cs:
36105           - Added private FormParentWindow class which acts as the container
36106             for our form and as the non-client area where menus are drawn
36107           - Added/Moved required tie-ins to Jordi's menus
36108           - Fixed/Implemented the FormStartPosition functionality
36109
36110 2004-10-19 21:52  pbartok
36111
36112         * Control.cs:
36113           - Removed unneeded locals
36114           - Added code to all size and location properties to understand and
36115             deal with the parent container of Form
36116
36117 2004-10-19 21:33  pbartok
36118
36119         * Application.cs:
36120           - Fixed to deal with new Form subclasses for menus
36121
36122 2004-10-19 17:48  jackson
36123
36124         * XEventQueue.cs: commit correct version of file
36125
36126 2004-10-19 16:50  jackson
36127
36128         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
36129
36130 2004-10-19 16:15  jordi
36131
36132         * MenuAPI.cs: MenuBarCalcSize returns the height
36133
36134 2004-10-19 08:31  pbartok
36135
36136         * Control.cs:
36137           - Added missing call to PreProcessMessage before calling OnXXXKey
36138           methods
36139
36140 2004-10-19 00:04  ravindra
36141
36142         * ToolTip.cs: Fixed constructor.
36143
36144 2004-10-18 09:31  jordi
36145
36146         * MenuAPI.cs: menuitems in menubars do not have shortcuts
36147
36148 2004-10-18 09:26  jordi
36149
36150         * MenuItem.cs: fixes MenuItem class signature
36151
36152 2004-10-18 08:56  jordi
36153
36154         * MenuAPI.cs: prevents windows from showing in the taskbar
36155
36156 2004-10-18 00:28  ravindra
36157
36158         * ToolTip.cs: Suppressed a warning message.
36159
36160 2004-10-18 00:27  ravindra
36161
36162         * Control.cs: Default value of visible property must be true.
36163
36164 2004-10-17 23:19  pbartok
36165
36166         * ToolTip.cs:
36167           - Complete implementation
36168
36169 2004-10-17 23:19  pbartok
36170
36171         * XplatUIX11.cs:
36172           - Added EnableWindow method
36173           - Added SetModal stub
36174           - Added generation of WM_ACTIVATE message (still needs testing)
36175           - Added SetTopMost stub
36176           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
36177
36178 2004-10-17 23:17  pbartok
36179
36180         * XplatUIWin32.cs:
36181           - Removed VirtualKeys to XplatUIStructs
36182           - Implemented SetTopMost method
36183           - Implemented EnableWindow method
36184           - Bugfix in ScreenToClient()
36185           - Bugfixes in ClientToScreen()
36186
36187 2004-10-17 22:51  pbartok
36188
36189         * XplatUIStructs.cs:
36190           - Added WS_EX styles to WindowStyles enumeration
36191
36192 2004-10-17 22:50  pbartok
36193
36194         * XplatUI.cs, XplatUIDriver.cs:
36195           - Added method for enabling/disabling windows
36196           - Added method for setting window modality
36197           - Added method for setting topmost window
36198
36199 2004-10-17 22:49  pbartok
36200
36201         * ThemeWin32Classic.cs:
36202           - Added ToolTip drawing code
36203
36204 2004-10-17 22:49  pbartok
36205
36206         * Theme.cs:
36207           - Added ToolTip abstracts
36208
36209 2004-10-17 22:47  pbartok
36210
36211         * Form.cs:
36212           - Fixed Form.ControlCollection to handle owner relations
36213           - Added Owner/OwnedForms handling
36214           - Implemented Z-Ordering for owned forms
36215           - Removed unneeded private overload of ShowDialog
36216           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
36217             so I hope)
36218           - Fixed Close(), had wrong default
36219           - Added firing of OnLoad event
36220           - Added some commented out debug code for Ownership handling
36221
36222 2004-10-17 22:16  pbartok
36223
36224         * Control.cs:
36225           - Fixed/implemented flat list of controls
36226
36227 2004-10-17 22:14  pbartok
36228
36229         * Application.cs:
36230           - Added code to simulate modal dialogs on Win32
36231
36232 2004-10-17 16:11  jordi
36233
36234         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
36235           mouse event
36236
36237 2004-10-17 13:39  jordi
36238
36239         * MenuAPI.cs: menu drawing fixes
36240
36241 2004-10-15 09:10  ravindra
36242
36243         * StructFormat.cs: General Enum.
36244
36245 2004-10-15 09:09  ravindra
36246
36247         * SizeGripStyle.cs: Enum for Form.
36248
36249 2004-10-15 09:08  ravindra
36250
36251         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
36252           in Theme for ListView.
36253
36254 2004-10-15 09:06  ravindra
36255
36256         * ColumnHeader.cs: Flushing some formatting changes.
36257
36258 2004-10-15 09:05  ravindra
36259
36260         * ListViewItem.cs: Implemented GetBounds method and fixed coding
36261           style.
36262
36263 2004-10-15 09:03  ravindra
36264
36265         * ListView.cs: Implemented Paint method and fixed coding style.
36266
36267 2004-10-15 07:34  jordi
36268
36269         * MenuAPI.cs: fix for X11
36270
36271 2004-10-15 07:32  ravindra
36272
36273         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
36274                 - Renamed Paint() method to Draw() for clarity. Also, moved
36275                 DrawImage() to OnPaint().
36276
36277 2004-10-15 07:25  ravindra
36278
36279         * CheckBox.cs, RadioButton.cs:
36280                 - Removed Redraw (), we get it from ButtonBase.
36281                 - Implemented Paint (), to do class specific painting.
36282
36283 2004-10-15 07:16  ravindra
36284
36285         * ButtonBase.cs:
36286                 - Redraw () is not virtual now.
36287                 - Added an internal virtual method Paint (), so that
36288                 derived classes can do their painting on their own.
36289                 - Modified OnPaint () to call Paint ().
36290
36291 2004-10-15 06:43  jordi
36292
36293         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
36294           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
36295
36296 2004-10-15 00:30  ravindra
36297
36298         * MessageBox.cs:
36299                 - MessageBox on windows does not have min/max buttons.
36300                 This change in CreateParams fixes this on Windows. We
36301                 still need to implement this windowstyle behavior in
36302                 our X11 driver.
36303
36304 2004-10-14 05:14  ravindra
36305
36306         * ToolBar.cs:
36307                 - Changed Redraw () to do a Refresh () always.
36308                 - Fixed the MouseMove event handling when mouse is pressed,
36309                 ie drag event handling.
36310                 - Replaced the usage of ToolBarButton.Pressed property to
36311                 ToolBarButton.pressed internal variable.
36312
36313 2004-10-14 05:10  ravindra
36314
36315         * ToolBarButton.cs:
36316                 - Added an internal member 'inside' to handle mouse move
36317                 with mouse pressed ie mouse drag event.
36318                 - Changed 'Pressed' property to return true only when
36319                 'inside' and 'pressed' are both true.
36320                 - Some coding style love.
36321
36322 2004-10-14 00:17  ravindra
36323
36324         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
36325           public method.
36326
36327 2004-10-14 00:15  ravindra
36328
36329         * ButtonBase.cs: Redraw () related improvements.
36330
36331 2004-10-14 00:14  ravindra
36332
36333         * MessageBox.cs: Moved InitFormSize () out of Paint method and
36334           removed unnecessary calls to Button.Show () method.
36335
36336 2004-10-13 17:50  pbartok
36337
36338         * XplatUIX11.cs:
36339           - Formatting fix
36340           - Removed destroying of window until we solve the problem of X
36341             destroying the window before us on shutdown
36342
36343 2004-10-13 16:32  pbartok
36344
36345         * ButtonBase.cs:
36346           - Now Redraws on MouseUp for FlatStyle Flat and Popup
36347
36348 2004-10-13 14:18  pbartok
36349
36350         * XplatUIX11.cs:
36351           - Added code to destroy the X window
36352
36353 2004-10-13 14:18  pbartok
36354
36355         * XplatUIWin32.cs:
36356           - Added code to destroy a window
36357
36358 2004-10-13 14:12  pbartok
36359
36360         * ButtonBase.cs:
36361           - Added the Redraw on Resize that got dropped in the last rev
36362
36363 2004-10-13 09:06  pbartok
36364
36365         * ThemeWin32Classic.cs:
36366           - Path from John BouAntoun:
36367             * Fix check rendering (centre correctly for normal style, offset
36368               correctly for FlatStyle).
36369             * Fix border color usage (use backcolor) for FlatStyle.Popup
36370             * Use checkbox.Capture instead of checkbox.is_pressed when
36371               rendering flatstyle states.
36372
36373 2004-10-12 21:48  pbartok
36374
36375         * ThemeWin32Classic.cs:
36376           - Removed all occurences of SystemColors and replaced them with the
36377             matching theme color
36378
36379 2004-10-12 21:41  pbartok
36380
36381         * ThemeWin32Classic.cs:
36382           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
36383             him using the function for flatstyle drawing
36384           - Changed functions to use the new version of CPDrawBorder3D
36385
36386 2004-10-12 21:15  pbartok
36387
36388         * ControlPaint.cs:
36389           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
36390             match MS documentation. They need to return defined colors if the
36391             passed color matches the configured control color. Thanks to John
36392             BouAntoun for pointing this out.
36393
36394 2004-10-12 20:57  pbartok
36395
36396         * Control.cs:
36397           - Fix from John BouAntoun: Raise ForeColorChanged event when text
36398             color is changed
36399
36400 2004-10-12 20:46  pbartok
36401
36402         * CheckBox.cs:
36403           - Fix from John BouAntoun: Now properly sets the Appearance property
36404
36405 2004-10-12 20:45  pbartok
36406
36407         * ThemeWin32Classic.cs:
36408           - Fixes from John BouAntoun: now handles forecolors and backcolors
36409             for flatstyle rendered controls much better; It also fixes normal
36410             checkbox rendering when pushed or disabled.
36411
36412 2004-10-08 02:50  jordi
36413
36414         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
36415           work
36416
36417 2004-10-07 08:56  jordi
36418
36419         * ThemeWin32Classic.cs: Removes deletion of cached brushes
36420
36421 2004-10-06 03:59  jordi
36422
36423         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
36424           XplatUIWin32.cs: removes warnings from compilation
36425
36426 2004-10-05 12:23  jackson
36427
36428         * RadioButton.cs: Fix ctor
36429
36430 2004-10-05 11:10  pbartok
36431
36432         * MessageBox.cs:
36433           - Partial implementation by Benjamin Dasnois
36434
36435 2004-10-05 10:15  jackson
36436
36437         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
36438           by John BouAntoun
36439
36440 2004-10-05 03:07  ravindra
36441
36442         * ToolBar.cs:
36443                 - Removed a private method, Draw ().
36444                 - Fixed the ButtonDropDown event handling.
36445                 - Fixed MouseMove event handling.
36446
36447 2004-10-05 03:04  ravindra
36448
36449         * ThemeWin32Classic.cs:
36450                 - Added DrawListView method and ListViewDefaultSize property.
36451                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
36452                 - Changed DOS style CRLF to Unix format (dos2unix).
36453
36454 2004-10-05 03:03  ravindra
36455
36456         * Theme.cs:
36457                 - Added DrawListView method and ListViewDefaultSize property.
36458
36459 2004-10-05 02:42  ravindra
36460
36461         * ToolBarButton.cs: Added an internal member dd_pressed to handle
36462           clicks on DropDown arrow.
36463
36464 2004-10-04 22:56  jackson
36465
36466         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
36467           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
36468           Control handle the buffers, derived classes should not have to
36469           CreateBuffers themselves.
36470
36471 2004-10-04 21:20  jackson
36472
36473         * StatusBar.cs: The control handles resizing the buffers now.
36474
36475 2004-10-04 21:18  jackson
36476
36477         * Control.cs: When resizing the buffers should be invalidated. This
36478           should be handled in Control not in derived classes.
36479
36480 2004-10-04 14:45  jackson
36481
36482         * TabPage.cs: oops
36483
36484 2004-10-04 02:14  pbartok
36485
36486         * LeftRightAlignment.cs:
36487           - Initial check-in
36488
36489 2004-10-04 01:09  jordi
36490
36491         * ThemeWin32Classic.cs: fixes right button position causing right
36492           button not showing on horizontal scrollbars
36493
36494 2004-10-02 13:12  pbartok
36495
36496         * XplatUIX11.cs:
36497           - Simplified the Invalidate method by using an X call instead of
36498             generating the expose ourselves
36499           - Added an expose when the window background is changed
36500           - Implemented ClientToScreen method
36501
36502 2004-10-02 13:08  pbartok
36503
36504         * XplatUIWin32.cs:
36505           - Added Win32EnableWindow method (test for implementing modal
36506           dialogs)
36507           - Added ClientToScreen method and imports
36508
36509 2004-10-02 13:07  pbartok
36510
36511         * XplatUI.cs, XplatUIDriver.cs:
36512           - Added ClientToScreen coordinate translation method
36513
36514 2004-10-02 13:06  pbartok
36515
36516         * KeyPressEventArgs.cs:
36517           - Fixed access level for constructor
36518
36519 2004-10-02 13:06  pbartok
36520
36521         * NativeWindow.cs:
36522           - Changed access level for the window_collection hash table
36523
36524 2004-10-02 13:05  pbartok
36525
36526         * Form.cs:
36527           - Added KeyPreview property
36528           - Added Menu property (still incomplete, pending Jordi's menu work)
36529           - Implemented ProcessCmdKey
36530           - Implemented ProcessDialogKey
36531           - Implemented ProcessKeyPreview
36532
36533 2004-10-02 13:02  pbartok
36534
36535         * Control.cs:
36536           - Added private method to get the Control object from the window
36537           handle
36538           - Implemented ContextMenu property
36539           - Implemented PointToScreen
36540           - Implemented PreProcessMessage
36541           - Implemented IsInputChar
36542           - Implemented IsInputKey
36543           - Implemented ProcessCmdKey
36544           - Completed ProcessKeyEventArgs
36545           - Fixed message loop to call the proper chain of functions on key
36546           events
36547           - Implemented ProcessDialogChar
36548           - Implemented ProcessDialogKey
36549           - Implemented ProcessKeyMessage
36550           - Implemented ProcessKeyPreview
36551           - Added RaiseDragEvent stub (MS internal method)
36552           - Added RaiseKeyEvent stub (MS internal method)
36553           - Added RaiseMouseEvent stub (MS Internal method)
36554           - Added RaisePaintEvent stub (MS Internal method)
36555           - Added ResetMouseEventArgs stub (MS Internal method)
36556           - Implemented RtlTranslateAlignment
36557           - Implemented RtlTranslateContent
36558           - Implemented RtlTranslateHorizontal
36559           - Implemented RtlTranslateLeftRight
36560           - Added generation of KeyPress event
36561
36562 2004-10-02 05:57  ravindra
36563
36564         * ListViewItem.cs: Added attributes.
36565
36566 2004-10-02 05:32  ravindra
36567
36568         * ListView.cs: Added attributes.
36569
36570 2004-10-01 11:53  jackson
36571
36572         * Form.cs: Implement the Close method so work on MessageBox can
36573           continue.
36574
36575 2004-09-30 14:06  pbartok
36576
36577         * XplatUIX11.cs:
36578           - Bug fixes
36579
36580 2004-09-30 11:34  jackson
36581
36582         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
36583
36584 2004-09-30 07:26  ravindra
36585
36586         * ListViewItemConverter.cs: Converter for ListViewItem.
36587
36588 2004-09-30 07:26  ravindra
36589
36590         * SortOrder.cs: Enum for ListView control.
36591
36592 2004-09-30 07:25  ravindra
36593
36594         * ColumnHeader.cs: Supporting class for ListView control.
36595
36596 2004-09-30 07:24  ravindra
36597
36598         * ListView.cs, ListViewItem.cs: Initial implementation.
36599
36600 2004-09-30 07:20  ravindra
36601
36602         * ItemActivation.cs: Enum for ListView Control.
36603
36604 2004-09-29 20:29  pbartok
36605
36606         * XplatUIX11.cs:
36607           - Added lookup of pixel value for background color; tries to get a
36608             color 'close' to the requested color, it avoids having to create a
36609             colormap.  Depending on the display this could mean the used color
36610             is slightly off the desired color. Might have to change it to a more
36611             resource intensive colormap approach, but it will work as a
36612           workaround to avoid red screens.
36613
36614 2004-09-29 14:27  jackson
36615
36616         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
36617
36618 2004-09-28 12:44  pbartok
36619
36620         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
36621           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
36622           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
36623           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
36624           TrackBar.cs, VScrollBar.cs:
36625           - Streamlined Theme interfaces:
36626             * Each DrawXXX method for a control now is passed the object for
36627               the control to be drawn in order to allow accessing any state the
36628               theme might require
36629
36630             * ControlPaint methods for the theme now have a CP prefix to avoid
36631               name clashes with the Draw methods for controls
36632
36633             * Every control now retrieves it's DefaultSize from the current
36634             theme
36635
36636 2004-09-28 12:17  jackson
36637
36638         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
36639           drawing
36640
36641 2004-09-24 14:57  jackson
36642
36643         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
36644           Gives us a nice little performance boost.
36645
36646 2004-09-24 12:02  jackson
36647
36648         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
36649           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
36650           Control and supporting classes. Initial checkin
36651
36652 2004-09-23 13:08  jackson
36653
36654         * Form.cs: Temp build fixage
36655
36656 2004-09-23 01:39  ravindra
36657
36658         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
36659           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
36660           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
36661           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
36662           EventHandlers needed by ListView Control.
36663
36664 2004-09-22 14:12  pbartok
36665
36666         * ScrollableControl.cs:
36667           - Implemented DockPadding property
36668           - Implemented AutoScroll property
36669           - Implemented AutoScrollMargin property
36670           - Implemented AutoScrollMinSize property
36671           - Implemented AutoScrollPosition property
36672           - Implemented DisplayRectangle property (still incomplete)
36673           - Implemented CreateParams property
36674           - Implemented HScroll property
36675           - Implemented VScroll property
36676           - Implemented OnVisibleChanged property
36677
36678 2004-09-22 14:09  pbartok
36679
36680         * Form.cs:
36681           - Added Form.ControllCollection class
36682           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
36683             RemoveOwnedForm (still incomplete, missing on-top and common
36684             minimize/maximize behaviour)
36685           - Added StartPosition property (still incomplete, does not use when
36686             creating the form)
36687           - Added ShowDialog() methods (still incomplete, missing forcing the
36688             dialog modal)
36689
36690 2004-09-22 14:05  pbartok
36691
36692         * Application.cs:
36693           - Added message loop for modal dialogs
36694
36695 2004-09-22 14:02  pbartok
36696
36697         * GroupBox.cs:
36698           - Fixed wrong types for events
36699
36700 2004-09-22 14:00  pbartok
36701
36702         * Shortcut.cs, FormWindowState.cs:
36703           - Fixed wrong values
36704
36705 2004-09-22 12:01  jackson
36706
36707         * Control.cs: Text is never null
36708
36709 2004-09-20 22:14  pbartok
36710
36711         * XplatUIWin32.cs:
36712           - Fixed accessibility level for Idle handler
36713
36714 2004-09-20 18:54  jackson
36715
36716         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36717           XplatUIX11.cs: New message loop that uses poll so we don't get a
36718           busy loop
36719
36720 2004-09-17 10:43  pbartok
36721
36722         * ScrollBar.cs:
36723           - Fixed behaviour of arrow buttons. Now properly behaves like
36724             Buttons (and like Microsoft's scrollbar arrow buttons)
36725
36726 2004-09-17 10:14  pbartok
36727
36728         * ScrollBar.cs:
36729           - Added missing release of keyboard/mouse capture
36730
36731 2004-09-17 06:18  jordi
36732
36733         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
36734           Theme.cs: Very early menu support
36735
36736 2004-09-16 17:45  pbartok
36737
36738         * XplatUIWin32.cs:
36739           - Fixed sending a window to the front
36740           - Added overload for SetWindowPos to avoid casting
36741
36742 2004-09-16 17:44  pbartok
36743
36744         * Control.cs:
36745           - Added SendToBack and BringToFront methods
36746
36747 2004-09-16 07:00  ravindra
36748
36749         * Copyright: Added Novell URL.
36750
36751 2004-09-16 07:00  ravindra
36752
36753         * ToolBar.cs: Invalidate should be done before redrawing.
36754
36755 2004-09-15 21:19  ravindra
36756
36757         * ColumnHeaderStyle.cs: Enum for ListView Control.
36758
36759 2004-09-15 21:18  ravindra
36760
36761         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
36762           ListView Control.
36763
36764 2004-09-13 18:26  jackson
36765
36766         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
36767           properly
36768
36769 2004-09-13 18:13  jackson
36770
36771         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
36772           a second thread and post messages into the main threads message
36773           queue. This makes timing much more consistent. Both win2K and XP
36774           have a minimum timer value of 15 milliseconds, so we now do this
36775           too.
36776
36777 2004-09-13 15:18  pbartok
36778
36779         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36780           XplatUIX11.cs:
36781           - Added Z-Ordering methods
36782
36783 2004-09-13 10:56  pbartok
36784
36785         * Form.cs:
36786           - Fixed #region names
36787           - Moved properties and methods into their proper #regions
36788
36789 2004-09-13 10:51  pbartok
36790
36791         * Form.cs:
36792           - Added Accept and CancelButton properties
36793           - Added ProcessDialogKey() method
36794
36795 2004-09-13 08:18  pbartok
36796
36797         * IWindowTarget.cs:
36798           - Initial check-in
36799
36800 2004-09-10 21:50  pbartok
36801
36802         * Control.cs:
36803           - Added DoDragDrop() [incomplete]
36804           - Properly implemented 'Visible' handling
36805           - Added SetVisibleCore()
36806           - Implemented FindChildAtPoint()
36807           - Implemented GetContainerControl()
36808           - Implemented Hide()
36809
36810 2004-09-10 19:28  pbartok
36811
36812         * Control.cs:
36813           - Moved methods into their appropriate #regions
36814           - Reordered methods within regions alphabetically
36815
36816 2004-09-10 18:57  pbartok
36817
36818         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36819           - Added method to retrieve text from window
36820
36821 2004-09-10 18:56  pbartok
36822
36823         * Control.cs:
36824           - Moved some internal functions into the internal region
36825           - Implemented FontHeight
36826           - Implemented RenderRightToLeft
36827           - Implemented ResizeRedraw
36828           - Implemented ShowFocusCues
36829           - Implemented ShowKeyboardCues
36830           - Implemented FromChildHandle
36831           - Implemented FromHandle
36832           - Implemented IsMnemonic
36833           - Implemented ReflectMessage
36834           - All public and protected Static Methods are now complete
36835
36836 2004-09-10 16:54  pbartok
36837
36838         * Control.cs:
36839           - Implemented remaining missing public instance properties
36840           - Alphabetized some out of order properties
36841
36842 2004-09-10 05:51  ravindra
36843
36844         * PictureBox.cs: Added a check for null image.
36845
36846 2004-09-10 00:59  jordi
36847
36848         * GroupBox.cs: remove cvs tag
36849
36850 2004-09-09 05:25  ravindra
36851
36852         * ToolBar.cs: Make redraw accessible from ToolBarButton.
36853
36854 2004-09-09 05:23  ravindra
36855
36856         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
36857           parent redraw.
36858
36859 2004-09-09 02:28  pbartok
36860
36861         * ThemeWin32Classic.cs:
36862           - Improve disabled string look
36863
36864 2004-09-09 01:15  jordi
36865
36866         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
36867           args and handler
36868
36869 2004-09-08 23:56  ravindra
36870
36871         * ItemBoundsPortion.cs: It's enum, not a class!
36872
36873 2004-09-08 23:47  ravindra
36874
36875         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
36876           Enums for Form.
36877
36878 2004-09-08 21:13  ravindra
36879
36880         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
36881           ListView control.
36882
36883 2004-09-08 21:03  ravindra
36884
36885         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
36886           avoid crash.
36887
36888 2004-09-08 21:01  ravindra
36889
36890         * ScrollableControl.cs: Removed unreachable code.
36891
36892 2004-09-08 06:45  jordi
36893
36894         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
36895
36896 2004-09-08 01:00  jackson
36897
36898         * XplatUIX11.cs: Only run the timers when updating the message
36899           queue. This effectively gives X messages a higher priority then
36900           timer messages. Timers still need love though
36901
36902 2004-09-07 14:01  jackson
36903
36904         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
36905           this for us and the handle is no longer valid.
36906
36907 2004-09-07 13:59  jackson
36908
36909         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
36910           loop that manages to not crash. TODO: Add poll and cleanup timers
36911
36912 2004-09-07 11:12  jordi
36913
36914         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
36915
36916 2004-09-07 03:40  jordi
36917
36918         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
36919           fixes, methods, multiple links
36920
36921 2004-09-06 06:55  jordi
36922
36923         * Control.cs: Caches ClientRectangle rectangle value
36924
36925 2004-09-05 02:03  jordi
36926
36927         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
36928           certain situations
36929
36930 2004-09-04 11:10  jordi
36931
36932         * Label.cs: Refresh when font changed
36933
36934 2004-09-02 16:24  pbartok
36935
36936         * Control.cs:
36937           - Added sanity check to creation of double buffer bitmap
36938
36939 2004-09-02 16:24  pbartok
36940
36941         * ButtonBase.cs:
36942           - Fixed selection of text color
36943           - Fixed handling of resize event; now properly recreates double
36944             buffering bitmap
36945           - Added missing assignment of TextAlignment
36946           - Added proper default for TextAlignment
36947
36948 2004-09-02 14:26  pbartok
36949
36950         * RadioButton.cs:
36951           - Added missing RadioButton.RadioButtonAccessibleObject class
36952
36953 2004-09-02 14:26  pbartok
36954
36955         * Control.cs:
36956           - Added missing Control.ControlAccessibleObject class
36957           - Started to implement Select()ion mechanisms, still very incomplete
36958
36959 2004-09-02 14:25  pbartok
36960
36961         * AccessibleObject.cs:
36962           - Added missing methods
36963
36964 2004-09-02 14:23  pbartok
36965
36966         * AccessibleNavigation.cs, AccessibleSelection.cs:
36967           - Initial check-in
36968
36969 2004-09-02 10:32  jordi
36970
36971         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
36972           pool for pens, brushes, and hatchbruses
36973
36974 2004-09-01 15:30  jackson
36975
36976         * StatusBar.cs: Fix typo
36977
36978 2004-09-01 14:44  pbartok
36979
36980         * RadioButton.cs:
36981           - Fixed state
36982
36983 2004-09-01 14:39  pbartok
36984
36985         * Button.cs, RadioButton.cs:
36986           - Functional initial check-in
36987
36988 2004-09-01 14:01  pbartok
36989
36990         * CheckBox.cs:
36991           - Added missing default
36992           - Added missing region mark
36993
36994 2004-09-01 09:10  jordi
36995
36996         * Label.cs: fixes method signatures, new methods, events, fixes
36997           autosize
36998
36999 2004-09-01 07:19  jordi
37000
37001         * Control.cs: Init string variables with an empty object
37002
37003 2004-09-01 04:20  jordi
37004
37005         * Control.cs: fires OnFontChanged event
37006
37007 2004-08-31 20:07  pbartok
37008
37009         * ButtonBase.cs:
37010           - Enabled display of strings
37011
37012 2004-08-31 20:05  pbartok
37013
37014         * Form.cs:
37015           - Added (partial) implementation of DialogResult; rest needs to be
37016             implemented when the modal loop code is done
37017
37018 2004-08-31 19:55  pbartok
37019
37020         * CheckBox.cs:
37021           - Fixed to match the removal of the needs_redraw concept
37022
37023 2004-08-31 19:55  pbartok
37024
37025         * ButtonBase.cs:
37026           - Removed the rather odd split between 'needs redraw' and redrawing
37027           - Now handles the events that require regeneration (ambient
37028             properties and size)
37029
37030 2004-08-31 19:41  pbartok
37031
37032         * Control.cs:
37033           - Added firing of BackColorChanged event
37034           - Added TopLevelControl property
37035           - Fixed handling of WM_ERASEBKGRND message
37036
37037 2004-08-31 12:49  pbartok
37038
37039         * ButtonBase.cs:
37040           - Removed debug
37041           - Minor fixes
37042
37043 2004-08-31 12:48  pbartok
37044
37045         * CheckBox.cs:
37046           - Finished (famous last words)
37047
37048 2004-08-31 04:35  jordi
37049
37050         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
37051           scrolling bugs, adds new methods
37052
37053 2004-08-30 14:42  pbartok
37054
37055         * CheckBox.cs:
37056           - Implemented CheckBox drawing code
37057
37058 2004-08-30 14:42  pbartok
37059
37060         * ButtonBase.cs:
37061           - Made Redraw() and CheckRedraw() virtual
37062           - Improved mouse up/down/move logic to properly track buttons
37063
37064 2004-08-30 09:44  pbartok
37065
37066         * CheckBox.cs:
37067           - Updated to fix broken build. Not complete yet.
37068
37069 2004-08-30 09:28  pbartok
37070
37071         * CheckState.cs:
37072           - Initial checkin
37073
37074 2004-08-30 09:17  pbartok
37075
37076         * Appearance.cs:
37077           - Initial check-in
37078
37079 2004-08-27 16:12  ravindra
37080
37081         * ToolBarButton.cs: Added TypeConverter attribute.
37082
37083 2004-08-27 16:07  ravindra
37084
37085         * ImageIndexConverter.cs: Implemented.
37086
37087 2004-08-27 14:17  pbartok
37088
37089         * Control.cs:
37090           - Removed unneeded stack vars
37091           - First attempt to fix sizing issues when layout is suspended
37092
37093 2004-08-25 15:35  jordi
37094
37095         * ScrollBar.cs: more fixes to scrollbar
37096
37097 2004-08-25 14:04  ravindra
37098
37099         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
37100           Added the missing divider code and grip for ToolBar Control.
37101
37102 2004-08-25 13:20  pbartok
37103
37104         * Control.cs:
37105           - Control now properly passes the ambient background color to child
37106             controls
37107
37108 2004-08-25 13:20  jordi
37109
37110         * ScrollBar.cs: small bug fix regarding bar position
37111
37112 2004-08-25 12:33  pbartok
37113
37114         * Timer.cs:
37115           - Now only calls SetTimer or KillTimer if the enabled state has
37116           changed
37117
37118 2004-08-25 12:33  pbartok
37119
37120         * XplatUIWin32.cs:
37121           - Fixed timer handling, now seems to work
37122           - Improved error message for window creation
37123
37124 2004-08-25 12:32  pbartok
37125
37126         * Control.cs:
37127           - Fixed generation of MouseUp message
37128
37129 2004-08-25 12:29  jordi
37130
37131         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
37132           and fixes for progressbar
37133
37134 2004-08-24 18:43  ravindra
37135
37136         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
37137           in ToolBar control.
37138
37139 2004-08-24 17:15  pbartok
37140
37141         * Panel.cs:
37142           - Added #region
37143           - Added missing events
37144           - Alphabetized
37145
37146 2004-08-24 17:14  pbartok
37147
37148         * StatusBar.cs, PictureBox.cs:
37149           - Now uses Control's CreateParams
37150
37151 2004-08-24 16:36  pbartok
37152
37153         * XplatUIX11.cs:
37154           - Fixed background color handling
37155           - Fixed sending of enter/leave events on a grab
37156
37157 2004-08-24 16:35  pbartok
37158
37159         * X11Structs.cs:
37160           - Refined definitions for CrossingEvent
37161
37162 2004-08-24 12:37  jordi
37163
37164         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
37165           formmating, methods signature, and adds missing events
37166
37167 2004-08-24 12:24  jordi
37168
37169         * Control.cs: fire OnEnabledChanged event
37170
37171 2004-08-24 11:17  pbartok
37172
37173         * XplatUIWin32.cs:
37174           - Implemented SetTimer() and KillTimer()
37175
37176 2004-08-24 11:16  pbartok
37177
37178         * XplatUIX11.cs:
37179           - Now uses Remove instead of Add to kill the timer
37180
37181 2004-08-24 10:16  jackson
37182
37183         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
37184           picture boxes in the theme now. Draw picture box borders and obey
37185           sizing modes
37186
37187 2004-08-24 05:49  jackson
37188
37189         * Timer.cs: Remove top secret debugging code
37190
37191 2004-08-24 05:34  jackson
37192
37193         * PictureBox.cs: Temp hack to make picture boxes draw their full
37194           image
37195
37196 2004-08-24 05:29  jackson
37197
37198         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37199           XplatUIX11.cs: Move timers to the driver level. On X they are
37200           queued by the driver and checked on idle.
37201
37202 2004-08-24 01:07  jackson
37203
37204         * XplatUIX11.cs: Use a queue for async messages instead of passing
37205           them as ClientMessages since that was totally broken. Also simply
37206           check for events and return an idle message if none are found. This
37207           gives us an idle handler, and prevents deadlocking when no messages
37208           are in the queue.
37209
37210 2004-08-23 18:19  ravindra
37211
37212         * XplatUIWin32.cs: Removed the unwanted destructor.
37213
37214 2004-08-23 17:27  pbartok
37215
37216         * ButtonBase.cs:
37217           - Finishing touches. Works now, just needs some optimizations.
37218
37219 2004-08-23 16:53  jordi
37220
37221         * ScrollBar.cs: small fix
37222
37223 2004-08-23 16:45  pbartok
37224
37225         * Application.cs:
37226           - Removed debug output
37227           - Simplifications
37228
37229 2004-08-23 16:43  jordi
37230
37231         * ScrollBar.cs: [no log message]
37232
37233 2004-08-23 16:10  pbartok
37234
37235         * Form.cs:
37236           - Fixed handling of WM_CLOSE message
37237           - Removed debug output
37238
37239 2004-08-23 16:09  pbartok
37240
37241         * Application.cs:
37242           - Added handling of Idle event
37243           - Added handling of form closing
37244           - Fixed reporting of MessageLoop property
37245           - Removed some unneeded code, should provide a bit of a speedup
37246
37247 2004-08-23 15:22  pbartok
37248
37249         * Control.cs:
37250           - Added InitLayout() method
37251           - Added code to properly perform layout when Anchor or Dock property
37252             is changed
37253           - Changed 'interpretation' of ResumeLayout. MS seems to have a
37254             LAMESPEC, tried to do it in a way that makes sense
37255
37256 2004-08-23 14:10  jordi
37257
37258         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
37259           properties and methods
37260
37261 2004-08-23 13:55  pbartok
37262
37263         * Control.cs:
37264           - Properly fixed Jordi's last fix
37265           - Now uses Cursor's Position property instead of calling XplatUI
37266           directly
37267
37268 2004-08-23 13:44  jordi
37269
37270         * PaintEventHandler.cs: Adding missing attribute
37271
37272 2004-08-23 13:39  pbartok
37273
37274         * Cursor.cs:
37275           - Implemented Position property
37276
37277 2004-08-23 13:39  pbartok
37278
37279         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37280           - Added method to move mouse cursor
37281
37282 2004-08-23 13:39  pbartok
37283
37284         * XplatUIX11.cs:
37285           - Fixed setting of background color
37286           - Added method to move mouse cursor
37287
37288 2004-08-23 13:16  jordi
37289
37290         * Control.cs: avoids null exception
37291
37292 2004-08-22 17:46  jackson
37293
37294         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
37295           PictureBox
37296
37297 2004-08-22 17:40  jackson
37298
37299         * XplatUIX11.cs: Add some missing locks
37300
37301 2004-08-22 15:10  pbartok
37302
37303         * Control.cs, Form.cs:
37304           - Removed OverlappedWindow style from Control, instead it's default
37305             now is child
37306           - Made form windows OverlappedWindow by default
37307
37308 2004-08-22 13:34  jackson
37309
37310         * ScrollBar.cs: Update the position through the Value property so
37311           the OnValueChanged event is raised.
37312
37313 2004-08-22 12:04  pbartok
37314
37315         * SWF.csproj:
37316           - Added Cursor.cs and UserControl.cs
37317
37318 2004-08-22 12:03  pbartok
37319
37320         * Cursor.cs:
37321           - Started implementation, not usable yet
37322
37323 2004-08-22 12:00  pbartok
37324
37325         * UserControl.cs:
37326           - Implemented UserControl (complete)
37327
37328 2004-08-21 19:20  ravindra
37329
37330         * ToolBar.cs: Correcting the formatting mess of VS.NET.
37331
37332 2004-08-21 18:49  ravindra
37333
37334         * ToolBar.cs: Probably this completes the missing attributes in
37335           toolbar control.
37336
37337 2004-08-21 18:03  ravindra
37338
37339         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
37340           Fixed toolbar control signatures.
37341
37342 2004-08-21 16:32  pbartok
37343
37344         * LinkLabel.cs:
37345           - Signature Fixes
37346
37347 2004-08-21 16:30  pbartok
37348
37349         * Label.cs:
37350           - Signature fixes
37351
37352 2004-08-21 16:19  pbartok
37353
37354         * Control.cs, Label.cs:
37355           - Signature fixes
37356
37357 2004-08-21 15:57  pbartok
37358
37359         * ButtonBase.cs:
37360           - Added loads of debug output for development
37361           - Fixed typo in method name
37362
37363 2004-08-21 15:52  pbartok
37364
37365         * ToolBarButtonClickEventArgs.cs:
37366           - Added missing base class
37367
37368 2004-08-21 14:53  pbartok
37369
37370         * Control.cs:
37371           - Updated to match new GrabWindow signature
37372
37373 2004-08-21 14:51  pbartok
37374
37375         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37376           - Added method to get default display size
37377
37378 2004-08-21 14:23  pbartok
37379
37380         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37381           - Added method to query current grab state
37382           - Added argument to allow confining a grab to a window
37383
37384 2004-08-21 14:22  pbartok
37385
37386         * Keys.cs:
37387           - Added [Flags] attribute so that modifiers can be used in bitwise
37388           ops
37389
37390 2004-08-21 14:21  pbartok
37391
37392         * TrackBar.cs, ScrollBar.cs:
37393           - Replaced direct XplatUI calls with their Control counterpart
37394
37395 2004-08-21 13:32  pbartok
37396
37397         * Control.cs:
37398           - Implemented Created property
37399
37400 2004-08-21 13:28  pbartok
37401
37402         * Control.cs:
37403           - Implemented ContainsFocus
37404
37405 2004-08-21 13:26  pbartok
37406
37407         * Control.cs:
37408           - Implemented CausesValidation
37409
37410 2004-08-21 13:21  pbartok
37411
37412         * Control.cs:
37413           - Implemented CanFocus
37414           - Implemented CanSelect
37415           - Implemented Capture
37416
37417 2004-08-21 12:35  pbartok
37418
37419         * XplatUIWin32.cs:
37420           - Fixed bug with Async message handling
37421           - Implemented getting the ModifierKeys
37422
37423 2004-08-21 12:32  jackson
37424
37425         * AsyncMethodResult.cs: Make sure we have the mutex before we
37426           release it. Fixes BeginInvoke on windows
37427
37428 2004-08-21 11:31  pbartok
37429
37430         * XplatUIWin32.cs, XplatUIX11.cs:
37431           - Drivers now return proper mouse state
37432
37433 2004-08-21 10:54  jackson
37434
37435         * Control.cs: Implement EndInvoke
37436
37437 2004-08-21 10:48  jackson
37438
37439         * Timer.cs: Remove unneeded finalizer
37440
37441 2004-08-20 19:52  ravindra
37442
37443         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
37444           in mouse event handling in the ToolBar control.
37445
37446 2004-08-20 19:50  ravindra
37447
37448         * ImageList.cs: Changed draw method to use the arguments passed in
37449           to draw the image.
37450
37451 2004-08-20 18:58  pbartok
37452
37453         * XplatUIStructs.cs:
37454           - Added private message for async communication
37455
37456 2004-08-20 17:38  ravindra
37457
37458         * Control.cs: Made RightToLeft property virtual and removed a
37459           Console.WriteLine.
37460
37461 2004-08-20 14:39  jordi
37462
37463         * ThemeGtk.cs: use style_attach
37464
37465 2004-08-20 14:39  pbartok
37466
37467         * XplatUIWin32.cs:
37468           - Added jackson's Async code from X11 to Win32
37469
37470 2004-08-20 14:09  pbartok
37471
37472         * SWF.csproj:
37473           - Added all new files
37474
37475 2004-08-20 14:09  pbartok
37476
37477         * Control.cs:
37478           - Added call to set window background color
37479
37480 2004-08-20 14:03  pbartok
37481
37482         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37483           - Added method for setting the window background
37484
37485 2004-08-20 14:02  pbartok
37486
37487         * XplatUIWin32.cs:
37488           - Added method for setting the background color
37489           - Added handling for erasing the window background
37490
37491 2004-08-20 13:45  jordi
37492
37493         * TrackBar.cs: fixes timer, new properties and methods
37494
37495 2004-08-20 13:34  jackson
37496
37497         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
37498           correct thread
37499
37500 2004-08-20 13:22  jackson
37501
37502         * Timer.cs: Timer Tick events are now handed through Controls Async
37503           mechanism so the callbacks are executed in the same thread as X
37504
37505 2004-08-20 13:19  jackson
37506
37507         * XplatUIDriver.cs: Expose functionality to send async messages
37508           through the driver
37509
37510 2004-08-20 13:18  jackson
37511
37512         * Control.cs: Implement Begininvoke
37513
37514 2004-08-20 13:14  jackson
37515
37516         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
37517           messages through the driver
37518
37519 2004-08-20 13:12  jackson
37520
37521         * XplatUIX11.cs: Lock before all X operations. Also added Async
37522           method functionality through XSendEvent
37523
37524 2004-08-20 13:11  jackson
37525
37526         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
37527           This will screw up on 64 bit systems)
37528
37529 2004-08-20 13:10  jackson
37530
37531         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
37532           Async messages through X/Win32
37533
37534 2004-08-19 19:39  pbartok
37535
37536         * XplatUIX11.cs:
37537           - Updated code to match new HandleData.DeviceContext type
37538
37539 2004-08-19 19:38  pbartok
37540
37541         * HandleData.cs:
37542           - Made DeviceContext a generic object to allow usage from various
37543           drivers
37544           - Added support for queueing Windows messages
37545
37546 2004-08-19 19:37  pbartok
37547
37548         * XplatUIWin32.cs:
37549           - Added generation of MouseEnter, MouseLeave and MouseHover events
37550           - Added cleanup on EndPaint
37551
37552 2004-08-19 19:17  pbartok
37553
37554         * Control.cs:
37555           - Added handling of WM_MOUSEHOVER
37556           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
37557           code
37558
37559 2004-08-19 18:55  jordi
37560
37561         * ThemeGtk.cs: fixes button order
37562
37563 2004-08-19 18:12  jordi
37564
37565         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
37566
37567 2004-08-19 17:09  pbartok
37568
37569         * Control.cs:
37570           - Added Right property
37571           - Added RightToLeft property
37572
37573 2004-08-19 16:27  jordi
37574
37575         * ThemeGtk.cs: experimental GTK theme support
37576
37577 2004-08-19 16:26  jordi
37578
37579         * ITheme.cs, Theme.cs: move themes from an interface to a class
37580
37581 2004-08-19 16:25  jordi
37582
37583         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
37584           theme enhancaments
37585
37586 2004-08-19 16:04  pbartok
37587
37588         * XplatUIX11.cs:
37589           - Added colormap basics
37590           - Added a way to re-initialize with a different display handle
37591           - Fixed setting of the window background color
37592           - Added various X11 imports related to colors and colormaps
37593
37594 2004-08-19 15:51  pbartok
37595
37596         * X11Structs.cs:
37597           - Removed packing hints (Paolo suggested this a while back)
37598           - fixed colormap type
37599           - Added default Atom types
37600           - Added Screen and color structs and enums
37601
37602 2004-08-19 15:39  pbartok
37603
37604         * ImageList.cs:
37605           - Added missing Draw() method
37606           - Added missing RecreateHandle event
37607
37608 2004-08-19 15:30  pbartok
37609
37610         * Form.cs:
37611           - Added handling of WM_CLOSE
37612
37613 2004-08-18 13:16  jordi
37614
37615         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
37616           a table
37617
37618 2004-08-18 09:56  jordi
37619
37620         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
37621
37622 2004-08-17 15:31  ravindra
37623
37624         * SWF.csproj: Updated project.
37625
37626 2004-08-17 15:25  pbartok
37627
37628         * Control.cs:
37629           - Drawing improvement; don't call UpdateBounds if we are not visible
37630             (or have been minimized)
37631
37632 2004-08-17 15:24  pbartok
37633
37634         * XplatUIWin32.cs:
37635           - Finished IsVisible
37636           - Added Win32GetWindowPlacement
37637
37638 2004-08-17 15:08  jackson
37639
37640         * Panel.cs: Initial checkin of the Panel
37641
37642 2004-08-17 14:25  pbartok
37643
37644         * Control.cs:
37645           - Fixed broken handling of default window sizes
37646
37647 2004-08-17 13:29  jackson
37648
37649         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
37650           has a large startup time.
37651
37652 2004-08-17 10:25  jackson
37653
37654         * HandleData.cs: union areas properly
37655
37656 2004-08-17 10:12  jackson
37657
37658         * HandleData.cs: union areas properly
37659
37660 2004-08-16 20:00  ravindra
37661
37662         * ToolBar.cs, ToolBarButton.cs: Added attributes.
37663
37664 2004-08-16 18:48  ravindra
37665
37666         * ToolBar.cs: Added attributes.
37667
37668 2004-08-16 17:17  ravindra
37669
37670         * SWF.csproj: Updated project.
37671
37672 2004-08-16 17:16  jackson
37673
37674         * XplatUIX11.cs: Check for more expose events before sending a
37675           WM_PAINT so they can all be grouped together. This makes dragging a
37676           window across another window redraw in a sane way.
37677
37678 2004-08-16 15:47  pbartok
37679
37680         * Control.cs:
37681           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
37682             support OnMouseEnter/Leave()
37683           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
37684             exposure handling
37685
37686 2004-08-16 15:46  pbartok
37687
37688         * XplatUIStructs.cs, XplatUIX11.cs:
37689           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
37690           OnMouseEnter/Leave()
37691
37692 2004-08-16 15:34  jackson
37693
37694         * XplatUIX11.cs: Group multiple expose events in HandleData, make
37695           sure messages get the message field set to WM_NULL if they are not
37696           handled.
37697
37698 2004-08-16 15:24  jackson
37699
37700         * HandleData.cs: HandleData is used for storing message information
37701           for window handles
37702
37703 2004-08-15 17:23  ravindra
37704
37705         * ColorDepth.cs: Added attribute.
37706
37707 2004-08-15 17:23  ravindra
37708
37709         * SWF.csproj: Updated project for ToolBar Control.
37710
37711 2004-08-15 17:20  ravindra
37712
37713         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
37714           control and also dos2unix format.
37715
37716 2004-08-15 17:13  ravindra
37717
37718         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
37719           ToolBarButtonClickEventArgs.cs,
37720           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
37721           ToolBarTextAlign.cs: First Implementation of ToolBar control.
37722
37723 2004-08-15 15:31  pbartok
37724
37725         * ButtonBase.cs:
37726           - First (mostly) working version
37727
37728 2004-08-13 16:15  pbartok
37729
37730         * Control.cs:
37731           - Fixed Anchor default
37732
37733 2004-08-13 15:43  pbartok
37734
37735         * Control.cs:
37736           - Changed GetCursorPos signature
37737
37738 2004-08-13 15:42  pbartok
37739
37740         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37741           - Changed signature for GetCursorPos
37742
37743 2004-08-13 15:25  pbartok
37744
37745         * XplatUIX11.cs:
37746           - Cleanup
37747           - Fixed resizing/exposure handling
37748
37749 2004-08-13 15:22  jordi
37750
37751         * ThemeWin32Classic.cs: removes redundant code and fixes issues
37752           with tickposition
37753
37754 2004-08-13 14:55  jordi
37755
37756         * TrackBar.cs: change from wndproc to events
37757
37758 2004-08-13 13:00  jordi
37759
37760         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37761           XplatUIX11.cs: implements PointToClient (ScreenToClient)
37762
37763 2004-08-13 12:53  pbartok
37764
37765         * XplatUIWin32.cs:
37766           - Changed GetWindowPos to also provide client area size
37767           - Fixed broken prototypes for several win32 functions
37768
37769 2004-08-13 12:53  pbartok
37770
37771         * XplatUI.cs, XplatUIDriver.cs:
37772           - Changed GetWindowPos to also provide client area size
37773
37774 2004-08-13 12:52  pbartok
37775
37776         * XplatUIX11.cs:
37777           - Added generation of WM_POSCHANGED
37778           - Changed GetWindowPos to also provide client area size
37779
37780 2004-08-13 12:52  pbartok
37781
37782         * Control.cs:
37783           - Added Dispose() and destructor
37784           - Fixed resizing and bounds calculation
37785           - Fixed Layout
37786           - Added memory savings for invisible windows
37787
37788 2004-08-13 12:46  jordi
37789
37790         * TrackBar.cs: adds timer and grap window
37791
37792 2004-08-13 10:25  jackson
37793
37794         * Timer.cs: SWF Timer
37795
37796 2004-08-12 16:59  pbartok
37797
37798         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37799           - Implemented method to get current mouse position
37800
37801 2004-08-12 14:29  jordi
37802
37803         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
37804           enhancement, fix mouse problems, highli thumb, etc
37805
37806 2004-08-12 13:31  pbartok
37807
37808         * Control.cs:
37809           - Fixed Anchoring bugs
37810
37811 2004-08-12 13:01  jackson
37812
37813         * StatusBar.cs: Don't forget things
37814
37815 2004-08-12 12:54  jackson
37816
37817         * ThemeWin32Classic.cs: Handle owner draw status bars
37818
37819 2004-08-12 12:54  jackson
37820
37821         * StatusBar.cs: Implement missing properties, events, and methods.
37822           Handle mouse clicking
37823
37824 2004-08-12 10:19  jackson
37825
37826         * StatusBarPanelClickEventArgs.cs,
37827           StatusBarPanelClickEventHandler.cs: Classes for handling status
37828           bar panel click events
37829
37830 2004-08-12 10:10  jackson
37831
37832         * Control.cs: Add missing properties
37833
37834 2004-08-12 09:46  pbartok
37835
37836         * BindingsManagerBase.cs:
37837           - Name changed to BindingManagerBase.cs
37838
37839 2004-08-12 09:25  jordi
37840
37841         * ScrollableControl.cs: calls ctrlbase instead of exeception
37842
37843 2004-08-11 16:28  pbartok
37844
37845         * InputLanguageChangingEventArgs.cs:
37846           - Never check in before compiling. Fixes the last check-in
37847
37848 2004-08-11 16:26  pbartok
37849
37850         * InputLanguageChangingEventArgs.cs:
37851           - More signature fixes
37852
37853 2004-08-11 16:20  pbartok
37854
37855         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
37856           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
37857           ImageListStreamer.cs, InputLanguage.cs,
37858           InputLanguageChangedEventArgs.cs,
37859           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
37860           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
37861           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
37862           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37863           - Signature fixes
37864
37865 2004-08-11 16:16  pbartok
37866
37867         * Application.cs:
37868           - Fixed Signature
37869           - Added .Net 1.1 method
37870
37871 2004-08-11 15:25  pbartok
37872
37873         * SWF.csproj:
37874           - Fixed BindingManagerBase.cs filename
37875
37876 2004-08-11 15:22  pbartok
37877
37878         * BindingManagerBase.cs:
37879           - Was checked in with wrong filename
37880
37881 2004-08-11 14:50  pbartok
37882
37883         * SWF.csproj:
37884           - Updated
37885
37886 2004-08-11 13:41  jordi
37887
37888         * XplatUIWin32.cs: Fixes ClientRect
37889
37890 2004-08-11 13:19  pbartok
37891
37892         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37893           XplatUIX11.cs:
37894           - We had SetWindowPos and MoveWindow to set window positions and
37895             size, removed MoveWindow. We have GetWindowPos, so it made sense to
37896             keep SetWindowPos as matching counterpart
37897           - Added some X11 sanity checking
37898
37899 2004-08-11 12:59  pbartok
37900
37901         * Control.cs:
37902           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
37903             (It seems that SetBounds is just a front for SetBoundsCore and
37904              SetBoundsCore updates the underlying window system and
37905              UpdateBounds is responsible for updating the variables associated
37906              with the Control and sending the events)
37907           - Major cleanup of Size handling; we now have two sizes, client_size
37908             and bounds. Bounds defines the window with decorations, client_size
37909             without them.
37910
37911 2004-08-11 12:55  pbartok
37912
37913         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37914           - Added method to calculate difference between decorated window and
37915             raw client area
37916
37917 2004-08-11 12:54  pbartok
37918
37919         * Label.cs:
37920           - Forcing redraw on resize
37921
37922 2004-08-11 11:43  pbartok
37923
37924         * ImageList.cs:
37925           - Removed disposing of the actual images when the list is disposed
37926
37927 2004-08-11 09:13  pbartok
37928
37929         * Control.cs:
37930           - Now properly reparents windows
37931
37932 2004-08-11 08:37  pbartok
37933
37934         * Control.cs:
37935           - Duh!
37936
37937 2004-08-11 07:47  pbartok
37938
37939         * Control.cs:
37940           - Rewrote the collection stuff. Might not be as fast now, not
37941             keeping the number of children around and accessible directly, but
37942             it's more straightforward
37943
37944 2004-08-11 07:44  pbartok
37945
37946         * AccessibleObject.cs:
37947           - Fixed to match ControlCollection rewrite
37948
37949 2004-08-11 07:43  pbartok
37950
37951         * ImageList.cs:
37952           - Added missing creation of the collection list
37953
37954 2004-08-10 20:08  jackson
37955
37956         * StatusBar.cs: Get the paint message from WndProc
37957
37958 2004-08-10 19:31  jackson
37959
37960         * ThemeWin32Classic.cs: Create Brushes as little as possible
37961
37962 2004-08-10 19:20  jackson
37963
37964         * UICues.cs: Add Flags attribute
37965
37966 2004-08-10 19:19  jackson
37967
37968         * StatusBarPanel.cs: Signature cleanup
37969
37970 2004-08-10 19:10  jackson
37971
37972         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
37973           Initial implementation of status bar item drawing
37974
37975 2004-08-10 17:27  jordi
37976
37977         * TrackBar.cs: add missing methods, properties, and restructure to
37978           hide extra ones
37979
37980 2004-08-10 16:24  jackson
37981
37982         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
37983           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
37984           attribute
37985
37986 2004-08-10 13:21  jordi
37987
37988         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
37989           enhancements and standarize on win colors defaults
37990
37991 2004-08-10 12:52  jackson
37992
37993         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
37994           ThemeWin32Classic.cs: Implement DrawItem functionality
37995
37996 2004-08-10 12:47  jordi
37997
37998         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
37999
38000 2004-08-10 12:32  jordi
38001
38002         * Control.cs: throw ontextchange event
38003
38004 2004-08-10 11:43  pbartok
38005
38006         * Control.cs:
38007           - Added more to the still unfinished Dock/Anchor layout code
38008
38009 2004-08-10 11:39  pbartok
38010
38011         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38012           - Added GetWindowPos method
38013
38014 2004-08-10 11:36  pbartok
38015
38016         * XplatUIWin32.cs:
38017           - Implemented several methods
38018
38019 2004-08-10 09:47  jackson
38020
38021         * TrackBar.cs: Allow control to handle buffering
38022
38023 2004-08-10 09:41  jackson
38024
38025         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
38026
38027 2004-08-10 09:24  jackson
38028
38029         * Label.cs, LinkLabel.cs: Let Control handle buffering.
38030
38031 2004-08-10 09:09  jackson
38032
38033         * StatusBar.cs: Let Control handle all the buffering.
38034
38035 2004-08-10 09:08  jackson
38036
38037         * Control.cs: Control will now handle the buffering code, so each
38038           control does not have to implement this.
38039
38040 2004-08-10 08:34  jackson
38041
38042         * XplatUIDriver.cs: Use default colors from the theme
38043
38044 2004-08-09 17:12  pbartok
38045
38046         * ImageList.cs:
38047           - Fixed several bugs Ravindra pointed out
38048
38049 2004-08-09 16:11  pbartok
38050
38051         * Control.cs:
38052           - Added incomplete dock layout code
38053           - Added support for mouse wheel
38054
38055 2004-08-09 16:09  pbartok
38056
38057         * XplatUIX11.cs:
38058           - Added handling for middle and right mousebutton
38059           - Added handling for mouse wheel
38060           - Added handling for key state and mouse state and position
38061           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
38062           messages
38063
38064 2004-08-09 15:40  jackson
38065
38066         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
38067           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
38068           checkin
38069
38070 2004-08-09 15:37  jackson
38071
38072         * StatusBar.cs: Initial implementation of StatusBar
38073
38074 2004-08-09 15:36  jackson
38075
38076         * ITheme.cs: Add support for drawing status bar and getting status
38077           bar item sizes
38078
38079 2004-08-09 15:35  pbartok
38080
38081         * MouseButtons.cs:
38082           - Fixed values
38083
38084 2004-08-09 15:34  jackson
38085
38086         * ThemeWin32Classic.cs: Add support for drawing status bar and get
38087           status bar item sizes
38088
38089 2004-08-09 15:21  jackson
38090
38091         * ThemeWin32Classic.cs: Use known colors for default control
38092           colours
38093
38094 2004-08-09 15:12  jackson
38095
38096         * ThemeWin32Classic.cs: Make the default font static, it is static
38097           in control so this doesn't change functionality and creating fonts
38098           is sloooooow.
38099
38100 2004-08-09 14:56  pbartok
38101
38102         * X11Structs.cs:
38103           - Added GrabMode enum
38104
38105 2004-08-09 14:55  pbartok
38106
38107         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38108           - Removed Run method, was only required for initial development
38109
38110 2004-08-09 14:51  pbartok
38111
38112         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38113           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
38114           capture
38115
38116 2004-08-09 13:48  pbartok
38117
38118         * XplatUIX11.cs:
38119           - Fixed default sizing for child windows
38120
38121 2004-08-09 12:56  pbartok
38122
38123         * XplatUIX11.cs:
38124           - Added generation of WM_DESTROY message
38125           - Added handling of window manager induced shutdown
38126
38127 2004-08-09 11:31  jackson
38128
38129         * ThemeWin32Classic.cs: New names for control properties
38130
38131 2004-08-09 11:25  jackson
38132
38133         * Control.cs: Use new color names
38134
38135 2004-08-09 11:02  jackson
38136
38137         * XplatUI.cs: Get default window properties from the theme
38138
38139 2004-08-09 11:01  jackson
38140
38141         * ITheme.cs: The theme engine now controls default window
38142           properties
38143
38144 2004-08-09 11:00  jackson
38145
38146         * ThemeWin32Classic.cs: Add default window color properties
38147
38148 2004-08-09 10:17  jackson
38149
38150         * ThemeWin32Classic.cs: Use correct default back color
38151
38152 2004-08-09 10:05  jackson
38153
38154         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
38155           the theme now.
38156
38157 2004-08-09 09:56  jackson
38158
38159         * XplatUI.cs: Remove defaults, these are handled by the theme now.
38160
38161 2004-08-09 09:54  jackson
38162
38163         * Control.cs: Get default properties from the theme.
38164
38165 2004-08-09 09:53  jackson
38166
38167         * ITheme.cs: Themes now handle default control properties
38168
38169 2004-08-09 09:53  jackson
38170
38171         * ThemeWin32Classic.cs: Themes now handle default control
38172           properties so coloring will be consistent
38173
38174 2004-08-08 16:54  jordi
38175
38176         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
38177
38178 2004-08-08 15:08  jordi
38179
38180         * XplatUIX11.cs: fixes keyboard crash
38181
38182 2004-08-08 13:47  jordi
38183
38184         * Label.cs: add cvs header info
38185
38186 2004-08-08 12:09  jackson
38187
38188         * ThemeWin32Classic.cs: Add pen_buttonface
38189
38190 2004-08-08 11:52  jordi
38191
38192         * Label.cs, LinkLabel.cs: [no log message]
38193
38194 2004-08-08 11:34  jordi
38195
38196         * ThemeWin32Classic.cs: Use Windows Standard Colours
38197
38198 2004-08-07 17:32  jordi
38199
38200         * TrackBar.cs: throw exceptions of invalid enums values
38201
38202 2004-08-07 17:31  jordi
38203
38204         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
38205           draw method name
38206
38207 2004-08-07 16:56  jackson
38208
38209         * HorizontalAlignment.cs: Initial checkin
38210
38211 2004-08-07 13:16  jordi
38212
38213         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
38214           methods
38215
38216 2004-08-07 13:05  jordi
38217
38218         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
38219           GetSysColor defines
38220
38221 2004-08-06 18:01  pbartok
38222
38223         * ThemeWin32Classic.cs:
38224           - Fixed some rounding issues with float/int
38225
38226 2004-08-06 18:00  jackson
38227
38228         * DockStyle.cs, AnchorStyles.cs:
38229
38230                   Add flags and serializable attributes.
38231
38232 2004-08-06 17:46  pbartok
38233
38234         * XplatUIX11.cs:
38235           - Implemented GetParent
38236
38237 2004-08-06 17:18  pbartok
38238
38239         * TrackBar.cs:
38240           - Fixed some rounding issues with float/int
38241
38242 2004-08-06 17:17  pbartok
38243
38244         * X11Structs.cs, XplatUIX11.cs:
38245           - Fixed Refresh and Invalidate
38246
38247 2004-08-06 15:30  pbartok
38248
38249         * Control.cs, X11Structs.cs, XplatUIX11.cs:
38250           - Fixed recursive loop when resizing
38251           - Improved/fixed redrawing on expose messages
38252
38253 2004-08-06 09:53  jordi
38254
38255         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
38256           keyboard navigation
38257
38258 2004-08-06 08:02  pbartok
38259
38260         * X11Structs.cs, XplatUIX11.cs:
38261           - Fixed reparenting
38262           - Fixed window border creation
38263
38264 2004-08-05 15:38  pbartok
38265
38266         * XplatUIX11.cs:
38267           - Attempted fix for reparenting problems
38268
38269 2004-08-04 15:14  pbartok
38270
38271         * Control.cs:
38272           - Fixed Invalidation bug (calculated wrong client area)
38273           - Added ClientSize setter
38274
38275 2004-08-04 15:13  pbartok
38276
38277         * Form.cs:
38278           - Added AutoScale properties
38279
38280 2004-08-04 15:13  pbartok
38281
38282         * SWF.csproj:
38283           - Added latest files
38284
38285 2004-08-04 14:11  pbartok
38286
38287         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38288           XplatUIX11.cs:
38289           - Added Invalidate handling
38290
38291 2004-08-03 17:09  jordi
38292
38293         * XplatUIDriver.cs: fixes spelling mistake
38294
38295 2004-07-27 09:53  jordi
38296
38297         * TrackBar.cs: fixes trackbar events, def classname, methods
38298           signature
38299
38300 2004-07-27 09:29  jordi
38301
38302         * ScrollBar.cs: fixes scrollbar events
38303
38304 2004-07-27 04:38  jordi
38305
38306         * Control.cs: changes to be able to run winforms samples
38307
38308 2004-07-26 11:42  jordi
38309
38310         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
38311           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
38312
38313 2004-07-26 05:41  jordi
38314
38315         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
38316           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
38317           implementation
38318
38319 2004-07-22 09:22  jordi
38320
38321         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
38322           check link overlapping, implement events, and fixes
38323
38324 2004-07-21 10:28  jordi
38325
38326         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
38327
38328 2004-07-21 10:19  jordi
38329
38330         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
38331           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
38332           LinkLabelLinkClickedEventArgs.cs,
38333           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
38334           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
38335           implementation
38336
38337 2004-07-19 13:09  jordi
38338
38339         * Control.cs, Label.cs: label control re-written: added missing
38340           functionlity, events, and properties
38341
38342 2004-07-19 10:49  jordi
38343
38344         * Control.cs: fixes SetBounds logic
38345
38346 2004-07-19 01:29  jordi
38347
38348         * Control.cs: Call RefreshWindow only if the window has created
38349
38350 2004-07-15 14:05  pbartok
38351
38352         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
38353           - Implemented ImageList and ImageList.ImageCollection classes
38354           - Added ColorDepth enumeration
38355           - Updated SWF VS.Net project
38356
38357 2004-07-15 11:06  jordi
38358
38359         * XplatUIStructs.cs: added MsgButons enum
38360
38361 2004-07-15 11:03  jordi
38362
38363         * Control.cs: added basic mouse handeling events
38364
38365 2004-07-15 03:38  jordi
38366
38367         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
38368           Vertical TrackBar control implementation
38369
38370 2004-07-13 09:33  jordi
38371
38372         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
38373
38374 2004-07-13 09:31  jordi
38375
38376         * Control.cs, Form.cs: commit: new properties and fixes form size
38377           problems
38378
38379 2004-07-09 14:13  miguel
38380
38381         * ProgressBar.cs: Spelling
38382
38383 2004-07-09 11:25  pbartok
38384
38385         * ProgressBar.cs:
38386           - Removed usage of Rectangle for drawing. Miguel pointed out it's
38387           faster
38388
38389 2004-07-09 11:17  miguel
38390
38391         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
38392
38393                 * ProgressBar.cs: Fixed spelling for `block'
38394
38395                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
38396                 style guidelines.
38397
38398                 Avoid using the += on rect.X, that exposed a bug in the compiler.
38399
38400 2004-07-08 23:21  pbartok
38401
38402         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
38403           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
38404           BaseCollection.cs, Binding.cs, BindingContext.cs,
38405           BindingMemberInfo.cs, BindingsCollection.cs,
38406           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
38407           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
38408           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
38409           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
38410           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
38411           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
38412           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
38413           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
38414           FrameStyle.cs, GiveFeedbackEventArgs.cs,
38415           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
38416           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
38417           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
38418           InputLanguageChangedEventArgs.cs,
38419           InputLanguageChangedEventHandler.cs,
38420           InputLanguageChangingEventArgs.cs,
38421           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
38422           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
38423           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
38424           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
38425           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
38426           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
38427           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
38428           QueryAccessibilityHelpEventArgs.cs,
38429           QueryAccessibilityHelpEventHandler.cs,
38430           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
38431           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
38432           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
38433           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
38434           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
38435           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
38436           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
38437           XplatUIX11.cs, lang.cs:
38438           - Initial check-in
38439
38440